From 87f816ea10074a8f8b96a42507210d756502191a Mon Sep 17 00:00:00 2001 From: swazrgb <65694696+swazrgb@users.noreply.github.com> Date: Mon, 1 Apr 2024 20:53:06 +0200 Subject: [PATCH] Remove unused compiled code --- app/bundle.out.js | 5402 --------------------------------------------- app/compiler.js | 1317 ----------- 2 files changed, 6719 deletions(-) delete mode 100644 app/bundle.out.js delete mode 100644 app/compiler.js diff --git a/app/bundle.out.js b/app/bundle.out.js deleted file mode 100644 index dcd7e1c..0000000 --- a/app/bundle.out.js +++ /dev/null @@ -1,5402 +0,0 @@ -var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { - get: (a, b) => (typeof require !== "undefined" ? require : a)[b] -}) : x)(function(x) { - if (typeof require !== "undefined") - return require.apply(this, arguments); - throw Error('Dynamic require of "' + x + '" is not supported'); -}); - -// behavior_dts.ts -var behavior_dts = ` -type Value = number & { - /** - * Switch based on type of value - */ - type: "No Match" | "Item" | "Entity" | "Component" | "Tech" | "Value" | "Coord"; - /** - * Divert program depending on unit type - */ - unitType: "No Unit" | "Building" | "Bot" | "Construction"; - /** - * Divert program depending on location of a unit - */ - altitude?: "Valley" | "Plateau"; - /** - * Divert program depending on location of a unit - */ - inBlight: boolean; - /** - * Checks the movement state of an entity - */ - isMoving: "Moving" | "Not Moving" | "Path Blocked" | "No Result"; - /** - * Gets the resource type from an resource node - */ - resourceType?: Value; - /** - * Gets the trust level of the unit towards you - */ - trust?: "ally" | "neutral" | "enemy"; - - /** - * Compares if an item of entity is of a specific type - */ - isA(type: Value): boolean; - /** - * Branches based on which unit is closer, optional branches for closer unit - */ - nearerThan(unit_b: Value): boolean; - /** - * Returns how many of the input item can fit in the inventory - * @param item Item to check can fit - * @returns Number of a specific item that can fit on a unit - */ - getfreespace(item: Value | Item): Value; - /** - * Check a units health - */ - fullHealth(): boolean; - /** - * Checks the Battery level of a unit - */ - fullBattery(): boolean; - /** - * Checks the Efficiency of the power grid the unit is on - */ - fullGridEfficiency(): boolean; - /** - * Counts the number of the passed item in its inventory - * @param item Item to count - * @returns Number of this item in inventory or empty if none exist - */ - count(item: Value | Item): Value; - /** - * Counts the number of the passed item in its inventory - * @param item Item to count - * @returns Number of this item in inventory or empty if none exist - */ - countReserved(item: Value | Item): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countAllSlots(): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countStorageSlots(): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countGasSlots(): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countVirusSlots(): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countAnomolySlots(): Value; - /** - * Checks if you have at least a specified amount of an item - * @param item Item to count - */ - hasItem(item: Value | ItemNum): boolean; - /** - * Filters the passed entity - * @param filter1? Filter to check - * @param filter2? Second Filter - * @param filter3? Third Filter - */ - match(filter1?: Value | RadarFilter, filter2?: Value | RadarFilter, filter3?: Value | RadarFilter): boolean; - /** - * Returns distance to a unit - * @param target Target unit - * @returns Unit and its distance in the numerical part of the value - */ - getDistance(target: Value): Value; - /** - * Checks if two entities are in the same power grid - * @param entity Second Entity - */ - sameGrid(entity: Value): boolean; - /** - * Attempt to solve explorable with inventory items - * @returns Missing repair item, scanner component or Unpowered - */ - solve(): Value | undefined; -} - -/** - * Instruction has been removed, behavior needs to be updated - */ -declare function nop(): void; -/** - * Stops execution of the behavior - */ -declare function exit(): never; -/** - * Run as many instructions as possible. Use wait instructions to throttle execution. - */ -declare function unlock(): void; -/** - * Run one instruction at a time - */ -declare function lock(): void; -/** - * Labels can be jumped to from anywhere in a behavior - * @param label Label identifier - */ -declare function label(label: Value | AnyValue): void; -/** - * Jumps execution to label with the same label id - * @param label Label identifier - */ -declare function jump(label: Value | AnyValue): void; -/** - * Pauses execution of the behavior until 1 or more ticks later - * @param time Number of ticks to wait - */ -declare function wait(time: Value | number): void; -/** - * Gets the type from an item or entity - */ -declare function getType(item_entity: Value): Value; -/** - * Gets the first item where the locked slot exists but there is no item in it - * @returns The first locked item id with no item - */ -declare function getFirstLocked0(): Value; -/** - * Performs code for all entities in visibility range of the unit - * @param range Range (up to units visibility range) - * @param filter1? Filter to check - * @param filter2? Second Filter - * @param filter3? Third Filter - * @returns Current Entity - */ -declare function entitiesInRange(range: Value | number, filter1?: Value | RadarFilter, filter2?: Value | RadarFilter, filter3?: Value | RadarFilter): IterableIterator; -/** - * Performs code for all researchable tech - * @returns Researchable Tech - */ -declare function availableResearch(): IterableIterator; -/** - * Returns the first active research tech - * @returns First active research - */ -declare function getResearch(): Value; -/** - * Returns the first active research tech - * @param tech First active research - */ -declare function setResearch(tech: Value): void; -/** - * Clears a research from queue, or entire queue if no tech passed - * @param tech Tech to remove from research queue - */ -declare function clearResearch(tech: Value): void; -/** - * Writes a value into a component register - * @param component_index Component and register number to set - * @param group_index? Component group index if multiple are equipped - */ -declare function setCompReg(value: Value | AnyValue, component_index: Value | CompNum, group_index?: Value | number): void; -/** - * Reads a value from a component register - * @param component_index Component and register number to set - * @param group_index? Component group index if multiple are equipped - */ -declare function getCompReg(component_index: Value | CompNum, group_index?: Value | number): Value; -/** - * Sets the numerical/coordinate part of a value - */ -declare function setNumber(value: Value, num_coord: Value | CoordNum): Value; -/** - * Returns a coordinate made from x and y values - */ -declare function combineCoordinate(x: Value | AnyValue, y: Value | AnyValue): Value; -/** - * Split a coordinate into x and y values - * @returns [x, y] - */ -declare function separateCoordinate(coordinate: Value | CoordNum): [Value, Value]; -/** - * Combine to make a register from separate parameters - */ -declare function combineRegister(num?: Value, entity?: Value, x?: Value, y?: Value): Value; -/** - * Split a register into separate parameters - * @returns [Num, Entity, ID, x, y] - */ -declare function separateRegister(register: Value): [Value, Value, Value, Value, Value]; -/** - * Adds a number or coordinate to another number or coordinate - */ -declare function add(to: Value | CoordNum, num: Value | CoordNum): Value; -/** - * Subtracts a number or coordinate from another number or coordinate - */ -declare function sub(from: Value | CoordNum, num: Value | CoordNum): Value; -/** - * Multiplies a number or coordinate from another number or coordinate - */ -declare function mul(to: Value | CoordNum, num: Value | CoordNum): Value; -/** - * Divides a number or coordinate from another number or coordinate - */ -declare function div(from: Value | CoordNum, num: Value | CoordNum): Value; -/** - * Get the remainder of a division - */ -declare function modulo(num: Value | CoordNum, by: Value | CoordNum): Value; -/** - * Checks if free space is available for an item and amount - * @param item Item and amount to check can fit - */ -declare function haveFreeSpace(item: Value | ItemNum): boolean; -/** - * Fix all storage slots or a specific item slot index - * @param item Item type to try fixing to the slots - * @param slot_index Individual slot to fix - */ -declare function lockSlots(item: Value | ItemNum, slot_index: Value | number): void; -/** - * Unfix all inventory slots or a specific item slot index - * @param slot_index Individual slot to unfix - */ -declare function unlockSlots(slot_index: Value | number): void; -/** - * Gets a units health as a percentage, current and max - * @param entity Entity to check - * @returns [Percentage of health remaining, Value of health remaining, Value of maximum health] - */ -declare function getHealth(entity: Value): [Value, Value, Value]; -/** - * Gets the best matching entity at a coordinate - * @param coordinate Coordinate to get Entity from - */ -declare function getEntityAt(coordinate: Value | CoordNum): Value; -/** - * Gets the value of the Grid Efficiency as a percent - */ -declare function getGridEffeciency(): Value; -/** - * Gets the value of the Battery level as a percent - */ -declare function getBattery(): Value; -/** - * Gets the value of the Unit executing the behavior - */ -declare function getSelf(): Value; -/** - * Reads the Signal register of another unit - * @param unit The owned unit to check for - * @returns Value of units Signal register - */ -declare function readSignal(unit: Value): Value; -/** - * Reads the Radio signal on a specified band - * @param band The band to check for - * @returns Value of the radio signal - */ -declare function readRadio(band: Value): Value; -/** - * *DEPRECATED* Use Loop Signal (Match) instead - * @param signal Signal - * @returns Entity with signal - */ -declare function deprecatedSignals(signal: Value): IterableIterator; -/** - * Loops through all units with a signal of similar type - * @param signal Signal - * @returns [Entity with signal, Found signal] - */ -declare function matchingSignals(signal: Value): IterableIterator<[Value, Value]>; -/** - * Returns the amount an item can stack to - * @param item Item to count - * @returns Max Stack - */ -declare function getMaxStack(item: Value | ItemNum): Value; -/** - * Equips a component if it exists - * @param component Component to equip - * @param slot_index? Individual slot to equip component from - */ -declare function equip(component: Value | Comp, slot_index?: Value | number): boolean; -/** - * Unequips a component if it exists - * @param component Component to unequip - * @param slot_index? Individual slot to try to unequip component from - */ -declare function unequip(component: Value | Comp, slot_index?: Value | number): boolean; -/** - * Gets the closest visible entity matching a filter - * @param filter1? Filter to check - * @param filter2? Second Filter - * @param filter3? Third Filter - * @returns Entity - */ -declare function getClosestEntity(filter1?: Value | RadarFilter, filter2?: Value | RadarFilter, filter3?: Value | RadarFilter): Value; -/** - * Drop off items at a unit or destination - -If a number is set it will drop off an amount to fill the target unit up to that amount -If unset it will try to drop off everything. - * @param destination Unit or destination to bring items to - * @param item_amount? Item and amount to drop off - */ -declare function drop(destination: Value, item_amount?: Value | ItemNum): void; -/** - * Drop off items at a unit or destination - -If a number is set it will drop off an amount to fill the target unit up to that amount -If unset it will try to drop off everything. - * @param destination Unit or destination to bring items to - * @param item_amount? Item and amount to drop off - */ -declare function dropSpecificAmount(destination: Value, item_amount?: Value | ItemNum): void; -/** - * Picks up a specific number of items from an entity - -Will try to pick up the specified amount, if no amount -is specified it will try to pick up everything. - * @param source Unit to take items from - * @param item_amount? Item and amount to pick up - */ -declare function pickup(source: Value, item_amount?: Value | ItemNum): void; -/** - * Requests an item if it doesn't exist in the inventory - * @param item Item and amount to order - */ -declare function requestItem(item: Value | ItemNum): void; -/** - * Request Inventory to be sent to nearest shared storage with corresponding locked slots - */ -declare function orderToSharedStorage(): void; -/** - * Requests an item and waits until it exists in inventory - * @param item Item and amount to order - */ -declare function requestWait(item: Value | ItemNum): void; -/** - * Gets the amount of resource - * @param resource Resource Node to check - */ -declare function getResourceNum(resource: Value): Value; -/** - * Reads the first item in your inventory - */ -declare function firstInventoryItem(): Value | undefined; -/** - * Reads the item contained in the specified slot index - * @param index Slot index - */ -declare function getInventoryItem(index: Value | number): Value | undefined; -/** - * Loops through Inventory - * @returns [Item Inventory, Items reserved for outgoing order or recipe, Items available, Space reserved for an incoming order, Remaining space] - */ -declare function inventoryItems(): IterableIterator<[Value, Value, Value, Value, Value]>; -/** - * Loops through Ingredients - * @returns Recipe Ingredient - */ -declare function recipieIngredients(recipe: Value | Item): IterableIterator; -/** - * Transfers an Item to another Unit - * @param target Target unit - * @param item Item and amount to transfer - */ -declare function orderTransfer(target: Value, item: Value | ItemNum): void; -/** - * Check if a specific item slot index is fixed - * @param slot_index Individual slot to check - */ -declare function isFixed(slot_index: Value | number): boolean; -/** - * Check if a specific component has been equipped - * @param component Component to check - * @returns Returns how many instances of a component equipped on this Unit - */ -declare function isEquipped(component: Value | Comp): Value | undefined; -/** - * Shuts down the power of the Unit - */ -declare function shutdown(): void; -/** - * Turns on the power of the Unit - */ -declare function turnon(): void; -/** - * Connects Units from Logistics Network - */ -declare function connect(): void; -/** - * Disconnects Units from Logistics Network - */ -declare function disconnect(): void; -/** - * Enable Unit to deliver on transport route - */ -declare function enableTransportRoute(): void; -/** - * Disable Unit to deliver on transport route - */ -declare function disableTransportRoute(): void; -/** - * Sorts Storage Containers on Unit - */ -declare function sortStorage(): void; -/** - * Tries to unpack all packaged items - */ -declare function unpackageAll(): void; -/** - * Tries to pack all packable units into items - */ -declare function packageAll(): void; -/** - * Stop movement and abort what is currently controlling the entities movement - */ -declare function stop(): void; -/** - * Gets location of a a seen entity - * @param entity Entity to get coordinates of - * @returns Coordinate of entity - */ -declare function getLocation(entity: Value): Value; -/** - * Moves towards a tile East of the current location at the specified distance - * @param number Number of tiles to move East - */ -declare function moveEast(number: Value | number): void; -/** - * Moves towards a tile West of the current location at the specified distance - * @param number Number of tiles to move West - */ -declare function moveWest(number: Value | number): void; -/** - * Moves towards a tile North of the current location at the specified distance - * @param number Number of tiles to move North - */ -declare function moveNorth(number: Value | number): void; -/** - * Moves towards a tile South of the current location at the specified distance - * @param number Number of tiles to move South - */ -declare function moveSouth(number: Value | number): void; -/** - * Move to another unit while continuing the program - * @param target Unit to move to - */ -declare function domoveAsync(target: Value): void; -/** - * Moves to another unit or within a range of another unit - * @param target Unit to move to, the number specifies the range in which to be in - */ -declare function domove(target: Value): void; -/** - * *DEPRECATED* Use Move Unit - * @param target Unit to move to, the number specifies the range in which to be in - */ -declare function domoveRange(target: Value): void; -/** - * Moves out of range of another unit - * @param target Unit to move away from - */ -declare function moveawayRange(target: Value): void; -/** - * Moves in a scouting pattern around the factions home location - */ -declare function scout(): void; -/** - * Scan for the closest unit that matches the filters - * @param filter_1? First filter - * @param filter_2? Second filter - * @param filter_3? Third filter - */ -declare function radar(filter_1?: Value | RadarFilter, filter_2?: Value | RadarFilter, filter_3?: Value | RadarFilter): Value | undefined; -/** - * Mines a single resource - * @param resource Resource to Mine - */ -declare function mine(resource: Value | ResourceNum): "ok" | "unable" | "full"; -/** - * Gets the current world stability - * @returns Stability - */ -declare function getStability(): Value; -/** - * Gives you the percent that value is of Max Value - * @param value Value to check - * @param max_value Max Value to get percentage of - * @returns Percent - */ -declare function percentValue(value: Value, max_value: Value): Value; -/** - * Remaps a value between two ranges - * @param value Value to Remap - * @param input_low Low value for input - * @param input_high High value for input - * @param target_low Low value for target - * @param target_high High value for target - * @returns Remapped value - */ -declare function remapValue(value: Value, input_low: Value, input_high: Value, target_low: Value, target_high: Value): Value; -/** - * Divert program depending time of day - */ -declare function daytime(): boolean; -/** - * Divert program depending time of day - */ -declare function nighttime(): boolean; -/** - * Counts the number of the passed item in your logistics network - * @param item Item to count - * @returns Number of this item in your faction - */ -declare function factionItemAmount(item: Value | Item): Value | undefined; -/** - * Attempts to reads the internal key of the unit - * @param frame Structure to read the key for - * @returns Number key of structure - */ -declare function readkey(frame: Value): Value; -/** - * Returns if a unit can produce an item - * @param item Production Item - */ -declare function canProduce(item: Value | Item): boolean; -/** - * Returns the ingredients required to produce an item - * @returns [First Ingredient, Second Ingredient, Third Ingredient] - */ -declare function getIngredients(product: Value | Item): [Value, Value, Value]; -/** - * Triggers a faction notification - * @param notify_value Notification Value - */ -declare function notify(notify_value: Value): void; -/** - * Triggers a faction notification - */ -declare function notify(text: string): void; -/** - * Triggers a faction notification - * @param notify_value Notification Value - */ -declare function notify(text: string, notify_value: Value): void; -/** - * Gets the factions home unit - * @returns Factions home unit - */ -declare function gethome(): Value; -/** - * Plays the Ping effect and notifies other players - * @param target Target unit - */ -declare function ping(target: Value): void; -/** - * Places a construction site for a specific structure - * @param coordinate Target location, or at currently location if not specified - * @param rotation? Building Rotation (0 to 3) (default 0) - */ -declare function build(coordinate: Value | CoordNum, rotation?: Value | number): boolean; -/** - * Sets a production component to produce a blueprint - */ -declare function produce(): void; -/** - * Set the signpost to specific text - */ -declare function setSignpost(text: string): void; -/** - * Launches a satellite if equipped on an AMAC - */ -declare function launch(): void; -/** - * Tells a satellite that has been launched to land - */ -declare function land(): void; -/** - * Collect information for running the auto base controller - * @param range Range of operation - */ -declare function gatherInformation(range: Value | number): void; -/** - * Construct carrier bots for delivering orders or to use for other tasks - * @param carriers Type and count of carriers to make - */ -declare function makeCarrier(carriers: Value | FrameNum): boolean; -/** - * Construct and equip miner components on available carrier bots - * @param resource_count Resource type and number of miners to maintain - */ -declare function makeMiner(resource_count: Value | ItemNum): boolean; -/** - * Produce materials needed in construction sites - */ -declare function serveConstruction(): boolean; -/** - * Build and maintain dedicated production buildings - * @param item_count Item type and number of producers to maintain - * @param component Production component - * @param building Building type to use as producer - * @param location Location offset from self - */ -declare function makeProducer(item_count: Value | ItemNum, component: Value | Comp, building: Value | Frame, location: Value | Coord): boolean; -/** - * Construct and equip turret components on available carrier bots - * @param number Number of turret bots to maintain - */ -declare function makeTurretBots(number: Value | number): boolean; - -declare const self: Value; -declare var goto: Value; -declare var store: Value; -declare var visual: Value; -declare var signal: Value; - -type AnyValue = Coord | ItemNum | FrameNum | RadarFilter; -type Coord = [number, number]; -type CoordNum = Coord | number; - -type RadarFilter = - | Resource - | "v_own_faction" - | "v_ally_faction" - | "v_enemy_faction" - | "v_world_faction" - | "v_bot" - | "v_building" - | "v_is_foundation" - | "v_construction" - | "v_droppeditem" - | "v_resource" - | "v_mineable" - | "v_anomaly" - | "v_valley" - | "v_plateau" - | "v_not_blight" - | "v_blight" - | "v_alien_faction" - | "v_human_faction" - | "v_robot_faction" - | "v_bug_faction" - | "v_solved" - | "v_unsolved" - | "v_can_loot" - | "v_in_powergrid" - | "v_mothership" - | "v_damaged" - | "v_infected" - | "v_broken" - | "v_unpowered" - | "v_emergency" - | "v_powereddown" - | "v_pathblocked" - | "v_idle"; - -type Item = - | Comp - | "metalore" - | "crystal" - | "laterite" - | "aluminiumrod" - | "aluminiumsheet" - | "silica" - | "fused_electrodes" - | "reinforced_plate" - | "optic_cable" - | "circuit_board" - | "infected_circuit_board" - | "obsidian" - | "metalbar" - | "metalplate" - | "foundationplate" - | "ldframe" - | "energized_plate" - | "hdframe" - | "beacon_frame" - | "refined_crystal" - | "crystal_powder" - | "obsidian_brick" - | "alien_artifact" - | "alien_artifact_research" - | "silicon" - | "wire" - | "cable" - | "icchip" - | "micropro" - | "cpu" - | "steelblock" - | "concreteslab" - | "ceramictiles" - | "polymer" - | "robot_datacube" - | "alien_datacube" - | "human_datacube" - | "blight_datacube" - | "virus_research_data" - | "empty_databank" - | "datacube_matrix" - | "robot_research" - | "human_research" - | "alien_research" - | "blight_research" - | "virus_research" - | "adv_data" - | "human_databank" - | "alien_databank" - | "drone_transfer_package" - | "drone_transfer_package2" - | "drone_miner_package" - | "drone_adv_miner_package" - | "drone_defense_package1" - | "flyer_package_m" - | "satellite_package" - | "blight_crystal" - | "blight_extraction" - | "blightbar" - | "blight_plasma" - | "microscope" - | "transformer" - | "smallreactor" - | "engine" - | "datakey" - | "alien_core" - | "bot_ai_core" - | "elain_ai_core" - | "broken_ai_core" - | "bug_carapace" - | "anomaly_particle" - | "anomaly_cluster" - | "resimulator_core" - | "power_petal" - | "phase_leaf" - | "virus_source_code" - | "rainbow_research"; - -type ItemNum = Item | number | { id: Item; num: number }; -type Comp = - | "c_refinery" - | "c_robotics_factory" - | "c_small_relay" - | "c_large_power_relay" - | "c_solar_panel" - | "c_capacitor" - | "c_higrade_capacitor" - | "c_small_battery" - | "c_shared_storage" - | "c_internal_storage" - | "c_autobase" - | "c_portablecrane" - | "c_internal_crane1" - | "c_internal_crane2" - | "c_radio_storage" - | "c_modulehealth_s" - | "c_modulehealth_m" - | "c_modulehealth_l" - | "c_modulevisibility_s" - | "c_modulevisibility_m" - | "c_modulevisibility_l" - | "c_moduleefficiency_s" - | "c_moduleefficiency_m" - | "c_moduleefficiency_l" - | "c_modulespeed_s" - | "c_modulespeed_m" - | "c_modulespeed_l" - | "c_particle_leaves" - | "c_glitch" - | "c_damageself" - | "c_small_storage" - | "c_destroyself" - | "c_phase_plant" - | "c_damage_plant" - | "c_damage_plant_internal" - | "c_large_storage" - | "c_fusion_generator" - | "c_battery" - | "c_large_battery" - | "c_large_power_transmitter" - | "c_medium_storage" - | "c_blight_container_i" - | "c_blight_container_s" - | "c_blight_container_m" - | "c_virus_decomposer" - | "c_alien_attack" - | "c_alien_extractor" - | "c_alien_factory" - | "c_human_refinery" - | "c_human_factory_robots" - | "c_human_science_analyzer_robots" - | "c_human_commandcenter" - | "c_human_barracks" - | "c_human_spaceport" - | "c_human_science" - | "c_alien_research"; -type CompNum = Comp | number | { id: Comp; num: number }; - -type Resource = - | "metalore" - | "crystal" - | "laterite" - | "silica" - | "obsidian" - | "alien_artifact" - | "alien_artifact_research" - | "blight_crystal" - | "blight_extraction" - | "bug_carapace"; -type ResourceNum = Resource | number | { id: Resource; num: number }; -type Frame = - | "f_building1x1a" - | "f_building1x1b" - | "f_building1x1c" - | "f_building1x1d" - | "f_building1x1f" - | "f_building1x1g" - | "f_building2x1a" - | "f_building2x1e" - | "f_building2x1f" - | "f_building2x1g" - | "f_building2x2b" - | "f_building2x2f" - | "f_bot_1s_as" - | "f_bot_1s_adw" - | "f_bot_2m_as" - | "f_bot_1s_a" - | "f_bot_1s_b" - | "f_bot_2s" - | "f_construction" - | "f_foundation" - | "f_human_foundation" - | "f_human_foundation_basic" - | "f_feature" - | "f_blocking_feature" - | "f_floating_feature" - | "f_dropped_resource" - | "f_building1x1e" - | "f_building2x1b" - | "f_building2x1c" - | "f_building2x1d" - | "f_building2x2a" - | "f_building2x2c" - | "f_building2x2d" - | "f_building2x2e" - | "f_building_pf" - | "f_transport_bot" - | "f_bot_1m1s" - | "f_bot_1m_b" - | "f_bot_1m_c" - | "f_bot_1l_a" - | "f_flyer_bot" - | "f_drone_transfer_a" - | "f_drone_transfer_a2" - | "f_drone_miner_a" - | "f_drone_adv_miner" - | "f_drone_defense_a" - | "f_flyer_m" - | "f_satellite" - | "f_building3x2a" - | "f_building3x2b" - | "f_building_fg" - | "f_human_flyer" - | "f_human_tank" - | "f_human_miner" - | "f_alienbot" - | "f_human_explorable_5x5_a" - | "f_carrier_bot"; -type FrameNum = Frame | number | { id: Frame; num: number }; -`; - -// asm.monarch.js -var asmSyntax = { - // Set defaultToken to invalid to see what you do not tokenize yet - // defaultToken: 'invalid', - keywords: [ - "nil", - "true", - "false", - "self", - "signal", - "visual", - "goto", - "store" - ], - // this came from an example, not sure if it really matches json escapes. - escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/, - // The main tokenizer for our languages - tokenizer: { - root: [ - // identifiers and keywords - [/\w+:|:\w+/, "type.identifier"], - // to show labels nicely - [/p\d+|[A-Z]/, "variable"], - [/\$\w+(?==)/, "attribute.name"], - [/[a-z_]\w+/, { cases: { - "@keywords": "keyword", - "@default": "identifier" - } }], - // whitespace - { include: "@whitespace" }, - // numbers - [/\d+/, "number"], - // strings - [/"([^"\\]|\\.)*$/, "string.invalid"], - // non-teminated string - [/"/, { token: "string.quote", bracket: "@open", next: "@string" }] - ], - string: [ - [/[^\\"]+/, "string"], - [/@escapes/, "string.escape"], - [/\\./, "string.escape.invalid"], - [/"/, { token: "string.quote", bracket: "@close", next: "@pop" }] - ], - whitespace: [ - [/[ \t\r\n]+/, "white"], - [/;.*$/, "comment"] - ] - } -}; - -// dsconvert.js -function DesyncedStringToObject(str, info) { - if (str.length > 10 * 1024 * 1024) - throw new Error("Input string is over 10MB"); - var b62 = new Uint8Array(str.length), idx = 0, idxend = b62.length; - for (var i = 0, j = str.length; i != j; i++) - b62[i] = str.charCodeAt(i); - const Base62_CharToByte = [255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 255, 255, 255, 255, 255, 255, 255, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 255, 255, 255, 255, 255, 255, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255, 255]; - function Base62_IsValidChar(c) { - return Base62_CharToByte[c] != 255; - } - function Base62_GetEncodedU32Size2(u) { - for (var n = 1; ; n++) - if (!(u = u / 31 | 0)) - return n; - } - function Base62_GetEncodedDataSize2(datalen) { - return ((datalen * 6 + 2) / 4 | 0) + 1; - } - function Base62_ReadU32(b622, idx2, idxend2) { - for (var u = 0; idx2 != idxend2; ) { - var c = b622[idx2++], b = Base62_CharToByte[c]; - if (b == 255) { - if (c <= 32) - continue; - return 0; - } - u = u * 31 + b % 31; - if (b >= 31) - return u; - } - return 0; - } - function Base62_ReadData(b622, idx2, idxend2) { - if (idx2 >= idxend2) - return; - var idxchecksum = idxend2 - 1; - var data = new Uint8Array((idxchecksum - idx2) * 4 / 6 | 0); - var datalen = 0, chksum = 0; - while (idx2 != idxchecksum) { - var bits = 0, i2 = 0; - while (i2 != 6 && idx2 != idxchecksum) { - var c = b622[idx2++], b = Base62_CharToByte[c]; - if (b == 255) { - if (c <= 32) - continue; - return; - } - bits = bits * 62 + b; - i2++; - } - chksum = (chksum + bits) % 4294967296; - switch (i2) { - case 6: - data[datalen++] = bits & 255; - bits >>= 8; - case 5: - data[datalen++] = bits & 255; - bits >>= 8; - case 3: - data[datalen++] = bits & 255; - bits >>= 8; - case 2: - data[datalen++] = bits & 255; - break; - } - } - if (Base62_CharToByte[b622[idx2]] != chksum % 62) - return; - return datalen == data.length ? data : data.slice(0, datalen); - } - while (idx < idxend && !Base62_IsValidChar(b62[idx])) - idx++; - while (idxend > idx && !Base62_IsValidChar(b62[idxend - 1])) - idxend--; - if (idxend - idx < 5) - throw new Error("Input string is too short"); - if (b62[idx] != 68 || b62[idx + 1] != 83) - throw new Error("Input string does not begin with the prefix 'DS'"); - if (info) - info.type = String.fromCharCode(b62[idx + 2]); - var decompressLen = Base62_ReadU32(b62, idx += 3, idxend); - if (decompressLen > 20 * 1024 * 1024) - throw new Error("Input data is over 20MB"); - idx += Base62_GetEncodedU32Size2(decompressLen); - var buf = Base62_ReadData(b62, idx, idxend); - if (decompressLen && buf) { - (function() { - "use strict"; - var l = void 0, aa = globalThis; - function r(c, d) { - var a = c.split("."), b = aa; - !(a[0] in b) && b.execScript && b.execScript("var " + a[0]); - for (var e; a.length && (e = a.shift()); ) - !a.length && d !== l ? b[e] = d : b = b[e] ? b[e] : b[e] = {}; - } - ; - var t = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array && "undefined" !== typeof DataView; - function v2(c) { - var d = c.length, a = 0, b = Number.POSITIVE_INFINITY, e, f, g, h, k, m, n, p2, s, x; - for (p2 = 0; p2 < d; ++p2) - c[p2] > a && (a = c[p2]), c[p2] < b && (b = c[p2]); - e = 1 << a; - f = new (t ? Uint32Array : Array)(e); - g = 1; - h = 0; - for (k = 2; g <= a; ) { - for (p2 = 0; p2 < d; ++p2) - if (c[p2] === g) { - m = 0; - n = h; - for (s = 0; s < g; ++s) - m = m << 1 | n & 1, n >>= 1; - x = g << 16 | p2; - for (s = m; s < e; s += k) - f[s] = x; - ++h; - } - ++g; - h <<= 1; - k <<= 1; - } - return [f, a, b]; - } - ; - function w(c, d) { - this.g = []; - this.h = 32768; - this.d = this.f = this.a = this.l = 0; - this.input = t ? new Uint8Array(c) : c; - this.m = false; - this.i = y; - this.r = false; - if (d || !(d = {})) - d.index && (this.a = d.index), d.bufferSize && (this.h = d.bufferSize), d.bufferType && (this.i = d.bufferType), d.resize && (this.r = d.resize); - switch (this.i) { - case A: - this.b = 32768; - this.c = new (t ? Uint8Array : Array)(32768 + this.h + 258); - break; - case y: - this.b = 0; - this.c = new (t ? Uint8Array : Array)(this.h); - this.e = this.z; - this.n = this.v; - this.j = this.w; - break; - default: - throw Error("invalid inflate mode"); - } - } - var A = 0, y = 1, B = { t: A, s: y }; - w.prototype.k = function() { - for (; !this.m; ) { - var c = C(this, 3); - c & 1 && (this.m = true); - c >>>= 1; - switch (c) { - case 0: - var d = this.input, a = this.a, b = this.c, e = this.b, f = d.length, g = l, h = l, k = b.length, m = l; - this.d = this.f = 0; - if (a + 1 >= f) - throw Error("invalid uncompressed block header: LEN"); - g = d[a++] | d[a++] << 8; - if (a + 1 >= f) - throw Error("invalid uncompressed block header: NLEN"); - h = d[a++] | d[a++] << 8; - if (g === ~h) - throw Error("invalid uncompressed block header: length verify"); - if (a + g > d.length) - throw Error("input buffer is broken"); - switch (this.i) { - case A: - for (; e + g > b.length; ) { - m = k - e; - g -= m; - if (t) - b.set(d.subarray(a, a + m), e), e += m, a += m; - else - for (; m--; ) - b[e++] = d[a++]; - this.b = e; - b = this.e(); - e = this.b; - } - break; - case y: - for (; e + g > b.length; ) - b = this.e({ p: 2 }); - break; - default: - throw Error("invalid inflate mode"); - } - if (t) - b.set(d.subarray(a, a + g), e), e += g, a += g; - else - for (; g--; ) - b[e++] = d[a++]; - this.a = a; - this.b = e; - this.c = b; - break; - case 1: - this.j(ba, ca); - break; - case 2: - for (var n = C(this, 5) + 257, p2 = C(this, 5) + 1, s = C(this, 4) + 4, x = new (t ? Uint8Array : Array)(D.length), S = l, T = l, U = l, u = l, M = l, F = l, z = l, q = l, V = l, q = 0; q < s; ++q) - x[D[q]] = C(this, 3); - if (!t) { - q = s; - for (s = x.length; q < s; ++q) - x[D[q]] = 0; - } - S = v2(x); - u = new (t ? Uint8Array : Array)(n + p2); - q = 0; - for (V = n + p2; q < V; ) - switch (M = E(this, S), M) { - case 16: - for (z = 3 + C(this, 2); z--; ) - u[q++] = F; - break; - case 17: - for (z = 3 + C(this, 3); z--; ) - u[q++] = 0; - F = 0; - break; - case 18: - for (z = 11 + C(this, 7); z--; ) - u[q++] = 0; - F = 0; - break; - default: - F = u[q++] = M; - } - T = t ? v2(u.subarray(0, n)) : v2(u.slice(0, n)); - U = t ? v2(u.subarray(n)) : v2(u.slice(n)); - this.j(T, U); - break; - default: - throw Error("unknown BTYPE: " + c); - } - } - return this.n(); - }; - var G = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], D = t ? new Uint16Array(G) : G, H = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258], I = t ? new Uint16Array(H) : H, J = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0], K = t ? new Uint8Array(J) : J, L = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577], da = t ? new Uint16Array(L) : L, ea = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], N = t ? new Uint8Array(ea) : ea, O = new (t ? Uint8Array : Array)(288), P, fa; - P = 0; - for (fa = O.length; P < fa; ++P) - O[P] = 143 >= P ? 8 : 255 >= P ? 9 : 279 >= P ? 7 : 8; - var ba = v2(O), Q = new (t ? Uint8Array : Array)(30), R, ga; - R = 0; - for (ga = Q.length; R < ga; ++R) - Q[R] = 5; - var ca = v2(Q); - function C(c, d) { - for (var a = c.f, b = c.d, e = c.input, f = c.a, g = e.length, h; b < d; ) { - if (f >= g) - throw Error("input buffer is broken"); - a |= e[f++] << b; - b += 8; - } - h = a & (1 << d) - 1; - c.f = a >>> d; - c.d = b - d; - c.a = f; - return h; - } - function E(c, d) { - for (var a = c.f, b = c.d, e = c.input, f = c.a, g = e.length, h = d[0], k = d[1], m, n; b < k && !(f >= g); ) - a |= e[f++] << b, b += 8; - m = h[a & (1 << k) - 1]; - n = m >>> 16; - if (n > b) - throw Error("invalid code length: " + n); - c.f = a >> n; - c.d = b - n; - c.a = f; - return m & 65535; - } - w.prototype.j = function(c, d) { - var a = this.c, b = this.b; - this.o = c; - for (var e = a.length - 258, f, g, h, k; 256 !== (f = E(this, c)); ) - if (256 > f) - b >= e && (this.b = b, a = this.e(), b = this.b), a[b++] = f; - else { - g = f - 257; - k = I[g]; - 0 < K[g] && (k += C(this, K[g])); - f = E(this, d); - h = da[f]; - 0 < N[f] && (h += C(this, N[f])); - b >= e && (this.b = b, a = this.e(), b = this.b); - for (; k--; ) - a[b] = a[b++ - h]; - } - for (; 8 <= this.d; ) - this.d -= 8, this.a--; - this.b = b; - }; - w.prototype.w = function(c, d) { - var a = this.c, b = this.b; - this.o = c; - for (var e = a.length, f, g, h, k; 256 !== (f = E(this, c)); ) - if (256 > f) - b >= e && (a = this.e(), e = a.length), a[b++] = f; - else { - g = f - 257; - k = I[g]; - 0 < K[g] && (k += C(this, K[g])); - f = E(this, d); - h = da[f]; - 0 < N[f] && (h += C(this, N[f])); - b + k > e && (a = this.e(), e = a.length); - for (; k--; ) - a[b] = a[b++ - h]; - } - for (; 8 <= this.d; ) - this.d -= 8, this.a--; - this.b = b; - }; - w.prototype.e = function() { - var c = new (t ? Uint8Array : Array)(this.b - 32768), d = this.b - 32768, a, b, e = this.c; - if (t) - c.set(e.subarray(32768, c.length)); - else { - a = 0; - for (b = c.length; a < b; ++a) - c[a] = e[a + 32768]; - } - this.g.push(c); - this.l += c.length; - if (t) - e.set(e.subarray(d, d + 32768)); - else - for (a = 0; 32768 > a; ++a) - e[a] = e[d + a]; - this.b = 32768; - return e; - }; - w.prototype.z = function(c) { - var d, a = this.input.length / this.a + 1 | 0, b, e, f, g = this.input, h = this.c; - c && ("number" === typeof c.p && (a = c.p), "number" === typeof c.u && (a += c.u)); - 2 > a ? (b = (g.length - this.a) / this.o[2], f = 258 * (b / 2) | 0, e = f < h.length ? h.length + f : h.length << 1) : e = h.length * a; - t ? (d = new Uint8Array(e), d.set(h)) : d = h; - return this.c = d; - }; - w.prototype.n = function() { - var c = 0, d = this.c, a = this.g, b, e = new (t ? Uint8Array : Array)(this.l + (this.b - 32768)), f, g, h, k; - if (0 === a.length) - return t ? this.c.subarray(32768, this.b) : this.c.slice(32768, this.b); - f = 0; - for (g = a.length; f < g; ++f) { - b = a[f]; - h = 0; - for (k = b.length; h < k; ++h) - e[c++] = b[h]; - } - f = 32768; - for (g = this.b; f < g; ++f) - e[c++] = d[f]; - this.g = []; - return this.buffer = e; - }; - w.prototype.v = function() { - var c, d = this.b; - t ? this.r ? (c = new Uint8Array(d), c.set(this.c.subarray(0, d))) : c = this.c.subarray(0, d) : (this.c.length > d && (this.c.length = d), c = this.c); - return this.buffer = c; - }; - function W(c, d) { - var a, b; - this.input = c; - this.a = 0; - if (d || !(d = {})) - d.index && (this.a = d.index), d.verify && (this.A = d.verify); - a = c[this.a++]; - b = c[this.a++]; - switch (a & 15) { - case ha: - this.method = ha; - break; - default: - throw Error("unsupported compression method"); - } - if (0 !== ((a << 8) + b) % 31) - throw Error("invalid fcheck flag:" + ((a << 8) + b) % 31); - if (b & 32) - throw Error("fdict flag is not supported"); - this.q = new w(c, { index: this.a, bufferSize: d.bufferSize, bufferType: d.bufferType, resize: d.resize }); - } - W.prototype.k = function() { - var c = this.input, d, a; - d = this.q.k(); - this.a = this.q.a; - if (this.A) { - a = (c[this.a++] << 24 | c[this.a++] << 16 | c[this.a++] << 8 | c[this.a++]) >>> 0; - var b = d; - if ("string" === typeof b) { - var e = b.split(""), f, g; - f = 0; - for (g = e.length; f < g; f++) - e[f] = (e[f].charCodeAt(0) & 255) >>> 0; - b = e; - } - for (var h = 1, k = 0, m = b.length, n, p2 = 0; 0 < m; ) { - n = 1024 < m ? 1024 : m; - m -= n; - do - h += b[p2++], k += h; - while (--n); - h %= 65521; - k %= 65521; - } - if (a !== (k << 16 | h) >>> 0) - throw Error("invalid adler-32 checksum"); - } - return d; - }; - var ha = 8; - r("Zlib.Inflate", W); - r("Zlib.Inflate.prototype.decompress", W.prototype.k); - var X = { ADAPTIVE: B.s, BLOCK: B.t }, Y, Z, $, ia; - if (Object.keys) - Y = Object.keys(X); - else - for (Z in Y = [], $ = 0, X) - Y[$++] = Z; - $ = 0; - for (ia = Y.length; $ < ia; ++$) - Z = Y[$], r("Zlib.Inflate.BufferType." + Z, X[Z]); - }).call(this); - try { - buf = new Zlib.Inflate(buf, { "bufferSize": decompressLen, "verify": true }).decompress(); - } catch { - throw new Error("Error during decompression of input data"); - } - } - if (!buf) - throw new Error("Failed to decode input string"); - const MP_FixZero = 0, MP_FixMap = 128, MP_FixArray = 144, MP_FixStr = 160, MP_Nil = 192, MP_False = 194, MP_True = 195, MP_Float32 = 202, MP_Float64 = 203, MP_Uint8 = 204, MP_Uint16 = 205, MP_Uint32 = 206, MP_Uint64 = 207, MP_Int8 = 208, MP_Int16 = 209, MP_Int32 = 210, MP_Int64 = 211, MP_Str8 = 217, MP_Str16 = 218, MP_Str32 = 219, MP_Array16 = 220, MP_Array32 = 221, MP_Map16 = 222, MP_Map32 = 223, MP_DESYNCED_INVALID = 196, MP_DESYNCED_DEADKEY = 197, MP_DESYNCED_USERDATA = 193; - const v = new DataView(buf.buffer); - const utf8 = new (typeof process === "object" ? __require("util").TextDecoder : TextDecoder)(); - var p = 0; - function Parse(is_table_key) { - function GetIntPacked() { - var res = 0, cnt = 0; - do { - var b = buf[p++]; - res |= b >> 1 << 7 * cnt++; - } while (b & 1); - return res; - } - function ParseTable(sz, is_map) { - if (is_table_key) - throw new Error("Unable to parse table key of type 'table'"); - if (sz > 5e6) - throw new Error("Unable to parse table with too many items"); - var size_node = 0, size_array = 0; - if (is_map) { - size_node = 1 << (sz >> 1); - if (sz & 1) - size_array = GetIntPacked(); - if (size_node > 5e6 || size_array > 5e6) - throw new Error("Unable to parse invalid table"); - GetIntPacked(); - } else - size_array = sz; - var t = is_map ? {} : []; - for (var i2 = 0, total = size_array + size_node; i2 != total; ) { - for (var vacancy_bits = buf[p++], mask = 1, iEnd = Math.min(total, i2 + 8); i2 != iEnd; i2++, mask <<= 1) { - if (vacancy_bits & mask) - continue; - var val = Parse(); - if (i2 < size_array) { - t[i2] = val; - } else { - if (buf[p] == MP_DESYNCED_DEADKEY) { - p++; - GetIntPacked(); - continue; - } - t[Parse(true)] = val; - GetIntPacked(); - } - } - } - return t; - } - var type = buf[p++], q; - switch (type) { - case MP_Nil: - return void 0; - case MP_False: - return false; - case MP_True: - return true; - case MP_Float32: - p += 4; - return v.getFloat32(p - 4, true); - case MP_Float64: - p += 8; - return v.getFloat64(p - 8, true); - case MP_Uint8: - p += 1; - return v.getUint8(p - 1, true); - case MP_Uint16: - p += 2; - return v.getUint16(p - 2, true); - case MP_Uint32: - p += 4; - return v.getUint32(p - 4, true); - case MP_Uint64: - p += 8; - return v.getBigUint64(p - 8, true); - case MP_Int8: - p += 1; - return v.getInt8(p - 1, true); - case MP_Int16: - p += 2; - return v.getInt16(p - 2, true); - case MP_Int32: - p += 4; - return v.getInt32(p - 4, true); - case MP_Int64: - p += 8; - return v.getBigInt64(p - 8, true); - case MP_FixZero: - return 0; - case MP_Str8: - p += 1; - q = p; - p += v.getUint8(p - 1, true); - return utf8.decode(buf.subarray(q, p)); - case MP_Str16: - p += 2; - q = p; - p += v.getUint16(p - 2, true); - return utf8.decode(buf.subarray(q, p)); - case MP_Str32: - p += 4; - q = p; - p += v.getUint32(p - 4, true); - return utf8.decode(buf.subarray(q, p)); - case MP_FixStr: - return ""; - case MP_Array16: - p += 2; - return ParseTable(v.getUint16(p - 2, true), false); - case MP_Array32: - p += 4; - return ParseTable(v.getUint32(p - 4, true), false); - case MP_FixArray: - return ParseTable(0, false); - case MP_Map16: - p += 2; - return ParseTable(v.getUint16(p - 2, true), true); - case MP_Map32: - p += 4; - return ParseTable(v.getUint32(p - 4, true), true); - case MP_FixMap: - return ParseTable(0, true); - case MP_DESYNCED_USERDATA: - if (is_table_key) - throw new Error("Unable to parse table key of type 'userdata'"); - throw new Error("Parsing userdata type " + GetIntPacked() + " is not supported"); - default: - if (type < MP_FixMap) - return type; - else if (type < MP_FixArray) - return ParseTable(type - MP_FixMap, true); - else if (type < MP_FixStr) - return ParseTable(type - MP_FixArray, false); - else if (type < MP_Nil) { - q = p; - p += type - MP_FixStr; - return utf8.decode(buf.subarray(q, p)); - } else if (type > MP_Map32) - return type - 256; - } - throw new Error("cannot parse unknown type " + type); - } - debugger; - return Parse(); -} - -// tods.ts -var env = typeof process === "object" ? nodeEnv() : browserEnv(); -var base62charset = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("").map((c) => c.charCodeAt(0)); -var debug = { - log(msg) { - }, - group(label) { - }, - groupEnd() { - } -}; -async function ObjectToDesyncedString(data, type = "C", indexOffset = 0) { - const [decompressedSize, buf] = await DSMPEncode(data, indexOffset); - const encodedSize = Base62_GetEncodedDataSize(buf.byteLength) + Base62_GetEncodedU32Size(decompressedSize) + 3; - let result = new Uint8Array(encodedSize + 10); - let offset = 0; - result[offset++] = 68; - result[offset++] = 83; - result[offset++] = type.charCodeAt(0); - offset = Base62_WriteU32(decompressedSize, result, offset, result.byteLength); - offset = Base62_WriteData( - new Uint8Array(buf), - result, - offset, - result.byteLength - ); - if (offset != result.byteLength) { - result = result.subarray(0, offset); - } - return new env.TextDecoder().decode(result); -} -function Base62_WriteU32(u, b62, idx, idxend) { - idx += Base62_GetEncodedU32Size(u); - const result = idx; - do { - if (idx >= idxend) - throw new Error(`Data too long for Base62 encoding`); - let v = u % 31; - if (idx === result) { - v += 31; - } - var c = base62charset[v]; - b62[--idx] = c; - u = Math.floor(u / 31); - } while (u > 0); - return result; -} -function Base62_WriteData(data, b62, idx, idxend) { - var datalen = data.length; - let checksum = 0; - function addWord(word2, bytes = 4) { - let n = [0, 2, 3, 5, 6][bytes]; - idx += n; - checksum = (checksum + word2) % 4294967296; - if (idx >= idxend) - throw new Error(`Data too long for Base62 encoding`); - for (let i2 = 0; i2 < n; i2++) { - const c = word2 % 62; - b62[idx - i2 - 1] = base62charset[c]; - word2 = (word2 - c) / 62; - } - } - let word = 0; - for (var i = 0; i != datalen; i++) { - word = word + data[i] * 256 ** (i % 4); - if (i % 4 == 3) { - addWord(word); - word = 0; - } - } - if (datalen % 4 != 0) { - addWord(word, datalen % 4); - } - if (idx >= idxend) - throw new Error(`Data too long for Base62 encoding`); - b62[idx++] = base62charset[checksum % 62]; - return idx; -} -async function DSMPEncode(data, indexOffset = 0) { - const MP_FixZero = 0, MP_FixMap = 128, MP_FixArray = 144, MP_FixStr = 160, MP_Nil = 192, MP_False = 194, MP_True = 195, MP_Float32 = 202, MP_Float64 = 203, MP_Uint8 = 204, MP_Uint16 = 205, MP_Uint32 = 206, MP_Uint64 = 207, MP_Int8 = 208, MP_Int16 = 209, MP_Int32 = 210, MP_Int64 = 211, MP_Str8 = 217, MP_Str16 = 218, MP_Str32 = 219, MP_Array16 = 220, MP_Array32 = 221, MP_Map16 = 222, MP_Map32 = 223; - let ab = new ArrayBuffer(1024); - let buf = new Uint8Array(ab); - let view = new DataView(ab); - const compressor = new env.CompressionStream("deflate"); - const writer = compressor.writable.getWriter(); - const textEncoder = new env.TextEncoder(); - let offset = 0; - let totalWritten = 0; - const result = env.streamToBytes(compressor.readable); - async function flush() { - let bytesToFlush = offset; - totalWritten += bytesToFlush; - offset = 0; - const toWrite = new Uint8Array(ab, 0, bytesToFlush); - ab = new ArrayBuffer(1024); - buf = new Uint8Array(ab); - view = new DataView(ab); - await writer.ready; - await writer.write(toWrite); - await writer.ready; - } - async function writeBoolean(b) { - if (offset >= buf.byteLength) { - await flush(); - } - buf[offset++] = b ? MP_True : MP_False; - } - async function writeNumber(n) { - if (Number.isInteger(n)) { - if (n >= 0) { - if (n <= 127) { - if (offset >= buf.byteLength) { - await flush(); - } - buf[offset++] = n; - } else if (n <= 255) { - debug.log("MP_Uint8"); - if (offset + 1 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Uint8; - buf[offset++] = n; - } else if (n <= 65535) { - debug.log("MP_Uint16"); - if (offset + 3 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Uint16; - view.setUint16(offset, n, true); - offset += 2; - } else if (n <= 4294967295) { - debug.log("MP_Uint32"); - if (offset + 5 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Uint32; - view.setUint32(offset, n, true); - offset += 4; - } else { - debug.log("MP_Uint64"); - if (offset + 9 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Uint64; - view.setBigUint64(offset, BigInt(n), true); - } - } else { - if (n >= -32) { - if (offset >= buf.byteLength) { - await flush(); - } - buf[offset++] = n & 255; - } else if (n >= -128) { - debug.log("MP_Int8"); - if (offset + 1 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Int8; - buf[offset++] = n; - } else if (n >= -32768) { - debug.log("MP_Int16"); - if (offset + 3 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Int16; - view.setInt16(offset, n, true); - offset += 2; - } else if (n >= -2147483648) { - debug.log("MP_Int32"); - if (offset + 5 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Int32; - view.setInt32(offset, n, true); - offset += 4; - } else { - debug.log("MP_Int64"); - if (offset + 9 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Int64; - view.setBigInt64(offset, BigInt(n), true); - offset += 8; - } - } - } else { - debug.log("MP_Float64"); - if (offset + 9 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Float64; - view.setFloat64(offset, n, true); - offset += 8; - } - } - async function writePackedNumber(n, debugName = "", partial = false) { - if (n >= 128) { - writePackedNumber(n >> 7, debugName, true); - } - let c = (n & 127) << 1; - if (partial) { - c |= 1; - } - debug.log(`pack ${debugName} ${n} -> ${c}`); - if (offset >= buf.byteLength) { - await flush(); - } - buf[offset++] = c; - } - async function writeString(s) { - if (s.length < 32) { - if (offset + 1 + s.length >= buf.byteLength) { - await flush(); - } - if (s instanceof Uint8Array) { - debug.log("MP_FixStr"); - buf.set(s, offset + 1); - buf[offset] = MP_FixStr + s.length; - offset += 1 + s.length; - return; - } - const strbuf = new Uint8Array(ab, offset + 1); - const result2 = textEncoder.encodeInto(s, strbuf); - if (result2.written < 32 && result2.read == s.length) { - debug.log("MP_FixStr"); - buf[offset] = MP_FixStr + result2.written; - offset += 1 + result2.written; - return; - } - } - const encoded = s instanceof Uint8Array ? s : textEncoder.encode(s); - const sizesize = encoded.length < 127 ? 1 : encoded.length < 32767 ? 2 : encoded.length < 2147483647 ? 4 : 8; - if (sizesize > 4) { - throw new Error("string too long"); - } - if (offset + 1 + sizesize >= buf.byteLength) { - await flush(); - } - switch (sizesize) { - case 1: - debug.log("MP_Str8"); - buf[offset++] = MP_Str8; - view.setUint8(offset++, encoded.length); - break; - case 2: - debug.log("MP_Str16"); - buf[offset++] = MP_Str16; - view.setUint16(offset, encoded.length, true); - offset += 2; - break; - case 4: - debug.log("MP_Str32"); - buf[offset++] = MP_Str32; - view.setUint32(offset, encoded.length, true); - offset += 4; - break; - } - for (let i = 0; i < encoded.length; i++) { - if (offset >= buf.byteLength) { - await flush(); - } - buf[offset++] = encoded[i]; - } - } - async function writeNil() { - if (offset >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Nil; - } - async function writeArray(a) { - let headersize = a.length < 16 ? 1 : a.length < 65536 ? 3 : a.length < 4294967296 ? 5 : 9; - if (headersize > 5) { - throw new Error(`array too long: ${a.length}`); - } - if (offset + headersize > buf.byteLength) { - await flush(); - } - switch (headersize) { - case 1: - debug.log("MP_FixArray"); - buf[offset++] = MP_FixArray + a.length; - break; - case 3: - debug.log("MP_Array16"); - buf[offset++] = MP_Array16; - view.setUint16(offset, a.length, true); - offset += 2; - break; - case 5: - debug.log("MP_Array32"); - buf[offset++] = MP_Array32; - view.setUint32(offset, a.length, true); - offset += 4; - break; - } - let vacancy = 0n; - for (let i = 0; i < a.length; i++) { - if (a[i] === void 0) { - vacancy |= 1n << BigInt(i); - } - } - for (let i = 0; i < a.length; i++) { - if (i % 8 == 0) { - if (offset >= buf.byteLength) { - await flush(); - } - debug.log(`vacancy=${(vacancy & 0xFFn).toString(2)}`); - buf[offset++] = Number(vacancy & 0xFFn); - vacancy >>= 8n; - } - if (a[i] !== void 0) { - await writeValue(a[i]); - } - } - } - async function writeObject(o) { - const t = new LuaTable(o, textEncoder, indexOffset); - let encodedSize = 2 * t.lsizenode; - if (encodedSize < 0) { - throw new Error("invalid table"); - } - if (t.array.length > 0) { - encodedSize += 1; - } - if (encodedSize < 16) { - debug.log("MP_FixMap"); - if (offset >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_FixMap + encodedSize; - } else if (encodedSize < 65536) { - debug.log("MP_Map16"); - if (offset + 2 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Map16; - view.setUint16(offset, encodedSize, true); - offset += 2; - } else { - debug.log("MP_Map32"); - if (offset + 4 >= buf.byteLength) { - await flush(); - } - buf[offset++] = MP_Map32; - view.setUint32(offset, encodedSize, true); - offset += 4; - } - let vacancy = t.vacancyBits; - if (t.array.length > 0) { - await writePackedNumber(t.array.length, "array_size"); - } - await writePackedNumber(t.lastfree, "lastfree"); - await t.forEach(async (value, node, addVacancy) => { - if (addVacancy) { - if (offset >= buf.byteLength) { - await flush(); - } - debug.log(`vacancy=${(vacancy & 0xffn).toString(2)}`); - buf[offset++] = Number(vacancy & 0xffn); - vacancy >>= 8n; - } - if (value == null) { - return; - } - node && debug.group(`value ${offset}`); - await writeValue(value); - if (node) { - debug.groupEnd(); - debug.group(`key ${offset}`); - await writeValue(node.key); - debug.groupEnd(); - const encodedNext = node.next < 0 ? -2 * node.next + 1 : 2 * node.next; - await writePackedNumber(encodedNext || 0, "next"); - } - }); - } - async function writeValue(v) { - try { - if (v == null) { - debug.group("null"); - return writeNil(); - } else if (typeof v == "boolean") { - debug.group(`${v}`); - return writeBoolean(v); - } else if (typeof v == "number") { - debug.group(`${v}`); - return writeNumber(v); - } else if (typeof v == "string" || v instanceof Uint8Array) { - debug.group(`string ${v.length}`); - return writeString(v); - } - if (Array.isArray(v)) { - debug.group(`array ${v.length}`); - return writeArray(v); - } else if (hasNumericKeys(v)) { - const va = []; - for (const k in v) { - va[+k] = v[k]; - } - debug.group(`array ${va.length}`); - return writeArray(va); - } else if (typeof v == "object") { - debug.group(`object ${Object.keys(v).length}`); - return writeObject(v); - } - } finally { - debug.groupEnd(); - } - throw new Error("Unsupported type: " + typeof v); - } - await writeValue(data); - if (offset != 0) { - await flush(); - } - await writer.ready; - await writer.close(); - return Promise.all([totalWritten, result]); -} -function Base62_GetEncodedU32Size(u) { - for (var n = 1; ; n++) - if (!(u = u / 31 | 0)) - return n; -} -function Base62_GetEncodedDataSize(datalen) { - return ((datalen * 6 + 2) / 4 | 0) + 1; -} -function browserEnv() { - return { - TextEncoder, - TextDecoder, - // @ts-ignore - CompressionStream, - streamToBytes(stream) { - return new Response(stream).arrayBuffer(); - } - }; -} -function nodeEnv() { - const { arrayBuffer } = __require("node:stream/consumers"); - const { TextDecoder: TextDecoder2, TextEncoder: TextEncoder2 } = __require("util"); - const { CompressionStream: CompressionStream2 } = __require("node:stream/web"); - return { - TextEncoder: TextEncoder2, - TextDecoder: TextDecoder2, - CompressionStream: CompressionStream2, - streamToBytes(stream) { - return arrayBuffer(stream); - } - }; -} -var TableNode = class { - constructor() { - this.next = 0; - } -}; -var LuaTable = class { - /** - * @param {{[key:number|string]:any}} o - * @param {TextEncoder} encoder - * @param {number} indexOffset Use 1 to treat numeric map keys as 1-based - */ - constructor(o, encoder, indexOffset = 0) { - this.array = []; - this.vacancyBits = 0n; - this.lsizenode = 0; - this.lastfree = 0; - this.table = []; - const remainingKeys = this.#splitKeys(o, indexOffset); - this.#buildTable(remainingKeys, o, encoder); - this.#calcVacancy(); - } - /** - * @param {{[key:number|string]:any}} o - * @param {number} indexOffset - */ - #splitKeys(o, indexOffset) { - const allKeys = Object.keys(o); - const filteredKeys = []; - for (const k of allKeys) { - const kn = k | 0; - if (k == kn && kn >= indexOffset) { - this.array[kn - indexOffset] = o[k]; - } else { - filteredKeys.push(k); - } - } - return filteredKeys; - } - /** - * @param {string[]} remainingKeys - * @param {{[key:number|string]:any}} o - * @param {TextEncoder} encoder - */ - #buildTable(keys, o, encoder) { - this.lsizenode = Math.ceil(Math.log2(keys.length)); - const size = sizenode(this.lsizenode); - this.table.length = size; - this.lastfree = size; - for (const key of keys) { - const value = o[key]; - const encodedKey = encoder.encode(key); - let mp = lmod(luaS_hash(encodedKey), size); - if (!this.table[mp]) { - this.table[mp] = new TableNode(); - } else { - let f = this.#getfreepos(); - let othern = lmod(luaS_hash(this.table[mp].key), size); - if (othern != mp) { - while (othern + this.#gnext(othern) != mp) { - othern += this.#gnext(othern); - } - this.table[othern].next = f - othern; - Object.assign(this.table[f], this.table[mp]); - if (this.#gnext(mp) != 0) { - this.table[f].next += mp - f; - this.table[mp].next = 0; - } - this.table[mp].value = void 0; - } else { - if (this.#gnext(mp) != 0) { - this.table[f].next = mp + this.#gnext(mp) - f; - } - this.table[mp].next = f - mp; - mp = f; - } - } - this.table[mp].key = encodedKey; - this.table[mp].value = value; - } - function luaS_hash(bytes) { - const seed = 1683865549; - let h = seed ^ bytes.length; - let l = bytes.length; - for (; l > 0; l--) { - h = (h ^ (h << 5) + (h >>> 2) + bytes[l - 1]) >>> 0; - } - return h; - } - function lmod(s, size2) { - return s & size2 - 1; - } - function twoto(x) { - return 1 << x; - } - function sizenode(lsizenode) { - return twoto(lsizenode); - } - } - #gnext(othern) { - return this.table[othern].next ?? 0; - } - #getfreepos() { - while (this.lastfree > 0) { - this.lastfree--; - if (!this.table[this.lastfree]) { - this.table[this.lastfree] = new TableNode(); - return this.lastfree; - } - } - throw new Error("out of nodes"); - } - #calcVacancy() { - this.vacancyBits = 0n; - for (let i = 0n; i < this.array.length; i++) { - if (this.array[i] == null) { - this.vacancyBits |= 1n << i; - } - } - for (let i = 0; i < this.table.length; i++) { - if (!this.table[i]) { - this.vacancyBits |= 1n << BigInt(i + this.array.length); - } - } - } - async forEach(f) { - for (let i = 0; i < this.array.length; i++) { - await f(this.array[i], void 0, i % 8 == 0); - } - for (let i = 0; i < this.table.length; i++) { - const n = this.table[i]; - await f(n?.value, n, (i + this.array.length) % 8 == 0); - } - } -}; -function hasNumericKeys(o) { - for (const k in o) { - if (k != (k | 0)) - return false; - } - return true; -} - -// decompile/dsinstr.ts -var instructions = { - "nop": { - "type": "function" - }, - "call": { - "type": "operator" - }, - "last": { - "terminates": true, - "type": "operator" - }, - "exit": { - "terminates": true, - "type": "function" - }, - "unlock": { - "type": "function" - }, - "lock": { - "type": "function" - }, - "label": { - "type": "function", - "inArgs": [ - 0 - ] - }, - "jump": { - "type": "function", - "inArgs": [ - 0 - ] - }, - "wait": { - "type": "function", - "inArgs": [ - 0 - ] - }, - "compare_item": { - "js": "compareItem", - "type": "operator", - "inArgs": [ - 1, - 2 - ], - "execArgs": [ - 0 - ], - "conditions": { - "next": true, - "If Different": false - } - }, - "compare_entity": { - "js": "compareEntity", - "type": "operator", - "inArgs": [ - 1, - 2 - ], - "execArgs": [ - 0 - ], - "conditions": { - "next": true, - "If Different": false - } - }, - "is_a": { - "js": "isA", - "type": "method", - "inArgs": [ - 1, - 2 - ], - "execArgs": [ - 0 - ], - "conditions": { - "next": true, - "If Different": false - }, - "thisArg": 1 - }, - "get_type": { - "js": "getType", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ] - }, - "value_type": { - "js": "type", - "type": "property", - "inArgs": [ - 0 - ], - "execArgs": [ - 1, - 2, - 3, - 4, - 5, - 6 - ], - "conditions": { - "next": "No Match", - "Item": "Item", - "Entity": "Entity", - "Component": "Component", - "Tech": "Tech", - "Value": "Value", - "Coord": "Coord" - }, - "thisArg": 0 - }, - "get_first_locked_0": { - "js": "getFirstLocked0", - "type": "function", - "outArgs": [ - 0 - ] - }, - "unit_type": { - "js": "unitType", - "type": "property", - "inArgs": [ - 0 - ], - "execArgs": [ - 1, - 2, - 3 - ], - "conditions": { - "next": "No Unit", - "Building": "Building", - "Bot": "Bot", - "Construction": "Construction" - }, - "thisArg": 0 - }, - "select_nearest": { - "js": "selectNearest", - "type": "operator", - "inArgs": [ - 2, - 3 - ], - "outArgs": [ - 4 - ], - "execArgs": [ - 0, - 1 - ], - "aliases": [ - { - "js": "nearerThan", - "type": "method", - "thisArg": 2, - "conditions": { - "A": true, - "B": false - }, - "outArgs": [] - } - ], - "conditions": { - "next": "next", - "A": "A", - "B": "B" - } - }, - "for_entities_in_range": { - "js": "entitiesInRange", - "type": "function", - "inArgs": [ - 0, - 1, - 2, - 3 - ], - "outArgs": [ - 4 - ], - "execArgs": [ - 5 - ], - "loop": true, - "conditions": { - "next": true, - "Done": false - } - }, - "for_research": { - "js": "availableResearch", - "type": "function", - "outArgs": [ - 0 - ], - "execArgs": [ - 1 - ], - "loop": true, - "conditions": { - "next": true, - "Done": false - } - }, - "get_research": { - "js": "getResearch", - "type": "function", - "outArgs": [ - 0 - ] - }, - "set_research": { - "js": "setResearch", - "type": "function", - "inArgs": [ - 0 - ] - }, - "clear_research": { - "js": "clearResearch", - "type": "function", - "inArgs": [ - 0 - ] - }, - "check_number": { - "js": "checkNumber", - "type": "operator", - "inArgs": [ - 2, - 3 - ], - "execArgs": [ - 0, - 1 - ], - "conditions": { - "next": "=", - "If Larger": ">", - "If Smaller": "<" - } - }, - "set_reg": { - "js": "setReg", - "type": "operator", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ] - }, - "set_comp_reg": { - "js": "setCompReg", - "type": "function", - "inArgs": [ - 0, - 1, - 2 - ], - "optional": 2 - }, - "get_comp_reg": { - "js": "getCompReg", - "type": "function", - "inArgs": [ - 0, - 2 - ], - "outArgs": [ - 1 - ], - "optional": 1 - }, - "set_number": { - "js": "setNumber", - "type": "function", - "inArgs": [ - 0, - 1 - ], - "outArgs": [ - 2 - ] - }, - "combine_coordinate": { - "js": "combineCoordinate", - "type": "function", - "inArgs": [ - 0, - 1 - ], - "outArgs": [ - 2 - ] - }, - "separate_coordinate": { - "js": "separateCoordinate", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1, - 2 - ] - }, - "combine_register": { - "js": "combineRegister", - "type": "function", - "inArgs": [ - 0, - 1, - 3, - 4 - ], - "outArgs": [ - 2 - ], - "optional": 0 - }, - "separate_register": { - "js": "separateRegister", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1, - 2, - 3, - 4, - 5 - ] - }, - "add": { - "type": "function", - "inArgs": [ - 0, - 1 - ], - "outArgs": [ - 2 - ] - }, - "sub": { - "type": "function", - "inArgs": [ - 0, - 1 - ], - "outArgs": [ - 2 - ] - }, - "mul": { - "type": "function", - "inArgs": [ - 0, - 1 - ], - "outArgs": [ - 2 - ] - }, - "div": { - "type": "function", - "inArgs": [ - 0, - 1 - ], - "outArgs": [ - 2 - ] - }, - "modulo": { - "type": "function", - "inArgs": [ - 0, - 1 - ], - "outArgs": [ - 2 - ] - }, - "getfreespace": { - "type": "method", - "inArgs": [ - 0, - 2 - ], - "outArgs": [ - 1 - ], - "thisArg": 2 - }, - "checkfreespace": { - "js": "haveFreeSpace", - "type": "function", - "inArgs": [ - 1 - ], - "execArgs": [ - 0 - ], - "conditions": { - "Can't Fit": false, - "next": true - } - }, - "lock_slots": { - "js": "lockSlots", - "type": "function", - "inArgs": [ - 0, - 1 - ] - }, - "unlock_slots": { - "js": "unlockSlots", - "type": "function", - "inArgs": [ - 0 - ] - }, - "get_health": { - "js": "getHealth", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1, - 2, - 3 - ] - }, - "get_entity_at": { - "js": "getEntityAt", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ] - }, - "get_grid_effeciency": { - "js": "getGridEffeciency", - "type": "function", - "outArgs": [ - 0 - ] - }, - "get_battery": { - "js": "getBattery", - "type": "function", - "outArgs": [ - 0 - ] - }, - "get_self": { - "js": "getSelf", - "type": "function", - "outArgs": [ - 0 - ] - }, - "read_signal": { - "js": "readSignal", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ] - }, - "read_radio": { - "js": "readRadio", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ] - }, - "for_signal": { - "js": "deprecatedSignals", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ], - "execArgs": [ - 2 - ], - "loop": true, - "conditions": { - "next": true, - "Done": false - } - }, - "for_signal_match": { - "js": "matchingSignals", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1, - 2 - ], - "execArgs": [ - 3 - ], - "loop": true, - "conditions": { - "next": true, - "Done": false - } - }, - "check_altitude": { - "js": "altitude", - "type": "property", - "inArgs": [ - 0 - ], - "execArgs": [ - 1, - 2 - ], - "conditions": { - "next": false, - "Valley": "Valley", - "Plateau": "Plateau" - }, - "thisArg": 0 - }, - "check_blightness": { - "js": "inBlight", - "type": "property", - "inArgs": [ - 0 - ], - "execArgs": [ - 1 - ], - "conditions": { - "Blight": true, - "next": false - }, - "thisArg": 0 - }, - "check_health": { - "js": "fullHealth", - "type": "method", - "inArgs": [ - 1 - ], - "execArgs": [ - 0 - ], - "conditions": { - "Full": true, - "next": false - }, - "thisArg": 1 - }, - "check_battery": { - "js": "fullBattery", - "type": "method", - "inArgs": [ - 1 - ], - "execArgs": [ - 0 - ], - "conditions": { - "Full": true, - "next": false - }, - "thisArg": 1 - }, - "check_grid_effeciency": { - "js": "fullGridEfficiency", - "type": "method", - "inArgs": [ - 1 - ], - "execArgs": [ - 0 - ], - "conditions": { - "Full": true, - "next": false - }, - "thisArg": 1 - }, - "count_item": { - "js": "count", - "type": "method", - "inArgs": [ - 0, - 2 - ], - "outArgs": [ - 1 - ], - "aliases": [ - { - "js": "countReserved", - "c": 2 - } - ], - "thisArg": 2 - }, - "count_slots": { - "js": "countAllSlots", - "type": "method", - "inArgs": [ - 1 - ], - "outArgs": [ - 0 - ], - "aliases": [ - { - "js": "countStorageSlots", - "c": 2 - }, - { - "js": "countGasSlots", - "c": 3 - }, - { - "js": "countVirusSlots", - "c": 4 - }, - { - "js": "countAnomolySlots", - "c": 5 - } - ], - "thisArg": 1 - }, - "get_max_stack": { - "js": "getMaxStack", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ] - }, - "have_item": { - "js": "hasItem", - "type": "method", - "inArgs": [ - 0, - 2 - ], - "execArgs": [ - 1 - ], - "thisArg": 2, - "autoself": true, - "conditions": { - "Have Item": true, - "next": false - } - }, - "equip_component": { - "js": "equip", - "type": "function", - "inArgs": [ - 1, - 2 - ], - "execArgs": [ - 0 - ], - "optional": 1, - "conditions": { - "No Component": false, - "next": true - } - }, - "unequip_component": { - "js": "unequip", - "type": "function", - "inArgs": [ - 1, - 2 - ], - "execArgs": [ - 0 - ], - "optional": 1, - "conditions": { - "No Component": false, - "next": true - } - }, - "get_closest_entity": { - "js": "getClosestEntity", - "type": "function", - "inArgs": [ - 0, - 1, - 2 - ], - "outArgs": [ - 3 - ] - }, - "match": { - "type": "method", - "inArgs": [ - 0, - 1, - 2, - 3 - ], - "execArgs": [ - 4 - ], - "conditions": { - "Failed": false, - "next": true - }, - "thisArg": 0 - }, - "switch": { - "type": "operator", - "inArgs": [ - 0, - 1, - 3, - 5, - 7, - 9 - ], - "execArgs": [ - 2, - 4, - 6, - 8, - 10 - ], - "conditions": { - "1": "1", - "2": "2", - "3": "3", - "4": "4", - "5": "5", - "next": "Default" - } - }, - "dodrop": { - "js": "drop", - "type": "function", - "inArgs": [ - 0, - 1 - ], - "optional": 1, - "aliases": [ - { - "js": "dropSpecificAmount", - "c": 1 - } - ] - }, - "dopickup": { - "js": "pickup", - "type": "function", - "inArgs": [ - 0, - 1 - ], - "optional": 1 - }, - "request_item": { - "js": "requestItem", - "type": "function", - "inArgs": [ - 0 - ] - }, - "order_to_shared_storage": { - "js": "orderToSharedStorage", - "type": "function" - }, - "request_wait": { - "js": "requestWait", - "type": "function", - "inArgs": [ - 0 - ] - }, - "get_resource_num": { - "js": "getResourceNum", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ] - }, - "get_inventory_item": { - "js": "firstInventoryItem", - "type": "function", - "outArgs": [ - 0 - ], - "execArgs": [ - 1 - ], - "conditions": { - "next": true, - "No Items": false - } - }, - "get_inventory_item_index": { - "js": "getInventoryItem", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ], - "execArgs": [ - 2 - ], - "conditions": { - "next": true, - "No Item": false - } - }, - "for_inventory_item": { - "js": "inventoryItems", - "type": "function", - "outArgs": [ - 0, - 2, - 3, - 4, - 5 - ], - "execArgs": [ - 1 - ], - "loop": true, - "conditions": { - "next": true, - "Done": false - } - }, - "for_recipe_ingredients": { - "js": "recipieIngredients", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ], - "execArgs": [ - 2 - ], - "loop": true, - "conditions": { - "next": true, - "Done": false - } - }, - "get_distance": { - "js": "getDistance", - "type": "method", - "inArgs": [ - 0, - 2 - ], - "outArgs": [ - 1 - ], - "thisArg": 2 - }, - "order_transfer": { - "js": "orderTransfer", - "type": "function", - "inArgs": [ - 0, - 1 - ] - }, - "is_same_grid": { - "js": "sameGrid", - "type": "method", - "inArgs": [ - 0, - 1 - ], - "execArgs": [ - 2 - ], - "conditions": { - "next": true, - "Different": false - }, - "thisArg": 0 - }, - "is_moving": { - "js": "isMoving", - "type": "property", - "inArgs": [ - 3 - ], - "execArgs": [ - 0, - 1, - 2 - ], - "thisArg": 3, - "conditions": { - "next": "Moving", - "Not Moving": "Not Moving", - "Path Blocked": "Path Blocked", - "No Result": "No Result" - } - }, - "is_fixed": { - "js": "isFixed", - "type": "function", - "inArgs": [ - 0 - ], - "execArgs": [ - 1 - ], - "conditions": { - "next": true, - "Is Fixed": false - } - }, - "is_equipped": { - "js": "isEquipped", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 2 - ], - "execArgs": [ - 1 - ], - "conditions": { - "next": true, - "Component Equipped": false - } - }, - "shutdown": { - "type": "function" - }, - "turnon": { - "type": "function" - }, - "connect": { - "type": "function" - }, - "disconnect": { - "type": "function" - }, - "enable_transport_route": { - "js": "enableTransportRoute", - "type": "function" - }, - "disable_transport_route": { - "js": "disableTransportRoute", - "type": "function" - }, - "sort_storage": { - "js": "sortStorage", - "type": "function" - }, - "unpackage_all": { - "js": "unpackageAll", - "type": "function", - "inArgs": [ - 0 - ], - "thisArg": 0 - }, - "package_all": { - "js": "packageAll", - "type": "function", - "inArgs": [ - 0 - ], - "thisArg": 0 - }, - "solve": { - "type": "method", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ], - "execArgs": [ - 2 - ], - "conditions": { - "Failed": true, - "next": false - }, - "thisArg": 0 - }, - "stop": { - "type": "function" - }, - "get_location": { - "js": "getLocation", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ] - }, - "move_east": { - "js": "moveEast", - "type": "function", - "inArgs": [ - 0 - ] - }, - "move_west": { - "js": "moveWest", - "type": "function", - "inArgs": [ - 0 - ] - }, - "move_north": { - "js": "moveNorth", - "type": "function", - "inArgs": [ - 0 - ] - }, - "move_south": { - "js": "moveSouth", - "type": "function", - "inArgs": [ - 0 - ] - }, - "domove_async": { - "js": "domoveAsync", - "type": "function", - "inArgs": [ - 0 - ] - }, - "domove": { - "type": "function", - "inArgs": [ - 0 - ] - }, - "domove_range": { - "js": "domoveRange", - "type": "function", - "inArgs": [ - 0 - ] - }, - "moveaway_range": { - "js": "moveawayRange", - "type": "function", - "inArgs": [ - 0 - ] - }, - "scout": { - "type": "function" - }, - "scan": { - "js": "radar", - "type": "function", - "inArgs": [ - 0, - 1, - 2 - ], - "outArgs": [ - 3 - ], - "execArgs": [ - 4 - ], - "conditions": { - "next": true, - "No Result": false - } - }, - "mine": { - "type": "function", - "inArgs": [ - 0 - ], - "execArgs": [ - 1, - 2 - ], - "conditions": { - "next": "ok", - "Cannot Mine": "unable", - "Full": "full" - } - }, - "get_stability": { - "js": "getStability", - "type": "function", - "outArgs": [ - 0 - ] - }, - "percent_value": { - "js": "percentValue", - "type": "function", - "inArgs": [ - 0, - 1 - ], - "outArgs": [ - 2 - ] - }, - "remap_value": { - "js": "remapValue", - "type": "function", - "inArgs": [ - 0, - 1, - 2, - 3, - 4 - ], - "outArgs": [ - 5 - ] - }, - "is_daynight": { - "js": "daytime", - "type": "function", - "execArgs": [ - 0, - 1 - ], - "aliases": [ - { - "js": "nighttime", - "conditions": { - "Day": false, - "Night": true - } - } - ], - "conditions": { - "Day": true, - "Night": false - } - }, - "faction_item_amount": { - "js": "factionItemAmount", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ], - "execArgs": [ - 2 - ], - "conditions": { - "next": true, - "None": false - } - }, - "readkey": { - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ] - }, - "can_produce": { - "js": "canProduce", - "type": "function", - "inArgs": [ - 1 - ], - "execArgs": [ - 0 - ], - "conditions": { - "Can Produce": true, - "next": false - } - }, - "get_ingredients": { - "js": "getIngredients", - "type": "function", - "inArgs": [ - 0 - ], - "outArgs": [ - 1, - 2, - 3 - ] - }, - "notify": { - "type": "function", - "inArgs": [ - 0 - ], - "aliases": [ - { - "txt": true, - "inArgs": [] - }, - { - "txt": true - } - ] - }, - "get_resource_item": { - "js": "resourceType", - "type": "property", - "inArgs": [ - 0 - ], - "outArgs": [ - 1 - ], - "execArgs": [ - 2 - ], - "conditions": { - "next": true, - "Not Resource": false - }, - "thisArg": 0 - }, - "gettrust": { - "js": "trust", - "type": "property", - "inArgs": [ - 3 - ], - "execArgs": [ - 0, - 1, - 2 - ], - "conditions": { - "next": false, - "Ally": "ally", - "Neutral": "neutral", - "Enemy": "enemy" - }, - "thisArg": 3 - }, - "gethome": { - "type": "function", - "outArgs": [ - 0 - ] - }, - "ping": { - "type": "function", - "inArgs": [ - 0 - ] - }, - "build": { - "type": "function", - "inArgs": [ - 0, - 1 - ], - "execArgs": [ - 2 - ], - "bp": true, - "optional": 1, - "conditions": { - "next": true, - "Construction Failed": false - } - }, - "produce": { - "type": "function", - "bp": true - }, - "set_signpost": { - "js": "setSignpost", - "type": "function", - "txt": true - }, - "launch": { - "type": "function" - }, - "land": { - "type": "function" - }, - "gather_information": { - "js": "gatherInformation", - "type": "function", - "inArgs": [ - 0 - ] - }, - "make_carrier": { - "js": "makeCarrier", - "type": "function", - "inArgs": [ - 0 - ], - "execArgs": [ - 1 - ], - "conditions": { - "next": true, - "If Working": false - } - }, - "make_miner": { - "js": "makeMiner", - "type": "function", - "inArgs": [ - 0 - ], - "execArgs": [ - 1 - ], - "conditions": { - "next": true, - "If Working": false - } - }, - "serve_construction": { - "js": "serveConstruction", - "type": "function", - "execArgs": [ - 0 - ], - "conditions": { - "next": true, - "If Working": false - } - }, - "make_producer": { - "js": "makeProducer", - "type": "function", - "inArgs": [ - 0, - 1, - 2, - 3 - ], - "execArgs": [ - 4 - ], - "conditions": { - "next": true, - "If Working": false - } - }, - "make_turret_bots": { - "js": "makeTurretBots", - "type": "function", - "inArgs": [ - 0 - ], - "execArgs": [ - 1 - ], - "conditions": { - "next": true, - "If Working": false - } - } -}; - -// decompile/disasm.ts -var Disassembler = class { - constructor(obj) { - this.output = []; - this.extraBehaviors = []; - this.subs = []; - this.bps = []; - this.nextLabel = 0; - this.#label("main"); - if ("frame" in obj) { - this.blueprint(obj); - } else { - this.disasemble(obj); - } - this.#doExtras(); - } - code() { - return this.output.join("\n"); - } - blueprint(obj) { - this.#emit(".blueprint", obj.frame); - if (obj.name) { - this.#emit(".name", obj.name); - } - if (obj.powered_down) { - this.#emit(".powered_down"); - } - if (obj.disconnected) { - this.#emit(".disconnected"); - } - if (obj.logistics) { - for (const [k, v] of Object.entries(obj.logistics)) { - this.#emit(`.logistics`, k, v); - } - } - if (obj.regs) { - for (const [k, v] of Object.entries(obj.regs)) { - this.#emit(`.reg`, Number(k), v); - } - } - obj.locks?.forEach?.( - (v, i) => typeof v === "string" && this.#emit(`.lock`, i, { id: v }) - ); - if (obj.links) { - for (const [k, v] of obj.links) { - this.#emit(`.link`, k, v); - } - } - if (obj.components) { - for (const [v, k, code] of obj.components) { - if (code) { - this.extraBehaviors.push({ t: code, done: false }); - this.#emit( - `.component`, - k, - { id: v }, - `:behavior${this.extraBehaviors.length}` - ); - } else { - this.#emit(`.component`, k, { id: v }); - } - } - } - } - disasemble(obj, main = "main") { - if (obj.name) { - this.#emit(".name", obj.name); - } - obj.parameters?.forEach((v, i) => { - let name = obj.pnames?.[i]; - const reg = { id: `p${i + 1}` }; - if (name) { - this.#emit(".pname", reg, name); - } - if (v) { - this.#emit(".out", reg); - } - }); - const subOffset = this.subs.length; - if (obj.subs) { - for (const sub of obj.subs) { - this.subs.push({ t: sub, done: false }); - } - } - const labels = this.#buildLabels(obj); - for (let i = 0; `${i}` in obj; i++) { - this.#emitInstr(obj[`${i}`], i, labels, subOffset, main); - } - } - #buildLabels(obj) { - const labels = /* @__PURE__ */ new Map(); - for (let i = 0; `${i}` in obj; i++) { - const inst = obj[`${i}`]; - if (inst.next && !labels.has(inst.next)) { - labels.set(inst.next, `:label${this.nextLabel++}`); - } - const def = instructions[inst.op]; - if (def?.execArgs) { - for (const arg of def.execArgs) { - const target = inst[arg] ?? i + 2; - if (target && typeof target == "number" && !labels.has(target) && obj[`${target - 1}`]) { - labels.set(target, `:label${this.nextLabel++}`); - inst[arg] = labels.get(target); - } - } - } - } - return labels; - } - #emitInstr(inst, ip, labels, subOffset, main) { - const label = labels.get(ip + 1); - if (label) - this.#label(label.substring(1)); - if (inst.cmt) { - this.#nl(); - this.#emit(`; ${inst.cmt}`); - } - const args = []; - for (const [k, v] of Object.entries(inst)) { - if (k == `${Number(k)}`) { - args[Number(k)] = this.#convertOp(v); - } - } - if (inst.op == "call") { - const sub = inst.sub; - const subLabel = sub ? `:sub${subOffset + sub}` : `:${main}`; - args.push({ id: `$sub=${subLabel}` }); - } - if (inst.txt) { - args.push({ id: `$txt=${JSON.stringify(inst.txt)}` }); - } else if (inst.c != null) { - args.push({ id: `$c=${inst.c}` }); - } else if (inst.bp) { - if (typeof inst.bp == "string") { - inst.bp = DesyncedStringToObject("DSB" + inst.bp); - } - this.bps.push({ t: inst.bp, done: false }); - args.push({ id: `$bp=:bp${this.bps.length}` }); - } - if (inst.nx != null && inst.ny != null) { - args.push({ id: `$nx=${inst.nx}` }); - args.push({ id: `$ny=${inst.ny}` }); - } - this.#emit(inst.op, ...args); - if (inst.next == false) { - this.#emit(".ret"); - } else if (inst.next) { - this.#emit("jump", labels.get(inst.next)); - } - } - #convertOp(op) { - if (typeof op == "string") { - if (op.match(/^[A-Z]$/)) { - return { id: op }; - } - return op; - } else if (typeof op == "number") { - if (op > 0) { - return { id: `p${op}` }; - } else { - switch (-op) { - case 1: - return { id: "goto" }; - case 2: - return { id: "store" }; - case 3: - return { id: "visual" }; - case 4: - return { id: "signal" }; - } - } - } - return op; - } - #doExtras() { - let count = 0; - do { - count = 0; - this.extraBehaviors.forEach((w, i) => { - if (!w.done) { - this.#nl(2); - this.#label(`behavior${i + 1}`); - this.#emit(".behavior"); - this.disasemble(w.t, `behavior${i + 1}`); - w.done = true; - count++; - } - }); - this.subs.forEach((w, i) => { - if (!w.done) { - this.#nl(2); - this.#label(`sub${i + 1}`); - this.#emit(".sub"); - this.disasemble(w.t); - w.done = true; - count++; - } - }); - this.bps.forEach((w, i) => { - if (!w.done) { - this.#nl(2); - this.#label(`bp${i + 1}`); - this.blueprint(w.t); - w.done = true; - count++; - } - }); - } while (count); - } - #nl(count = 1) { - for (let i = 0; i < count; i++) { - this.output.push(""); - } - } - #label(label) { - this.output.push(`${label}:`); - } - #emit(op, ...args) { - this.output.push( - ` ${op} ${args.map((x) => this.#convert(x)).join(", ")}` - ); - } - #convert(x) { - if (typeof x === "string") { - if (x[0] == ":") { - return x; - } - return JSON.stringify(x); - } else if (typeof x === "number") { - return x.toString(); - } else if (typeof x === "boolean") { - return x ? "true" : "false"; - } else if (x == null) { - return "nil"; - } else if (typeof x != "object") { - throw new Error(`Unrecognized type: ${typeof x}`); - } - const keys = new Set(Object.keys(x)); - for (const k of keys) { - if (x[k] == void 0) { - keys.delete(k); - } - } - if (keys.size == 1) { - switch (Object.keys(x)[0]) { - case "id": - return x.id; - case "num": - return x.num.toString(); - case "coord": - return `${x.coord.x} ${x.coord.y}`; - } - } else if (keys.size == 2 && keys.has("id") && keys.has("num")) { - return `${x.id}@${x.num}`; - } - throw new Error(`Unrecognized argument: ${JSON.stringify(x)}`); - } -}; - -// methods.ts -var methods = { - "nop": { - "id": "nop" - }, - "call": { - "id": "call" - }, - "last": { - "id": "last" - }, - "exit": { - "id": "exit" - }, - "unlock": { - "id": "unlock" - }, - "lock": { - "id": "lock" - }, - "label": { - "id": "label", - "in": [ - 0 - ] - }, - "jump": { - "id": "jump", - "in": [ - 0 - ] - }, - "wait": { - "id": "wait", - "in": [ - 0 - ] - }, - "compareItem": { - "id": "compare_item", - "exec": { - "true": "next", - "false": 0 - }, - "in": [ - 1, - 2 - ] - }, - "compareEntity": { - "id": "compare_entity", - "exec": { - "true": "next", - "false": 0 - }, - "in": [ - 1, - 2 - ] - }, - "isA": { - "id": "is_a", - "thisArg": 1, - "exec": { - "true": "next", - "false": 0 - }, - "in": [ - 1, - 2 - ] - }, - "getType": { - "id": "get_type", - "in": [ - 0 - ], - "out": 1 - }, - "type": { - "id": "value_type", - "thisArg": 0, - "exec": { - "No Match": "next", - "Item": 1, - "Entity": 2, - "Component": 3, - "Tech": 4, - "Value": 5, - "Coord": 6 - }, - "in": [ - 0 - ] - }, - "getFirstLocked0": { - "id": "get_first_locked_0", - "out": 0 - }, - "unitType": { - "id": "unit_type", - "thisArg": 0, - "exec": { - "No Unit": "next", - "Building": 1, - "Bot": 2, - "Construction": 3 - }, - "in": [ - 0 - ] - }, - "selectNearest": { - "id": "select_nearest", - "exec": { - "next": "next", - "A": 0, - "B": 1 - }, - "in": [ - 2, - 3 - ], - "out": 4 - }, - "nearerThan": { - "id": "select_nearest", - "thisArg": 2, - "exec": { - "true": 0, - "false": 1 - }, - "in": [ - 2, - 3 - ] - }, - "entitiesInRange": { - "id": "for_entities_in_range", - "loop": true, - "exec": { - "true": "next", - "false": 5 - }, - "in": [ - 0, - 1, - 2, - 3 - ], - "out": 4 - }, - "availableResearch": { - "id": "for_research", - "loop": true, - "exec": { - "true": "next", - "false": 1 - }, - "out": 0 - }, - "getResearch": { - "id": "get_research", - "out": 0 - }, - "setResearch": { - "id": "set_research", - "in": [ - 0 - ] - }, - "clearResearch": { - "id": "clear_research", - "in": [ - 0 - ] - }, - "checkNumber": { - "id": "check_number", - "exec": { - "=": "next", - ">": 0, - "<": 1 - }, - "in": [ - 2, - 3 - ] - }, - "setReg": { - "id": "set_reg", - "in": [ - 0 - ], - "out": 1 - }, - "setCompReg": { - "id": "set_comp_reg", - "in": [ - 0, - 1, - 2 - ] - }, - "getCompReg": { - "id": "get_comp_reg", - "in": [ - 0, - 2 - ], - "out": 1 - }, - "setNumber": { - "id": "set_number", - "in": [ - 0, - 1 - ], - "out": 2 - }, - "combineCoordinate": { - "id": "combine_coordinate", - "in": [ - 0, - 1 - ], - "out": 2 - }, - "separateCoordinate": { - "id": "separate_coordinate", - "in": [ - 0 - ], - "out": [ - 1, - 2 - ] - }, - "combineRegister": { - "id": "combine_register", - "in": [ - 0, - 1, - 3, - 4 - ], - "out": 2 - }, - "separateRegister": { - "id": "separate_register", - "in": [ - 0 - ], - "out": [ - 1, - 2, - 3, - 4, - 5 - ] - }, - "add": { - "id": "add", - "in": [ - 0, - 1 - ], - "out": 2 - }, - "sub": { - "id": "sub", - "in": [ - 0, - 1 - ], - "out": 2 - }, - "mul": { - "id": "mul", - "in": [ - 0, - 1 - ], - "out": 2 - }, - "div": { - "id": "div", - "in": [ - 0, - 1 - ], - "out": 2 - }, - "modulo": { - "id": "modulo", - "in": [ - 0, - 1 - ], - "out": 2 - }, - "getfreespace": { - "id": "getfreespace", - "thisArg": 2, - "in": [ - 0, - 2 - ], - "out": 1 - }, - "haveFreeSpace": { - "id": "checkfreespace", - "exec": { - "false": 0, - "true": "next" - }, - "in": [ - 1 - ] - }, - "lockSlots": { - "id": "lock_slots", - "in": [ - 0, - 1 - ] - }, - "unlockSlots": { - "id": "unlock_slots", - "in": [ - 0 - ] - }, - "getHealth": { - "id": "get_health", - "in": [ - 0 - ], - "out": [ - 1, - 2, - 3 - ] - }, - "getEntityAt": { - "id": "get_entity_at", - "in": [ - 0 - ], - "out": 1 - }, - "getGridEffeciency": { - "id": "get_grid_effeciency", - "out": 0 - }, - "getBattery": { - "id": "get_battery", - "out": 0 - }, - "getSelf": { - "id": "get_self", - "out": 0 - }, - "readSignal": { - "id": "read_signal", - "in": [ - 0 - ], - "out": 1 - }, - "readRadio": { - "id": "read_radio", - "in": [ - 0 - ], - "out": 1 - }, - "deprecatedSignals": { - "id": "for_signal", - "loop": true, - "exec": { - "true": "next", - "false": 2 - }, - "in": [ - 0 - ], - "out": 1 - }, - "matchingSignals": { - "id": "for_signal_match", - "loop": true, - "exec": { - "true": "next", - "false": 3 - }, - "in": [ - 0 - ], - "out": [ - 1, - 2 - ] - }, - "altitude": { - "id": "check_altitude", - "thisArg": 0, - "exec": { - "false": "next", - "Valley": 1, - "Plateau": 2 - }, - "in": [ - 0 - ] - }, - "inBlight": { - "id": "check_blightness", - "thisArg": 0, - "exec": { - "true": 1, - "false": "next" - }, - "in": [ - 0 - ] - }, - "fullHealth": { - "id": "check_health", - "thisArg": 1, - "exec": { - "true": 0, - "false": "next" - }, - "in": [ - 1 - ] - }, - "fullBattery": { - "id": "check_battery", - "thisArg": 1, - "exec": { - "true": 0, - "false": "next" - }, - "in": [ - 1 - ] - }, - "fullGridEfficiency": { - "id": "check_grid_effeciency", - "thisArg": 1, - "exec": { - "true": 0, - "false": "next" - }, - "in": [ - 1 - ] - }, - "count": { - "id": "count_item", - "thisArg": 2, - "in": [ - 0, - 2 - ], - "out": 1 - }, - "countReserved": { - "id": "count_item", - "thisArg": 2, - "c": 2, - "in": [ - 0, - 2 - ], - "out": 1 - }, - "countAllSlots": { - "id": "count_slots", - "thisArg": 1, - "in": [ - 1 - ], - "out": 0 - }, - "countStorageSlots": { - "id": "count_slots", - "thisArg": 1, - "c": 2, - "in": [ - 1 - ], - "out": 0 - }, - "countGasSlots": { - "id": "count_slots", - "thisArg": 1, - "c": 3, - "in": [ - 1 - ], - "out": 0 - }, - "countVirusSlots": { - "id": "count_slots", - "thisArg": 1, - "c": 4, - "in": [ - 1 - ], - "out": 0 - }, - "countAnomolySlots": { - "id": "count_slots", - "thisArg": 1, - "c": 5, - "in": [ - 1 - ], - "out": 0 - }, - "getMaxStack": { - "id": "get_max_stack", - "in": [ - 0 - ], - "out": 1 - }, - "hasItem": { - "id": "have_item", - "thisArg": 2, - "autoSelf": true, - "exec": { - "true": 1, - "false": "next" - }, - "in": [ - 0, - 2 - ] - }, - "equip": { - "id": "equip_component", - "exec": { - "false": 0, - "true": "next" - }, - "in": [ - 1, - 2 - ] - }, - "unequip": { - "id": "unequip_component", - "exec": { - "false": 0, - "true": "next" - }, - "in": [ - 1, - 2 - ] - }, - "getClosestEntity": { - "id": "get_closest_entity", - "in": [ - 0, - 1, - 2 - ], - "out": 3 - }, - "match": { - "id": "match", - "thisArg": 0, - "exec": { - "false": 4, - "true": "next" - }, - "in": [ - 0, - 1, - 2, - 3 - ] - }, - "switch": { - "id": "switch", - "exec": { - "1": 2, - "2": 4, - "3": 6, - "4": 8, - "5": 10, - "Default": "next" - }, - "in": [ - 0, - 1, - 3, - 5, - 7, - 9 - ] - }, - "drop": { - "id": "dodrop", - "in": [ - 0, - 1 - ] - }, - "dropSpecificAmount": { - "id": "dodrop", - "c": 1, - "in": [ - 0, - 1 - ] - }, - "pickup": { - "id": "dopickup", - "in": [ - 0, - 1 - ] - }, - "requestItem": { - "id": "request_item", - "in": [ - 0 - ] - }, - "orderToSharedStorage": { - "id": "order_to_shared_storage" - }, - "requestWait": { - "id": "request_wait", - "in": [ - 0 - ] - }, - "getResourceNum": { - "id": "get_resource_num", - "in": [ - 0 - ], - "out": 1 - }, - "firstInventoryItem": { - "id": "get_inventory_item", - "exec": { - "true": "next", - "false": 1 - }, - "out": 0 - }, - "getInventoryItem": { - "id": "get_inventory_item_index", - "exec": { - "true": "next", - "false": 2 - }, - "in": [ - 0 - ], - "out": 1 - }, - "inventoryItems": { - "id": "for_inventory_item", - "loop": true, - "exec": { - "true": "next", - "false": 1 - }, - "out": [ - 0, - 2, - 3, - 4, - 5 - ] - }, - "recipieIngredients": { - "id": "for_recipe_ingredients", - "loop": true, - "exec": { - "true": "next", - "false": 2 - }, - "in": [ - 0 - ], - "out": 1 - }, - "getDistance": { - "id": "get_distance", - "thisArg": 2, - "in": [ - 0, - 2 - ], - "out": 1 - }, - "orderTransfer": { - "id": "order_transfer", - "in": [ - 0, - 1 - ] - }, - "sameGrid": { - "id": "is_same_grid", - "thisArg": 0, - "exec": { - "true": "next", - "false": 2 - }, - "in": [ - 0, - 1 - ] - }, - "isMoving": { - "id": "is_moving", - "thisArg": 3, - "exec": { - "Moving": "next", - "Not Moving": 0, - "Path Blocked": 1, - "No Result": 2 - }, - "in": [ - 3 - ] - }, - "isFixed": { - "id": "is_fixed", - "exec": { - "true": "next", - "false": 1 - }, - "in": [ - 0 - ] - }, - "isEquipped": { - "id": "is_equipped", - "exec": { - "true": "next", - "false": 1 - }, - "in": [ - 0 - ], - "out": 2 - }, - "shutdown": { - "id": "shutdown" - }, - "turnon": { - "id": "turnon" - }, - "connect": { - "id": "connect" - }, - "disconnect": { - "id": "disconnect" - }, - "enableTransportRoute": { - "id": "enable_transport_route" - }, - "disableTransportRoute": { - "id": "disable_transport_route" - }, - "sortStorage": { - "id": "sort_storage" - }, - "unpackageAll": { - "id": "unpackage_all", - "thisArg": 0, - "in": [ - 0 - ] - }, - "packageAll": { - "id": "package_all", - "thisArg": 0, - "in": [ - 0 - ] - }, - "solve": { - "id": "solve", - "thisArg": 0, - "exec": { - "true": 2, - "false": "next" - }, - "in": [ - 0 - ], - "out": 1 - }, - "stop": { - "id": "stop" - }, - "getLocation": { - "id": "get_location", - "in": [ - 0 - ], - "out": 1 - }, - "moveEast": { - "id": "move_east", - "in": [ - 0 - ] - }, - "moveWest": { - "id": "move_west", - "in": [ - 0 - ] - }, - "moveNorth": { - "id": "move_north", - "in": [ - 0 - ] - }, - "moveSouth": { - "id": "move_south", - "in": [ - 0 - ] - }, - "domoveAsync": { - "id": "domove_async", - "in": [ - 0 - ] - }, - "domove": { - "id": "domove", - "in": [ - 0 - ] - }, - "domoveRange": { - "id": "domove_range", - "in": [ - 0 - ] - }, - "moveawayRange": { - "id": "moveaway_range", - "in": [ - 0 - ] - }, - "scout": { - "id": "scout" - }, - "radar": { - "id": "scan", - "exec": { - "true": "next", - "false": 4 - }, - "in": [ - 0, - 1, - 2 - ], - "out": 3 - }, - "mine": { - "id": "mine", - "exec": { - "ok": "next", - "unable": 1, - "full": 2 - }, - "in": [ - 0 - ] - }, - "getStability": { - "id": "get_stability", - "out": 0 - }, - "percentValue": { - "id": "percent_value", - "in": [ - 0, - 1 - ], - "out": 2 - }, - "remapValue": { - "id": "remap_value", - "in": [ - 0, - 1, - 2, - 3, - 4 - ], - "out": 5 - }, - "daytime": { - "id": "is_daynight", - "exec": { - "true": 0, - "false": 1 - } - }, - "nighttime": { - "id": "is_daynight", - "exec": { - "false": 0, - "true": 1 - } - }, - "factionItemAmount": { - "id": "faction_item_amount", - "exec": { - "true": "next", - "false": 2 - }, - "in": [ - 0 - ], - "out": 1 - }, - "readkey": { - "id": "readkey", - "in": [ - 0 - ], - "out": 1 - }, - "canProduce": { - "id": "can_produce", - "exec": { - "true": 0, - "false": "next" - }, - "in": [ - 1 - ] - }, - "getIngredients": { - "id": "get_ingredients", - "in": [ - 0 - ], - "out": [ - 1, - 2, - 3 - ] - }, - "notify": { - "id": "notify", - "special": "txt", - "in": [ - 0 - ] - }, - "resourceType": { - "id": "get_resource_item", - "thisArg": 0, - "exec": { - "true": "next", - "false": 2 - }, - "in": [ - 0 - ], - "out": 1 - }, - "trust": { - "id": "gettrust", - "thisArg": 3, - "exec": { - "false": "next", - "ally": 0, - "neutral": 1, - "enemy": 2 - }, - "in": [ - 3 - ] - }, - "gethome": { - "id": "gethome", - "out": 0 - }, - "ping": { - "id": "ping", - "in": [ - 0 - ] - }, - "build": { - "id": "build", - "special": "bp", - "exec": { - "true": "next", - "false": 2 - }, - "in": [ - 0, - 1 - ] - }, - "produce": { - "id": "produce", - "special": "bp" - }, - "setSignpost": { - "id": "set_signpost", - "special": "txt" - }, - "launch": { - "id": "launch" - }, - "land": { - "id": "land" - }, - "gatherInformation": { - "id": "gather_information", - "in": [ - 0 - ] - }, - "makeCarrier": { - "id": "make_carrier", - "exec": { - "true": "next", - "false": 1 - }, - "in": [ - 0 - ] - }, - "makeMiner": { - "id": "make_miner", - "exec": { - "true": "next", - "false": 1 - }, - "in": [ - 0 - ] - }, - "serveConstruction": { - "id": "serve_construction", - "exec": { - "true": "next", - "false": 0 - } - }, - "makeProducer": { - "id": "make_producer", - "exec": { - "true": "next", - "false": 4 - }, - "in": [ - 0, - 1, - 2, - 3 - ] - }, - "makeTurretBots": { - "id": "make_turret_bots", - "exec": { - "true": "next", - "false": 1 - }, - "in": [ - 0 - ] - } -}; - -// assembler.ts -var ops = {}; -for (const op of Object.values(methods)) { - ops[op.id] = op; -} -var numberLiteralPattern = String.raw`-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?`; -var numberLiteralExactPattern = new RegExp(`^${numberLiteralPattern}$`); -var itemNumPattern = new RegExp(`^(w+)@(${numberLiteralPattern})$`); -var coordPattern = new RegExp( - `^(${numberLiteralPattern})s+(${numberLiteralPattern})$` -); -var ipJumpPattern = /^:(\d+)$/; -function parseAssembly(code) { - const instructions2 = []; - const lines = code.split("\n"); - let comment; - let labels = []; - for (let i = 0; i < lines.length; i++) { - let line = lines[i].trim(); - const strings = /* @__PURE__ */ new Map(); - line = line.replace( - /"(?:\\(?:["\\\/bfnrt]|u[a-fA-F0-9]{4})|[^"\\\0-\x1F\x7F]+)*"/g, - (s) => { - let key = `$s${strings.size}`; - strings.set(key, JSON.parse(s)); - return key; - } - ); - const commentStart = line.indexOf(";"); - if (commentStart >= 0) { - comment = line.substring(commentStart + 1).trim(); - line = line.substring(0, commentStart).trim(); - } - if (line) { - const [, op, rest] = line.match(/^(\S+)\s*(.*)$/) ?? []; - if (op.endsWith(":")) { - labels.push(op.substring(0, op.length - 1)); - continue; - } - const args = rest?.match(/^\s*$/) ? [] : rest?.split(/\s*,\s*/).map((s) => { - if (s.includes("$s")) { - strings.forEach((v, k) => { - s = s.replace(k, v); - }); - } - return s; - }) ?? []; - const methodInfo = ops[op]; - let outArgs = methodInfo?.out ?? []; - if (typeof outArgs == "number") { - outArgs = [outArgs]; - } - instructions2.push({ - op, - args, - outArgs, - comment, - labels, - lineno: i + 1 - }); - comment = void 0; - labels = []; - } - } - if (comment || labels.length) { - instructions2.push({ - op: ".ret", - args: [], - outArgs: [], - comment, - labels, - lineno: -1 - }); - } - return instructions2; -} -async function assemble(code) { - let instructions2 = parseAssembly(code); - const program = { - main: instructions2, - subs: /* @__PURE__ */ new Map(), - others: /* @__PURE__ */ new Map(), - bps: /* @__PURE__ */ new Map() - }; - for (let i = 0; i < instructions2.length; i++) { - let key; - switch (instructions2[i].op) { - case ".sub": - key = "subs"; - break; - case ".behavior": - if (i == 0) - continue; - key = "others"; - break; - case ".blueprint": - if (i == 0) - continue; - key = "bps"; - break; - } - if (key) { - const label = instructions2[i]?.labels?.[0] ?? instructions2[i + 1]?.labels?.[0]; - if (!label) { - throw new Error( - `No label for ${instructions2[i].op} at line ${instructions2[i].lineno}` - ); - } - instructions2 = instructions2.splice(i, instructions2.length - i); - i = 0; - const group = program[key]; - group.set(label, instructions2); - } - } - const assembler = new Assembler(program); - if (program.main[0]?.op == ".blueprint") { - return assembler.assembleBlueprint(); - } - return assembler.assembleBehavior(); -} -var Assembler = class _Assembler { - // true if parameter is modified, false if read only - constructor(program) { - this.program = program; - this.subs = []; - this.params = []; - this.subs = findReferencedSubs(program.main, program.subs); - } - assembleBlueprint() { - const frame = this.program.main[0].args[0]; - if (typeof frame != "string") { - throw new Error( - `Blueprint frame must be a string at line ${this.program.main[0].lineno}` - ); - } - const bp = { - frame - }; - for (let i = 1; i < this.program.main.length; i++) { - let inst = this.program.main[i]; - switch (inst.op) { - case ".name": - bp.name = inst.args[0]; - break; - case ".powered_down": - bp.powered_down = inst.args[0] == "true"; - break; - case ".disconnected": - bp.disconnected = inst.args[0] == "true"; - break; - case ".logistics": - bp.logistics ??= {}; - bp.logistics[inst.args[0]] = inst.args[1] == "true"; - break; - case ".reg": - bp.regs ??= {}; - const regNo = inst.args[0]; - const value = this.convertArg(inst.args[1]); - bp.regs[regNo] = value; - break; - case ".lock": - bp.locks ??= []; - const lockNo = Number(inst.args[0]); - const type = inst.args[1]; - if (type !== "true" && type !== "false") { - bp.locks[lockNo] = type; - } - break; - case ".link": - bp.links ??= []; - bp.links.push([Number(inst.args[0]), Number(inst.args[1])]); - break; - case ".component": - bp.components ??= []; - const [num, id, code] = inst.args; - if (typeof code === "string" && code.startsWith(":")) { - const behavior = this.program.others.get(code.substring(1)); - if (!behavior) { - throw new Error( - `Behavior ${code} not found at line ${inst.lineno}` - ); - } - const p = new _Assembler({ - ...this.program, - main: behavior - }).assembleBehavior(); - bp.components.push([id, Number(num), p]); - } else { - bp.components.push([id, Number(num)]); - } - } - } - if (bp.locks) { - for (let i = 0; i < bp.locks.length; i++) { - bp.locks[i] ??= false; - } - } - return bp; - } - assembleBehavior() { - const main = this.assembleSub(this.program.main); - if (this.subs.length) { - main.subs = this.subs.map((s) => this.assembleSub(s.instructions)); - } - return main; - } - assembleSub(code) { - const savedParams = this.params; - this.params = []; - try { - const result = {}; - if (code.length == 0 || code[0].op == ".ret") { - return result; - } - const returnLabels = /* @__PURE__ */ new Set(); - const labelAliases = /* @__PURE__ */ new Map(); - for (let i = code.length - 1; i > 0; i--) { - let instr = code[i]; - let prev = code[i - 1]; - let prevInfo = instructions[prev.op]; - if (instr.labels?.length ?? 0 > 0) { - continue; - } - if (prev.op == ".ret" || isPseudoJump(prev) || prevInfo?.terminates) { - code.splice(i, 1); - } - } - const replaceJump = (ip, target) => { - const instr = code[ip]; - if (ip == 0) { - instr.op = "set_reg"; - instr.next = instr.args[0].substring(1); - instr.args = []; - } else { - code[ip - 1].next = target; - code.splice(ip, 1); - } - }; - for (let i = code.length - 1; i >= 0; i--) { - let instr = code[i]; - let nextIndex = instr.args.findIndex((v) => { - let m = v.match(/^\$next=:(\w+)$/); - if (m) { - instr.next = m[1]; - return true; - } - }); - if (nextIndex >= 0) { - instr.args.splice(nextIndex, 1); - } - if (isPseudoJump(instr)) { - if (!instr.args[0]) { - throw new Error(`Invalid jump instruction at line ${instr.lineno}`); - } - if (instr.labels?.length) { - instr.labels?.forEach( - (l) => labelAliases.set(l, instr.args[0].substring(1)) - ); - } - replaceJump(i, instr.args[0].substring(1)); - } else if (instr.op.startsWith(".")) { - switch (instr.op) { - case ".ret": - if (instr.labels?.length) { - instr.labels?.forEach((l) => returnLabels.add(l)); - } else { - replaceJump(i, false); - continue; - } - break; - case ".sub": - case ".behavior": - case ".blueprint": - break; - case ".name": - result.name = instr.args[0]; - break; - case ".pname": { - const [reg, name] = instr.args; - const m = reg.match(/^p(\d)+/); - if (!m) { - throw new Error( - `Unknown parameter register ${reg} at line ${instr.lineno}` - ); - } - result.pnames ??= []; - result.pnames[m[1] - 1] = name; - break; - } - case ".out": { - const [reg] = instr.args; - const m = reg.match(/^p(\d)+/); - if (!m) { - throw new Error( - `Unknown parameter register ${reg} at line ${instr.lineno}` - ); - } - result.parameters ??= []; - result.parameters[m[1] - 1] = true; - break; - } - default: - throw new Error( - `Unknown pseudo instruction ${instr.op} at line ${instr.lineno}` - ); - } - code.splice(i, 1); - } - } - const labelMap = /* @__PURE__ */ new Map(); - for (let i = 0; i < code.length; i++) { - let instr = code[i]; - if (instr.labels?.length) { - instr.labels.forEach((l) => { - if (!labelMap.has(l)) { - labelMap.set(l, i + 1); - } - }); - } - } - returnLabels.forEach((l) => { - labelMap.set(l, false); - }); - labelAliases.forEach((v, k) => { - while (labelAliases.has(v)) { - v = labelAliases.get(v); - } - if (!labelMap.has(v)) { - throw new Error(`Unknown label ${v}`); - } - labelMap.set(k, labelMap.get(v)); - }); - for (let i = 0; i < code.length; i++) { - let instr = code[i]; - result[i] = { - op: instr.op - }; - if (instr.next != null && instr.next != i + 2) { - if (typeof instr.next == "string") { - const resolved = labelMap.get(instr.next); - if (resolved == null) { - throw new Error( - `Unknown label ${instr.next} at line ${instr.lineno}` - ); - } - if (resolved != i + 2) { - result[i].next = resolved; - } - } else { - result[i].next = instr.next; - } - } - if (instr.comment) { - result[i].cmt = instr.comment; - } - instr.args.filter((v) => { - const m = v.match(/^\$(\w+)=(.+)/); - if (m) { - result[i][m[1]] = this.convertArg(m[2], m[1]); - return false; - } - return true; - }).map((v) => { - if (v.startsWith(":")) { - const resolved = labelMap.get(v.substring(1)); - if (resolved == null) { - throw new Error(`Unknown label ${v} at line ${instr.lineno}`); - } - if (resolved == i + 2) { - return "nil"; - } else if (typeof resolved == "number") { - return `:${resolved}`; - } else { - return resolved.toString(); - } - } - return v; - }).forEach((v, vi) => { - let arg = this.convertArg(v, void 0, instr.outArgs.includes(vi)); - if (arg != null) { - result[i][vi] = arg; - } - }); - } - for (let i = 0; i < this.params.length; i++) { - this.params[i] ??= false; - } - result.parameters = this.params; - return result; - } finally { - this.params = savedParams; - } - } - convertArg(a, key, write = false) { - let m; - if (a == "true") { - return true; - } else if (a == "false") { - return false; - } else if (a == "nil") { - return void 0; - } else if (key == "sub") { - return this.subs.find((v) => v.name == a.substring(1))?.label ?? void 0; - } else if (key == "txt") { - return a; - } else if (key == "bp") { - const prog = { - ...this.program, - main: this.program.bps.get(a.substring(1)) - }; - if (!prog.main) { - throw new Error(`Blueprint ${a} not found.`); - } - return new _Assembler(prog).assembleBlueprint(); - } else if (key?.match(/^(c|nx|ny)$/)) { - return Number(a); - } else if (a == "goto") { - return -1; - } else if (a == "store") { - return -2; - } else if (a == "visual") { - return -3; - } else if (a == "signal") { - return -4; - } else if (a.match(/^p\d+$/)) { - const i = Number(a.substring(1)); - if (write) { - this.params[i - 1] = true; - } else { - this.params[i - 1] ??= false; - } - return i; - } else if (a.match(/^[A-Z]$/)) { - return a; - } else if (a.match(numberLiteralExactPattern)) { - return { num: Number(a) }; - } else if (m = a.match(itemNumPattern)) { - return { id: m[1], num: Number(m[2]) }; - } else if (m = a.match(coordPattern)) { - return { coord: { x: Number(m[1]), y: Number(m[2]) } }; - } else if (m = a.match(ipJumpPattern)) { - return Number(m[1]); - } else { - return { id: a }; - } - } -}; -function findReferencedSubs(code, subs) { - const result = /* @__PURE__ */ new Map(); - code.forEach((i) => { - if (i.op == "call") { - const subArg = i.args.find((a) => a.startsWith("$sub="))?.substring(5); - if (!subArg) - return; - const subName = subArg.substring(1); - const sub = subs.get(subName); - if (!sub || !subArg.startsWith(":")) { - throw new Error(`Sub ${subArg} not found at line ${i.lineno}`); - } - if (!result.has(subName)) { - result.set(subName, { - name: subName, - instructions: sub, - label: result.size + 1 - }); - } - } - }); - return [...result.values()]; -} -function isPseudoJump(inst) { - return inst.op == "jump" && inst.args[0]?.startsWith(":"); -} -export { - DesyncedStringToObject, - Disassembler, - ObjectToDesyncedString, - asmSyntax, - assemble, - behavior_dts -}; -/** @license zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ diff --git a/app/compiler.js b/app/compiler.js deleted file mode 100644 index 4f508cf..0000000 --- a/app/compiler.js +++ /dev/null @@ -1,1317 +0,0 @@ -var eft=Object.create;var k7e=Object.defineProperty;var tft=Object.getOwnPropertyDescriptor;var nft=Object.getOwnPropertyNames;var rft=Object.getPrototypeOf,ift=Object.prototype.hasOwnProperty;var KD=(Es=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(Es,{get:(rt,ze)=>(typeof require<"u"?require:rt)[ze]}):Es)(function(Es){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+Es+'" is not supported')});var eP=(Es,rt)=>()=>(rt||Es((rt={exports:{}}).exports,rt),rt.exports);var sft=(Es,rt,ze,ir)=>{if(rt&&typeof rt=="object"||typeof rt=="function")for(let Jn of nft(rt))!ift.call(Es,Jn)&&Jn!==ze&&k7e(Es,Jn,{get:()=>rt[Jn],enumerable:!(ir=tft(rt,Jn))||ir.enumerable});return Es};var C7e=(Es,rt,ze)=>(ze=Es!=null?eft(rft(Es)):{},sft(rt||!Es||!Es.__esModule?k7e(ze,"default",{value:Es,enumerable:!0}):ze,Es));var I7e=eP(()=>{});var F7e=eP(()=>{});var O7e=eP(()=>{});var L7e=eP(()=>{});var M7e=eP(()=>{});var R7e=eP(()=>{});var She=eP((Nft,Sj)=>{"use strict";var _ft=(()=>{var Es=Object.defineProperty,rt=Object.getOwnPropertyNames,ze=(e,t)=>function(){return e&&(t=(0,e[rt(e)[0]])(e=0)),t},ir=(e,t)=>function(){return t||(0,e[rt(e)[0]])((t={exports:{}}).exports,t),t.exports},Jn=(e,t)=>{for(var n in t)Es(e,n,{get:t[n],enumerable:!0})},Qi,ps,Aa,bo=ze({"src/compiler/corePublic.ts"(){"use strict";Qi="5.3",ps="5.3.3",Aa=(e=>(e[e.LessThan=-1]="LessThan",e[e.EqualTo=0]="EqualTo",e[e.GreaterThan=1]="GreaterThan",e))(Aa||{})}});function bn(e){return e?e.length:0}function Qt(e,t){if(e)for(let n=0;n=0;n--){let i=t(e[n],n);if(i)return i}}function ba(e,t){if(e!==void 0)for(let n=0;n=0;i--){let s=e[i];if(t(s,i))return s}}function Qo(e,t,n){if(e===void 0)return-1;for(let i=n??0;i=0;i--)if(t(e[i],i))return i;return-1}function rx(e,t){for(let n=0;nn(i,t[s]))}function XZ(e,t,n){for(let i=n||0;i{let o=t(s,i);if(o!==void 0){let[c,u]=o;c!==void 0&&u!==void 0&&n.set(c,u)}}),n}function T4(e,t,n){if(e.has(t))return e.get(t);let i=n();return e.set(t,i),i}function Yy(e,t){return e.has(t)?!1:(e.add(t),!0)}function*ZZ(e){yield e}function Cj(e,t,n){let i;if(e){i=[];let s=e.length,o,c,u=0,f=0;for(;u{let[o,c]=t(s,i);n.set(o,c)}),n}function ft(e,t){if(e)if(t){for(let n of e)if(t(n))return!0}else return e.length>0;return!1}function Ej(e,t,n){let i;for(let s=0;se[c])}function X7e(e,t){let n=[];for(let i of e)lp(n,i,t);return n}function ix(e,t,n){return e.length===0?[]:e.length===1?e.slice():n?$7e(e,t,n):X7e(e,t)}function Q7e(e,t){if(e.length===0)return Ve;let n=e[0],i=[n];for(let s=1;s0&&(s&=-2),s&2&&i(o,f)>0&&(s&=-3),o=f}return s}function cd(e,t,n=B0){if(!e||!t)return e===t;if(e.length!==t.length)return!1;for(let i=0;i0&&E.assertGreaterThanOrEqual(n(t[o],t[o-1]),0);t:for(let c=s;sc&&E.assertGreaterThanOrEqual(n(e[s],e[s-1]),0),n(t[o],e[s])){case-1:i.push(t[o]);continue e;case 0:continue e;case 1:continue t}}return i}function _n(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function hk(e,t){return e===void 0?t:t===void 0?e:ss(e)?ss(t)?es(e,t):_n(e,t):ss(t)?_n(t,e):[e,t]}function nK(e,t){return t<0?e.length+t:t}function Nr(e,t,n,i){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(n,i);n=n===void 0?0:nK(t,n),i=i===void 0?t.length:nK(t,i);for(let s=n;sn(e[i],e[s])||Io(i,s))}function sx(e,t){return e.length===0?e:e.slice().sort(t)}function*Pj(e){for(let t=e.length-1;t>=0;t--)yield e[t]}function Mh(e,t){let n=nP(e);return khe(e,n,t),n.map(i=>e[i])}function wj(e,t,n,i){for(;n>1),f=n(e[u],u);switch(i(f,t)){case-1:o=u+1;break;case 0:return u;case 1:c=u-1;break}}return~o}function Fu(e,t,n,i,s){if(e&&e.length>0){let o=e.length;if(o>0){let c=i===void 0||i<0?0:i,u=s===void 0||c+s>o-1?o-1:c+s,f;for(arguments.length<=2?(f=e[c],c++):f=n;c<=u;)f=t(f,e[c],c),c++;return f}}return n}function so(e,t){return J0.call(e,t)}function jI(e,t){return J0.call(e,t)?e[t]:void 0}function Qg(e){let t=[];for(let n in e)J0.call(e,n)&&t.push(n);return t}function Che(e){let t=[];do{let n=Object.getOwnPropertyNames(e);for(let i of n)lp(t,i)}while(e=Object.getPrototypeOf(e));return t}function ox(e){let t=[];for(let n in e)J0.call(e,n)&&t.push(e[n]);return t}function rK(e,t){let n=new Array(e);for(let i=0;i100&&n>t.length>>1){let u=t.length-n;t.copyWithin(0,n),t.length=u,n=0}return c}return{enqueue:s,dequeue:o,isEmpty:i}}function Lj(e,t){let n=new Map,i=0;function*s(){for(let c of n.values())ss(c)?yield*c:yield c}let o={has(c){let u=e(c);if(!n.has(u))return!1;let f=n.get(u);if(!ss(f))return t(f,c);for(let g of f)if(t(g,c))return!0;return!1},add(c){let u=e(c);if(n.has(u)){let f=n.get(u);if(ss(f))gs(f,c,t)||(f.push(c),i++);else{let g=f;t(g,c)||(n.set(u,[g,c]),i++)}}else n.set(u,c),i++;return this},delete(c){let u=e(c);if(!n.has(u))return!1;let f=n.get(u);if(ss(f)){for(let g=0;gs(),[Symbol.toStringTag]:n[Symbol.toStringTag]};return o}function ss(e){return Array.isArray(e)}function cx(e){return ss(e)?e:[e]}function os(e){return typeof e=="string"}function Bh(e){return typeof e=="number"}function Ur(e,t){return e!==void 0&&t(e)?e:void 0}function Vs(e,t){return e!==void 0&&t(e)?e:E.fail(`Invalid cast. The supplied value ${e} did not pass the test '${E.getFunctionName(t)}'.`)}function Fa(e){}function ld(){return!1}function Yg(){return!0}function Zy(){}function No(e){return e}function oK(e){return e.toLowerCase()}function Od(e){return vK.test(e)?e.replace(vK,oK):e}function Ts(){throw new Error("Not implemented")}function Yu(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function xm(e){let t=new Map;return n=>{let i=`${typeof n}:${n}`,s=t.get(i);return s===void 0&&!t.has(i)&&(s=e(n),t.set(i,s)),s}}function Ehe(e){let t=new WeakMap;return n=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(n),t.set(n,i)),i}}function cK(e,t){return(...n)=>{let i=t.get(n);return i===void 0&&!t.has(n)&&(i=e(...n),t.set(n,i)),i}}function Dhe(e,t,n,i,s){if(s){let o=[];for(let c=0;cFu(o,(u,f)=>f(u),c)}else return i?o=>i(n(t(e(o)))):n?o=>n(t(e(o))):t?o=>t(e(o)):e?o=>e(o):o=>o}function B0(e,t){return e===t}function lx(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function ux(e,t){return B0(e,t)}function Phe(e,t){return e===t?0:e===void 0?-1:t===void 0?1:et(n,i)===-1?n:i)}function VI(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toUpperCase(),t=t.toUpperCase(),et?1:0)}function lK(e,t){return e===t?0:e===void 0?-1:t===void 0?1:(e=e.toLowerCase(),t=t.toLowerCase(),et?1:0)}function Ou(e,t){return Phe(e,t)}function D4(e){return e?VI:Ou}function uK(){return Uj}function _K(e){Uj!==e&&(Uj=e,bK=void 0)}function sP(e,t){return(bK||(bK=Nhe(Uj)))(e,t)}function fK(e,t,n,i){return e===t?0:e===void 0?-1:t===void 0?1:i(e[n],t[n])}function kv(e,t){return Io(e?1:0,t?1:0)}function P4(e,t,n){let i=Math.max(2,Math.floor(e.length*.34)),s=Math.floor(e.length*.4)+1,o;for(let c of t){let u=n(c);if(u!==void 0&&Math.abs(u.length-e.length)<=i){if(u===e||u.length<3&&u.toLowerCase()!==e.toLowerCase())continue;let f=K7e(e,u,s-.1);if(f===void 0)continue;E.assert(fn?u-n:1),p=Math.floor(t.length>n+u?n+u:t.length);s[0]=u;let y=u;for(let x=1;xn)return;let S=i;i=s,s=S}let c=i[t.length];return c>n?void 0:c}function Sc(e,t){let n=e.length-t.length;return n>=0&&e.indexOf(t,n)===n}function yk(e,t){return Sc(e,t)?e.slice(0,e.length-t.length):e}function pK(e,t){return Sc(e,t)?e.slice(0,e.length-t.length):void 0}function Rj(e){let t=e.length;for(let n=t-1;n>0;n--){let i=e.charCodeAt(n);if(i>=48&&i<=57)do--n,i=e.charCodeAt(n);while(n>0&&i>=48&&i<=57);else if(n>4&&(i===110||i===78)){if(--n,i=e.charCodeAt(n),i!==105&&i!==73||(--n,i=e.charCodeAt(n),i!==109&&i!==77))break;--n,i=e.charCodeAt(n)}else break;if(i!==45&&i!==46)break;t=n}return t===e.length?e:e.slice(0,t)}function aP(e,t){for(let n=0;nn===t)}function e5e(e,t){for(let n=0;ns&&(s=c.prefix.length,i=o)}return i}function ts(e,t){return e.lastIndexOf(t,0)===0}function w4(e,t){return ts(e,t)?e.substr(t.length):e}function Jj(e,t,n=No){return ts(n(e),n(t))?e.substring(t.length):void 0}function WI({prefix:e,suffix:t},n){return n.length>=e.length+t.length&&ts(n,e)&&Sc(n,t)}function UI(e,t){return n=>e(n)&&t(n)}function ud(...e){return(...t)=>{let n;for(let i of e)if(n=i(...t),n)return n;return n}}function qI(e){return(...t)=>!e(...t)}function whe(e){}function c2(e){return e===void 0?void 0:[e]}function HI(e,t,n,i,s,o){o=o||Fa;let c=0,u=0,f=e.length,g=t.length,p=!1;for(;c(e[e.None=0]="None",e[e.CaseSensitive=1]="CaseSensitive",e[e.CaseInsensitive=2]="CaseInsensitive",e[e.Both=3]="Both",e))(Vj||{}),Jh=Array.prototype.at?(e,t)=>e?.at(t):(e,t)=>{if(e&&(t=nK(e,t),t(e[e.None=0]="None",e[e.Normal=1]="Normal",e[e.Aggressive=2]="Aggressive",e[e.VeryAggressive=3]="VeryAggressive",e))(Wj||{}),Nhe=(()=>{return t;function e(n,i,s){if(n===i)return 0;if(n===void 0)return-1;if(i===void 0)return 1;let o=s(n,i);return o<0?-1:o>0?1:0}function t(n){let i=new Intl.Collator(n,{usage:"sort",sensitivity:"variant"}).compare;return(s,o)=>e(s,o,i)}})()}}),qj,E,n5e=ze({"src/compiler/debug.ts"(){"use strict";Rs(),Rs(),qj=(e=>(e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Verbose=4]="Verbose",e))(qj||{}),(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function n(Ot){return e.currentLogLevel<=Ot}e.shouldLog=n;function i(Ot,Sn){e.loggingHost&&n(Ot)&&e.loggingHost.log(Ot,Sn)}function s(Ot){i(3,Ot)}e.log=s,(Ot=>{function Sn(Wi){i(1,Wi)}Ot.error=Sn;function Cn(Wi){i(2,Wi)}Ot.warn=Cn;function Kn(Wi){i(3,Wi)}Ot.log=Kn;function Fi(Wi){i(4,Wi)}Ot.trace=Fi})(s=e.log||(e.log={}));let o={};function c(){return t}e.getAssertionLevel=c;function u(Ot){let Sn=t;if(t=Ot,Ot>Sn)for(let Cn of Qg(o)){let Kn=o[Cn];Kn!==void 0&&e[Cn]!==Kn.assertion&&Ot>=Kn.level&&(e[Cn]=Kn,o[Cn]=void 0)}}e.setAssertionLevel=u;function f(Ot){return t>=Ot}e.shouldAssert=f;function g(Ot,Sn){return f(Ot)?!0:(o[Sn]={level:Ot,assertion:e[Sn]},e[Sn]=Fa,!1)}function p(Ot,Sn){debugger;let Cn=new Error(Ot?`Debug Failure. ${Ot}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Cn,Sn||p),Cn}e.fail=p;function y(Ot,Sn,Cn){return p(`${Sn||"Unexpected node."}\r -Node ${ve(Ot.kind)} was unexpected.`,Cn||y)}e.failBadSyntaxKind=y;function S(Ot,Sn,Cn,Kn){Ot||(Sn=Sn?`False expression: ${Sn}`:"False expression.",Cn&&(Sn+=`\r -Verbose Debug Information: `+(typeof Cn=="string"?Cn:Cn())),p(Sn,Kn||S))}e.assert=S;function x(Ot,Sn,Cn,Kn,Fi){if(Ot!==Sn){let Wi=Cn?Kn?`${Cn} ${Kn}`:Cn:"";p(`Expected ${Ot} === ${Sn}. ${Wi}`,Fi||x)}}e.assertEqual=x;function C(Ot,Sn,Cn,Kn){Ot>=Sn&&p(`Expected ${Ot} < ${Sn}. ${Cn||""}`,Kn||C)}e.assertLessThan=C;function w(Ot,Sn,Cn){Ot>Sn&&p(`Expected ${Ot} <= ${Sn}`,Cn||w)}e.assertLessThanOrEqual=w;function D(Ot,Sn,Cn){Ot= ${Sn}`,Cn||D)}e.assertGreaterThanOrEqual=D;function O(Ot,Sn,Cn){Ot==null&&p(Sn,Cn||O)}e.assertIsDefined=O;function z(Ot,Sn,Cn){return O(Ot,Sn,Cn||z),Ot}e.checkDefined=z;function V(Ot,Sn,Cn){for(let Kn of Ot)O(Kn,Sn,Cn||V)}e.assertEachIsDefined=V;function X(Ot,Sn,Cn){return V(Ot,Sn,Cn||X),Ot}e.checkEachDefined=X;function J(Ot,Sn="Illegal value:",Cn){let Kn=typeof Ot=="object"&&so(Ot,"kind")&&so(Ot,"pos")?"SyntaxKind: "+ve(Ot.kind):JSON.stringify(Ot);return p(`${Sn} ${Kn}`,Cn||J)}e.assertNever=J;function ie(Ot,Sn,Cn,Kn){g(1,"assertEachNode")&&S(Sn===void 0||hi(Ot,Sn),Cn||"Unexpected node.",()=>`Node array did not pass test '${K(Sn)}'.`,Kn||ie)}e.assertEachNode=ie;function B(Ot,Sn,Cn,Kn){g(1,"assertNode")&&S(Ot!==void 0&&(Sn===void 0||Sn(Ot)),Cn||"Unexpected node.",()=>`Node ${ve(Ot?.kind)} did not pass test '${K(Sn)}'.`,Kn||B)}e.assertNode=B;function Z(Ot,Sn,Cn,Kn){g(1,"assertNotNode")&&S(Ot===void 0||Sn===void 0||!Sn(Ot),Cn||"Unexpected node.",()=>`Node ${ve(Ot.kind)} should not have passed test '${K(Sn)}'.`,Kn||Z)}e.assertNotNode=Z;function ae(Ot,Sn,Cn,Kn){g(1,"assertOptionalNode")&&S(Sn===void 0||Ot===void 0||Sn(Ot),Cn||"Unexpected node.",()=>`Node ${ve(Ot?.kind)} did not pass test '${K(Sn)}'.`,Kn||ae)}e.assertOptionalNode=ae;function _e(Ot,Sn,Cn,Kn){g(1,"assertOptionalToken")&&S(Sn===void 0||Ot===void 0||Ot.kind===Sn,Cn||"Unexpected node.",()=>`Node ${ve(Ot?.kind)} was not a '${ve(Sn)}' token.`,Kn||_e)}e.assertOptionalToken=_e;function $(Ot,Sn,Cn){g(1,"assertMissingNode")&&S(Ot===void 0,Sn||"Unexpected node.",()=>`Node ${ve(Ot.kind)} was unexpected'.`,Cn||$)}e.assertMissingNode=$;function H(Ot){}e.type=H;function K(Ot){if(typeof Ot!="function")return"";if(so(Ot,"name"))return Ot.name;{let Sn=Function.prototype.toString.call(Ot),Cn=/^function\s+([\w$]+)\s*\(/.exec(Sn);return Cn?Cn[1]:""}}e.getFunctionName=K;function oe(Ot){return`{ name: ${Ci(Ot.escapedName)}; flags: ${mt(Ot.flags)}; declarations: ${Kt(Ot.declarations,Sn=>ve(Sn.kind))} }`}e.formatSymbol=oe;function Se(Ot=0,Sn,Cn){let Kn=Y(Sn);if(Ot===0)return Kn.length>0&&Kn[0][0]===0?Kn[0][1]:"0";if(Cn){let Fi=[],Wi=Ot;for(let[Ii,Ki]of Kn){if(Ii>Ot)break;Ii!==0&&Ii&Ot&&(Fi.push(Ki),Wi&=~Ii)}if(Wi===0)return Fi.join("|")}else for(let[Fi,Wi]of Kn)if(Fi===Ot)return Wi;return Ot.toString()}e.formatEnum=Se;let se=new Map;function Y(Ot){let Sn=se.get(Ot);if(Sn)return Sn;let Cn=[];for(let Fi in Ot){let Wi=Ot[Fi];typeof Wi=="number"&&Cn.push([Wi,Fi])}let Kn=Mh(Cn,(Fi,Wi)=>Io(Fi[0],Wi[0]));return se.set(Ot,Kn),Kn}function ve(Ot){return Se(Ot,QI,!1)}e.formatSyntaxKind=ve;function xe(Ot){return Se(Ot,l7,!1)}e.formatSnippetKind=xe;function Me(Ot){return Se(Ot,o7,!1)}e.formatScriptKind=Me;function ke(Ot){return Se(Ot,YI,!0)}e.formatNodeFlags=ke;function he(Ot){return Se(Ot,ZI,!0)}e.formatModifierFlags=he;function be(Ot){return Se(Ot,c7,!0)}e.formatTransformFlags=be;function _t(Ot){return Se(Ot,u7,!0)}e.formatEmitFlags=_t;function mt(Ot){return Se(Ot,r7,!0)}e.formatSymbolFlags=mt;function me(Ot){return Se(Ot,i7,!0)}e.formatTypeFlags=me;function Oe(Ot){return Se(Ot,a7,!0)}e.formatSignatureFlags=Oe;function Qe(Ot){return Se(Ot,s7,!0)}e.formatObjectFlags=Qe;function at(Ot){return Se(Ot,uP,!0)}e.formatFlowFlags=at;function ht(Ot){return Se(Ot,KI,!0)}e.formatRelationComparisonResult=ht;function Je(Ot){return Se(Ot,qO,!0)}e.formatCheckMode=Je;function lt(Ot){return Se(Ot,HO,!0)}e.formatSignatureCheckMode=lt;function Jt(Ot){return Se(Ot,UO,!0)}e.formatTypeFacts=Jt;let Gt=!1,Tn;function Un(Ot){"__debugFlowFlags"in Ot||Object.defineProperties(Ot,{__tsDebuggerDisplay:{value(){let Sn=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",Cn=this.flags&-2048;return`${Sn}${Cn?` (${at(Cn)})`:""}`}},__debugFlowFlags:{get(){return Se(this.flags,uP,!0)}},__debugToString:{value(){return An(this)}}})}function cn(Ot){Gt&&(typeof Object.setPrototypeOf=="function"?(Tn||(Tn=Object.create(Object.prototype),Un(Tn)),Object.setPrototypeOf(Ot,Tn)):Un(Ot))}e.attachFlowNodeDebugInfo=cn;let zt;function Ft(Ot){"__tsDebuggerDisplay"in Ot||Object.defineProperties(Ot,{__tsDebuggerDisplay:{value(Sn){return Sn=String(Sn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Sn}`}}})}function Lr(Ot){Gt&&(typeof Object.setPrototypeOf=="function"?(zt||(zt=Object.create(Array.prototype),Ft(zt)),Object.setPrototypeOf(Ot,zt)):Ft(Ot))}e.attachNodeArrayDebugInfo=Lr;function ji(){if(Gt)return;let Ot=new WeakMap,Sn=new WeakMap;Object.defineProperties(jl.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Kn=this.flags&33554432?"TransientSymbol":"Symbol",Fi=this.flags&-33554433;return`${Kn} '${xc(this)}'${Fi?` (${mt(Fi)})`:""}`}},__debugFlags:{get(){return mt(this.flags)}}}),Object.defineProperties(jl.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Kn=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Fi=this.flags&524288?this.objectFlags&-1344:0;return`${Kn}${this.symbol?` '${xc(this.symbol)}'`:""}${Fi?` (${Qe(Fi)})`:""}`}},__debugFlags:{get(){return me(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Qe(this.objectFlags):""}},__debugTypeToString:{value(){let Kn=Ot.get(this);return Kn===void 0&&(Kn=this.checker.typeToString(this),Ot.set(this,Kn)),Kn}}}),Object.defineProperties(jl.getSignatureConstructor().prototype,{__debugFlags:{get(){return Oe(this.flags)}},__debugSignatureToString:{value(){var Kn;return(Kn=this.checker)==null?void 0:Kn.signatureToString(this)}}});let Cn=[jl.getNodeConstructor(),jl.getIdentifierConstructor(),jl.getTokenConstructor(),jl.getSourceFileConstructor()];for(let Kn of Cn)so(Kn.prototype,"__debugKind")||Object.defineProperties(Kn.prototype,{__tsDebuggerDisplay:{value(){return`${Lo(this)?"GeneratedIdentifier":Ie(this)?`Identifier '${ur(this)}'`:Di(this)?`PrivateIdentifier '${ur(this)}'`:ca(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:R_(this)?`NumericLiteral ${this.text}`:$F(this)?`BigIntLiteral ${this.text}n`:Ko(this)?"TypeParameterDeclaration":ms(this)?"ParameterDeclaration":Cc(this)?"ConstructorDeclaration":Sf(this)?"GetAccessorDeclaration":j_(this)?"SetAccessorDeclaration":SC(this)?"CallSignatureDeclaration":g8(this)?"ConstructSignatureDeclaration":R2(this)?"IndexSignatureDeclaration":ZF(this)?"TypePredicateNode":Tp(this)?"TypeReferenceNode":Tg(this)?"FunctionTypeNode":XE(this)?"ConstructorTypeNode":xC(this)?"TypeQueryNode":nf(this)?"TypeLiteralNode":KF(this)?"ArrayTypeNode":TC(this)?"TupleTypeNode":$V(this)?"OptionalTypeNode":XV(this)?"RestTypeNode":b1(this)?"UnionTypeNode":kC(this)?"IntersectionTypeNode":CC(this)?"ConditionalTypeNode":qx(this)?"InferTypeNode":Hx(this)?"ParenthesizedTypeNode":eO(this)?"ThisTypeNode":Gx(this)?"TypeOperatorNode":$x(this)?"IndexedAccessTypeNode":YE(this)?"MappedTypeNode":S1(this)?"LiteralTypeNode":QE(this)?"NamedTupleMember":ch(this)?"ImportTypeNode":ve(this.kind)}${this.flags?` (${ke(this.flags)})`:""}`}},__debugKind:{get(){return ve(this.kind)}},__debugNodeFlags:{get(){return ke(this.flags)}},__debugModifierFlags:{get(){return he(Gte(this))}},__debugTransformFlags:{get(){return be(this.transformFlags)}},__debugIsParseTreeNode:{get(){return z4(this)}},__debugEmitFlags:{get(){return _t(Sa(this))}},__debugGetText:{value(Fi){if(Ro(this))return"";let Wi=Sn.get(this);if(Wi===void 0){let Ii=ls(this),Ki=Ii&&Mn(Ii);Wi=Ki?Fv(Ki,Ii,Fi):"",Sn.set(this,Wi)}return Wi}}});Gt=!0}e.enableDebugInfo=ji;function ii(Ot){let Sn=Ot&7,Cn=Sn===0?"in out":Sn===3?"[bivariant]":Sn===2?"in":Sn===1?"out":Sn===4?"[independent]":"";return Ot&8?Cn+=" (unmeasurable)":Ot&16&&(Cn+=" (unreliable)"),Cn}e.formatVariance=ii;class Hi{__debugToString(){var Sn;switch(this.kind){case 3:return((Sn=this.debugInfo)==null?void 0:Sn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return od(this.sources,this.targets||Kt(this.sources,()=>"any"),(Cn,Kn)=>`${Cn.__debugTypeToString()} -> ${typeof Kn=="string"?Kn:Kn.__debugTypeToString()}`).join(", ");case 2:return od(this.sources,this.targets,(Cn,Kn)=>`${Cn.__debugTypeToString()} -> ${Kn().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` -`).join(` - `)} -m2: ${this.mapper2.__debugToString().split(` -`).join(` - `)}`;default:return J(this)}}}e.DebugTypeMapper=Hi;function Ye(Ot){return e.isDebugging?Object.setPrototypeOf(Ot,Hi.prototype):Ot}e.attachDebugPrototypeIfDebug=Ye;function fn(Ot){return console.log(An(Ot))}e.printControlFlowGraph=fn;function An(Ot){let Sn=-1;function Cn(ue){return ue.id||(ue.id=Sn,Sn--),ue.id}let Kn;(ue=>{ue.lr="\u2500",ue.ud="\u2502",ue.dr="\u256D",ue.dl="\u256E",ue.ul="\u256F",ue.ur="\u2570",ue.udr="\u251C",ue.udl="\u2524",ue.dlr="\u252C",ue.ulr="\u2534",ue.udlr="\u256B"})(Kn||(Kn={}));let Fi;(ue=>{ue[ue.None=0]="None",ue[ue.Up=1]="Up",ue[ue.Down=2]="Down",ue[ue.Left=4]="Left",ue[ue.Right=8]="Right",ue[ue.UpDown=3]="UpDown",ue[ue.LeftRight=12]="LeftRight",ue[ue.UpLeft=5]="UpLeft",ue[ue.UpRight=9]="UpRight",ue[ue.DownLeft=6]="DownLeft",ue[ue.DownRight=10]="DownRight",ue[ue.UpDownLeft=7]="UpDownLeft",ue[ue.UpDownRight=11]="UpDownRight",ue[ue.UpLeftRight=13]="UpLeftRight",ue[ue.DownLeftRight=14]="DownLeftRight",ue[ue.UpDownLeftRight=15]="UpDownLeftRight",ue[ue.NoChildren=16]="NoChildren"})(Fi||(Fi={}));let Wi=2032,Ii=882,Ki=Object.create(null),na=[],Fs=[],Ce=G(Ot,new Set);for(let ue of na)ue.text=ln(ue.flowNode,ue.circular),wt(ue);let Ue=Re(Ce),it=ot(Ue);return Dt(Ce,0),W();function dt(ue){return!!(ue.flags&128)}function gt(ue){return!!(ue.flags&12)&&!!ue.antecedents}function fe(ue){return!!(ue.flags&Wi)}function we(ue){return!!(ue.flags&Ii)}function Be(ue){let M=[];for(let De of ue.edges)De.source===ue&&M.push(De.target);return M}function yt(ue){let M=[];for(let De of ue.edges)De.target===ue&&M.push(De.source);return M}function G(ue,M){let De=Cn(ue),qe=Ki[De];if(qe&&M.has(ue))return qe.circular=!0,qe={id:-1,flowNode:ue,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},na.push(qe),qe;if(M.add(ue),!qe)if(Ki[De]=qe={id:De,flowNode:ue,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},na.push(qe),gt(ue))for(let Fe of ue.antecedents)vt(qe,Fe,M);else fe(ue)&&vt(qe,ue.antecedent,M);return M.delete(ue),qe}function vt(ue,M,De){let qe=G(M,De),Fe={source:ue,target:qe};Fs.push(Fe),ue.edges.push(Fe),qe.edges.push(Fe)}function wt(ue){if(ue.level!==-1)return ue.level;let M=0;for(let De of yt(ue))M=Math.max(M,wt(De)+1);return ue.level=M}function Re(ue){let M=0;for(let De of Be(ue))M=Math.max(M,Re(De));return M+1}function ot(ue){let M=ce(Array(ue),0);for(let De of na)M[De.level]=Math.max(M[De.level],De.text.length);return M}function Dt(ue,M){if(ue.lane===-1){ue.lane=M,ue.endLane=M;let De=Be(ue);for(let qe=0;qe0&&M++;let Fe=De[qe];Dt(Fe,M),Fe.endLane>ue.endLane&&(M=Fe.endLane)}ue.endLane=M}}function Zt(ue){if(ue&2)return"Start";if(ue&4)return"Branch";if(ue&8)return"Loop";if(ue&16)return"Assignment";if(ue&32)return"True";if(ue&64)return"False";if(ue&128)return"SwitchClause";if(ue&256)return"ArrayMutation";if(ue&512)return"Call";if(ue&1024)return"ReduceLabel";if(ue&1)return"Unreachable";throw new Error}function tn(ue){let M=Mn(ue);return Fv(M,ue,!1)}function ln(ue,M){let De=Zt(ue.flags);if(M&&(De=`${De}#${Cn(ue)}`),we(ue))ue.node&&(De+=` (${tn(ue.node)})`);else if(dt(ue)){let qe=[];for(let Fe=ue.clauseStart;FeMath.max(Mt,Wt.lane),0)+1,De=ce(Array(M),""),qe=it.map(()=>Array(M)),Fe=it.map(()=>ce(Array(M),0));for(let Mt of na){qe[Mt.level][Mt.lane]=Mt;let Wt=Be(Mt);for(let nr=0;nr0&&(jr|=1),nr0&&(jr|=1),nr0?Fe[Mt-1][Wt]:0,nr=Wt>0?Fe[Mt][Wt-1]:0,br=Fe[Mt][Wt];br||(Rn&8&&(br|=12),nr&2&&(br|=3),Fe[Mt][Wt]=br)}for(let Mt=0;Mt0?ue.repeat(M):"";let De="";for(;De.length=",i.version)),up(s.major)||n.push(up(s.minor)?Tm("<",s.version.increment("major")):up(s.patch)?Tm("<",s.version.increment("minor")):Tm("<=",s.version)),!0):!1}function s5e(e,t,n){let i=SK(t);if(!i)return!1;let{version:s,major:o,minor:c,patch:u}=i;if(up(o))(e==="<"||e===">")&&n.push(Tm("<",zp.zero));else switch(e){case"~":n.push(Tm(">=",s)),n.push(Tm("<",s.increment(up(c)?"major":"minor")));break;case"^":n.push(Tm(">=",s)),n.push(Tm("<",s.increment(s.major>0||up(c)?"major":s.minor>0||up(u)?"minor":"patch")));break;case"<":case">=":n.push(up(c)||up(u)?Tm(e,s.with({prerelease:"0"})):Tm(e,s));break;case"<=":case">":n.push(up(c)?Tm(e==="<="?"<":">=",s.increment("major").with({prerelease:"0"})):up(u)?Tm(e==="<="?"<":">=",s.increment("minor").with({prerelease:"0"})):Tm(e,s));break;case"=":case void 0:up(c)||up(u)?(n.push(Tm(">=",s.with({prerelease:"0"}))),n.push(Tm("<",s.increment(up(c)?"major":"minor").with({prerelease:"0"})))):n.push(Tm("=",s));break;default:return!1}return!0}function up(e){return e==="*"||e==="x"||e==="X"}function Tm(e,t){return{operator:e,operand:t}}function a5e(e,t){if(t.length===0)return!0;for(let n of t)if(o5e(e,n))return!0;return!1}function o5e(e,t){for(let n of t)if(!c5e(e,n.operator,n.operand))return!1;return!0}function c5e(e,t,n){let i=e.compareTo(n);switch(t){case"<":return i<0;case"<=":return i<=0;case">":return i>0;case">=":return i>=0;case"=":return i===0;default:return E.assertNever(t)}}function l5e(e){return Kt(e,u5e).join(" || ")||"*"}function u5e(e){return Kt(e,_5e).join(" ")}function _5e(e){return`${e.operator}${e.operand}`}var Ohe,Lhe,Mhe,Rhe,jhe,xK,Hj,zp,oP,Bhe,Jhe,zhe,Vhe,Whe,f5e=ze({"src/compiler/semver.ts"(){"use strict";Rs(),Ohe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Lhe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Mhe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Rhe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,jhe=/^[a-z0-9-]+$/i,xK=/^(0|[1-9]\d*)$/,Hj=class FI{constructor(t,n=0,i=0,s="",o=""){typeof t=="string"&&({major:t,minor:n,patch:i,prerelease:s,build:o}=E.checkDefined(Ihe(t),"Invalid version")),E.assert(t>=0,"Invalid argument: major"),E.assert(n>=0,"Invalid argument: minor"),E.assert(i>=0,"Invalid argument: patch");let c=s?ss(s)?s:s.split("."):Ve,u=o?ss(o)?o:o.split("."):Ve;E.assert(hi(c,f=>Mhe.test(f)),"Invalid argument: prerelease"),E.assert(hi(u,f=>jhe.test(f)),"Invalid argument: build"),this.major=t,this.minor=n,this.patch=i,this.prerelease=c,this.build=u}static tryParse(t){let n=Ihe(t);if(!n)return;let{major:i,minor:s,patch:o,prerelease:c,build:u}=n;return new FI(i,s,o,c,u)}compareTo(t){return this===t?0:t===void 0?1:Io(this.major,t.major)||Io(this.minor,t.minor)||Io(this.patch,t.patch)||r5e(this.prerelease,t.prerelease)}increment(t){switch(t){case"major":return new FI(this.major+1,0,0);case"minor":return new FI(this.major,this.minor+1,0);case"patch":return new FI(this.major,this.minor,this.patch+1);default:return E.assertNever(t)}}with(t){let{major:n=this.major,minor:i=this.minor,patch:s=this.patch,prerelease:o=this.prerelease,build:c=this.build}=t;return new FI(n,i,s,o,c)}toString(){let t=`${this.major}.${this.minor}.${this.patch}`;return ft(this.prerelease)&&(t+=`-${this.prerelease.join(".")}`),ft(this.build)&&(t+=`+${this.build.join(".")}`),t}},Hj.zero=new Hj(0,0,0,["0"]),zp=Hj,oP=class j7e{constructor(t){this._alternatives=t?E.checkDefined(Fhe(t),"Invalid range spec."):Ve}static tryParse(t){let n=Fhe(t);if(n){let i=new j7e("");return i._alternatives=n,i}}test(t){return typeof t=="string"&&(t=new zp(t)),a5e(t,this._alternatives)}toString(){return l5e(this._alternatives)}},Bhe=/\|\|/g,Jhe=/\s+/g,zhe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Vhe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Whe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Uhe(e,t){return typeof e=="object"&&typeof e.timeOrigin=="number"&&typeof e.mark=="function"&&typeof e.measure=="function"&&typeof e.now=="function"&&typeof e.clearMarks=="function"&&typeof e.clearMeasures=="function"&&typeof t=="function"}function p5e(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Uhe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function d5e(){if(zj())try{let{performance:e,PerformanceObserver:t}=I7e();if(Uhe(e,t))return{shouldWriteNativeEvents:!1,performance:e,PerformanceObserver:t}}catch{}}function TK(){return Gj}var Gj,kK,So,m5e=ze({"src/compiler/performanceCore.ts"(){"use strict";Rs(),Gj=p5e()||d5e(),kK=Gj?.performance,So=kK?()=>kK.now():Date.now?Date.now:()=>+new Date}}),XI,Lu,g5e=ze({"src/compiler/perfLogger.ts"(){"use strict";try{let e=process.env.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";XI=KD(e)}catch{XI=void 0}Lu=XI?.logEvent?XI:void 0}});function qhe(e,t,n,i){return e?$j(t,n,i):Xj}function $j(e,t,n){let i=0;return{enter:s,exit:o};function s(){++i===1&&Fo(t)}function o(){--i===0?(Fo(n),gf(e,t,n)):i<0&&E.fail("enter/exit count does not match.")}}function Fo(e){if(vk){let t=A4.get(e)??0;A4.set(e,t+1),bk.set(e,So()),l2?.mark(e),typeof onProfilerEvent=="function"&&onProfilerEvent(e)}}function gf(e,t,n){if(vk){let i=(n!==void 0?bk.get(n):void 0)??So(),s=(t!==void 0?bk.get(t):void 0)??CK,o=Sk.get(e)||0;Sk.set(e,o+(i-s)),l2?.measure(e,t,n)}}function h5e(e){return A4.get(e)||0}function y5e(e){return Sk.get(e)||0}function v5e(e){Sk.forEach((t,n)=>e(n,t))}function b5e(e){bk.forEach((t,n)=>e(n))}function S5e(e){e!==void 0?Sk.delete(e):Sk.clear(),l2?.clearMeasures(e)}function x5e(e){e!==void 0?(A4.delete(e),bk.delete(e)):(A4.clear(),bk.clear()),l2?.clearMarks(e)}function T5e(){return vk}function k5e(e=Hl){var t;return vk||(vk=!0,cP||(cP=TK()),cP&&(CK=cP.performance.timeOrigin,(cP.shouldWriteNativeEvents||(t=e?.cpuProfilingEnabled)!=null&&t.call(e)||e?.debugMode)&&(l2=cP.performance))),!0}function C5e(){vk&&(bk.clear(),A4.clear(),Sk.clear(),l2=void 0,vk=!1)}var cP,l2,Xj,vk,CK,bk,A4,Sk,E5e=ze({"src/compiler/performance.ts"(){"use strict";Rs(),Xj={enter:Fa,exit:Fa},vk=!1,CK=So(),bk=new Map,A4=new Map,Sk=new Map}}),EK={};Jn(EK,{clearMarks:()=>x5e,clearMeasures:()=>S5e,createTimer:()=>$j,createTimerIf:()=>qhe,disable:()=>C5e,enable:()=>k5e,forEachMark:()=>b5e,forEachMeasure:()=>v5e,getCount:()=>h5e,getDuration:()=>y5e,isEnabled:()=>T5e,mark:()=>Fo,measure:()=>gf,nullTimer:()=>Xj});var u2=ze({"src/compiler/_namespaces/ts.performance.ts"(){"use strict";E5e()}}),Wn,lP,DK,PK,D5e=ze({"src/compiler/tracing.ts"(){"use strict";Rs(),u2(),(e=>{let t,n=0,i=0,s,o=[],c,u=[];function f(B,Z,ae){if(E.assert(!Wn,"Tracing already started"),t===void 0)try{t=KD("fs")}catch(oe){throw new Error(`tracing requires having fs -(original error: ${oe.message||oe})`)}s=B,o.length=0,c===void 0&&(c=Qr(Z,"legend.json")),t.existsSync(Z)||t.mkdirSync(Z,{recursive:!0});let _e=s==="build"?`.${process.pid}-${++n}`:s==="server"?`.${process.pid}`:"",$=Qr(Z,`trace${_e}.json`),H=Qr(Z,`types${_e}.json`);u.push({configFilePath:ae,tracePath:$,typesPath:H}),i=t.openSync($,"w"),Wn=e;let K={cat:"__metadata",ph:"M",ts:1e3*So(),pid:1,tid:1};t.writeSync(i,`[ -`+[{name:"process_name",args:{name:"tsc"},...K},{name:"thread_name",args:{name:"Main"},...K},{name:"TracingStartedInBrowser",...K,cat:"disabled-by-default-devtools.timeline"}].map(oe=>JSON.stringify(oe)).join(`, -`))}e.startTracing=f;function g(){E.assert(Wn,"Tracing is not in progress"),E.assert(!!o.length==(s!=="server")),t.writeSync(i,` -] -`),t.closeSync(i),Wn=void 0,o.length?J(o):u[u.length-1].typesPath=void 0}e.stopTracing=g;function p(B){s!=="server"&&o.push(B)}e.recordType=p;let y;(B=>{B.Parse="parse",B.Program="program",B.Bind="bind",B.Check="check",B.CheckTypes="checkTypes",B.Emit="emit",B.Session="session"})(y=e.Phase||(e.Phase={}));function S(B,Z,ae){V("I",B,Z,ae,'"s":"g"')}e.instant=S;let x=[];function C(B,Z,ae,_e=!1){_e&&V("B",B,Z,ae),x.push({phase:B,name:Z,args:ae,time:1e3*So(),separateBeginAndEnd:_e})}e.push=C;function w(B){E.assert(x.length>0),z(x.length-1,1e3*So(),B),x.length--}e.pop=w;function D(){let B=1e3*So();for(let Z=x.length-1;Z>=0;Z--)z(Z,B);x.length=0}e.popAll=D;let O=1e3*10;function z(B,Z,ae){let{phase:_e,name:$,args:H,time:K,separateBeginAndEnd:oe}=x[B];oe?(E.assert(!ae,"`results` are not supported for events with `separateBeginAndEnd`"),V("E",_e,$,H,void 0,Z)):O-K%O<=Z-K&&V("X",_e,$,{...H,results:ae},`"dur":${Z-K}`,K)}function V(B,Z,ae,_e,$,H=1e3*So()){s==="server"&&Z==="checkTypes"||(Fo("beginTracing"),t.writeSync(i,`, -{"pid":1,"tid":1,"ph":"${B}","cat":"${Z}","ts":${H},"name":"${ae}"`),$&&t.writeSync(i,`,${$}`),_e&&t.writeSync(i,`,"args":${JSON.stringify(_e)}`),t.writeSync(i,"}"),Fo("endTracing"),gf("Tracing","beginTracing","endTracing"))}function X(B){let Z=Mn(B);return Z?{path:Z.path,start:ae(Ka(Z,B.pos)),end:ae(Ka(Z,B.end))}:void 0;function ae(_e){return{line:_e.line+1,character:_e.character+1}}}function J(B){var Z,ae,_e,$,H,K,oe,Se,se,Y,ve,xe,Me,ke,he,be,_t,mt,me;Fo("beginDumpTypes");let Oe=u[u.length-1].typesPath,Qe=t.openSync(Oe,"w"),at=new Map;t.writeSync(Qe,"[");let ht=B.length;for(let Je=0;JeAn.id),referenceLocation:X(fn.node)}}let zt={};if(lt.flags&16777216){let fn=lt;zt={conditionalCheckType:(K=fn.checkType)==null?void 0:K.id,conditionalExtendsType:(oe=fn.extendsType)==null?void 0:oe.id,conditionalTrueType:((Se=fn.resolvedTrueType)==null?void 0:Se.id)??-1,conditionalFalseType:((se=fn.resolvedFalseType)==null?void 0:se.id)??-1}}let Ft={};if(lt.flags&33554432){let fn=lt;Ft={substitutionBaseType:(Y=fn.baseType)==null?void 0:Y.id,constraintType:(ve=fn.constraint)==null?void 0:ve.id}}let Lr={};if(Jt&1024){let fn=lt;Lr={reverseMappedSourceType:(xe=fn.source)==null?void 0:xe.id,reverseMappedMappedType:(Me=fn.mappedType)==null?void 0:Me.id,reverseMappedConstraintType:(ke=fn.constraintType)==null?void 0:ke.id}}let ji={};if(Jt&256){let fn=lt;ji={evolvingArrayElementType:fn.elementType.id,evolvingArrayFinalType:(he=fn.finalArrayType)==null?void 0:he.id}}let ii,Hi=lt.checker.getRecursionIdentity(lt);Hi&&(ii=at.get(Hi),ii||(ii=at.size,at.set(Hi,ii)));let Ye={id:lt.id,intrinsicName:lt.intrinsicName,symbolName:Gt?.escapedName&&Ci(Gt.escapedName),recursionId:ii,isTuple:Jt&8?!0:void 0,unionTypes:lt.flags&1048576?(be=lt.types)==null?void 0:be.map(fn=>fn.id):void 0,intersectionTypes:lt.flags&2097152?lt.types.map(fn=>fn.id):void 0,aliasTypeArguments:(_t=lt.aliasTypeArguments)==null?void 0:_t.map(fn=>fn.id),keyofType:lt.flags&4194304?(mt=lt.type)==null?void 0:mt.id:void 0,...Un,...cn,...zt,...Ft,...Lr,...ji,destructuringPattern:X(lt.pattern),firstDeclaration:X((me=Gt?.declarations)==null?void 0:me[0]),flags:E.formatTypeFlags(lt.flags).split("|"),display:Tn};t.writeSync(Qe,JSON.stringify(Ye)),Je(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.QualifiedName=166]="QualifiedName",e[e.ComputedPropertyName=167]="ComputedPropertyName",e[e.TypeParameter=168]="TypeParameter",e[e.Parameter=169]="Parameter",e[e.Decorator=170]="Decorator",e[e.PropertySignature=171]="PropertySignature",e[e.PropertyDeclaration=172]="PropertyDeclaration",e[e.MethodSignature=173]="MethodSignature",e[e.MethodDeclaration=174]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",e[e.Constructor=176]="Constructor",e[e.GetAccessor=177]="GetAccessor",e[e.SetAccessor=178]="SetAccessor",e[e.CallSignature=179]="CallSignature",e[e.ConstructSignature=180]="ConstructSignature",e[e.IndexSignature=181]="IndexSignature",e[e.TypePredicate=182]="TypePredicate",e[e.TypeReference=183]="TypeReference",e[e.FunctionType=184]="FunctionType",e[e.ConstructorType=185]="ConstructorType",e[e.TypeQuery=186]="TypeQuery",e[e.TypeLiteral=187]="TypeLiteral",e[e.ArrayType=188]="ArrayType",e[e.TupleType=189]="TupleType",e[e.OptionalType=190]="OptionalType",e[e.RestType=191]="RestType",e[e.UnionType=192]="UnionType",e[e.IntersectionType=193]="IntersectionType",e[e.ConditionalType=194]="ConditionalType",e[e.InferType=195]="InferType",e[e.ParenthesizedType=196]="ParenthesizedType",e[e.ThisType=197]="ThisType",e[e.TypeOperator=198]="TypeOperator",e[e.IndexedAccessType=199]="IndexedAccessType",e[e.MappedType=200]="MappedType",e[e.LiteralType=201]="LiteralType",e[e.NamedTupleMember=202]="NamedTupleMember",e[e.TemplateLiteralType=203]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",e[e.ImportType=205]="ImportType",e[e.ObjectBindingPattern=206]="ObjectBindingPattern",e[e.ArrayBindingPattern=207]="ArrayBindingPattern",e[e.BindingElement=208]="BindingElement",e[e.ArrayLiteralExpression=209]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=210]="ObjectLiteralExpression",e[e.PropertyAccessExpression=211]="PropertyAccessExpression",e[e.ElementAccessExpression=212]="ElementAccessExpression",e[e.CallExpression=213]="CallExpression",e[e.NewExpression=214]="NewExpression",e[e.TaggedTemplateExpression=215]="TaggedTemplateExpression",e[e.TypeAssertionExpression=216]="TypeAssertionExpression",e[e.ParenthesizedExpression=217]="ParenthesizedExpression",e[e.FunctionExpression=218]="FunctionExpression",e[e.ArrowFunction=219]="ArrowFunction",e[e.DeleteExpression=220]="DeleteExpression",e[e.TypeOfExpression=221]="TypeOfExpression",e[e.VoidExpression=222]="VoidExpression",e[e.AwaitExpression=223]="AwaitExpression",e[e.PrefixUnaryExpression=224]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=225]="PostfixUnaryExpression",e[e.BinaryExpression=226]="BinaryExpression",e[e.ConditionalExpression=227]="ConditionalExpression",e[e.TemplateExpression=228]="TemplateExpression",e[e.YieldExpression=229]="YieldExpression",e[e.SpreadElement=230]="SpreadElement",e[e.ClassExpression=231]="ClassExpression",e[e.OmittedExpression=232]="OmittedExpression",e[e.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",e[e.AsExpression=234]="AsExpression",e[e.NonNullExpression=235]="NonNullExpression",e[e.MetaProperty=236]="MetaProperty",e[e.SyntheticExpression=237]="SyntheticExpression",e[e.SatisfiesExpression=238]="SatisfiesExpression",e[e.TemplateSpan=239]="TemplateSpan",e[e.SemicolonClassElement=240]="SemicolonClassElement",e[e.Block=241]="Block",e[e.EmptyStatement=242]="EmptyStatement",e[e.VariableStatement=243]="VariableStatement",e[e.ExpressionStatement=244]="ExpressionStatement",e[e.IfStatement=245]="IfStatement",e[e.DoStatement=246]="DoStatement",e[e.WhileStatement=247]="WhileStatement",e[e.ForStatement=248]="ForStatement",e[e.ForInStatement=249]="ForInStatement",e[e.ForOfStatement=250]="ForOfStatement",e[e.ContinueStatement=251]="ContinueStatement",e[e.BreakStatement=252]="BreakStatement",e[e.ReturnStatement=253]="ReturnStatement",e[e.WithStatement=254]="WithStatement",e[e.SwitchStatement=255]="SwitchStatement",e[e.LabeledStatement=256]="LabeledStatement",e[e.ThrowStatement=257]="ThrowStatement",e[e.TryStatement=258]="TryStatement",e[e.DebuggerStatement=259]="DebuggerStatement",e[e.VariableDeclaration=260]="VariableDeclaration",e[e.VariableDeclarationList=261]="VariableDeclarationList",e[e.FunctionDeclaration=262]="FunctionDeclaration",e[e.ClassDeclaration=263]="ClassDeclaration",e[e.InterfaceDeclaration=264]="InterfaceDeclaration",e[e.TypeAliasDeclaration=265]="TypeAliasDeclaration",e[e.EnumDeclaration=266]="EnumDeclaration",e[e.ModuleDeclaration=267]="ModuleDeclaration",e[e.ModuleBlock=268]="ModuleBlock",e[e.CaseBlock=269]="CaseBlock",e[e.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",e[e.ImportDeclaration=272]="ImportDeclaration",e[e.ImportClause=273]="ImportClause",e[e.NamespaceImport=274]="NamespaceImport",e[e.NamedImports=275]="NamedImports",e[e.ImportSpecifier=276]="ImportSpecifier",e[e.ExportAssignment=277]="ExportAssignment",e[e.ExportDeclaration=278]="ExportDeclaration",e[e.NamedExports=279]="NamedExports",e[e.NamespaceExport=280]="NamespaceExport",e[e.ExportSpecifier=281]="ExportSpecifier",e[e.MissingDeclaration=282]="MissingDeclaration",e[e.ExternalModuleReference=283]="ExternalModuleReference",e[e.JsxElement=284]="JsxElement",e[e.JsxSelfClosingElement=285]="JsxSelfClosingElement",e[e.JsxOpeningElement=286]="JsxOpeningElement",e[e.JsxClosingElement=287]="JsxClosingElement",e[e.JsxFragment=288]="JsxFragment",e[e.JsxOpeningFragment=289]="JsxOpeningFragment",e[e.JsxClosingFragment=290]="JsxClosingFragment",e[e.JsxAttribute=291]="JsxAttribute",e[e.JsxAttributes=292]="JsxAttributes",e[e.JsxSpreadAttribute=293]="JsxSpreadAttribute",e[e.JsxExpression=294]="JsxExpression",e[e.JsxNamespacedName=295]="JsxNamespacedName",e[e.CaseClause=296]="CaseClause",e[e.DefaultClause=297]="DefaultClause",e[e.HeritageClause=298]="HeritageClause",e[e.CatchClause=299]="CatchClause",e[e.ImportAttributes=300]="ImportAttributes",e[e.ImportAttribute=301]="ImportAttribute",e[e.AssertClause=300]="AssertClause",e[e.AssertEntry=301]="AssertEntry",e[e.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",e[e.PropertyAssignment=303]="PropertyAssignment",e[e.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",e[e.SpreadAssignment=305]="SpreadAssignment",e[e.EnumMember=306]="EnumMember",e[e.UnparsedPrologue=307]="UnparsedPrologue",e[e.UnparsedPrepend=308]="UnparsedPrepend",e[e.UnparsedText=309]="UnparsedText",e[e.UnparsedInternalText=310]="UnparsedInternalText",e[e.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",e[e.SourceFile=312]="SourceFile",e[e.Bundle=313]="Bundle",e[e.UnparsedSource=314]="UnparsedSource",e[e.InputFiles=315]="InputFiles",e[e.JSDocTypeExpression=316]="JSDocTypeExpression",e[e.JSDocNameReference=317]="JSDocNameReference",e[e.JSDocMemberName=318]="JSDocMemberName",e[e.JSDocAllType=319]="JSDocAllType",e[e.JSDocUnknownType=320]="JSDocUnknownType",e[e.JSDocNullableType=321]="JSDocNullableType",e[e.JSDocNonNullableType=322]="JSDocNonNullableType",e[e.JSDocOptionalType=323]="JSDocOptionalType",e[e.JSDocFunctionType=324]="JSDocFunctionType",e[e.JSDocVariadicType=325]="JSDocVariadicType",e[e.JSDocNamepathType=326]="JSDocNamepathType",e[e.JSDoc=327]="JSDoc",e[e.JSDocComment=327]="JSDocComment",e[e.JSDocText=328]="JSDocText",e[e.JSDocTypeLiteral=329]="JSDocTypeLiteral",e[e.JSDocSignature=330]="JSDocSignature",e[e.JSDocLink=331]="JSDocLink",e[e.JSDocLinkCode=332]="JSDocLinkCode",e[e.JSDocLinkPlain=333]="JSDocLinkPlain",e[e.JSDocTag=334]="JSDocTag",e[e.JSDocAugmentsTag=335]="JSDocAugmentsTag",e[e.JSDocImplementsTag=336]="JSDocImplementsTag",e[e.JSDocAuthorTag=337]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",e[e.JSDocClassTag=339]="JSDocClassTag",e[e.JSDocPublicTag=340]="JSDocPublicTag",e[e.JSDocPrivateTag=341]="JSDocPrivateTag",e[e.JSDocProtectedTag=342]="JSDocProtectedTag",e[e.JSDocReadonlyTag=343]="JSDocReadonlyTag",e[e.JSDocOverrideTag=344]="JSDocOverrideTag",e[e.JSDocCallbackTag=345]="JSDocCallbackTag",e[e.JSDocOverloadTag=346]="JSDocOverloadTag",e[e.JSDocEnumTag=347]="JSDocEnumTag",e[e.JSDocParameterTag=348]="JSDocParameterTag",e[e.JSDocReturnTag=349]="JSDocReturnTag",e[e.JSDocThisTag=350]="JSDocThisTag",e[e.JSDocTypeTag=351]="JSDocTypeTag",e[e.JSDocTemplateTag=352]="JSDocTemplateTag",e[e.JSDocTypedefTag=353]="JSDocTypedefTag",e[e.JSDocSeeTag=354]="JSDocSeeTag",e[e.JSDocPropertyTag=355]="JSDocPropertyTag",e[e.JSDocThrowsTag=356]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",e[e.SyntaxList=358]="SyntaxList",e[e.NotEmittedStatement=359]="NotEmittedStatement",e[e.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",e[e.CommaListExpression=361]="CommaListExpression",e[e.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",e[e.Count=363]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=165]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=182]="FirstTypeNode",e[e.LastTypeNode=205]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=165]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=243]="FirstStatement",e[e.LastStatement=259]="LastStatement",e[e.FirstNode=166]="FirstNode",e[e.FirstJSDocNode=316]="FirstJSDocNode",e[e.LastJSDocNode=357]="LastJSDocNode",e[e.FirstJSDocTagNode=334]="FirstJSDocTagNode",e[e.LastJSDocTagNode=357]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=165]="LastContextualKeyword",e))(QI||{}),YI=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(YI||{}),ZI=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(ZI||{}),Qj=(e=>(e[e.None=0]="None",e[e.IntrinsicNamedElement=1]="IntrinsicNamedElement",e[e.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",e[e.IntrinsicElement=3]="IntrinsicElement",e))(Qj||{}),KI=(e=>(e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.Reported=4]="Reported",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e))(KI||{}),e7=(e=>(e[e.None=0]="None",e[e.Auto=1]="Auto",e[e.Loop=2]="Loop",e[e.Unique=3]="Unique",e[e.Node=4]="Node",e[e.KindMask=7]="KindMask",e[e.ReservedInNestedScopes=8]="ReservedInNestedScopes",e[e.Optimistic=16]="Optimistic",e[e.FileLevel=32]="FileLevel",e[e.AllowNameSubstitution=64]="AllowNameSubstitution",e))(e7||{}),Yj=(e=>(e[e.None=0]="None",e[e.PrecedingLineBreak=1]="PrecedingLineBreak",e[e.PrecedingJSDocComment=2]="PrecedingJSDocComment",e[e.Unterminated=4]="Unterminated",e[e.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",e[e.Scientific=16]="Scientific",e[e.Octal=32]="Octal",e[e.HexSpecifier=64]="HexSpecifier",e[e.BinarySpecifier=128]="BinarySpecifier",e[e.OctalSpecifier=256]="OctalSpecifier",e[e.ContainsSeparator=512]="ContainsSeparator",e[e.UnicodeEscape=1024]="UnicodeEscape",e[e.ContainsInvalidEscape=2048]="ContainsInvalidEscape",e[e.HexEscape=4096]="HexEscape",e[e.ContainsLeadingZero=8192]="ContainsLeadingZero",e[e.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",e[e.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",e[e.WithSpecifier=448]="WithSpecifier",e[e.StringLiteralFlags=7176]="StringLiteralFlags",e[e.NumericLiteralFlags=25584]="NumericLiteralFlags",e[e.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",e[e.IsInvalid=26656]="IsInvalid",e))(Yj||{}),uP=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(uP||{}),Zj=(e=>(e[e.ExpectError=0]="ExpectError",e[e.Ignore=1]="Ignore",e))(Zj||{}),xk=class{},t7=(e=>(e[e.RootFile=0]="RootFile",e[e.SourceFromProjectReference=1]="SourceFromProjectReference",e[e.OutputFromProjectReference=2]="OutputFromProjectReference",e[e.Import=3]="Import",e[e.ReferenceFile=4]="ReferenceFile",e[e.TypeReferenceDirective=5]="TypeReferenceDirective",e[e.LibFile=6]="LibFile",e[e.LibReferenceDirective=7]="LibReferenceDirective",e[e.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",e))(t7||{}),Kj=(e=>(e[e.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",e[e.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",e[e.ResolutionDiagnostics=2]="ResolutionDiagnostics",e))(Kj||{}),eB=(e=>(e[e.Js=0]="Js",e[e.Dts=1]="Dts",e))(eB||{}),n7=(e=>(e[e.Not=0]="Not",e[e.SafeModules=1]="SafeModules",e[e.Completely=2]="Completely",e))(n7||{}),tB=(e=>(e[e.Success=0]="Success",e[e.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",e[e.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",e[e.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",e[e.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",e))(tB||{}),nB=(e=>(e[e.Ok=0]="Ok",e[e.NeedsOverride=1]="NeedsOverride",e[e.HasInvalidOverride=2]="HasInvalidOverride",e))(nB||{}),rB=(e=>(e[e.None=0]="None",e[e.Literal=1]="Literal",e[e.Subtype=2]="Subtype",e))(rB||{}),iB=(e=>(e[e.None=0]="None",e[e.Signature=1]="Signature",e[e.NoConstraints=2]="NoConstraints",e[e.Completions=4]="Completions",e[e.SkipBindingPatterns=8]="SkipBindingPatterns",e))(iB||{}),sB=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",e[e.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",e[e.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",e[e.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",e[e.AllowEmptyTuple=524288]="AllowEmptyTuple",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",e[e.WriteComputedProps=1073741824]="WriteComputedProps",e[e.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",e[e.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",e[e.IgnoreErrors=70221824]="IgnoreErrors",e[e.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.InInitialEntityName=16777216]="InInitialEntityName",e))(sB||{}),aB=(e=>(e[e.None=0]="None",e[e.NoTruncation=1]="NoTruncation",e[e.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",e[e.UseStructuralFallback=8]="UseStructuralFallback",e[e.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",e[e.UseFullyQualifiedType=64]="UseFullyQualifiedType",e[e.SuppressAnyReturnType=256]="SuppressAnyReturnType",e[e.MultilineObjectLiterals=1024]="MultilineObjectLiterals",e[e.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",e[e.UseTypeOfFunction=4096]="UseTypeOfFunction",e[e.OmitParameterModifiers=8192]="OmitParameterModifiers",e[e.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",e[e.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",e[e.NoTypeReduction=536870912]="NoTypeReduction",e[e.OmitThisParameter=33554432]="OmitThisParameter",e[e.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",e[e.AddUndefined=131072]="AddUndefined",e[e.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",e[e.InArrayType=524288]="InArrayType",e[e.InElementType=2097152]="InElementType",e[e.InFirstTypeArgument=4194304]="InFirstTypeArgument",e[e.InTypeAlias=8388608]="InTypeAlias",e[e.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",e))(aB||{}),oB=(e=>(e[e.None=0]="None",e[e.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",e[e.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",e[e.AllowAnyNodeKind=4]="AllowAnyNodeKind",e[e.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",e[e.WriteComputedProps=16]="WriteComputedProps",e[e.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",e))(oB||{}),cB=(e=>(e[e.Accessible=0]="Accessible",e[e.NotAccessible=1]="NotAccessible",e[e.CannotBeNamed=2]="CannotBeNamed",e))(cB||{}),lB=(e=>(e[e.UnionOrIntersection=0]="UnionOrIntersection",e[e.Spread=1]="Spread",e))(lB||{}),uB=(e=>(e[e.This=0]="This",e[e.Identifier=1]="Identifier",e[e.AssertsThis=2]="AssertsThis",e[e.AssertsIdentifier=3]="AssertsIdentifier",e))(uB||{}),_B=(e=>(e[e.Unknown=0]="Unknown",e[e.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",e[e.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",e[e.NumberLikeType=3]="NumberLikeType",e[e.BigIntLikeType=4]="BigIntLikeType",e[e.StringLikeType=5]="StringLikeType",e[e.BooleanType=6]="BooleanType",e[e.ArrayLikeType=7]="ArrayLikeType",e[e.ESSymbolType=8]="ESSymbolType",e[e.Promise=9]="Promise",e[e.TypeWithCallSignature=10]="TypeWithCallSignature",e[e.ObjectType=11]="ObjectType",e))(_B||{}),r7=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=67108863]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(r7||{}),fB=(e=>(e[e.Numeric=0]="Numeric",e[e.Literal=1]="Literal",e))(fB||{}),pB=(e=>(e[e.None=0]="None",e[e.Instantiated=1]="Instantiated",e[e.SyntheticProperty=2]="SyntheticProperty",e[e.SyntheticMethod=4]="SyntheticMethod",e[e.Readonly=8]="Readonly",e[e.ReadPartial=16]="ReadPartial",e[e.WritePartial=32]="WritePartial",e[e.HasNonUniformType=64]="HasNonUniformType",e[e.HasLiteralType=128]="HasLiteralType",e[e.ContainsPublic=256]="ContainsPublic",e[e.ContainsProtected=512]="ContainsProtected",e[e.ContainsPrivate=1024]="ContainsPrivate",e[e.ContainsStatic=2048]="ContainsStatic",e[e.Late=4096]="Late",e[e.ReverseMapped=8192]="ReverseMapped",e[e.OptionalParameter=16384]="OptionalParameter",e[e.RestParameter=32768]="RestParameter",e[e.DeferredType=65536]="DeferredType",e[e.HasNeverType=131072]="HasNeverType",e[e.Mapped=262144]="Mapped",e[e.StripOptional=524288]="StripOptional",e[e.Unresolved=1048576]="Unresolved",e[e.Synthetic=6]="Synthetic",e[e.Discriminant=192]="Discriminant",e[e.Partial=48]="Partial",e))(pB||{}),dB=(e=>(e.Call="__call",e.Constructor="__constructor",e.New="__new",e.Index="__index",e.ExportStar="__export",e.Global="__global",e.Missing="__missing",e.Type="__type",e.Object="__object",e.JSXAttributes="__jsxAttributes",e.Class="__class",e.Function="__function",e.Computed="__computed",e.Resolving="__resolving__",e.ExportEquals="export=",e.Default="default",e.This="this",e))(dB||{}),mB=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e))(mB||{}),i7=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(i7||{}),s7=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e))(s7||{}),gB=(e=>(e[e.Invariant=0]="Invariant",e[e.Covariant=1]="Covariant",e[e.Contravariant=2]="Contravariant",e[e.Bivariant=3]="Bivariant",e[e.Independent=4]="Independent",e[e.VarianceMask=7]="VarianceMask",e[e.Unmeasurable=8]="Unmeasurable",e[e.Unreliable=16]="Unreliable",e[e.AllowsStructuralFallback=24]="AllowsStructuralFallback",e))(gB||{}),hB=(e=>(e[e.Required=1]="Required",e[e.Optional=2]="Optional",e[e.Rest=4]="Rest",e[e.Variadic=8]="Variadic",e[e.Fixed=3]="Fixed",e[e.Variable=12]="Variable",e[e.NonRequired=14]="NonRequired",e[e.NonRest=11]="NonRest",e))(hB||{}),yB=(e=>(e[e.None=0]="None",e[e.IncludeUndefined=1]="IncludeUndefined",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.Writing=4]="Writing",e[e.CacheSymbol=8]="CacheSymbol",e[e.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",e[e.ExpressionPosition=32]="ExpressionPosition",e[e.ReportDeprecated=64]="ReportDeprecated",e[e.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",e[e.Contextual=256]="Contextual",e[e.Persistent=1]="Persistent",e))(yB||{}),vB=(e=>(e[e.None=0]="None",e[e.StringsOnly=1]="StringsOnly",e[e.NoIndexSignatures=2]="NoIndexSignatures",e[e.NoReducibleCheck=4]="NoReducibleCheck",e))(vB||{}),bB=(e=>(e[e.Component=0]="Component",e[e.Function=1]="Function",e[e.Mixed=2]="Mixed",e))(bB||{}),SB=(e=>(e[e.Call=0]="Call",e[e.Construct=1]="Construct",e))(SB||{}),a7=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(a7||{}),xB=(e=>(e[e.String=0]="String",e[e.Number=1]="Number",e))(xB||{}),TB=(e=>(e[e.Simple=0]="Simple",e[e.Array=1]="Array",e[e.Deferred=2]="Deferred",e[e.Function=3]="Function",e[e.Composite=4]="Composite",e[e.Merged=5]="Merged",e))(TB||{}),kB=(e=>(e[e.None=0]="None",e[e.NakedTypeVariable=1]="NakedTypeVariable",e[e.SpeculativeTuple=2]="SpeculativeTuple",e[e.SubstituteSource=4]="SubstituteSource",e[e.HomomorphicMappedType=8]="HomomorphicMappedType",e[e.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",e[e.MappedTypeConstraint=32]="MappedTypeConstraint",e[e.ContravariantConditional=64]="ContravariantConditional",e[e.ReturnType=128]="ReturnType",e[e.LiteralKeyof=256]="LiteralKeyof",e[e.NoConstraints=512]="NoConstraints",e[e.AlwaysStrict=1024]="AlwaysStrict",e[e.MaxValue=2048]="MaxValue",e[e.PriorityImpliesCombination=416]="PriorityImpliesCombination",e[e.Circularity=-1]="Circularity",e))(kB||{}),CB=(e=>(e[e.None=0]="None",e[e.NoDefault=1]="NoDefault",e[e.AnyDefault=2]="AnyDefault",e[e.SkippedGenericFunction=4]="SkippedGenericFunction",e))(CB||{}),EB=(e=>(e[e.False=0]="False",e[e.Unknown=1]="Unknown",e[e.Maybe=3]="Maybe",e[e.True=-1]="True",e))(EB||{}),DB=(e=>(e[e.None=0]="None",e[e.ExportsProperty=1]="ExportsProperty",e[e.ModuleExports=2]="ModuleExports",e[e.PrototypeProperty=3]="PrototypeProperty",e[e.ThisProperty=4]="ThisProperty",e[e.Property=5]="Property",e[e.Prototype=6]="Prototype",e[e.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",e[e.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",e[e.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",e))(DB||{}),_P=(e=>(e[e.Warning=0]="Warning",e[e.Error=1]="Error",e[e.Suggestion=2]="Suggestion",e[e.Message=3]="Message",e))(_P||{}),Tk=(e=>(e[e.Classic=1]="Classic",e[e.NodeJs=2]="NodeJs",e[e.Node10=2]="Node10",e[e.Node16=3]="Node16",e[e.NodeNext=99]="NodeNext",e[e.Bundler=100]="Bundler",e))(Tk||{}),PB=(e=>(e[e.Legacy=1]="Legacy",e[e.Auto=2]="Auto",e[e.Force=3]="Force",e))(PB||{}),wB=(e=>(e[e.FixedPollingInterval=0]="FixedPollingInterval",e[e.PriorityPollingInterval=1]="PriorityPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e[e.UseFsEvents=4]="UseFsEvents",e[e.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",e))(wB||{}),AB=(e=>(e[e.UseFsEvents=0]="UseFsEvents",e[e.FixedPollingInterval=1]="FixedPollingInterval",e[e.DynamicPriorityPolling=2]="DynamicPriorityPolling",e[e.FixedChunkSizePolling=3]="FixedChunkSizePolling",e))(AB||{}),NB=(e=>(e[e.FixedInterval=0]="FixedInterval",e[e.PriorityInterval=1]="PriorityInterval",e[e.DynamicPriority=2]="DynamicPriority",e[e.FixedChunkSize=3]="FixedChunkSize",e))(NB||{}),N4=(e=>(e[e.None=0]="None",e[e.CommonJS=1]="CommonJS",e[e.AMD=2]="AMD",e[e.UMD=3]="UMD",e[e.System=4]="System",e[e.ES2015=5]="ES2015",e[e.ES2020=6]="ES2020",e[e.ES2022=7]="ES2022",e[e.ESNext=99]="ESNext",e[e.Node16=100]="Node16",e[e.NodeNext=199]="NodeNext",e))(N4||{}),IB=(e=>(e[e.None=0]="None",e[e.Preserve=1]="Preserve",e[e.React=2]="React",e[e.ReactNative=3]="ReactNative",e[e.ReactJSX=4]="ReactJSX",e[e.ReactJSXDev=5]="ReactJSXDev",e))(IB||{}),FB=(e=>(e[e.Remove=0]="Remove",e[e.Preserve=1]="Preserve",e[e.Error=2]="Error",e))(FB||{}),OB=(e=>(e[e.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",e[e.LineFeed=1]="LineFeed",e))(OB||{}),o7=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(o7||{}),LB=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(LB||{}),MB=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(MB||{}),RB=(e=>(e[e.None=0]="None",e[e.Recursive=1]="Recursive",e))(RB||{}),jB=(e=>(e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e.replacementCharacter=65533]="replacementCharacter",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.backtick=96]="backtick",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.hash=35]="hash",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab",e))(jB||{}),BB=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(BB||{}),c7=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(c7||{}),l7=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(l7||{}),u7=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(u7||{}),JB=(e=>(e[e.None=0]="None",e[e.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",e[e.NeverApplyImportHelper=2]="NeverApplyImportHelper",e[e.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",e[e.Immutable=8]="Immutable",e[e.IndirectCall=16]="IndirectCall",e[e.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",e))(JB||{}),zB=(e=>(e[e.Extends=1]="Extends",e[e.Assign=2]="Assign",e[e.Rest=4]="Rest",e[e.Decorate=8]="Decorate",e[e.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",e[e.Metadata=16]="Metadata",e[e.Param=32]="Param",e[e.Awaiter=64]="Awaiter",e[e.Generator=128]="Generator",e[e.Values=256]="Values",e[e.Read=512]="Read",e[e.SpreadArray=1024]="SpreadArray",e[e.Await=2048]="Await",e[e.AsyncGenerator=4096]="AsyncGenerator",e[e.AsyncDelegator=8192]="AsyncDelegator",e[e.AsyncValues=16384]="AsyncValues",e[e.ExportStar=32768]="ExportStar",e[e.ImportStar=65536]="ImportStar",e[e.ImportDefault=131072]="ImportDefault",e[e.MakeTemplateObject=262144]="MakeTemplateObject",e[e.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",e[e.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",e[e.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",e[e.CreateBinding=4194304]="CreateBinding",e[e.SetFunctionName=8388608]="SetFunctionName",e[e.PropKey=16777216]="PropKey",e[e.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",e[e.FirstEmitHelper=1]="FirstEmitHelper",e[e.LastEmitHelper=33554432]="LastEmitHelper",e[e.ForOfIncludes=256]="ForOfIncludes",e[e.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",e[e.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",e[e.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",e[e.SpreadIncludes=1536]="SpreadIncludes",e))(zB||{}),VB=(e=>(e[e.SourceFile=0]="SourceFile",e[e.Expression=1]="Expression",e[e.IdentifierName=2]="IdentifierName",e[e.MappedTypeParameter=3]="MappedTypeParameter",e[e.Unspecified=4]="Unspecified",e[e.EmbeddedStatement=5]="EmbeddedStatement",e[e.JsxAttributeValue=6]="JsxAttributeValue",e))(VB||{}),WB=(e=>(e[e.Parentheses=1]="Parentheses",e[e.TypeAssertions=2]="TypeAssertions",e[e.NonNullAssertions=4]="NonNullAssertions",e[e.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",e[e.Assertions=6]="Assertions",e[e.All=15]="All",e[e.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",e))(WB||{}),UB=(e=>(e[e.None=0]="None",e[e.InParameters=1]="InParameters",e[e.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",e))(UB||{}),qB=(e=>(e.Prologue="prologue",e.EmitHelpers="emitHelpers",e.NoDefaultLib="no-default-lib",e.Reference="reference",e.Type="type",e.TypeResolutionModeRequire="type-require",e.TypeResolutionModeImport="type-import",e.Lib="lib",e.Prepend="prepend",e.Text="text",e.Internal="internal",e))(qB||{}),HB=(e=>(e[e.None=0]="None",e[e.SingleLine=0]="SingleLine",e[e.MultiLine=1]="MultiLine",e[e.PreserveLines=2]="PreserveLines",e[e.LinesMask=3]="LinesMask",e[e.NotDelimited=0]="NotDelimited",e[e.BarDelimited=4]="BarDelimited",e[e.AmpersandDelimited=8]="AmpersandDelimited",e[e.CommaDelimited=16]="CommaDelimited",e[e.AsteriskDelimited=32]="AsteriskDelimited",e[e.DelimitersMask=60]="DelimitersMask",e[e.AllowTrailingComma=64]="AllowTrailingComma",e[e.Indented=128]="Indented",e[e.SpaceBetweenBraces=256]="SpaceBetweenBraces",e[e.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",e[e.Braces=1024]="Braces",e[e.Parenthesis=2048]="Parenthesis",e[e.AngleBrackets=4096]="AngleBrackets",e[e.SquareBrackets=8192]="SquareBrackets",e[e.BracketsMask=15360]="BracketsMask",e[e.OptionalIfUndefined=16384]="OptionalIfUndefined",e[e.OptionalIfEmpty=32768]="OptionalIfEmpty",e[e.Optional=49152]="Optional",e[e.PreferNewLine=65536]="PreferNewLine",e[e.NoTrailingNewLine=131072]="NoTrailingNewLine",e[e.NoInterveningComments=262144]="NoInterveningComments",e[e.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",e[e.SingleElement=1048576]="SingleElement",e[e.SpaceAfterList=2097152]="SpaceAfterList",e[e.Modifiers=2359808]="Modifiers",e[e.HeritageClauses=512]="HeritageClauses",e[e.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",e[e.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",e[e.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",e[e.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",e[e.UnionTypeConstituents=516]="UnionTypeConstituents",e[e.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",e[e.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",e[e.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",e[e.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",e[e.ImportAttributes=526226]="ImportAttributes",e[e.ImportClauseEntries=526226]="ImportClauseEntries",e[e.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",e[e.CommaListElements=528]="CommaListElements",e[e.CallExpressionArguments=2576]="CallExpressionArguments",e[e.NewExpressionArguments=18960]="NewExpressionArguments",e[e.TemplateExpressionSpans=262144]="TemplateExpressionSpans",e[e.SingleLineBlockStatements=768]="SingleLineBlockStatements",e[e.MultiLineBlockStatements=129]="MultiLineBlockStatements",e[e.VariableDeclarationList=528]="VariableDeclarationList",e[e.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",e[e.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",e[e.ClassHeritageClauses=0]="ClassHeritageClauses",e[e.ClassMembers=129]="ClassMembers",e[e.InterfaceMembers=129]="InterfaceMembers",e[e.EnumMembers=145]="EnumMembers",e[e.CaseBlockClauses=129]="CaseBlockClauses",e[e.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",e[e.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",e[e.JsxElementAttributes=262656]="JsxElementAttributes",e[e.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",e[e.HeritageClauseTypes=528]="HeritageClauseTypes",e[e.SourceFileStatements=131073]="SourceFileStatements",e[e.Decorators=2146305]="Decorators",e[e.TypeArguments=53776]="TypeArguments",e[e.TypeParameters=53776]="TypeParameters",e[e.Parameters=2576]="Parameters",e[e.IndexSignatureParameters=8848]="IndexSignatureParameters",e[e.JSDocComment=33]="JSDocComment",e))(HB||{}),GB=(e=>(e[e.None=0]="None",e[e.TripleSlashXML=1]="TripleSlashXML",e[e.SingleLine=2]="SingleLine",e[e.MultiLine=4]="MultiLine",e[e.All=7]="All",e[e.Default=7]="Default",e))(GB||{}),fP={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},$B=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))($B||{})}});function I4(e){let t=5381;for(let n=0;n{V.isClosed=!0,o2(t,V)}}}function u(D){let O=[];return O.pollingInterval=D,O.pollIndex=0,O.pollScheduled=!1,O}function f(D,O){O.pollIndex=p(O,O.pollingInterval,O.pollIndex,p7[O.pollingInterval]),O.length?w(O.pollingInterval):(E.assert(O.pollIndex===0),O.pollScheduled=!1)}function g(D,O){p(n,250,0,n.length),f(D,O),!O.pollScheduled&&n.length&&w(250)}function p(D,O,z,V){return $he(e,D,z,V,X);function X(J,ie,B){B?(J.unchangedPolls=0,D!==n&&(D[ie]=void 0,x(J))):J.unchangedPolls!==dP[O]?J.unchangedPolls++:D===n?(J.unchangedPolls=1,D[ie]=void 0,S(J,250)):O!==2e3&&(J.unchangedPolls++,D[ie]=void 0,S(J,O===250?500:2e3))}}function y(D){switch(D){case 250:return i;case 500:return s;case 2e3:return o}}function S(D,O){y(O).push(D),C(O)}function x(D){n.push(D),C(250)}function C(D){y(D).pollScheduled||w(D)}function w(D){y(D).pollScheduled=e.setTimeout(D===250?g:f,D,D===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",y(D))}}function A5e(e,t){let n=mf(),i=new Map,s=cu(t);return o;function o(u,f,g,p){let y=s(u);n.add(y,f);let S=Xr(y)||".",x=i.get(S)||c(Xr(u)||".",S,p);return x.referenceCount++,{close:()=>{x.referenceCount===1?(x.close(),i.delete(S)):x.referenceCount--,n.remove(y,f)}}}function c(u,f,g){let p=e(u,1,(y,S,x)=>{if(!os(S))return;let C=cs(S,u),w=C&&n.get(s(C));if(w)for(let D of w)D(C,1,x)},!1,500,g);return p.referenceCount=0,i.set(f,p),p}}function N5e(e){let t=[],n=0,i;return s;function s(u,f){let g={fileName:u,callback:f,mtime:_x(e,u)};return t.push(g),c(),{close:()=>{g.isClosed=!0,o2(t,g)}}}function o(){i=void 0,n=$he(e,t,n,p7[250]),c()}function c(){!t.length||i||(i=e.setTimeout(o,2e3,"pollQueue"))}}function Xhe(e,t,n,i,s){let c=cu(t)(n),u=e.get(c);return u?u.callbacks.push(i):e.set(c,{watcher:s((f,g,p)=>{var y;return(y=e.get(c))==null?void 0:y.callbacks.slice().forEach(S=>S(f,g,p))}),callbacks:[i]}),{close:()=>{let f=e.get(c);f&&(!aP(f.callbacks,i)||f.callbacks.length||(e.delete(c),Cf(f)))}}}function I5e(e,t){let n=e.mtime.getTime(),i=t.getTime();return n!==i?(e.mtime=t,e.callback(e.fileName,XB(n,i),t),!0):!1}function XB(e,t){return e===0?0:t===0?2:1}function pP(e){return FK(e)}function AK(e){FK=e}function F5e({watchDirectory:e,useCaseSensitiveFileNames:t,getCurrentDirectory:n,getAccessibleSortedChildDirectories:i,fileSystemEntryExists:s,realpath:o,setTimeout:c,clearTimeout:u}){let f=new Map,g=mf(),p=new Map,y,S=D4(!t),x=cu(t);return(B,Z,ae,_e)=>ae?C(B,_e,Z):e(B,Z,ae,_e);function C(B,Z,ae){let _e=x(B),$=f.get(_e);$?$.refCount++:($={watcher:e(B,K=>{J(K,Z)||(Z?.synchronousWatchDirectory?(w(_e,K),X(B,_e,Z)):D(B,_e,K,Z))},!1,Z),refCount:1,childWatches:Ve},f.set(_e,$),X(B,_e,Z));let H=ae&&{dirName:B,callback:ae};return H&&g.add(_e,H),{dirName:B,close:()=>{let K=E.checkDefined(f.get(_e));H&&g.remove(_e,H),K.refCount--,!K.refCount&&(f.delete(_e),Cf(K),K.childWatches.forEach(fd))}}}function w(B,Z,ae){let _e,$;os(Z)?_e=Z:$=Z,g.forEach((H,K)=>{if(!($&&$.get(K)===!0)&&(K===B||ts(B,K)&&B[K.length]===Oo))if($)if(ae){let oe=$.get(K);oe?oe.push(...ae):$.set(K,ae.slice())}else $.set(K,!0);else H.forEach(({callback:oe})=>oe(_e))})}function D(B,Z,ae,_e){let $=f.get(Z);if($&&s(B,1)){O(B,Z,ae,_e);return}w(Z,ae),V($)}function O(B,Z,ae,_e){let $=p.get(Z);$?$.fileNames.push(ae):p.set(Z,{dirName:B,options:_e,fileNames:[ae]}),y&&(u(y),y=void 0),y=c(z,1e3,"timerToUpdateChildWatches")}function z(){y=void 0,pP(`sysLog:: onTimerToUpdateChildWatches:: ${p.size}`);let B=So(),Z=new Map;for(;!y&&p.size;){let _e=p.entries().next();E.assert(!_e.done);let{value:[$,{dirName:H,options:K,fileNames:oe}]}=_e;p.delete($);let Se=X(H,$,K);w($,Z,Se?void 0:oe)}pP(`sysLog:: invokingWatchers:: Elapsed:: ${So()-B}ms:: ${p.size}`),g.forEach((_e,$)=>{let H=Z.get($);H&&_e.forEach(({callback:K,dirName:oe})=>{ss(H)?H.forEach(K):K(oe)})});let ae=So()-B;pP(`sysLog:: Elapsed:: ${ae}ms:: onTimerToUpdateChildWatches:: ${p.size} ${y}`)}function V(B){if(!B)return;let Z=B.childWatches;B.childWatches=Ve;for(let ae of Z)ae.close(),V(f.get(x(ae.dirName)))}function X(B,Z,ae){let _e=f.get(Z);if(!_e)return!1;let $,H=HI(s(B,1)?Ri(i(B),Se=>{let se=cs(Se,B);return!J(se,ae)&&S(se,Ys(o(se)))===0?se:void 0}):Ve,_e.childWatches,(Se,se)=>S(Se,se.dirName),K,fd,oe);return _e.childWatches=$||Ve,H;function K(Se){let se=C(Se,ae);oe(se)}function oe(Se){($||($=[])).push(Se)}}function J(B,Z){return ft(mP,ae=>ie(B,ae))||Qhe(B,Z,t,n)}function ie(B,Z){return B.includes(Z)?!0:t?!1:x(B).includes(Z)}}function O5e(e){return(t,n,i)=>e(n===1?"change":"rename","",i)}function L5e(e,t,n){return(i,s,o)=>{i==="rename"?(o||(o=n(e)||cg),t(e,o!==cg?0:2,o)):t(e,1,o)}}function Qhe(e,t,n,i){return(t?.excludeDirectories||t?.excludeFiles)&&(TO(e,t?.excludeFiles,n,i())||TO(e,t?.excludeDirectories,n,i()))}function Yhe(e,t,n,i,s){return(o,c)=>{if(o==="rename"){let u=c?Ys(Qr(e,c)):e;(!c||!Qhe(u,n,i,s))&&t(u)}}}function NK({pollingWatchFileWorker:e,getModifiedTime:t,setTimeout:n,clearTimeout:i,fsWatchWorker:s,fileSystemEntryExists:o,useCaseSensitiveFileNames:c,getCurrentDirectory:u,fsSupportsRecursiveFsWatch:f,getAccessibleSortedChildDirectories:g,realpath:p,tscWatchFile:y,useNonPollingWatchers:S,tscWatchDirectory:x,inodeWatching:C,sysLog:w}){let D=new Map,O=new Map,z=new Map,V,X,J,ie,B=!1;return{watchFile:Z,watchDirectory:K};function Z(xe,Me,ke,he){he=$(he,S);let be=E.checkDefined(he.watchFile);switch(be){case 0:return se(xe,Me,250,void 0);case 1:return se(xe,Me,ke,void 0);case 2:return ae()(xe,Me,ke,void 0);case 3:return _e()(xe,Me,void 0,void 0);case 4:return Y(xe,0,L5e(xe,Me,t),!1,ke,uA(he));case 5:return J||(J=A5e(Y,c)),J(xe,Me,ke,uA(he));default:E.assertNever(be)}}function ae(){return V||(V=w5e({getModifiedTime:t,setTimeout:n}))}function _e(){return X||(X=N5e({getModifiedTime:t,setTimeout:n}))}function $(xe,Me){if(xe&&xe.watchFile!==void 0)return xe;switch(y){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return H(4,1,xe);case"UseFsEventsWithFallbackDynamicPolling":return H(4,2,xe);case"UseFsEventsOnParentDirectory":Me=!0;default:return Me?H(5,1,xe):{watchFile:4}}}function H(xe,Me,ke){let he=ke?.fallbackPolling;return{watchFile:xe,fallbackPolling:he===void 0?Me:he}}function K(xe,Me,ke,he){return f?Y(xe,1,Yhe(xe,Me,he,c,u),ke,500,uA(he)):(ie||(ie=F5e({useCaseSensitiveFileNames:c,getCurrentDirectory:u,fileSystemEntryExists:o,getAccessibleSortedChildDirectories:g,watchDirectory:oe,realpath:p,setTimeout:n,clearTimeout:i})),ie(xe,Me,ke,he))}function oe(xe,Me,ke,he){E.assert(!ke);let be=Se(he),_t=E.checkDefined(be.watchDirectory);switch(_t){case 1:return se(xe,()=>Me(xe),500,void 0);case 2:return ae()(xe,()=>Me(xe),500,void 0);case 3:return _e()(xe,()=>Me(xe),void 0,void 0);case 0:return Y(xe,1,Yhe(xe,Me,he,c,u),ke,500,uA(be));default:E.assertNever(_t)}}function Se(xe){if(xe&&xe.watchDirectory!==void 0)return xe;switch(x){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:let Me=xe?.fallbackPolling;return{watchDirectory:0,fallbackPolling:Me!==void 0?Me:void 0}}}function se(xe,Me,ke,he){return Xhe(D,c,xe,Me,be=>e(xe,be,ke,he))}function Y(xe,Me,ke,he,be,_t){return Xhe(he?z:O,c,xe,ke,mt=>ve(xe,Me,mt,he,be,_t))}function ve(xe,Me,ke,he,be,_t){let mt,me;C&&(mt=xe.substring(xe.lastIndexOf(Oo)),me=mt.slice(Oo.length));let Oe=o(xe,Me)?at():lt();return{close:()=>{Oe&&(Oe.close(),Oe=void 0)}};function Qe(Jt){Oe&&(w(`sysLog:: ${xe}:: Changing watcher to ${Jt===at?"Present":"Missing"}FileSystemEntryWatcher`),Oe.close(),Oe=Jt())}function at(){if(B)return w(`sysLog:: ${xe}:: Defaulting to watchFile`),Je();try{let Jt=s(xe,he,C?ht:ke);return Jt.on("error",()=>{ke("rename",""),Qe(lt)}),Jt}catch(Jt){return B||(B=Jt.code==="ENOSPC"),w(`sysLog:: ${xe}:: Changing to watchFile`),Je()}}function ht(Jt,Gt){let Tn;if(Gt&&Sc(Gt,"~")&&(Tn=Gt,Gt=Gt.slice(0,Gt.length-1)),Jt==="rename"&&(!Gt||Gt===me||Sc(Gt,mt))){let Un=t(xe)||cg;Tn&&ke(Jt,Tn,Un),ke(Jt,Gt,Un),C?Qe(Un===cg?lt:at):Un===cg&&Qe(lt)}else Tn&&ke(Jt,Tn),ke(Jt,Gt)}function Je(){return Z(xe,O5e(ke),be,_t)}function lt(){return Z(xe,(Jt,Gt,Tn)=>{Gt===0&&(Tn||(Tn=t(xe)||cg),Tn!==cg&&(ke("rename","",Tn),Qe(at)))},be,_t)}}}function IK(e){let t=e.writeFile;e.writeFile=(n,i,s)=>Iz(n,i,!!s,(o,c,u)=>t.call(e,o,c,u),o=>e.createDirectory(o),o=>e.directoryExists(o))}function Zhe(e){Hl=e}var QB,_7,cg,f7,p7,dP,mP,FK,YB,Hl,M5e=ze({"src/compiler/sys.ts"(){"use strict";Rs(),QB=(e=>(e[e.Created=0]="Created",e[e.Changed=1]="Changed",e[e.Deleted=2]="Deleted",e))(QB||{}),_7=(e=>(e[e.High=2e3]="High",e[e.Medium=500]="Medium",e[e.Low=250]="Low",e))(_7||{}),cg=new Date(0),f7={Low:32,Medium:64,High:256},p7=wK(f7),dP=wK(f7),mP=["/node_modules/.","/.git","/.#"],FK=Fa,YB=(e=>(e[e.File=0]="File",e[e.Directory=1]="Directory",e))(YB||{}),Hl=(()=>{let e="\uFEFF";function t(){let i=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,s=KD("fs"),o=KD("path"),c=F7e(),u;try{u=O7e()}catch{u=void 0}let f,g="./profile.cpuprofile",p=L7e().Buffer,y=process.platform==="linux"||process.platform==="darwin",S=c.platform(),x=_e(),C=s.realpathSync.native?process.platform==="win32"?be:s.realpathSync.native:s.realpathSync,w=__filename.endsWith("sys.js")?o.join(o.dirname(__dirname),"__fake__.js"):__filename,D=process.platform==="win32"||process.platform==="darwin",O=Yu(()=>process.cwd()),{watchFile:z,watchDirectory:V}=NK({pollingWatchFileWorker:H,getModifiedTime:mt,setTimeout,clearTimeout,fsWatchWorker:K,useCaseSensitiveFileNames:x,getCurrentDirectory:O,fileSystemEntryExists:xe,fsSupportsRecursiveFsWatch:D,getAccessibleSortedChildDirectories:at=>Y(at).directories,realpath:_t,tscWatchFile:process.env.TSC_WATCHFILE,useNonPollingWatchers:!!process.env.TSC_NONPOLLING_WATCHER,tscWatchDirectory:process.env.TSC_WATCHDIRECTORY,inodeWatching:y,sysLog:pP}),X={args:process.argv.slice(2),newLine:c.EOL,useCaseSensitiveFileNames:x,write(at){process.stdout.write(at)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Se,writeFile:se,watchFile:z,watchDirectory:V,resolvePath:at=>o.resolve(at),fileExists:Me,directoryExists:ke,createDirectory(at){if(!X.directoryExists(at))try{s.mkdirSync(at)}catch(ht){if(ht.code!=="EEXIST")throw ht}},getExecutingFilePath(){return w},getCurrentDirectory:O,getDirectories:he,getEnvironmentVariable(at){return process.env[at]||""},readDirectory:ve,getModifiedTime:mt,setModifiedTime:me,deleteFile:Oe,createHash:u?Qe:I4,createSHA256Hash:u?Qe:void 0,getMemoryUsage(){return global.gc&&global.gc(),process.memoryUsage().heapUsed},getFileSize(at){try{let ht=J(at);if(ht?.isFile())return ht.size}catch{}return 0},exit(at){Z(()=>process.exit(at))},enableCPUProfiler:ie,disableCPUProfiler:Z,cpuProfilingEnabled:()=>!!f||gs(process.execArgv,"--cpu-prof")||gs(process.execArgv,"--prof"),realpath:_t,debugMode:!!process.env.NODE_INSPECTOR_IPC||!!process.env.VSCODE_INSPECTOR_OPTIONS||ft(process.execArgv,at=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(at))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{M7e().install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var at;let ht=(at=process.stdout)==null?void 0:at._handle;ht&&ht.setBlocking&&ht.setBlocking(!0)},bufferFrom:ae,base64decode:at=>ae(at,"base64").toString("utf8"),base64encode:at=>ae(at).toString("base64"),require:(at,ht)=>{try{let Je=wie(ht,at,X);return{module:KD(Je),modulePath:Je,error:void 0}}catch(Je){return{module:void 0,modulePath:void 0,error:Je}}}};return X;function J(at){return s.statSync(at,{throwIfNoEntry:!1})}function ie(at,ht){if(f)return ht(),!1;let Je=R7e();if(!Je||!Je.Session)return ht(),!1;let lt=new Je.Session;return lt.connect(),lt.post("Profiler.enable",()=>{lt.post("Profiler.start",()=>{f=lt,g=at,ht()})}),!0}function B(at){let ht=0,Je=new Map,lt=Su(o.dirname(w)),Jt=`file://${km(lt)===1?"":"/"}${lt}`;for(let Gt of at.nodes)if(Gt.callFrame.url){let Tn=Su(Gt.callFrame.url);Cm(Jt,Tn,x)?Gt.callFrame.url=px(Jt,Tn,Jt,cu(x),!0):i.test(Tn)||(Gt.callFrame.url=(Je.has(Tn)?Je:Je.set(Tn,`external${ht}.js`)).get(Tn),ht++)}return at}function Z(at){if(f&&f!=="stopping"){let ht=f;return f.post("Profiler.stop",(Je,{profile:lt})=>{var Jt;if(!Je){try{(Jt=J(g))!=null&&Jt.isDirectory()&&(g=o.join(g,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{s.mkdirSync(o.dirname(g),{recursive:!0})}catch{}s.writeFileSync(g,JSON.stringify(B(lt)))}f=void 0,ht.disconnect(),at()}),f="stopping",!0}else return at(),!1}function ae(at,ht){return p.from&&p.from!==Int8Array.from?p.from(at,ht):new p(at,ht)}function _e(){return S==="win32"||S==="win64"?!1:!Me($(__filename))}function $(at){return at.replace(/\w/g,ht=>{let Je=ht.toUpperCase();return ht===Je?ht.toLowerCase():Je})}function H(at,ht,Je){s.watchFile(at,{persistent:!0,interval:Je},Jt);let lt;return{close:()=>s.unwatchFile(at,Jt)};function Jt(Gt,Tn){let Un=+Tn.mtime==0||lt===2;if(+Gt.mtime==0){if(Un)return;lt=2}else if(Un)lt=0;else{if(+Gt.mtime==+Tn.mtime)return;lt=1}ht(at,lt,Gt.mtime)}}function K(at,ht,Je){return s.watch(at,D?{persistent:!0,recursive:!!ht}:{persistent:!0},Je)}function oe(at,ht){let Je;try{Je=s.readFileSync(at)}catch{return}let lt=Je.length;if(lt>=2&&Je[0]===254&&Je[1]===255){lt&=-2;for(let Jt=0;Jt=2&&Je[0]===255&&Je[1]===254?Je.toString("utf16le",2):lt>=3&&Je[0]===239&&Je[1]===187&&Je[2]===191?Je.toString("utf8",3):Je.toString("utf8")}function Se(at,ht){var Je,lt;(Je=Lu)==null||Je.logStartReadFile(at);let Jt=oe(at,ht);return(lt=Lu)==null||lt.logStopReadFile(),Jt}function se(at,ht,Je){var lt;(lt=Lu)==null||lt.logEvent("WriteFile: "+at),Je&&(ht=e+ht);let Jt;try{Jt=s.openSync(at,"w"),s.writeSync(Jt,ht,void 0,"utf8")}finally{Jt!==void 0&&s.closeSync(Jt)}}function Y(at){var ht;(ht=Lu)==null||ht.logEvent("ReadDir: "+(at||"."));try{let Je=s.readdirSync(at||".",{withFileTypes:!0}),lt=[],Jt=[];for(let Gt of Je){let Tn=typeof Gt=="string"?Gt:Gt.name;if(Tn==="."||Tn==="..")continue;let Un;if(typeof Gt=="string"||Gt.isSymbolicLink()){let cn=Qr(at,Tn);try{if(Un=J(cn),!Un)continue}catch{continue}}else Un=Gt;Un.isFile()?lt.push(Tn):Un.isDirectory()&&Jt.push(Tn)}return lt.sort(),Jt.sort(),{files:lt,directories:Jt}}catch{return mF}}function ve(at,ht,Je,lt,Jt){return nV(at,ht,Je,lt,x,process.cwd(),Jt,Y,_t)}function xe(at,ht){let Je=Error.stackTraceLimit;Error.stackTraceLimit=0;try{let lt=J(at);if(!lt)return!1;switch(ht){case 0:return lt.isFile();case 1:return lt.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=Je}}function Me(at){return xe(at,0)}function ke(at){return xe(at,1)}function he(at){return Y(at).directories.slice()}function be(at){return at.length<260?s.realpathSync.native(at):s.realpathSync(at)}function _t(at){try{return C(at)}catch{return at}}function mt(at){var ht;let Je=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(ht=J(at))==null?void 0:ht.mtime}catch{return}finally{Error.stackTraceLimit=Je}}function me(at,ht){try{s.utimesSync(at,ht,ht)}catch{return}}function Oe(at){try{return s.unlinkSync(at)}catch{return}}function Qe(at){let ht=u.createHash("sha256");return ht.update(at),ht.digest("hex")}}let n;return zj()&&(n=t()),n&&IK(n),n})(),Hl&&Hl.getEnvironmentVariable&&(P5e(Hl),E.setAssertionLevel(/^development$/i.test(Hl.getEnvironmentVariable("NODE_ENV"))?1:0)),Hl&&Hl.debugMode&&(E.isDebugging=!0)}});function ZB(e){return e===47||e===92}function OK(e){return d7(e)<0}function I_(e){return d7(e)>0}function KB(e){let t=d7(e);return t>0&&t===e.length}function F4(e){return d7(e)!==0}function Q_(e){return/^\.\.?($|[\\/])/.test(e)}function eJ(e){return!F4(e)&&!Q_(e)}function fx(e){return Mc(e).includes(".")}function nc(e,t){return e.length>t.length&&Sc(e,t)}function $c(e,t){for(let n of t)if(nc(e,n))return!0;return!1}function zh(e){return e.length>0&&ZB(e.charCodeAt(e.length-1))}function Khe(e){return e>=97&&e<=122||e>=65&&e<=90}function R5e(e,t){let n=e.charCodeAt(t);if(n===58)return t+1;if(n===37&&e.charCodeAt(t+1)===51){let i=e.charCodeAt(t+2);if(i===97||i===65)return t+3}return-1}function d7(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let i=e.indexOf(t===47?Oo:vP,2);return i<0?e.length:i+1}if(Khe(t)&&e.charCodeAt(1)===58){let i=e.charCodeAt(2);if(i===47||i===92)return 3;if(e.length===2)return 2}let n=e.indexOf(MK);if(n!==-1){let i=n+MK.length,s=e.indexOf(Oo,i);if(s!==-1){let o=e.slice(0,n),c=e.slice(i,s);if(o==="file"&&(c===""||c==="localhost")&&Khe(e.charCodeAt(s+1))){let u=R5e(e,s+2);if(u!==-1){if(e.charCodeAt(u)===47)return~(u+1);if(u===e.length)return~u}}return~(s+1)}return~e.length}return 0}function km(e){let t=d7(e);return t<0?~t:t}function Xr(e){e=Su(e);let t=km(e);return t===e.length?e:(e=e1(e),e.slice(0,Math.max(t,e.lastIndexOf(Oo))))}function Mc(e,t,n){if(e=Su(e),km(e)===e.length)return"";e=e1(e);let s=e.slice(Math.max(km(e),e.lastIndexOf(Oo)+1)),o=t!==void 0&&n!==void 0?O4(s,t,n):void 0;return o?s.slice(0,s.length-o.length):s}function e0e(e,t,n){if(ts(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let i=e.slice(e.length-t.length);if(n(i,t))return i}}function j5e(e,t,n){if(typeof t=="string")return e0e(e,t,n)||"";for(let i of t){let s=e0e(e,i,n);if(s)return s}return""}function O4(e,t,n){if(t)return j5e(e1(e),t,n?lx:ux);let i=Mc(e),s=i.lastIndexOf(".");return s>=0?i.substring(s):""}function B5e(e,t){let n=e.substring(0,t),i=e.substring(t).split(Oo);return i.length&&!qo(i)&&i.pop(),[n,...i]}function bl(e,t=""){return e=Qr(t,e),B5e(e,km(e))}function z0(e,t){return e.length===0?"":(e[0]&&wl(e[0]))+e.slice(1,t).join(Oo)}function Su(e){return e.includes("\\")?e.replace(r0e,Oo):e}function f2(e){if(!ft(e))return[];let t=[e[0]];for(let n=1;n1){if(t[t.length-1]!==".."){t.pop();continue}}else if(t[0])continue}t.push(i)}}return t}function Qr(e,...t){e&&(e=Su(e));for(let n of t)n&&(n=Su(n),!e||km(n)!==0?e=n:e=wl(e)+n);return e}function V0(e,...t){return Ys(ft(t)?Qr(e,...t):Su(e))}function gP(e,t){return f2(bl(e,t))}function cs(e,t){return z0(gP(e,t))}function Ys(e){if(e=Su(e),!g7.test(e))return e;let t=e.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(t!==e&&(e=t,!g7.test(e)))return e;let n=z0(f2(bl(e)));return n&&zh(e)?wl(n):n}function J5e(e){return e.length===0?"":e.slice(1).join(Oo)}function tJ(e,t){return J5e(gP(e,t))}function xo(e,t,n){let i=I_(e)?Ys(e):cs(e,t);return n(i)}function e1(e){return zh(e)?e.substr(0,e.length-1):e}function wl(e){return zh(e)?e:e+Oo}function Cv(e){return!F4(e)&&!Q_(e)?"./"+e:e}function hP(e,t,n,i){let s=n!==void 0&&i!==void 0?O4(e,n,i):O4(e);return s?e.slice(0,e.length-s.length)+(ts(t,".")?t:"."+t):e}function LK(e,t,n){if(e===t)return 0;if(e===void 0)return-1;if(t===void 0)return 1;let i=e.substring(0,km(e)),s=t.substring(0,km(t)),o=VI(i,s);if(o!==0)return o;let c=e.substring(i.length),u=t.substring(s.length);if(!g7.test(c)&&!g7.test(u))return n(c,u);let f=f2(bl(e)),g=f2(bl(t)),p=Math.min(f.length,g.length);for(let y=1;y0==km(t)>0,"Paths must either both be absolute or both be relative");let o=rJ(e,t,(typeof n=="boolean"?n:!1)?lx:ux,typeof n=="function"?n:No);return z0(o)}function L4(e,t,n){return I_(e)?px(t,e,t,n,!1):e}function yP(e,t,n){return Cv(Em(Xr(e),t,n))}function px(e,t,n,i,s){let o=rJ(V0(n,e),V0(n,t),ux,i),c=o[0];if(s&&I_(c)){let u=c.charAt(0)===Oo?"file://":"file:///";o[0]=u+c}return z0(o)}function Ld(e,t){for(;;){let n=t(e);if(n!==void 0)return n;let i=Xr(e);if(i===e)return;e=i}}function m7(e){return Sc(e,"/node_modules")}var Oo,vP,MK,r0e,g7,z5e=ze({"src/compiler/path.ts"(){"use strict";Rs(),Oo="/",vP="\\",MK="://",r0e=/\\/g,g7=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function b(e,t,n,i,s,o,c){return{code:e,category:t,key:n,message:i,reportsUnnecessary:s,elidedInCompatabilityPyramid:o,reportsDeprecated:c}}var d,V5e=ze({"src/compiler/diagnosticInformationMap.generated.ts"(){"use strict";Hhe(),d={Unterminated_string_literal:b(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:b(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:b(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:b(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:b(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:b(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:b(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:b(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:b(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:b(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:b(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:b(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:b(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:b(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:b(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:b(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:b(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:b(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:b(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:b(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:b(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:b(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:b(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:b(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:b(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:b(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:b(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:b(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:b(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:b(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:b(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:b(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:b(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:b(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:b(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:b(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:b(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:b(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:b(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:b(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:b(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:b(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."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:b(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:b(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:b(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:b(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:b(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:b(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:b(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 type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:b(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:b(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:b(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:b(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:b(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:b(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:b(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:b(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:b(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:b(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:b(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:b(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:b(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:b(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:b(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:b(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:b(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:b(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:b(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:b(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:b(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:b(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:b(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:b(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:b(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:b(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:b(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:b(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:b(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:b(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:b(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:b(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:b(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:b(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:b(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:b(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:b(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:b(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:b(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:b(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:b(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:b(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:b(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:b(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:b(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:b(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:b(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:b(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:b(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:b(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:b(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:b(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:b(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:b(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:b(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:b(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:b(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:b(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:b(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:b(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:b(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:b(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:b(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:b(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:b(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:b(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:b(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:b(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:b(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:b(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:b(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:b(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:b(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:b(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:b(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:b(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:b(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:b(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:b(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:b(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:b(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:b(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:b(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:b(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:b(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:b(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:b(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:b(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:b(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:b(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:b(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:b(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:b(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:b(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:b(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:b(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:b(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:b(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:b(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:b(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:b(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:b(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:b(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:b(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:b(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:b(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:b(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:b(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:b(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:b(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:b(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:b(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:b(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:b(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:b(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:b(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:b(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:b(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:b(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:b(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:b(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:b(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:b(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:b(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:b(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:b(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:b(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:b(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:b(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:b(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:b(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:b(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:b(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:b(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:b(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:b(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:b(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:b(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:b(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:b(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:b(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:b(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:b(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:b(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:b(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'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:b(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."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:b(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."),Abstract_properties_can_only_appear_within_an_abstract_class:b(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:b(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:b(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:b(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:b(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:b(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:b(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:b(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:b(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:b(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:b(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:b(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:b(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:b(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:b(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:b(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:b(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:b(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:b(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:b(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:b(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:b(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:b(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:b(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:b(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:b(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:b(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:b(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:b(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:b(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."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(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."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:b(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:b(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."),with_statements_are_not_allowed_in_an_async_function_block:b(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:b(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:b(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:b(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:b(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:b(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:b(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:b(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:b(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:b(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:b(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:b(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'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:b(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'."),Argument_of_dynamic_import_cannot_be_spread_element:b(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:b(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:b(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:b(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:b(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:b(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:b(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:b(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:b(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:b(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:b(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:b(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:b(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:b(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:b(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:b(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:b(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'."),A_label_is_not_allowed_here:b(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:b(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:b(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:b(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:b(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:b(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:b(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:b(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:b(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:b(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:b(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:b(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:b(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:b(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:b(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:b(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:b(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:b(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:b(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:b(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:b(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:b(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:b(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:b(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:b(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:b(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:b(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'."),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:b(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:b(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:b(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(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."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:b(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:b(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:b(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:b(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:b(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:b(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:b(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:b(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:b(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:b(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:b(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:b(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:b(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:b(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:b(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:b(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:b(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:b(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:b(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:b(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:b(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:b(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:b(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:b(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:b(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:b(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:b(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:b(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:b(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:b(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:b(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:b(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:b(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:b(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:b(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:b(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:b(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:b(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:b(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:b(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:b(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:b(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:b(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:b(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:b(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:b(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(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."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:b(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:b(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:b(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:b(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:b(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:b(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:b(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:b(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:b(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:b(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:b(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(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."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:b(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."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:b(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:b(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:b(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:b(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:b(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:b(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:b(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:b(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:b(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:b(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:b(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:b(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:b(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:b(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:b(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:b(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:b(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:b(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:b(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:b(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:b(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:b(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:b(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:b(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:b(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:b(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:b(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:b(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:b(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:b(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:b(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:b(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:b(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:b(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:b(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:b(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:b(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:b(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:b(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:b(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:b(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:b(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:b(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:b(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:b(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:b(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:b(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:b(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:b(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:b(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:b(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:b(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:b(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:b(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:b(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:b(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:b(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:b(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:b(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:b(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:b(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:b(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:b(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:b(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:b(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:b(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:b(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:b(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:b(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:b(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:b(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:b(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:b(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:b(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:b(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:b(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:b(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:b(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:b(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:b(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:b(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:b(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:b(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:b(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:b(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:b(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:b(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:b(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:b(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:b(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:b(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:b(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:b(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}'."),Untyped_function_calls_may_not_accept_type_arguments:b(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:b(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:b(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:b(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:b(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:b(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:b(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:b(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:b(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:b(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:b(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:b(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:b(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:b(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:b(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:b(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:b(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:b(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:b(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:b(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:b(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:b(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:b(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:b(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:b(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:b(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:b(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:b(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:b(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:b(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:b(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:b(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:b(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:b(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:b(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:b(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:b(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:b(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:b(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:b(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:b(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:b(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:b(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:b(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:b(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:b(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:b(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:b(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:b(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:b(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:b(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:b(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:b(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:b(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:b(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:b(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:b(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:b(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:b(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:b(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:b(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:b(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:b(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:b(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:b(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:b(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:b(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:b(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:b(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:b(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:b(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:b(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:b(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:b(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:b(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:b(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:b(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:b(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:b(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:b(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:b(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:b(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:b(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:b(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:b(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:b(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:b(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:b(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:b(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:b(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:b(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:b(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:b(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:b(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:b(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:b(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:b(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:b(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:b(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:b(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:b(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:b(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:b(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:b(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:b(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:b(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:b(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:b(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:b(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:b(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:b(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:b(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:b(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:b(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:b(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:b(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:b(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:b(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:b(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:b(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:b(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:b(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:b(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:b(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:b(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:b(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:b(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:b(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:b(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."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:b(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:b(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:b(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:b(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:b(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:b(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:b(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:b(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:b(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:b(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:b(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:b(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:b(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:b(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:b(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:b(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:b(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:b(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:b(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:b(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:b(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:b(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:b(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:b(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."),yield_expressions_cannot_be_used_in_a_parameter_initializer:b(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:b(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:b(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."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:b(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:b(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:b(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:b(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:b(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:b(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:b(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:b(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:b(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:b(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:b(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:b(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:b(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:b(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:b(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:b(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:b(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:b(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:b(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:b(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:b(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:b(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:b(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:b(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:b(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:b(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:b(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:b(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:b(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:b(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:b(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:b(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:b(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:b(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:b(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:b(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:b(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:b(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:b(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:b(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:b(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:b(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:b(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:b(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:b(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:b(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:b(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:b(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:b(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:b(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:b(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:b(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:b(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:b(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:b(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:b(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:b(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:b(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:b(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:b(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:b(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:b(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:b(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:b(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:b(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:b(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:b(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:b(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:b(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:b(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:b(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:b(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:b(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:b(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:b(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:b(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:b(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:b(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:b(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:b(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:b(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:b(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:b(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:b(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:b(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:b(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:b(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:b(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:b(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:b(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:b(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:b(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:b(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:b(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:b(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:b(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:b(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."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:b(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:b(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:b(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}'."),JSX_expressions_must_have_one_parent_element:b(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:b(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:b(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:b(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:b(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:b(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:b(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:b(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:b(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:b(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:b(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:b(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:b(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:b(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:b(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:b(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:b(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:b(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:b(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:b(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:b(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:b(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:b(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:b(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:b(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:b(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:b(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:b(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:b(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:b(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:b(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:b(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:b(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:b(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:b(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:b(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:b(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:b(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:b(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:b(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:b(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:b(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:b(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:b(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:b(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(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."),Required_type_parameters_may_not_follow_optional_type_parameters:b(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:b(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:b(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:b(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:b(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:b(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:b(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."),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:b(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:b(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:b(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:b(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:b(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:b(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:b(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:b(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:b(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:b(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:b(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:b(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:b(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}."),Cannot_find_lib_definition_for_0:b(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:b(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:b(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:b(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:b(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:b(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:b(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:b(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:b(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:b(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:b(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:b(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:b(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:b(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:b(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:b(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:b(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:b(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:b(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:b(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:b(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:b(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:b(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:b(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:b(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:b(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:b(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:b(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:b(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:b(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:b(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:b(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:b(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:b(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:b(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:b(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:b(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:b(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:b(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:b(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:b(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:b(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:b(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:b(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:b(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:b(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:b(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:b(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:b(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:b(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:b(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:b(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:b(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:b(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:b(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:b(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:b(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:b(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:b(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:b(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:b(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:b(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:b(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:b(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:b(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:b(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:b(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:b(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:b(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:b(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:b(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:b(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:b(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:b(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:b(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:b(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:b(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:b(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:b(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:b(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:b(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:b(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:b(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:b(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:b(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:b(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:b(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:b(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:b(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:b(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:b(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:b(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:b(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:b(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'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:b(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:b(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2823","Import attributes are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Cannot_find_namespace_0_Did_you_mean_1:b(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:b(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:b(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:b(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:b(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:b(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:b(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:b(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:b(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:b(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:b(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:b(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:b(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:b(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:b(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:b(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:b(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:b(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:b(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:b(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:b(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:b(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:b(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:b(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:b(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:b(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:b(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:b(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:b(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_declaration_0_is_using_private_name_1:b(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:b(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:b(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:b(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:b(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:b(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:b(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:b(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:b(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:b(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:b(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:b(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:b(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:b(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:b(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:b(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:b(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:b(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:b(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:b(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:b(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:b(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:b(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:b(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:b(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:b(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:b(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:b(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:b(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:b(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:b(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:b(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:b(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:b(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:b(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:b(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:b(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:b(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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:b(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."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:b(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:b(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."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:b(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:b(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:b(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:b(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:b(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:b(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:b(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:b(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:b(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:b(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:b(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:b(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:b(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:b(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:b(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:b(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:b(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:b(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:b(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:b(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:b(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:b(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:b(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:b(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:b(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'."),The_current_host_does_not_support_the_0_option:b(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:b(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:b(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:b(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:b(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:b(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:b(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:b(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:b(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:b(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:b(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:b(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:b(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:b(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:b(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:b(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:b(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:b(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:b(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:b(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:b(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:b(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:b(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:b(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:b(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:b(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:b(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:b(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:b(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:b(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:b(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'."),Unknown_build_option_0:b(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:b(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:b(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:b(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:b(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:b(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:b(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:b(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:b(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:b(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:b(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:b(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:b(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:b(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:b(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:b(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:b(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:b(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:b(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:b(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:b(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:b(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:b(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."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:b(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:b(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:b(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:b(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:b(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:b(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:b(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:b(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:b(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:b(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:b(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:b(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:b(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:b(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:b(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:b(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:b(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:b(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:b(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:b(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:b(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:b(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:b(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:b(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:b(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:b(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:b(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:b(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:b(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:b(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:b(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:b(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:b(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:b(6024,3,"options_6024","options"),file:b(6025,3,"file_6025","file"),Examples_Colon_0:b(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:b(6027,3,"Options_Colon_6027","Options:"),Version_0:b(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:b(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:b(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:b(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:b(6034,3,"KIND_6034","KIND"),FILE:b(6035,3,"FILE_6035","FILE"),VERSION:b(6036,3,"VERSION_6036","VERSION"),LOCATION:b(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:b(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:b(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:b(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:b(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:b(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:b(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:b(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:b(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:b(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:b(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:b(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:b(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:b(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:b(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:b(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:b(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:b(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:b(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:b(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:b(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:b(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:b(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:b(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:b(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:b(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:b(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:b(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:b(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:b(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:b(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:b(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:b(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:b(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:b(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:b(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:b(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:b(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:b(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:b(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:b(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:b(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:b(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:b(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:b(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:b(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:b(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:b(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:b(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:b(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:b(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:b(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:b(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:b(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:b(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:b(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:b(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:b(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:b(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:b(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:b(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:b(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:b(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:b(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:b(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:b(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:b(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:b(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:b(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:b(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:b(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:b(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:b(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:b(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:b(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:b(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:b(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:b(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:b(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:b(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:b(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:b(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:b(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:b(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:b(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:b(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:b(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:b(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:b(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:b(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:b(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:b(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:b(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:b(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}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:b(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."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:b(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:b(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:b(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:b(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:b(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:b(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:b(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:b(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:b(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:b(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:b(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:b(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:b(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:b(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:b(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:b(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:b(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:b(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:b(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:b(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:b(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:b(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:b(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:b(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:b(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:b(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:b(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'."),Enable_all_strict_type_checking_options:b(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:b(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:b(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:b(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:b(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:b(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:b(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:b(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:b(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:b(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:b(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:b(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:b(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:b(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:b(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:b(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:b(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:b(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:b(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:b(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:b(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:b(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:b(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:b(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:b(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:b(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:b(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:b(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:b(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:b(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:b(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:b(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:b(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:b(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:b(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:b(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:b(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:b(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:b(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:b(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:b(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:b(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:b(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:b(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:b(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:b(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:b(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:b(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:b(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:b(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:b(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:b(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:b(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:b(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:b(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:b(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:b(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:b(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:b(6244,3,"Modules_6244","Modules"),File_Management:b(6245,3,"File_Management_6245","File Management"),Emit:b(6246,3,"Emit_6246","Emit"),JavaScript_Support:b(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:b(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:b(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:b(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:b(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:b(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:b(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:b(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:b(6255,3,"Projects_6255","Projects"),Output_Formatting:b(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:b(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:b(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:b(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:b(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:b(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:b(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:b(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:b(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:b(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:b(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:b(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:b(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:b(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:b(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:b(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:b(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:b(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:b(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.`),Enable_project_compilation:b(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:b(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:b(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:b(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:b(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."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:b(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"),Output_file_0_from_project_1_does_not_exist:b(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:b(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:b(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:b(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:b(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:b(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:b(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:b(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:b(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:b(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:b(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:b(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:b(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:b(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:b(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:b(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:b(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:b(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:b(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:b(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:b(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:b(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"),Updating_output_of_project_0:b(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:b(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}'"),A_non_dry_build_would_update_output_of_project_0:b(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:b(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}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:b(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:b(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:b(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:b(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:b(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:b(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:b(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:b(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:b(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:b(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:b(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:b(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:b(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:b(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:b(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:b(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:b(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:b(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:b(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:b(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:b(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:b(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:b(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:b(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:b(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:b(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:b(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:b(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:b(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:b(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:b(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:b(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:b(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:b(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:b(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:b(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:b(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:b(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:b(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:b(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:b(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:b(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:b(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:b(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:b(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:b(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:b(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:b(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:b(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:b(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:b(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:b(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:b(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:b(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:b(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:b(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:b(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:b(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:b(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:b(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:b(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:b(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:b(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:b(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:b(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:b(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:b(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:b(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:b(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:b(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:b(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:b(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:b(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:b(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:b(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:b(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:b(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:b(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:b(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:b(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:b(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:b(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:b(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."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:b(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:b(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:b(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:b(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:b(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:b(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:b(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:b(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:b(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:b(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:b(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:b(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:b(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:b(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:b(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:b(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:b(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:b(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:b(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:b(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:b(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:b(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:b(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:b(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:b(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:b(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:b(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:b(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:b(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:b(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:b(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:b(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 ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:b(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:b(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:b(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:b(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:b(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:b(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:b(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:b(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:b(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:b(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:b(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:b(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:b(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:b(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:b(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:b(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:b(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:b(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:b(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:b(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:b(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:b(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:b(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:b(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:b(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:b(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:b(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:b(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:b(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:b(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:b(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:b(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:b(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:b(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:b(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:b(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:b(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:b(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:b(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:b(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:b(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:b(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:b(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."),Default_catch_clause_variables_as_unknown_instead_of_any:b(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:b(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."),one_of_Colon:b(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:b(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:b(6902,3,"type_Colon_6902","type:"),default_Colon:b(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:b(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:b(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:b(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:b(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:b(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:b(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:b(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:b(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:b(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:b(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:b(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:b(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:b(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:b(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:b(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:b(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:b(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:b(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:b(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:b(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:b(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:b(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:b(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:b(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:b(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:b(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:b(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:b(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:b(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:b(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:b(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:b(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:b(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:b(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:b(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:b(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:b(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:b(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:b(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:b(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:b(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:b(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:b(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:b(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."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:b(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:b(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:b(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:b(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:b(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:b(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:b(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:b(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:b(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:b(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:b(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:b(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:b(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:b(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:b(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:b(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:b(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:b(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:b(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:b(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:b(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:b(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:b(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:b(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:b(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:b(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:b(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:b(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:b(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:b(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:b(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:b(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:b(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:b(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:b(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:b(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:b(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:b(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:b(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:b(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:b(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:b(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:b(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:b(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:b(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:b(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:b(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:b(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:b(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:b(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:b(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:b(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:b(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:b(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:b(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:b(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:b(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:b(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:b(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:b(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:b(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:b(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:b(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:b(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:b(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:b(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:b(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:b(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:b(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:b(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:b(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:b(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."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:b(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:b(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:b(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:b(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:b(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:b(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:b(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:b(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:b(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:b(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:b(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:b(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:b(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:b(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:b(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:b(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:b(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:b(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:b(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:b(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:b(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:b(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:b(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:b(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:b(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:b(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:b(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:b(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:b(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:b(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:b(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:b(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:b(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:b(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:b(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:b(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:b(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:b(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:b(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:b(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:b(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:b(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:b(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:b(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:b(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:b(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:b(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:b(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:b(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:b(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:b(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:b(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:b(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:b(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:b(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:b(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:b(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:b(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:b(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:b(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:b(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:b(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:b(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:b(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:b(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:b(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:b(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:b(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:b(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:b(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:b(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:b(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:b(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:b(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:b(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:b(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:b(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:b(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:b(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:b(95005,3,"Extract_function_95005","Extract function"),Extract_constant:b(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:b(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:b(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:b(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:b(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:b(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:b(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:b(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:b(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:b(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:b(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:b(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:b(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:b(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:b(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:b(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:b(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:b(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:b(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:b(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:b(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:b(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:b(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:b(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:b(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:b(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:b(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:b(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:b(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:b(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:b(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:b(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:b(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:b(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:b(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:b(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:b(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:b(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:b(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:b(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:b(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:b(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:b(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:b(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:b(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:b(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:b(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:b(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:b(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:b(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:b(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:b(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:b(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:b(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:b(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:b(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:b(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:b(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:b(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:b(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:b(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:b(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:b(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:b(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:b(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:b(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:b(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:b(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:b(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:b(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:b(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:b(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:b(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:b(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:b(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:b(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:b(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:b(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:b(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:b(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:b(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:b(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:b(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:b(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:b(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:b(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:b(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:b(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:b(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:b(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:b(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:b(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:b(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:b(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:b(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:b(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:b(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:b(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:b(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:b(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:b(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:b(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:b(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:b(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:b(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:b(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:b(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:b(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:b(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:b(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:b(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:b(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:b(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:b(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:b(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:b(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:b(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:b(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:b(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:b(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:b(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:b(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:b(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:b(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:b(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:b(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:b(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:b(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:b(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:b(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:b(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:b(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:b(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:b(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:b(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:b(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:b(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:b(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:b(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:b(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:b(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:b(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:b(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:b(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:b(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:b(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:b(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:b(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:b(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:b(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:b(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:b(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:b(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:b(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:b(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:b(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:b(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:b(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:b(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:b(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:b(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:b(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:b(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:b(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:b(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:b(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:b(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:b(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:b(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:b(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:b(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:b(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:b(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:b(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:b(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:b(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:b(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:b(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:b(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:b(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:b(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:b(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:b(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:b(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:b(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:b(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:b(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:b(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:b(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:b(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:b(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:b(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:b(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:b(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:b(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:b(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:b(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:b(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:b(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:b(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:b(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:b(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:b(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:b(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:b(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:b(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:b(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:b(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:b(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:b(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:b(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:b(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:b(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:b(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:b(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:b(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:b(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:b(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:b(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:b(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function Mu(e){return e>=80}function RK(e){return e===32||Mu(e)}function bP(e,t){if(e=2?bP(e,_0e):t===1?bP(e,l0e):bP(e,o0e)}function W5e(e,t){return t>=2?bP(e,f0e):t===1?bP(e,u0e):bP(e,c0e)}function U5e(e){let t=[];return e.forEach((n,i)=>{t[n]=i}),t}function Zs(e){return g0e[e]}function Ev(e){return zK.get(e)}function dx(e){let t=[],n=0,i=0;for(;n127&&xu(s)&&(t.push(i),i=n);break}}return t.push(i),t}function SP(e,t,n,i){return e.getPositionOfLineAndCharacter?e.getPositionOfLineAndCharacter(t,n,i):y7(Zg(e),t,n,e.text,i)}function y7(e,t,n,i,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:E.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${i!==void 0?tP(e,dx(i)):"unknown"}`));let o=e[t]+n;return s?o>e[t+1]?e[t+1]:typeof i=="string"&&o>i.length?i.length:o:(t=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function xu(e){return e===10||e===13||e===8232||e===8233}function j4(e){return e>=48&&e<=57}function i0e(e){return j4(e)||e>=65&&e<=70||e>=97&&e<=102}function q5e(e){return e<=1114111}function v7(e){return e>=48&&e<=55}function jK(e,t){let n=e.charCodeAt(t);switch(n){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return t===0;default:return n>127}}function ma(e,t,n,i,s){if(dd(t))return t;let o=!1;for(;;){let c=e.charCodeAt(t);switch(c){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,n)return t;o=!!s;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(i)break;if(e.charCodeAt(t+1)===47){for(t+=2;t127&&Kg(c)){t++;continue}break}return t}}function B4(e,t){if(E.assert(t>=0),t===0||xu(e.charCodeAt(t-1))){let n=e.charCodeAt(t);if(t+S7=0&&n127&&Kg(C)){y&&xu(C)&&(p=!0),n++;continue}break e}}return y&&(x=s(u,f,g,p,o,x)),x}function TP(e,t,n,i){return aJ(!1,e,t,!1,n,i)}function kP(e,t,n,i){return aJ(!1,e,t,!0,n,i)}function BK(e,t,n,i,s){return aJ(!0,e,t,!1,n,i,s)}function JK(e,t,n,i,s){return aJ(!0,e,t,!0,n,i,s)}function s0e(e,t,n,i,s,o=[]){return o.push({kind:n,pos:e,end:t,hasTrailingNewLine:i}),o}function lg(e,t){return BK(e,t,s0e,void 0,void 0)}function n1(e,t){return JK(e,t,s0e,void 0,void 0)}function b7(e){let t=oJ.exec(e);if(t)return t[0]}function ug(e,t){return e>=65&&e<=90||e>=97&&e<=122||e===36||e===95||e>127&&h7(e,t)}function r1(e,t,n){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===36||e===95||(n===1?e===45||e===58:!1)||e>127&&W5e(e,t)}function hf(e,t,n){let i=W0(e,0);if(!ug(i,t))return!1;for(let s=i1(i);sp,getStartPos:()=>p,getTokenEnd:()=>f,getTextPos:()=>f,getToken:()=>S,getTokenStart:()=>y,getTokenPos:()=>y,getTokenText:()=>u.substring(y,f),getTokenValue:()=>x,hasUnicodeEscape:()=>(C&1024)!==0,hasExtendedUnicodeEscape:()=>(C&8)!==0,hasPrecedingLineBreak:()=>(C&1)!==0,hasPrecedingJSDocComment:()=>(C&2)!==0,isIdentifier:()=>S===80||S>118,isReservedWord:()=>S>=83&&S<=118,isUnterminated:()=>(C&4)!==0,getCommentDirectives:()=>w,getNumericLiteralFlags:()=>C&25584,getTokenFlags:()=>C,reScanGreaterToken:me,reScanAsteriskEqualsToken:Oe,reScanSlashToken:Qe,reScanTemplateToken:Je,reScanTemplateHeadOrNoSubstitutionTemplate:lt,scanJsxIdentifier:zt,scanJsxAttributeValue:Ft,reScanJsxAttributeValue:Lr,reScanJsxToken:Jt,reScanLessThanToken:Gt,reScanHashToken:Tn,reScanQuestionToken:Un,reScanInvalidIdentifier:_t,scanJsxToken:cn,scanJsDocToken:ii,scanJSDocCommentTextToken:ji,scan:he,getText:Ot,clearCommentDirectives:Sn,setText:Cn,setScriptTarget:Fi,setLanguageVariant:Wi,setScriptKind:Ii,setJSDocParsingMode:Ki,setOnError:Kn,resetTokenState:na,setTextPos:na,setInJSDocType:Fs,tryScan:An,lookAhead:fn,scanRange:Ye};return E.isDebugging&&Object.defineProperty(V,"__debugShowCurrentPositionInText",{get:()=>{let Ce=V.getText();return Ce.slice(0,V.getTokenFullStart())+"\u2551"+Ce.slice(V.getTokenFullStart())}}),V;function X(Ce,Ue=f,it,dt){if(s){let gt=f;f=Ue,s(Ce,it||0,dt),f=gt}}function J(){let Ce=f,Ue=!1,it=!1,dt="";for(;;){let gt=u.charCodeAt(f);if(gt===95){C|=512,Ue?(Ue=!1,it=!0,dt+=u.substring(Ce,f)):(C|=16384,X(it?d.Multiple_consecutive_numeric_separators_are_not_permitted:d.Numeric_separators_are_not_allowed_here,f,1)),f++,Ce=f;continue}if(j4(gt)){Ue=!0,it=!1,f++;continue}break}return u.charCodeAt(f-1)===95&&(C|=16384,X(d.Numeric_separators_are_not_allowed_here,f-1,1)),dt+u.substring(Ce,f)}function ie(){let Ce=f,Ue;if(u.charCodeAt(f)===48)if(f++,u.charCodeAt(f)===95)C|=16896,X(d.Numeric_separators_are_not_allowed_here,f,1),f--,Ue=J();else if(!Z())C|=8192,Ue=""+ +x;else if(!x)Ue="0";else{x=""+parseInt(x,8),C|=32;let we=S===41,Be=(we?"-":"")+"0o"+(+x).toString(8);return we&&Ce--,X(d.Octal_literals_are_not_allowed_Use_the_syntax_0,Ce,f-Ce,Be),9}else Ue=J();let it,dt;u.charCodeAt(f)===46&&(f++,it=J());let gt=f;if(u.charCodeAt(f)===69||u.charCodeAt(f)===101){f++,C|=16,(u.charCodeAt(f)===43||u.charCodeAt(f)===45)&&f++;let we=f,Be=J();Be?(dt=u.substring(gt,we)+Be,gt=f):X(d.Digit_expected)}let fe;if(C&512?(fe=Ue,it&&(fe+="."+it),dt&&(fe+=dt)):fe=u.substring(Ce,gt),C&8192)return X(d.Decimals_with_leading_zeros_are_not_allowed,Ce,gt-Ce),x=""+ +fe,9;if(it!==void 0||C&16)return B(Ce,it===void 0&&!!(C&16)),x=""+ +fe,9;{x=fe;let we=ke();return B(Ce),we}}function B(Ce,Ue){if(!ug(W0(u,f),e))return;let it=f,{length:dt}=ve();dt===1&&u[it]==="n"?X(Ue?d.A_bigint_literal_cannot_use_exponential_notation:d.A_bigint_literal_must_be_an_integer,Ce,it-Ce+1):(X(d.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,it,dt),f=it)}function Z(){let Ce=f,Ue=!0;for(;j4(u.charCodeAt(f));)v7(u.charCodeAt(f))||(Ue=!1),f++;return x=u.substring(Ce,f),Ue}function ae(Ce,Ue){let it=$(Ce,!1,Ue);return it?parseInt(it,16):-1}function _e(Ce,Ue){return $(Ce,!0,Ue)}function $(Ce,Ue,it){let dt=[],gt=!1,fe=!1;for(;dt.length=65&&we<=70)we+=32;else if(!(we>=48&&we<=57||we>=97&&we<=102))break;dt.push(we),f++,fe=!1}return dt.length=g){it+=u.substring(dt,f),C|=4,X(d.Unterminated_string_literal);break}let gt=u.charCodeAt(f);if(gt===Ue){it+=u.substring(dt,f),f++;break}if(gt===92&&!Ce){it+=u.substring(dt,f),it+=oe(!0),dt=f;continue}if((gt===10||gt===13)&&!Ce){it+=u.substring(dt,f),C|=4,X(d.Unterminated_string_literal);break}f++}return it}function K(Ce){let Ue=u.charCodeAt(f)===96;f++;let it=f,dt="",gt;for(;;){if(f>=g){dt+=u.substring(it,f),C|=4,X(d.Unterminated_template_literal),gt=Ue?15:18;break}let fe=u.charCodeAt(f);if(fe===96){dt+=u.substring(it,f),f++,gt=Ue?15:18;break}if(fe===36&&f+1=g)return X(d.Unexpected_end_of_text),"";let it=u.charCodeAt(f);switch(f++,it){case 48:if(f>=g||!j4(u.charCodeAt(f)))return"\0";case 49:case 50:case 51:f=g?(C|=2048,Ce&&X(d.Unexpected_end_of_text),u.substring(Ue,f)):u.charCodeAt(f)!==125?(C|=2048,Ce&&X(d.Unterminated_Unicode_escape_sequence),u.substring(Ue,f)):(f++,C|=8,Ck(gt)):(C|=2048,Ce&&X(d.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),u.substring(Ue,f))}for(;f1114111&&(X(d.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),it=!0),f>=g?(X(d.Unexpected_end_of_text),it=!0):u.charCodeAt(f)===125?f++:(X(d.Unterminated_Unicode_escape_sequence),it=!0),it?"":Ck(Ue)}function se(){if(f+5=0&&r1(it,e)){f+=3,C|=8,Ce+=Se(),Ue=f;continue}if(it=se(),!(it>=0&&r1(it,e)))break;C|=1024,Ce+=u.substring(Ue,f),Ce+=Ck(it),f+=6,Ue=f}else break}return Ce+=u.substring(Ue,f),Ce}function xe(){let Ce=x.length;if(Ce>=2&&Ce<=12){let Ue=x.charCodeAt(0);if(Ue>=97&&Ue<=122){let it=a0e.get(x);if(it!==void 0)return S=it}}return S=80}function Me(Ce){let Ue="",it=!1,dt=!1;for(;;){let gt=u.charCodeAt(f);if(gt===95){C|=512,it?(it=!1,dt=!0):X(dt?d.Multiple_consecutive_numeric_separators_are_not_permitted:d.Numeric_separators_are_not_allowed_here,f,1),f++;continue}if(it=!0,!j4(gt)||gt-48>=Ce)break;Ue+=u[f],f++,dt=!1}return u.charCodeAt(f-1)===95&&X(d.Numeric_separators_are_not_allowed_here,f-1,1),Ue}function ke(){return u.charCodeAt(f)===110?(x+="n",C&384&&(x=FE(x)+"n"),f++,10):(x=""+(C&128?parseInt(x.slice(2),2):C&256?parseInt(x.slice(2),8):+x),9)}function he(){p=f,C=0;let Ce=!1;for(;;){if(y=f,f>=g)return S=1;let Ue=W0(u,f);if(f===0){if(Ue===65533)return X(d.File_appears_to_be_binary),f=g,S=8;if(Ue===35&&iJ(u,f)){if(f=sJ(u,f),t)continue;return S=6}}switch(Ue){case 10:case 13:if(C|=1,t){f++;continue}else return Ue===13&&f+1=0&&ug(it,e))return f+=3,C|=8,x=Se()+ve(),S=xe();let dt=se();return dt>=0&&ug(dt,e)?(f+=6,C|=1024,x=String.fromCharCode(dt)+ve(),S=xe()):(X(d.Invalid_character),f++,S=0);case 35:if(f!==0&&u[f+1]==="!")return X(d.can_only_be_used_at_the_start_of_a_file),f++,S=0;let gt=W0(u,f+1);if(gt===92){f++;let Be=Y();if(Be>=0&&ug(Be,e))return f+=3,C|=8,x="#"+Se()+ve(),S=81;let yt=se();if(yt>=0&&ug(yt,e))return f+=6,C|=1024,x="#"+String.fromCharCode(yt)+ve(),S=81;f--}return ug(gt,e)?(f++,mt(gt,e)):(x="#",X(d.Invalid_character,f++,i1(Ue))),S=81;default:let fe=mt(Ue,e);if(fe)return S=fe;if(Md(Ue)){f+=i1(Ue);continue}else if(xu(Ue)){C|=1,f+=i1(Ue);continue}let we=i1(Ue);return X(d.Invalid_character,f,we),f+=we,S=0}}}function be(){switch(z){case 0:return!0;case 1:return!1}return O!==3&&O!==4?!0:z===3?!1:m0e.test(u.slice(p,f))}function _t(){E.assert(S===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),f=y=p,C=0;let Ce=W0(u,f),Ue=mt(Ce,99);return Ue?S=Ue:(f+=i1(Ce),S)}function mt(Ce,Ue){let it=Ce;if(ug(it,Ue)){for(f+=i1(it);f=g)return S=1;let Ue=u.charCodeAt(f);if(Ue===60)return u.charCodeAt(f+1)===47?(f+=2,S=31):(f++,S=30);if(Ue===123)return f++,S=19;let it=0;for(;f0)break;Kg(Ue)||(it=f)}f++}return x=u.substring(p,f),it===-1?13:12}function zt(){if(Mu(S)){for(;f=g)return S=1;for(let Ue=u.charCodeAt(f);f=0&&Md(u.charCodeAt(f-1))&&!(f+1=g)return S=1;let Ce=W0(u,f);switch(f+=i1(Ce),Ce){case 9:case 11:case 12:case 32:for(;f=0&&ug(Ue,e))return f+=3,C|=8,x=Se()+ve(),S=xe();let it=se();return it>=0&&ug(it,e)?(f+=6,C|=1024,x=String.fromCharCode(it)+ve(),S=xe()):(f++,S=0)}if(ug(Ce,e)){let Ue=Ce;for(;f=0),f=Ce,p=Ce,y=Ce,S=0,x=void 0,C=0}function Fs(Ce){D+=Ce?1:-1}}function W0(e,t){return e.codePointAt(t)}function i1(e){return e>=65536?2:1}function H5e(e){if(E.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,n=(e-65536)%1024+56320;return String.fromCharCode(t,n)}function Ck(e){return h0e(e)}var CP,a0e,zK,o0e,c0e,l0e,u0e,_0e,f0e,p0e,d0e,m0e,g0e,S7,oJ,h0e,G5e=ze({"src/compiler/scanner.ts"(){"use strict";Rs(),CP={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},a0e=new Map(Object.entries(CP)),zK=new Map(Object.entries({...CP,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),o0e=[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],c0e=[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],l0e=[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],u0e=[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],_0e=[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],f0e=[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],p0e=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,d0e=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,m0e=/@(?:see|link)/i,g0e=U5e(zK),S7=7,oJ=/^#!.*/,h0e=String.fromCodePoint?e=>String.fromCodePoint(e):H5e}});function Al(e){return Q_(e)||I_(e)}function Ek(e){return k4(e,PE)}function EP(e){switch(La(e)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Dc(e){return e.start+e.length}function VK(e){return e.length===0}function cJ(e,t){return t>=e.start&&t=e.pos&&t<=e.end}function WK(e,t){return t.start>=e.start&&Dc(t)<=Dc(e)}function y0e(e,t){return UK(e,t)!==void 0}function UK(e,t){let n=HK(e,t);return n&&n.length===0?void 0:n}function v0e(e,t){return PP(e.start,e.length,t.start,t.length)}function x7(e,t,n){return PP(e.start,e.length,t,n)}function PP(e,t,n,i){let s=e+t,o=n+i;return n<=s&&o>=e}function qK(e,t){return t<=Dc(e)&&t>=e.start}function HK(e,t){let n=Math.max(e.start,t.start),i=Math.min(Dc(e),Dc(t));return n<=i?Xc(n,i):void 0}function Gl(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function Xc(e,t){return Gl(e,t-e)}function J4(e){return Gl(e.span.start,e.newLength)}function GK(e){return VK(e.span)&&e.newLength===0}function wP(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}function $K(e){if(e.length===0)return qP;if(e.length===1)return e[0];let t=e[0],n=t.span.start,i=Dc(t.span),s=n+t.newLength;for(let o=1;o=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function Ci(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function ur(e){return Ci(e.escapedText)}function s1(e){let t=Ev(e.escapedText);return t?Ur(t,p_):void 0}function xc(e){return e.valueDeclaration&&ju(e.valueDeclaration)?ur(e.valueDeclaration.name):Ci(e.escapedName)}function x0e(e){let t=e.parent.parent;if(t){if(ku(t))return uJ(t);switch(t.kind){case 243:if(t.declarationList&&t.declarationList.declarations[0])return uJ(t.declarationList.declarations[0]);break;case 244:let n=t.expression;switch(n.kind===226&&n.operatorToken.kind===64&&(n=n.left),n.kind){case 211:return n.name;case 212:let i=n.argumentExpression;if(Ie(i))return i}break;case 217:return uJ(t.expression);case 256:{if(ku(t.statement)||ut(t.statement))return uJ(t.statement);break}}}}function uJ(e){let t=us(e);return t&&Ie(t)?t:void 0}function AP(e,t){return!!(Ru(e)&&Ie(e.name)&&ur(e.name)===ur(t)||uc(e)&&ft(e.declarationList.declarations,n=>AP(n,t)))}function ZK(e){return e.name||x0e(e)}function Ru(e){return!!e.name}function T7(e){switch(e.kind){case 80:return e;case 355:case 348:{let{name:n}=e;if(n.kind===166)return n.right;break}case 213:case 226:{let n=e;switch(mc(n)){case 1:case 4:case 5:case 3:return h5(n.left);case 7:case 8:case 9:return n.arguments[1];default:return}}case 353:return ZK(e);case 347:return x0e(e);case 277:{let{expression:n}=e;return Ie(n)?n:void 0}case 212:let t=e;if(g5(t))return t.argumentExpression}return e.name}function us(e){if(e!==void 0)return T7(e)||(uo(e)||Co(e)||Bl(e)?_J(e):void 0)}function _J(e){if(e.parent){if(el(e.parent)||Ma(e.parent))return e.parent.name;if(Yn(e.parent)&&e===e.parent.right){if(Ie(e.parent.left))return e.parent.left;if(ho(e.parent.left))return h5(e.parent.left)}else if(Ni(e.parent)&&Ie(e.parent.name))return e.parent.name}else return}function U0(e){if(Vf(e))return Fr(e.modifiers,Zl)}function Pv(e){if(Mr(e,98303))return Fr(e.modifiers,ra)}function T0e(e,t){if(e.name)if(Ie(e.name)){let n=e.name.escapedText;return IP(e.parent,t).filter(i=>gd(i)&&Ie(i.name)&&i.name.escapedText===n)}else{let n=e.parent.parameters.indexOf(e);E.assert(n>-1,"Parameters should always be in their parents' parameter list");let i=IP(e.parent,t).filter(gd);if(nhd(i)&&i.typeParameters.some(s=>s.name.escapedText===n))}function eee(e){return k0e(e,!1)}function tee(e){return k0e(e,!0)}function nee(e){return!!_p(e,gd)}function ree(e){return _p(e,NC)}function iee(e){return gJ(e,cW)}function fJ(e){return _p(e,Fre)}function C0e(e){return _p(e,rW)}function see(e){return _p(e,rW,!0)}function E0e(e){return _p(e,iW)}function aee(e){return _p(e,iW,!0)}function D0e(e){return _p(e,sW)}function oee(e){return _p(e,sW,!0)}function P0e(e){return _p(e,aW)}function cee(e){return _p(e,aW,!0)}function lee(e){return _p(e,cO,!0)}function pJ(e){return _p(e,oW)}function uee(e){return _p(e,oW,!0)}function dJ(e){return _p(e,x8)}function k7(e){return _p(e,Ore)}function _ee(e){return _p(e,lO)}function w0e(e){return _p(e,hd)}function mJ(e){return _p(e,uO)}function a1(e){let t=_p(e,i3);if(t&&t.typeExpression&&t.typeExpression.type)return t}function o1(e){let t=_p(e,i3);return!t&&ms(e)&&(t=xr(Pk(e),n=>!!n.typeExpression)),t&&t.typeExpression&&t.typeExpression.type}function NP(e){let t=_ee(e);if(t&&t.typeExpression)return t.typeExpression.type;let n=a1(e);if(n&&n.typeExpression){let i=n.typeExpression.type;if(nf(i)){let s=xr(i.members,SC);return s&&s.type}if(Tg(i)||AC(i))return i.type}}function IP(e,t){var n;if(!bw(e))return Ve;let i=(n=e.jsDoc)==null?void 0:n.jsDocCache;if(i===void 0||t){let s=fz(e,t);E.assert(s.length<2||s[0]!==s[1]),i=oa(s,o=>Qp(o)?o.tags:o),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=i)}return i}function c1(e){return IP(e,!1)}function A0e(e){return IP(e,!0)}function _p(e,t,n){return xr(IP(e,n),t)}function gJ(e,t){return c1(e).filter(t)}function N0e(e,t){return c1(e).filter(n=>n.kind===t)}function FP(e){return typeof e=="string"?e:e?.map(t=>t.kind===328?t.text:X5e(t)).join("")}function X5e(e){let t=e.kind===331?"link":e.kind===332?"linkcode":"linkplain",n=e.name?O_(e.name):"",i=e.name&&e.text.startsWith("://")?"":" ";return`{@${t} ${n}${i}${e.text}}`}function q0(e){if(C1(e)){if(IC(e.parent)){let t=oE(e.parent);if(t&&bn(t.tags))return oa(t.tags,n=>hd(n)?n.typeParameters:void 0)}return Ve}if(mp(e))return E.assert(e.parent.kind===327),oa(e.parent.tags,t=>hd(t)?t.typeParameters:void 0);if(e.typeParameters||qre(e)&&e.typeParameters)return e.typeParameters;if(Qn(e)){let t=N5(e);if(t.length)return t;let n=o1(e);if(n&&Tg(n)&&n.typeParameters)return n.typeParameters}return Ve}function wk(e){return e.constraint?e.constraint:hd(e.parent)&&e===e.parent.typeParameters[0]?e.parent.constraint:void 0}function _g(e){return e.kind===80||e.kind===81}function C7(e){return e.kind===178||e.kind===177}function E7(e){return Cr(e)&&!!(e.flags&64)}function hJ(e){return ko(e)&&!!(e.flags&64)}function p2(e){return Ws(e)&&!!(e.flags&64)}function Tu(e){let t=e.kind;return!!(e.flags&64)&&(t===211||t===212||t===213||t===235)}function V4(e){return Tu(e)&&!Qx(e)&&!!e.questionDotToken}function D7(e){return V4(e.parent)&&e.parent.expression===e}function W4(e){return!Tu(e.parent)||V4(e.parent)||e!==e.parent.expression}function yJ(e){return e.kind===226&&e.operatorToken.kind===61}function eh(e){return Tp(e)&&Ie(e.typeName)&&e.typeName.escapedText==="const"&&!e.typeArguments}function Vp(e){return wc(e,8)}function P7(e){return Qx(e)&&!!(e.flags&64)}function U4(e){return e.kind===252||e.kind===251}function vJ(e){return e.kind===280||e.kind===279}function fee(e){switch(e.kind){case 309:case 310:return!0;default:return!1}}function bJ(e){return fee(e)||e.kind===307||e.kind===311}function OP(e){return e.kind===355||e.kind===348}function I0e(e){return LP(e.kind)}function LP(e){return e>=166}function SJ(e){return e>=0&&e<=165}function mx(e){return SJ(e.kind)}function wv(e){return so(e,"pos")&&so(e,"end")}function q4(e){return 9<=e&&e<=15}function Av(e){return q4(e.kind)}function xJ(e){switch(e.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function H0(e){return 15<=e&&e<=18}function pee(e){return H0(e.kind)}function w7(e){let t=e.kind;return t===17||t===18}function gx(e){return E_(e)||Eu(e)}function A7(e){switch(e.kind){case 276:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 274:return e.parent.isTypeOnly;case 273:case 271:return e.isTypeOnly}return!1}function dee(e){switch(e.kind){case 281:return e.isTypeOnly||e.parent.parent.isTypeOnly;case 278:return e.isTypeOnly&&!!e.moduleSpecifier&&!e.exportClause;case 280:return e.parent.isTypeOnly}return!1}function Nv(e){return A7(e)||dee(e)}function TJ(e){return e.kind===11||H0(e.kind)}function mee(e){return ca(e)||Ie(e)}function Lo(e){var t;return Ie(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function d2(e){var t;return Di(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function MP(e){let t=e.emitNode.autoGenerate.flags;return!!(t&32)&&!!(t&16)&&!!(t&8)}function ju(e){return(Is(e)||Ik(e))&&Di(e.name)}function Ak(e){return Cr(e)&&Di(e.name)}function Uh(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function H4(e){return!!(wx(e)&31)}function kJ(e){return H4(e)||e===126||e===164||e===129}function ra(e){return Uh(e.kind)}function Y_(e){let t=e.kind;return t===166||t===80}function Rc(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===167}function m2(e){let t=e.kind;return t===80||t===206||t===207}function As(e){return!!e&&hx(e.kind)}function Nk(e){return!!e&&(hx(e.kind)||rc(e))}function To(e){return e&&F0e(e.kind)}function G4(e){return e.kind===112||e.kind===97}function F0e(e){switch(e){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function hx(e){switch(e){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return F0e(e)}}function CJ(e){return Li(e)||Hd(e)||Ds(e)&&As(e.parent)}function Ml(e){let t=e.kind;return t===176||t===172||t===174||t===177||t===178||t===181||t===175||t===240}function ei(e){return e&&(e.kind===263||e.kind===231)}function G0(e){return e&&(e.kind===177||e.kind===178)}function u_(e){return Is(e)&&zd(e)}function gee(e){return Qn(e)&&lF(e)?(!Jv(e)||!ny(e.expression))&&!E2(e,!0):e.parent&&ei(e.parent)&&Is(e)&&!zd(e)}function Ik(e){switch(e.kind){case 174:case 177:case 178:return!0;default:return!1}}function hee(e){switch(e.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function Mo(e){return ra(e)||Zl(e)}function g2(e){let t=e.kind;return t===180||t===179||t===171||t===173||t===181||t===177||t===178}function N7(e){return g2(e)||Ml(e)}function th(e){let t=e.kind;return t===303||t===304||t===305||t===174||t===177||t===178}function Ei(e){return Gz(e.kind)}function yee(e){switch(e.kind){case 184:case 185:return!0}return!1}function Ms(e){if(e){let t=e.kind;return t===207||t===206}return!1}function $4(e){let t=e.kind;return t===209||t===210}function I7(e){let t=e.kind;return t===208||t===232}function RP(e){switch(e.kind){case 260:case 169:case 208:return!0}return!1}function vee(e){return Ni(e)||ms(e)||BP(e)||JP(e)}function jP(e){return EJ(e)||DJ(e)}function EJ(e){switch(e.kind){case 206:case 210:return!0}return!1}function BP(e){switch(e.kind){case 208:case 303:case 304:case 305:return!0}return!1}function DJ(e){switch(e.kind){case 207:case 209:return!0}return!1}function JP(e){switch(e.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return pl(e,!0)}function bee(e){let t=e.kind;return t===211||t===166||t===205}function See(e){let t=e.kind;return t===211||t===166}function PJ(e){return Iv(e)||Yv(e)}function Iv(e){switch(e.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function Dm(e){return e.kind===213||e.kind===214}function Fk(e){let t=e.kind;return t===228||t===15}function x_(e){return O0e(Vp(e).kind)}function O0e(e){switch(e){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function wJ(e){return L0e(Vp(e).kind)}function L0e(e){switch(e){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return O0e(e)}}function xee(e){switch(e.kind){case 225:return!0;case 224:return e.operator===46||e.operator===47;default:return!1}}function Tee(e){switch(e.kind){case 106:case 112:case 97:case 224:return!0;default:return Av(e)}}function ut(e){return Q5e(Vp(e).kind)}function Q5e(e){switch(e){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return L0e(e)}}function h2(e){let t=e.kind;return t===216||t===234}function M0e(e){return KV(e)||rO(e)}function $0(e,t){switch(e.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return t&&$0(e.statement,t)}return!1}function kee(e){return hc(e)||Kc(e)}function Cee(e){return ft(e,kee)}function F7(e){return!QP(e)&&!hc(e)&&!Mr(e,32)&&!lu(e)}function zP(e){return QP(e)||hc(e)||Mr(e,32)}function Ok(e){return e.kind===249||e.kind===250}function O7(e){return Ds(e)||ut(e)}function AJ(e){return Ds(e)}function zf(e){return Tl(e)||ut(e)}function Eee(e){let t=e.kind;return t===268||t===267||t===80}function R0e(e){let t=e.kind;return t===268||t===267}function j0e(e){let t=e.kind;return t===80||t===267}function NJ(e){let t=e.kind;return t===275||t===274}function VP(e){return e.kind===267||e.kind===266}function Rd(e){switch(e.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function Pm(e){switch(e.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function Y5e(e){return e===219||e===208||e===263||e===231||e===175||e===176||e===266||e===306||e===281||e===262||e===218||e===177||e===273||e===271||e===276||e===264||e===291||e===174||e===173||e===267||e===270||e===274||e===280||e===169||e===303||e===172||e===171||e===178||e===304||e===265||e===168||e===260||e===353||e===345||e===355}function Dee(e){return e===262||e===282||e===263||e===264||e===265||e===266||e===267||e===272||e===271||e===278||e===277||e===270}function Pee(e){return e===252||e===251||e===259||e===246||e===244||e===242||e===249||e===250||e===248||e===245||e===256||e===253||e===255||e===257||e===258||e===243||e===247||e===254||e===359}function ku(e){return e.kind===168?e.parent&&e.parent.kind!==352||Qn(e):Y5e(e.kind)}function wee(e){return Dee(e.kind)}function WP(e){return Pee(e.kind)}function Ai(e){let t=e.kind;return Pee(t)||Dee(t)||Z5e(e)}function Z5e(e){return e.kind!==241||e.parent!==void 0&&(e.parent.kind===258||e.parent.kind===299)?!1:!jv(e)}function Aee(e){let t=e.kind;return Pee(t)||Dee(t)||t===241}function Nee(e){let t=e.kind;return t===283||t===166||t===80}function X4(e){let t=e.kind;return t===110||t===80||t===211||t===295}function UP(e){let t=e.kind;return t===284||t===294||t===285||t===12||t===288}function L7(e){let t=e.kind;return t===291||t===293}function Iee(e){let t=e.kind;return t===11||t===294}function Zu(e){let t=e.kind;return t===286||t===285}function M7(e){let t=e.kind;return t===296||t===297}function Lk(e){return e.kind>=316&&e.kind<=357}function R7(e){return e.kind===327||e.kind===326||e.kind===328||yx(e)||Mk(e)||eT(e)||C1(e)}function Mk(e){return e.kind>=334&&e.kind<=357}function qh(e){return e.kind===178}function X0(e){return e.kind===177}function Z_(e){if(!bw(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function j7(e){return!!e.type}function Q0(e){return!!e.initializer}function y2(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function IJ(e){return e.kind===291||e.kind===293||th(e)}function B7(e){return e.kind===183||e.kind===233}function Fee(e){let t=Oee;for(let n of e){if(!n.length)continue;let i=0;for(;in.kind===t)}function Gs(e){let t=new Map;if(e)for(let n of e)t.set(n.escapedName,n);return t}function wm(e){return(e.flags&33554432)!==0}function eFe(){var e="";let t=n=>e+=n;return{getText:()=>e,write:t,rawWrite:t,writeKeyword:t,writeOperator:t,writePunctuation:t,writeSpace:t,writeStringLiteral:t,writeLiteral:t,writeParameter:t,writeProperty:t,writeSymbol:(n,i)=>t(n),writeTrailingSemicolon:t,writeComment:t,getTextPos:()=>e.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!e.length&&Kg(e.charCodeAt(e.length-1)),writeLine:()=>e+=" ",increaseIndent:Fa,decreaseIndent:Fa,clear:()=>e=""}}function J7(e,t){return e.configFilePath!==t.configFilePath||Mee(e,t)}function Mee(e,t){return Rk(e,t,CO)}function Ree(e,t){return Rk(e,t,UW)}function Rk(e,t,n){return e!==t&&n.some(i=>!rF(G5(e,i),G5(t,i)))}function jee(e,t){for(;;){let n=t(e);if(n==="quit")return;if(n!==void 0)return n;if(Li(e))return;e=e.parent}}function $l(e,t){let n=e.entries();for(let[i,s]of n){let o=t(s,i);if(o)return o}}function pg(e,t){let n=e.keys();for(let i of n){let s=t(i);if(s)return s}}function z7(e,t){e.forEach((n,i)=>{t.set(i,n)})}function Q4(e){let t=e8.getText();try{return e(e8),e8.getText()}finally{e8.clear(),e8.writeKeyword(t)}}function HP(e){return e.end-e.pos}function LJ(e,t){return e.path===t.path&&!e.prepend==!t.prepend&&!e.circular==!t.circular}function Bee(e,t){return e===t||e.resolvedModule===t.resolvedModule||!!e.resolvedModule&&!!t.resolvedModule&&e.resolvedModule.isExternalLibraryImport===t.resolvedModule.isExternalLibraryImport&&e.resolvedModule.extension===t.resolvedModule.extension&&e.resolvedModule.resolvedFileName===t.resolvedModule.resolvedFileName&&e.resolvedModule.originalPath===t.resolvedModule.originalPath&&tFe(e.resolvedModule.packageId,t.resolvedModule.packageId)&&e.node10Result===t.node10Result}function MJ(e,t,n,i,s){var o;let c=(o=t.getResolvedModule(e,n,i))==null?void 0:o.node10Result,u=c?ys(void 0,d.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,c,c.includes(zm+"@types/")?`@types/${qC(s)}`:s):t.typesPackageExists(s)?ys(void 0,d.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,s,qC(s)):t.packageBundlesTypes(s)?ys(void 0,d.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,s,n):ys(void 0,d.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,n,qC(s));return u&&(u.repopulateInfo=()=>({moduleReference:n,mode:i,packageName:s===n?void 0:s})),u}function tFe(e,t){return e===t||!!e&&!!t&&e.name===t.name&&e.subModuleName===t.subModuleName&&e.version===t.version}function V7({name:e,subModuleName:t}){return t?`${e}/${t}`:e}function Y0(e){return`${V7(e)}@${e.version}`}function Jee(e,t){return e===t||e.resolvedTypeReferenceDirective===t.resolvedTypeReferenceDirective||!!e.resolvedTypeReferenceDirective&&!!t.resolvedTypeReferenceDirective&&e.resolvedTypeReferenceDirective.resolvedFileName===t.resolvedTypeReferenceDirective.resolvedFileName&&!!e.resolvedTypeReferenceDirective.primary==!!t.resolvedTypeReferenceDirective.primary&&e.resolvedTypeReferenceDirective.originalPath===t.resolvedTypeReferenceDirective.originalPath}function RJ(e,t,n,i,s,o){E.assert(e.length===n.length);for(let c=0;c=0),Zg(t)[e]}function B0e(e){let t=Mn(e),n=Ka(t,e.pos);return`${t.fileName}(${n.line+1},${n.character+1})`}function $P(e,t){E.assert(e>=0);let n=Zg(t),i=e,s=t.text;if(i+1===n.length)return s.length-1;{let o=n[i],c=n[i+1]-1;for(E.assert(xu(s.charCodeAt(c)));o<=c&&xu(s.charCodeAt(c));)c--;return c}}function U7(e,t,n){return!(n&&n(t))&&!e.identifiers.has(t)}function dc(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function fp(e){return!dc(e)}function Vee(e,t){return Ko(e)?t===e.expression:rc(e)?t===e.modifiers:bf(e)?t===e.initializer:Is(e)?t===e.questionToken&&u_(e):el(e)?t===e.modifiers||t===e.questionToken||t===e.exclamationToken||XP(e.modifiers,t,Mo):sf(e)?t===e.equalsToken||t===e.modifiers||t===e.questionToken||t===e.exclamationToken||XP(e.modifiers,t,Mo):kc(e)?t===e.exclamationToken:Cc(e)?t===e.typeParameters||t===e.type||XP(e.typeParameters,t,Ko):Sf(e)?t===e.typeParameters||XP(e.typeParameters,t,Ko):j_(e)?t===e.typeParameters||t===e.type||XP(e.typeParameters,t,Ko):b8(e)?t===e.modifiers||XP(e.modifiers,t,Mo):!1}function XP(e,t,n){return!e||ss(t)||!n(t)?!1:gs(e,t)}function J0e(e,t,n){if(t===void 0||t.length===0)return e;let i=0;for(;i[`${Ka(e,c.range.end).line}`,c])),i=new Map;return{getUnusedExpectations:s,markUsed:o};function s(){return hs(n.entries()).filter(([c,u])=>u.type===0&&!i.get(c)).map(([c,u])=>u)}function o(c){return n.has(`${c}`)?(i.set(`${c}`,!0),!0):!1}}function b2(e,t,n){return dc(e)?e.pos:Lk(e)||e.kind===12?ma((t||Mn(e)).text,e.pos,!1,!0):n&&Z_(e)?b2(e.jsDoc[0],t):e.kind===358&&e._children.length>0?b2(e._children[0],t,n):ma((t||Mn(e)).text,e.pos,!1,!1,ow(e))}function JJ(e,t){let n=!dc(e)&&Yp(e)?Bp(e.modifiers,Zl):void 0;return n?ma((t||Mn(e)).text,n.end):b2(e,t)}function Fv(e,t,n=!1){return Y4(e.text,t,n)}function rFe(e){return!!Fn(e,q2)}function H7(e){return!!(Kc(e)&&e.exportClause&&jm(e.exportClause)&&e.exportClause.name.escapedText==="default")}function Y4(e,t,n=!1){if(dc(t))return"";let i=e.substring(n?t.pos:ma(e,t.pos),t.end);return rFe(t)&&(i=i.split(/\r\n|\n|\r/).map(s=>s.replace(/^\s*\*/,"").trimStart()).join(` -`)),i}function Qc(e,t=!1){return Fv(Mn(e),e,t)}function iFe(e){return e.pos}function Bk(e,t){return Rh(e,t,iFe,Io)}function Sa(e){let t=e.emitNode;return t&&t.flags||0}function Wp(e){let t=e.emitNode;return t&&t.internalFlags||0}function Uee(e,t,n){if(t&&sFe(e,n))return Fv(t,e);switch(e.kind){case 11:{let i=n&2?Pz:n&1||Sa(e)&16777216?p1:Aw;return e.singleQuote?"'"+i(e.text,39)+"'":'"'+i(e.text,34)+'"'}case 15:case 16:case 17:case 18:{let i=n&1||Sa(e)&16777216?p1:Aw,s=e.rawText??gFe(i(e.text,96));switch(e.kind){case 15:return"`"+s+"`";case 16:return"`"+s+"${";case 17:return"}"+s+"${";case 18:return"}"+s+"`"}break}case 9:case 10:return e.text;case 14:return n&4&&e.isUnterminated?e.text+(e.text.charCodeAt(e.text.length-1)===92?" /":"/"):e.text}return E.fail(`Literal kind '${e.kind}' not accounted for.`)}function sFe(e,t){if(Ro(e)||!e.parent||t&4&&e.isUnterminated)return!1;if(R_(e)){if(e.numericLiteralFlags&26656)return!1;if(e.numericLiteralFlags&512)return!!(t&8)}return!$F(e)}function qee(e){return os(e)?'"'+Aw(e)+'"':""+e}function Hee(e){return Mc(e).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function zJ(e){return(Wh(e)&7)!==0||VJ(e)}function VJ(e){let t=Fm(e);return t.kind===260&&t.parent.kind===299}function lu(e){return Pc(e)&&(e.name.kind===11||jd(e))}function G7(e){return Pc(e)&&e.name.kind===11}function WJ(e){return Pc(e)&&ca(e.name)}function Gee(e){return Pc(e)||Ie(e)}function Z4(e){return aFe(e.valueDeclaration)}function aFe(e){return!!e&&e.kind===267&&!e.body}function $ee(e){return e.kind===312||e.kind===267||Nk(e)}function jd(e){return!!(e.flags&2048)}function Ov(e){return lu(e)&&UJ(e)}function UJ(e){switch(e.parent.kind){case 312:return Bc(e.parent);case 268:return lu(e.parent.parent)&&Li(e.parent.parent.parent)&&!Bc(e.parent.parent.parent)}return!1}function qJ(e){var t;return(t=e.declarations)==null?void 0:t.find(n=>!Ov(n)&&!(Pc(n)&&jd(n)))}function oFe(e){return e===1||e===100||e===199}function vx(e,t){return Bc(e)||oFe(Ql(t))&&!!e.commonJsModuleIndicator}function HJ(e,t){switch(e.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return e.isDeclarationFile?!1:bp(t,"alwaysStrict")||zre(e.statements)?!0:Bc(e)||pd(t)?Ql(t)>=5?!0:!t.noImplicitUseStrict:!1}function GJ(e){return!!(e.flags&33554432)||Mr(e,128)}function $J(e,t){switch(e.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!Nk(t)}return!1}function XJ(e){switch(E.type(e),e.kind){case 345:case 353:case 330:return!0;default:return QJ(e)}}function QJ(e){switch(E.type(e),e.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function S2(e){switch(e.kind){case 272:case 271:return!0;default:return!1}}function Xee(e){return S2(e)||Bv(e)}function $7(e){switch(e.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Qee(e){return QP(e)||Pc(e)||ch(e)||ef(e)}function QP(e){return S2(e)||Kc(e)}function YJ(e){return Fn(e.parent,t=>!!(oU(t)&1))}function Nm(e){return Fn(e.parent,t=>$J(t,t.parent))}function Yee(e,t){let n=Nm(e);for(;n;)t(n),n=Nm(n)}function co(e){return!e||HP(e)===0?"(Missing)":Qc(e)}function Zee(e){return e.declaration?co(e.declaration.parameters[0].name):void 0}function YP(e){return e.kind===167&&!vf(e.expression)}function K4(e){var t;switch(e.kind){case 80:case 81:return(t=e.emitNode)!=null&&t.autoGenerate?void 0:e.escapedText;case 11:case 9:case 15:return Yo(e.text);case 167:return vf(e.expression)?Yo(e.expression.text):void 0;case 295:return Mx(e);default:return E.assertNever(e)}}function Jk(e){return E.checkDefined(K4(e))}function O_(e){switch(e.kind){case 110:return"this";case 81:case 80:return HP(e)===0?ur(e):Qc(e);case 166:return O_(e.left)+"."+O_(e.right);case 211:return Ie(e.name)||Di(e.name)?O_(e.expression)+"."+O_(e.name):E.assertNever(e.name);case 318:return O_(e.left)+O_(e.right);case 295:return O_(e.namespace)+":"+O_(e.name);default:return E.assertNever(e)}}function vr(e,t,...n){let i=Mn(e);return pp(i,e,t,...n)}function zk(e,t,n,...i){let s=ma(e.text,t.pos);return Nl(e,s,t.end-s,n,...i)}function pp(e,t,n,...i){let s=Lv(e,t);return Nl(e,s.start,s.length,n,...i)}function nh(e,t,n,i){let s=Lv(e,t);return X7(e,s.start,s.length,n,i)}function ZP(e,t,n,i){let s=ma(e.text,t.pos);return X7(e,s,t.end-s,n,i)}function Kee(e,t,n){E.assertGreaterThanOrEqual(t,0),E.assertGreaterThanOrEqual(n,0),E.assertLessThanOrEqual(t,e.length),E.assertLessThanOrEqual(t+n,e.length)}function X7(e,t,n,i,s){return Kee(e.text,t,n),{file:e,start:t,length:n,code:i.code,category:i.category,messageText:i.next?i:i.messageText,relatedInformation:s}}function ZJ(e,t,n){return{file:e,start:0,length:0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:n}}function ete(e){return typeof e.messageText=="string"?{code:e.code,category:e.category,messageText:e.messageText,next:e.next}:e.messageText}function tte(e,t,n){return{file:e,start:t.pos,length:t.end-t.pos,code:n.code,category:n.category,messageText:n.message}}function Im(e,t){let n=Vh(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);n.scan();let i=n.getTokenStart();return Xc(i,n.getTokenEnd())}function nte(e,t){let n=Vh(e.languageVersion,!0,e.languageVariant,e.text,void 0,t);return n.scan(),n.getToken()}function cFe(e,t){let n=ma(e.text,t.pos);if(t.body&&t.body.kind===241){let{line:i}=Ka(e,t.body.pos),{line:s}=Ka(e,t.body.end);if(i0?t.statements[0].pos:t.end;return Xc(o,c)}case 253:case 229:{let o=ma(e.text,t.pos);return Im(e,o)}case 238:{let o=ma(e.text,t.expression.end);return Im(e,o)}case 357:{let o=ma(e.text,t.tagName.pos);return Im(e,o)}}if(n===void 0)return Im(e,t.pos);E.assert(!Qp(n));let i=dc(n),s=i||zx(t)?n.pos:ma(e.text,n.pos);return i?(E.assert(s===n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(s===n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(E.assert(s>=n.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),E.assert(s<=n.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Xc(s,n.end)}function K_(e){return(e.externalModuleIndicator||e.commonJsModuleIndicator)!==void 0}function dp(e){return e.scriptKind===6}function Mv(e){return!!(Dv(e)&4096)}function Q7(e){return!!(Dv(e)&8&&!F_(e,e.parent))}function KP(e){return(Wh(e)&7)===6}function ew(e){return(Wh(e)&7)===4}function Vk(e){return(Wh(e)&7)===2}function Y7(e){return(Wh(e)&7)===1}function x2(e){return e.kind===213&&e.expression.kind===108}function ef(e){return e.kind===213&&e.expression.kind===102}function Wk(e){return ZE(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function K0(e){return ch(e)&&S1(e.argument)&&ca(e.argument.literal)}function Up(e){return e.kind===244&&e.expression.kind===11}function tw(e){return!!(Sa(e)&2097152)}function Z7(e){return tw(e)&&al(e)}function lFe(e){return Ie(e.name)&&!e.initializer}function K7(e){return tw(e)&&uc(e)&&hi(e.declarationList.declarations,lFe)}function KJ(e,t){return e.kind!==12?lg(t.text,e.pos):void 0}function ez(e,t){let n=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?es(n1(t,e.pos),lg(t,e.pos)):lg(t,e.pos);return Fr(n,i=>t.charCodeAt(i.pos+1)===42&&t.charCodeAt(i.pos+2)===42&&t.charCodeAt(i.pos+3)!==47)}function dg(e){if(182<=e.kind&&e.kind<=205)return!0;switch(e.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return e.parent.kind!==222;case 233:return rf(e.parent)&&!Mw(e);case 168:return e.parent.kind===200||e.parent.kind===195;case 80:(e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e)&&(e=e.parent),E.assert(e.kind===80||e.kind===166||e.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{let{parent:t}=e;if(t.kind===186)return!1;if(t.kind===205)return!t.isTypeOf;if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 233:return rf(t.parent)&&!Mw(t);case 168:return e===t.constraint;case 352:return e===t.constraint;case 172:case 171:case 169:case 260:return e===t.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return e===t.type;case 179:case 180:case 181:return e===t.type;case 216:return e===t.type;case 213:case 214:case 215:return gs(t.typeArguments,e)}}}return!1}function U0e(e,t){for(;e;){if(e.kind===t)return!0;e=e.parent}return!1}function Rv(e,t){return n(e);function n(i){switch(i.kind){case 253:return t(i);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return vs(i,n)}}}function rte(e,t){return n(e);function n(i){switch(i.kind){case 229:t(i);let s=i.expression;s&&n(s);return;case 266:case 264:case 267:case 265:return;default:if(As(i)){if(i.name&&i.name.kind===167){n(i.name.expression);return}}else dg(i)||vs(i,n)}}}function tz(e){return e&&e.kind===188?e.elementType:e&&e.kind===183?bm(e.typeArguments):void 0}function ite(e){switch(e.kind){case 264:case 263:case 231:case 187:return e.members;case 210:return e.properties}}function Uk(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function ste(e){return Uk(e)||G0(e)}function eE(e){return e.parent.kind===261&&e.parent.parent.kind===243}function ate(e){return Qn(e)?xa(e.parent)&&Yn(e.parent.parent)&&mc(e.parent.parent)===2||e5(e.parent):!1}function e5(e){return Qn(e)?Yn(e)&&mc(e)===1:!1}function ote(e){return(Ni(e)?Vk(e)&&Ie(e.name)&&eE(e):Is(e)?yE(e)&&Yc(e):bf(e)&&yE(e))||e5(e)}function cte(e){switch(e.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function nz(e,t){for(;;){if(t&&t(e),e.statement.kind!==256)return e.statement;e=e.statement}}function jv(e){return e&&e.kind===241&&As(e.parent)}function qp(e){return e&&e.kind===174&&e.parent.kind===210}function t5(e){return(e.kind===174||e.kind===177||e.kind===178)&&(e.parent.kind===210||e.parent.kind===231)}function lte(e){return e&&e.kind===1}function q0e(e){return e&&e.kind===0}function qk(e,t,n,i){return Qt(e?.properties,s=>{if(!el(s))return;let o=K4(s.name);return t===o||i&&i===o?n(s):void 0})}function ute(e,t,n){return qk(e,t,i=>Vu(i.initializer)?xr(i.initializer.elements,s=>ca(s)&&s.text===n):void 0)}function tE(e){if(e&&e.statements.length){let t=e.statements[0].expression;return Ur(t,xa)}}function n5(e,t,n){return nw(e,t,i=>Vu(i.initializer)?xr(i.initializer.elements,s=>ca(s)&&s.text===n):void 0)}function nw(e,t,n){return qk(tE(e),t,n)}function yf(e){return Fn(e.parent,As)}function _te(e){return Fn(e.parent,To)}function Rl(e){return Fn(e.parent,ei)}function fte(e){return Fn(e.parent,t=>ei(t)||As(t)?"quit":rc(t))}function r5(e){return Fn(e.parent,Nk)}function i5(e){let t=Fn(e.parent,n=>ei(n)?"quit":Zl(n));return t&&ei(t.parent)?Rl(t.parent):Rl(t??e)}function __(e,t,n){for(E.assert(e.kind!==312);;){if(e=e.parent,!e)return E.fail();switch(e.kind){case 167:if(n&&ei(e.parent.parent))return e;e=e.parent.parent;break;case 170:e.parent.kind===169&&Ml(e.parent.parent)?e=e.parent.parent:Ml(e.parent)&&(e=e.parent);break;case 219:if(!t)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return e}}}function pte(e){switch(e.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(e.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function s5(e){Ie(e)&&(Zc(e.parent)||al(e.parent))&&e.parent.name===e&&(e=e.parent);let t=__(e,!0,!1);return Li(t)}function dte(e){let t=__(e,!1,!1);if(t)switch(t.kind){case 176:case 262:case 218:return t}}function rw(e,t){for(;;){if(e=e.parent,!e)return;switch(e.kind){case 167:e=e.parent;break;case 262:case 218:case 219:if(!t)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return e;case 170:e.parent.kind===169&&Ml(e.parent.parent)?e=e.parent.parent:Ml(e.parent)&&(e=e.parent);break}}}function T2(e){if(e.kind===218||e.kind===219){let t=e,n=e.parent;for(;n.kind===217;)t=n,n=n.parent;if(n.kind===213&&n.expression===t)return n}}function H0e(e){return e.kind===108||f_(e)}function f_(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function iw(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===110}function a5(e){var t;return!!e&&Ni(e)&&((t=e.initializer)==null?void 0:t.kind)===110}function mte(e){return!!e&&(sf(e)||el(e))&&Yn(e.parent.parent)&&e.parent.parent.operatorToken.kind===64&&e.parent.parent.right.kind===110}function sw(e){switch(e.kind){case 183:return e.typeName;case 233:return gc(e.expression)?e.expression:void 0;case 80:case 166:return e}}function o5(e){switch(e.kind){case 215:return e.tag;case 286:case 285:return e.tagName;case 226:return e.right;default:return e.expression}}function c5(e,t,n,i){if(e&&Ru(t)&&Di(t.name))return!1;switch(t.kind){case 263:return!0;case 231:return!e;case 172:return n!==void 0&&(e?Zc(n):ei(n)&&!Gv(t)&&!Oz(t));case 177:case 178:case 174:return t.body!==void 0&&n!==void 0&&(e?Zc(n):ei(n));case 169:return e?n!==void 0&&n.body!==void 0&&(n.kind===176||n.kind===174||n.kind===178)&&Uv(n)!==t&&i!==void 0&&i.kind===263:!1}return!1}function nE(e,t,n,i){return Vf(t)&&c5(e,t,n,i)}function aw(e,t,n,i){return nE(e,t,n,i)||rE(e,t,n)}function rE(e,t,n){switch(t.kind){case 263:return ft(t.members,i=>aw(e,i,t,n));case 231:return!e&&ft(t.members,i=>aw(e,i,t,n));case 174:case 178:case 176:return ft(t.parameters,i=>nE(e,i,t,n));default:return!1}}function Hh(e,t){if(nE(e,t))return!0;let n=yg(t);return!!n&&rE(e,n,t)}function rz(e,t,n){let i;if(G0(t)){let{firstAccessor:s,secondAccessor:o,setAccessor:c}=N2(n.members,t),u=Vf(s)?s:o&&Vf(o)?o:void 0;if(!u||t!==u)return!1;i=c?.parameters}else kc(t)&&(i=t.parameters);if(nE(e,t,n))return!0;if(i){for(let s of i)if(!qv(s)&&nE(e,s,t,n))return!0}return!1}function iz(e){if(e.textSourceNode){switch(e.textSourceNode.kind){case 11:return iz(e.textSourceNode);case 15:return e.text===""}return!1}return e.text===""}function Hk(e){let{parent:t}=e;return t.kind===286||t.kind===285||t.kind===287?t.tagName===e:!1}function mg(e){switch(e.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!rf(e.parent)&&!NC(e.parent);case 166:for(;e.parent.kind===166;)e=e.parent;return e.parent.kind===186||yx(e.parent)||r3(e.parent)||k1(e.parent)||Hk(e);case 318:for(;k1(e.parent);)e=e.parent;return e.parent.kind===186||yx(e.parent)||r3(e.parent)||k1(e.parent)||Hk(e);case 81:return Yn(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===103;case 80:if(e.parent.kind===186||yx(e.parent)||r3(e.parent)||k1(e.parent)||Hk(e))return!0;case 9:case 10:case 11:case 15:case 110:return l5(e);default:return!1}}function l5(e){let{parent:t}=e;switch(t.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return t.initializer===e;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return t.expression===e;case 248:let n=t;return n.initializer===e&&n.initializer.kind!==261||n.condition===e||n.incrementor===e;case 249:case 250:let i=t;return i.initializer===e&&i.initializer.kind!==261||i.expression===e;case 216:case 234:return e===t.expression;case 239:return e===t.expression;case 167:return e===t.expression;case 170:case 294:case 293:case 305:return!0;case 233:return t.expression===e&&!dg(t);case 304:return t.objectAssignmentInitializer===e;case 238:return e===t.expression;default:return mg(t)}}function u5(e){for(;e.kind===166||e.kind===80;)e=e.parent;return e.kind===186}function gte(e){return jm(e)&&!!e.parent.moduleSpecifier}function l1(e){return e.kind===271&&e.moduleReference.kind===283}function iE(e){return E.assert(l1(e)),e.moduleReference.expression}function sz(e){return Bv(e)&&DE(e.initializer).arguments[0]}function Gk(e){return e.kind===271&&e.moduleReference.kind!==283}function Bu(e){return Qn(e)}function G0e(e){return!Qn(e)}function Qn(e){return!!e&&!!(e.flags&524288)}function _5(e){return!!e&&!!(e.flags&134217728)}function az(e){return!dp(e)}function ow(e){return!!e&&!!(e.flags&16777216)}function f5(e){return Tp(e)&&Ie(e.typeName)&&e.typeName.escapedText==="Object"&&e.typeArguments&&e.typeArguments.length===2&&(e.typeArguments[0].kind===154||e.typeArguments[0].kind===150)}function T_(e,t){if(e.kind!==213)return!1;let{expression:n,arguments:i}=e;if(n.kind!==80||n.escapedText!=="require"||i.length!==1)return!1;let s=i[0];return!t||$a(s)}function p5(e){return $0e(e,!1)}function Bv(e){return $0e(e,!0)}function hte(e){return Ma(e)&&Bv(e.parent.parent)}function $0e(e,t){return Ni(e)&&!!e.initializer&&T_(t?DE(e.initializer):e.initializer,!0)}function oz(e){return uc(e)&&e.declarationList.declarations.length>0&&hi(e.declarationList.declarations,t=>p5(t))}function cw(e){return e===39||e===34}function d5(e,t){return Fv(t,e).charCodeAt(0)===34}function sE(e){return Yn(e)||ho(e)||Ie(e)||Ws(e)}function lw(e){return Qn(e)&&e.initializer&&Yn(e.initializer)&&(e.initializer.operatorToken.kind===57||e.initializer.operatorToken.kind===61)&&e.name&&gc(e.name)&&$k(e.name,e.initializer.left)?e.initializer.right:e.initializer}function uw(e){let t=lw(e);return t&&u1(t,ny(e.name))}function uFe(e,t){return Qt(e.properties,n=>el(n)&&Ie(n.name)&&n.name.escapedText==="value"&&n.initializer&&u1(n.initializer,t))}function bx(e){if(e&&e.parent&&Yn(e.parent)&&e.parent.operatorToken.kind===64){let t=ny(e.parent.left);return u1(e.parent.right,t)||_Fe(e.parent.left,e.parent.right,t)}if(e&&Ws(e)&&C2(e)){let t=uFe(e.arguments[2],e.arguments[1].text==="prototype");if(t)return t}}function u1(e,t){if(Ws(e)){let n=eo(e.expression);return n.kind===218||n.kind===219?e:void 0}if(e.kind===218||e.kind===231||e.kind===219||xa(e)&&(e.properties.length===0||t))return e}function _Fe(e,t,n){let i=Yn(t)&&(t.operatorToken.kind===57||t.operatorToken.kind===61)&&u1(t.right,n);if(i&&$k(e,t.left))return i}function yte(e){let t=Ni(e.parent)?e.parent.name:Yn(e.parent)&&e.parent.operatorToken.kind===64?e.parent.left:void 0;return t&&u1(e.right,ny(t))&&gc(t)&&$k(t,e.left)}function cz(e){if(Yn(e.parent)){let t=(e.parent.operatorToken.kind===57||e.parent.operatorToken.kind===61)&&Yn(e.parent.parent)?e.parent.parent:e.parent;if(t.operatorToken.kind===64&&Ie(t.left))return t.left}else if(Ni(e.parent))return e.parent.name}function $k(e,t){return Jd(e)&&Jd(t)?gp(e)===gp(t):_g(e)&&m5(t)&&(t.expression.kind===110||Ie(t.expression)&&(t.expression.escapedText==="window"||t.expression.escapedText==="self"||t.expression.escapedText==="global"))?$k(e,pw(t)):m5(e)&&m5(t)?rh(e)===rh(t)&&$k(e.expression,t.expression):!1}function _w(e){for(;pl(e,!0);)e=e.right;return e}function k2(e){return Ie(e)&&e.escapedText==="exports"}function lz(e){return Ie(e)&&e.escapedText==="module"}function gg(e){return(Cr(e)||fw(e))&&lz(e.expression)&&rh(e)==="exports"}function mc(e){let t=fFe(e);return t===5||Qn(e)?t:0}function C2(e){return bn(e.arguments)===3&&Cr(e.expression)&&Ie(e.expression.expression)&&ur(e.expression.expression)==="Object"&&ur(e.expression.name)==="defineProperty"&&vf(e.arguments[1])&&E2(e.arguments[0],!0)}function m5(e){return Cr(e)||fw(e)}function fw(e){return ko(e)&&vf(e.argumentExpression)}function Jv(e,t){return Cr(e)&&(!t&&e.expression.kind===110||Ie(e.name)&&E2(e.expression,!0))||g5(e,t)}function g5(e,t){return fw(e)&&(!t&&e.expression.kind===110||gc(e.expression)||Jv(e.expression,!0))}function E2(e,t){return gc(e)||Jv(e,t)}function pw(e){return Cr(e)?e.name:e.argumentExpression}function fFe(e){if(Ws(e)){if(!C2(e))return 0;let t=e.arguments[0];return k2(t)||gg(t)?8:Jv(t)&&rh(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!ho(e.left)||pFe(_w(e))?0:E2(e.left.expression,!0)&&rh(e.left)==="prototype"&&xa(uz(e))?6:dw(e.left)}function pFe(e){return Xx(e)&&R_(e.expression)&&e.expression.text==="0"}function h5(e){if(Cr(e))return e.name;let t=eo(e.argumentExpression);return R_(t)||$a(t)?t:e}function rh(e){let t=h5(e);if(t){if(Ie(t))return t.escapedText;if($a(t)||R_(t))return Yo(t.text)}}function dw(e){if(e.expression.kind===110)return 4;if(gg(e))return 2;if(E2(e.expression,!0)){if(ny(e.expression))return 3;let t=e;for(;!Ie(t.expression);)t=t.expression;let n=t.expression;if((n.escapedText==="exports"||n.escapedText==="module"&&rh(t)==="exports")&&Jv(e))return 1;if(E2(e,!0)||ko(e)&&k5(e))return 5}return 0}function uz(e){for(;Yn(e.right);)e=e.right;return e.right}function mw(e){return Yn(e)&&mc(e)===3}function vte(e){return Qn(e)&&e.parent&&e.parent.kind===244&&(!ko(e)||fw(e))&&!!a1(e.parent)}function gw(e,t){let{valueDeclaration:n}=e;(!n||!(t.flags&33554432&&!Qn(t)&&!(n.flags&33554432))&&sE(n)&&!sE(t)||n.kind!==t.kind&&Gee(n))&&(e.valueDeclaration=t)}function bte(e){if(!e||!e.valueDeclaration)return!1;let t=e.valueDeclaration;return t.kind===262||Ni(t)&&t.initializer&&As(t.initializer)}function Xk(e){var t,n;switch(e.kind){case 260:case 208:return(t=Fn(e.initializer,i=>T_(i,!0)))==null?void 0:t.arguments[0];case 272:case 278:return Ur(e.moduleSpecifier,$a);case 271:return Ur((n=Ur(e.moduleReference,Bm))==null?void 0:n.expression,$a);case 273:case 280:return Ur(e.parent.moduleSpecifier,$a);case 274:case 281:return Ur(e.parent.parent.moduleSpecifier,$a);case 276:return Ur(e.parent.parent.parent.moduleSpecifier,$a);case 205:return K0(e)?e.argument.literal:void 0;default:E.assertNever(e)}}function aE(e){return hw(e)||E.failBadSyntaxKind(e.parent)}function hw(e){switch(e.parent.kind){case 272:case 278:return e.parent;case 283:return e.parent.parent;case 213:return ef(e.parent)||T_(e.parent,!1)?e.parent:void 0;case 201:return E.assert(ca(e)),Ur(e.parent.parent,ch);default:return}}function Qk(e){switch(e.kind){case 272:case 278:return e.moduleSpecifier;case 271:return e.moduleReference.kind===283?e.moduleReference.expression:void 0;case 205:return K0(e)?e.argument.literal:void 0;case 213:return e.arguments[0];case 267:return e.name.kind===11?e.name:void 0;default:return E.assertNever(e)}}function Yk(e){switch(e.kind){case 272:return e.importClause&&Ur(e.importClause.namedBindings,ly);case 271:return e;case 278:return e.exportClause&&Ur(e.exportClause,jm);default:return E.assertNever(e)}}function Sx(e){return e.kind===272&&!!e.importClause&&!!e.importClause.name}function y5(e,t){if(e.name){let n=t(e);if(n)return n}if(e.namedBindings){let n=ly(e.namedBindings)?t(e.namedBindings):Qt(e.namedBindings.elements,t);if(n)return n}}function xx(e){if(e)switch(e.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return e.questionToken!==void 0}return!1}function Zk(e){let t=AC(e)?Pl(e.parameters):void 0,n=Ur(t&&t.name,Ie);return!!n&&n.escapedText==="new"}function mp(e){return e.kind===353||e.kind===345||e.kind===347}function yw(e){return mp(e)||Xp(e)}function dFe(e){return Il(e)&&Yn(e.expression)&&e.expression.operatorToken.kind===64?_w(e.expression):void 0}function X0e(e){return Il(e)&&Yn(e.expression)&&mc(e.expression)!==0&&Yn(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function _z(e){switch(e.kind){case 243:let t=Kk(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Kk(e){return uc(e)?Pl(e.declarationList.declarations):void 0}function Q0e(e){return Pc(e)&&e.body&&e.body.kind===267?e.body:void 0}function vw(e){if(e.kind>=243&&e.kind<=259)return!0;switch(e.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function bw(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function fz(e,t){let n;Uk(e)&&Q0(e)&&Z_(e.initializer)&&(n=Nr(n,Y0e(e,Pa(e.initializer.jsDoc))));let i=e;for(;i&&i.parent;){if(Z_(i)&&(n=Nr(n,Y0e(e,Pa(i.jsDoc)))),i.kind===169){n=Nr(n,(t?KK:Pk)(i));break}if(i.kind===168){n=Nr(n,(t?tee:eee)(i));break}i=pz(i)}return n||Ve}function Y0e(e,t){if(Qp(t)){let n=Fr(t.tags,i=>Z0e(e,i));return t.tags===n?[t]:n}return Z0e(e,t)?[t]:void 0}function Z0e(e,t){return!(i3(t)||uO(t))||!t.parent||!Qp(t.parent)||!C_(t.parent.parent)||t.parent.parent===e}function pz(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||Q0e(t)||pl(e))return t;if(t.parent&&(Kk(t.parent)===e||pl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Kk(t.parent.parent)||_z(t.parent.parent)===e||X0e(t.parent.parent)))return t.parent.parent}function Sw(e){if(e.symbol)return e.symbol;if(!Ie(e.name))return;let t=e.name.escapedText,n=_1(e);if(!n)return;let i=xr(n.parameters,s=>s.name.kind===80&&s.name.escapedText===t);return i&&i.symbol}function v5(e){if(Qp(e.parent)&&e.parent.tags){let t=xr(e.parent.tags,mp);if(t)return t}return _1(e)}function _1(e){let t=D2(e);if(t)return bf(t)&&t.type&&As(t.type)?t.type:As(t)?t:void 0}function D2(e){let t=Tx(e);if(t)return X0e(t)||dFe(t)||_z(t)||Kk(t)||Q0e(t)||t}function Tx(e){let t=oE(e);if(!t)return;let n=t.parent;if(n&&n.jsDoc&&t===qo(n.jsDoc))return n}function oE(e){return Fn(e.parent,Qp)}function Ste(e){let t=e.name.escapedText,{typeParameters:n}=e.parent.parent.parent;return n&&xr(n,i=>i.name.escapedText===t)}function K0e(e){return!!e.typeArguments}function xte(e){let t=e.parent;for(;;){switch(t.kind){case 226:let n=t,i=n.operatorToken.kind;return Xh(i)&&n.left===e?n:void 0;case 224:case 225:let s=t,o=s.operator;return o===46||o===47?s:void 0;case 249:case 250:let c=t;return c.initializer===e?c:void 0;case 217:case 209:case 230:case 235:e=t;break;case 305:e=t.parent;break;case 304:if(t.name!==e)return;e=t.parent;break;case 303:if(t.name===e)return;e=t.parent;break;default:return}t=e.parent}}function kx(e){let t=xte(e);if(!t)return 0;switch(t.kind){case 226:let n=t.operatorToken.kind;return n===64||vE(n)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function hg(e){return!!xte(e)}function mFe(e){let t=eo(e.right);return t.kind===226&&yW(t.operatorToken.kind)}function dz(e){let t=xte(e);return!!t&&pl(t,!0)&&mFe(t)}function Tte(e){switch(e.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function kte(e){return uo(e)||Co(e)||Ik(e)||al(e)||Cc(e)}function eye(e,t){for(;e&&e.kind===t;)e=e.parent;return e}function xw(e){return eye(e,196)}function Gh(e){return eye(e,217)}function Cte(e){let t;for(;e&&e.kind===196;)t=e,e=e.parent;return[t,e]}function mz(e){for(;Hx(e);)e=e.type;return e}function eo(e,t){return wc(e,t?17:1)}function gz(e){return e.kind!==211&&e.kind!==212?!1:(e=Gh(e.parent),e&&e.kind===220)}function zv(e,t){for(;e;){if(e===t)return!0;e=e.parent}return!1}function ih(e){return!Li(e)&&!Ms(e)&&ku(e.parent)&&e.parent.name===e}function cE(e){let t=e.parent;switch(e.kind){case 11:case 15:case 9:if(Na(t))return t.parent;case 80:if(ku(t))return t.name===e?t:void 0;if(k_(t)){let n=t.parent;return gd(n)&&n.name===t?n:void 0}else{let n=t.parent;return Yn(n)&&mc(n)!==0&&(n.left.symbol||n.symbol)&&us(n)===e?n:void 0}case 81:return ku(t)&&t.name===e?t:void 0;default:return}}function Tw(e){return vf(e)&&e.parent.kind===167&&ku(e.parent.parent)}function Ete(e){let t=e.parent;switch(t.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return t.name===e;case 166:return t.right===e;case 208:case 276:return t.propertyName===e;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function tye(e){return e.kind===271||e.kind===270||e.kind===273&&e.name||e.kind===274||e.kind===280||e.kind===276||e.kind===281||e.kind===277&&eC(e)?!0:Qn(e)&&(Yn(e)&&mc(e)===2&&eC(e)||Cr(e)&&Yn(e.parent)&&e.parent.left===e&&e.parent.operatorToken.kind===64&&kw(e.parent.right))}function hz(e){switch(e.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return e.parent;case 166:do e=e.parent;while(e.parent.kind===166);return hz(e)}}function kw(e){return gc(e)||Bl(e)}function eC(e){let t=yz(e);return kw(t)}function yz(e){return hc(e)?e.expression:e.right}function Dte(e){return e.kind===304?e.name:e.kind===303?e.initializer:e.parent.right}function Bd(e){let t=Vv(e);if(t&&Qn(e)){let n=ree(e);if(n)return n.class}return t}function Vv(e){let t=Cw(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function tC(e){if(Qn(e))return iee(e).map(t=>t.class);{let t=Cw(e.heritageClauses,119);return t?.types}}function lE(e){return Wu(e)?uE(e)||Ve:ei(e)&&es(c2(Bd(e)),tC(e))||Ve}function uE(e){let t=Cw(e.heritageClauses,96);return t?t.types:void 0}function Cw(e,t){if(e){for(let n of e)if(n.token===t)return n}}function f1(e,t){for(;e;){if(e.kind===t)return e;e=e.parent}}function p_(e){return 83<=e&&e<=165}function vz(e){return 19<=e&&e<=79}function b5(e){return p_(e)||vz(e)}function S5(e){return 128<=e&&e<=165}function bz(e){return p_(e)&&!S5(e)}function nye(e){return 119<=e&&e<=127}function Cx(e){let t=Ev(e);return t!==void 0&&bz(t)}function rye(e){let t=Ev(e);return t!==void 0&&p_(t)}function x5(e){let t=s1(e);return!!t&&!S5(t)}function nC(e){return 2<=e&&e<=7}function Sl(e){if(!e)return 4;let t=0;switch(e.kind){case 262:case 218:case 174:e.asteriskToken&&(t|=1);case 219:Mr(e,1024)&&(t|=2);break}return e.body||(t|=4),t}function _E(e){switch(e.kind){case 262:case 218:case 219:case 174:return e.body!==void 0&&e.asteriskToken===void 0&&Mr(e,1024)}return!1}function vf(e){return $a(e)||R_(e)}function T5(e){return x1(e)&&(e.operator===40||e.operator===41)&&R_(e.operand)}function ey(e){let t=us(e);return!!t&&k5(t)}function k5(e){if(!(e.kind===167||e.kind===212))return!1;let t=ko(e)?eo(e.argumentExpression):e.expression;return!vf(t)&&!T5(t)}function P2(e){switch(e.kind){case 80:case 81:return e.escapedText;case 11:case 15:case 9:return Yo(e.text);case 167:let t=e.expression;return vf(t)?Yo(t.text):T5(t)?t.operator===41?Zs(t.operator)+t.operand.text:t.operand.text:void 0;case 295:return Mx(e);default:return E.assertNever(e)}}function Jd(e){switch(e.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function gp(e){return _g(e)?ur(e):md(e)?zE(e):e.text}function fE(e){return _g(e)?e.escapedText:md(e)?Mx(e):Yo(e.text)}function iye(e){return`__@${ta(e)}@${e.escapedName}`}function Ew(e,t){return`__#${ta(e)}@${t}`}function Dw(e){return ts(e.escapedName,"__@")}function Pte(e){return ts(e.escapedName,"__#")}function sye(e){return e.kind===80&&e.escapedText==="Symbol"}function wte(e){return Ie(e)?ur(e)==="__proto__":ca(e)&&e.text==="__proto__"}function pE(e,t){switch(e=wc(e),e.kind){case 231:if(AU(e))return!1;break;case 218:if(e.name)return!1;break;case 219:break;default:return!1}return typeof t=="function"?t(e):!0}function Sz(e){switch(e.kind){case 303:return!wte(e.name);case 304:return!!e.objectAssignmentInitializer;case 260:return Ie(e.name)&&!!e.initializer;case 169:return Ie(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 208:return Ie(e.name)&&!!e.initializer&&!e.dotDotDotToken;case 172:return!!e.initializer;case 226:switch(e.operatorToken.kind){case 64:case 77:case 76:case 78:return Ie(e.left)}break;case 277:return!0}return!1}function L_(e,t){if(!Sz(e))return!1;switch(e.kind){case 303:return pE(e.initializer,t);case 304:return pE(e.objectAssignmentInitializer,t);case 260:case 169:case 208:case 172:return pE(e.initializer,t);case 226:return pE(e.right,t);case 277:return pE(e.expression,t)}}function xz(e){return e.escapedText==="push"||e.escapedText==="unshift"}function Wv(e){return Fm(e).kind===169}function Fm(e){for(;e.kind===208;)e=e.parent.parent;return e}function Tz(e){let t=e.kind;return t===176||t===218||t===262||t===219||t===174||t===177||t===178||t===267||t===312}function Ro(e){return dd(e.pos)||dd(e.end)}function aye(e){return ls(e,Li)||e}function kz(e){let t=Ez(e),n=e.kind===214&&e.arguments!==void 0;return Cz(e.kind,t,n)}function Cz(e,t,n){switch(e){case 214:return n?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(t){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function dE(e){let t=Ez(e),n=e.kind===214&&e.arguments!==void 0;return Pw(e.kind,t,n)}function Ez(e){return e.kind===226?e.operatorToken.kind:e.kind===224||e.kind===225?e.operator:e.kind}function Pw(e,t,n){switch(e){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(t){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return ww(t)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return n?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function ww(e){switch(e){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function rC(e){return Fr(e,t=>{switch(t.kind){case 294:return!!t.expression;case 12:return!t.containsOnlyTriviaWhiteSpaces;default:return!0}})}function iC(){let e=[],t=[],n=new Map,i=!1;return{add:o,lookup:s,getGlobalDiagnostics:c,getDiagnostics:u};function s(f){let g;if(f.file?g=n.get(f.file.fileName):g=e,!g)return;let p=Rh(g,f,No,V5);if(p>=0)return g[p]}function o(f){let g;f.file?(g=n.get(f.file.fileName),g||(g=[],n.set(f.file.fileName,g),j0(t,f.file.fileName,Ou))):(i&&(i=!1,e=e.slice()),g=e),j0(g,f,V5)}function c(){return i=!0,e}function u(f){if(f)return n.get(f)||[];let g=x4(t,p=>n.get(p));return e.length&&g.unshift(...e),g}}function gFe(e){return e.replace(Oye,"\\${")}function Ate(e){return!!((e.templateFlags||0)&2048)}function Dz(e){return e&&!!(Vx(e)?Ate(e):Ate(e.head)||ft(e.templateSpans,t=>Ate(t.literal)))}function oye(e){return"\\u"+("0000"+e.toString(16).toUpperCase()).slice(-4)}function hFe(e,t,n){if(e.charCodeAt(0)===0){let i=n.charCodeAt(t+e.length);return i>=48&&i<=57?"\\x00":"\\0"}return jye.get(e)||oye(e.charCodeAt(0))}function p1(e,t){let n=t===96?Rye:t===39?Mye:Lye;return e.replace(n,hFe)}function Aw(e,t){return e=p1(e,t),Jne.test(e)?e.replace(Jne,n=>oye(n.charCodeAt(0))):e}function yFe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function vFe(e){return e.charCodeAt(0)===0?"�":zye.get(e)||yFe(e.charCodeAt(0))}function Pz(e,t){let n=t===39?Jye:Bye;return e.replace(n,vFe)}function hp(e){let t=e.length;return t>=2&&e.charCodeAt(0)===e.charCodeAt(t-1)&&bFe(e.charCodeAt(0))?e.substring(1,t-1):e}function bFe(e){return e===39||e===34||e===96}function sC(e){let t=e.charCodeAt(0);return t>=97&&t<=122||e.includes("-")}function C5(e){let t=VE[1];for(let n=VE.length;n<=e;n++)VE.push(VE[n-1]+t);return VE[e]}function aC(){return VE[1].length}function Nw(e){var t,n,i,s,o,c=!1;function u(D){let O=dx(D);O.length>1?(s=s+O.length-1,o=t.length-D.length+Pa(O),i=o-t.length===0):i=!1}function f(D){D&&D.length&&(i&&(D=C5(n)+D,i=!1),t+=D,u(D))}function g(D){D&&(c=!1),f(D)}function p(D){D&&(c=!0),f(D)}function y(){t="",n=0,i=!0,s=0,o=0,c=!1}function S(D){D!==void 0&&(t+=D,u(D),c=!1)}function x(D){D&&D.length&&g(D)}function C(D){(!i||D)&&(t+=e,s++,o=t.length,i=!0,c=!1)}function w(){return i?t.length:t.length+e.length}return y(),{write:g,rawWrite:S,writeLiteral:x,writeLine:C,increaseIndent:()=>{n++},decreaseIndent:()=>{n--},getIndent:()=>n,getTextPos:()=>t.length,getLine:()=>s,getColumn:()=>i?n*aC():t.length-o,getText:()=>t,isAtStartOfLine:()=>i,hasTrailingComment:()=>c,hasTrailingWhitespace:()=>!!t.length&&Kg(t.charCodeAt(t.length-1)),clear:y,writeKeyword:g,writeOperator:g,writeParameter:g,writeProperty:g,writePunctuation:g,writeSpace:g,writeStringLiteral:g,writeSymbol:(D,O)=>g(D),writeTrailingSemicolon:g,writeComment:p,getTextPosWithWriteLine:w}}function wz(e){let t=!1;function n(){t&&(e.writeTrailingSemicolon(";"),t=!1)}return{...e,writeTrailingSemicolon(){t=!0},writeLiteral(i){n(),e.writeLiteral(i)},writeStringLiteral(i){n(),e.writeStringLiteral(i)},writeSymbol(i,s){n(),e.writeSymbol(i,s)},writePunctuation(i){n(),e.writePunctuation(i)},writeKeyword(i){n(),e.writeKeyword(i)},writeOperator(i){n(),e.writeOperator(i)},writeParameter(i){n(),e.writeParameter(i)},writeSpace(i){n(),e.writeSpace(i)},writeProperty(i){n(),e.writeProperty(i)},writeComment(i){n(),e.writeComment(i)},writeLine(){n(),e.writeLine()},increaseIndent(){n(),e.increaseIndent()},decreaseIndent(){n(),e.decreaseIndent()}}}function Iw(e){return e.useCaseSensitiveFileNames?e.useCaseSensitiveFileNames():!1}function $h(e){return cu(Iw(e))}function E5(e,t,n){return t.moduleName||Az(e,t.fileName,n&&n.fileName)}function cye(e,t){return e.getCanonicalFileName(cs(t,e.getCurrentDirectory()))}function Nte(e,t,n){let i=t.getExternalModuleFileFromDeclaration(n);if(!i||i.isDeclarationFile)return;let s=Qk(n);if(!(s&&$a(s)&&!Q_(s.text)&&!cye(e,i.path).includes(cye(e,wl(e.getCommonSourceDirectory())))))return E5(e,i)}function Az(e,t,n){let i=f=>e.getCanonicalFileName(f),s=xo(n?Xr(n):e.getCommonSourceDirectory(),e.getCurrentDirectory(),i),o=cs(t,e.getCurrentDirectory()),c=px(s,o,s,i,!1),u=zu(c);return n?Cv(u):u}function Ite(e,t,n){let i=t.getCompilerOptions(),s;return i.outDir?s=zu(w5(e,t,i.outDir)):s=zu(e),s+n}function Fte(e,t){return D5(e,t.getCompilerOptions(),t.getCurrentDirectory(),t.getCommonSourceDirectory(),n=>t.getCanonicalFileName(n))}function D5(e,t,n,i,s){let o=t.declarationDir||t.outDir,c=o?A5(e,o,n,i,s):e,u=Fw(c);return zu(c)+u}function Fw(e){return $c(e,[".mjs",".mts"])?".d.mts":$c(e,[".cjs",".cts"])?".d.cts":$c(e,[".json"])?".d.json.ts":".d.ts"}function Ote(e){return $c(e,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:$c(e,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:$c(e,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function lo(e){return e.outFile||e.out}function P5(e,t){var n;if(e.paths)return e.baseUrl??E.checkDefined(e.pathsBasePath||((n=t.getCurrentDirectory)==null?void 0:n.call(t)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function Nz(e,t,n){let i=e.getCompilerOptions();if(lo(i)){let s=Ql(i),o=i.emitDeclarationOnly||s===2||s===4;return Fr(e.getSourceFiles(),c=>(o||!Bc(c))&&Ex(c,e,n))}else{let s=t===void 0?e.getSourceFiles():[t];return Fr(s,o=>Ex(o,e,n))}}function Ex(e,t,n){let i=t.getCompilerOptions();if(i.noEmitForJsFiles&&Bu(e)||e.isDeclarationFile||t.isSourceFileFromExternalLibrary(e))return!1;if(n)return!0;if(t.isSourceOfProjectReferenceRedirect(e.fileName))return!1;if(!dp(e))return!0;if(t.getResolvedProjectReferenceToRedirect(e.fileName))return!1;if(lo(i))return!0;if(!i.outDir)return!1;if(i.rootDir||i.composite&&i.configFilePath){let s=cs(w3(i,()=>[],t.getCurrentDirectory(),t.getCanonicalFileName),t.getCurrentDirectory()),o=A5(e.fileName,i.outDir,t.getCurrentDirectory(),s,t.getCanonicalFileName);if(t1(e.fileName,o,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0)return!1}return!0}function w5(e,t,n){return A5(e,n,t.getCurrentDirectory(),t.getCommonSourceDirectory(),i=>t.getCanonicalFileName(i))}function A5(e,t,n,i,s){let o=cs(e,n);return o=s(o).indexOf(s(i))===0?o.substring(i.length):o,Qr(t,o)}function mE(e,t,n,i,s,o,c){e.writeFile(n,i,s,u=>{t.add(Tc(d.Could_not_write_file_0_Colon_1,n,u))},o,c)}function lye(e,t,n){if(e.length>km(e)&&!n(e)){let i=Xr(e);lye(i,t,n),t(e)}}function Iz(e,t,n,i,s,o){try{i(e,t,n)}catch{lye(Xr(Ys(e)),s,o),i(e,t,n)}}function gE(e,t){let n=Zg(e);return M4(n,t)}function w2(e,t){return M4(e,t)}function yg(e){return xr(e.members,t=>Cc(t)&&fp(t.body))}function hE(e){if(e&&e.parameters.length>0){let t=e.parameters.length===2&&qv(e.parameters[0]);return e.parameters[t?1:0]}}function Lte(e){let t=hE(e);return t&&t.type}function Uv(e){if(e.parameters.length&&!C1(e)){let t=e.parameters[0];if(qv(t))return t}}function qv(e){return Hv(e.name)}function Hv(e){return!!e&&e.kind===80&&Fz(e)}function A2(e){return!!Fn(e,t=>t.kind===186?!0:t.kind===80||t.kind===166?!1:"quit")}function Dx(e){if(!Hv(e))return!1;for(;k_(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===186}function Fz(e){return e.escapedText==="this"}function N2(e,t){let n,i,s,o;return ey(t)?(n=t,t.kind===177?s=t:t.kind===178?o=t:E.fail("Accessor has wrong kind")):Qt(e,c=>{if(G0(c)&&zs(c)===zs(t)){let u=P2(c.name),f=P2(t.name);u===f&&(n?i||(i=c):n=c,c.kind===177&&!s&&(s=c),c.kind===178&&!o&&(o=c))}}),{firstAccessor:n,secondAccessor:i,getAccessor:s,setAccessor:o}}function Xl(e){if(!Qn(e)&&al(e))return;let t=e.type;return t||!Qn(e)?t:OP(e)?e.typeExpression&&e.typeExpression.type:o1(e)}function Mte(e){return e.type}function yp(e){return C1(e)?e.type&&e.type.typeExpression&&e.type.typeExpression.type:e.type||(Qn(e)?NP(e):void 0)}function N5(e){return oa(c1(e),t=>SFe(t)?t.typeParameters:void 0)}function SFe(e){return hd(e)&&!(e.parent.kind===327&&(e.parent.tags.some(mp)||e.parent.tags.some(IC)))}function Rte(e){let t=hE(e);return t&&Xl(t)}function jte(e,t,n,i){Bte(e,t,n.pos,i)}function Bte(e,t,n,i){i&&i.length&&n!==i[0].pos&&w2(e,n)!==w2(e,i[0].pos)&&t.writeLine()}function Jte(e,t,n,i){n!==i&&w2(e,n)!==w2(e,i)&&t.writeLine()}function zte(e,t,n,i,s,o,c,u){if(i&&i.length>0){s&&n.writeSpace(" ");let f=!1;for(let g of i)f&&(n.writeSpace(" "),f=!1),u(e,t,n,g.pos,g.end,c),g.hasTrailingNewLine?n.writeLine():f=!0;f&&o&&n.writeSpace(" ")}}function Vte(e,t,n,i,s,o,c){let u,f;if(c?s.pos===0&&(u=Fr(lg(e,s.pos),g)):u=lg(e,s.pos),u){let p=[],y;for(let S of u){if(y){let x=w2(t,y.end);if(w2(t,S.pos)>=x+2)break}p.push(S),y=S}if(p.length){let S=w2(t,Pa(p).end);w2(t,ma(e,s.pos))>=S+2&&(jte(t,n,s,u),zte(e,t,n,p,!1,!0,o,i),f={nodePos:s.pos,detachedCommentEndPos:Pa(p).end})}}return f;function g(p){return q7(e,p.pos)}}function oC(e,t,n,i,s,o){if(e.charCodeAt(i+1)===42){let c=kk(t,i),u=t.length,f;for(let g=i,p=c.line;g0){let C=x%aC(),w=C5((x-C)/aC());for(n.rawWrite(w);C;)n.rawWrite(" "),C--}else n.rawWrite("")}xFe(e,s,n,o,g,y),g=y}}else n.writeComment(e.substring(i,s))}function xFe(e,t,n,i,s,o){let c=Math.min(t,o-1),u=e.substring(s,c).trim();u?(n.writeComment(u),c!==t&&n.writeLine()):n.rawWrite(i)}function uye(e,t,n){let i=0;for(;t=0&&e.kind<=165?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=Lz(e)|536870912),n||t&&Qn(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=_ye(e)|268435456),fye(e.modifierFlagsCache)):TFe(e.modifierFlagsCache))}function Ju(e){return qte(e,!0)}function Hte(e){return qte(e,!0,!0)}function ty(e){return qte(e,!1)}function _ye(e){let t=0;return e.parent&&!ms(e)&&(Qn(e)&&(see(e)&&(t|=8388608),aee(e)&&(t|=16777216),oee(e)&&(t|=33554432),cee(e)&&(t|=67108864),lee(e)&&(t|=134217728)),uee(e)&&(t|=65536)),t}function TFe(e){return e&65535}function fye(e){return e&131071|(e&260046848)>>>23}function kFe(e){return fye(_ye(e))}function Gte(e){return Lz(e)|kFe(e)}function Lz(e){let t=Yp(e)?Vd(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Vd(e){let t=0;if(e)for(let n of e)t|=wx(n.kind);return t}function wx(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function pye(e){return e===57||e===56}function $te(e){return pye(e)||e===54}function vE(e){return e===76||e===77||e===78}function Mz(e){return Yn(e)&&vE(e.operatorToken.kind)}function Ow(e){return pye(e)||e===61}function Lw(e){return Yn(e)&&Ow(e.operatorToken.kind)}function Xh(e){return e>=64&&e<=79}function Rz(e){let t=jz(e);return t&&!t.isImplements?t.class:void 0}function jz(e){if(t0(e)){if(rf(e.parent)&&ei(e.parent.parent))return{class:e.parent.parent,isImplements:e.parent.token===119};if(NC(e.parent)){let t=D2(e.parent);if(t&&ei(t))return{class:t,isImplements:!1}}}}function pl(e,t){return Yn(e)&&(t?e.operatorToken.kind===64:Xh(e.operatorToken.kind))&&x_(e.left)}function dye(e){return pl(e.parent)&&e.parent.left===e}function Qh(e){if(pl(e,!0)){let t=e.left.kind;return t===210||t===209}return!1}function Mw(e){return Rz(e)!==void 0}function gc(e){return e.kind===80||Rw(e)}function tf(e){switch(e.kind){case 80:return e;case 166:do e=e.left;while(e.kind!==80);return e;case 211:do e=e.expression;while(e.kind!==80);return e}}function bE(e){return e.kind===80||e.kind===110||e.kind===108||e.kind===236||e.kind===211&&bE(e.expression)||e.kind===217&&bE(e.expression)}function Rw(e){return Cr(e)&&Ie(e.name)&&gc(e.expression)}function jw(e){if(Cr(e)){let t=jw(e.expression);if(t!==void 0)return t+"."+O_(e.name)}else if(ko(e)){let t=jw(e.expression);if(t!==void 0&&Rc(e.argumentExpression))return t+"."+P2(e.argumentExpression)}else{if(Ie(e))return Ci(e.escapedText);if(md(e))return zE(e)}}function ny(e){return Jv(e)&&rh(e)==="prototype"}function SE(e){return e.parent.kind===166&&e.parent.right===e||e.parent.kind===211&&e.parent.name===e||e.parent.kind===236&&e.parent.name===e}function Bz(e){return!!e.parent&&(Cr(e.parent)&&e.parent.name===e||ko(e.parent)&&e.parent.argumentExpression===e)}function Xte(e){return k_(e.parent)&&e.parent.right===e||Cr(e.parent)&&e.parent.name===e||k1(e.parent)&&e.parent.right===e}function O5(e){return Yn(e)&&e.operatorToken.kind===104}function Qte(e){return O5(e.parent)&&e===e.parent.right}function Jz(e){return e.kind===210&&e.properties.length===0}function Yte(e){return e.kind===209&&e.elements.length===0}function cC(e){if(!(!CFe(e)||!e.declarations)){for(let t of e.declarations)if(t.localSymbol)return t.localSymbol}}function CFe(e){return e&&bn(e.declarations)>0&&Mr(e.declarations[0],2048)}function L5(e){return xr(Hye,t=>nc(e,t))}function EFe(e){let t=[],n=e.length;for(let i=0;i>6|192),t.push(s&63|128)):s<65536?(t.push(s>>12|224),t.push(s>>6&63|128),t.push(s&63|128)):s<131072?(t.push(s>>18|240),t.push(s>>12&63|128),t.push(s>>6&63|128),t.push(s&63|128)):E.assert(!1,"Unexpected code point")}return t}function Zte(e){let t="",n=EFe(e),i=0,s=n.length,o,c,u,f;for(;i>2,c=(n[i]&3)<<4|n[i+1]>>4,u=(n[i+1]&15)<<2|n[i+2]>>6,f=n[i+2]&63,i+1>=s?u=f=64:i+2>=s&&(f=64),t+=L2.charAt(o)+L2.charAt(c)+L2.charAt(u)+L2.charAt(f),i+=3;return t}function DFe(e){let t="",n=0,i=e.length;for(;n>4&3,p=(c&15)<<4|u>>2&15,y=(u&3)<<6|f&63;p===0&&u!==0?i.push(g):y===0&&f!==0?i.push(g,p):i.push(g,p,y),s+=4}return DFe(i)}function zz(e,t){let n=os(t)?t:t.readFile(e);if(!n)return;let i=AW(e,n);return i.error?void 0:i.config}function xE(e,t){return zz(e,t)||{}}function _d(e,t){return!t.directoryExists||t.directoryExists(e)}function Yh(e){switch(e.newLine){case 0:return Vye;case 1:case void 0:return Wye}}function Wf(e,t=e){return E.assert(t>=e||t===-1),{pos:e,end:t}}function M5(e,t){return Wf(e.pos,t)}function d1(e,t){return Wf(t,e.end)}function Zh(e){let t=Yp(e)?Bp(e.modifiers,Zl):void 0;return t&&!dd(t.end)?d1(e,t.end):e}function Wd(e){if(Is(e)||kc(e))return d1(e,e.name.pos);let t=Yp(e)?qo(e.modifiers):void 0;return t&&!dd(t.end)?d1(e,t.end):Zh(e)}function mye(e){return e.pos===e.end}function Vz(e,t){return Wf(e,e+Zs(t).length)}function I2(e,t){return nne(e,e,t)}function R5(e,t,n){return vp(TE(e,n,!1),TE(t,n,!1),n)}function tne(e,t,n){return vp(e.end,t.end,n)}function nne(e,t,n){return vp(TE(e,n,!1),t.end,n)}function Bw(e,t,n){return vp(e.end,TE(t,n,!1),n)}function Wz(e,t,n,i){let s=TE(t,n,i);return R4(n,e.end,s)}function gye(e,t,n){return R4(n,e.end,t.end)}function rne(e,t){return!vp(e.pos,e.end,t)}function vp(e,t,n){return R4(n,e,t)===0}function TE(e,t,n){return dd(e.pos)?-1:ma(t.text,e.pos,!1,n)}function ine(e,t,n,i){let s=ma(n.text,e,!1,i),o=PFe(s,t,n);return R4(n,o??t,s)}function sne(e,t,n,i){let s=ma(n.text,e,!1,i);return R4(n,e,Math.min(t,s))}function PFe(e,t=0,n){for(;e-- >t;)if(!Kg(n.text.charCodeAt(e)))return e}function Uz(e){let t=ls(e);if(t)switch(t.parent.kind){case 266:case 267:return t===t.parent.name}return!1}function kE(e){return Fr(e.declarations,Jw)}function Jw(e){return Ni(e)&&e.initializer!==void 0}function hye(e){return e.watch&&so(e,"watch")}function fd(e){e.close()}function lc(e){return e.flags&33554432?e.links.checkFlags:0}function Uf(e,t=!1){if(e.valueDeclaration){let n=t&&e.declarations&&xr(e.declarations,j_)||e.flags&32768&&xr(e.declarations,Sf)||e.valueDeclaration,i=Dv(n);return e.parent&&e.parent.flags&32?i:i&-8}if(lc(e)&6){let n=e.links.checkFlags,i=n&1024?2:n&256?1:4,s=n&2048?256:0;return i|s}return e.flags&4194304?257:0}function Cu(e,t){return e.flags&2097152?t.getAliasedSymbol(e):e}function CE(e){return e.exportSymbol?e.exportSymbol.flags|e.flags:e.flags}function j5(e){return EE(e)===1}function Ax(e){return EE(e)!==0}function EE(e){let{parent:t}=e;switch(t?.kind){case 217:return EE(t);case 225:case 224:let{operator:n}=t;return n===46||n===47?2:0;case 226:let{left:i,operatorToken:s}=t;return i===e&&Xh(s.kind)?s.kind===64?1:2:0;case 211:return t.name!==e?0:EE(t);case 303:{let o=EE(t.parent);return e===t.name?wFe(o):o}case 304:return e===t.objectAssignmentInitializer?0:EE(t.parent);case 209:return EE(t);default:return 0}}function wFe(e){switch(e){case 0:return 1;case 1:return 0;case 2:return 2;default:return E.assertNever(e)}}function qz(e,t){if(!e||!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(typeof e[n]=="object"){if(!qz(e[n],t[n]))return!1}else if(typeof e[n]!="function"&&e[n]!==t[n])return!1;return!0}function d_(e,t){e.forEach(t),e.clear()}function sh(e,t,n){let{onDeleteValue:i,onExistingValue:s}=n;e.forEach((o,c)=>{let u=t.get(c);u===void 0?(e.delete(c),i(o,c)):s&&s(o,u,c)})}function lC(e,t,n){sh(e,t,n);let{createNewValue:i}=n;t.forEach((s,o)=>{e.has(o)||e.set(o,i(o,s))})}function ane(e){if(e.flags&32){let t=ah(e);return!!t&&Mr(t,64)}return!1}function ah(e){var t;return(t=e.declarations)==null?void 0:t.find(ei)}function Ir(e){return e.flags&3899393?e.objectFlags:0}function yye(e,t){return!!Ld(e,n=>t(n)?!0:void 0)}function B5(e){return!!e&&!!e.declarations&&!!e.declarations[0]&&b8(e.declarations[0])}function one({moduleSpecifier:e}){return ca(e)?e.text:Qc(e)}function Hz(e){let t;return vs(e,n=>{fp(n)&&(t=n)},n=>{for(let i=n.length-1;i>=0;i--)if(fp(n[i])){t=n[i];break}}),t}function Hp(e,t,n=!0){return e.has(t)?!1:(e.set(t,n),!0)}function Nx(e){return ei(e)||Wu(e)||nf(e)}function Gz(e){return e>=182&&e<=205||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===233||e===319||e===320||e===321||e===322||e===323||e===324||e===325}function ho(e){return e.kind===211||e.kind===212}function cne(e){return e.kind===211?e.name:(E.assert(e.kind===212),e.argumentExpression)}function lne(e){switch(e.kind){case"text":case"internal":return!0;default:return!1}}function J5(e){return e.kind===275||e.kind===279}function DE(e){for(;ho(e);)e=e.expression;return e}function une(e,t){if(ho(e.parent)&&Bz(e))return n(e.parent);function n(i){if(i.kind===211){let s=t(i.name);if(s!==void 0)return s}else if(i.kind===212)if(Ie(i.argumentExpression)||$a(i.argumentExpression)){let s=t(i.argumentExpression);if(s!==void 0)return s}else return;if(ho(i.expression))return n(i.expression);if(Ie(i.expression))return t(i.expression)}}function uC(e,t){for(;;){switch(e.kind){case 225:e=e.operand;continue;case 226:e=e.left;continue;case 227:e=e.condition;continue;case 215:e=e.tag;continue;case 213:if(t)return e;case 234:case 212:case 211:case 235:case 360:case 238:e=e.expression;continue}return e}}function AFe(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function NFe(e,t){this.flags=t,(E.isDebugging||Wn)&&(this.checker=e)}function IFe(e,t){this.flags=t,E.isDebugging&&(this.checker=e)}function _ne(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function FFe(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function OFe(e,t,n){this.pos=t,this.end=n,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function LFe(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n||(i=>i)}function fne(e){zne.push(e),e(jl)}function pne(e){Object.assign(jl,e),Qt(zne,t=>t(jl))}function vg(e,t){return e.replace(/{(\d+)}/g,(n,i)=>""+E.checkDefined(t[+i]))}function dne(e){pF=e}function mne(e){!pF&&e&&(pF=e())}function ds(e){return pF&&pF[e.key]||e.message}function _C(e,t,n,i,s,...o){n+i>t.length&&(i=t.length-n),Kee(t,n,i);let c=ds(s);return ft(o)&&(c=vg(c,o)),{file:void 0,start:n,length:i,messageText:c,category:s.category,code:s.code,reportsUnnecessary:s.reportsUnnecessary,fileName:e}}function MFe(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function vye(e,t){let n=t.fileName||"",i=t.text.length;E.assertEqual(e.fileName,n),E.assertLessThanOrEqual(e.start,i),E.assertLessThanOrEqual(e.start+e.length,i);let s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(let o of e.relatedInformation)MFe(o)&&o.fileName===n?(E.assertLessThanOrEqual(o.start,i),E.assertLessThanOrEqual(o.start+o.length,i),s.relatedInformation.push(vye(o,t))):s.relatedInformation.push(o)}return s}function Ix(e,t){let n=[];for(let i of e)n.push(vye(i,t));return n}function Nl(e,t,n,i,...s){Kee(e.text,t,n);let o=ds(i);return ft(s)&&(o=vg(o,s)),{file:e,start:t,length:n,messageText:o,category:i.category,code:i.code,reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated}}function $z(e,...t){let n=ds(e);return ft(t)&&(n=vg(n,t)),n}function Tc(e,...t){let n=ds(e);return ft(t)&&(n=vg(n,t)),{file:void 0,start:void 0,length:void 0,messageText:n,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated}}function z5(e,t){return{file:void 0,start:void 0,length:void 0,code:e.code,category:e.category,messageText:e.next?e:e.messageText,relatedInformation:t}}function ys(e,t,...n){let i=ds(t);return ft(n)&&(i=vg(i,n)),{messageText:i,category:t.category,code:t.code,next:e===void 0||Array.isArray(e)?e:[e]}}function gne(e,t){let n=e;for(;n.next;)n=n.next[0];n.next=[t]}function bye(e){return e.file?e.file.path:void 0}function PE(e,t){return V5(e,t)||RFe(e,t)||0}function V5(e,t){return Ou(bye(e),bye(t))||Io(e.start,t.start)||Io(e.length,t.length)||Io(e.code,t.code)||Sye(e.messageText,t.messageText)||0}function RFe(e,t){return!e.relatedInformation&&!t.relatedInformation?0:e.relatedInformation&&t.relatedInformation?Io(e.relatedInformation.length,t.relatedInformation.length)||Qt(e.relatedInformation,(n,i)=>{let s=t.relatedInformation[i];return PE(n,s)})||0:e.relatedInformation?-1:1}function Sye(e,t){if(typeof e=="string"&&typeof t=="string")return Ou(e,t);if(typeof e=="string")return-1;if(typeof t=="string")return 1;let n=Ou(e.messageText,t.messageText);if(n)return n;if(!e.next&&!t.next)return 0;if(!e.next)return-1;if(!t.next)return 1;let i=Math.min(e.next.length,t.next.length);for(let s=0;st.next.length?1:0}function zw(e){return e===4||e===2||e===1||e===6?1:0}function xye(e){if(e.transformFlags&2)return Zu(e)||nb(e)?e:vs(e,xye)}function jFe(e){return e.isDeclarationFile?void 0:xye(e)}function BFe(e){return(e.impliedNodeFormat===99||$c(e.fileName,[".cjs",".cts",".mjs",".mts"]))&&!e.isDeclarationFile?!0:void 0}function Vw(e){switch(hne(e)){case 3:return s=>{s.externalModuleIndicator=I8(s)||!s.isDeclarationFile||void 0};case 1:return s=>{s.externalModuleIndicator=I8(s)};case 2:let t=[I8];(e.jsx===4||e.jsx===5)&&t.push(jFe),t.push(BFe);let n=ud(...t);return s=>void(s.externalModuleIndicator=n(s))}}function La(e){return e.target??(e.module===100&&9||e.module===199&&99||1)}function Ql(e){return typeof e.module=="number"?e.module:La(e)>=2?5:1}function W5(e){return e>=5&&e<=99}function Yl(e){let t=e.moduleResolution;if(t===void 0)switch(Ql(e)){case 1:t=2;break;case 100:t=3;break;case 199:t=99;break;default:t=1;break}return t}function hne(e){return e.moduleDetection||(Ql(e)===100||Ql(e)===199?3:2)}function U5(e){switch(Ql(e)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function pd(e){return!!(e.isolatedModules||e.verbatimModuleSyntax)}function Xz(e){return e.verbatimModuleSyntax||e.isolatedModules&&e.preserveValueImports}function yne(e){return e.allowUnreachableCode===!1}function vne(e){return e.allowUnusedLabels===!1}function q5(e){return!!(qf(e)&&e.declarationMap)}function Om(e){if(e.esModuleInterop!==void 0)return e.esModuleInterop;switch(Ql(e)){case 100:case 199:return!0}}function Fx(e){return e.allowSyntheticDefaultImports!==void 0?e.allowSyntheticDefaultImports:Om(e)||Ql(e)===4||Yl(e)===100}function Ox(e){return e>=3&&e<=99||e===100}function H5(e){return!!e.noDtsResolution||Yl(e)!==100}function Qz(e){let t=Yl(e);if(!Ox(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function Tye(e){let t=Yl(e);if(!Ox(t))return!1;if(e.resolvePackageJsonExports!==void 0)return e.resolvePackageJsonExports;switch(t){case 3:case 99:case 100:return!0}return!1}function $v(e){return e.resolveJsonModule!==void 0?e.resolveJsonModule:Yl(e)===100}function qf(e){return!!(e.declaration||e.composite)}function F2(e){return!!(e.preserveConstEnums||pd(e))}function Ww(e){return!!(e.incremental||e.composite)}function bp(e,t){return e[t]===void 0?!!e.strict:!!e[t]}function m1(e){return e.allowJs===void 0?!!e.checkJs:e.allowJs}function Uw(e){return e.useDefineForClassFields===void 0?La(e)>=9:e.useDefineForClassFields}function bne(e){return e.useDefineForClassFields!==!1&&La(e)>=9}function Sne(e,t){return Rk(t,e,zW)}function xne(e,t){return Rk(t,e,VW)}function Tne(e,t){return Rk(t,e,WW)}function G5(e,t){return t.strictFlag?bp(e,t.name):t.allowJsFlag?m1(e):e[t.name]}function $5(e){let t=e.jsx;return t===2||t===4||t===5}function X5(e,t){let n=t?.pragmas.get("jsximportsource"),i=ss(n)?n[n.length-1]:n;return e.jsx===4||e.jsx===5||e.jsxImportSource||i?i?.arguments.factory||e.jsxImportSource||"react":void 0}function Q5(e,t){return e?`${e}/${t.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Yz(e){let t=!1;for(let n=0;ns,getSymlinkedDirectories:()=>n,getSymlinkedDirectoriesByRealpath:()=>i,setSymlinkedFile:(u,f)=>(s||(s=new Map)).set(u,f),setSymlinkedDirectory:(u,f)=>{let g=xo(u,e,t);ME(g)||(g=wl(g),f!==!1&&!n?.has(g)&&(i||(i=mf())).add(f.realPath,u),(n||(n=new Map)).set(g,f))},setSymlinksFromResolutions(u,f,g){E.assert(!o),o=!0,u(p=>c(this,p.resolvedModule)),f(p=>c(this,p.resolvedTypeReferenceDirective)),g.forEach(p=>c(this,p.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>o};function c(u,f){if(!f||!f.originalPath||!f.resolvedFileName)return;let{resolvedFileName:g,originalPath:p}=f;u.setSymlinkedFile(xo(p,e,t),g);let[y,S]=JFe(g,p,e,t)||Ve;y&&S&&u.setSymlinkedDirectory(S,{real:wl(y),realPath:wl(xo(y,e,t))})}}function JFe(e,t,n,i){let s=bl(cs(e,n)),o=bl(cs(t,n)),c=!1;for(;s.length>=2&&o.length>=2&&!kye(s[s.length-2],i)&&!kye(o[o.length-2],i)&&i(s[s.length-1])===i(o[o.length-1]);)s.pop(),o.pop(),c=!0;return c?[z0(s),z0(o)]:void 0}function kye(e,t){return e!==void 0&&(t(e)==="node_modules"||ts(e,"@"))}function zFe(e){return ZB(e.charCodeAt(0))?e.slice(1):void 0}function Kz(e,t,n){let i=Jj(e,t,n);return i===void 0?void 0:zFe(i)}function Cye(e){return e.replace(xV,VFe)}function VFe(e){return"\\"+e}function wE(e,t,n){let i=Y5(e,t,n);return!i||!i.length?void 0:`^(${i.map(c=>`(${c})`).join("|")})${n==="exclude"?"($|/)":"$"}`}function Y5(e,t,n){if(!(e===void 0||e.length===0))return oa(e,i=>i&&Eye(i,t,n,qne[n]))}function eV(e){return!/[.*?]/.test(e)}function tV(e,t,n){let i=e&&Eye(e,t,n,qne[n]);return i&&`^(${i})${n==="exclude"?"($|/)":"$"}`}function Eye(e,t,n,{singleAsteriskRegexFragment:i,doubleAsteriskRegexFragment:s,replaceWildcardCharacter:o}){let c="",u=!1,f=gP(e,t),g=Pa(f);if(n!=="exclude"&&g==="**")return;f[0]=e1(f[0]),eV(g)&&f.push("**","*");let p=0;for(let y of f){if(y==="**")c+=s;else if(n==="directories"&&(c+="(",p++),u&&(c+=Oo),n!=="exclude"){let S="";y.charCodeAt(0)===42?(S+="([^./]"+i+")?",y=y.substr(1)):y.charCodeAt(0)===63&&(S+="[^./]",y=y.substr(1)),S+=y.replace(xV,o),S!==y&&(c+=kV),c+=S}else c+=y.replace(xV,o);u=!0}for(;p>0;)c+=")?",p--;return c}function kne(e,t){return e==="*"?t:e==="?"?"[^/]":"\\"+e}function Z5(e,t,n,i,s){e=Ys(e),s=Ys(s);let o=Qr(s,e);return{includeFilePatterns:Kt(Y5(n,o,"files"),c=>`^${c}$`),includeFilePattern:wE(n,o,"files"),includeDirectoryPattern:wE(n,o,"directories"),excludePattern:wE(t,o,"exclude"),basePaths:WFe(e,n,i)}}function ry(e,t){return new RegExp(e,t?"":"i")}function nV(e,t,n,i,s,o,c,u,f){e=Ys(e),o=Ys(o);let g=Z5(e,n,i,s,o),p=g.includeFilePatterns&&g.includeFilePatterns.map(O=>ry(O,s)),y=g.includeDirectoryPattern&&ry(g.includeDirectoryPattern,s),S=g.excludePattern&&ry(g.excludePattern,s),x=p?p.map(()=>[]):[[]],C=new Map,w=cu(s);for(let O of g.basePaths)D(O,Qr(o,O),c);return Jp(x);function D(O,z,V){let X=w(f(z));if(C.has(X))return;C.set(X,!0);let{files:J,directories:ie}=u(O);for(let B of sx(J,Ou)){let Z=Qr(O,B),ae=Qr(z,B);if(!(t&&!$c(Z,t))&&!(S&&S.test(ae)))if(!p)x[0].push(Z);else{let _e=Qo(p,$=>$.test(ae));_e!==-1&&x[_e].push(Z)}}if(!(V!==void 0&&(V--,V===0)))for(let B of sx(ie,Ou)){let Z=Qr(O,B),ae=Qr(z,B);(!y||y.test(ae))&&(!S||!S.test(ae))&&D(Z,ae,V)}}}function WFe(e,t,n){let i=[e];if(t){let s=[];for(let o of t){let c=I_(o)?o:Ys(Qr(e,o));s.push(UFe(c))}s.sort(D4(!n));for(let o of s)hi(i,c=>!Cm(c,o,e,!n))&&i.push(o)}return i}function UFe(e){let t=XZ(e,Uye);return t<0?fx(e)?e1(Xr(e)):e:e.substring(0,e.lastIndexOf(Oo,t))}function K5(e,t){return t||eF(e)||3}function eF(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function AE(e,t){let n=e&&m1(e);if(!t||t.length===0)return n?dF:gC;let i=n?dF:gC,s=Jp(i);return[...i,...Ri(t,c=>c.scriptKind===7||n&&qFe(c.scriptKind)&&!s.includes(c.extension)?[c.extension]:void 0)]}function qw(e,t){return!e||!$v(e)?t:t===dF?Gye:t===gC?qye:[...t,[".json"]]}function qFe(e){return e===1||e===2}function Xv(e){return ft(hC,t=>nc(e,t))}function O2(e){return ft(CV,t=>nc(e,t))}function Cne({imports:e},t=ud(Xv,O2)){return ba(e,({text:n})=>Q_(n)&&!$c(n,r8)?t(n):void 0)||!1}function rV(e,t,n,i){if(e==="js"||t===99)return HC(n)&&s()!==2?3:2;if(e==="minimal")return 0;if(e==="index")return 1;if(!HC(n))return Cne(i)?2:0;return s();function s(){let o=!1,c=i.imports.length?i.imports.map(u=>u.text):Bu(i)?HFe(i).map(u=>u.arguments[0].text):Ve;for(let u of c)if(Q_(u)){if($c(u,r8))continue;if(O2(u))return 3;Xv(u)&&(o=!0)}return o?2:0}}function HFe(e){let t=0,n;for(let i of e.statements){if(t>3)break;oz(i)?n=es(n,i.declarationList.declarations.map(s=>s.initializer)):Il(i)&&T_(i.expression,!0)?n=_n(n,i.expression):t++}return n||Ve}function Ene(e,t,n){if(!e)return!1;let i=AE(t,n);for(let s of Jp(qw(t,i)))if(nc(e,s))return!0;return!1}function Dye(e){let t=e.match(/\//g);return t?t.length:0}function Hw(e,t){return Io(Dye(e),Dye(t))}function zu(e){for(let t of PV){let n=Dne(e,t);if(n!==void 0)return n}return e}function Dne(e,t){return nc(e,t)?Gw(e,t):void 0}function Gw(e,t){return e.substring(0,e.length-t.length)}function g1(e,t){return hP(e,t,PV,!1)}function fC(e){let t=e.indexOf("*");return t===-1?e:e.indexOf("*",t+1)!==-1?void 0:{prefix:e.substr(0,t),suffix:e.substr(t+1)}}function tF(e){return Ri(Qg(e),t=>fC(t))}function dd(e){return!(e>=0)}function nF(e){return e===".ts"||e===".tsx"||e===".d.ts"||e===".cts"||e===".mts"||e===".d.mts"||e===".d.cts"||ts(e,".d.")&&Sc(e,".ts")}function NE(e){return nF(e)||e===".json"}function Lx(e){let t=bg(e);return t!==void 0?t:E.fail(`File ${e} has unknown extension.`)}function Pye(e){return bg(e)!==void 0}function bg(e){return xr(PV,t=>nc(e,t))}function $w(e,t){return e.checkJsDirective?e.checkJsDirective.enabled:t.checkJs}function iV(e,t){let n=[];for(let i of e){if(i===t)return t;os(i)||n.push(i)}return Bj(n,i=>i,t)}function sV(e,t){let n=e.indexOf(t);return E.assert(n!==-1),e.slice(n)}function ga(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),E.assert(e.relatedInformation!==Ve,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function Pne(e,t){E.assert(e.length!==0);let n=t(e[0]),i=n;for(let s=1;si&&(i=o)}return{min:n,max:i}}function aV(e){return{pos:b2(e),end:e.end}}function oV(e,t){let n=t.pos-1,i=Math.min(e.text.length,ma(e.text,t.end)+1);return{pos:n,end:i}}function IE(e,t,n){return t.skipLibCheck&&e.isDeclarationFile||t.skipDefaultLibCheck&&e.hasNoDefaultLib||n.isSourceOfProjectReferenceRedirect(e.fileName)}function rF(e,t){return e===t||typeof e=="object"&&e!==null&&typeof t=="object"&&t!==null&&iK(e,t,rF)}function FE(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let g=e.length-1,p=0;for(;e.charCodeAt(p)===48;)p++;return e.slice(p,g)||"0"}let n=2,i=e.length-1,s=(i-n)*t,o=new Uint16Array((s>>>4)+(s&15?1:0));for(let g=i-1,p=0;g>=n;g--,p+=t){let y=p>>>4,S=e.charCodeAt(g),C=(S<=57?S-48:10+S-(S<=70?65:97))<<(p&15);o[y]|=C;let w=C>>>16;w&&(o[y+1]|=w)}let c="",u=o.length-1,f=!0;for(;f;){let g=0;f=!1;for(let p=u;p>=0;p--){let y=g<<16|o[p],S=y/10|0;o[p]=S,g=y-S*10,S&&!f&&(u=p,f=!0)}c=g+c}return c}function Qv({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function wne(e){if(iF(e,!1))return cV(e)}function cV(e){let t=e.startsWith("-"),n=FE(`${t?e.slice(1):e}n`);return{negative:t,base10Value:n}}function iF(e,t){if(e==="")return!1;let n=Vh(99,!1),i=!0;n.setOnError(()=>i=!1),n.setText(e+"n");let s=n.scan(),o=s===41;o&&(s=n.scan());let c=n.getTokenFlags();return i&&s===10&&n.getTokenEnd()===e.length+1&&!(c&512)&&(!t||e===Qv({negative:o,base10Value:FE(n.getTokenValue())}))}function h1(e){return!!(e.flags&33554432)||u5(e)||XFe(e)||$Fe(e)||!(mg(e)||GFe(e))}function GFe(e){return Ie(e)&&sf(e.parent)&&e.parent.name===e}function $Fe(e){for(;e.kind===80||e.kind===211;)e=e.parent;if(e.kind!==167)return!1;if(Mr(e.parent,64))return!0;let t=e.parent.parent.kind;return t===264||t===187}function XFe(e){if(e.kind!==80)return!1;let t=Fn(e.parent,n=>{switch(n.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return t?.token===119||t?.parent.kind===264}function Ane(e){return Tp(e)&&Ie(e.typeName)}function Nne(e,t=B0){if(e.length<2)return!0;let n=e[0];for(let i=1,s=e.length;ie.includes(t))}function One(e){if(!e.parent)return;switch(e.kind){case 168:let{parent:n}=e;return n.kind===195?void 0:n.typeParameters;case 169:return e.parent.parameters;case 204:return e.parent.templateSpans;case 239:return e.parent.templateSpans;case 170:{let{parent:i}=e;return G2(i)?i.modifiers:void 0}case 298:return e.parent.heritageClauses}let{parent:t}=e;if(Mk(e))return eT(e.parent)?void 0:e.parent.tags;switch(t.kind){case 187:case 264:return g2(e)?t.members:void 0;case 192:case 193:return t.types;case 189:case 209:case 361:case 275:case 279:return t.elements;case 210:case 292:return t.properties;case 213:case 214:return Ei(e)?t.typeArguments:t.expression===e?void 0:t.arguments;case 284:case 288:return UP(e)?t.children:void 0;case 286:case 285:return Ei(e)?t.typeArguments:void 0;case 241:case 296:case 297:case 268:return t.statements;case 269:return t.clauses;case 263:case 231:return Ml(e)?t.members:void 0;case 266:return sb(e)?t.members:void 0;case 312:return t.statements}}function sF(e){if(!e.typeParameters){if(ft(e.parameters,t=>!Xl(t)))return!0;if(e.kind!==219){let t=Pl(e.parameters);if(!(t&&qv(t)))return!0}}return!1}function RE(e){return e==="Infinity"||e==="-Infinity"||e==="NaN"}function Lne(e){return e.kind===260&&e.parent.kind===299}function uV(e){let t=e.valueDeclaration&&Fm(e.valueDeclaration);return!!t&&(ms(t)||Lne(t))}function Yv(e){return e.kind===218||e.kind===219}function Zv(e){return e.replace(/\$/gm,()=>"\\$")}function Sg(e){return(+e).toString()===e}function aF(e,t,n,i,s){let o=s&&e==="new";return!o&&hf(e,t)?I.createIdentifier(e):!i&&!o&&Sg(e)&&+e>=0?I.createNumericLiteral(+e):I.createStringLiteral(e,!!n)}function jE(e){return!!(e.flags&262144&&e.isThisType)}function oF(e){let t=0,n=0,i=0,s=0,o;(g=>{g[g.BeforeNodeModules=0]="BeforeNodeModules",g[g.NodeModules=1]="NodeModules",g[g.Scope=2]="Scope",g[g.PackageContent=3]="PackageContent"})(o||(o={}));let c=0,u=0,f=0;for(;u>=0;)switch(c=u,u=e.indexOf("/",c+1),f){case 0:e.indexOf(zm,c)===c&&(t=c,n=u,f=1);break;case 1:case 2:f===1&&e.charAt(c+1)==="@"?f=2:(i=u,f=3);break;case 3:e.indexOf(zm,c)===c?f=1:f=3;break}return s=c,f>1?{topLevelNodeModulesIndex:t,topLevelPackageNameIndex:n,packageRootIndex:i,fileNameIndex:s}:void 0}function wye(e){var t;return e.kind===348?(t=e.typeExpression)==null?void 0:t.type:e.type}function mC(e){switch(e.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return e.isTypeOnly;case 276:case 281:return e.parent.parent.isTypeOnly;default:return!1}}function Xw(e){return T1(e)||uc(e)||al(e)||Zc(e)||Wu(e)||mC(e)||Pc(e)&&!Ov(e)&&!jd(e)}function Qw(e){if(!OP(e))return!1;let{isBracketed:t,typeExpression:n}=e;return t||!!n&&n.type.kind===323}function _V(e,t){if(e.length===0)return!1;let n=e.charCodeAt(0);return n===35?e.length>1&&ug(e.charCodeAt(1),t):ug(n,t)}function Mne(e){var t;return((t=RV(e))==null?void 0:t.kind)===0}function Yw(e){return Qn(e)&&(e.type&&e.type.kind===323||Pk(e).some(({isBracketed:t,typeExpression:n})=>t||!!n&&n.type.kind===323))}function BE(e){switch(e.kind){case 172:case 171:return!!e.questionToken;case 169:return!!e.questionToken||Yw(e);case 355:case 348:return Qw(e);default:return!1}}function Rne(e){let t=e.kind;return(t===211||t===212)&&Qx(e.expression)}function fV(e){return Qn(e)&&C_(e)&&Z_(e)&&!!mJ(e)}function pV(e){return E.checkDefined(cF(e))}function cF(e){let t=mJ(e);return t&&t.typeExpression&&t.typeExpression.type}function JE(e){return Ie(e)?e.escapedText:Mx(e)}function Zw(e){return Ie(e)?ur(e):zE(e)}function jne(e){let t=e.kind;return t===80||t===295}function Mx(e){return`${e.namespace.escapedText}:${ur(e.name)}`}function zE(e){return`${ur(e.namespace)}:${ur(e.name)}`}function dV(e){return Ie(e)?ur(e):zE(e)}function Sp(e){return!!(e.flags&8576)}function xp(e){return e.flags&8192?e.escapedName:e.flags&384?Yo(""+e.value):E.fail()}function lF(e){return!!e&&(Cr(e)||ko(e)||Yn(e))}function Bne(e){return e===void 0?!1:!!$C(e.attributes)}var uF,sy,Kw,_F,e8,fF,mV,gV,Aye,Nye,hV,Iye,Fye,yV,vV,bV,SV,Oye,Lye,Mye,Rye,jye,Jne,Bye,Jye,zye,VE,L2,Vye,Wye,jl,zne,pF,xV,Uye,TV,kV,Vne,Wne,Une,qne,gC,CV,qye,Hye,EV,hC,dF,Gye,t8,n8,r8,DV,PV,mF,YFe=ze({"src/compiler/utilities.ts"(){"use strict";Rs(),uF=[],sy="tslib",Kw=160,_F=1e6,e8=eFe(),fF=Yu(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:Ve})),AsyncIterator:new Map(Object.entries({es2015:Ve})),Atomics:new Map(Object.entries({es2017:Ve})),SharedArrayBuffer:new Map(Object.entries({es2017:Ve})),AsyncIterable:new Map(Object.entries({es2018:Ve})),AsyncIterableIterator:new Map(Object.entries({es2018:Ve})),AsyncGenerator:new Map(Object.entries({es2018:Ve})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Ve})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Ve,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:Ve})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Ve,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),mV=(e=>(e[e.None=0]="None",e[e.NeverAsciiEscape=1]="NeverAsciiEscape",e[e.JsxAttributeEscape=2]="JsxAttributeEscape",e[e.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",e[e.AllowNumericSeparator=8]="AllowNumericSeparator",e))(mV||{}),gV=/^(\/\/\/\s*/,Aye=/^(\/\/\/\s*/,Nye=/^(\/\/\/\s*/,hV=/^(\/\/\/\s*/,Iye=/^\/\/\/\s*/,Fye=/^(\/\/\/\s*/,yV=(e=>(e[e.None=0]="None",e[e.Definite=1]="Definite",e[e.Compound=2]="Compound",e))(yV||{}),vV=(e=>(e[e.Normal=0]="Normal",e[e.Generator=1]="Generator",e[e.Async=2]="Async",e[e.Invalid=4]="Invalid",e[e.AsyncGenerator=3]="AsyncGenerator",e))(vV||{}),bV=(e=>(e[e.Left=0]="Left",e[e.Right=1]="Right",e))(bV||{}),SV=(e=>(e[e.Comma=0]="Comma",e[e.Spread=1]="Spread",e[e.Yield=2]="Yield",e[e.Assignment=3]="Assignment",e[e.Conditional=4]="Conditional",e[e.Coalesce=4]="Coalesce",e[e.LogicalOR=5]="LogicalOR",e[e.LogicalAND=6]="LogicalAND",e[e.BitwiseOR=7]="BitwiseOR",e[e.BitwiseXOR=8]="BitwiseXOR",e[e.BitwiseAND=9]="BitwiseAND",e[e.Equality=10]="Equality",e[e.Relational=11]="Relational",e[e.Shift=12]="Shift",e[e.Additive=13]="Additive",e[e.Multiplicative=14]="Multiplicative",e[e.Exponentiation=15]="Exponentiation",e[e.Unary=16]="Unary",e[e.Update=17]="Update",e[e.LeftHandSide=18]="LeftHandSide",e[e.Member=19]="Member",e[e.Primary=20]="Primary",e[e.Highest=20]="Highest",e[e.Lowest=0]="Lowest",e[e.Invalid=-1]="Invalid",e))(SV||{}),Oye=/\$\{/g,Lye=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Mye=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,Rye=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,jye=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","\x85":"\\u0085","\r\n":"\\r\\n"})),Jne=/[^\u0000-\u007F]/g,Bye=/["\u0000-\u001f\u2028\u2029\u0085]/g,Jye=/['\u0000-\u001f\u2028\u2029\u0085]/g,zye=new Map(Object.entries({'"':""","'":"'"})),VE=[""," "],L2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Vye=`\r -`,Wye=` -`,jl={getNodeConstructor:()=>_ne,getTokenConstructor:()=>FFe,getIdentifierConstructor:()=>OFe,getPrivateIdentifierConstructor:()=>_ne,getSourceFileConstructor:()=>_ne,getSymbolConstructor:()=>AFe,getTypeConstructor:()=>NFe,getSignatureConstructor:()=>IFe,getSourceMapSourceConstructor:()=>LFe},zne=[],xV=/[^\w\s/]/g,Uye=[42,63],TV=["node_modules","bower_components","jspm_packages"],kV=`(?!(${TV.join("|")})(/|$))`,Vne={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${kV}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>kne(e,Vne.singleAsteriskRegexFragment)},Wne={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${kV}[^/.][^/]*)*?`,replaceWildcardCharacter:e=>kne(e,Wne.singleAsteriskRegexFragment)},Une={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:e=>kne(e,Une.singleAsteriskRegexFragment)},qne={files:Vne,directories:Wne,exclude:Une},gC=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],CV=Jp(gC),qye=[...gC,[".json"]],Hye=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],EV=[[".js",".jsx"],[".mjs"],[".cjs"]],hC=Jp(EV),dF=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],Gye=[...dF,[".json"]],t8=[".d.ts",".d.cts",".d.mts"],n8=[".ts",".cts",".mts",".tsx"],r8=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],DV=(e=>(e[e.Minimal=0]="Minimal",e[e.Index=1]="Index",e[e.JsExtension=2]="JsExtension",e[e.TsExtension=3]="TsExtension",e))(DV||{}),PV=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],mF={files:Ve,directories:Ve}}});function Hne(){let e,t,n,i,s;return{createBaseSourceFileNode:o,createBaseIdentifierNode:c,createBasePrivateIdentifierNode:u,createBaseTokenNode:f,createBaseNode:g};function o(p){return new(s||(s=jl.getSourceFileConstructor()))(p,-1,-1)}function c(p){return new(n||(n=jl.getIdentifierConstructor()))(p,-1,-1)}function u(p){return new(i||(i=jl.getPrivateIdentifierConstructor()))(p,-1,-1)}function f(p){return new(t||(t=jl.getTokenConstructor()))(p,-1,-1)}function g(p){return new(e||(e=jl.getNodeConstructor()))(p,-1,-1)}}var ZFe=ze({"src/compiler/factory/baseNodeFactory.ts"(){"use strict";Rs()}});function Gne(e){let t,n;return{getParenthesizeLeftSideOfBinaryForOperator:i,getParenthesizeRightSideOfBinaryForOperator:s,parenthesizeLeftSideOfBinary:g,parenthesizeRightSideOfBinary:p,parenthesizeExpressionOfComputedPropertyName:y,parenthesizeConditionOfConditionalExpression:S,parenthesizeBranchOfConditionalExpression:x,parenthesizeExpressionOfExportDefault:C,parenthesizeExpressionOfNew:w,parenthesizeLeftSideOfAccess:D,parenthesizeOperandOfPostfixUnary:O,parenthesizeOperandOfPrefixUnary:z,parenthesizeExpressionsOfCommaDelimitedList:V,parenthesizeExpressionForDisallowedComma:X,parenthesizeExpressionOfExpressionStatement:J,parenthesizeConciseBodyOfArrowFunction:ie,parenthesizeCheckTypeOfConditionalType:B,parenthesizeExtendsTypeOfConditionalType:Z,parenthesizeConstituentTypesOfUnionType:_e,parenthesizeConstituentTypeOfUnionType:ae,parenthesizeConstituentTypesOfIntersectionType:H,parenthesizeConstituentTypeOfIntersectionType:$,parenthesizeOperandOfTypeOperator:K,parenthesizeOperandOfReadonlyTypeOperator:oe,parenthesizeNonArrayTypeOfPostfixType:Se,parenthesizeElementTypesOfTupleType:se,parenthesizeElementTypeOfTupleType:Y,parenthesizeTypeOfOptionalType:xe,parenthesizeTypeArguments:he,parenthesizeLeadingTypeArgument:Me};function i(be){t||(t=new Map);let _t=t.get(be);return _t||(_t=mt=>g(be,mt),t.set(be,_t)),_t}function s(be){n||(n=new Map);let _t=n.get(be);return _t||(_t=mt=>p(be,void 0,mt),n.set(be,_t)),_t}function o(be,_t,mt,me){let Oe=Pw(226,be),Qe=Cz(226,be),at=Vp(_t);if(!mt&&_t.kind===219&&Oe>3)return!0;let ht=dE(at);switch(Io(ht,Oe)){case-1:return!(!mt&&Qe===1&&_t.kind===229);case 1:return!1;case 0:if(mt)return Qe===1;if(Yn(at)&&at.operatorToken.kind===be){if(c(be))return!1;if(be===40){let lt=me?u(me):0;if(q4(lt)&<===u(at))return!1}}return kz(at)===0}}function c(be){return be===42||be===52||be===51||be===53||be===28}function u(be){if(be=Vp(be),q4(be.kind))return be.kind;if(be.kind===226&&be.operatorToken.kind===40){if(be.cachedLiteralKind!==void 0)return be.cachedLiteralKind;let _t=u(be.left),mt=q4(_t)&&_t===u(be.right)?_t:0;return be.cachedLiteralKind=mt,mt}return 0}function f(be,_t,mt,me){return Vp(_t).kind===217?_t:o(be,_t,mt,me)?e.createParenthesizedExpression(_t):_t}function g(be,_t){return f(be,_t,!0)}function p(be,_t,mt){return f(be,mt,!1,_t)}function y(be){return s3(be)?e.createParenthesizedExpression(be):be}function S(be){let _t=Pw(227,58),mt=Vp(be),me=dE(mt);return Io(me,_t)!==1?e.createParenthesizedExpression(be):be}function x(be){let _t=Vp(be);return s3(_t)?e.createParenthesizedExpression(be):be}function C(be){let _t=Vp(be),mt=s3(_t);if(!mt)switch(uC(_t,!1).kind){case 231:case 218:mt=!0}return mt?e.createParenthesizedExpression(be):be}function w(be){let _t=uC(be,!0);switch(_t.kind){case 213:return e.createParenthesizedExpression(be);case 214:return _t.arguments?be:e.createParenthesizedExpression(be)}return D(be)}function D(be,_t){let mt=Vp(be);return x_(mt)&&(mt.kind!==214||mt.arguments)&&(_t||!Tu(mt))?be:nt(e.createParenthesizedExpression(be),be)}function O(be){return x_(be)?be:nt(e.createParenthesizedExpression(be),be)}function z(be){return wJ(be)?be:nt(e.createParenthesizedExpression(be),be)}function V(be){let _t=sl(be,X);return nt(e.createNodeArray(_t,be.hasTrailingComma),be)}function X(be){let _t=Vp(be),mt=dE(_t),me=Pw(226,28);return mt>me?be:nt(e.createParenthesizedExpression(be),be)}function J(be){let _t=Vp(be);if(Ws(_t)){let me=_t.expression,Oe=Vp(me).kind;if(Oe===218||Oe===219){let Qe=e.updateCallExpression(_t,nt(e.createParenthesizedExpression(me),me),_t.typeArguments,_t.arguments);return e.restoreOuterExpressions(be,Qe,8)}}let mt=uC(_t,!1).kind;return mt===210||mt===218?nt(e.createParenthesizedExpression(be),be):be}function ie(be){return!Ds(be)&&(s3(be)||uC(be,!1).kind===210)?nt(e.createParenthesizedExpression(be),be):be}function B(be){switch(be.kind){case 184:case 185:case 194:return e.createParenthesizedType(be)}return be}function Z(be){switch(be.kind){case 194:return e.createParenthesizedType(be)}return be}function ae(be){switch(be.kind){case 192:case 193:return e.createParenthesizedType(be)}return B(be)}function _e(be){return e.createNodeArray(sl(be,ae))}function $(be){switch(be.kind){case 192:case 193:return e.createParenthesizedType(be)}return ae(be)}function H(be){return e.createNodeArray(sl(be,$))}function K(be){switch(be.kind){case 193:return e.createParenthesizedType(be)}return $(be)}function oe(be){switch(be.kind){case 198:return e.createParenthesizedType(be)}return K(be)}function Se(be){switch(be.kind){case 195:case 198:case 186:return e.createParenthesizedType(be)}return K(be)}function se(be){return e.createNodeArray(sl(be,Y))}function Y(be){return ve(be)?e.createParenthesizedType(be):be}function ve(be){return wC(be)?be.postfix:QE(be)||Tg(be)||XE(be)||Gx(be)?ve(be.type):CC(be)?ve(be.falseType):b1(be)||kC(be)?ve(Pa(be.types)):qx(be)?!!be.typeParameter.constraint&&ve(be.typeParameter.constraint):!1}function xe(be){return ve(be)?e.createParenthesizedType(be):Se(be)}function Me(be){return yee(be)&&be.typeParameters?e.createParenthesizedType(be):be}function ke(be,_t){return _t===0?Me(be):be}function he(be){if(ft(be))return e.createNodeArray(sl(be,ke))}}var wV,KFe=ze({"src/compiler/factory/parenthesizerRules.ts"(){"use strict";Rs(),wV={getParenthesizeLeftSideOfBinaryForOperator:e=>No,getParenthesizeRightSideOfBinaryForOperator:e=>No,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,n)=>n,parenthesizeExpressionOfComputedPropertyName:No,parenthesizeConditionOfConditionalExpression:No,parenthesizeBranchOfConditionalExpression:No,parenthesizeExpressionOfExportDefault:No,parenthesizeExpressionOfNew:e=>Vs(e,x_),parenthesizeLeftSideOfAccess:e=>Vs(e,x_),parenthesizeOperandOfPostfixUnary:e=>Vs(e,x_),parenthesizeOperandOfPrefixUnary:e=>Vs(e,wJ),parenthesizeExpressionsOfCommaDelimitedList:e=>Vs(e,wv),parenthesizeExpressionForDisallowedComma:No,parenthesizeExpressionOfExpressionStatement:No,parenthesizeConciseBodyOfArrowFunction:No,parenthesizeCheckTypeOfConditionalType:No,parenthesizeExtendsTypeOfConditionalType:No,parenthesizeConstituentTypesOfUnionType:e=>Vs(e,wv),parenthesizeConstituentTypeOfUnionType:No,parenthesizeConstituentTypesOfIntersectionType:e=>Vs(e,wv),parenthesizeConstituentTypeOfIntersectionType:No,parenthesizeOperandOfTypeOperator:No,parenthesizeOperandOfReadonlyTypeOperator:No,parenthesizeNonArrayTypeOfPostfixType:No,parenthesizeElementTypesOfTupleType:e=>Vs(e,wv),parenthesizeElementTypeOfTupleType:No,parenthesizeTypeOfOptionalType:No,parenthesizeTypeArguments:e=>e&&Vs(e,wv),parenthesizeLeadingTypeArgument:No}}});function $ne(e){return{convertToFunctionBlock:t,convertToFunctionExpression:n,convertToClassExpression:i,convertToArrayAssignmentElement:s,convertToObjectAssignmentElement:o,convertToAssignmentPattern:c,convertToObjectAssignmentPattern:u,convertToArrayAssignmentPattern:f,convertToAssignmentElementTarget:g};function t(p,y){if(Ds(p))return p;let S=e.createReturnStatement(p);nt(S,p);let x=e.createBlock([S],y);return nt(x,p),x}function n(p){var y;if(!p.body)return E.fail("Cannot convert a FunctionDeclaration without a body");let S=e.createFunctionExpression((y=Pv(p))==null?void 0:y.filter(x=>!Wx(x)&&!YF(x)),p.asteriskToken,p.name,p.typeParameters,p.parameters,p.type,p.body);return or(S,p),nt(S,p),WE(p)&&yF(S,!0),S}function i(p){var y;let S=e.createClassExpression((y=p.modifiers)==null?void 0:y.filter(x=>!Wx(x)&&!YF(x)),p.name,p.typeParameters,p.heritageClauses,p.members);return or(S,p),nt(S,p),WE(p)&&yF(S,!0),S}function s(p){if(Ma(p)){if(p.dotDotDotToken)return E.assertNode(p.name,Ie),or(nt(e.createSpreadElement(p.name),p),p);let y=g(p.name);return p.initializer?or(nt(e.createAssignment(y,p.initializer),p),p):y}return Vs(p,ut)}function o(p){if(Ma(p)){if(p.dotDotDotToken)return E.assertNode(p.name,Ie),or(nt(e.createSpreadAssignment(p.name),p),p);if(p.propertyName){let y=g(p.name);return or(nt(e.createPropertyAssignment(p.propertyName,p.initializer?e.createAssignment(y,p.initializer):y),p),p)}return E.assertNode(p.name,Ie),or(nt(e.createShorthandPropertyAssignment(p.name,p.initializer),p),p)}return Vs(p,th)}function c(p){switch(p.kind){case 207:case 209:return f(p);case 206:case 210:return u(p)}}function u(p){return Gp(p)?or(nt(e.createObjectLiteralExpression(Kt(p.elements,o)),p),p):Vs(p,xa)}function f(p){return j2(p)?or(nt(e.createArrayLiteralExpression(Kt(p.elements,s)),p),p):Vs(p,Vu)}function g(p){return Ms(p)?c(p):Vs(p,ut)}}var AV,eOe=ze({"src/compiler/factory/nodeConverters.ts"(){"use strict";Rs(),AV={convertToFunctionBlock:Ts,convertToFunctionExpression:Ts,convertToClassExpression:Ts,convertToArrayAssignmentElement:Ts,convertToObjectAssignmentElement:Ts,convertToAssignmentPattern:Ts,convertToObjectAssignmentPattern:Ts,convertToArrayAssignmentPattern:Ts,convertToAssignmentElementTarget:Ts}}});function $ye(e){Qne.push(e)}function i8(e,t){let n=e&8?tOe:nOe,i=Yu(()=>e&1?wV:Gne(O)),s=Yu(()=>e&2?AV:$ne(O)),o=xm(v=>(P,R)=>pe(P,v,R)),c=xm(v=>P=>Ze(v,P)),u=xm(v=>P=>At(P,v)),f=xm(v=>()=>pD(v)),g=xm(v=>P=>fo(v,P)),p=xm(v=>(P,R)=>jT(v,P,R)),y=xm(v=>(P,R)=>RT(v,P,R)),S=xm(v=>(P,R)=>Ab(v,P,R)),x=xm(v=>(P,R)=>Kf(v,P,R)),C=xm(v=>(P,R,ne)=>K1(v,P,R,ne)),w=xm(v=>(P,R,ne)=>x0(v,P,R,ne)),D=xm(v=>(P,R,ne,Le)=>Wl(v,P,R,ne,Le)),O={get parenthesizer(){return i()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:z,createNumericLiteral:ie,createBigIntLiteral:B,createStringLiteral:ae,createStringLiteralFromNode:_e,createRegularExpressionLiteral:$,createLiteralLikeNode:H,createIdentifier:Se,createTempVariable:se,createLoopVariable:Y,createUniqueName:ve,getGeneratedNameForNode:xe,createPrivateIdentifier:ke,createUniquePrivateName:be,getGeneratedPrivateNameForNode:_t,createToken:me,createSuper:Oe,createThis:Qe,createNull:at,createTrue:ht,createFalse:Je,createModifier:lt,createModifiersFromModifierFlags:Jt,createQualifiedName:Gt,updateQualifiedName:Tn,createComputedPropertyName:Un,updateComputedPropertyName:cn,createTypeParameterDeclaration:zt,updateTypeParameterDeclaration:Ft,createParameterDeclaration:Lr,updateParameterDeclaration:ji,createDecorator:ii,updateDecorator:Hi,createPropertySignature:Ye,updatePropertySignature:fn,createPropertyDeclaration:Ot,updatePropertyDeclaration:Sn,createMethodSignature:Cn,updateMethodSignature:Kn,createMethodDeclaration:Fi,updateMethodDeclaration:Wi,createConstructorDeclaration:Ce,updateConstructorDeclaration:Ue,createGetAccessorDeclaration:dt,updateGetAccessorDeclaration:gt,createSetAccessorDeclaration:we,updateSetAccessorDeclaration:Be,createCallSignature:G,updateCallSignature:vt,createConstructSignature:wt,updateConstructSignature:Re,createIndexSignature:ot,updateIndexSignature:Dt,createClassStaticBlockDeclaration:Ki,updateClassStaticBlockDeclaration:na,createTemplateLiteralTypeSpan:Zt,updateTemplateLiteralTypeSpan:tn,createKeywordTypeNode:ln,createTypePredicateNode:W,updateTypePredicateNode:j,createTypeReferenceNode:ce,updateTypeReferenceNode:ee,createFunctionTypeNode:ue,updateFunctionTypeNode:M,createConstructorTypeNode:qe,updateConstructorTypeNode:Mt,createTypeQueryNode:nr,updateTypeQueryNode:br,createTypeLiteralNode:jr,updateTypeLiteralNode:Br,createArrayTypeNode:Mi,updateArrayTypeNode:wr,createTupleTypeNode:is,updateTupleTypeNode:In,createNamedTupleMember:mi,updateNamedTupleMember:ua,createOptionalTypeNode:js,updateOptionalTypeNode:Pn,createRestTypeNode:Nc,updateRestTypeNode:_s,createUnionTypeNode:ec,updateUnionTypeNode:gl,createIntersectionTypeNode:Ho,updateIntersectionTypeNode:xs,createConditionalTypeNode:$s,updateConditionalTypeNode:cl,createInferTypeNode:Do,updateInferTypeNode:Xs,createImportTypeNode:zc,updateImportTypeNode:ic,createParenthesizedType:Bo,updateParenthesizedType:as,createThisTypeNode:Ht,createTypeOperatorNode:Jo,updateTypeOperatorNode:nl,createIndexedAccessTypeNode:qu,updateIndexedAccessTypeNode:h_,createMappedTypeNode:Po,updateMappedTypeNode:Ic,createLiteralTypeNode:A,updateLiteralTypeNode:Pe,createTemplateLiteralType:Jc,updateTemplateLiteralType:td,createObjectBindingPattern:He,updateObjectBindingPattern:kt,createArrayBindingPattern:gn,updateArrayBindingPattern:Ar,createBindingElement:Zn,updateBindingElement:Tr,createArrayLiteralExpression:pi,updateArrayLiteralExpression:Dr,createObjectLiteralExpression:Ea,updateObjectLiteralExpression:yc,createPropertyAccessExpression:e&4?(v,P)=>$n(_o(v,P),262144):_o,updatePropertyAccessExpression:ul,createPropertyAccessChain:e&4?(v,P,R)=>$n(ro(v,P,R),262144):ro,updatePropertyAccessChain:Cl,createElementAccessExpression:Au,updateElementAccessExpression:Gf,createElementAccessChain:tu,updateElementAccessChain:ye,createCallExpression:Ln,updateCallExpression:Gi,createCallChain:Os,updateCallChain:Bs,createNewExpression:vc,updateNewExpression:Ec,createTaggedTemplateExpression:Go,updateTaggedTemplateExpression:tc,createTypeAssertion:Fc,updateTypeAssertion:pc,createParenthesizedExpression:Vc,updateParenthesizedExpression:Ep,createFunctionExpression:Nf,updateFunctionExpression:n_,createArrowFunction:$f,updateArrowFunction:wg,createDeleteExpression:Um,updateDeleteExpression:p0,createTypeOfExpression:du,updateTypeOfExpression:Ag,createVoidExpression:V_,updateVoidExpression:Xf,createAwaitExpression:r_,updateAwaitExpression:Q,createPrefixUnaryExpression:Ze,updatePrefixUnaryExpression:Pt,createPostfixUnaryExpression:At,updatePostfixUnaryExpression:L,createBinaryExpression:pe,updateBinaryExpression:It,createConditionalExpression:jn,updateConditionalExpression:zr,createTemplateExpression:Vr,updateTemplateExpression:Bi,createTemplateHead:If,createTemplateMiddle:ha,createTemplateTail:Dp,createNoSubstitutionTemplateLiteral:Ff,createTemplateLiteralLikeNode:hl,createYieldExpression:Ng,updateYieldExpression:qm,createSpreadElement:wi,updateSpreadElement:gy,createClassExpression:hy,updateClassExpression:xd,createOmittedExpression:Sb,createExpressionWithTypeArguments:d0,updateExpressionWithTypeArguments:Ee,createAsExpression:We,updateAsExpression:xt,createNonNullExpression:jt,updateNonNullExpression:nn,createSatisfiesExpression:Bn,updateSatisfiesExpression:sn,createNonNullChain:En,updateNonNullChain:oi,createMetaProperty:mr,updateMetaProperty:gr,createTemplateSpan:_r,updateTemplateSpan:Oi,createSemicolonClassElement:io,createBlock:Za,updateBlock:W_,createVariableStatement:J1,updateVariableStatement:yy,createEmptyStatement:mh,createExpressionStatement:vy,updateExpressionStatement:_S,createIfStatement:xb,updateIfStatement:fS,createDoStatement:pS,updateDoStatement:_D,createWhileStatement:AT,updateWhileStatement:w6,createForStatement:z1,updateForStatement:NT,createForInStatement:IT,updateForInStatement:A6,createForOfStatement:dS,updateForOfStatement:N6,createContinueStatement:FT,updateContinueStatement:OT,createBreakStatement:mS,updateBreakStatement:Tb,createReturnStatement:kb,updateReturnStatement:V1,createWithStatement:m0,updateWithStatement:Cb,createSwitchStatement:em,updateSwitchStatement:Ra,createLabeledStatement:gS,updateLabeledStatement:I6,createThrowStatement:by,updateThrowStatement:g0,createTryStatement:Hm,updateTryStatement:Qf,createDebuggerStatement:U_,createVariableDeclaration:i_,updateVariableDeclaration:of,createVariableDeclarationList:W1,updateVariableDeclarationList:F6,createFunctionDeclaration:LT,updateFunctionDeclaration:hS,createClassDeclaration:U1,updateClassDeclaration:yS,createInterfaceDeclaration:q1,updateInterfaceDeclaration:Fl,createTypeAliasDeclaration:h0,updateTypeAliasDeclaration:y0,createEnumDeclaration:Ig,updateEnumDeclaration:je,createModuleDeclaration:Vl,updateModuleDeclaration:Yf,createModuleBlock:Hu,updateModuleBlock:O6,createCaseBlock:v0,updateCaseBlock:H1,createNamespaceExportDeclaration:Fg,updateNamespaceExportDeclaration:fD,createImportEqualsDeclaration:Td,updateImportEqualsDeclaration:vS,createImportDeclaration:bS,updateImportDeclaration:Db,createImportClause:Pb,updateImportClause:Pp,createAssertClause:kd,updateAssertClause:Og,createAssertEntry:SS,updateAssertEntry:tm,createImportTypeAssertionContainer:xS,updateImportTypeAssertionContainer:L6,createImportAttributes:Ti,updateImportAttributes:Hr,createImportAttribute:nm,updateImportAttribute:P_,createNamespaceImport:M6,updateNamespaceImport:b0,createNamespaceExport:R6,updateNamespaceExport:wb,createNamedImports:bc,updateNamedImports:Gu,createImportSpecifier:gh,updateImportSpecifier:Gm,createExportAssignment:Lg,updateExportAssignment:nd,createExportDeclaration:G1,updateExportDeclaration:Mg,createNamedExports:$m,updateNamedExports:B6,createExportSpecifier:rm,updateExportSpecifier:Xm,createMissingDeclaration:S0,createExternalModuleReference:J6,updateExternalModuleReference:MT,get createJSDocAllType(){return f(319)},get createJSDocUnknownType(){return f(320)},get createJSDocNonNullableType(){return y(322)},get updateJSDocNonNullableType(){return S(322)},get createJSDocNullableType(){return y(321)},get updateJSDocNullableType(){return S(321)},get createJSDocOptionalType(){return g(323)},get updateJSDocOptionalType(){return p(323)},get createJSDocVariadicType(){return g(325)},get updateJSDocVariadicType(){return p(325)},get createJSDocNamepathType(){return g(326)},get updateJSDocNamepathType(){return p(326)},createJSDocFunctionType:wp,updateJSDocFunctionType:$1,createJSDocTypeLiteral:BT,updateJSDocTypeLiteral:dD,createJSDocTypeExpression:TS,updateJSDocTypeExpression:rr,createJSDocSignature:ru,updateJSDocSignature:ns,createJSDocTemplateTag:Hn,updateJSDocTemplateTag:Nb,createJSDocTypedefTag:X1,updateJSDocTypedefTag:El,createJSDocParameterTag:sm,updateJSDocParameterTag:am,createJSDocPropertyTag:Sy,updateJSDocPropertyTag:JT,createJSDocCallbackTag:hh,updateJSDocCallbackTag:Q1,createJSDocOverloadTag:Y1,updateJSDocOverloadTag:Rg,createJSDocAugmentsTag:Qm,updateJSDocAugmentsTag:kS,createJSDocImplementsTag:yh,updateJSDocImplementsTag:Ob,createJSDocSeeTag:xy,updateJSDocSeeTag:Ib,createJSDocNameReference:zT,updateJSDocNameReference:CS,createJSDocMemberName:Fb,updateJSDocMemberName:Zf,createJSDocLink:Z1,updateJSDocLink:Oc,createJSDocLinkCode:yl,updateJSDocLinkCode:VT,createJSDocLinkPlain:mu,updateJSDocLinkPlain:w_,get createJSDocTypeTag(){return w(351)},get updateJSDocTypeTag(){return D(351)},get createJSDocReturnTag(){return w(349)},get updateJSDocReturnTag(){return D(349)},get createJSDocThisTag(){return w(350)},get updateJSDocThisTag(){return D(350)},get createJSDocAuthorTag(){return x(337)},get updateJSDocAuthorTag(){return C(337)},get createJSDocClassTag(){return x(339)},get updateJSDocClassTag(){return C(339)},get createJSDocPublicTag(){return x(340)},get updateJSDocPublicTag(){return C(340)},get createJSDocPrivateTag(){return x(341)},get updateJSDocPrivateTag(){return C(341)},get createJSDocProtectedTag(){return x(342)},get updateJSDocProtectedTag(){return C(342)},get createJSDocReadonlyTag(){return x(343)},get updateJSDocReadonlyTag(){return C(343)},get createJSDocOverrideTag(){return x(344)},get updateJSDocOverrideTag(){return C(344)},get createJSDocDeprecatedTag(){return x(338)},get updateJSDocDeprecatedTag(){return C(338)},get createJSDocThrowsTag(){return w(356)},get updateJSDocThrowsTag(){return D(356)},get createJSDocSatisfiesTag(){return w(357)},get updateJSDocSatisfiesTag(){return D(357)},createJSDocEnumTag:Ty,updateJSDocEnumTag:z6,createJSDocUnknownTag:ES,updateJSDocUnknownTag:Np,createJSDocText:yo,updateJSDocText:V6,createJSDocComment:DS,updateJSDocComment:ev,createJsxElement:WT,updateJsxElement:s_,createJsxSelfClosingElement:jg,updateJsxSelfClosingElement:vh,createJsxOpeningElement:Lb,updateJsxOpeningElement:cf,createJsxClosingElement:UT,updateJsxClosingElement:ky,createJsxFragment:Of,createJsxText:T0,updateJsxText:mD,createJsxOpeningFragment:qT,createJsxJsxClosingFragment:HT,updateJsxFragment:Mb,createJsxAttribute:GT,updateJsxAttribute:tv,createJsxAttributes:q_,updateJsxAttributes:Bg,createJsxSpreadAttribute:$T,updateJsxSpreadAttribute:XT,createJsxExpression:Ba,updateJsxExpression:fr,createJsxNamespacedName:lf,updateJsxNamespacedName:v_,createCaseClause:Rb,updateCaseClause:W6,createDefaultClause:nv,updateDefaultClause:jb,createHeritageClause:Cy,updateHeritageClause:Lf,createCatchClause:Ip,updateCatchClause:Ey,createPropertyAssignment:rd,updatePropertyAssignment:Fp,createShorthandPropertyAssignment:Bb,updateShorthandPropertyAssignment:Wc,createSpreadAssignment:ep,updateSpreadAssignment:U6,createEnumMember:gu,updateEnumMember:rv,createSourceFile:Jb,updateSourceFile:Dy,createRedirectedSourceFile:PS,createBundle:Jg,updateBundle:iv,createUnparsedSource:H6,createUnparsedPrologue:k,createUnparsedPrepend:te,createUnparsedTextLike:ct,createUnparsedSyntheticReference:$t,createInputFiles:hr,createSyntheticExpression:xi,createSyntaxList:ai,createNotEmittedStatement:zi,createPartiallyEmittedExpression:Ls,updatePartiallyEmittedExpression:A_,createCommaListExpression:ci,updateCommaListExpression:cm,createSyntheticReferenceExpression:hn,updateSyntheticReferenceExpression:wy,cloneNode:AS,get createComma(){return o(28)},get createAssignment(){return o(64)},get createLogicalOr(){return o(57)},get createLogicalAnd(){return o(56)},get createBitwiseOr(){return o(52)},get createBitwiseXor(){return o(53)},get createBitwiseAnd(){return o(51)},get createStrictEquality(){return o(37)},get createStrictInequality(){return o(38)},get createEquality(){return o(35)},get createInequality(){return o(36)},get createLessThan(){return o(30)},get createLessThanEquals(){return o(33)},get createGreaterThan(){return o(32)},get createGreaterThanEquals(){return o(34)},get createLeftShift(){return o(48)},get createRightShift(){return o(49)},get createUnsignedRightShift(){return o(50)},get createAdd(){return o(40)},get createSubtract(){return o(41)},get createMultiply(){return o(42)},get createDivide(){return o(44)},get createModulo(){return o(45)},get createExponent(){return o(43)},get createPrefixPlus(){return c(40)},get createPrefixMinus(){return c(41)},get createPrefixIncrement(){return c(46)},get createPrefixDecrement(){return c(47)},get createBitwiseNot(){return c(55)},get createLogicalNot(){return c(54)},get createPostfixIncrement(){return u(46)},get createPostfixDecrement(){return u(47)},createImmediatelyInvokedFunctionExpression:Ym,createImmediatelyInvokedArrowFunction:E0,createVoidZero:zg,createExportDefault:G6,createExternalModuleExport:YT,createTypeCheck:JN,createIsNotTypeCheck:hD,createMethodCall:Zm,createGlobalMethodCall:av,createFunctionBindCall:bh,createFunctionCallCall:$6,createFunctionApplyCall:Km,createArraySliceCall:aR,createArrayConcatCall:lm,createObjectDefinePropertyCall:NS,createObjectGetOwnPropertyDescriptorCall:zN,createReflectGetCall:q,createReflectSetCall:ge,createPropertyDescriptor:tt,createCallBinding:ti,createAssignmentTargetWrapper:Ji,inlineExpressions:ao,getInternalName:Ja,getLocalName:np,getExportName:id,getDeclarationName:Ay,getNamespaceMemberName:Vg,getExternalModuleOrNamespaceExportName:Ol,restoreOuterExpressions:kr,restoreEnclosingLabel:vi,createUseStrictPrologue:X6,copyPrologue:Sh,copyStandardPrologue:Q6,copyCustomPrologue:vD,ensureUseStrict:oR,liftToBlock:bD,mergeLexicalEnvironment:xh,replaceModifiers:SD,replaceDecoratorsAndModifiers:rp,replacePropertyName:Y6};return Qt(Qne,v=>v(O)),O;function z(v,P){if(v===void 0||v===Ve)v=[];else if(wv(v)){if(P===void 0||v.hasTrailingComma===P)return v.transformFlags===void 0&&Xye(v),E.attachNodeArrayDebugInfo(v),v;let Le=v.slice();return Le.pos=v.pos,Le.end=v.end,Le.hasTrailingComma=P,Le.transformFlags=v.transformFlags,E.attachNodeArrayDebugInfo(Le),Le}let R=v.length,ne=R>=1&&R<=4?v.slice():v;return ne.pos=-1,ne.end=-1,ne.hasTrailingComma=!!P,ne.transformFlags=0,Xye(ne),E.attachNodeArrayDebugInfo(ne),ne}function V(v){return t.createBaseNode(v)}function X(v){let P=V(v);return P.symbol=void 0,P.localSymbol=void 0,P}function J(v,P){return v!==P&&(v.typeArguments=P.typeArguments),n(v,P)}function ie(v,P=0){let R=X(9);return R.text=typeof v=="number"?v+"":v,R.numericLiteralFlags=P,P&384&&(R.transformFlags|=1024),R}function B(v){let P=mt(10);return P.text=typeof v=="string"?v:Qv(v)+"n",P.transformFlags|=32,P}function Z(v,P){let R=X(11);return R.text=v,R.singleQuote=P,R}function ae(v,P,R){let ne=Z(v,P);return ne.hasExtendedUnicodeEscape=R,R&&(ne.transformFlags|=1024),ne}function _e(v){let P=Z(gp(v),void 0);return P.textSourceNode=v,P}function $(v){let P=mt(14);return P.text=v,P}function H(v,P){switch(v){case 9:return ie(P,0);case 10:return B(P);case 11:return ae(P,void 0);case 12:return T0(P,!1);case 13:return T0(P,!0);case 14:return $(P);case 15:return hl(v,P,void 0,0)}}function K(v){let P=t.createBaseIdentifierNode(80);return P.escapedText=v,P.jsDoc=void 0,P.flowNode=void 0,P.symbol=void 0,P}function oe(v,P,R,ne){let Le=K(Yo(v));return u8(Le,{flags:P,id:hF,prefix:R,suffix:ne}),hF++,Le}function Se(v,P,R){P===void 0&&v&&(P=Ev(v)),P===80&&(P=void 0);let ne=K(Yo(v));return R&&(ne.flags|=256),ne.escapedText==="await"&&(ne.transformFlags|=67108864),ne.flags&256&&(ne.transformFlags|=1024),ne}function se(v,P,R,ne){let Le=1;P&&(Le|=8);let Lt=oe("",Le,R,ne);return v&&v(Lt),Lt}function Y(v){let P=2;return v&&(P|=8),oe("",P,void 0,void 0)}function ve(v,P=0,R,ne){return E.assert(!(P&7),"Argument out of range: flags"),E.assert((P&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),oe(v,3|P,R,ne)}function xe(v,P=0,R,ne){E.assert(!(P&7),"Argument out of range: flags");let Le=v?_g(v)?E1(!1,R,v,ne,ur):`generated@${Va(v)}`:"";(R||ne)&&(P|=16);let Lt=oe(Le,4|P,R,ne);return Lt.original=v,Lt}function Me(v){let P=t.createBasePrivateIdentifierNode(81);return P.escapedText=v,P.transformFlags|=16777216,P}function ke(v){return ts(v,"#")||E.fail("First character of private identifier must be #: "+v),Me(Yo(v))}function he(v,P,R,ne){let Le=Me(Yo(v));return u8(Le,{flags:P,id:hF,prefix:R,suffix:ne}),hF++,Le}function be(v,P,R){v&&!ts(v,"#")&&E.fail("First character of private identifier must be #: "+v);let ne=8|(v?3:1);return he(v??"",ne,P,R)}function _t(v,P,R){let ne=_g(v)?E1(!0,P,v,R,ur):`#generated@${Va(v)}`,Lt=he(ne,4|(P||R?16:0),P,R);return Lt.original=v,Lt}function mt(v){return t.createBaseTokenNode(v)}function me(v){E.assert(v>=0&&v<=165,"Invalid token"),E.assert(v<=15||v>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),E.assert(v<=9||v>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),E.assert(v!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let P=mt(v),R=0;switch(v){case 134:R=384;break;case 160:R=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:R=1;break;case 108:R=134218752,P.flowNode=void 0;break;case 126:R=1024;break;case 129:R=16777216;break;case 110:R=16384,P.flowNode=void 0;break}return R&&(P.transformFlags|=R),P}function Oe(){return me(108)}function Qe(){return me(110)}function at(){return me(106)}function ht(){return me(112)}function Je(){return me(97)}function lt(v){return me(v)}function Jt(v){let P=[];return v&32&&P.push(lt(95)),v&128&&P.push(lt(138)),v&2048&&P.push(lt(90)),v&4096&&P.push(lt(87)),v&1&&P.push(lt(125)),v&2&&P.push(lt(123)),v&4&&P.push(lt(124)),v&64&&P.push(lt(128)),v&256&&P.push(lt(126)),v&16&&P.push(lt(164)),v&8&&P.push(lt(148)),v&512&&P.push(lt(129)),v&1024&&P.push(lt(134)),v&8192&&P.push(lt(103)),v&16384&&P.push(lt(147)),P.length?P:void 0}function Gt(v,P){let R=V(166);return R.left=v,R.right=Uc(P),R.transformFlags|=ar(R.left)|s8(R.right),R.flowNode=void 0,R}function Tn(v,P,R){return v.left!==P||v.right!==R?n(Gt(P,R),v):v}function Un(v){let P=V(167);return P.expression=i().parenthesizeExpressionOfComputedPropertyName(v),P.transformFlags|=ar(P.expression)|1024|131072,P}function cn(v,P){return v.expression!==P?n(Un(P),v):v}function zt(v,P,R,ne){let Le=X(168);return Le.modifiers=Ia(v),Le.name=Uc(P),Le.constraint=R,Le.default=ne,Le.transformFlags=1,Le.expression=void 0,Le.jsDoc=void 0,Le}function Ft(v,P,R,ne,Le){return v.modifiers!==P||v.name!==R||v.constraint!==ne||v.default!==Le?n(zt(P,R,ne,Le),v):v}function Lr(v,P,R,ne,Le,Lt){let sr=X(169);return sr.modifiers=Ia(v),sr.dotDotDotToken=P,sr.name=Uc(R),sr.questionToken=ne,sr.type=Le,sr.initializer=IS(Lt),Hv(sr.name)?sr.transformFlags=1:sr.transformFlags=ka(sr.modifiers)|ar(sr.dotDotDotToken)|ay(sr.name)|ar(sr.questionToken)|ar(sr.initializer)|(sr.questionToken??sr.type?1:0)|(sr.dotDotDotToken??sr.initializer?1024:0)|(Vd(sr.modifiers)&31?8192:0),sr.jsDoc=void 0,sr}function ji(v,P,R,ne,Le,Lt,sr){return v.modifiers!==P||v.dotDotDotToken!==R||v.name!==ne||v.questionToken!==Le||v.type!==Lt||v.initializer!==sr?n(Lr(P,R,ne,Le,Lt,sr),v):v}function ii(v){let P=V(170);return P.expression=i().parenthesizeLeftSideOfAccess(v,!1),P.transformFlags|=ar(P.expression)|1|8192|33554432,P}function Hi(v,P){return v.expression!==P?n(ii(P),v):v}function Ye(v,P,R,ne){let Le=X(171);return Le.modifiers=Ia(v),Le.name=Uc(P),Le.type=ne,Le.questionToken=R,Le.transformFlags=1,Le.initializer=void 0,Le.jsDoc=void 0,Le}function fn(v,P,R,ne,Le){return v.modifiers!==P||v.name!==R||v.questionToken!==ne||v.type!==Le?An(Ye(P,R,ne,Le),v):v}function An(v,P){return v!==P&&(v.initializer=P.initializer),n(v,P)}function Ot(v,P,R,ne,Le){let Lt=X(172);Lt.modifiers=Ia(v),Lt.name=Uc(P),Lt.questionToken=R&&oy(R)?R:void 0,Lt.exclamationToken=R&&m8(R)?R:void 0,Lt.type=ne,Lt.initializer=IS(Le);let sr=Lt.flags&33554432||Vd(Lt.modifiers)&128;return Lt.transformFlags=ka(Lt.modifiers)|ay(Lt.name)|ar(Lt.initializer)|(sr||Lt.questionToken||Lt.exclamationToken||Lt.type?1:0)|(Na(Lt.name)||Vd(Lt.modifiers)&256&&Lt.initializer?8192:0)|16777216,Lt.jsDoc=void 0,Lt}function Sn(v,P,R,ne,Le,Lt){return v.modifiers!==P||v.name!==R||v.questionToken!==(ne!==void 0&&oy(ne)?ne:void 0)||v.exclamationToken!==(ne!==void 0&&m8(ne)?ne:void 0)||v.type!==Le||v.initializer!==Lt?n(Ot(P,R,ne,Le,Lt),v):v}function Cn(v,P,R,ne,Le,Lt){let sr=X(173);return sr.modifiers=Ia(v),sr.name=Uc(P),sr.questionToken=R,sr.typeParameters=Ia(ne),sr.parameters=Ia(Le),sr.type=Lt,sr.transformFlags=1,sr.jsDoc=void 0,sr.locals=void 0,sr.nextContainer=void 0,sr.typeArguments=void 0,sr}function Kn(v,P,R,ne,Le,Lt,sr){return v.modifiers!==P||v.name!==R||v.questionToken!==ne||v.typeParameters!==Le||v.parameters!==Lt||v.type!==sr?J(Cn(P,R,ne,Le,Lt,sr),v):v}function Fi(v,P,R,ne,Le,Lt,sr,rs){let Xa=X(174);if(Xa.modifiers=Ia(v),Xa.asteriskToken=P,Xa.name=Uc(R),Xa.questionToken=ne,Xa.exclamationToken=void 0,Xa.typeParameters=Ia(Le),Xa.parameters=z(Lt),Xa.type=sr,Xa.body=rs,!Xa.body)Xa.transformFlags=1;else{let Rf=Vd(Xa.modifiers)&1024,Iy=!!Xa.asteriskToken,Fy=Rf&&Iy;Xa.transformFlags=ka(Xa.modifiers)|ar(Xa.asteriskToken)|ay(Xa.name)|ar(Xa.questionToken)|ka(Xa.typeParameters)|ka(Xa.parameters)|ar(Xa.type)|ar(Xa.body)&-67108865|(Fy?128:Rf?256:Iy?2048:0)|(Xa.questionToken||Xa.typeParameters||Xa.type?1:0)|1024}return Xa.typeArguments=void 0,Xa.jsDoc=void 0,Xa.locals=void 0,Xa.nextContainer=void 0,Xa.flowNode=void 0,Xa.endFlowNode=void 0,Xa.returnFlowNode=void 0,Xa}function Wi(v,P,R,ne,Le,Lt,sr,rs,Xa){return v.modifiers!==P||v.asteriskToken!==R||v.name!==ne||v.questionToken!==Le||v.typeParameters!==Lt||v.parameters!==sr||v.type!==rs||v.body!==Xa?Ii(Fi(P,R,ne,Le,Lt,sr,rs,Xa),v):v}function Ii(v,P){return v!==P&&(v.exclamationToken=P.exclamationToken),n(v,P)}function Ki(v){let P=X(175);return P.body=v,P.transformFlags=ar(v)|16777216,P.modifiers=void 0,P.jsDoc=void 0,P.locals=void 0,P.nextContainer=void 0,P.endFlowNode=void 0,P.returnFlowNode=void 0,P}function na(v,P){return v.body!==P?Fs(Ki(P),v):v}function Fs(v,P){return v!==P&&(v.modifiers=P.modifiers),n(v,P)}function Ce(v,P,R){let ne=X(176);return ne.modifiers=Ia(v),ne.parameters=z(P),ne.body=R,ne.transformFlags=ka(ne.modifiers)|ka(ne.parameters)|ar(ne.body)&-67108865|1024,ne.typeParameters=void 0,ne.type=void 0,ne.typeArguments=void 0,ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne.endFlowNode=void 0,ne.returnFlowNode=void 0,ne}function Ue(v,P,R,ne){return v.modifiers!==P||v.parameters!==R||v.body!==ne?it(Ce(P,R,ne),v):v}function it(v,P){return v!==P&&(v.typeParameters=P.typeParameters,v.type=P.type),J(v,P)}function dt(v,P,R,ne,Le){let Lt=X(177);return Lt.modifiers=Ia(v),Lt.name=Uc(P),Lt.parameters=z(R),Lt.type=ne,Lt.body=Le,Lt.body?Lt.transformFlags=ka(Lt.modifiers)|ay(Lt.name)|ka(Lt.parameters)|ar(Lt.type)|ar(Lt.body)&-67108865|(Lt.type?1:0):Lt.transformFlags=1,Lt.typeArguments=void 0,Lt.typeParameters=void 0,Lt.jsDoc=void 0,Lt.locals=void 0,Lt.nextContainer=void 0,Lt.flowNode=void 0,Lt.endFlowNode=void 0,Lt.returnFlowNode=void 0,Lt}function gt(v,P,R,ne,Le,Lt){return v.modifiers!==P||v.name!==R||v.parameters!==ne||v.type!==Le||v.body!==Lt?fe(dt(P,R,ne,Le,Lt),v):v}function fe(v,P){return v!==P&&(v.typeParameters=P.typeParameters),J(v,P)}function we(v,P,R,ne){let Le=X(178);return Le.modifiers=Ia(v),Le.name=Uc(P),Le.parameters=z(R),Le.body=ne,Le.body?Le.transformFlags=ka(Le.modifiers)|ay(Le.name)|ka(Le.parameters)|ar(Le.body)&-67108865|(Le.type?1:0):Le.transformFlags=1,Le.typeArguments=void 0,Le.typeParameters=void 0,Le.type=void 0,Le.jsDoc=void 0,Le.locals=void 0,Le.nextContainer=void 0,Le.flowNode=void 0,Le.endFlowNode=void 0,Le.returnFlowNode=void 0,Le}function Be(v,P,R,ne,Le){return v.modifiers!==P||v.name!==R||v.parameters!==ne||v.body!==Le?yt(we(P,R,ne,Le),v):v}function yt(v,P){return v!==P&&(v.typeParameters=P.typeParameters,v.type=P.type),J(v,P)}function G(v,P,R){let ne=X(179);return ne.typeParameters=Ia(v),ne.parameters=Ia(P),ne.type=R,ne.transformFlags=1,ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne.typeArguments=void 0,ne}function vt(v,P,R,ne){return v.typeParameters!==P||v.parameters!==R||v.type!==ne?J(G(P,R,ne),v):v}function wt(v,P,R){let ne=X(180);return ne.typeParameters=Ia(v),ne.parameters=Ia(P),ne.type=R,ne.transformFlags=1,ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne.typeArguments=void 0,ne}function Re(v,P,R,ne){return v.typeParameters!==P||v.parameters!==R||v.type!==ne?J(wt(P,R,ne),v):v}function ot(v,P,R){let ne=X(181);return ne.modifiers=Ia(v),ne.parameters=Ia(P),ne.type=R,ne.transformFlags=1,ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne.typeArguments=void 0,ne}function Dt(v,P,R,ne){return v.parameters!==R||v.type!==ne||v.modifiers!==P?J(ot(P,R,ne),v):v}function Zt(v,P){let R=V(204);return R.type=v,R.literal=P,R.transformFlags=1,R}function tn(v,P,R){return v.type!==P||v.literal!==R?n(Zt(P,R),v):v}function ln(v){return me(v)}function W(v,P,R){let ne=V(182);return ne.assertsModifier=v,ne.parameterName=Uc(P),ne.type=R,ne.transformFlags=1,ne}function j(v,P,R,ne){return v.assertsModifier!==P||v.parameterName!==R||v.type!==ne?n(W(P,R,ne),v):v}function ce(v,P){let R=V(183);return R.typeName=Uc(v),R.typeArguments=P&&i().parenthesizeTypeArguments(z(P)),R.transformFlags=1,R}function ee(v,P,R){return v.typeName!==P||v.typeArguments!==R?n(ce(P,R),v):v}function ue(v,P,R){let ne=X(184);return ne.typeParameters=Ia(v),ne.parameters=Ia(P),ne.type=R,ne.transformFlags=1,ne.modifiers=void 0,ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne.typeArguments=void 0,ne}function M(v,P,R,ne){return v.typeParameters!==P||v.parameters!==R||v.type!==ne?De(ue(P,R,ne),v):v}function De(v,P){return v!==P&&(v.modifiers=P.modifiers),J(v,P)}function qe(...v){return v.length===4?Fe(...v):v.length===3?St(...v):E.fail("Incorrect number of arguments specified.")}function Fe(v,P,R,ne){let Le=X(185);return Le.modifiers=Ia(v),Le.typeParameters=Ia(P),Le.parameters=Ia(R),Le.type=ne,Le.transformFlags=1,Le.jsDoc=void 0,Le.locals=void 0,Le.nextContainer=void 0,Le.typeArguments=void 0,Le}function St(v,P,R){return Fe(void 0,v,P,R)}function Mt(...v){return v.length===5?Wt(...v):v.length===4?Rn(...v):E.fail("Incorrect number of arguments specified.")}function Wt(v,P,R,ne,Le){return v.modifiers!==P||v.typeParameters!==R||v.parameters!==ne||v.type!==Le?J(qe(P,R,ne,Le),v):v}function Rn(v,P,R,ne){return Wt(v,v.modifiers,P,R,ne)}function nr(v,P){let R=V(186);return R.exprName=v,R.typeArguments=P&&i().parenthesizeTypeArguments(P),R.transformFlags=1,R}function br(v,P,R){return v.exprName!==P||v.typeArguments!==R?n(nr(P,R),v):v}function jr(v){let P=X(187);return P.members=z(v),P.transformFlags=1,P}function Br(v,P){return v.members!==P?n(jr(P),v):v}function Mi(v){let P=V(188);return P.elementType=i().parenthesizeNonArrayTypeOfPostfixType(v),P.transformFlags=1,P}function wr(v,P){return v.elementType!==P?n(Mi(P),v):v}function is(v){let P=V(189);return P.elements=z(i().parenthesizeElementTypesOfTupleType(v)),P.transformFlags=1,P}function In(v,P){return v.elements!==P?n(is(P),v):v}function mi(v,P,R,ne){let Le=X(202);return Le.dotDotDotToken=v,Le.name=P,Le.questionToken=R,Le.type=ne,Le.transformFlags=1,Le.jsDoc=void 0,Le}function ua(v,P,R,ne,Le){return v.dotDotDotToken!==P||v.name!==R||v.questionToken!==ne||v.type!==Le?n(mi(P,R,ne,Le),v):v}function js(v){let P=V(190);return P.type=i().parenthesizeTypeOfOptionalType(v),P.transformFlags=1,P}function Pn(v,P){return v.type!==P?n(js(P),v):v}function Nc(v){let P=V(191);return P.type=v,P.transformFlags=1,P}function _s(v,P){return v.type!==P?n(Nc(P),v):v}function to(v,P,R){let ne=V(v);return ne.types=O.createNodeArray(R(P)),ne.transformFlags=1,ne}function fc(v,P,R){return v.types!==P?n(to(v.kind,P,R),v):v}function ec(v){return to(192,v,i().parenthesizeConstituentTypesOfUnionType)}function gl(v,P){return fc(v,P,i().parenthesizeConstituentTypesOfUnionType)}function Ho(v){return to(193,v,i().parenthesizeConstituentTypesOfIntersectionType)}function xs(v,P){return fc(v,P,i().parenthesizeConstituentTypesOfIntersectionType)}function $s(v,P,R,ne){let Le=V(194);return Le.checkType=i().parenthesizeCheckTypeOfConditionalType(v),Le.extendsType=i().parenthesizeExtendsTypeOfConditionalType(P),Le.trueType=R,Le.falseType=ne,Le.transformFlags=1,Le.locals=void 0,Le.nextContainer=void 0,Le}function cl(v,P,R,ne,Le){return v.checkType!==P||v.extendsType!==R||v.trueType!==ne||v.falseType!==Le?n($s(P,R,ne,Le),v):v}function Do(v){let P=V(195);return P.typeParameter=v,P.transformFlags=1,P}function Xs(v,P){return v.typeParameter!==P?n(Do(P),v):v}function Jc(v,P){let R=V(203);return R.head=v,R.templateSpans=z(P),R.transformFlags=1,R}function td(v,P,R){return v.head!==P||v.templateSpans!==R?n(Jc(P,R),v):v}function zc(v,P,R,ne,Le=!1){let Lt=V(205);return Lt.argument=v,Lt.attributes=P,Lt.assertions&&Lt.assertions.assertClause&&Lt.attributes&&(Lt.assertions.assertClause=Lt.attributes),Lt.qualifier=R,Lt.typeArguments=ne&&i().parenthesizeTypeArguments(ne),Lt.isTypeOf=Le,Lt.transformFlags=1,Lt}function ic(v,P,R,ne,Le,Lt=v.isTypeOf){return v.argument!==P||v.attributes!==R||v.qualifier!==ne||v.typeArguments!==Le||v.isTypeOf!==Lt?n(zc(P,R,ne,Le,Lt),v):v}function Bo(v){let P=V(196);return P.type=v,P.transformFlags=1,P}function as(v,P){return v.type!==P?n(Bo(P),v):v}function Ht(){let v=V(197);return v.transformFlags=1,v}function Jo(v,P){let R=V(198);return R.operator=v,R.type=v===148?i().parenthesizeOperandOfReadonlyTypeOperator(P):i().parenthesizeOperandOfTypeOperator(P),R.transformFlags=1,R}function nl(v,P){return v.type!==P?n(Jo(v.operator,P),v):v}function qu(v,P){let R=V(199);return R.objectType=i().parenthesizeNonArrayTypeOfPostfixType(v),R.indexType=P,R.transformFlags=1,R}function h_(v,P,R){return v.objectType!==P||v.indexType!==R?n(qu(P,R),v):v}function Po(v,P,R,ne,Le,Lt){let sr=X(200);return sr.readonlyToken=v,sr.typeParameter=P,sr.nameType=R,sr.questionToken=ne,sr.type=Le,sr.members=Lt&&z(Lt),sr.transformFlags=1,sr.locals=void 0,sr.nextContainer=void 0,sr}function Ic(v,P,R,ne,Le,Lt,sr){return v.readonlyToken!==P||v.typeParameter!==R||v.nameType!==ne||v.questionToken!==Le||v.type!==Lt||v.members!==sr?n(Po(P,R,ne,Le,Lt,sr),v):v}function A(v){let P=V(201);return P.literal=v,P.transformFlags=1,P}function Pe(v,P){return v.literal!==P?n(A(P),v):v}function He(v){let P=V(206);return P.elements=z(v),P.transformFlags|=ka(P.elements)|1024|524288,P.transformFlags&32768&&(P.transformFlags|=65664),P}function kt(v,P){return v.elements!==P?n(He(P),v):v}function gn(v){let P=V(207);return P.elements=z(v),P.transformFlags|=ka(P.elements)|1024|524288,P}function Ar(v,P){return v.elements!==P?n(gn(P),v):v}function Zn(v,P,R,ne){let Le=X(208);return Le.dotDotDotToken=v,Le.propertyName=Uc(P),Le.name=Uc(R),Le.initializer=IS(ne),Le.transformFlags|=ar(Le.dotDotDotToken)|ay(Le.propertyName)|ay(Le.name)|ar(Le.initializer)|(Le.dotDotDotToken?32768:0)|1024,Le.flowNode=void 0,Le}function Tr(v,P,R,ne,Le){return v.propertyName!==R||v.dotDotDotToken!==P||v.name!==ne||v.initializer!==Le?n(Zn(P,R,ne,Le),v):v}function pi(v,P){let R=V(209),ne=v&&qo(v),Le=z(v,ne&&xl(ne)?!0:void 0);return R.elements=i().parenthesizeExpressionsOfCommaDelimitedList(Le),R.multiLine=P,R.transformFlags|=ka(R.elements),R}function Dr(v,P){return v.elements!==P?n(pi(P,v.multiLine),v):v}function Ea(v,P){let R=X(210);return R.properties=z(v),R.multiLine=P,R.transformFlags|=ka(R.properties),R.jsDoc=void 0,R}function yc(v,P){return v.properties!==P?n(Ea(P,v.multiLine),v):v}function ll(v,P,R){let ne=X(211);return ne.expression=v,ne.questionDotToken=P,ne.name=R,ne.transformFlags=ar(ne.expression)|ar(ne.questionDotToken)|(Ie(ne.name)?s8(ne.name):ar(ne.name)|536870912),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function _o(v,P){let R=ll(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Uc(P));return GE(v)&&(R.transformFlags|=384),R}function ul(v,P,R){return E7(v)?Cl(v,P,v.questionDotToken,Vs(R,Ie)):v.expression!==P||v.name!==R?n(_o(P,R),v):v}function ro(v,P,R){let ne=ll(i().parenthesizeLeftSideOfAccess(v,!0),P,Uc(R));return ne.flags|=64,ne.transformFlags|=32,ne}function Cl(v,P,R,ne){return E.assert(!!(v.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),v.expression!==P||v.questionDotToken!==R||v.name!==ne?n(ro(P,R,ne),v):v}function t_(v,P,R){let ne=X(212);return ne.expression=v,ne.questionDotToken=P,ne.argumentExpression=R,ne.transformFlags|=ar(ne.expression)|ar(ne.questionDotToken)|ar(ne.argumentExpression),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function Au(v,P){let R=t_(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Ny(P));return GE(v)&&(R.transformFlags|=384),R}function Gf(v,P,R){return hJ(v)?ye(v,P,v.questionDotToken,R):v.expression!==P||v.argumentExpression!==R?n(Au(P,R),v):v}function tu(v,P,R){let ne=t_(i().parenthesizeLeftSideOfAccess(v,!0),P,Ny(R));return ne.flags|=64,ne.transformFlags|=32,ne}function ye(v,P,R,ne){return E.assert(!!(v.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),v.expression!==P||v.questionDotToken!==R||v.argumentExpression!==ne?n(tu(P,R,ne),v):v}function Tt(v,P,R,ne){let Le=X(213);return Le.expression=v,Le.questionDotToken=P,Le.typeArguments=R,Le.arguments=ne,Le.transformFlags|=ar(Le.expression)|ar(Le.questionDotToken)|ka(Le.typeArguments)|ka(Le.arguments),Le.typeArguments&&(Le.transformFlags|=1),f_(Le.expression)&&(Le.transformFlags|=16384),Le}function Ln(v,P,R){let ne=Tt(i().parenthesizeLeftSideOfAccess(v,!1),void 0,Ia(P),i().parenthesizeExpressionsOfCommaDelimitedList(z(R)));return $E(ne.expression)&&(ne.transformFlags|=8388608),ne}function Gi(v,P,R,ne){return p2(v)?Bs(v,P,v.questionDotToken,R,ne):v.expression!==P||v.typeArguments!==R||v.arguments!==ne?n(Ln(P,R,ne),v):v}function Os(v,P,R,ne){let Le=Tt(i().parenthesizeLeftSideOfAccess(v,!0),P,Ia(R),i().parenthesizeExpressionsOfCommaDelimitedList(z(ne)));return Le.flags|=64,Le.transformFlags|=32,Le}function Bs(v,P,R,ne,Le){return E.assert(!!(v.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),v.expression!==P||v.questionDotToken!==R||v.typeArguments!==ne||v.arguments!==Le?n(Os(P,R,ne,Le),v):v}function vc(v,P,R){let ne=X(214);return ne.expression=i().parenthesizeExpressionOfNew(v),ne.typeArguments=Ia(P),ne.arguments=R?i().parenthesizeExpressionsOfCommaDelimitedList(R):void 0,ne.transformFlags|=ar(ne.expression)|ka(ne.typeArguments)|ka(ne.arguments)|32,ne.typeArguments&&(ne.transformFlags|=1),ne}function Ec(v,P,R,ne){return v.expression!==P||v.typeArguments!==R||v.arguments!==ne?n(vc(P,R,ne),v):v}function Go(v,P,R){let ne=V(215);return ne.tag=i().parenthesizeLeftSideOfAccess(v,!1),ne.typeArguments=Ia(P),ne.template=R,ne.transformFlags|=ar(ne.tag)|ka(ne.typeArguments)|ar(ne.template)|1024,ne.typeArguments&&(ne.transformFlags|=1),Dz(ne.template)&&(ne.transformFlags|=128),ne}function tc(v,P,R,ne){return v.tag!==P||v.typeArguments!==R||v.template!==ne?n(Go(P,R,ne),v):v}function Fc(v,P){let R=V(216);return R.expression=i().parenthesizeOperandOfPrefixUnary(P),R.type=v,R.transformFlags|=ar(R.expression)|ar(R.type)|1,R}function pc(v,P,R){return v.type!==P||v.expression!==R?n(Fc(P,R),v):v}function Vc(v){let P=V(217);return P.expression=v,P.transformFlags=ar(P.expression),P.jsDoc=void 0,P}function Ep(v,P){return v.expression!==P?n(Vc(P),v):v}function Nf(v,P,R,ne,Le,Lt,sr){let rs=X(218);rs.modifiers=Ia(v),rs.asteriskToken=P,rs.name=Uc(R),rs.typeParameters=Ia(ne),rs.parameters=z(Le),rs.type=Lt,rs.body=sr;let Xa=Vd(rs.modifiers)&1024,Rf=!!rs.asteriskToken,Iy=Xa&&Rf;return rs.transformFlags=ka(rs.modifiers)|ar(rs.asteriskToken)|ay(rs.name)|ka(rs.typeParameters)|ka(rs.parameters)|ar(rs.type)|ar(rs.body)&-67108865|(Iy?128:Xa?256:Rf?2048:0)|(rs.typeParameters||rs.type?1:0)|4194304,rs.typeArguments=void 0,rs.jsDoc=void 0,rs.locals=void 0,rs.nextContainer=void 0,rs.flowNode=void 0,rs.endFlowNode=void 0,rs.returnFlowNode=void 0,rs}function n_(v,P,R,ne,Le,Lt,sr,rs){return v.name!==ne||v.modifiers!==P||v.asteriskToken!==R||v.typeParameters!==Le||v.parameters!==Lt||v.type!==sr||v.body!==rs?J(Nf(P,R,ne,Le,Lt,sr,rs),v):v}function $f(v,P,R,ne,Le,Lt){let sr=X(219);sr.modifiers=Ia(v),sr.typeParameters=Ia(P),sr.parameters=z(R),sr.type=ne,sr.equalsGreaterThanToken=Le??me(39),sr.body=i().parenthesizeConciseBodyOfArrowFunction(Lt);let rs=Vd(sr.modifiers)&1024;return sr.transformFlags=ka(sr.modifiers)|ka(sr.typeParameters)|ka(sr.parameters)|ar(sr.type)|ar(sr.equalsGreaterThanToken)|ar(sr.body)&-67108865|(sr.typeParameters||sr.type?1:0)|(rs?16640:0)|1024,sr.typeArguments=void 0,sr.jsDoc=void 0,sr.locals=void 0,sr.nextContainer=void 0,sr.flowNode=void 0,sr.endFlowNode=void 0,sr.returnFlowNode=void 0,sr}function wg(v,P,R,ne,Le,Lt,sr){return v.modifiers!==P||v.typeParameters!==R||v.parameters!==ne||v.type!==Le||v.equalsGreaterThanToken!==Lt||v.body!==sr?J($f(P,R,ne,Le,Lt,sr),v):v}function Um(v){let P=V(220);return P.expression=i().parenthesizeOperandOfPrefixUnary(v),P.transformFlags|=ar(P.expression),P}function p0(v,P){return v.expression!==P?n(Um(P),v):v}function du(v){let P=V(221);return P.expression=i().parenthesizeOperandOfPrefixUnary(v),P.transformFlags|=ar(P.expression),P}function Ag(v,P){return v.expression!==P?n(du(P),v):v}function V_(v){let P=V(222);return P.expression=i().parenthesizeOperandOfPrefixUnary(v),P.transformFlags|=ar(P.expression),P}function Xf(v,P){return v.expression!==P?n(V_(P),v):v}function r_(v){let P=V(223);return P.expression=i().parenthesizeOperandOfPrefixUnary(v),P.transformFlags|=ar(P.expression)|256|128|2097152,P}function Q(v,P){return v.expression!==P?n(r_(P),v):v}function Ze(v,P){let R=V(224);return R.operator=v,R.operand=i().parenthesizeOperandOfPrefixUnary(P),R.transformFlags|=ar(R.operand),(v===46||v===47)&&Ie(R.operand)&&!Lo(R.operand)&&!uh(R.operand)&&(R.transformFlags|=268435456),R}function Pt(v,P){return v.operand!==P?n(Ze(v.operator,P),v):v}function At(v,P){let R=V(225);return R.operator=P,R.operand=i().parenthesizeOperandOfPostfixUnary(v),R.transformFlags|=ar(R.operand),Ie(R.operand)&&!Lo(R.operand)&&!uh(R.operand)&&(R.transformFlags|=268435456),R}function L(v,P){return v.operand!==P?n(At(P,v.operator),v):v}function pe(v,P,R){let ne=X(226),Le=cR(P),Lt=Le.kind;return ne.left=i().parenthesizeLeftSideOfBinary(Lt,v),ne.operatorToken=Le,ne.right=i().parenthesizeRightSideOfBinary(Lt,ne.left,R),ne.transformFlags|=ar(ne.left)|ar(ne.operatorToken)|ar(ne.right),Lt===61?ne.transformFlags|=32:Lt===64?xa(ne.left)?ne.transformFlags|=5248|Ke(ne.left):Vu(ne.left)&&(ne.transformFlags|=5120|Ke(ne.left)):Lt===43||Lt===68?ne.transformFlags|=512:vE(Lt)&&(ne.transformFlags|=16),Lt===103&&Di(ne.left)&&(ne.transformFlags|=536870912),ne.jsDoc=void 0,ne}function Ke(v){return N8(v)?65536:0}function It(v,P,R,ne){return v.left!==P||v.operatorToken!==R||v.right!==ne?n(pe(P,R,ne),v):v}function jn(v,P,R,ne,Le){let Lt=V(227);return Lt.condition=i().parenthesizeConditionOfConditionalExpression(v),Lt.questionToken=P??me(58),Lt.whenTrue=i().parenthesizeBranchOfConditionalExpression(R),Lt.colonToken=ne??me(59),Lt.whenFalse=i().parenthesizeBranchOfConditionalExpression(Le),Lt.transformFlags|=ar(Lt.condition)|ar(Lt.questionToken)|ar(Lt.whenTrue)|ar(Lt.colonToken)|ar(Lt.whenFalse),Lt}function zr(v,P,R,ne,Le,Lt){return v.condition!==P||v.questionToken!==R||v.whenTrue!==ne||v.colonToken!==Le||v.whenFalse!==Lt?n(jn(P,R,ne,Le,Lt),v):v}function Vr(v,P){let R=V(228);return R.head=v,R.templateSpans=z(P),R.transformFlags|=ar(R.head)|ka(R.templateSpans)|1024,R}function Bi(v,P,R){return v.head!==P||v.templateSpans!==R?n(Vr(P,R),v):v}function _a(v,P,R,ne=0){E.assert(!(ne&-7177),"Unsupported template flags.");let Le;if(R!==void 0&&R!==P&&(Le=rOe(v,R),typeof Le=="object"))return E.fail("Invalid raw text");if(P===void 0){if(Le===void 0)return E.fail("Arguments 'text' and 'rawText' may not both be undefined.");P=Le}else Le!==void 0&&E.assert(P===Le,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return P}function fa(v){let P=1024;return v&&(P|=128),P}function sc(v,P,R,ne){let Le=mt(v);return Le.text=P,Le.rawText=R,Le.templateFlags=ne&7176,Le.transformFlags=fa(Le.templateFlags),Le}function nu(v,P,R,ne){let Le=X(v);return Le.text=P,Le.rawText=R,Le.templateFlags=ne&7176,Le.transformFlags=fa(Le.templateFlags),Le}function hl(v,P,R,ne){return v===15?nu(v,P,R,ne):sc(v,P,R,ne)}function If(v,P,R){return v=_a(16,v,P,R),hl(16,v,P,R)}function ha(v,P,R){return v=_a(16,v,P,R),hl(17,v,P,R)}function Dp(v,P,R){return v=_a(16,v,P,R),hl(18,v,P,R)}function Ff(v,P,R){return v=_a(16,v,P,R),nu(15,v,P,R)}function Ng(v,P){E.assert(!v||!!P,"A `YieldExpression` with an asteriskToken must have an expression.");let R=V(229);return R.expression=P&&i().parenthesizeExpressionForDisallowedComma(P),R.asteriskToken=v,R.transformFlags|=ar(R.expression)|ar(R.asteriskToken)|1024|128|1048576,R}function qm(v,P,R){return v.expression!==R||v.asteriskToken!==P?n(Ng(P,R),v):v}function wi(v){let P=V(230);return P.expression=i().parenthesizeExpressionForDisallowedComma(v),P.transformFlags|=ar(P.expression)|1024|32768,P}function gy(v,P){return v.expression!==P?n(wi(P),v):v}function hy(v,P,R,ne,Le){let Lt=X(231);return Lt.modifiers=Ia(v),Lt.name=Uc(P),Lt.typeParameters=Ia(R),Lt.heritageClauses=Ia(ne),Lt.members=z(Le),Lt.transformFlags|=ka(Lt.modifiers)|ay(Lt.name)|ka(Lt.typeParameters)|ka(Lt.heritageClauses)|ka(Lt.members)|(Lt.typeParameters?1:0)|1024,Lt.jsDoc=void 0,Lt}function xd(v,P,R,ne,Le,Lt){return v.modifiers!==P||v.name!==R||v.typeParameters!==ne||v.heritageClauses!==Le||v.members!==Lt?n(hy(P,R,ne,Le,Lt),v):v}function Sb(){return V(232)}function d0(v,P){let R=V(233);return R.expression=i().parenthesizeLeftSideOfAccess(v,!1),R.typeArguments=P&&i().parenthesizeTypeArguments(P),R.transformFlags|=ar(R.expression)|ka(R.typeArguments)|1024,R}function Ee(v,P,R){return v.expression!==P||v.typeArguments!==R?n(d0(P,R),v):v}function We(v,P){let R=V(234);return R.expression=v,R.type=P,R.transformFlags|=ar(R.expression)|ar(R.type)|1,R}function xt(v,P,R){return v.expression!==P||v.type!==R?n(We(P,R),v):v}function jt(v){let P=V(235);return P.expression=i().parenthesizeLeftSideOfAccess(v,!1),P.transformFlags|=ar(P.expression)|1,P}function nn(v,P){return P7(v)?oi(v,P):v.expression!==P?n(jt(P),v):v}function Bn(v,P){let R=V(238);return R.expression=v,R.type=P,R.transformFlags|=ar(R.expression)|ar(R.type)|1,R}function sn(v,P,R){return v.expression!==P||v.type!==R?n(Bn(P,R),v):v}function En(v){let P=V(235);return P.flags|=64,P.expression=i().parenthesizeLeftSideOfAccess(v,!0),P.transformFlags|=ar(P.expression)|1,P}function oi(v,P){return E.assert(!!(v.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),v.expression!==P?n(En(P),v):v}function mr(v,P){let R=V(236);switch(R.keywordToken=v,R.name=P,R.transformFlags|=ar(R.name),v){case 105:R.transformFlags|=1024;break;case 102:R.transformFlags|=32;break;default:return E.assertNever(v)}return R.flowNode=void 0,R}function gr(v,P){return v.name!==P?n(mr(v.keywordToken,P),v):v}function _r(v,P){let R=V(239);return R.expression=v,R.literal=P,R.transformFlags|=ar(R.expression)|ar(R.literal)|1024,R}function Oi(v,P,R){return v.expression!==P||v.literal!==R?n(_r(P,R),v):v}function io(){let v=V(240);return v.transformFlags|=1024,v}function Za(v,P){let R=V(241);return R.statements=z(v),R.multiLine=P,R.transformFlags|=ka(R.statements),R.jsDoc=void 0,R.locals=void 0,R.nextContainer=void 0,R}function W_(v,P){return v.statements!==P?n(Za(P,v.multiLine),v):v}function J1(v,P){let R=V(243);return R.modifiers=Ia(v),R.declarationList=ss(P)?W1(P):P,R.transformFlags|=ka(R.modifiers)|ar(R.declarationList),Vd(R.modifiers)&128&&(R.transformFlags=1),R.jsDoc=void 0,R.flowNode=void 0,R}function yy(v,P,R){return v.modifiers!==P||v.declarationList!==R?n(J1(P,R),v):v}function mh(){let v=V(242);return v.jsDoc=void 0,v}function vy(v){let P=V(244);return P.expression=i().parenthesizeExpressionOfExpressionStatement(v),P.transformFlags|=ar(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function _S(v,P){return v.expression!==P?n(vy(P),v):v}function xb(v,P,R){let ne=V(245);return ne.expression=v,ne.thenStatement=eg(P),ne.elseStatement=eg(R),ne.transformFlags|=ar(ne.expression)|ar(ne.thenStatement)|ar(ne.elseStatement),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function fS(v,P,R,ne){return v.expression!==P||v.thenStatement!==R||v.elseStatement!==ne?n(xb(P,R,ne),v):v}function pS(v,P){let R=V(246);return R.statement=eg(v),R.expression=P,R.transformFlags|=ar(R.statement)|ar(R.expression),R.jsDoc=void 0,R.flowNode=void 0,R}function _D(v,P,R){return v.statement!==P||v.expression!==R?n(pS(P,R),v):v}function AT(v,P){let R=V(247);return R.expression=v,R.statement=eg(P),R.transformFlags|=ar(R.expression)|ar(R.statement),R.jsDoc=void 0,R.flowNode=void 0,R}function w6(v,P,R){return v.expression!==P||v.statement!==R?n(AT(P,R),v):v}function z1(v,P,R,ne){let Le=V(248);return Le.initializer=v,Le.condition=P,Le.incrementor=R,Le.statement=eg(ne),Le.transformFlags|=ar(Le.initializer)|ar(Le.condition)|ar(Le.incrementor)|ar(Le.statement),Le.jsDoc=void 0,Le.locals=void 0,Le.nextContainer=void 0,Le.flowNode=void 0,Le}function NT(v,P,R,ne,Le){return v.initializer!==P||v.condition!==R||v.incrementor!==ne||v.statement!==Le?n(z1(P,R,ne,Le),v):v}function IT(v,P,R){let ne=V(249);return ne.initializer=v,ne.expression=P,ne.statement=eg(R),ne.transformFlags|=ar(ne.initializer)|ar(ne.expression)|ar(ne.statement),ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne.flowNode=void 0,ne}function A6(v,P,R,ne){return v.initializer!==P||v.expression!==R||v.statement!==ne?n(IT(P,R,ne),v):v}function dS(v,P,R,ne){let Le=V(250);return Le.awaitModifier=v,Le.initializer=P,Le.expression=i().parenthesizeExpressionForDisallowedComma(R),Le.statement=eg(ne),Le.transformFlags|=ar(Le.awaitModifier)|ar(Le.initializer)|ar(Le.expression)|ar(Le.statement)|1024,v&&(Le.transformFlags|=128),Le.jsDoc=void 0,Le.locals=void 0,Le.nextContainer=void 0,Le.flowNode=void 0,Le}function N6(v,P,R,ne,Le){return v.awaitModifier!==P||v.initializer!==R||v.expression!==ne||v.statement!==Le?n(dS(P,R,ne,Le),v):v}function FT(v){let P=V(251);return P.label=Uc(v),P.transformFlags|=ar(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function OT(v,P){return v.label!==P?n(FT(P),v):v}function mS(v){let P=V(252);return P.label=Uc(v),P.transformFlags|=ar(P.label)|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function Tb(v,P){return v.label!==P?n(mS(P),v):v}function kb(v){let P=V(253);return P.expression=v,P.transformFlags|=ar(P.expression)|128|4194304,P.jsDoc=void 0,P.flowNode=void 0,P}function V1(v,P){return v.expression!==P?n(kb(P),v):v}function m0(v,P){let R=V(254);return R.expression=v,R.statement=eg(P),R.transformFlags|=ar(R.expression)|ar(R.statement),R.jsDoc=void 0,R.flowNode=void 0,R}function Cb(v,P,R){return v.expression!==P||v.statement!==R?n(m0(P,R),v):v}function em(v,P){let R=V(255);return R.expression=i().parenthesizeExpressionForDisallowedComma(v),R.caseBlock=P,R.transformFlags|=ar(R.expression)|ar(R.caseBlock),R.jsDoc=void 0,R.flowNode=void 0,R.possiblyExhaustive=!1,R}function Ra(v,P,R){return v.expression!==P||v.caseBlock!==R?n(em(P,R),v):v}function gS(v,P){let R=V(256);return R.label=Uc(v),R.statement=eg(P),R.transformFlags|=ar(R.label)|ar(R.statement),R.jsDoc=void 0,R.flowNode=void 0,R}function I6(v,P,R){return v.label!==P||v.statement!==R?n(gS(P,R),v):v}function by(v){let P=V(257);return P.expression=v,P.transformFlags|=ar(P.expression),P.jsDoc=void 0,P.flowNode=void 0,P}function g0(v,P){return v.expression!==P?n(by(P),v):v}function Hm(v,P,R){let ne=V(258);return ne.tryBlock=v,ne.catchClause=P,ne.finallyBlock=R,ne.transformFlags|=ar(ne.tryBlock)|ar(ne.catchClause)|ar(ne.finallyBlock),ne.jsDoc=void 0,ne.flowNode=void 0,ne}function Qf(v,P,R,ne){return v.tryBlock!==P||v.catchClause!==R||v.finallyBlock!==ne?n(Hm(P,R,ne),v):v}function U_(){let v=V(259);return v.jsDoc=void 0,v.flowNode=void 0,v}function i_(v,P,R,ne){let Le=X(260);return Le.name=Uc(v),Le.exclamationToken=P,Le.type=R,Le.initializer=IS(ne),Le.transformFlags|=ay(Le.name)|ar(Le.initializer)|(Le.exclamationToken??Le.type?1:0),Le.jsDoc=void 0,Le}function of(v,P,R,ne,Le){return v.name!==P||v.type!==ne||v.exclamationToken!==R||v.initializer!==Le?n(i_(P,R,ne,Le),v):v}function W1(v,P=0){let R=V(261);return R.flags|=P&7,R.declarations=z(v),R.transformFlags|=ka(R.declarations)|4194304,P&7&&(R.transformFlags|=263168),P&4&&(R.transformFlags|=4),R}function F6(v,P){return v.declarations!==P?n(W1(P,v.flags),v):v}function LT(v,P,R,ne,Le,Lt,sr){let rs=X(262);if(rs.modifiers=Ia(v),rs.asteriskToken=P,rs.name=Uc(R),rs.typeParameters=Ia(ne),rs.parameters=z(Le),rs.type=Lt,rs.body=sr,!rs.body||Vd(rs.modifiers)&128)rs.transformFlags=1;else{let Xa=Vd(rs.modifiers)&1024,Rf=!!rs.asteriskToken,Iy=Xa&&Rf;rs.transformFlags=ka(rs.modifiers)|ar(rs.asteriskToken)|ay(rs.name)|ka(rs.typeParameters)|ka(rs.parameters)|ar(rs.type)|ar(rs.body)&-67108865|(Iy?128:Xa?256:Rf?2048:0)|(rs.typeParameters||rs.type?1:0)|4194304}return rs.typeArguments=void 0,rs.jsDoc=void 0,rs.locals=void 0,rs.nextContainer=void 0,rs.endFlowNode=void 0,rs.returnFlowNode=void 0,rs}function hS(v,P,R,ne,Le,Lt,sr,rs){return v.modifiers!==P||v.asteriskToken!==R||v.name!==ne||v.typeParameters!==Le||v.parameters!==Lt||v.type!==sr||v.body!==rs?Eb(LT(P,R,ne,Le,Lt,sr,rs),v):v}function Eb(v,P){return v!==P&&v.modifiers===P.modifiers&&(v.modifiers=P.modifiers),J(v,P)}function U1(v,P,R,ne,Le){let Lt=X(263);return Lt.modifiers=Ia(v),Lt.name=Uc(P),Lt.typeParameters=Ia(R),Lt.heritageClauses=Ia(ne),Lt.members=z(Le),Vd(Lt.modifiers)&128?Lt.transformFlags=1:(Lt.transformFlags|=ka(Lt.modifiers)|ay(Lt.name)|ka(Lt.typeParameters)|ka(Lt.heritageClauses)|ka(Lt.members)|(Lt.typeParameters?1:0)|1024,Lt.transformFlags&8192&&(Lt.transformFlags|=1)),Lt.jsDoc=void 0,Lt}function yS(v,P,R,ne,Le,Lt){return v.modifiers!==P||v.name!==R||v.typeParameters!==ne||v.heritageClauses!==Le||v.members!==Lt?n(U1(P,R,ne,Le,Lt),v):v}function q1(v,P,R,ne,Le){let Lt=X(264);return Lt.modifiers=Ia(v),Lt.name=Uc(P),Lt.typeParameters=Ia(R),Lt.heritageClauses=Ia(ne),Lt.members=z(Le),Lt.transformFlags=1,Lt.jsDoc=void 0,Lt}function Fl(v,P,R,ne,Le,Lt){return v.modifiers!==P||v.name!==R||v.typeParameters!==ne||v.heritageClauses!==Le||v.members!==Lt?n(q1(P,R,ne,Le,Lt),v):v}function h0(v,P,R,ne){let Le=X(265);return Le.modifiers=Ia(v),Le.name=Uc(P),Le.typeParameters=Ia(R),Le.type=ne,Le.transformFlags=1,Le.jsDoc=void 0,Le.locals=void 0,Le.nextContainer=void 0,Le}function y0(v,P,R,ne,Le){return v.modifiers!==P||v.name!==R||v.typeParameters!==ne||v.type!==Le?n(h0(P,R,ne,Le),v):v}function Ig(v,P,R){let ne=X(266);return ne.modifiers=Ia(v),ne.name=Uc(P),ne.members=z(R),ne.transformFlags|=ka(ne.modifiers)|ar(ne.name)|ka(ne.members)|1,ne.transformFlags&=-67108865,ne.jsDoc=void 0,ne}function je(v,P,R,ne){return v.modifiers!==P||v.name!==R||v.members!==ne?n(Ig(P,R,ne),v):v}function Vl(v,P,R,ne=0){let Le=X(267);return Le.modifiers=Ia(v),Le.flags|=ne&2088,Le.name=P,Le.body=R,Vd(Le.modifiers)&128?Le.transformFlags=1:Le.transformFlags|=ka(Le.modifiers)|ar(Le.name)|ar(Le.body)|1,Le.transformFlags&=-67108865,Le.jsDoc=void 0,Le.locals=void 0,Le.nextContainer=void 0,Le}function Yf(v,P,R,ne){return v.modifiers!==P||v.name!==R||v.body!==ne?n(Vl(P,R,ne,v.flags),v):v}function Hu(v){let P=V(268);return P.statements=z(v),P.transformFlags|=ka(P.statements),P.jsDoc=void 0,P}function O6(v,P){return v.statements!==P?n(Hu(P),v):v}function v0(v){let P=V(269);return P.clauses=z(v),P.transformFlags|=ka(P.clauses),P.locals=void 0,P.nextContainer=void 0,P}function H1(v,P){return v.clauses!==P?n(v0(P),v):v}function Fg(v){let P=X(270);return P.name=Uc(v),P.transformFlags|=s8(P.name)|1,P.modifiers=void 0,P.jsDoc=void 0,P}function fD(v,P){return v.name!==P?ja(Fg(P),v):v}function ja(v,P){return v!==P&&(v.modifiers=P.modifiers),n(v,P)}function Td(v,P,R,ne){let Le=X(271);return Le.modifiers=Ia(v),Le.name=Uc(R),Le.isTypeOnly=P,Le.moduleReference=ne,Le.transformFlags|=ka(Le.modifiers)|s8(Le.name)|ar(Le.moduleReference),Bm(Le.moduleReference)||(Le.transformFlags|=1),Le.transformFlags&=-67108865,Le.jsDoc=void 0,Le}function vS(v,P,R,ne,Le){return v.modifiers!==P||v.isTypeOnly!==R||v.name!==ne||v.moduleReference!==Le?n(Td(P,R,ne,Le),v):v}function bS(v,P,R,ne){let Le=V(272);return Le.modifiers=Ia(v),Le.importClause=P,Le.moduleSpecifier=R,Le.attributes=Le.assertClause=ne,Le.transformFlags|=ar(Le.importClause)|ar(Le.moduleSpecifier),Le.transformFlags&=-67108865,Le.jsDoc=void 0,Le}function Db(v,P,R,ne,Le){return v.modifiers!==P||v.importClause!==R||v.moduleSpecifier!==ne||v.attributes!==Le?n(bS(P,R,ne,Le),v):v}function Pb(v,P,R){let ne=X(273);return ne.isTypeOnly=v,ne.name=P,ne.namedBindings=R,ne.transformFlags|=ar(ne.name)|ar(ne.namedBindings),v&&(ne.transformFlags|=1),ne.transformFlags&=-67108865,ne}function Pp(v,P,R,ne){return v.isTypeOnly!==P||v.name!==R||v.namedBindings!==ne?n(Pb(P,R,ne),v):v}function kd(v,P){let R=V(300);return R.elements=z(v),R.multiLine=P,R.token=132,R.transformFlags|=4,R}function Og(v,P,R){return v.elements!==P||v.multiLine!==R?n(kd(P,R),v):v}function SS(v,P){let R=V(301);return R.name=v,R.value=P,R.transformFlags|=4,R}function tm(v,P,R){return v.name!==P||v.value!==R?n(SS(P,R),v):v}function xS(v,P){let R=V(302);return R.assertClause=v,R.multiLine=P,R}function L6(v,P,R){return v.assertClause!==P||v.multiLine!==R?n(xS(P,R),v):v}function Ti(v,P,R){let ne=V(300);return ne.token=R??118,ne.elements=z(v),ne.multiLine=P,ne.transformFlags|=4,ne}function Hr(v,P,R){return v.elements!==P||v.multiLine!==R?n(Ti(P,R,v.token),v):v}function nm(v,P){let R=V(301);return R.name=v,R.value=P,R.transformFlags|=4,R}function P_(v,P,R){return v.name!==P||v.value!==R?n(nm(P,R),v):v}function M6(v){let P=X(274);return P.name=v,P.transformFlags|=ar(P.name),P.transformFlags&=-67108865,P}function b0(v,P){return v.name!==P?n(M6(P),v):v}function R6(v){let P=X(280);return P.name=v,P.transformFlags|=ar(P.name)|32,P.transformFlags&=-67108865,P}function wb(v,P){return v.name!==P?n(R6(P),v):v}function bc(v){let P=V(275);return P.elements=z(v),P.transformFlags|=ka(P.elements),P.transformFlags&=-67108865,P}function Gu(v,P){return v.elements!==P?n(bc(P),v):v}function gh(v,P,R){let ne=X(276);return ne.isTypeOnly=v,ne.propertyName=P,ne.name=R,ne.transformFlags|=ar(ne.propertyName)|ar(ne.name),ne.transformFlags&=-67108865,ne}function Gm(v,P,R,ne){return v.isTypeOnly!==P||v.propertyName!==R||v.name!==ne?n(gh(P,R,ne),v):v}function Lg(v,P,R){let ne=X(277);return ne.modifiers=Ia(v),ne.isExportEquals=P,ne.expression=P?i().parenthesizeRightSideOfBinary(64,void 0,R):i().parenthesizeExpressionOfExportDefault(R),ne.transformFlags|=ka(ne.modifiers)|ar(ne.expression),ne.transformFlags&=-67108865,ne.jsDoc=void 0,ne}function nd(v,P,R){return v.modifiers!==P||v.expression!==R?n(Lg(P,v.isExportEquals,R),v):v}function G1(v,P,R,ne,Le){let Lt=X(278);return Lt.modifiers=Ia(v),Lt.isTypeOnly=P,Lt.exportClause=R,Lt.moduleSpecifier=ne,Lt.attributes=Lt.assertClause=Le,Lt.transformFlags|=ka(Lt.modifiers)|ar(Lt.exportClause)|ar(Lt.moduleSpecifier),Lt.transformFlags&=-67108865,Lt.jsDoc=void 0,Lt}function Mg(v,P,R,ne,Le,Lt){return v.modifiers!==P||v.isTypeOnly!==R||v.exportClause!==ne||v.moduleSpecifier!==Le||v.attributes!==Lt?j6(G1(P,R,ne,Le,Lt),v):v}function j6(v,P){return v!==P&&v.modifiers===P.modifiers&&(v.modifiers=P.modifiers),n(v,P)}function $m(v){let P=V(279);return P.elements=z(v),P.transformFlags|=ka(P.elements),P.transformFlags&=-67108865,P}function B6(v,P){return v.elements!==P?n($m(P),v):v}function rm(v,P,R){let ne=V(281);return ne.isTypeOnly=v,ne.propertyName=Uc(P),ne.name=Uc(R),ne.transformFlags|=ar(ne.propertyName)|ar(ne.name),ne.transformFlags&=-67108865,ne.jsDoc=void 0,ne}function Xm(v,P,R,ne){return v.isTypeOnly!==P||v.propertyName!==R||v.name!==ne?n(rm(P,R,ne),v):v}function S0(){let v=X(282);return v.jsDoc=void 0,v}function J6(v){let P=V(283);return P.expression=v,P.transformFlags|=ar(P.expression),P.transformFlags&=-67108865,P}function MT(v,P){return v.expression!==P?n(J6(P),v):v}function pD(v){return V(v)}function RT(v,P,R=!1){let ne=fo(v,R?P&&i().parenthesizeNonArrayTypeOfPostfixType(P):P);return ne.postfix=R,ne}function fo(v,P){let R=V(v);return R.type=P,R}function Ab(v,P,R){return P.type!==R?n(RT(v,R,P.postfix),P):P}function jT(v,P,R){return P.type!==R?n(fo(v,R),P):P}function wp(v,P){let R=X(324);return R.parameters=Ia(v),R.type=P,R.transformFlags=ka(R.parameters)|(R.type?1:0),R.jsDoc=void 0,R.locals=void 0,R.nextContainer=void 0,R.typeArguments=void 0,R}function $1(v,P,R){return v.parameters!==P||v.type!==R?n(wp(P,R),v):v}function BT(v,P=!1){let R=X(329);return R.jsDocPropertyTags=Ia(v),R.isArrayType=P,R}function dD(v,P,R){return v.jsDocPropertyTags!==P||v.isArrayType!==R?n(BT(P,R),v):v}function TS(v){let P=V(316);return P.type=v,P}function rr(v,P){return v.type!==P?n(TS(P),v):v}function ru(v,P,R){let ne=X(330);return ne.typeParameters=Ia(v),ne.parameters=z(P),ne.type=R,ne.jsDoc=void 0,ne.locals=void 0,ne.nextContainer=void 0,ne}function ns(v,P,R,ne){return v.typeParameters!==P||v.parameters!==R||v.type!==ne?n(ru(P,R,ne),v):v}function y_(v){let P=NV(v.kind);return v.tagName.escapedText===Yo(P)?v.tagName:Se(P)}function im(v,P,R){let ne=V(v);return ne.tagName=P,ne.comment=R,ne}function Ap(v,P,R){let ne=X(v);return ne.tagName=P,ne.comment=R,ne}function Hn(v,P,R,ne){let Le=im(352,v??Se("template"),ne);return Le.constraint=P,Le.typeParameters=z(R),Le}function Nb(v,P=y_(v),R,ne,Le){return v.tagName!==P||v.constraint!==R||v.typeParameters!==ne||v.comment!==Le?n(Hn(P,R,ne,Le),v):v}function X1(v,P,R,ne){let Le=Ap(353,v??Se("typedef"),ne);return Le.typeExpression=P,Le.fullName=R,Le.name=gW(R),Le.locals=void 0,Le.nextContainer=void 0,Le}function El(v,P=y_(v),R,ne,Le){return v.tagName!==P||v.typeExpression!==R||v.fullName!==ne||v.comment!==Le?n(X1(P,R,ne,Le),v):v}function sm(v,P,R,ne,Le,Lt){let sr=Ap(348,v??Se("param"),Lt);return sr.typeExpression=ne,sr.name=P,sr.isNameFirst=!!Le,sr.isBracketed=R,sr}function am(v,P=y_(v),R,ne,Le,Lt,sr){return v.tagName!==P||v.name!==R||v.isBracketed!==ne||v.typeExpression!==Le||v.isNameFirst!==Lt||v.comment!==sr?n(sm(P,R,ne,Le,Lt,sr),v):v}function Sy(v,P,R,ne,Le,Lt){let sr=Ap(355,v??Se("prop"),Lt);return sr.typeExpression=ne,sr.name=P,sr.isNameFirst=!!Le,sr.isBracketed=R,sr}function JT(v,P=y_(v),R,ne,Le,Lt,sr){return v.tagName!==P||v.name!==R||v.isBracketed!==ne||v.typeExpression!==Le||v.isNameFirst!==Lt||v.comment!==sr?n(Sy(P,R,ne,Le,Lt,sr),v):v}function hh(v,P,R,ne){let Le=Ap(345,v??Se("callback"),ne);return Le.typeExpression=P,Le.fullName=R,Le.name=gW(R),Le.locals=void 0,Le.nextContainer=void 0,Le}function Q1(v,P=y_(v),R,ne,Le){return v.tagName!==P||v.typeExpression!==R||v.fullName!==ne||v.comment!==Le?n(hh(P,R,ne,Le),v):v}function Y1(v,P,R){let ne=im(346,v??Se("overload"),R);return ne.typeExpression=P,ne}function Rg(v,P=y_(v),R,ne){return v.tagName!==P||v.typeExpression!==R||v.comment!==ne?n(Y1(P,R,ne),v):v}function Qm(v,P,R){let ne=im(335,v??Se("augments"),R);return ne.class=P,ne}function kS(v,P=y_(v),R,ne){return v.tagName!==P||v.class!==R||v.comment!==ne?n(Qm(P,R,ne),v):v}function yh(v,P,R){let ne=im(336,v??Se("implements"),R);return ne.class=P,ne}function xy(v,P,R){let ne=im(354,v??Se("see"),R);return ne.name=P,ne}function Ib(v,P,R,ne){return v.tagName!==P||v.name!==R||v.comment!==ne?n(xy(P,R,ne),v):v}function zT(v){let P=V(317);return P.name=v,P}function CS(v,P){return v.name!==P?n(zT(P),v):v}function Fb(v,P){let R=V(318);return R.left=v,R.right=P,R.transformFlags|=ar(R.left)|ar(R.right),R}function Zf(v,P,R){return v.left!==P||v.right!==R?n(Fb(P,R),v):v}function Z1(v,P){let R=V(331);return R.name=v,R.text=P,R}function Oc(v,P,R){return v.name!==P?n(Z1(P,R),v):v}function yl(v,P){let R=V(332);return R.name=v,R.text=P,R}function VT(v,P,R){return v.name!==P?n(yl(P,R),v):v}function mu(v,P){let R=V(333);return R.name=v,R.text=P,R}function w_(v,P,R){return v.name!==P?n(mu(P,R),v):v}function Ob(v,P=y_(v),R,ne){return v.tagName!==P||v.class!==R||v.comment!==ne?n(yh(P,R,ne),v):v}function Kf(v,P,R){return im(v,P??Se(NV(v)),R)}function K1(v,P,R=y_(P),ne){return P.tagName!==R||P.comment!==ne?n(Kf(v,R,ne),P):P}function x0(v,P,R,ne){let Le=im(v,P??Se(NV(v)),ne);return Le.typeExpression=R,Le}function Wl(v,P,R=y_(P),ne,Le){return P.tagName!==R||P.typeExpression!==ne||P.comment!==Le?n(x0(v,R,ne,Le),P):P}function ES(v,P){return im(334,v,P)}function Np(v,P,R){return v.tagName!==P||v.comment!==R?n(ES(P,R),v):v}function Ty(v,P,R){let ne=Ap(347,v??Se(NV(347)),R);return ne.typeExpression=P,ne.locals=void 0,ne.nextContainer=void 0,ne}function z6(v,P=y_(v),R,ne){return v.tagName!==P||v.typeExpression!==R||v.comment!==ne?n(Ty(P,R,ne),v):v}function yo(v){let P=V(328);return P.text=v,P}function V6(v,P){return v.text!==P?n(yo(P),v):v}function DS(v,P){let R=V(327);return R.comment=v,R.tags=Ia(P),R}function ev(v,P,R){return v.comment!==P||v.tags!==R?n(DS(P,R),v):v}function WT(v,P,R){let ne=V(284);return ne.openingElement=v,ne.children=z(P),ne.closingElement=R,ne.transformFlags|=ar(ne.openingElement)|ka(ne.children)|ar(ne.closingElement)|2,ne}function s_(v,P,R,ne){return v.openingElement!==P||v.children!==R||v.closingElement!==ne?n(WT(P,R,ne),v):v}function jg(v,P,R){let ne=V(285);return ne.tagName=v,ne.typeArguments=Ia(P),ne.attributes=R,ne.transformFlags|=ar(ne.tagName)|ka(ne.typeArguments)|ar(ne.attributes)|2,ne.typeArguments&&(ne.transformFlags|=1),ne}function vh(v,P,R,ne){return v.tagName!==P||v.typeArguments!==R||v.attributes!==ne?n(jg(P,R,ne),v):v}function Lb(v,P,R){let ne=V(286);return ne.tagName=v,ne.typeArguments=Ia(P),ne.attributes=R,ne.transformFlags|=ar(ne.tagName)|ka(ne.typeArguments)|ar(ne.attributes)|2,P&&(ne.transformFlags|=1),ne}function cf(v,P,R,ne){return v.tagName!==P||v.typeArguments!==R||v.attributes!==ne?n(Lb(P,R,ne),v):v}function UT(v){let P=V(287);return P.tagName=v,P.transformFlags|=ar(P.tagName)|2,P}function ky(v,P){return v.tagName!==P?n(UT(P),v):v}function Of(v,P,R){let ne=V(288);return ne.openingFragment=v,ne.children=z(P),ne.closingFragment=R,ne.transformFlags|=ar(ne.openingFragment)|ka(ne.children)|ar(ne.closingFragment)|2,ne}function Mb(v,P,R,ne){return v.openingFragment!==P||v.children!==R||v.closingFragment!==ne?n(Of(P,R,ne),v):v}function T0(v,P){let R=V(12);return R.text=v,R.containsOnlyTriviaWhiteSpaces=!!P,R.transformFlags|=2,R}function mD(v,P,R){return v.text!==P||v.containsOnlyTriviaWhiteSpaces!==R?n(T0(P,R),v):v}function qT(){let v=V(289);return v.transformFlags|=2,v}function HT(){let v=V(290);return v.transformFlags|=2,v}function GT(v,P){let R=X(291);return R.name=v,R.initializer=P,R.transformFlags|=ar(R.name)|ar(R.initializer)|2,R}function tv(v,P,R){return v.name!==P||v.initializer!==R?n(GT(P,R),v):v}function q_(v){let P=X(292);return P.properties=z(v),P.transformFlags|=ka(P.properties)|2,P}function Bg(v,P){return v.properties!==P?n(q_(P),v):v}function $T(v){let P=V(293);return P.expression=v,P.transformFlags|=ar(P.expression)|2,P}function XT(v,P){return v.expression!==P?n($T(P),v):v}function Ba(v,P){let R=V(294);return R.dotDotDotToken=v,R.expression=P,R.transformFlags|=ar(R.dotDotDotToken)|ar(R.expression)|2,R}function fr(v,P){return v.expression!==P?n(Ba(v.dotDotDotToken,P),v):v}function lf(v,P){let R=V(295);return R.namespace=v,R.name=P,R.transformFlags|=ar(R.namespace)|ar(R.name)|2,R}function v_(v,P,R){return v.namespace!==P||v.name!==R?n(lf(P,R),v):v}function Rb(v,P){let R=V(296);return R.expression=i().parenthesizeExpressionForDisallowedComma(v),R.statements=z(P),R.transformFlags|=ar(R.expression)|ka(R.statements),R.jsDoc=void 0,R}function W6(v,P,R){return v.expression!==P||v.statements!==R?n(Rb(P,R),v):v}function nv(v){let P=V(297);return P.statements=z(v),P.transformFlags=ka(P.statements),P}function jb(v,P){return v.statements!==P?n(nv(P),v):v}function Cy(v,P){let R=V(298);switch(R.token=v,R.types=z(P),R.transformFlags|=ka(R.types),v){case 96:R.transformFlags|=1024;break;case 119:R.transformFlags|=1;break;default:return E.assertNever(v)}return R}function Lf(v,P){return v.types!==P?n(Cy(v.token,P),v):v}function Ip(v,P){let R=V(299);return R.variableDeclaration=ZT(v),R.block=P,R.transformFlags|=ar(R.variableDeclaration)|ar(R.block)|(v?0:64),R.locals=void 0,R.nextContainer=void 0,R}function Ey(v,P,R){return v.variableDeclaration!==P||v.block!==R?n(Ip(P,R),v):v}function rd(v,P){let R=X(303);return R.name=Uc(v),R.initializer=i().parenthesizeExpressionForDisallowedComma(P),R.transformFlags|=ay(R.name)|ar(R.initializer),R.modifiers=void 0,R.questionToken=void 0,R.exclamationToken=void 0,R.jsDoc=void 0,R}function Fp(v,P,R){return v.name!==P||v.initializer!==R?k0(rd(P,R),v):v}function k0(v,P){return v!==P&&(v.modifiers=P.modifiers,v.questionToken=P.questionToken,v.exclamationToken=P.exclamationToken),n(v,P)}function Bb(v,P){let R=X(304);return R.name=Uc(v),R.objectAssignmentInitializer=P&&i().parenthesizeExpressionForDisallowedComma(P),R.transformFlags|=s8(R.name)|ar(R.objectAssignmentInitializer)|1024,R.equalsToken=void 0,R.modifiers=void 0,R.questionToken=void 0,R.exclamationToken=void 0,R.jsDoc=void 0,R}function Wc(v,P,R){return v.name!==P||v.objectAssignmentInitializer!==R?gD(Bb(P,R),v):v}function gD(v,P){return v!==P&&(v.modifiers=P.modifiers,v.questionToken=P.questionToken,v.exclamationToken=P.exclamationToken,v.equalsToken=P.equalsToken),n(v,P)}function ep(v){let P=X(305);return P.expression=i().parenthesizeExpressionForDisallowedComma(v),P.transformFlags|=ar(P.expression)|128|65536,P.jsDoc=void 0,P}function U6(v,P){return v.expression!==P?n(ep(P),v):v}function gu(v,P){let R=X(306);return R.name=Uc(v),R.initializer=P&&i().parenthesizeExpressionForDisallowedComma(P),R.transformFlags|=ar(R.name)|ar(R.initializer)|1,R.jsDoc=void 0,R}function rv(v,P,R){return v.name!==P||v.initializer!==R?n(gu(P,R),v):v}function Jb(v,P,R){let ne=t.createBaseSourceFileNode(312);return ne.statements=z(v),ne.endOfFileToken=P,ne.flags|=R,ne.text="",ne.fileName="",ne.path="",ne.resolvedPath="",ne.originalFileName="",ne.languageVersion=0,ne.languageVariant=0,ne.scriptKind=0,ne.isDeclarationFile=!1,ne.hasNoDefaultLib=!1,ne.transformFlags|=ka(ne.statements)|ar(ne.endOfFileToken),ne.locals=void 0,ne.nextContainer=void 0,ne.endFlowNode=void 0,ne.nodeCount=0,ne.identifierCount=0,ne.symbolCount=0,ne.parseDiagnostics=void 0,ne.bindDiagnostics=void 0,ne.bindSuggestionDiagnostics=void 0,ne.lineMap=void 0,ne.externalModuleIndicator=void 0,ne.setExternalModuleIndicator=void 0,ne.pragmas=void 0,ne.checkJsDirective=void 0,ne.referencedFiles=void 0,ne.typeReferenceDirectives=void 0,ne.libReferenceDirectives=void 0,ne.amdDependencies=void 0,ne.commentDirectives=void 0,ne.identifiers=void 0,ne.packageJsonLocations=void 0,ne.packageJsonScope=void 0,ne.imports=void 0,ne.moduleAugmentations=void 0,ne.ambientModuleNames=void 0,ne.classifiableNames=void 0,ne.impliedNodeFormat=void 0,ne}function PS(v){let P=Object.create(v.redirectTarget);return Object.defineProperties(P,{id:{get(){return this.redirectInfo.redirectTarget.id},set(R){this.redirectInfo.redirectTarget.id=R}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(R){this.redirectInfo.redirectTarget.symbol=R}}}),P.redirectInfo=v,P}function q6(v){let P=PS(v.redirectInfo);return P.flags|=v.flags&-17,P.fileName=v.fileName,P.path=v.path,P.resolvedPath=v.resolvedPath,P.originalFileName=v.originalFileName,P.packageJsonLocations=v.packageJsonLocations,P.packageJsonScope=v.packageJsonScope,P.emitNode=void 0,P}function tp(v){let P=t.createBaseSourceFileNode(312);P.flags|=v.flags&-17;for(let R in v)if(!(so(P,R)||!so(v,R))){if(R==="emitNode"){P.emitNode=void 0;continue}P[R]=v[R]}return P}function ac(v){let P=v.redirectInfo?q6(v):tp(v);return or(P,v),P}function om(v,P,R,ne,Le,Lt,sr){let rs=ac(v);return rs.statements=z(P),rs.isDeclarationFile=R,rs.referencedFiles=ne,rs.typeReferenceDirectives=Le,rs.hasNoDefaultLib=Lt,rs.libReferenceDirectives=sr,rs.transformFlags=ka(rs.statements)|ar(rs.endOfFileToken),rs}function Dy(v,P,R=v.isDeclarationFile,ne=v.referencedFiles,Le=v.typeReferenceDirectives,Lt=v.hasNoDefaultLib,sr=v.libReferenceDirectives){return v.statements!==P||v.isDeclarationFile!==R||v.referencedFiles!==ne||v.typeReferenceDirectives!==Le||v.hasNoDefaultLib!==Lt||v.libReferenceDirectives!==sr?n(om(v,P,R,ne,Le,Lt,sr),v):v}function Jg(v,P=Ve){let R=V(313);return R.prepends=P,R.sourceFiles=v,R.syntheticFileReferences=void 0,R.syntheticTypeReferences=void 0,R.syntheticLibReferences=void 0,R.hasNoDefaultLib=void 0,R}function iv(v,P,R=Ve){return v.sourceFiles!==P||v.prepends!==R?n(Jg(P,R),v):v}function H6(v,P,R){let ne=V(314);return ne.prologues=v,ne.syntheticReferences=P,ne.texts=R,ne.fileName="",ne.text="",ne.referencedFiles=Ve,ne.libReferenceDirectives=Ve,ne.getLineAndCharacterOfPosition=Le=>Ka(ne,Le),ne}function Py(v,P){let R=V(v);return R.data=P,R}function k(v){return Py(307,v)}function te(v,P){let R=Py(308,v);return R.texts=P,R}function ct(v,P){return Py(P?310:309,v)}function $t(v){let P=V(311);return P.data=v.data,P.section=v,P}function hr(){let v=V(315);return v.javascriptText="",v.declarationText="",v}function xi(v,P=!1,R){let ne=V(237);return ne.type=v,ne.isSpread=P,ne.tupleNameSource=R,ne}function ai(v){let P=V(358);return P._children=v,P}function zi(v){let P=V(359);return P.original=v,nt(P,v),P}function Ls(v,P){let R=V(360);return R.expression=v,R.original=P,R.transformFlags|=ar(R.expression)|1,nt(R,P),R}function A_(v,P){return v.expression!==P?n(Ls(P,v.original),v):v}function H_(v){if(Ro(v)&&!z4(v)&&!v.original&&!v.emitNode&&!v.id){if(KE(v))return v.elements;if(Yn(v)&&ure(v.operatorToken))return[v.left,v.right]}return v}function ci(v){let P=V(361);return P.elements=z(QZ(v,H_)),P.transformFlags|=ka(P.elements),P}function cm(v,P){return v.elements!==P?n(ci(P),v):v}function hn(v,P){let R=V(362);return R.expression=v,R.thisArg=P,R.transformFlags|=ar(R.expression)|ar(R.thisArg),R}function wy(v,P,R){return v.expression!==P||v.thisArg!==R?n(hn(P,R),v):v}function C0(v){let P=K(v.escapedText);return P.flags|=v.flags&-17,P.transformFlags=v.transformFlags,or(P,v),u8(P,{...v.emitNode.autoGenerate}),P}function wS(v){let P=K(v.escapedText);P.flags|=v.flags&-17,P.jsDoc=v.jsDoc,P.flowNode=v.flowNode,P.symbol=v.symbol,P.transformFlags=v.transformFlags,or(P,v);let R=M2(v);return R&&e0(P,R),P}function sv(v){let P=Me(v.escapedText);return P.flags|=v.flags&-17,P.transformFlags=v.transformFlags,or(P,v),u8(P,{...v.emitNode.autoGenerate}),P}function QT(v){let P=Me(v.escapedText);return P.flags|=v.flags&-17,P.transformFlags=v.transformFlags,or(P,v),P}function AS(v){if(v===void 0)return v;if(Li(v))return ac(v);if(Lo(v))return C0(v);if(Ie(v))return wS(v);if(d2(v))return sv(v);if(Di(v))return QT(v);let P=LP(v.kind)?t.createBaseNode(v.kind):t.createBaseTokenNode(v.kind);P.flags|=v.flags&-17,P.transformFlags=v.transformFlags,or(P,v);for(let R in v)so(P,R)||!so(v,R)||(P[R]=v[R]);return P}function Ym(v,P,R){return Ln(Nf(void 0,void 0,void 0,void 0,P?[P]:[],void 0,Za(v,!0)),void 0,R?[R]:[])}function E0(v,P,R){return Ln($f(void 0,void 0,P?[P]:[],void 0,void 0,Za(v,!0)),void 0,R?[R]:[])}function zg(){return V_(ie("0"))}function G6(v){return Lg(void 0,!1,v)}function YT(v){return G1(void 0,!1,$m([rm(!1,void 0,v)]))}function JN(v,P){return P==="null"?O.createStrictEquality(v,at()):P==="undefined"?O.createStrictEquality(v,zg()):O.createStrictEquality(du(v),ae(P))}function hD(v,P){return P==="null"?O.createStrictInequality(v,at()):P==="undefined"?O.createStrictInequality(v,zg()):O.createStrictInequality(du(v),ae(P))}function Zm(v,P,R){return p2(v)?Os(ro(v,void 0,P),void 0,void 0,R):Ln(_o(v,P),void 0,R)}function bh(v,P,R){return Zm(v,"bind",[P,...R])}function $6(v,P,R){return Zm(v,"call",[P,...R])}function Km(v,P,R){return Zm(v,"apply",[P,R])}function av(v,P,R){return Zm(Se(v),P,R)}function aR(v,P){return Zm(v,"slice",P===void 0?[]:[Ny(P)])}function lm(v,P){return Zm(v,"concat",P)}function NS(v,P,R){return av("Object","defineProperty",[v,Ny(P),R])}function zN(v,P){return av("Object","getOwnPropertyDescriptor",[v,Ny(P)])}function q(v,P,R){return av("Reflect","get",R?[v,P,R]:[v,P])}function ge(v,P,R,ne){return av("Reflect","set",ne?[v,P,R,ne]:[v,P,R])}function Ae(v,P,R){return R?(v.push(rd(P,R)),!0):!1}function tt(v,P){let R=[];Ae(R,"enumerable",Ny(v.enumerable)),Ae(R,"configurable",Ny(v.configurable));let ne=Ae(R,"writable",Ny(v.writable));ne=Ae(R,"value",v.value)||ne;let Le=Ae(R,"get",v.get);return Le=Ae(R,"set",v.set)||Le,E.assert(!(ne&&Le),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ea(R,!P)}function Nt(v,P){switch(v.kind){case 217:return Ep(v,P);case 216:return pc(v,v.type,P);case 234:return xt(v,P,v.type);case 238:return sn(v,P,v.type);case 235:return nn(v,P);case 360:return A_(v,P)}}function rn(v){return C_(v)&&Ro(v)&&Ro(y1(v))&&Ro(Ud(v))&&!ft(yC(v))&&!ft(l8(v))}function kr(v,P,R=15){return v&&dO(v,R)&&!rn(v)?Nt(v,kr(v.expression,P)):P}function vi(v,P,R){if(!P)return v;let ne=I6(P,P.label,eb(P.statement)?vi(v,P.statement):v);return R&&R(P),ne}function fi(v,P){let R=eo(v);switch(R.kind){case 80:return P;case 110:case 9:case 10:case 11:return!1;case 209:return R.elements.length!==0;case 210:return R.properties.length>0;default:return!0}}function ti(v,P,R,ne=!1){let Le=wc(v,15),Lt,sr;return f_(Le)?(Lt=Qe(),sr=Le):GE(Le)?(Lt=Qe(),sr=R!==void 0&&R<2?nt(Se("_super"),Le):Le):Sa(Le)&8192?(Lt=zg(),sr=i().parenthesizeLeftSideOfAccess(Le,!1)):Cr(Le)?fi(Le.expression,ne)?(Lt=se(P),sr=_o(nt(O.createAssignment(Lt,Le.expression),Le.expression),Le.name),nt(sr,Le)):(Lt=Le.expression,sr=Le):ko(Le)?fi(Le.expression,ne)?(Lt=se(P),sr=Au(nt(O.createAssignment(Lt,Le.expression),Le.expression),Le.argumentExpression),nt(sr,Le)):(Lt=Le.expression,sr=Le):(Lt=zg(),sr=i().parenthesizeLeftSideOfAccess(v,!1)),{target:sr,thisArg:Lt}}function Ji(v,P){return _o(Vc(Ea([we(void 0,"value",[Lr(void 0,void 0,v,void 0,void 0,void 0)],Za([vy(P)]))])),"value")}function ao(v){return v.length>10?ci(v):Fu(v,O.createComma)}function Wa(v,P,R,ne=0,Le){let Lt=Le?v&&T7(v):us(v);if(Lt&&Ie(Lt)&&!Lo(Lt)){let sr=Ta(nt(AS(Lt),Lt),Lt.parent);return ne|=Sa(Lt),R||(ne|=96),P||(ne|=3072),ne&&$n(sr,ne),sr}return xe(v)}function Ja(v,P,R){return Wa(v,P,R,98304)}function np(v,P,R,ne){return Wa(v,P,R,32768,ne)}function id(v,P,R){return Wa(v,P,R,16384)}function Ay(v,P,R){return Wa(v,P,R)}function Vg(v,P,R,ne){let Le=_o(v,Ro(P)?P:AS(P));nt(Le,P);let Lt=0;return ne||(Lt|=96),R||(Lt|=3072),Lt&&$n(Le,Lt),Le}function Ol(v,P,R,ne){return v&&Mr(P,32)?Vg(v,Wa(P),R,ne):id(P,R,ne)}function Sh(v,P,R,ne){let Le=Q6(v,P,0,R);return vD(v,P,Le,ne)}function yD(v){return ca(v.expression)&&v.expression.text==="use strict"}function X6(){return Uu(vy(ae("use strict")))}function Q6(v,P,R=0,ne){E.assert(P.length===0,"Prologue directives should be at the first statement in the target statements array");let Le=!1,Lt=v.length;for(;Rrs&&Rf.splice(Le,0,...P.slice(rs,Xa)),rs>sr&&Rf.splice(ne,0,...P.slice(sr,rs)),sr>Lt&&Rf.splice(R,0,...P.slice(Lt,sr)),Lt>0)if(R===0)Rf.splice(0,0,...P.slice(0,Lt));else{let Iy=new Map;for(let Fy=0;Fy=0;Fy--){let ov=P[Fy];Iy.has(ov.expression.text)||Rf.unshift(ov)}}return wv(v)?nt(z(Rf,v.hasTrailingComma),v):v}function SD(v,P){let R;return typeof P=="number"?R=Jt(P):R=P,Ko(v)?Ft(v,R,v.name,v.constraint,v.default):ms(v)?ji(v,R,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):XE(v)?Wt(v,R,v.typeParameters,v.parameters,v.type):bf(v)?fn(v,R,v.name,v.questionToken,v.type):Is(v)?Sn(v,R,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):xg(v)?Kn(v,R,v.name,v.questionToken,v.typeParameters,v.parameters,v.type):kc(v)?Wi(v,R,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Cc(v)?Ue(v,R,v.parameters,v.body):Sf(v)?gt(v,R,v.name,v.parameters,v.type,v.body):j_(v)?Be(v,R,v.name,v.parameters,v.body):R2(v)?Dt(v,R,v.parameters,v.type):uo(v)?n_(v,R,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Co(v)?wg(v,R,v.typeParameters,v.parameters,v.type,v.equalsGreaterThanToken,v.body):Bl(v)?xd(v,R,v.name,v.typeParameters,v.heritageClauses,v.members):uc(v)?yy(v,R,v.declarationList):al(v)?hS(v,R,v.asteriskToken,v.name,v.typeParameters,v.parameters,v.type,v.body):Zc(v)?yS(v,R,v.name,v.typeParameters,v.heritageClauses,v.members):Wu(v)?Fl(v,R,v.name,v.typeParameters,v.heritageClauses,v.members):Xp(v)?y0(v,R,v.name,v.typeParameters,v.type):T1(v)?je(v,R,v.name,v.members):Pc(v)?Yf(v,R,v.name,v.body):Kl(v)?vS(v,R,v.isTypeOnly,v.name,v.moduleReference):kl(v)?Db(v,R,v.importClause,v.moduleSpecifier,v.attributes):hc(v)?nd(v,R,v.expression):Kc(v)?Mg(v,R,v.isTypeOnly,v.exportClause,v.moduleSpecifier,v.attributes):E.assertNever(v)}function rp(v,P){return ms(v)?ji(v,P,v.dotDotDotToken,v.name,v.questionToken,v.type,v.initializer):Is(v)?Sn(v,P,v.name,v.questionToken??v.exclamationToken,v.type,v.initializer):kc(v)?Wi(v,P,v.asteriskToken,v.name,v.questionToken,v.typeParameters,v.parameters,v.type,v.body):Sf(v)?gt(v,P,v.name,v.parameters,v.type,v.body):j_(v)?Be(v,P,v.name,v.parameters,v.body):Bl(v)?xd(v,P,v.name,v.typeParameters,v.heritageClauses,v.members):Zc(v)?yS(v,P,v.name,v.typeParameters,v.heritageClauses,v.members):E.assertNever(v)}function Y6(v,P){switch(v.kind){case 177:return gt(v,v.modifiers,P,v.parameters,v.type,v.body);case 178:return Be(v,v.modifiers,P,v.parameters,v.body);case 174:return Wi(v,v.modifiers,v.asteriskToken,P,v.questionToken,v.typeParameters,v.parameters,v.type,v.body);case 173:return Kn(v,v.modifiers,P,v.questionToken,v.typeParameters,v.parameters,v.type);case 172:return Sn(v,v.modifiers,P,v.questionToken??v.exclamationToken,v.type,v.initializer);case 171:return fn(v,v.modifiers,P,v.questionToken,v.type);case 303:return Fp(v,P,v.initializer)}}function Ia(v){return v?z(v):void 0}function Uc(v){return typeof v=="string"?Se(v):v}function Ny(v){return typeof v=="string"?ae(v):typeof v=="number"?ie(v):typeof v=="boolean"?v?ht():Je():v}function IS(v){return v&&i().parenthesizeExpressionForDisallowedComma(v)}function cR(v){return typeof v=="number"?me(v):v}function eg(v){return v&&KV(v)?nt(or(mh(),v),v):v}function ZT(v){return typeof v=="string"||v&&!Ni(v)?i_(v,void 0,void 0,void 0):v}}function tOe(e,t){return e!==t&&nt(e,t),e}function nOe(e,t){return e!==t&&(or(e,t),nt(e,t)),e}function NV(e){switch(e){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return E.fail(`Unsupported kind: ${E.formatSyntaxKind(e)}`)}}function rOe(e,t){switch(Kh||(Kh=Vh(99,!1,0)),e){case 15:Kh.setText("`"+t+"`");break;case 16:Kh.setText("`"+t+"${");break;case 17:Kh.setText("}"+t+"${");break;case 18:Kh.setText("}"+t+"`");break}let n=Kh.scan();if(n===20&&(n=Kh.reScanTemplateToken(!1)),Kh.isUnterminated())return Kh.setText(void 0),Yne;let i;switch(n){case 15:case 16:case 17:case 18:i=Kh.getTokenValue();break}return i===void 0||Kh.scan()!==1?(Kh.setText(void 0),Yne):(Kh.setText(void 0),i)}function ay(e){return e&&Ie(e)?s8(e):ar(e)}function s8(e){return ar(e)&-67108865}function iOe(e,t){return t|e.transformFlags&134234112}function ar(e){if(!e)return 0;let t=e.transformFlags&~Xne(e.kind);return Ru(e)&&Rc(e.name)?iOe(e.name,t):t}function ka(e){return e?e.transformFlags:0}function Xye(e){let t=0;for(let n of e)t|=ar(n);e.transformFlags=t}function Xne(e){if(e>=182&&e<=205)return-2;switch(e){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function gF(e){return e.flags|=16,e}function IV(e,t,n){let i,s,o,c,u,f,g,p,y,S;os(e)?(o="",c=e,u=e.length,f=t,g=n):(E.assert(t==="js"||t==="dts"),o=(t==="js"?e.javascriptPath:e.declarationPath)||"",f=t==="js"?e.javascriptMapPath:e.declarationMapPath,p=()=>t==="js"?e.javascriptText:e.declarationText,y=()=>t==="js"?e.javascriptMapText:e.declarationMapText,u=()=>p().length,e.buildInfo&&e.buildInfo.bundle&&(E.assert(n===void 0||typeof n=="boolean"),i=n,s=t==="js"?e.buildInfo.bundle.js:e.buildInfo.bundle.dts,S=e.oldFileOfCurrentEmit));let x=S?aOe(E.checkDefined(s)):sOe(s,i,u);return x.fileName=o,x.sourceMapPath=f,x.oldFileOfCurrentEmit=S,p&&y?(Object.defineProperty(x,"text",{get:p}),Object.defineProperty(x,"sourceMapText",{get:y})):(E.assert(!S),x.text=c??"",x.sourceMapText=g),x}function sOe(e,t,n){let i,s,o,c,u,f,g,p;for(let S of e?e.sections:Ve)switch(S.kind){case"prologue":i=_n(i,nt(I.createUnparsedPrologue(S.data),S));break;case"emitHelpers":s=_n(s,zV().get(S.data));break;case"no-default-lib":p=!0;break;case"reference":o=_n(o,{pos:-1,end:-1,fileName:S.data});break;case"type":c=_n(c,{pos:-1,end:-1,fileName:S.data});break;case"type-import":c=_n(c,{pos:-1,end:-1,fileName:S.data,resolutionMode:99});break;case"type-require":c=_n(c,{pos:-1,end:-1,fileName:S.data,resolutionMode:1});break;case"lib":u=_n(u,{pos:-1,end:-1,fileName:S.data});break;case"prepend":let x;for(let C of S.texts)(!t||C.kind!=="internal")&&(x=_n(x,nt(I.createUnparsedTextLike(C.data,C.kind==="internal"),C)));f=Nr(f,x),g=_n(g,I.createUnparsedPrepend(S.data,x??Ve));break;case"internal":if(t){g||(g=[]);break}case"text":g=_n(g,nt(I.createUnparsedTextLike(S.data,S.kind==="internal"),S));break;default:E.assertNever(S)}if(!g){let S=I.createUnparsedTextLike(void 0,!1);LE(S,0,typeof n=="function"?n():n),g=[S]}let y=Jm.createUnparsedSource(i??Ve,void 0,g);return dC(i,y),dC(g,y),dC(f,y),y.hasNoDefaultLib=p,y.helpers=s,y.referencedFiles=o||Ve,y.typeReferenceDirectives=c,y.libReferenceDirectives=u||Ve,y}function aOe(e){let t,n;for(let s of e.sections)switch(s.kind){case"internal":case"text":t=_n(t,nt(I.createUnparsedTextLike(s.data,s.kind==="internal"),s));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":n=_n(n,nt(I.createUnparsedSyntheticReference(s),s));break;case"prologue":case"emitHelpers":case"prepend":break;default:E.assertNever(s)}let i=I.createUnparsedSource(Ve,n,t??Ve);return dC(n,i),dC(t,i),i.helpers=Kt(e.sources&&e.sources.helpers,s=>zV().get(s)),i}function Qye(e,t,n,i,s,o){return os(e)?OV(void 0,e,n,i,void 0,t,s,o):FV(e,t,n,i,s,o)}function FV(e,t,n,i,s,o,c,u){let f=Jm.createInputFiles();f.javascriptPath=t,f.javascriptMapPath=n,f.declarationPath=i,f.declarationMapPath=s,f.buildInfoPath=o;let g=new Map,p=C=>{if(C===void 0)return;let w=g.get(C);return w===void 0&&(w=e(C),g.set(C,w!==void 0?w:!1)),w!==!1?w:void 0},y=C=>{let w=p(C);return w!==void 0?w:`/* Input file ${C} was missing */\r -`},S;return Object.defineProperties(f,{javascriptText:{get:()=>y(t)},javascriptMapText:{get:()=>p(n)},declarationText:{get:()=>y(E.checkDefined(i))},declarationMapText:{get:()=>p(s)},buildInfo:{get:()=>{if(S===void 0&&o)if(c?.getBuildInfo)S=c.getBuildInfo(o,u.configFilePath)??!1;else{let C=p(o);S=C!==void 0?u9(o,C)??!1:!1}return S||void 0}}}),f}function OV(e,t,n,i,s,o,c,u,f,g,p){let y=Jm.createInputFiles();return y.javascriptPath=e,y.javascriptText=t,y.javascriptMapPath=n,y.javascriptMapText=i,y.declarationPath=s,y.declarationText=o,y.declarationMapPath=c,y.declarationMapText=u,y.buildInfoPath=f,y.buildInfo=g,y.oldFileOfCurrentEmit=p,y}function Yye(e,t,n){return new(Kye||(Kye=jl.getSourceMapSourceConstructor()))(e,t,n)}function or(e,t){if(e.original!==t&&(e.original=t,t)){let n=t.emitNode;n&&(e.emitNode=oOe(n,e.emitNode))}return e}function oOe(e,t){let{flags:n,internalFlags:i,leadingComments:s,trailingComments:o,commentRange:c,sourceMapRange:u,tokenSourceMapRanges:f,constantValue:g,helpers:p,startsOnNewLine:y,snippetElement:S,classThis:x,assignedName:C}=e;if(t||(t={}),n&&(t.flags=n),i&&(t.internalFlags=i&-9),s&&(t.leadingComments=Nr(s.slice(),t.leadingComments)),o&&(t.trailingComments=Nr(o.slice(),t.trailingComments)),c&&(t.commentRange=c),u&&(t.sourceMapRange=u),f&&(t.tokenSourceMapRanges=cOe(f,t.tokenSourceMapRanges)),g!==void 0&&(t.constantValue=g),p)for(let w of p)t.helpers=Xg(t.helpers,w);return y!==void 0&&(t.startsOnNewLine=y),S!==void 0&&(t.snippetElement=S),x&&(t.classThis=x),C&&(t.assignedName=C),t}function cOe(e,t){t||(t=[]);for(let n in e)t[n]=e[n];return t}var hF,LV,Qne,Kh,Yne,a8,Zye,I,Kye,lOe=ze({"src/compiler/factory/nodeFactory.ts"(){"use strict";Rs(),hF=0,LV=(e=>(e[e.None=0]="None",e[e.NoParenthesizerRules=1]="NoParenthesizerRules",e[e.NoNodeConverters=2]="NoNodeConverters",e[e.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",e[e.NoOriginalNode=8]="NoOriginalNode",e))(LV||{}),Qne=[],Yne={},a8=Hne(),Zye={createBaseSourceFileNode:e=>gF(a8.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>gF(a8.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>gF(a8.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>gF(a8.createBaseTokenNode(e)),createBaseNode:e=>gF(a8.createBaseNode(e))},I=i8(4,Zye)}});function uu(e){if(e.emitNode)E.assert(!(e.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(z4(e)){if(e.kind===312)return e.emitNode={annotatedNodes:[e]};let t=Mn(ls(Mn(e)))??E.fail("Could not determine parsed source file.");uu(t).annotatedNodes.push(e)}e.emitNode={}}return e.emitNode}function MV(e){var t,n;let i=(n=(t=Mn(ls(e)))==null?void 0:t.emitNode)==null?void 0:n.annotatedNodes;if(i)for(let s of i)s.emitNode=void 0}function o8(e){let t=uu(e);return t.flags|=3072,t.leadingComments=void 0,t.trailingComments=void 0,e}function $n(e,t){return uu(e).flags=t,e}function Mm(e,t){let n=uu(e);return n.flags=n.flags|t,e}function c8(e,t){return uu(e).internalFlags=t,e}function Rx(e,t){let n=uu(e);return n.internalFlags=n.internalFlags|t,e}function y1(e){var t;return((t=e.emitNode)==null?void 0:t.sourceMapRange)??e}function Ca(e,t){return uu(e).sourceMapRange=t,e}function e1e(e,t){var n,i;return(i=(n=e.emitNode)==null?void 0:n.tokenSourceMapRanges)==null?void 0:i[t]}function Zne(e,t,n){let i=uu(e),s=i.tokenSourceMapRanges??(i.tokenSourceMapRanges=[]);return s[t]=n,e}function WE(e){var t;return(t=e.emitNode)==null?void 0:t.startsOnNewLine}function yF(e,t){return uu(e).startsOnNewLine=t,e}function Ud(e){var t;return((t=e.emitNode)==null?void 0:t.commentRange)??e}function jc(e,t){return uu(e).commentRange=t,e}function yC(e){var t;return(t=e.emitNode)==null?void 0:t.leadingComments}function v1(e,t){return uu(e).leadingComments=t,e}function UE(e,t,n,i){return v1(e,_n(yC(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function l8(e){var t;return(t=e.emitNode)==null?void 0:t.trailingComments}function jx(e,t){return uu(e).trailingComments=t,e}function vF(e,t,n,i){return jx(e,_n(l8(e),{kind:t,pos:-1,end:-1,hasTrailingNewLine:i,text:n}))}function Kne(e,t){v1(e,yC(t)),jx(e,l8(t));let n=uu(t);return n.leadingComments=void 0,n.trailingComments=void 0,e}function ere(e){var t;return(t=e.emitNode)==null?void 0:t.constantValue}function tre(e,t){let n=uu(e);return n.constantValue=t,e}function Bx(e,t){let n=uu(e);return n.helpers=_n(n.helpers,t),e}function oh(e,t){if(ft(t)){let n=uu(e);for(let i of t)n.helpers=Xg(n.helpers,i)}return e}function t1e(e,t){var n;let i=(n=e.emitNode)==null?void 0:n.helpers;return i?aP(i,t):!1}function bF(e){var t;return(t=e.emitNode)==null?void 0:t.helpers}function nre(e,t,n){let i=e.emitNode,s=i&&i.helpers;if(!ft(s))return;let o=uu(t),c=0;for(let u=0;u0&&(s[u-c]=f)}c>0&&(s.length-=c)}function RV(e){var t;return(t=e.emitNode)==null?void 0:t.snippetElement}function jV(e,t){let n=uu(e);return n.snippetElement=t,e}function BV(e){return uu(e).internalFlags|=4,e}function rre(e,t){let n=uu(e);return n.typeNode=t,e}function ire(e){var t;return(t=e.emitNode)==null?void 0:t.typeNode}function e0(e,t){return uu(e).identifierTypeArguments=t,e}function M2(e){var t;return(t=e.emitNode)==null?void 0:t.identifierTypeArguments}function u8(e,t){return uu(e).autoGenerate=t,e}function n1e(e){var t;return(t=e.emitNode)==null?void 0:t.autoGenerate}function sre(e,t){return uu(e).generatedImportReference=t,e}function are(e){var t;return(t=e.emitNode)==null?void 0:t.generatedImportReference}var uOe=ze({"src/compiler/factory/emitNode.ts"(){"use strict";Rs()}});function ore(e){let t=e.factory,n=Yu(()=>c8(t.createTrue(),8)),i=Yu(()=>c8(t.createFalse(),8));return{getUnscopedHelperName:s,createDecorateHelper:o,createMetadataHelper:c,createParamHelper:u,createESDecorateHelper:w,createRunInitializersHelper:D,createAssignHelper:O,createAwaitHelper:z,createAsyncGeneratorHelper:V,createAsyncDelegatorHelper:X,createAsyncValuesHelper:J,createRestHelper:ie,createAwaiterHelper:B,createExtendsHelper:Z,createTemplateObjectHelper:ae,createSpreadArrayHelper:_e,createPropKeyHelper:$,createSetFunctionNameHelper:H,createValuesHelper:K,createReadHelper:oe,createGeneratorHelper:Se,createCreateBindingHelper:se,createImportStarHelper:Y,createImportStarCallbackHelper:ve,createImportDefaultHelper:xe,createExportStarHelper:Me,createClassPrivateFieldGetHelper:ke,createClassPrivateFieldSetHelper:he,createClassPrivateFieldInHelper:be,createAddDisposableResourceHelper:_t,createDisposeResourcesHelper:mt};function s(me){return $n(t.createIdentifier(me),8196)}function o(me,Oe,Qe,at){e.requestEmitHelper(SF);let ht=[];return ht.push(t.createArrayLiteralExpression(me,!0)),ht.push(Oe),Qe&&(ht.push(Qe),at&&ht.push(at)),t.createCallExpression(s("__decorate"),void 0,ht)}function c(me,Oe){return e.requestEmitHelper(xF),t.createCallExpression(s("__metadata"),void 0,[t.createStringLiteral(me),Oe])}function u(me,Oe,Qe){return e.requestEmitHelper(TF),nt(t.createCallExpression(s("__param"),void 0,[t.createNumericLiteral(Oe+""),me]),Qe)}function f(me){let Oe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral("class")),t.createPropertyAssignment(t.createIdentifier("name"),me.name),t.createPropertyAssignment(t.createIdentifier("metadata"),me.metadata)];return t.createObjectLiteralExpression(Oe)}function g(me){let Oe=me.computed?t.createElementAccessExpression(t.createIdentifier("obj"),me.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),me.name);return t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,Oe))}function p(me){let Oe=me.computed?t.createElementAccessExpression(t.createIdentifier("obj"),me.name):t.createPropertyAccessExpression(t.createIdentifier("obj"),me.name);return t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj")),t.createParameterDeclaration(void 0,void 0,t.createIdentifier("value"))],void 0,void 0,t.createBlock([t.createExpressionStatement(t.createAssignment(Oe,t.createIdentifier("value")))])))}function y(me){let Oe=me.computed?me.name:Ie(me.name)?t.createStringLiteralFromNode(me.name):me.name;return t.createPropertyAssignment("has",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,t.createIdentifier("obj"))],void 0,void 0,t.createBinaryExpression(Oe,103,t.createIdentifier("obj"))))}function S(me,Oe){let Qe=[];return Qe.push(y(me)),Oe.get&&Qe.push(g(me)),Oe.set&&Qe.push(p(me)),t.createObjectLiteralExpression(Qe)}function x(me){let Oe=[t.createPropertyAssignment(t.createIdentifier("kind"),t.createStringLiteral(me.kind)),t.createPropertyAssignment(t.createIdentifier("name"),me.name.computed?me.name.name:t.createStringLiteralFromNode(me.name.name)),t.createPropertyAssignment(t.createIdentifier("static"),me.static?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("private"),me.private?t.createTrue():t.createFalse()),t.createPropertyAssignment(t.createIdentifier("access"),S(me.name,me.access)),t.createPropertyAssignment(t.createIdentifier("metadata"),me.metadata)];return t.createObjectLiteralExpression(Oe)}function C(me){return me.kind==="class"?f(me):x(me)}function w(me,Oe,Qe,at,ht,Je){return e.requestEmitHelper(kF),t.createCallExpression(s("__esDecorate"),void 0,[me??t.createNull(),Oe??t.createNull(),Qe,C(at),ht,Je])}function D(me,Oe,Qe){return e.requestEmitHelper(CF),t.createCallExpression(s("__runInitializers"),void 0,Qe?[me,Oe,Qe]:[me,Oe])}function O(me){return La(e.getCompilerOptions())>=2?t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"assign"),void 0,me):(e.requestEmitHelper(EF),t.createCallExpression(s("__assign"),void 0,me))}function z(me){return e.requestEmitHelper(Jx),t.createCallExpression(s("__await"),void 0,[me])}function V(me,Oe){return e.requestEmitHelper(Jx),e.requestEmitHelper(DF),(me.emitNode||(me.emitNode={})).flags|=1572864,t.createCallExpression(s("__asyncGenerator"),void 0,[Oe?t.createThis():t.createVoidZero(),t.createIdentifier("arguments"),me])}function X(me){return e.requestEmitHelper(Jx),e.requestEmitHelper(PF),t.createCallExpression(s("__asyncDelegator"),void 0,[me])}function J(me){return e.requestEmitHelper(wF),t.createCallExpression(s("__asyncValues"),void 0,[me])}function ie(me,Oe,Qe,at){e.requestEmitHelper(AF);let ht=[],Je=0;for(let lt=0;lt{let i="";for(let s=0;se.name))}function qE(e,t){return Ws(e)&&Ie(e.expression)&&(Sa(e.expression)&8192)!==0&&e.expression.escapedText===t}var VV,SF,xF,TF,kF,CF,EF,Jx,DF,PF,wF,AF,NF,IF,FF,OF,LF,MF,RF,jF,BF,vC,JF,_8,zF,VF,WF,UF,qF,HF,GF,r1e,f8,p8,_Oe=ze({"src/compiler/factory/emitHelpers.ts"(){"use strict";Rs(),VV=(e=>(e.Field="f",e.Method="m",e.Accessor="a",e))(VV||{}),SF={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` - var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - };`},xF={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` - var __metadata = (this && this.__metadata) || function (k, v) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - };`},TF={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` - var __param = (this && this.__param) || function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - };`},kF={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` - var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { - function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } - var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; - var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null; - var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {}); - var _, done = false; - for (var i = decorators.length - 1; i >= 0; i--) { - var context = {}; - for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p]; - for (var p in contextIn.access) context.access[p] = contextIn.access[p]; - context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); }; - var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context); - if (kind === "accessor") { - if (result === void 0) continue; - if (result === null || typeof result !== "object") throw new TypeError("Object expected"); - if (_ = accept(result.get)) descriptor.get = _; - if (_ = accept(result.set)) descriptor.set = _; - if (_ = accept(result.init)) initializers.unshift(_); - } - else if (_ = accept(result)) { - if (kind === "field") initializers.unshift(_); - else descriptor[key] = _; - } - } - if (target) Object.defineProperty(target, contextIn.name, descriptor); - done = true; - };`},CF={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` - var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { - var useValue = arguments.length > 2; - for (var i = 0; i < initializers.length; i++) { - value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); - } - return useValue ? value : void 0; - };`},EF={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` - var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); - };`},Jx={name:"typescript:await",importName:"__await",scoped:!1,text:` - var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},DF={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[Jx],text:` - var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i; - function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; } - function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - };`},PF={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[Jx],text:` - var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } - };`},wF={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` - var __asyncValues = (this && this.__asyncValues) || function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - };`},AF={name:"typescript:rest",importName:"__rest",scoped:!1,text:` - var __rest = (this && this.__rest) || function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - };`},NF={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` - var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - };`},IF={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` - var __extends = (this && this.__extends) || (function () { - var extendStatics = function (d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; - return extendStatics(d, b); - }; - - return function (d, b) { - if (typeof b !== "function" && b !== null) - throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - })();`},FF={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` - var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - };`},OF={name:"typescript:read",importName:"__read",scoped:!1,text:` - var __read = (this && this.__read) || function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - };`},LF={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` - var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { - if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { - if (ar || !(i in from)) { - if (!ar) ar = Array.prototype.slice.call(from, 0, i); - ar[i] = from[i]; - } - } - return to.concat(ar || Array.prototype.slice.call(from)); - };`},MF={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` - var __propKey = (this && this.__propKey) || function (x) { - return typeof x === "symbol" ? x : "".concat(x); - };`},RF={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` - var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { - if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; - return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); - };`},jF={name:"typescript:values",importName:"__values",scoped:!1,text:` - var __values = (this && this.__values) || function(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - };`},BF={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` - var __generator = (this && this.__generator) || function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (g && (g = 0, op[0] && (_ = 0)), _) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - };`},vC={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` - var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); - }) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }));`},JF={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` - var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { - Object.defineProperty(o, "default", { enumerable: true, value: v }); - }) : function(o, v) { - o["default"] = v; - });`},_8={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[vC,JF],priority:2,text:` - var __importStar = (this && this.__importStar) || function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); - __setModuleDefault(result, mod); - return result; - };`},zF={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` - var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - };`},VF={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[vC],priority:2,text:` - var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); - };`},WF={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` - var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); - return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - };`},UF={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` - var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { - if (kind === "m") throw new TypeError("Private method is not writable"); - if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); - if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); - return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - };`},qF={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` - var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { - if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); - return typeof state === "function" ? receiver === state : state.has(receiver); - };`},HF={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` - var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { - if (value !== null && value !== void 0) { - if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); - var dispose; - if (async) { - if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined."); - dispose = value[Symbol.asyncDispose]; - } - if (dispose === void 0) { - if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined."); - dispose = value[Symbol.dispose]; - } - if (typeof dispose !== "function") throw new TypeError("Object not disposable."); - env.stack.push({ value: value, dispose: dispose, async: async }); - } - else if (async) { - env.stack.push({ async: true }); - } - return value; - };`},GF={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` - var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { - return function (env) { - function fail(e) { - env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e; - env.hasError = true; - } - function next() { - while (env.stack.length) { - var rec = env.stack.pop(); - try { - var result = rec.dispose && rec.dispose.call(rec.value); - if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); }); - } - catch (e) { - fail(e); - } - } - if (env.hasError) throw env.error; - } - return next(); - }; - })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { - var e = new Error(message); - return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - });`},f8={name:"typescript:async-super",scoped:!0,text:JV` - const ${"_superIndex"} = name => super[name];`},p8={name:"typescript:advanced-async-super",scoped:!0,text:JV` - const ${"_superIndex"} = (function (geti, seti) { - const cache = Object.create(null); - return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);`}}});function R_(e){return e.kind===9}function $F(e){return e.kind===10}function ca(e){return e.kind===11}function zx(e){return e.kind===12}function WV(e){return e.kind===14}function Vx(e){return e.kind===15}function bC(e){return e.kind===16}function lre(e){return e.kind===17}function UV(e){return e.kind===18}function XF(e){return e.kind===26}function ure(e){return e.kind===28}function qV(e){return e.kind===40}function HV(e){return e.kind===41}function d8(e){return e.kind===42}function m8(e){return e.kind===54}function oy(e){return e.kind===58}function _re(e){return e.kind===59}function QF(e){return e.kind===29}function fre(e){return e.kind===39}function Ie(e){return e.kind===80}function Di(e){return e.kind===81}function Wx(e){return e.kind===95}function YF(e){return e.kind===90}function HE(e){return e.kind===134}function pre(e){return e.kind===131}function GV(e){return e.kind===135}function dre(e){return e.kind===148}function Ux(e){return e.kind===126}function mre(e){return e.kind===128}function gre(e){return e.kind===164}function hre(e){return e.kind===129}function GE(e){return e.kind===108}function $E(e){return e.kind===102}function yre(e){return e.kind===84}function k_(e){return e.kind===166}function Na(e){return e.kind===167}function Ko(e){return e.kind===168}function ms(e){return e.kind===169}function Zl(e){return e.kind===170}function bf(e){return e.kind===171}function Is(e){return e.kind===172}function xg(e){return e.kind===173}function kc(e){return e.kind===174}function rc(e){return e.kind===175}function Cc(e){return e.kind===176}function Sf(e){return e.kind===177}function j_(e){return e.kind===178}function SC(e){return e.kind===179}function g8(e){return e.kind===180}function R2(e){return e.kind===181}function ZF(e){return e.kind===182}function Tp(e){return e.kind===183}function Tg(e){return e.kind===184}function XE(e){return e.kind===185}function xC(e){return e.kind===186}function nf(e){return e.kind===187}function KF(e){return e.kind===188}function TC(e){return e.kind===189}function QE(e){return e.kind===202}function $V(e){return e.kind===190}function XV(e){return e.kind===191}function b1(e){return e.kind===192}function kC(e){return e.kind===193}function CC(e){return e.kind===194}function qx(e){return e.kind===195}function Hx(e){return e.kind===196}function eO(e){return e.kind===197}function Gx(e){return e.kind===198}function $x(e){return e.kind===199}function YE(e){return e.kind===200}function S1(e){return e.kind===201}function ch(e){return e.kind===205}function vre(e){return e.kind===204}function i1e(e){return e.kind===203}function Gp(e){return e.kind===206}function j2(e){return e.kind===207}function Ma(e){return e.kind===208}function Vu(e){return e.kind===209}function xa(e){return e.kind===210}function Cr(e){return e.kind===211}function ko(e){return e.kind===212}function Ws(e){return e.kind===213}function Kv(e){return e.kind===214}function B2(e){return e.kind===215}function bre(e){return e.kind===216}function C_(e){return e.kind===217}function uo(e){return e.kind===218}function Co(e){return e.kind===219}function Sre(e){return e.kind===220}function EC(e){return e.kind===221}function Xx(e){return e.kind===222}function cy(e){return e.kind===223}function x1(e){return e.kind===224}function QV(e){return e.kind===225}function Yn(e){return e.kind===226}function DC(e){return e.kind===227}function tO(e){return e.kind===228}function nO(e){return e.kind===229}function qd(e){return e.kind===230}function Bl(e){return e.kind===231}function xl(e){return e.kind===232}function t0(e){return e.kind===233}function h8(e){return e.kind===234}function xre(e){return e.kind===238}function Qx(e){return e.kind===235}function ZE(e){return e.kind===236}function s1e(e){return e.kind===237}function rO(e){return e.kind===360}function KE(e){return e.kind===361}function e3(e){return e.kind===239}function Tre(e){return e.kind===240}function Ds(e){return e.kind===241}function uc(e){return e.kind===243}function YV(e){return e.kind===242}function Il(e){return e.kind===244}function J2(e){return e.kind===245}function a1e(e){return e.kind===246}function o1e(e){return e.kind===247}function z2(e){return e.kind===248}function iO(e){return e.kind===249}function y8(e){return e.kind===250}function c1e(e){return e.kind===251}function l1e(e){return e.kind===252}function $p(e){return e.kind===253}function kre(e){return e.kind===254}function v8(e){return e.kind===255}function eb(e){return e.kind===256}function ZV(e){return e.kind===257}function V2(e){return e.kind===258}function u1e(e){return e.kind===259}function Ni(e){return e.kind===260}function Tl(e){return e.kind===261}function al(e){return e.kind===262}function Zc(e){return e.kind===263}function Wu(e){return e.kind===264}function Xp(e){return e.kind===265}function T1(e){return e.kind===266}function Pc(e){return e.kind===267}function Hd(e){return e.kind===268}function t3(e){return e.kind===269}function b8(e){return e.kind===270}function Kl(e){return e.kind===271}function kl(e){return e.kind===272}function Rm(e){return e.kind===273}function _1e(e){return e.kind===302}function Cre(e){return e.kind===300}function f1e(e){return e.kind===301}function sO(e){return e.kind===300}function Ere(e){return e.kind===301}function ly(e){return e.kind===274}function jm(e){return e.kind===280}function lh(e){return e.kind===275}function E_(e){return e.kind===276}function hc(e){return e.kind===277}function Kc(e){return e.kind===278}function kp(e){return e.kind===279}function Eu(e){return e.kind===281}function p1e(e){return e.kind===282}function KV(e){return e.kind===359}function Yx(e){return e.kind===362}function Bm(e){return e.kind===283}function kg(e){return e.kind===284}function W2(e){return e.kind===285}function Gd(e){return e.kind===286}function tb(e){return e.kind===287}function nb(e){return e.kind===288}function Zx(e){return e.kind===289}function Dre(e){return e.kind===290}function $d(e){return e.kind===291}function rb(e){return e.kind===292}function Kx(e){return e.kind===293}function n3(e){return e.kind===294}function md(e){return e.kind===295}function PC(e){return e.kind===296}function S8(e){return e.kind===297}function rf(e){return e.kind===298}function ib(e){return e.kind===299}function el(e){return e.kind===303}function sf(e){return e.kind===304}function n0(e){return e.kind===305}function sb(e){return e.kind===306}function Pre(e){return e.kind===308}function Li(e){return e.kind===312}function eW(e){return e.kind===313}function U2(e){return e.kind===314}function q2(e){return e.kind===316}function r3(e){return e.kind===317}function k1(e){return e.kind===318}function wre(e){return e.kind===331}function Are(e){return e.kind===332}function d1e(e){return e.kind===333}function Nre(e){return e.kind===319}function Ire(e){return e.kind===320}function wC(e){return e.kind===321}function aO(e){return e.kind===322}function tW(e){return e.kind===323}function AC(e){return e.kind===324}function oO(e){return e.kind===325}function m1e(e){return e.kind===326}function Qp(e){return e.kind===327}function eT(e){return e.kind===329}function C1(e){return e.kind===330}function NC(e){return e.kind===335}function g1e(e){return e.kind===337}function Fre(e){return e.kind===339}function nW(e){return e.kind===345}function rW(e){return e.kind===340}function iW(e){return e.kind===341}function sW(e){return e.kind===342}function aW(e){return e.kind===343}function cO(e){return e.kind===344}function IC(e){return e.kind===346}function oW(e){return e.kind===338}function h1e(e){return e.kind===354}function x8(e){return e.kind===347}function gd(e){return e.kind===348}function lO(e){return e.kind===349}function Ore(e){return e.kind===350}function i3(e){return e.kind===351}function hd(e){return e.kind===352}function FC(e){return e.kind===353}function y1e(e){return e.kind===334}function Lre(e){return e.kind===355}function cW(e){return e.kind===336}function uO(e){return e.kind===357}function v1e(e){return e.kind===356}function OC(e){return e.kind===358}var fOe=ze({"src/compiler/factory/nodeTests.ts"(){"use strict";Rs()}});function T8(e){return e.createExportDeclaration(void 0,!1,e.createNamedExports([]),void 0)}function H2(e,t,n,i){if(Na(n))return nt(e.createElementAccessExpression(t,n.expression),i);{let s=nt(_g(n)?e.createPropertyAccessExpression(t,n):e.createElementAccessExpression(t,n),n);return Mm(s,128),s}}function Mre(e,t){let n=Jm.createIdentifier(e||"React");return Ta(n,ls(t)),n}function Rre(e,t,n){if(k_(t)){let i=Rre(e,t.left,n),s=e.createIdentifier(ur(t.right));return s.escapedText=t.right.escapedText,e.createPropertyAccessExpression(i,s)}else return Mre(ur(t),n)}function lW(e,t,n,i){return t?Rre(e,t,i):e.createPropertyAccessExpression(Mre(n,i),"createElement")}function pOe(e,t,n,i){return t?Rre(e,t,i):e.createPropertyAccessExpression(Mre(n,i),"Fragment")}function jre(e,t,n,i,s,o){let c=[n];if(i&&c.push(i),s&&s.length>0)if(i||c.push(e.createNull()),s.length>1)for(let u of s)Uu(u),c.push(u);else c.push(s[0]);return nt(e.createCallExpression(t,void 0,c),o)}function Bre(e,t,n,i,s,o,c){let f=[pOe(e,n,i,o),e.createNull()];if(s&&s.length>0)if(s.length>1)for(let g of s)Uu(g),f.push(g);else f.push(s[0]);return nt(e.createCallExpression(lW(e,t,i,o),void 0,f),c)}function uW(e,t,n){if(Tl(t)){let i=Da(t.declarations),s=e.updateVariableDeclaration(i,i.name,void 0,void 0,n);return nt(e.createVariableStatement(void 0,e.updateVariableDeclarationList(t,[s])),t)}else{let i=nt(e.createAssignment(t,n),t);return nt(e.createExpressionStatement(i),t)}}function b1e(e,t,n){return Ds(t)?e.updateBlock(t,nt(e.createNodeArray([n,...t.statements]),t.statements)):e.createBlock(e.createNodeArray([t,n]),!0)}function k8(e,t){if(k_(t)){let n=k8(e,t.left),i=Ta(nt(e.cloneNode(t.right),t.right),t.right.parent);return nt(e.createPropertyAccessExpression(n,i),t)}else return Ta(nt(e.cloneNode(t),t),t.parent)}function _W(e,t){return Ie(t)?e.createStringLiteralFromNode(t):Na(t)?Ta(nt(e.cloneNode(t.expression),t.expression),t.expression.parent):Ta(nt(e.cloneNode(t),t),t.parent)}function dOe(e,t,n,i,s){let{firstAccessor:o,getAccessor:c,setAccessor:u}=N2(t,n);if(n===o)return nt(e.createObjectDefinePropertyCall(i,_W(e,n.name),e.createPropertyDescriptor({enumerable:e.createFalse(),configurable:!0,get:c&&nt(or(e.createFunctionExpression(Pv(c),void 0,void 0,void 0,c.parameters,void 0,c.body),c),c),set:u&&nt(or(e.createFunctionExpression(Pv(u),void 0,void 0,void 0,u.parameters,void 0,u.body),u),u)},!s)),o)}function mOe(e,t,n){return or(nt(e.createAssignment(H2(e,n,t.name,t.name),t.initializer),t),t)}function gOe(e,t,n){return or(nt(e.createAssignment(H2(e,n,t.name,t.name),e.cloneNode(t.name)),t),t)}function hOe(e,t,n){return or(nt(e.createAssignment(H2(e,n,t.name,t.name),or(nt(e.createFunctionExpression(Pv(t),t.asteriskToken,void 0,void 0,t.parameters,void 0,t.body),t),t)),t),t)}function Jre(e,t,n,i){switch(n.name&&Di(n.name)&&E.failBadSyntaxKind(n.name,"Private identifiers are not allowed in object literals."),n.kind){case 177:case 178:return dOe(e,t.properties,n,i,!!t.multiLine);case 303:return mOe(e,n,i);case 304:return gOe(e,n,i);case 174:return hOe(e,n,i)}}function _O(e,t,n,i,s){let o=t.operator;E.assert(o===46||o===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");let c=e.createTempVariable(i);n=e.createAssignment(c,n),nt(n,t.operand);let u=x1(t)?e.createPrefixUnaryExpression(o,c):e.createPostfixUnaryExpression(c,o);return nt(u,t),s&&(u=e.createAssignment(s,u),nt(u,t)),n=e.createComma(n,u),nt(n,t),QV(t)&&(n=e.createComma(n,c),nt(n,t)),n}function fW(e){return(Sa(e)&65536)!==0}function uh(e){return(Sa(e)&32768)!==0}function fO(e){return(Sa(e)&16384)!==0}function S1e(e){return ca(e.expression)&&e.expression.text==="use strict"}function pW(e){for(let t of e)if(Up(t)){if(S1e(t))return t}else break}function zre(e){let t=Pl(e);return t!==void 0&&Up(t)&&S1e(t)}function C8(e){return e.kind===226&&e.operatorToken.kind===28}function s3(e){return C8(e)||KE(e)}function a3(e){return C_(e)&&Qn(e)&&!!a1(e)}function pO(e){let t=o1(e);return E.assertIsDefined(t),t}function dO(e,t=15){switch(e.kind){case 217:return t&16&&a3(e)?!1:(t&1)!==0;case 216:case 234:case 233:case 238:return(t&2)!==0;case 235:return(t&4)!==0;case 360:return(t&8)!==0}return!1}function wc(e,t=15){for(;dO(e,t);)e=e.expression;return e}function Vre(e,t=15){let n=e.parent;for(;dO(n,t);)n=n.parent,E.assert(n);return n}function x1e(e){return wc(e,6)}function Uu(e){return yF(e,!0)}function E8(e){let t=cc(e,Li),n=t&&t.emitNode;return n&&n.externalHelpersModuleName}function Wre(e){let t=cc(e,Li),n=t&&t.emitNode;return!!n&&(!!n.externalHelpersModuleName||!!n.externalHelpers)}function dW(e,t,n,i,s,o,c){if(i.importHelpers&&vx(n,i)){let u,f=Ql(i);if(f>=5&&f<=99||n.impliedNodeFormat===99){let g=bF(n);if(g){let p=[];for(let y of g)if(!y.scoped){let S=y.importName;S&&lp(p,S)}if(ft(p)){p.sort(Ou),u=e.createNamedImports(Kt(p,x=>U7(n,x)?e.createImportSpecifier(!1,void 0,e.createIdentifier(x)):e.createImportSpecifier(!1,e.createIdentifier(x),t.getUnscopedHelperName(x))));let y=cc(n,Li),S=uu(y);S.externalHelpers=!0}}}else{let g=Ure(e,n,i,s,o||c);g&&(u=e.createNamespaceImport(g))}if(u){let g=e.createImportDeclaration(void 0,e.createImportClause(!1,void 0,u),e.createStringLiteral(sy),void 0);return Rx(g,2),g}}}function Ure(e,t,n,i,s){if(n.importHelpers&&vx(t,n)){let o=E8(t);if(o)return o;let c=Ql(n),u=(i||Om(n)&&s)&&c!==4&&(c<5||t.impliedNodeFormat===1);if(!u){let f=bF(t);if(f){for(let g of f)if(!g.scoped){u=!0;break}}}if(u){let f=cc(t,Li),g=uu(f);return g.externalHelpersModuleName||(g.externalHelpersModuleName=e.createUniqueName(sy))}}}function LC(e,t,n){let i=Yk(t);if(i&&!Sx(t)&&!H7(t)){let s=i.name;return Lo(s)?s:e.createIdentifier(Fv(n,s)||ur(s))}if(t.kind===272&&t.importClause||t.kind===278&&t.moduleSpecifier)return e.getGeneratedNameForNode(t)}function tT(e,t,n,i,s,o){let c=Qk(t);if(c&&ca(c))return vOe(t,i,e,s,o)||yOe(e,c,n)||e.cloneNode(c)}function yOe(e,t,n){let i=n.renamedDependencies&&n.renamedDependencies.get(t.text);return i?e.createStringLiteral(i):void 0}function D8(e,t,n,i){if(t){if(t.moduleName)return e.createStringLiteral(t.moduleName);if(!t.isDeclarationFile&&lo(i))return e.createStringLiteral(Az(n,t.fileName))}}function vOe(e,t,n,i,s){return D8(n,i.getExternalModuleFileFromDeclaration(e),t,s)}function P8(e){if(RP(e))return e.initializer;if(el(e)){let t=e.initializer;return pl(t,!0)?t.right:void 0}if(sf(e))return e.objectAssignmentInitializer;if(pl(e,!0))return e.right;if(qd(e))return P8(e.expression)}function uy(e){if(RP(e))return e.name;if(th(e)){switch(e.kind){case 303:return uy(e.initializer);case 304:return e.name;case 305:return uy(e.expression)}return}return pl(e,!0)?uy(e.left):qd(e)?uy(e.expression):e}function mO(e){switch(e.kind){case 169:case 208:return e.dotDotDotToken;case 230:case 305:return e}}function mW(e){let t=gO(e);return E.assert(!!t||n0(e),"Invalid property name for binding element."),t}function gO(e){switch(e.kind){case 208:if(e.propertyName){let n=e.propertyName;return Di(n)?E.failBadSyntaxKind(n):Na(n)&&T1e(n.expression)?n.expression:n}break;case 303:if(e.name){let n=e.name;return Di(n)?E.failBadSyntaxKind(n):Na(n)&&T1e(n.expression)?n.expression:n}break;case 305:return e.name&&Di(e.name)?E.failBadSyntaxKind(e.name):e.name}let t=uy(e);if(t&&Rc(t))return t}function T1e(e){let t=e.kind;return t===11||t===9}function MC(e){switch(e.kind){case 206:case 207:case 209:return e.elements;case 210:return e.properties}}function gW(e){if(e){let t=e;for(;;){if(Ie(t)||!t.body)return Ie(t)?t:t.name;t=t.body}}}function k1e(e){let t=e.kind;return t===176||t===178}function qre(e){let t=e.kind;return t===176||t===177||t===178}function hW(e){let t=e.kind;return t===303||t===304||t===262||t===176||t===181||t===175||t===282||t===243||t===264||t===265||t===266||t===267||t===271||t===272||t===270||t===278||t===277}function Hre(e){let t=e.kind;return t===175||t===303||t===304||t===282||t===270}function Gre(e){return oy(e)||m8(e)}function $re(e){return Ie(e)||eO(e)}function Xre(e){return dre(e)||qV(e)||HV(e)}function Qre(e){return oy(e)||qV(e)||HV(e)}function Yre(e){return Ie(e)||ca(e)}function C1e(e){let t=e.kind;return t===106||t===112||t===97||Av(e)||x1(e)}function bOe(e){return e===43}function SOe(e){return e===42||e===44||e===45}function xOe(e){return bOe(e)||SOe(e)}function TOe(e){return e===40||e===41}function kOe(e){return TOe(e)||xOe(e)}function COe(e){return e===48||e===49||e===50}function yW(e){return COe(e)||kOe(e)}function EOe(e){return e===30||e===33||e===32||e===34||e===104||e===103}function DOe(e){return EOe(e)||yW(e)}function POe(e){return e===35||e===37||e===36||e===38}function wOe(e){return POe(e)||DOe(e)}function AOe(e){return e===51||e===52||e===53}function NOe(e){return AOe(e)||wOe(e)}function IOe(e){return e===56||e===57}function FOe(e){return IOe(e)||NOe(e)}function OOe(e){return e===61||FOe(e)||Xh(e)}function LOe(e){return OOe(e)||e===28}function Zre(e){return LOe(e.kind)}function hO(e,t,n,i,s,o){let c=new P1e(e,t,n,i,s,o);return u;function u(f,g){let p={value:void 0},y=[bW.enter],S=[f],x=[void 0],C=0;for(;y[C]!==bW.done;)C=y[C](c,C,y,S,x,p,g);return E.assertEqual(C,0),p.value}}function E1e(e){return e===95||e===90}function w8(e){let t=e.kind;return E1e(t)}function D1e(e){let t=e.kind;return Uh(t)&&!E1e(t)}function Kre(e,t){if(t!==void 0)return t.length===0?t:nt(e.createNodeArray([],t.hasTrailingComma),t)}function A8(e){var t;let n=e.emitNode.autoGenerate;if(n.flags&4){let i=n.id,s=e,o=s.original;for(;o;){s=o;let c=(t=s.emitNode)==null?void 0:t.autoGenerate;if(_g(s)&&(c===void 0||c.flags&4&&c.id!==i))break;o=s.original}return s}return e}function RC(e,t){return typeof e=="object"?E1(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function MOe(e,t){return typeof e=="string"?e:ROe(e,E.checkDefined(t))}function ROe(e,t){return d2(e)?t(e).slice(1):Lo(e)?t(e):Di(e)?e.escapedText.slice(1):ur(e)}function E1(e,t,n,i,s){return t=RC(t,s),i=RC(i,s),n=MOe(n,s),`${e?"#":""}${t}${n}${i}`}function vW(e,t,n,i){return e.updatePropertyDeclaration(t,n,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage"),void 0,void 0,i)}function eie(e,t,n,i,s=e.createThis()){return e.createGetAccessorDeclaration(n,i,[],void 0,e.createBlock([e.createReturnStatement(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")))]))}function tie(e,t,n,i,s=e.createThis()){return e.createSetAccessorDeclaration(n,i,[e.createParameterDeclaration(void 0,void 0,"value")],e.createBlock([e.createExpressionStatement(e.createAssignment(e.createPropertyAccessExpression(s,e.getGeneratedPrivateNameForNode(t.name,void 0,"_accessor_storage")),e.createIdentifier("value")))]))}function yO(e){let t=e.expression;for(;;){if(t=wc(t),KE(t)){t=Pa(t.elements);continue}if(C8(t)){t=t.right;continue}if(pl(t,!0)&&Lo(t.left))return t;break}}function jOe(e){return C_(e)&&Ro(e)&&!e.emitNode}function vO(e,t){if(jOe(e))vO(e.expression,t);else if(C8(e))vO(e.left,t),vO(e.right,t);else if(KE(e))for(let n of e.elements)vO(n,t);else t.push(e)}function nie(e){let t=[];return vO(e,t),t}function N8(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of MC(e)){let n=uy(t);if(n&&$4(n)&&(n.transformFlags&65536||n.transformFlags&128&&N8(n)))return!0}return!1}var bW,P1e,BOe=ze({"src/compiler/factory/utilities.ts"(){"use strict";Rs(),(e=>{function t(p,y,S,x,C,w,D){let O=y>0?C[y-1]:void 0;return E.assertEqual(S[y],t),C[y]=p.onEnter(x[y],O,D),S[y]=u(p,t),y}e.enter=t;function n(p,y,S,x,C,w,D){E.assertEqual(S[y],n),E.assertIsDefined(p.onLeft),S[y]=u(p,n);let O=p.onLeft(x[y].left,C[y],x[y]);return O?(g(y,x,O),f(y,S,x,C,O)):y}e.left=n;function i(p,y,S,x,C,w,D){return E.assertEqual(S[y],i),E.assertIsDefined(p.onOperator),S[y]=u(p,i),p.onOperator(x[y].operatorToken,C[y],x[y]),y}e.operator=i;function s(p,y,S,x,C,w,D){E.assertEqual(S[y],s),E.assertIsDefined(p.onRight),S[y]=u(p,s);let O=p.onRight(x[y].right,C[y],x[y]);return O?(g(y,x,O),f(y,S,x,C,O)):y}e.right=s;function o(p,y,S,x,C,w,D){E.assertEqual(S[y],o),S[y]=u(p,o);let O=p.onExit(x[y],C[y]);if(y>0){if(y--,p.foldState){let z=S[y]===o?"right":"left";C[y]=p.foldState(C[y],O,z)}}else w.value=O;return y}e.exit=o;function c(p,y,S,x,C,w,D){return E.assertEqual(S[y],c),y}e.done=c;function u(p,y){switch(y){case t:if(p.onLeft)return n;case n:if(p.onOperator)return i;case i:if(p.onRight)return s;case s:return o;case o:return c;case c:return c;default:E.fail("Invalid state")}}e.nextState=u;function f(p,y,S,x,C){return p++,y[p]=t,S[p]=C,x[p]=void 0,p}function g(p,y,S){if(E.shouldAssert(2))for(;p>=0;)E.assert(y[p]!==S,"Circular traversal detected."),p--}})(bW||(bW={})),P1e=class{constructor(e,t,n,i,s,o){this.onEnter=e,this.onLeft=t,this.onOperator=n,this.onRight=i,this.onExit=s,this.foldState=o}}}});function nt(e,t){return t?Lm(e,t.pos,t.end):e}function Yp(e){let t=e.kind;return t===168||t===169||t===171||t===172||t===173||t===174||t===176||t===177||t===178||t===181||t===185||t===218||t===219||t===231||t===243||t===262||t===263||t===264||t===265||t===266||t===267||t===271||t===272||t===277||t===278}function G2(e){let t=e.kind;return t===169||t===172||t===174||t===177||t===178||t===231||t===263}var JOe=ze({"src/compiler/factory/utilitiesPublic.ts"(){"use strict";Rs()}});function Rt(e,t){return t&&e(t)}function Si(e,t,n){if(n){if(t)return t(n);for(let i of n){let s=e(i);if(s)return s}}}function SW(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function I8(e){return Qt(e.statements,zOe)||VOe(e)}function zOe(e){return Yp(e)&&WOe(e,95)||Kl(e)&&Bm(e.moduleReference)||kl(e)||hc(e)||Kc(e)?e:void 0}function VOe(e){return e.flags&8388608?w1e(e):void 0}function w1e(e){return UOe(e)?e:vs(e,w1e)}function WOe(e,t){return ft(e.modifiers,n=>n.kind===t)}function UOe(e){return ZE(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}function A1e(e,t,n){return Si(t,n,e.typeParameters)||Si(t,n,e.parameters)||Rt(t,e.type)}function N1e(e,t,n){return Si(t,n,e.types)}function I1e(e,t,n){return Rt(t,e.type)}function F1e(e,t,n){return Si(t,n,e.elements)}function O1e(e,t,n){return Rt(t,e.expression)||Rt(t,e.questionDotToken)||Si(t,n,e.typeArguments)||Si(t,n,e.arguments)}function L1e(e,t,n){return Si(t,n,e.statements)}function M1e(e,t,n){return Rt(t,e.label)}function R1e(e,t,n){return Si(t,n,e.modifiers)||Rt(t,e.name)||Si(t,n,e.typeParameters)||Si(t,n,e.heritageClauses)||Si(t,n,e.members)}function j1e(e,t,n){return Si(t,n,e.elements)}function B1e(e,t,n){return Rt(t,e.propertyName)||Rt(t,e.name)}function J1e(e,t,n){return Rt(t,e.tagName)||Si(t,n,e.typeArguments)||Rt(t,e.attributes)}function o3(e,t,n){return Rt(t,e.type)}function z1e(e,t,n){return Rt(t,e.tagName)||(e.isNameFirst?Rt(t,e.name)||Rt(t,e.typeExpression):Rt(t,e.typeExpression)||Rt(t,e.name))||(typeof e.comment=="string"?void 0:Si(t,n,e.comment))}function c3(e,t,n){return Rt(t,e.tagName)||Rt(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Si(t,n,e.comment))}function rie(e,t,n){return Rt(t,e.name)}function jC(e,t,n){return Rt(t,e.tagName)||(typeof e.comment=="string"?void 0:Si(t,n,e.comment))}function qOe(e,t,n){return Rt(t,e.expression)}function vs(e,t,n){if(e===void 0||e.kind<=165)return;let i=Y1e[e.kind];return i===void 0?void 0:i(e,t,n)}function l3(e,t,n){let i=V1e(e),s=[];for(;s.length=0;--u)i.push(o[u]),s.push(c)}else{let u=t(o,c);if(u){if(u==="skip")continue;return u}if(o.kind>=166)for(let f of V1e(o))i.push(f),s.push(o)}}}function V1e(e){let t=[];return vs(e,n,n),t;function n(i){t.unshift(i)}}function W1e(e){e.externalModuleIndicator=I8(e)}function F8(e,t,n,i=!1,s){var o,c,u,f;(o=Wn)==null||o.push(Wn.Phase.Parse,"createSourceFile",{path:e},!0),Fo("beforeParse");let g;(c=Lu)==null||c.logStartParseSourceFile(e);let{languageVersion:p,setExternalModuleIndicator:y,impliedNodeFormat:S,jsDocParsingMode:x}=typeof n=="object"?n:{languageVersion:n};if(p===100)g=P1.parseSourceFile(e,t,p,void 0,i,6,Fa,x);else{let C=S===void 0?y:w=>(w.impliedNodeFormat=S,(y||W1e)(w));g=P1.parseSourceFile(e,t,p,void 0,i,s,C,x)}return(u=Lu)==null||u.logStopParseSourceFile(),Fo("afterParse"),gf("Parse","beforeParse","afterParse"),(f=Wn)==null||f.pop(),g}function nT(e,t){return P1.parseIsolatedEntityName(e,t)}function O8(e,t){return P1.parseJsonText(e,t)}function Bc(e){return e.externalModuleIndicator!==void 0}function xW(e,t,n,i=!1){let s=EW.updateSourceFile(e,t,n,i);return s.flags|=e.flags&12582912,s}function iie(e,t,n){let i=P1.JSDocParser.parseIsolatedJSDocComment(e,t,n);return i&&i.jsDoc&&P1.fixupParentReferences(i.jsDoc),i}function U1e(e,t,n){return P1.JSDocParser.parseJSDocTypeExpressionForTests(e,t,n)}function Jl(e){return $c(e,t8)||nc(e,".ts")&&Mc(e).includes(".d.")}function HOe(e,t,n,i){if(e){if(e==="import")return 99;if(e==="require")return 1;i(t,n-t,d.resolution_mode_should_be_either_require_or_import)}}function TW(e,t){let n=[];for(let i of lg(t,0)||Ve){let s=t.substring(i.pos,i.end);$Oe(n,i,s)}e.pragmas=new Map;for(let i of n){if(e.pragmas.has(i.name)){let s=e.pragmas.get(i.name);s instanceof Array?s.push(i.args):e.pragmas.set(i.name,[s,i.args]);continue}e.pragmas.set(i.name,i.args)}}function kW(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((n,i)=>{switch(i){case"reference":{let s=e.referencedFiles,o=e.typeReferenceDirectives,c=e.libReferenceDirectives;Qt(cx(n),u=>{let{types:f,lib:g,path:p,["resolution-mode"]:y}=u.arguments;if(u.arguments["no-default-lib"])e.hasNoDefaultLib=!0;else if(f){let S=HOe(y,f.pos,f.end,t);o.push({pos:f.pos,end:f.end,fileName:f.value,...S?{resolutionMode:S}:{}})}else g?c.push({pos:g.pos,end:g.end,fileName:g.value}):p?s.push({pos:p.pos,end:p.end,fileName:p.value}):t(u.range.pos,u.range.end-u.range.pos,d.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=Kt(cx(n),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(n instanceof Array)for(let s of n)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,d.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=n.arguments.name;break}case"ts-nocheck":case"ts-check":{Qt(cx(n),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:i==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:E.fail("Unhandled pragma kind")}})}function GOe(e){if(DW.has(e))return DW.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return DW.set(e,t),t}function $Oe(e,t,n){let i=t.kind===2&&Z1e.exec(n);if(i){let o=i[1].toLowerCase(),c=fP[o];if(!c||!(c.kind&1))return;if(c.args){let u={};for(let f of c.args){let p=GOe(f.name).exec(n);if(!p&&!f.optional)return;if(p){let y=p[2]||p[3];if(f.captureSpan){let S=t.pos+p.index+p[1].length+1;u[f.name]={value:y,pos:S,end:S+y.length}}else u[f.name]=y}}e.push({name:o,args:{arguments:u,range:t}})}else e.push({name:o,args:{arguments:{},range:t}});return}let s=t.kind===2&&K1e.exec(n);if(s)return q1e(e,t,2,s);if(t.kind===3){let o=/@(\S+)(\s+.*)?$/gim,c;for(;c=o.exec(n);)q1e(e,t,4,c)}}function q1e(e,t,n,i){if(!i)return;let s=i[1].toLowerCase(),o=fP[s];if(!o||!(o.kind&n))return;let c=i[2],u=XOe(o,c);u!=="fail"&&e.push({name:s,args:{arguments:u,range:t}})}function XOe(e,t){if(!t)return{};if(!e.args)return{};let n=t.trim().split(/\s+/),i={};for(let s=0;snew(Q1e||(Q1e=jl.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new($1e||($1e=jl.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(X1e||(X1e=jl.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(G1e||(G1e=jl.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(H1e||(H1e=jl.getNodeConstructor()))(e,-1,-1)},Jm=i8(1,CW),Y1e={166:function(t,n,i){return Rt(n,t.left)||Rt(n,t.right)},168:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Rt(n,t.constraint)||Rt(n,t.default)||Rt(n,t.expression)},304:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Rt(n,t.questionToken)||Rt(n,t.exclamationToken)||Rt(n,t.equalsToken)||Rt(n,t.objectAssignmentInitializer)},305:function(t,n,i){return Rt(n,t.expression)},169:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.dotDotDotToken)||Rt(n,t.name)||Rt(n,t.questionToken)||Rt(n,t.type)||Rt(n,t.initializer)},172:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Rt(n,t.questionToken)||Rt(n,t.exclamationToken)||Rt(n,t.type)||Rt(n,t.initializer)},171:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Rt(n,t.questionToken)||Rt(n,t.type)||Rt(n,t.initializer)},303:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Rt(n,t.questionToken)||Rt(n,t.exclamationToken)||Rt(n,t.initializer)},260:function(t,n,i){return Rt(n,t.name)||Rt(n,t.exclamationToken)||Rt(n,t.type)||Rt(n,t.initializer)},208:function(t,n,i){return Rt(n,t.dotDotDotToken)||Rt(n,t.propertyName)||Rt(n,t.name)||Rt(n,t.initializer)},181:function(t,n,i){return Si(n,i,t.modifiers)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)},185:function(t,n,i){return Si(n,i,t.modifiers)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)},184:function(t,n,i){return Si(n,i,t.modifiers)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)},179:A1e,180:A1e,174:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.asteriskToken)||Rt(n,t.name)||Rt(n,t.questionToken)||Rt(n,t.exclamationToken)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)||Rt(n,t.body)},173:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Rt(n,t.questionToken)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)},176:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)||Rt(n,t.body)},177:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)||Rt(n,t.body)},178:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)||Rt(n,t.body)},262:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.asteriskToken)||Rt(n,t.name)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)||Rt(n,t.body)},218:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.asteriskToken)||Rt(n,t.name)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)||Rt(n,t.body)},219:function(t,n,i){return Si(n,i,t.modifiers)||Si(n,i,t.typeParameters)||Si(n,i,t.parameters)||Rt(n,t.type)||Rt(n,t.equalsGreaterThanToken)||Rt(n,t.body)},175:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.body)},183:function(t,n,i){return Rt(n,t.typeName)||Si(n,i,t.typeArguments)},182:function(t,n,i){return Rt(n,t.assertsModifier)||Rt(n,t.parameterName)||Rt(n,t.type)},186:function(t,n,i){return Rt(n,t.exprName)||Si(n,i,t.typeArguments)},187:function(t,n,i){return Si(n,i,t.members)},188:function(t,n,i){return Rt(n,t.elementType)},189:function(t,n,i){return Si(n,i,t.elements)},192:N1e,193:N1e,194:function(t,n,i){return Rt(n,t.checkType)||Rt(n,t.extendsType)||Rt(n,t.trueType)||Rt(n,t.falseType)},195:function(t,n,i){return Rt(n,t.typeParameter)},205:function(t,n,i){return Rt(n,t.argument)||Rt(n,t.attributes)||Rt(n,t.qualifier)||Si(n,i,t.typeArguments)},302:function(t,n,i){return Rt(n,t.assertClause)},196:I1e,198:I1e,199:function(t,n,i){return Rt(n,t.objectType)||Rt(n,t.indexType)},200:function(t,n,i){return Rt(n,t.readonlyToken)||Rt(n,t.typeParameter)||Rt(n,t.nameType)||Rt(n,t.questionToken)||Rt(n,t.type)||Si(n,i,t.members)},201:function(t,n,i){return Rt(n,t.literal)},202:function(t,n,i){return Rt(n,t.dotDotDotToken)||Rt(n,t.name)||Rt(n,t.questionToken)||Rt(n,t.type)},206:F1e,207:F1e,209:function(t,n,i){return Si(n,i,t.elements)},210:function(t,n,i){return Si(n,i,t.properties)},211:function(t,n,i){return Rt(n,t.expression)||Rt(n,t.questionDotToken)||Rt(n,t.name)},212:function(t,n,i){return Rt(n,t.expression)||Rt(n,t.questionDotToken)||Rt(n,t.argumentExpression)},213:O1e,214:O1e,215:function(t,n,i){return Rt(n,t.tag)||Rt(n,t.questionDotToken)||Si(n,i,t.typeArguments)||Rt(n,t.template)},216:function(t,n,i){return Rt(n,t.type)||Rt(n,t.expression)},217:function(t,n,i){return Rt(n,t.expression)},220:function(t,n,i){return Rt(n,t.expression)},221:function(t,n,i){return Rt(n,t.expression)},222:function(t,n,i){return Rt(n,t.expression)},224:function(t,n,i){return Rt(n,t.operand)},229:function(t,n,i){return Rt(n,t.asteriskToken)||Rt(n,t.expression)},223:function(t,n,i){return Rt(n,t.expression)},225:function(t,n,i){return Rt(n,t.operand)},226:function(t,n,i){return Rt(n,t.left)||Rt(n,t.operatorToken)||Rt(n,t.right)},234:function(t,n,i){return Rt(n,t.expression)||Rt(n,t.type)},235:function(t,n,i){return Rt(n,t.expression)},238:function(t,n,i){return Rt(n,t.expression)||Rt(n,t.type)},236:function(t,n,i){return Rt(n,t.name)},227:function(t,n,i){return Rt(n,t.condition)||Rt(n,t.questionToken)||Rt(n,t.whenTrue)||Rt(n,t.colonToken)||Rt(n,t.whenFalse)},230:function(t,n,i){return Rt(n,t.expression)},241:L1e,268:L1e,312:function(t,n,i){return Si(n,i,t.statements)||Rt(n,t.endOfFileToken)},243:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.declarationList)},261:function(t,n,i){return Si(n,i,t.declarations)},244:function(t,n,i){return Rt(n,t.expression)},245:function(t,n,i){return Rt(n,t.expression)||Rt(n,t.thenStatement)||Rt(n,t.elseStatement)},246:function(t,n,i){return Rt(n,t.statement)||Rt(n,t.expression)},247:function(t,n,i){return Rt(n,t.expression)||Rt(n,t.statement)},248:function(t,n,i){return Rt(n,t.initializer)||Rt(n,t.condition)||Rt(n,t.incrementor)||Rt(n,t.statement)},249:function(t,n,i){return Rt(n,t.initializer)||Rt(n,t.expression)||Rt(n,t.statement)},250:function(t,n,i){return Rt(n,t.awaitModifier)||Rt(n,t.initializer)||Rt(n,t.expression)||Rt(n,t.statement)},251:M1e,252:M1e,253:function(t,n,i){return Rt(n,t.expression)},254:function(t,n,i){return Rt(n,t.expression)||Rt(n,t.statement)},255:function(t,n,i){return Rt(n,t.expression)||Rt(n,t.caseBlock)},269:function(t,n,i){return Si(n,i,t.clauses)},296:function(t,n,i){return Rt(n,t.expression)||Si(n,i,t.statements)},297:function(t,n,i){return Si(n,i,t.statements)},256:function(t,n,i){return Rt(n,t.label)||Rt(n,t.statement)},257:function(t,n,i){return Rt(n,t.expression)},258:function(t,n,i){return Rt(n,t.tryBlock)||Rt(n,t.catchClause)||Rt(n,t.finallyBlock)},299:function(t,n,i){return Rt(n,t.variableDeclaration)||Rt(n,t.block)},170:function(t,n,i){return Rt(n,t.expression)},263:R1e,231:R1e,264:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Si(n,i,t.typeParameters)||Si(n,i,t.heritageClauses)||Si(n,i,t.members)},265:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Si(n,i,t.typeParameters)||Rt(n,t.type)},266:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Si(n,i,t.members)},306:function(t,n,i){return Rt(n,t.name)||Rt(n,t.initializer)},267:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Rt(n,t.body)},271:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)||Rt(n,t.moduleReference)},272:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.importClause)||Rt(n,t.moduleSpecifier)||Rt(n,t.attributes)},273:function(t,n,i){return Rt(n,t.name)||Rt(n,t.namedBindings)},300:function(t,n,i){return Si(n,i,t.elements)},301:function(t,n,i){return Rt(n,t.name)||Rt(n,t.value)},270:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.name)},274:function(t,n,i){return Rt(n,t.name)},280:function(t,n,i){return Rt(n,t.name)},275:j1e,279:j1e,278:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.exportClause)||Rt(n,t.moduleSpecifier)||Rt(n,t.attributes)},276:B1e,281:B1e,277:function(t,n,i){return Si(n,i,t.modifiers)||Rt(n,t.expression)},228:function(t,n,i){return Rt(n,t.head)||Si(n,i,t.templateSpans)},239:function(t,n,i){return Rt(n,t.expression)||Rt(n,t.literal)},203:function(t,n,i){return Rt(n,t.head)||Si(n,i,t.templateSpans)},204:function(t,n,i){return Rt(n,t.type)||Rt(n,t.literal)},167:function(t,n,i){return Rt(n,t.expression)},298:function(t,n,i){return Si(n,i,t.types)},233:function(t,n,i){return Rt(n,t.expression)||Si(n,i,t.typeArguments)},283:function(t,n,i){return Rt(n,t.expression)},282:function(t,n,i){return Si(n,i,t.modifiers)},361:function(t,n,i){return Si(n,i,t.elements)},284:function(t,n,i){return Rt(n,t.openingElement)||Si(n,i,t.children)||Rt(n,t.closingElement)},288:function(t,n,i){return Rt(n,t.openingFragment)||Si(n,i,t.children)||Rt(n,t.closingFragment)},285:J1e,286:J1e,292:function(t,n,i){return Si(n,i,t.properties)},291:function(t,n,i){return Rt(n,t.name)||Rt(n,t.initializer)},293:function(t,n,i){return Rt(n,t.expression)},294:function(t,n,i){return Rt(n,t.dotDotDotToken)||Rt(n,t.expression)},287:function(t,n,i){return Rt(n,t.tagName)},295:function(t,n,i){return Rt(n,t.namespace)||Rt(n,t.name)},190:o3,191:o3,316:o3,322:o3,321:o3,323:o3,325:o3,324:function(t,n,i){return Si(n,i,t.parameters)||Rt(n,t.type)},327:function(t,n,i){return(typeof t.comment=="string"?void 0:Si(n,i,t.comment))||Si(n,i,t.tags)},354:function(t,n,i){return Rt(n,t.tagName)||Rt(n,t.name)||(typeof t.comment=="string"?void 0:Si(n,i,t.comment))},317:function(t,n,i){return Rt(n,t.name)},318:function(t,n,i){return Rt(n,t.left)||Rt(n,t.right)},348:z1e,355:z1e,337:function(t,n,i){return Rt(n,t.tagName)||(typeof t.comment=="string"?void 0:Si(n,i,t.comment))},336:function(t,n,i){return Rt(n,t.tagName)||Rt(n,t.class)||(typeof t.comment=="string"?void 0:Si(n,i,t.comment))},335:function(t,n,i){return Rt(n,t.tagName)||Rt(n,t.class)||(typeof t.comment=="string"?void 0:Si(n,i,t.comment))},352:function(t,n,i){return Rt(n,t.tagName)||Rt(n,t.constraint)||Si(n,i,t.typeParameters)||(typeof t.comment=="string"?void 0:Si(n,i,t.comment))},353:function(t,n,i){return Rt(n,t.tagName)||(t.typeExpression&&t.typeExpression.kind===316?Rt(n,t.typeExpression)||Rt(n,t.fullName)||(typeof t.comment=="string"?void 0:Si(n,i,t.comment)):Rt(n,t.fullName)||Rt(n,t.typeExpression)||(typeof t.comment=="string"?void 0:Si(n,i,t.comment)))},345:function(t,n,i){return Rt(n,t.tagName)||Rt(n,t.fullName)||Rt(n,t.typeExpression)||(typeof t.comment=="string"?void 0:Si(n,i,t.comment))},349:c3,351:c3,350:c3,347:c3,357:c3,356:c3,346:c3,330:function(t,n,i){return Qt(t.typeParameters,n)||Qt(t.parameters,n)||Rt(n,t.type)},331:rie,332:rie,333:rie,329:function(t,n,i){return Qt(t.jsDocPropertyTags,n)},334:jC,339:jC,340:jC,341:jC,342:jC,343:jC,338:jC,344:jC,360:qOe},(e=>{var t=Vh(99,!0),n=40960,i,s,o,c,u;function f(q){return Je++,q}var g={createBaseSourceFileNode:q=>f(new u(q,0,0)),createBaseIdentifierNode:q=>f(new o(q,0,0)),createBasePrivateIdentifierNode:q=>f(new c(q,0,0)),createBaseTokenNode:q=>f(new s(q,0,0)),createBaseNode:q=>f(new i(q,0,0))},p=i8(11,g),{createNodeArray:y,createNumericLiteral:S,createStringLiteral:x,createLiteralLikeNode:C,createIdentifier:w,createPrivateIdentifier:D,createToken:O,createArrayLiteralExpression:z,createObjectLiteralExpression:V,createPropertyAccessExpression:X,createPropertyAccessChain:J,createElementAccessExpression:ie,createElementAccessChain:B,createCallExpression:Z,createCallChain:ae,createNewExpression:_e,createParenthesizedExpression:$,createBlock:H,createVariableStatement:K,createExpressionStatement:oe,createIfStatement:Se,createWhileStatement:se,createForStatement:Y,createForOfStatement:ve,createVariableDeclaration:xe,createVariableDeclarationList:Me}=p,ke,he,be,_t,mt,me,Oe,Qe,at,ht,Je,lt,Jt,Gt,Tn,Un,cn=!0,zt=!1;function Ft(q,ge,Ae,tt,Nt=!1,rn,kr,vi=0){var fi;if(rn=K5(q,rn),rn===6){let Ji=ji(q,ge,Ae,tt,Nt);return R8(Ji,(fi=Ji.statements[0])==null?void 0:fi.expression,Ji.parseDiagnostics,!1,void 0),Ji.referencedFiles=Ve,Ji.typeReferenceDirectives=Ve,Ji.libReferenceDirectives=Ve,Ji.amdDependencies=Ve,Ji.hasNoDefaultLib=!1,Ji.pragmas=$I,Ji}ii(q,ge,Ae,tt,rn,vi);let ti=Ye(Ae,Nt,rn,kr||W1e,vi);return Hi(),ti}e.parseSourceFile=Ft;function Lr(q,ge){ii("",q,ge,void 0,1,0),Fe();let Ae=Q(!0),tt=M()===1&&!Oe.length;return Hi(),tt?Ae:void 0}e.parseIsolatedEntityName=Lr;function ji(q,ge,Ae=2,tt,Nt=!1){ii(q,ge,Ae,tt,6,0),he=Un,Fe();let rn=ee(),kr,vi;if(M()===1)kr=as([],rn,rn),vi=Jc();else{let Ji;for(;M()!==1;){let Ja;switch(M()){case 23:Ja=hh();break;case 112:case 97:case 106:Ja=Jc();break;case 41:In(()=>Fe()===9&&Fe()!==59)?Ja=nm():Ja=Y1();break;case 9:case 11:if(In(()=>Fe()!==59)){Ja=Vr();break}default:Ja=Y1();break}Ji&&ss(Ji)?Ji.push(Ja):Ji?Ji=[Ji,Ja]:(Ji=Ja,M()!==1&&tn(d.Unexpected_token))}let ao=ss(Ji)?Ht(z(Ji),rn):E.checkDefined(Ji),Wa=oe(ao);Ht(Wa,rn),kr=as([Wa],rn),vi=Do(1,d.Unexpected_token)}let fi=Cn(q,2,6,!1,kr,vi,he,Fa);Nt&&Sn(fi),fi.nodeCount=Je,fi.identifierCount=Jt,fi.identifiers=lt,fi.parseDiagnostics=Ix(Oe,fi),Qe&&(fi.jsDocDiagnostics=Ix(Qe,fi));let ti=fi;return Hi(),ti}e.parseJsonText=ji;function ii(q,ge,Ae,tt,Nt,rn){switch(i=jl.getNodeConstructor(),s=jl.getTokenConstructor(),o=jl.getIdentifierConstructor(),c=jl.getPrivateIdentifierConstructor(),u=jl.getSourceFileConstructor(),ke=Ys(q),be=ge,_t=Ae,at=tt,mt=Nt,me=zw(Nt),Oe=[],Gt=0,lt=new Map,Jt=0,Je=0,he=0,cn=!0,mt){case 1:case 2:Un=524288;break;case 6:Un=134742016;break;default:Un=0;break}zt=!1,t.setText(be),t.setOnError(ce),t.setScriptTarget(_t),t.setLanguageVariant(me),t.setScriptKind(mt),t.setJSDocParsingMode(rn)}function Hi(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),be=void 0,_t=void 0,at=void 0,mt=void 0,me=void 0,he=0,Oe=void 0,Qe=void 0,Gt=0,lt=void 0,Tn=void 0,cn=!0}function Ye(q,ge,Ae,tt,Nt){let rn=Jl(ke);rn&&(Un|=33554432),he=Un,Fe();let kr=Bs(0,Of);E.assert(M()===1);let vi=ue(),fi=An(Jc(),vi),ti=Cn(ke,q,Ae,rn,kr,fi,he,tt);return TW(ti,be),kW(ti,Ji),ti.commentDirectives=t.getCommentDirectives(),ti.nodeCount=Je,ti.identifierCount=Jt,ti.identifiers=lt,ti.parseDiagnostics=Ix(Oe,ti),ti.jsDocParsingMode=Nt,Qe&&(ti.jsDocDiagnostics=Ix(Qe,ti)),ge&&Sn(ti),ti;function Ji(ao,Wa,Ja){Oe.push(_C(ke,be,ao,Wa,Ja))}}let fn=!1;function An(q,ge){if(!ge)return q;E.assert(!q.jsDoc);let Ae=Ri(ez(q,be),tt=>zN.parseJSDocComment(q,tt.pos,tt.end-tt.pos));return Ae.length&&(q.jsDoc=Ae),fn&&(fn=!1,q.flags|=536870912),q}function Ot(q){let ge=at,Ae=EW.createSyntaxCursor(q);at={currentNode:Ji};let tt=[],Nt=Oe;Oe=[];let rn=0,kr=fi(q.statements,0);for(;kr!==-1;){let ao=q.statements[rn],Wa=q.statements[kr];Nr(tt,q.statements,rn,kr),rn=ti(q.statements,kr);let Ja=Qo(Nt,id=>id.start>=ao.pos),np=Ja>=0?Qo(Nt,id=>id.start>=Wa.pos,Ja):-1;Ja>=0&&Nr(Oe,Nt,Ja,np>=0?np:void 0),is(()=>{let id=Un;for(Un|=65536,t.resetTokenState(Wa.pos),Fe();M()!==1;){let Ay=t.getTokenFullStart(),Vg=vc(0,Of);if(tt.push(Vg),Ay===t.getTokenFullStart()&&Fe(),rn>=0){let Ol=q.statements[rn];if(Vg.end===Ol.pos)break;Vg.end>Ol.pos&&(rn=ti(q.statements,rn+1))}}Un=id},2),kr=rn>=0?fi(q.statements,rn):-1}if(rn>=0){let ao=q.statements[rn];Nr(tt,q.statements,rn);let Wa=Qo(Nt,Ja=>Ja.start>=ao.pos);Wa>=0&&Nr(Oe,Nt,Wa)}return at=ge,p.updateSourceFile(q,nt(y(tt),q.statements));function vi(ao){return!(ao.flags&65536)&&!!(ao.transformFlags&67108864)}function fi(ao,Wa){for(let Ja=Wa;Ja118}function js(){return M()===80?!0:M()===127&&wt()||M()===135&&Zt()?!1:M()>118}function Pn(q,ge,Ae=!0){return M()===q?(Ae&&Fe(),!0):(ge?tn(ge):tn(d._0_expected,Zs(q)),!1)}let Nc=Object.keys(CP).filter(q=>q.length>2);function _s(q){if(B2(q)){W(ma(be,q.template.pos),q.template.end,d.Module_declaration_names_may_only_use_or_quoted_strings);return}let ge=Ie(q)?ur(q):void 0;if(!ge||!hf(ge,_t)){tn(d._0_expected,Zs(27));return}let Ae=ma(be,q.pos);switch(ge){case"const":case"let":case"var":W(Ae,q.end,d.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":to(d.Interface_name_cannot_be_0,d.Interface_must_be_given_a_name,19);return;case"is":W(Ae,t.getTokenStart(),d.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":to(d.Namespace_name_cannot_be_0,d.Namespace_must_be_given_a_name,19);return;case"type":to(d.Type_alias_name_cannot_be_0,d.Type_alias_must_be_given_a_name,64);return}let tt=P4(ge,Nc,Nt=>Nt)??fc(ge);if(tt){W(Ae,q.end,d.Unknown_keyword_or_identifier_Did_you_mean_0,tt);return}M()!==0&&W(Ae,q.end,d.Unexpected_keyword_or_identifier)}function to(q,ge,Ae){M()===Ae?tn(ge):tn(q,t.getTokenValue())}function fc(q){for(let ge of Nc)if(q.length>ge.length+2&&ts(q,ge))return`${ge} ${q.slice(ge.length)}`}function ec(q,ge,Ae){if(M()===60&&!t.hasPrecedingLineBreak()){tn(d.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(M()===21){tn(d.Cannot_start_a_function_call_in_a_type_annotation),Fe();return}if(ge&&!zc()){Ae?tn(d._0_expected,Zs(27)):tn(d.Expected_for_property_initializer);return}if(!ic()){if(Ae){tn(d._0_expected,Zs(27));return}_s(q)}}function gl(q){return M()===q?(St(),!0):(E.assert(b5(q)),tn(d._0_expected,Zs(q)),!1)}function Ho(q,ge,Ae,tt){if(M()===ge){Fe();return}let Nt=tn(d._0_expected,Zs(ge));Ae&&Nt&&ga(Nt,_C(ke,be,tt,1,d.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Zs(q),Zs(ge)))}function xs(q){return M()===q?(Fe(),!0):!1}function $s(q){if(M()===q)return Jc()}function cl(q){if(M()===q)return td()}function Do(q,ge,Ae){return $s(q)||Jo(q,!1,ge||d._0_expected,Ae||Zs(q))}function Xs(q){let ge=cl(q);return ge||(E.assert(b5(q)),Jo(q,!1,d._0_expected,Zs(q)))}function Jc(){let q=ee(),ge=M();return Fe(),Ht(O(ge),q)}function td(){let q=ee(),ge=M();return St(),Ht(O(ge),q)}function zc(){return M()===27?!0:M()===20||M()===1||t.hasPrecedingLineBreak()}function ic(){return zc()?(M()===27&&Fe(),!0):!1}function Bo(){return ic()||Pn(27)}function as(q,ge,Ae,tt){let Nt=y(q,tt);return Lm(Nt,ge,Ae??t.getTokenFullStart()),Nt}function Ht(q,ge,Ae){return Lm(q,ge,Ae??t.getTokenFullStart()),Un&&(q.flags|=Un),zt&&(zt=!1,q.flags|=262144),q}function Jo(q,ge,Ae,...tt){ge?ln(t.getTokenFullStart(),0,Ae,...tt):Ae&&tn(Ae,...tt);let Nt=ee(),rn=q===80?w("",void 0):H0(q)?p.createTemplateLiteralLikeNode(q,"","",void 0):q===9?S("",void 0):q===11?x("",void 0):q===282?p.createMissingDeclaration():O(q);return Ht(rn,Nt)}function nl(q){let ge=lt.get(q);return ge===void 0&<.set(q,ge=q),ge}function qu(q,ge,Ae){if(q){Jt++;let vi=ee(),fi=M(),ti=nl(t.getTokenValue()),Ji=t.hasExtendedUnicodeEscape();return De(),Ht(w(ti,fi,Ji),vi)}if(M()===81)return tn(Ae||d.Private_identifiers_are_not_allowed_outside_class_bodies),qu(!0);if(M()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return qu(!0);Jt++;let tt=M()===1,Nt=t.isReservedWord(),rn=t.getTokenText(),kr=Nt?d.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:d.Identifier_expected;return Jo(80,tt,ge||kr,rn)}function h_(q){return qu(ua(),void 0,q)}function Po(q,ge){return qu(js(),q,ge)}function Ic(q){return qu(Mu(M()),q)}function A(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&tn(d.Unicode_escape_sequence_cannot_appear_here),qu(Mu(M()))}function Pe(){return Mu(M())||M()===11||M()===9}function He(){return Mu(M())||M()===11}function kt(q){if(M()===11||M()===9){let ge=Vr();return ge.text=nl(ge.text),ge}return q&&M()===23?Ar():M()===81?Zn():Ic()}function gn(){return kt(!0)}function Ar(){let q=ee();Pn(23);let ge=Ce(Vl);return Pn(24),Ht(p.createComputedPropertyName(ge),q)}function Zn(){let q=ee(),ge=D(nl(t.getTokenValue()));return Fe(),Ht(ge,q)}function Tr(q){return M()===q&&mi(Dr)}function pi(){return Fe(),t.hasPrecedingLineBreak()?!1:_o()}function Dr(){switch(M()){case 87:return Fe()===94;case 95:return Fe(),M()===90?In(ul):M()===156?In(yc):Ea();case 90:return ul();case 126:case 139:case 153:return Fe(),_o();default:return pi()}}function Ea(){return M()===60||M()!==42&&M()!==130&&M()!==19&&_o()}function yc(){return Fe(),Ea()}function ll(){return Uh(M())&&mi(Dr)}function _o(){return M()===23||M()===19||M()===42||M()===26||Pe()}function ul(){return Fe(),M()===86||M()===100||M()===120||M()===60||M()===128&&In(z6)||M()===134&&In(yo)}function ro(q,ge){if(Ec(q))return!0;switch(q){case 0:case 1:case 3:return!(M()===27&&ge)&&WT();case 2:return M()===84||M()===90;case 4:return In(yy);case 5:return In(k0)||M()===27&&!ge;case 6:return M()===23||Pe();case 12:switch(M()){case 23:case 42:case 26:case 25:return!0;default:return Pe()}case 18:return Pe();case 9:return M()===23||M()===26||Pe();case 24:return He();case 7:return M()===19?In(Cl):ge?js()&&!tu():y0()&&!tu();case 8:return Ba();case 10:return M()===28||M()===26||Ba();case 19:return M()===103||M()===87||js();case 15:switch(M()){case 28:case 25:return!0}case 11:return M()===26||Ig();case 16:return We(!1);case 17:return We(!0);case 20:case 21:return M()===28||em();case 22:return k();case 23:return M()===161&&In(HT)?!1:Mu(M());case 13:return Mu(M())||M()===19;case 14:return!0;case 25:return!0;case 26:return E.fail("ParsingContext.Count used as a context");default:E.assertNever(q,"Non-exhaustive case in 'isListElement'.")}}function Cl(){if(E.assert(M()===19),Fe()===20){let q=Fe();return q===28||q===19||q===96||q===119}return!0}function t_(){return Fe(),js()}function Au(){return Fe(),Mu(M())}function Gf(){return Fe(),RK(M())}function tu(){return M()===119||M()===96?In(ye):!1}function ye(){return Fe(),Ig()}function Tt(){return Fe(),em()}function Ln(q){if(M()===1)return!0;switch(q){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return M()===20;case 3:return M()===20||M()===84||M()===90;case 7:return M()===19||M()===96||M()===119;case 8:return Gi();case 19:return M()===32||M()===21||M()===19||M()===96||M()===119;case 11:return M()===22||M()===27;case 15:case 21:case 10:return M()===24;case 17:case 16:case 18:return M()===22||M()===24;case 20:return M()!==28;case 22:return M()===19||M()===20;case 13:return M()===32||M()===44;case 14:return M()===30&&In(hn);default:return!1}}function Gi(){return!!(zc()||SS(M())||M()===39)}function Os(){E.assert(Gt,"Missing parsing context");for(let q=0;q<26;q++)if(Gt&1<=0)}function Ag(q){return q===6?d.An_enum_member_name_must_be_followed_by_a_or:void 0}function V_(){let q=as([],ee());return q.isMissingList=!0,q}function Xf(q){return!!q.isMissingList}function r_(q,ge,Ae,tt){if(Pn(Ae)){let Nt=du(q,ge);return Pn(tt),Nt}return V_()}function Q(q,ge){let Ae=ee(),tt=q?Ic(ge):Po(ge);for(;xs(25)&&M()!==30;)tt=Ht(p.createQualifiedName(tt,Pt(q,!1,!0)),Ae);return tt}function Ze(q,ge){return Ht(p.createQualifiedName(q,ge),q.pos)}function Pt(q,ge,Ae){if(t.hasPrecedingLineBreak()&&Mu(M())&&In(Ty))return Jo(80,!0,d.Identifier_expected);if(M()===81){let tt=Zn();return ge?tt:Jo(80,!0,d.Identifier_expected)}return q?Ae?Ic():A():Po()}function At(q){let ge=ee(),Ae=[],tt;do tt=zr(q),Ae.push(tt);while(tt.literal.kind===17);return as(Ae,ge)}function L(q){let ge=ee();return Ht(p.createTemplateExpression(Bi(q),At(q)),ge)}function pe(){let q=ee();return Ht(p.createTemplateLiteralType(Bi(!1),Ke()),q)}function Ke(){let q=ee(),ge=[],Ae;do Ae=It(),ge.push(Ae);while(Ae.literal.kind===17);return as(ge,q)}function It(){let q=ee();return Ht(p.createTemplateLiteralTypeSpan(Fl(),jn(!1)),q)}function jn(q){return M()===20?(nr(q),_a()):Do(18,d._0_expected,Zs(20))}function zr(q){let ge=ee();return Ht(p.createTemplateSpan(Ce(Vl),jn(q)),ge)}function Vr(){return sc(M())}function Bi(q){!q&&t.getTokenFlags()&26656&&nr(!1);let ge=sc(M());return E.assert(ge.kind===16,"Template head has wrong token kind"),ge}function _a(){let q=sc(M());return E.assert(q.kind===17||q.kind===18,"Template fragment has wrong token kind"),q}function fa(q){let ge=q===15||q===18,Ae=t.getTokenText();return Ae.substring(1,Ae.length-(t.isUnterminated()?0:ge?1:2))}function sc(q){let ge=ee(),Ae=H0(q)?p.createTemplateLiteralLikeNode(q,t.getTokenValue(),fa(q),t.getTokenFlags()&7176):q===9?S(t.getTokenValue(),t.getNumericLiteralFlags()):q===11?x(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):q4(q)?C(q,t.getTokenValue()):E.fail();return t.hasExtendedUnicodeEscape()&&(Ae.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(Ae.isUnterminated=!0),Fe(),Ht(Ae,ge)}function nu(){return Q(!0,d.Type_expected)}function hl(){if(!t.hasPrecedingLineBreak()&&br()===30)return r_(20,Fl,30,32)}function If(){let q=ee();return Ht(p.createTypeReferenceNode(nu(),hl()),q)}function ha(q){switch(q.kind){case 183:return dc(q.typeName);case 184:case 185:{let{parameters:ge,type:Ae}=q;return Xf(ge)||ha(Ae)}case 196:return ha(q.type);default:return!1}}function Dp(q){return Fe(),Ht(p.createTypePredicateNode(void 0,q,Fl()),q.pos)}function Ff(){let q=ee();return Fe(),Ht(p.createThisTypeNode(),q)}function Ng(){let q=ee();return Fe(),Ht(p.createJSDocAllType(),q)}function qm(){let q=ee();return Fe(),Ht(p.createJSDocNonNullableType(Cb(),!1),q)}function wi(){let q=ee();return Fe(),M()===28||M()===20||M()===22||M()===32||M()===64||M()===52?Ht(p.createJSDocUnknownType(),q):Ht(p.createJSDocNullableType(Fl(),!1),q)}function gy(){let q=ee(),ge=ue();if(In(ci)){Fe();let Ae=gr(36),tt=En(59,!1);return An(Ht(p.createJSDocFunctionType(Ae,tt),q),ge)}return Ht(p.createTypeReferenceNode(Ic(),void 0),q)}function hy(){let q=ee(),ge;return(M()===110||M()===105)&&(ge=Ic(),Pn(59)),Ht(p.createParameterDeclaration(void 0,void 0,ge,void 0,xd(),void 0),q)}function xd(){t.setInJSDocType(!0);let q=ee();if(xs(144)){let tt=p.createJSDocNamepathType(void 0);e:for(;;)switch(M()){case 20:case 1:case 28:case 5:break e;default:St()}return t.setInJSDocType(!1),Ht(tt,q)}let ge=xs(26),Ae=U1();return t.setInJSDocType(!1),ge&&(Ae=Ht(p.createJSDocVariadicType(Ae),q)),M()===64?(Fe(),Ht(p.createJSDocOptionalType(Ae),q)):Ae}function Sb(){let q=ee();Pn(114);let ge=Q(!0),Ae=t.hasPrecedingLineBreak()?void 0:Py();return Ht(p.createTypeQueryNode(ge,Ae),q)}function d0(){let q=ee(),ge=gu(!1,!0),Ae=Po(),tt,Nt;xs(96)&&(em()||!Ig()?tt=Fl():Nt=bc());let rn=xs(64)?Fl():void 0,kr=p.createTypeParameterDeclaration(ge,Ae,tt,rn);return kr.expression=Nt,Ht(kr,q)}function Ee(){if(M()===30)return r_(19,d0,30,32)}function We(q){return M()===26||Ba()||Uh(M())||M()===60||em(!q)}function xt(q){let ge=fr(d.Private_identifiers_cannot_be_used_as_parameters);return HP(ge)===0&&!ft(q)&&Uh(M())&&Fe(),ge}function jt(){return ua()||M()===23||M()===19}function nn(q){return sn(q)}function Bn(q){return sn(q,!1)}function sn(q,ge=!0){let Ae=ee(),tt=ue(),Nt=q?we(()=>gu(!0)):Be(()=>gu(!0));if(M()===110){let fi=p.createParameterDeclaration(Nt,void 0,qu(!0),void 0,h0(),void 0),ti=Pl(Nt);return ti&&j(ti,d.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),An(Ht(fi,Ae),tt)}let rn=cn;cn=!1;let kr=$s(26);if(!ge&&!jt())return;let vi=An(Ht(p.createParameterDeclaration(Nt,kr,xt(Nt),$s(58),h0(),Yf()),Ae),tt);return cn=rn,vi}function En(q,ge){if(oi(q,ge))return it(U1)}function oi(q,ge){return q===39?(Pn(q),!0):xs(59)?!0:ge&&M()===39?(tn(d._0_expected,Zs(59)),Fe(),!0):!1}function mr(q,ge){let Ae=wt(),tt=Zt();Wi(!!(q&1)),Ki(!!(q&2));let Nt=q&32?du(17,hy):du(16,()=>ge?nn(tt):Bn(tt));return Wi(Ae),Ki(tt),Nt}function gr(q){if(!Pn(21))return V_();let ge=mr(q,!0);return Pn(22),ge}function _r(){xs(28)||Bo()}function Oi(q){let ge=ee(),Ae=ue();q===180&&Pn(105);let tt=Ee(),Nt=gr(4),rn=En(59,!0);_r();let kr=q===179?p.createCallSignature(tt,Nt,rn):p.createConstructSignature(tt,Nt,rn);return An(Ht(kr,ge),Ae)}function io(){return M()===23&&In(Za)}function Za(){if(Fe(),M()===26||M()===24)return!0;if(Uh(M())){if(Fe(),js())return!0}else if(js())Fe();else return!1;return M()===59||M()===28?!0:M()!==58?!1:(Fe(),M()===59||M()===28||M()===24)}function W_(q,ge,Ae){let tt=r_(16,()=>nn(!1),23,24),Nt=h0();_r();let rn=p.createIndexSignature(Ae,tt,Nt);return An(Ht(rn,q),ge)}function J1(q,ge,Ae){let tt=gn(),Nt=$s(58),rn;if(M()===21||M()===30){let kr=Ee(),vi=gr(4),fi=En(59,!0);rn=p.createMethodSignature(Ae,tt,Nt,kr,vi,fi)}else{let kr=h0();rn=p.createPropertySignature(Ae,tt,Nt,kr),M()===64&&(rn.initializer=Yf())}return _r(),An(Ht(rn,q),ge)}function yy(){if(M()===21||M()===30||M()===139||M()===153)return!0;let q=!1;for(;Uh(M());)q=!0,Fe();return M()===23?!0:(Pe()&&(q=!0,Fe()),q?M()===21||M()===30||M()===58||M()===59||M()===28||zc():!1)}function mh(){if(M()===21||M()===30)return Oi(179);if(M()===105&&In(vy))return Oi(180);let q=ee(),ge=ue(),Ae=gu(!1);return Tr(139)?Fp(q,ge,Ae,177,4):Tr(153)?Fp(q,ge,Ae,178,4):io()?W_(q,ge,Ae):J1(q,ge,Ae)}function vy(){return Fe(),M()===21||M()===30}function _S(){return Fe()===25}function xb(){switch(Fe()){case 21:case 30:case 25:return!0}return!1}function fS(){let q=ee();return Ht(p.createTypeLiteralNode(pS()),q)}function pS(){let q;return Pn(19)?(q=Bs(4,mh),Pn(20)):q=V_(),q}function _D(){return Fe(),M()===40||M()===41?Fe()===148:(M()===148&&Fe(),M()===23&&t_()&&Fe()===103)}function AT(){let q=ee(),ge=Ic();Pn(103);let Ae=Fl();return Ht(p.createTypeParameterDeclaration(void 0,ge,Ae,void 0),q)}function w6(){let q=ee();Pn(19);let ge;(M()===148||M()===40||M()===41)&&(ge=Jc(),ge.kind!==148&&Pn(148)),Pn(23);let Ae=AT(),tt=xs(130)?Fl():void 0;Pn(24);let Nt;(M()===58||M()===40||M()===41)&&(Nt=Jc(),Nt.kind!==58&&Pn(58));let rn=h0();Bo();let kr=Bs(4,mh);return Pn(20),Ht(p.createMappedTypeNode(ge,Ae,tt,Nt,rn,kr),q)}function z1(){let q=ee();if(xs(26))return Ht(p.createRestTypeNode(Fl()),q);let ge=Fl();if(wC(ge)&&ge.pos===ge.type.pos){let Ae=p.createOptionalTypeNode(ge.type);return nt(Ae,ge),Ae.flags=ge.flags,Ae}return ge}function NT(){return Fe()===59||M()===58&&Fe()===59}function IT(){return M()===26?Mu(Fe())&&NT():Mu(M())&&NT()}function A6(){if(In(IT)){let q=ee(),ge=ue(),Ae=$s(26),tt=Ic(),Nt=$s(58);Pn(59);let rn=z1(),kr=p.createNamedTupleMember(Ae,tt,Nt,rn);return An(Ht(kr,q),ge)}return z1()}function dS(){let q=ee();return Ht(p.createTupleTypeNode(r_(21,A6,23,24)),q)}function N6(){let q=ee();Pn(21);let ge=Fl();return Pn(22),Ht(p.createParenthesizedType(ge),q)}function FT(){let q;if(M()===128){let ge=ee();Fe();let Ae=Ht(O(128),ge);q=as([Ae],ge)}return q}function OT(){let q=ee(),ge=ue(),Ae=FT(),tt=xs(105);E.assert(!Ae||tt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let Nt=Ee(),rn=gr(4),kr=En(39,!1),vi=tt?p.createConstructorTypeNode(Ae,Nt,rn,kr):p.createFunctionTypeNode(Nt,rn,kr);return An(Ht(vi,q),ge)}function mS(){let q=Jc();return M()===25?void 0:q}function Tb(q){let ge=ee();q&&Fe();let Ae=M()===112||M()===97||M()===106?Jc():sc(M());return q&&(Ae=Ht(p.createPrefixUnaryExpression(41,Ae),ge)),Ht(p.createLiteralTypeNode(Ae),ge)}function kb(){return Fe(),M()===102}function V1(){he|=4194304;let q=ee(),ge=xs(114);Pn(102),Pn(21);let Ae=Fl(),tt;if(xs(28)){let kr=t.getTokenStart();Pn(19);let vi=M();if(vi===118||vi===132?Fe():tn(d._0_expected,Zs(118)),Pn(59),tt=sv(vi,!0),!Pn(20)){let fi=qo(Oe);fi&&fi.code===d._0_expected.code&&ga(fi,_C(ke,be,kr,1,d.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Pn(22);let Nt=xs(25)?nu():void 0,rn=hl();return Ht(p.createImportTypeNode(Ae,tt,Nt,rn,ge),q)}function m0(){return Fe(),M()===9||M()===10}function Cb(){switch(M()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return mi(mS)||If();case 67:t.reScanAsteriskEqualsToken();case 42:return Ng();case 61:t.reScanQuestionToken();case 58:return wi();case 100:return gy();case 54:return qm();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Tb();case 41:return In(m0)?Tb(!0):If();case 116:return Jc();case 110:{let q=Ff();return M()===142&&!t.hasPrecedingLineBreak()?Dp(q):q}case 114:return In(kb)?V1():Sb();case 19:return In(_D)?w6():fS();case 23:return dS();case 21:return N6();case 102:return V1();case 131:return In(Ty)?q1():If();case 16:return pe();default:return If()}}function em(q){switch(M()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!q;case 41:return!q&&In(m0);case 21:return!q&&In(Ra);default:return js()}}function Ra(){return Fe(),M()===22||We(!1)||em()}function gS(){let q=ee(),ge=Cb();for(;!t.hasPrecedingLineBreak();)switch(M()){case 54:Fe(),ge=Ht(p.createJSDocNonNullableType(ge,!0),q);break;case 58:if(In(Tt))return ge;Fe(),ge=Ht(p.createJSDocNullableType(ge,!0),q);break;case 23:if(Pn(23),em()){let Ae=Fl();Pn(24),ge=Ht(p.createIndexedAccessTypeNode(ge,Ae),q)}else Pn(24),ge=Ht(p.createArrayTypeNode(ge),q);break;default:return ge}return ge}function I6(q){let ge=ee();return Pn(q),Ht(p.createTypeOperatorNode(q,Qf()),ge)}function by(){if(xs(96)){let q=dt(Fl);if(ot()||M()!==58)return q}}function g0(){let q=ee(),ge=Po(),Ae=mi(by),tt=p.createTypeParameterDeclaration(void 0,ge,Ae);return Ht(tt,q)}function Hm(){let q=ee();return Pn(140),Ht(p.createInferTypeNode(g0()),q)}function Qf(){let q=M();switch(q){case 143:case 158:case 148:return I6(q);case 140:return Hm()}return it(gS)}function U_(q){if(LT()){let ge=OT(),Ae;return Tg(ge)?Ae=q?d.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:d.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:Ae=q?d.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:d.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,j(ge,Ae),ge}}function i_(q,ge,Ae){let tt=ee(),Nt=q===52,rn=xs(q),kr=rn&&U_(Nt)||ge();if(M()===q||rn){let vi=[kr];for(;xs(q);)vi.push(U_(Nt)||ge());kr=Ht(Ae(as(vi,tt)),tt)}return kr}function of(){return i_(51,Qf,p.createIntersectionTypeNode)}function W1(){return i_(52,of,p.createUnionTypeNode)}function F6(){return Fe(),M()===105}function LT(){return M()===30||M()===21&&In(Eb)?!0:M()===105||M()===128&&In(F6)}function hS(){if(Uh(M())&&gu(!1),js()||M()===110)return Fe(),!0;if(M()===23||M()===19){let q=Oe.length;return fr(),q===Oe.length}return!1}function Eb(){return Fe(),!!(M()===22||M()===26||hS()&&(M()===59||M()===28||M()===58||M()===64||M()===22&&(Fe(),M()===39)))}function U1(){let q=ee(),ge=js()&&mi(yS),Ae=Fl();return ge?Ht(p.createTypePredicateNode(void 0,ge,Ae),q):Ae}function yS(){let q=Po();if(M()===142&&!t.hasPrecedingLineBreak())return Fe(),q}function q1(){let q=ee(),ge=Do(131),Ae=M()===110?Ff():Po(),tt=xs(142)?Fl():void 0;return Ht(p.createTypePredicateNode(ge,Ae,tt),q)}function Fl(){if(Un&81920)return na(81920,Fl);if(LT())return OT();let q=ee(),ge=W1();if(!ot()&&!t.hasPrecedingLineBreak()&&xs(96)){let Ae=dt(Fl);Pn(58);let tt=it(Fl);Pn(59);let Nt=it(Fl);return Ht(p.createConditionalTypeNode(ge,Ae,tt,Nt),q)}return ge}function h0(){return xs(59)?Fl():void 0}function y0(){switch(M()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return In(xb);default:return js()}}function Ig(){if(y0())return!0;switch(M()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return xS()?!0:js()}}function je(){return M()!==19&&M()!==100&&M()!==86&&M()!==60&&Ig()}function Vl(){let q=Dt();q&&Ii(!1);let ge=ee(),Ae=Hu(!0),tt;for(;tt=$s(28);)Ae=Ti(Ae,tt,Hu(!0),ge);return q&&Ii(!0),Ae}function Yf(){return xs(64)?Hu(!0):void 0}function Hu(q){if(O6())return H1();let ge=fD(q)||bS(q);if(ge)return ge;let Ae=ee(),tt=ue(),Nt=Og(0);return Nt.kind===80&&M()===39?Fg(Ae,Nt,q,tt,void 0):x_(Nt)&&Xh(Wt())?Ti(Nt,Jc(),Hu(q),Ae):kd(Nt,Ae,q)}function O6(){return M()===127?wt()?!0:In(V6):!1}function v0(){return Fe(),!t.hasPrecedingLineBreak()&&js()}function H1(){let q=ee();return Fe(),!t.hasPrecedingLineBreak()&&(M()===42||Ig())?Ht(p.createYieldExpression($s(42),Hu(!0)),q):Ht(p.createYieldExpression(void 0,void 0),q)}function Fg(q,ge,Ae,tt,Nt){E.assert(M()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let rn=p.createParameterDeclaration(void 0,void 0,ge,void 0,void 0,void 0);Ht(rn,ge.pos);let kr=as([rn],rn.pos,rn.end),vi=Do(39),fi=Pp(!!Nt,Ae),ti=p.createArrowFunction(Nt,void 0,kr,void 0,vi,fi);return An(Ht(ti,q),tt)}function fD(q){let ge=ja();if(ge!==0)return ge===1?Pb(!0,!0):mi(()=>vS(q))}function ja(){return M()===21||M()===30||M()===134?In(Td):M()===39?1:0}function Td(){if(M()===134&&(Fe(),t.hasPrecedingLineBreak()||M()!==21&&M()!==30))return 0;let q=M(),ge=Fe();if(q===21){if(ge===22)switch(Fe()){case 39:case 59:case 19:return 1;default:return 0}if(ge===23||ge===19)return 2;if(ge===26)return 1;if(Uh(ge)&&ge!==134&&In(t_))return Fe()===130?0:1;if(!js()&&ge!==110)return 0;switch(Fe()){case 59:return 1;case 58:return Fe(),M()===59||M()===28||M()===64||M()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return E.assert(q===30),!js()&&M()!==87?0:me===1?In(()=>{xs(87);let tt=Fe();if(tt===96)switch(Fe()){case 64:case 32:case 44:return!1;default:return!0}else if(tt===28||tt===64)return!0;return!1})?1:0:2}function vS(q){let ge=t.getTokenStart();if(Tn?.has(ge))return;let Ae=Pb(!1,q);return Ae||(Tn||(Tn=new Set)).add(ge),Ae}function bS(q){if(M()===134&&In(Db)===1){let ge=ee(),Ae=ue(),tt=rv(),Nt=Og(0);return Fg(ge,Nt,q,Ae,tt)}}function Db(){if(M()===134){if(Fe(),t.hasPrecedingLineBreak()||M()===39)return 0;let q=Og(0);if(!t.hasPrecedingLineBreak()&&q.kind===80&&M()===39)return 1}return 0}function Pb(q,ge){let Ae=ee(),tt=ue(),Nt=rv(),rn=ft(Nt,HE)?2:0,kr=Ee(),vi;if(Pn(21)){if(q)vi=mr(rn,q);else{let Ay=mr(rn,q);if(!Ay)return;vi=Ay}if(!Pn(22)&&!q)return}else{if(!q)return;vi=V_()}let fi=M()===59,ti=En(59,!1);if(ti&&!q&&ha(ti))return;let Ji=ti;for(;Ji?.kind===196;)Ji=Ji.type;let ao=Ji&&AC(Ji);if(!q&&M()!==39&&(ao||M()!==19))return;let Wa=M(),Ja=Do(39),np=Wa===39||Wa===19?Pp(ft(Nt,HE),ge):Po();if(!ge&&fi&&M()!==59)return;let id=p.createArrowFunction(Nt,kr,vi,ti,Ja,np);return An(Ht(id,Ae),tt)}function Pp(q,ge){if(M()===19)return xy(q?2:0);if(M()!==27&&M()!==100&&M()!==86&&WT()&&!je())return xy(16|(q?2:0));let Ae=cn;cn=!1;let tt=q?we(()=>Hu(ge)):Be(()=>Hu(ge));return cn=Ae,tt}function kd(q,ge,Ae){let tt=$s(58);if(!tt)return q;let Nt;return Ht(p.createConditionalExpression(q,tt,na(n,()=>Hu(!1)),Nt=Do(59),fp(Nt)?Hu(Ae):Jo(80,!1,d._0_expected,Zs(59))),ge)}function Og(q){let ge=ee(),Ae=bc();return tm(q,Ae,ge)}function SS(q){return q===103||q===165}function tm(q,ge,Ae){for(;;){Wt();let tt=ww(M());if(!(M()===43?tt>=q:tt>q)||M()===103&&Re())break;if(M()===130||M()===152){if(t.hasPrecedingLineBreak())break;{let rn=M();Fe(),ge=rn===152?L6(ge,Fl()):Hr(ge,Fl())}}else ge=Ti(ge,Jc(),Og(tt),Ae)}return ge}function xS(){return Re()&&M()===103?!1:ww(M())>0}function L6(q,ge){return Ht(p.createSatisfiesExpression(q,ge),q.pos)}function Ti(q,ge,Ae,tt){return Ht(p.createBinaryExpression(q,ge,Ae),tt)}function Hr(q,ge){return Ht(p.createAsExpression(q,ge),q.pos)}function nm(){let q=ee();return Ht(p.createPrefixUnaryExpression(M(),qe(Gu)),q)}function P_(){let q=ee();return Ht(p.createDeleteExpression(qe(Gu)),q)}function M6(){let q=ee();return Ht(p.createTypeOfExpression(qe(Gu)),q)}function b0(){let q=ee();return Ht(p.createVoidExpression(qe(Gu)),q)}function R6(){return M()===135?Zt()?!0:In(V6):!1}function wb(){let q=ee();return Ht(p.createAwaitExpression(qe(Gu)),q)}function bc(){if(gh()){let Ae=ee(),tt=Gm();return M()===43?tm(ww(M()),tt,Ae):tt}let q=M(),ge=Gu();if(M()===43){let Ae=ma(be,ge.pos),{end:tt}=ge;ge.kind===216?W(Ae,tt,d.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(E.assert(b5(q)),W(Ae,tt,d.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,Zs(q)))}return ge}function Gu(){switch(M()){case 40:case 41:case 55:case 54:return nm();case 91:return P_();case 114:return M6();case 116:return b0();case 30:return me===1?Mg(!0,void 0,void 0,!0):$1();case 135:if(R6())return wb();default:return Gm()}}function gh(){switch(M()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(me!==1)return!1;default:return!0}}function Gm(){if(M()===46||M()===47){let ge=ee();return Ht(p.createPrefixUnaryExpression(M(),qe(Lg)),ge)}else if(me===1&&M()===30&&In(Gf))return Mg(!0);let q=Lg();if(E.assert(x_(q)),(M()===46||M()===47)&&!t.hasPrecedingLineBreak()){let ge=M();return Fe(),Ht(p.createPostfixUnaryExpression(q,ge),q.pos)}return q}function Lg(){let q=ee(),ge;return M()===102?In(vy)?(he|=4194304,ge=Jc()):In(_S)?(Fe(),Fe(),ge=Ht(p.createMetaProperty(102,Ic()),q),he|=8388608):ge=nd():ge=M()===108?G1():nd(),Ap(q,ge)}function nd(){let q=ee(),ge=El();return ns(q,ge,!0)}function G1(){let q=ee(),ge=Jc();if(M()===30){let Ae=ee(),tt=mi(Nb);tt!==void 0&&(W(Ae,ee(),d.super_may_not_use_type_arguments),y_()||(ge=p.createExpressionWithTypeArguments(ge,tt)))}return M()===21||M()===25||M()===23?ge:(Do(25,d.super_must_be_followed_by_an_argument_list_or_member_access),Ht(X(ge,Pt(!0,!0,!0)),q))}function Mg(q,ge,Ae,tt=!1){let Nt=ee(),rn=Xm(q),kr;if(rn.kind===286){let vi=B6(rn),fi,ti=vi[vi.length-1];if(ti?.kind===284&&!D1(ti.openingElement.tagName,ti.closingElement.tagName)&&D1(rn.tagName,ti.closingElement.tagName)){let Ji=ti.children.end,ao=Ht(p.createJsxElement(ti.openingElement,ti.children,Ht(p.createJsxClosingElement(Ht(w(""),Ji,Ji)),Ji,Ji)),ti.openingElement.pos,Ji);vi=as([...vi.slice(0,vi.length-1),ao],vi.pos,Ji),fi=ti.closingElement}else fi=jT(rn,q),D1(rn.tagName,fi.tagName)||(Ae&&Gd(Ae)&&D1(fi.tagName,Ae.tagName)?j(rn.tagName,d.JSX_element_0_has_no_corresponding_closing_tag,Y4(be,rn.tagName)):j(fi.tagName,d.Expected_corresponding_JSX_closing_tag_for_0,Y4(be,rn.tagName)));kr=Ht(p.createJsxElement(rn,vi,fi),Nt)}else rn.kind===289?kr=Ht(p.createJsxFragment(rn,B6(rn),wp(q)),Nt):(E.assert(rn.kind===285),kr=rn);if(!tt&&q&&M()===30){let vi=typeof ge>"u"?kr.pos:ge,fi=mi(()=>Mg(!0,vi));if(fi){let ti=Jo(28,!1);return LE(ti,fi.pos,0),W(ma(be,vi),fi.end,d.JSX_expressions_must_have_one_parent_element),Ht(p.createBinaryExpression(kr,ti,fi),Nt)}}return kr}function j6(){let q=ee(),ge=p.createJsxText(t.getTokenValue(),ht===13);return ht=t.scanJsxToken(),Ht(ge,q)}function $m(q,ge){switch(ge){case 1:if(Zx(q))j(q,d.JSX_fragment_has_no_corresponding_closing_tag);else{let Ae=q.tagName,tt=Math.min(ma(be,Ae.pos),Ae.end);W(tt,Ae.end,d.JSX_element_0_has_no_corresponding_closing_tag,Y4(be,q.tagName))}return;case 31:case 7:return;case 12:case 13:return j6();case 19:return MT(!1);case 30:return Mg(!1,void 0,q);default:return E.assertNever(ge)}}function B6(q){let ge=[],Ae=ee(),tt=Gt;for(Gt|=16384;;){let Nt=$m(q,ht=t.reScanJsxToken());if(!Nt||(ge.push(Nt),Gd(q)&&Nt?.kind===284&&!D1(Nt.openingElement.tagName,Nt.closingElement.tagName)&&D1(q.tagName,Nt.closingElement.tagName)))break}return Gt=tt,as(ge,Ae)}function rm(){let q=ee();return Ht(p.createJsxAttributes(Bs(13,pD)),q)}function Xm(q){let ge=ee();if(Pn(30),M()===32)return Mi(),Ht(p.createJsxOpeningFragment(),ge);let Ae=S0(),tt=Un&524288?void 0:Py(),Nt=rm(),rn;return M()===32?(Mi(),rn=p.createJsxOpeningElement(Ae,tt,Nt)):(Pn(44),Pn(32,void 0,!1)&&(q?Fe():Mi()),rn=p.createJsxSelfClosingElement(Ae,tt,Nt)),Ht(rn,ge)}function S0(){let q=ee(),ge=J6();if(md(ge))return ge;let Ae=ge;for(;xs(25);)Ae=Ht(X(Ae,Pt(!0,!1,!1)),q);return Ae}function J6(){let q=ee();Br();let ge=M()===110,Ae=A();return xs(59)?(Br(),Ht(p.createJsxNamespacedName(Ae,A()),q)):ge?Ht(p.createToken(110),q):Ae}function MT(q){let ge=ee();if(!Pn(19))return;let Ae,tt;return M()!==20&&(q||(Ae=$s(26)),tt=Vl()),q?Pn(20):Pn(20,void 0,!1)&&Mi(),Ht(p.createJsxExpression(Ae,tt),ge)}function pD(){if(M()===19)return Ab();let q=ee();return Ht(p.createJsxAttribute(fo(),RT()),q)}function RT(){if(M()===64){if(wr()===11)return Vr();if(M()===19)return MT(!0);if(M()===30)return Mg(!0);tn(d.or_JSX_element_expected)}}function fo(){let q=ee();Br();let ge=A();return xs(59)?(Br(),Ht(p.createJsxNamespacedName(ge,A()),q)):ge}function Ab(){let q=ee();Pn(19),Pn(26);let ge=Vl();return Pn(20),Ht(p.createJsxSpreadAttribute(ge),q)}function jT(q,ge){let Ae=ee();Pn(31);let tt=S0();return Pn(32,void 0,!1)&&(ge||!D1(q.tagName,tt)?Fe():Mi()),Ht(p.createJsxClosingElement(tt),Ae)}function wp(q){let ge=ee();return Pn(31),Pn(32,d.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(q?Fe():Mi()),Ht(p.createJsxJsxClosingFragment(),ge)}function $1(){E.assert(me!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let q=ee();Pn(30);let ge=Fl();Pn(32);let Ae=Gu();return Ht(p.createTypeAssertion(ge,Ae),q)}function BT(){return Fe(),Mu(M())||M()===23||y_()}function dD(){return M()===29&&In(BT)}function TS(q){if(q.flags&64)return!0;if(Qx(q)){let ge=q.expression;for(;Qx(ge)&&!(ge.flags&64);)ge=ge.expression;if(ge.flags&64){for(;Qx(q);)q.flags|=64,q=q.expression;return!0}}return!1}function rr(q,ge,Ae){let tt=Pt(!0,!0,!0),Nt=Ae||TS(ge),rn=Nt?J(ge,Ae,tt):X(ge,tt);if(Nt&&Di(rn.name)&&j(rn.name,d.An_optional_chain_cannot_contain_private_identifiers),t0(ge)&&ge.typeArguments){let kr=ge.typeArguments.pos-1,vi=ma(be,ge.typeArguments.end)+1;W(kr,vi,d.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Ht(rn,q)}function ru(q,ge,Ae){let tt;if(M()===24)tt=Jo(80,!0,d.An_element_access_expression_should_take_an_argument);else{let rn=Ce(Vl);vf(rn)&&(rn.text=nl(rn.text)),tt=rn}Pn(24);let Nt=Ae||TS(ge)?B(ge,Ae,tt):ie(ge,tt);return Ht(Nt,q)}function ns(q,ge,Ae){for(;;){let tt,Nt=!1;if(Ae&&dD()?(tt=Do(29),Nt=Mu(M())):Nt=xs(25),Nt){ge=rr(q,ge,tt);continue}if((tt||!Dt())&&xs(23)){ge=ru(q,ge,tt);continue}if(y_()){ge=!tt&&ge.kind===233?im(q,ge.expression,tt,ge.typeArguments):im(q,ge,tt,void 0);continue}if(!tt){if(M()===54&&!t.hasPrecedingLineBreak()){Fe(),ge=Ht(p.createNonNullExpression(ge),q);continue}let rn=mi(Nb);if(rn){ge=Ht(p.createExpressionWithTypeArguments(ge,rn),q);continue}}return ge}}function y_(){return M()===15||M()===16}function im(q,ge,Ae,tt){let Nt=p.createTaggedTemplateExpression(ge,tt,M()===15?(nr(!0),Vr()):L(!0));return(Ae||ge.flags&64)&&(Nt.flags|=64),Nt.questionDotToken=Ae,Ht(Nt,q)}function Ap(q,ge){for(;;){ge=ns(q,ge,!0);let Ae,tt=$s(29);if(tt&&(Ae=mi(Nb),y_())){ge=im(q,ge,tt,Ae);continue}if(Ae||M()===21){!tt&&ge.kind===233&&(Ae=ge.typeArguments,ge=ge.expression);let Nt=Hn(),rn=tt||TS(ge)?ae(ge,tt,Ae,Nt):Z(ge,Ae,Nt);ge=Ht(rn,q);continue}if(tt){let Nt=Jo(80,!1,d.Identifier_expected);ge=Ht(J(ge,tt,Nt),q)}break}return ge}function Hn(){Pn(21);let q=du(11,JT);return Pn(22),q}function Nb(){if(Un&524288||br()!==30)return;Fe();let q=du(20,Fl);if(Wt()===32)return Fe(),q&&X1()?q:void 0}function X1(){switch(M()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||xS()||!Ig()}function El(){switch(M()){case 15:t.getTokenFlags()&26656&&nr(!1);case 9:case 10:case 11:return Vr();case 110:case 108:case 106:case 112:case 97:return Jc();case 21:return sm();case 23:return hh();case 19:return Y1();case 134:if(!In(yo))break;return Rg();case 60:return PS();case 86:return q6();case 100:return Rg();case 105:return kS();case 44:case 69:if(Rn()===14)return Vr();break;case 16:return L(!1);case 81:return Zn()}return Po(d.Expression_expected)}function sm(){let q=ee(),ge=ue();Pn(21);let Ae=Ce(Vl);return Pn(22),An(Ht($(Ae),q),ge)}function am(){let q=ee();Pn(26);let ge=Hu(!0);return Ht(p.createSpreadElement(ge),q)}function Sy(){return M()===26?am():M()===28?Ht(p.createOmittedExpression(),ee()):Hu(!0)}function JT(){return na(n,Sy)}function hh(){let q=ee(),ge=t.getTokenStart(),Ae=Pn(23),tt=t.hasPrecedingLineBreak(),Nt=du(15,Sy);return Ho(23,24,Ae,ge),Ht(z(Nt,tt),q)}function Q1(){let q=ee(),ge=ue();if($s(26)){let Ji=Hu(!0);return An(Ht(p.createSpreadAssignment(Ji),q),ge)}let Ae=gu(!0);if(Tr(139))return Fp(q,ge,Ae,177,0);if(Tr(153))return Fp(q,ge,Ae,178,0);let tt=$s(42),Nt=js(),rn=gn(),kr=$s(58),vi=$s(54);if(tt||M()===21||M()===30)return Ip(q,ge,Ae,tt,rn,kr,vi);let fi;if(Nt&&M()!==59){let Ji=$s(64),ao=Ji?Ce(()=>Hu(!0)):void 0;fi=p.createShorthandPropertyAssignment(rn,ao),fi.equalsToken=Ji}else{Pn(59);let Ji=Ce(()=>Hu(!0));fi=p.createPropertyAssignment(rn,Ji)}return fi.modifiers=Ae,fi.questionToken=kr,fi.exclamationToken=vi,An(Ht(fi,q),ge)}function Y1(){let q=ee(),ge=t.getTokenStart(),Ae=Pn(19),tt=t.hasPrecedingLineBreak(),Nt=du(12,Q1,!0);return Ho(19,20,Ae,ge),Ht(V(Nt,tt),q)}function Rg(){let q=Dt();Ii(!1);let ge=ee(),Ae=ue(),tt=gu(!1);Pn(100);let Nt=$s(42),rn=Nt?1:0,kr=ft(tt,HE)?2:0,vi=rn&&kr?yt(Qm):rn?gt(Qm):kr?we(Qm):Qm(),fi=Ee(),ti=gr(rn|kr),Ji=En(59,!1),ao=xy(rn|kr);Ii(q);let Wa=p.createFunctionExpression(tt,Nt,vi,fi,ti,Ji,ao);return An(Ht(Wa,ge),Ae)}function Qm(){return ua()?h_():void 0}function kS(){let q=ee();if(Pn(105),xs(25)){let rn=Ic();return Ht(p.createMetaProperty(105,rn),q)}let ge=ee(),Ae=ns(ge,El(),!1),tt;Ae.kind===233&&(tt=Ae.typeArguments,Ae=Ae.expression),M()===29&&tn(d.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Y4(be,Ae));let Nt=M()===21?Hn():void 0;return Ht(_e(Ae,tt,Nt),q)}function yh(q,ge){let Ae=ee(),tt=ue(),Nt=t.getTokenStart(),rn=Pn(19,ge);if(rn||q){let kr=t.hasPrecedingLineBreak(),vi=Bs(1,Of);Ho(19,20,rn,Nt);let fi=An(Ht(H(vi,kr),Ae),tt);return M()===64&&(tn(d.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),Fe()),fi}else{let kr=V_();return An(Ht(H(kr,void 0),Ae),tt)}}function xy(q,ge){let Ae=wt();Wi(!!(q&1));let tt=Zt();Ki(!!(q&2));let Nt=cn;cn=!1;let rn=Dt();rn&&Ii(!1);let kr=yh(!!(q&16),ge);return rn&&Ii(!0),cn=Nt,Wi(Ae),Ki(tt),kr}function Ib(){let q=ee(),ge=ue();return Pn(27),An(Ht(p.createEmptyStatement(),q),ge)}function zT(){let q=ee(),ge=ue();Pn(101);let Ae=t.getTokenStart(),tt=Pn(21),Nt=Ce(Vl);Ho(21,22,tt,Ae);let rn=Of(),kr=xs(93)?Of():void 0;return An(Ht(Se(Nt,rn,kr),q),ge)}function CS(){let q=ee(),ge=ue();Pn(92);let Ae=Of();Pn(117);let tt=t.getTokenStart(),Nt=Pn(21),rn=Ce(Vl);return Ho(21,22,Nt,tt),xs(27),An(Ht(p.createDoStatement(Ae,rn),q),ge)}function Fb(){let q=ee(),ge=ue();Pn(117);let Ae=t.getTokenStart(),tt=Pn(21),Nt=Ce(Vl);Ho(21,22,tt,Ae);let rn=Of();return An(Ht(se(Nt,rn),q),ge)}function Zf(){let q=ee(),ge=ue();Pn(99);let Ae=$s(135);Pn(21);let tt;M()!==27&&(M()===115||M()===121||M()===87||M()===160&&In(vh)||M()===135&&In(UT)?tt=Rb(!0):tt=Ue(Vl));let Nt;if(Ae?Pn(165):xs(165)){let rn=Ce(()=>Hu(!0));Pn(22),Nt=ve(Ae,tt,rn,Of())}else if(xs(103)){let rn=Ce(Vl);Pn(22),Nt=p.createForInStatement(tt,rn,Of())}else{Pn(27);let rn=M()!==27&&M()!==22?Ce(Vl):void 0;Pn(27);let kr=M()!==22?Ce(Vl):void 0;Pn(22),Nt=Y(tt,rn,kr,Of())}return An(Ht(Nt,q),ge)}function Z1(q){let ge=ee(),Ae=ue();Pn(q===252?83:88);let tt=zc()?void 0:Po();Bo();let Nt=q===252?p.createBreakStatement(tt):p.createContinueStatement(tt);return An(Ht(Nt,ge),Ae)}function Oc(){let q=ee(),ge=ue();Pn(107);let Ae=zc()?void 0:Ce(Vl);return Bo(),An(Ht(p.createReturnStatement(Ae),q),ge)}function yl(){let q=ee(),ge=ue();Pn(118);let Ae=t.getTokenStart(),tt=Pn(21),Nt=Ce(Vl);Ho(21,22,tt,Ae);let rn=Fs(67108864,Of);return An(Ht(p.createWithStatement(Nt,rn),q),ge)}function VT(){let q=ee(),ge=ue();Pn(84);let Ae=Ce(Vl);Pn(59);let tt=Bs(3,Of);return An(Ht(p.createCaseClause(Ae,tt),q),ge)}function mu(){let q=ee();Pn(90),Pn(59);let ge=Bs(3,Of);return Ht(p.createDefaultClause(ge),q)}function w_(){return M()===84?VT():mu()}function Ob(){let q=ee();Pn(19);let ge=Bs(2,w_);return Pn(20),Ht(p.createCaseBlock(ge),q)}function Kf(){let q=ee(),ge=ue();Pn(109),Pn(21);let Ae=Ce(Vl);Pn(22);let tt=Ob();return An(Ht(p.createSwitchStatement(Ae,tt),q),ge)}function K1(){let q=ee(),ge=ue();Pn(111);let Ae=t.hasPrecedingLineBreak()?void 0:Ce(Vl);return Ae===void 0&&(Jt++,Ae=Ht(w(""),ee())),ic()||_s(Ae),An(Ht(p.createThrowStatement(Ae),q),ge)}function x0(){let q=ee(),ge=ue();Pn(113);let Ae=yh(!1),tt=M()===85?Wl():void 0,Nt;return(!tt||M()===98)&&(Pn(98,d.catch_or_finally_expected),Nt=yh(!1)),An(Ht(p.createTryStatement(Ae,tt,Nt),q),ge)}function Wl(){let q=ee();Pn(85);let ge;xs(21)?(ge=v_(),Pn(22)):ge=void 0;let Ae=yh(!1);return Ht(p.createCatchClause(ge,Ae),q)}function ES(){let q=ee(),ge=ue();return Pn(89),Bo(),An(Ht(p.createDebuggerStatement(),q),ge)}function Np(){let q=ee(),ge=ue(),Ae,tt=M()===21,Nt=Ce(Vl);return Ie(Nt)&&xs(59)?Ae=p.createLabeledStatement(Nt,Of()):(ic()||_s(Nt),Ae=oe(Nt),tt&&(ge=!1)),An(Ht(Ae,q),ge)}function Ty(){return Fe(),Mu(M())&&!t.hasPrecedingLineBreak()}function z6(){return Fe(),M()===86&&!t.hasPrecedingLineBreak()}function yo(){return Fe(),M()===100&&!t.hasPrecedingLineBreak()}function V6(){return Fe(),(Mu(M())||M()===9||M()===10||M()===11)&&!t.hasPrecedingLineBreak()}function DS(){for(;;)switch(M()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return cf();case 135:return ky();case 120:case 156:return v0();case 144:case 145:return GT();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let q=M();if(Fe(),t.hasPrecedingLineBreak())return!1;if(q===138&&M()===156)return!0;continue;case 162:return Fe(),M()===19||M()===80||M()===95;case 102:return Fe(),M()===11||M()===42||M()===19||Mu(M());case 95:let ge=Fe();if(ge===156&&(ge=In(Fe)),ge===64||ge===42||ge===19||ge===90||ge===130||ge===60)return!0;continue;case 126:Fe();continue;default:return!1}}function ev(){return In(DS)}function WT(){switch(M()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return ev()||In(xb);case 87:case 95:return ev();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return ev()||!In(Ty);default:return Ig()}}function s_(){return Fe(),ua()||M()===19||M()===23}function jg(){return In(s_)}function vh(){return Lb(!0)}function Lb(q){return Fe(),q&&M()===165?!1:(ua()||M()===19)&&!t.hasPrecedingLineBreak()}function cf(){return In(Lb)}function UT(q){return Fe()===160?Lb(q):!1}function ky(){return In(UT)}function Of(){switch(M()){case 27:return Ib();case 19:return yh(!1);case 115:return nv(ee(),ue(),void 0);case 121:if(jg())return nv(ee(),ue(),void 0);break;case 135:if(ky())return nv(ee(),ue(),void 0);break;case 160:if(cf())return nv(ee(),ue(),void 0);break;case 100:return jb(ee(),ue(),void 0);case 86:return tp(ee(),ue(),void 0);case 101:return zT();case 92:return CS();case 117:return Fb();case 99:return Zf();case 88:return Z1(251);case 83:return Z1(252);case 107:return Oc();case 118:return yl();case 109:return Kf();case 111:return K1();case 113:case 85:case 98:return x0();case 89:return ES();case 60:return T0();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(ev())return T0();break}return Np()}function Mb(q){return q.kind===138}function T0(){let q=ee(),ge=ue(),Ae=gu(!0);if(ft(Ae,Mb)){let Nt=mD(q);if(Nt)return Nt;for(let rn of Ae)rn.flags|=33554432;return Fs(33554432,()=>qT(q,ge,Ae))}else return qT(q,ge,Ae)}function mD(q){return Fs(33554432,()=>{let ge=Ec(Gt,q);if(ge)return Go(ge)})}function qT(q,ge,Ae){switch(M()){case 115:case 121:case 87:case 160:case 135:return nv(q,ge,Ae);case 100:return jb(q,ge,Ae);case 86:return tp(q,ge,Ae);case 120:return ct(q,ge,Ae);case 156:return $t(q,ge,Ae);case 94:return xi(q,ge,Ae);case 162:case 144:case 145:return A_(q,ge,Ae);case 102:return C0(q,ge,Ae);case 95:switch(Fe(),M()){case 90:case 64:return aR(q,ge,Ae);case 130:return wy(q,ge,Ae);default:return av(q,ge,Ae)}default:if(Ae){let tt=Jo(282,!0,d.Declaration_expected);return OE(tt,q),tt.modifiers=Ae,tt}return}}function HT(){return Fe()===11}function GT(){return Fe(),!t.hasPrecedingLineBreak()&&(js()||M()===11)}function tv(q,ge){if(M()!==19){if(q&4){_r();return}if(zc()){Bo();return}}return xy(q,ge)}function q_(){let q=ee();if(M()===28)return Ht(p.createOmittedExpression(),q);let ge=$s(26),Ae=fr(),tt=Yf();return Ht(p.createBindingElement(ge,void 0,Ae,tt),q)}function Bg(){let q=ee(),ge=$s(26),Ae=ua(),tt=gn(),Nt;Ae&&M()!==59?(Nt=tt,tt=void 0):(Pn(59),Nt=fr());let rn=Yf();return Ht(p.createBindingElement(ge,tt,Nt,rn),q)}function $T(){let q=ee();Pn(19);let ge=Ce(()=>du(9,Bg));return Pn(20),Ht(p.createObjectBindingPattern(ge),q)}function XT(){let q=ee();Pn(23);let ge=Ce(()=>du(10,q_));return Pn(24),Ht(p.createArrayBindingPattern(ge),q)}function Ba(){return M()===19||M()===23||M()===81||ua()}function fr(q){return M()===23?XT():M()===19?$T():h_(q)}function lf(){return v_(!0)}function v_(q){let ge=ee(),Ae=ue(),tt=fr(d.Private_identifiers_are_not_allowed_in_variable_declarations),Nt;q&&tt.kind===80&&M()===54&&!t.hasPrecedingLineBreak()&&(Nt=Jc());let rn=h0(),kr=SS(M())?void 0:Yf(),vi=xe(tt,Nt,rn,kr);return An(Ht(vi,ge),Ae)}function Rb(q){let ge=ee(),Ae=0;switch(M()){case 115:break;case 121:Ae|=1;break;case 87:Ae|=2;break;case 160:Ae|=4;break;case 135:E.assert(ky()),Ae|=6,Fe();break;default:E.fail()}Fe();let tt;if(M()===165&&In(W6))tt=V_();else{let Nt=Re();Fi(q),tt=du(8,q?v_:lf),Fi(Nt)}return Ht(Me(tt,Ae),ge)}function W6(){return t_()&&Fe()===22}function nv(q,ge,Ae){let tt=Rb(!1);Bo();let Nt=K(Ae,tt);return An(Ht(Nt,q),ge)}function jb(q,ge,Ae){let tt=Zt(),Nt=Vd(Ae);Pn(100);let rn=$s(42),kr=Nt&2048?Qm():h_(),vi=rn?1:0,fi=Nt&1024?2:0,ti=Ee();Nt&32&&Ki(!0);let Ji=gr(vi|fi),ao=En(59,!1),Wa=tv(vi|fi,d.or_expected);Ki(tt);let Ja=p.createFunctionDeclaration(Ae,rn,kr,ti,Ji,ao,Wa);return An(Ht(Ja,q),ge)}function Cy(){if(M()===137)return Pn(137);if(M()===11&&In(Fe)===21)return mi(()=>{let q=Vr();return q.text==="constructor"?q:void 0})}function Lf(q,ge,Ae){return mi(()=>{if(Cy()){let tt=Ee(),Nt=gr(0),rn=En(59,!1),kr=tv(0,d.or_expected),vi=p.createConstructorDeclaration(Ae,Nt,kr);return vi.typeParameters=tt,vi.type=rn,An(Ht(vi,q),ge)}})}function Ip(q,ge,Ae,tt,Nt,rn,kr,vi){let fi=tt?1:0,ti=ft(Ae,HE)?2:0,Ji=Ee(),ao=gr(fi|ti),Wa=En(59,!1),Ja=tv(fi|ti,vi),np=p.createMethodDeclaration(Ae,tt,Nt,rn,Ji,ao,Wa,Ja);return np.exclamationToken=kr,An(Ht(np,q),ge)}function Ey(q,ge,Ae,tt,Nt){let rn=!Nt&&!t.hasPrecedingLineBreak()?$s(54):void 0,kr=h0(),vi=na(90112,Yf);ec(tt,kr,vi);let fi=p.createPropertyDeclaration(Ae,tt,Nt||rn,kr,vi);return An(Ht(fi,q),ge)}function rd(q,ge,Ae){let tt=$s(42),Nt=gn(),rn=$s(58);return tt||M()===21||M()===30?Ip(q,ge,Ae,tt,Nt,rn,void 0,d.or_expected):Ey(q,ge,Ae,Nt,rn)}function Fp(q,ge,Ae,tt,Nt){let rn=gn(),kr=Ee(),vi=gr(0),fi=En(59,!1),ti=tv(Nt),Ji=tt===177?p.createGetAccessorDeclaration(Ae,rn,vi,fi,ti):p.createSetAccessorDeclaration(Ae,rn,vi,ti);return Ji.typeParameters=kr,j_(Ji)&&(Ji.type=fi),An(Ht(Ji,q),ge)}function k0(){let q;if(M()===60)return!0;for(;Uh(M());){if(q=M(),kJ(q))return!0;Fe()}if(M()===42||(Pe()&&(q=M(),Fe()),M()===23))return!0;if(q!==void 0){if(!p_(q)||q===153||q===139)return!0;switch(M()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return zc()}}return!1}function Bb(q,ge,Ae){Do(126);let tt=Wc(),Nt=An(Ht(p.createClassStaticBlockDeclaration(tt),q),ge);return Nt.modifiers=Ae,Nt}function Wc(){let q=wt(),ge=Zt();Wi(!1),Ki(!0);let Ae=yh(!1);return Wi(q),Ki(ge),Ae}function gD(){if(Zt()&&M()===135){let q=ee(),ge=Po(d.Expression_expected);Fe();let Ae=ns(q,ge,!0);return Ap(q,Ae)}return Lg()}function ep(){let q=ee();if(!xs(60))return;let ge=fe(gD);return Ht(p.createDecorator(ge),q)}function U6(q,ge,Ae){let tt=ee(),Nt=M();if(M()===87&&ge){if(!mi(pi))return}else{if(Ae&&M()===126&&In(cm))return;if(q&&M()===126)return;if(!ll())return}return Ht(O(Nt),tt)}function gu(q,ge,Ae){let tt=ee(),Nt,rn,kr,vi=!1,fi=!1,ti=!1;if(q&&M()===60)for(;rn=ep();)Nt=_n(Nt,rn);for(;kr=U6(vi,ge,Ae);)kr.kind===126&&(vi=!0),Nt=_n(Nt,kr),fi=!0;if(fi&&q&&M()===60)for(;rn=ep();)Nt=_n(Nt,rn),ti=!0;if(ti)for(;kr=U6(vi,ge,Ae);)kr.kind===126&&(vi=!0),Nt=_n(Nt,kr);return Nt&&as(Nt,tt)}function rv(){let q;if(M()===134){let ge=ee();Fe();let Ae=Ht(O(134),ge);q=as([Ae],ge)}return q}function Jb(){let q=ee(),ge=ue();if(M()===27)return Fe(),An(Ht(p.createSemicolonClassElement(),q),ge);let Ae=gu(!0,!0,!0);if(M()===126&&In(cm))return Bb(q,ge,Ae);if(Tr(139))return Fp(q,ge,Ae,177,0);if(Tr(153))return Fp(q,ge,Ae,178,0);if(M()===137||M()===11){let tt=Lf(q,ge,Ae);if(tt)return tt}if(io())return W_(q,ge,Ae);if(Mu(M())||M()===11||M()===9||M()===42||M()===23)if(ft(Ae,Mb)){for(let Nt of Ae)Nt.flags|=33554432;return Fs(33554432,()=>rd(q,ge,Ae))}else return rd(q,ge,Ae);if(Ae){let tt=Jo(80,!0,d.Declaration_expected);return Ey(q,ge,Ae,tt,void 0)}return E.fail("Should not have attempted to parse class member declaration.")}function PS(){let q=ee(),ge=ue(),Ae=gu(!0);if(M()===86)return ac(q,ge,Ae,231);let tt=Jo(282,!0,d.Expression_expected);return OE(tt,q),tt.modifiers=Ae,tt}function q6(){return ac(ee(),ue(),void 0,231)}function tp(q,ge,Ae){return ac(q,ge,Ae,263)}function ac(q,ge,Ae,tt){let Nt=Zt();Pn(86);let rn=om(),kr=Ee();ft(Ae,Wx)&&Ki(!0);let vi=Jg(),fi;Pn(19)?(fi=te(),Pn(20)):fi=V_(),Ki(Nt);let ti=tt===263?p.createClassDeclaration(Ae,rn,kr,vi,fi):p.createClassExpression(Ae,rn,kr,vi,fi);return An(Ht(ti,q),ge)}function om(){return ua()&&!Dy()?qu(ua()):void 0}function Dy(){return M()===119&&In(Au)}function Jg(){if(k())return Bs(22,iv)}function iv(){let q=ee(),ge=M();E.assert(ge===96||ge===119),Fe();let Ae=du(7,H6);return Ht(p.createHeritageClause(ge,Ae),q)}function H6(){let q=ee(),ge=Lg();if(ge.kind===233)return ge;let Ae=Py();return Ht(p.createExpressionWithTypeArguments(ge,Ae),q)}function Py(){return M()===30?r_(20,Fl,30,32):void 0}function k(){return M()===96||M()===119}function te(){return Bs(5,Jb)}function ct(q,ge,Ae){Pn(120);let tt=Po(),Nt=Ee(),rn=Jg(),kr=pS(),vi=p.createInterfaceDeclaration(Ae,tt,Nt,rn,kr);return An(Ht(vi,q),ge)}function $t(q,ge,Ae){Pn(156),t.hasPrecedingLineBreak()&&tn(d.Line_break_not_permitted_here);let tt=Po(),Nt=Ee();Pn(64);let rn=M()===141&&mi(mS)||Fl();Bo();let kr=p.createTypeAliasDeclaration(Ae,tt,Nt,rn);return An(Ht(kr,q),ge)}function hr(){let q=ee(),ge=ue(),Ae=gn(),tt=Ce(Yf);return An(Ht(p.createEnumMember(Ae,tt),q),ge)}function xi(q,ge,Ae){Pn(94);let tt=Po(),Nt;Pn(19)?(Nt=G(()=>du(6,hr)),Pn(20)):Nt=V_();let rn=p.createEnumDeclaration(Ae,tt,Nt);return An(Ht(rn,q),ge)}function ai(){let q=ee(),ge;return Pn(19)?(ge=Bs(1,Of),Pn(20)):ge=V_(),Ht(p.createModuleBlock(ge),q)}function zi(q,ge,Ae,tt){let Nt=tt&32,rn=tt&8?Ic():Po(),kr=xs(25)?zi(ee(),!1,void 0,8|Nt):ai(),vi=p.createModuleDeclaration(Ae,rn,kr,tt);return An(Ht(vi,q),ge)}function Ls(q,ge,Ae){let tt=0,Nt;M()===162?(Nt=Po(),tt|=2048):(Nt=Vr(),Nt.text=nl(Nt.text));let rn;M()===19?rn=ai():Bo();let kr=p.createModuleDeclaration(Ae,Nt,rn,tt);return An(Ht(kr,q),ge)}function A_(q,ge,Ae){let tt=0;if(M()===162)return Ls(q,ge,Ae);if(xs(145))tt|=32;else if(Pn(144),M()===11)return Ls(q,ge,Ae);return zi(q,ge,Ae,tt)}function H_(){return M()===149&&In(ci)}function ci(){return Fe()===21}function cm(){return Fe()===19}function hn(){return Fe()===44}function wy(q,ge,Ae){Pn(130),Pn(145);let tt=Po();Bo();let Nt=p.createNamespaceExportDeclaration(tt);return Nt.modifiers=Ae,An(Ht(Nt,q),ge)}function C0(q,ge,Ae){Pn(102);let tt=t.getTokenFullStart(),Nt;js()&&(Nt=Po());let rn=!1;if(M()!==161&&Nt?.escapedText==="type"&&(js()||QT())&&(rn=!0,Nt=js()?Po():void 0),Nt&&!AS())return Ym(q,ge,Ae,Nt,rn);let kr;(Nt||M()===42||M()===19)&&(kr=E0(Nt,tt,rn),Pn(161));let vi=YT(),fi=M(),ti;(fi===118||fi===132)&&!t.hasPrecedingLineBreak()&&(ti=sv(fi)),Bo();let Ji=p.createImportDeclaration(Ae,kr,vi,ti);return An(Ht(Ji,q),ge)}function wS(){let q=ee(),ge=Mu(M())?Ic():sc(11);Pn(59);let Ae=Hu(!0);return Ht(p.createImportAttribute(ge,Ae),q)}function sv(q,ge){let Ae=ee();ge||Pn(q);let tt=t.getTokenStart();if(Pn(19)){let Nt=t.hasPrecedingLineBreak(),rn=du(24,wS,!0);if(!Pn(20)){let kr=qo(Oe);kr&&kr.code===d._0_expected.code&&ga(kr,_C(ke,be,tt,1,d.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ht(p.createImportAttributes(rn,Nt,q),Ae)}else{let Nt=as([],ee(),void 0,!1);return Ht(p.createImportAttributes(Nt,!1,q),Ae)}}function QT(){return M()===42||M()===19}function AS(){return M()===28||M()===161}function Ym(q,ge,Ae,tt,Nt){Pn(64);let rn=zg();Bo();let kr=p.createImportEqualsDeclaration(Ae,Nt,tt,rn);return An(Ht(kr,q),ge)}function E0(q,ge,Ae){let tt;return(!q||xs(28))&&(tt=M()===42?JN():hD(275)),Ht(p.createImportClause(Ae,q,tt),ge)}function zg(){return H_()?G6():Q(!1)}function G6(){let q=ee();Pn(149),Pn(21);let ge=YT();return Pn(22),Ht(p.createExternalModuleReference(ge),q)}function YT(){if(M()===11){let q=Vr();return q.text=nl(q.text),q}else return Vl()}function JN(){let q=ee();Pn(42),Pn(130);let ge=Po();return Ht(p.createNamespaceImport(ge),q)}function hD(q){let ge=ee(),Ae=q===275?p.createNamedImports(r_(23,bh,19,20)):p.createNamedExports(r_(23,Zm,19,20));return Ht(Ae,ge)}function Zm(){let q=ue();return An($6(281),q)}function bh(){return $6(276)}function $6(q){let ge=ee(),Ae=p_(M())&&!js(),tt=t.getTokenStart(),Nt=t.getTokenEnd(),rn=!1,kr,vi=!0,fi=Ic();if(fi.escapedText==="type")if(M()===130){let ao=Ic();if(M()===130){let Wa=Ic();Mu(M())?(rn=!0,kr=ao,fi=Ji(),vi=!1):(kr=fi,fi=Wa,vi=!1)}else Mu(M())?(kr=fi,vi=!1,fi=Ji()):(rn=!0,fi=ao)}else Mu(M())&&(rn=!0,fi=Ji());vi&&M()===130&&(kr=fi,Pn(130),fi=Ji()),q===276&&Ae&&W(tt,Nt,d.Identifier_expected);let ti=q===276?p.createImportSpecifier(rn,kr,fi):p.createExportSpecifier(rn,kr,fi);return Ht(ti,ge);function Ji(){return Ae=p_(M())&&!js(),tt=t.getTokenStart(),Nt=t.getTokenEnd(),Ic()}}function Km(q){return Ht(p.createNamespaceExport(Ic()),q)}function av(q,ge,Ae){let tt=Zt();Ki(!0);let Nt,rn,kr,vi=xs(156),fi=ee();xs(42)?(xs(130)&&(Nt=Km(fi)),Pn(161),rn=YT()):(Nt=hD(279),(M()===161||M()===11&&!t.hasPrecedingLineBreak())&&(Pn(161),rn=YT()));let ti=M();rn&&(ti===118||ti===132)&&!t.hasPrecedingLineBreak()&&(kr=sv(ti)),Bo(),Ki(tt);let Ji=p.createExportDeclaration(Ae,vi,Nt,rn,kr);return An(Ht(Ji,q),ge)}function aR(q,ge,Ae){let tt=Zt();Ki(!0);let Nt;xs(64)?Nt=!0:Pn(90);let rn=Hu(!0);Bo(),Ki(tt);let kr=p.createExportAssignment(Ae,Nt,rn);return An(Ht(kr,q),ge)}let lm;(q=>{q[q.SourceElements=0]="SourceElements",q[q.BlockStatements=1]="BlockStatements",q[q.SwitchClauses=2]="SwitchClauses",q[q.SwitchClauseStatements=3]="SwitchClauseStatements",q[q.TypeMembers=4]="TypeMembers",q[q.ClassMembers=5]="ClassMembers",q[q.EnumMembers=6]="EnumMembers",q[q.HeritageClauseElement=7]="HeritageClauseElement",q[q.VariableDeclarations=8]="VariableDeclarations",q[q.ObjectBindingElements=9]="ObjectBindingElements",q[q.ArrayBindingElements=10]="ArrayBindingElements",q[q.ArgumentExpressions=11]="ArgumentExpressions",q[q.ObjectLiteralMembers=12]="ObjectLiteralMembers",q[q.JsxAttributes=13]="JsxAttributes",q[q.JsxChildren=14]="JsxChildren",q[q.ArrayLiteralMembers=15]="ArrayLiteralMembers",q[q.Parameters=16]="Parameters",q[q.JSDocParameters=17]="JSDocParameters",q[q.RestProperties=18]="RestProperties",q[q.TypeParameters=19]="TypeParameters",q[q.TypeArguments=20]="TypeArguments",q[q.TupleElementTypes=21]="TupleElementTypes",q[q.HeritageClauses=22]="HeritageClauses",q[q.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",q[q.ImportAttributes=24]="ImportAttributes",q[q.JSDocComment=25]="JSDocComment",q[q.Count=26]="Count"})(lm||(lm={}));let NS;(q=>{q[q.False=0]="False",q[q.True=1]="True",q[q.Unknown=2]="Unknown"})(NS||(NS={}));let zN;(q=>{function ge(ti,Ji,ao){ii("file.js",ti,99,void 0,1,0),t.setText(ti,Ji,ao),ht=t.scan();let Wa=Ae(),Ja=Cn("file.js",99,1,!1,[],O(1),0,Fa),np=Ix(Oe,Ja);return Qe&&(Ja.jsDocDiagnostics=Ix(Qe,Ja)),Hi(),Wa?{jsDocTypeExpression:Wa,diagnostics:np}:void 0}q.parseJSDocTypeExpressionForTests=ge;function Ae(ti){let Ji=ee(),ao=(ti?xs:Pn)(19),Wa=Fs(16777216,xd);(!ti||ao)&&gl(20);let Ja=p.createJSDocTypeExpression(Wa);return Sn(Ja),Ht(Ja,Ji)}q.parseJSDocTypeExpression=Ae;function tt(){let ti=ee(),Ji=xs(19),ao=ee(),Wa=Q(!1);for(;M()===81;)jr(),St(),Wa=Ht(p.createJSDocMemberName(Wa,Po()),ao);Ji&&gl(20);let Ja=p.createJSDocNameReference(Wa);return Sn(Ja),Ht(Ja,ti)}q.parseJSDocNameReference=tt;function Nt(ti,Ji,ao){ii("",ti,99,void 0,1,0);let Wa=Fs(16777216,()=>fi(Ji,ao)),np=Ix(Oe,{languageVariant:0,text:ti});return Hi(),Wa?{jsDoc:Wa,diagnostics:np}:void 0}q.parseIsolatedJSDocComment=Nt;function rn(ti,Ji,ao){let Wa=ht,Ja=Oe.length,np=zt,id=Fs(16777216,()=>fi(Ji,ao));return Ta(id,ti),Un&524288&&(Qe||(Qe=[]),Qe.push(...Oe)),ht=Wa,Oe.length=Ja,zt=np,id}q.parseJSDocComment=rn;let kr;(ti=>{ti[ti.BeginningOfLine=0]="BeginningOfLine",ti[ti.SawAsterisk=1]="SawAsterisk",ti[ti.SavingComments=2]="SavingComments",ti[ti.SavingBackticks=3]="SavingBackticks"})(kr||(kr={}));let vi;(ti=>{ti[ti.Property=1]="Property",ti[ti.Parameter=2]="Parameter",ti[ti.CallbackParameter=4]="CallbackParameter"})(vi||(vi={}));function fi(ti=0,Ji){let ao=be,Wa=Ji===void 0?ao.length:ti+Ji;if(Ji=Wa-ti,E.assert(ti>=0),E.assert(ti<=Wa),E.assert(Wa<=ao.length),!SW(ao,ti))return;let Ja,np,id,Ay,Vg,Ol=[],Sh=[],yD=Gt;Gt|=1<<25;let X6=t.scanRange(ti+3,Ji-5,Q6);return Gt=yD,X6;function Q6(){let un=1,Rr,Pr=ti-(ao.lastIndexOf(` -`,ti)+1)+4;function gi(oo){Rr||(Rr=Pr),Ol.push(oo),Pr+=oo.length}for(St();zb(5););zb(4)&&(un=0,Pr=0);e:for(;;){switch(M()){case 60:oR(Ol),Vg||(Vg=ee()),cR(SD(Pr)),un=0,Rr=void 0;break;case 4:Ol.push(t.getTokenText()),un=0,Pr=0;break;case 42:let oo=t.getTokenText();un===1?(un=2,gi(oo)):(E.assert(un===0),un=1,Pr+=oo.length);break;case 5:E.assert(un!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let rl=t.getTokenText();Rr!==void 0&&Pr+rl.length>Rr&&Ol.push(rl.slice(Rr-Pr)),Pr+=rl.length;break;case 1:break e;case 82:un=2,gi(t.getTokenValue());break;case 19:un=2;let Th=t.getTokenFullStart(),tg=t.getTokenEnd()-1,il=Ia(tg);if(il){Ay||vD(Ol),Sh.push(Ht(p.createJSDocText(Ol.join("")),Ay??ti,Th)),Sh.push(il),Ol=[],Ay=t.getTokenEnd();break}default:un=2,gi(t.getTokenText());break}un===2?Mt(!1):St()}let yi=Ol.join("").trimEnd();Sh.length&&yi.length&&Sh.push(Ht(p.createJSDocText(yi),Ay??ti,Vg)),Sh.length&&Ja&&E.assertIsDefined(Vg,"having parsed tags implies that the end of the comment span should be set");let Oa=Ja&&as(Ja,np,id);return Ht(p.createJSDocComment(Sh.length?as(Sh,ti,Vg):yi.length?yi:void 0,Oa),ti,Wa)}function vD(un){for(;un.length&&(un[0]===` -`||un[0]==="\r");)un.shift()}function oR(un){for(;un.length;){let Rr=un[un.length-1].trimEnd();if(Rr==="")un.pop();else if(Rr.lengthrl&&(gi.push(D0.slice(rl-un)),oo=2),un+=D0.length;break;case 19:oo=2;let VN=t.getTokenFullStart(),e4=t.getTokenEnd()-1,LS=Ia(e4);LS?(yi.push(Ht(p.createJSDocText(gi.join("")),Oa??Pr,VN)),yi.push(LS),gi=[],Oa=t.getTokenEnd()):Th(t.getTokenText());break;case 62:oo===3?oo=2:oo=3,Th(t.getTokenText());break;case 82:oo!==3&&(oo=2),Th(t.getTokenValue());break;case 42:if(oo===0){oo=1,un+=1;break}default:oo!==3&&(oo=2),Th(t.getTokenText());break}oo===2||oo===3?tg=Mt(oo===3):tg=St()}vD(gi);let il=gi.join("").trimEnd();if(yi.length)return il.length&&yi.push(Ht(p.createJSDocText(il),Oa??Pr)),as(yi,Pr,t.getTokenEnd());if(il.length)return il}function Ia(un){let Rr=mi(Uc);if(!Rr)return;St(),Mf();let Pr=ee(),gi=Mu(M())?Q(!0):void 0;if(gi)for(;M()===81;)jr(),St(),gi=Ht(p.createJSDocMemberName(gi,Po()),Pr);let yi=[];for(;M()!==20&&M()!==4&&M()!==1;)yi.push(t.getTokenText()),St();let Oa=Rr==="link"?p.createJSDocLink:Rr==="linkcode"?p.createJSDocLinkCode:p.createJSDocLinkPlain;return Ht(Oa(gi,yi.join("")),un,t.getTokenEnd())}function Uc(){if(xh(),M()===19&&St()===60&&Mu(St())){let un=t.getTokenValue();if(Ny(un))return un}}function Ny(un){return un==="link"||un==="linkcode"||un==="linkplain"}function IS(un,Rr,Pr,gi){return Ht(p.createJSDocUnknownTag(Rr,rp(un,ee(),Pr,gi)),un)}function cR(un){un&&(Ja?Ja.push(un):(Ja=[un],np=un.pos),id=un.end)}function eg(){return xh(),M()===19?Ae():void 0}function ZT(){let un=zb(23);un&&Mf();let Rr=zb(62),Pr=TD();return Rr&&Xs(62),un&&(Mf(),$s(64)&&Vl(),Pn(24)),{name:Pr,isBracketed:un}}function v(un){switch(un.kind){case 151:return!0;case 188:return v(un.elementType);default:return Tp(un)&&Ie(un.typeName)&&un.typeName.escapedText==="Object"&&!un.typeArguments}}function P(un,Rr,Pr,gi){let yi=eg(),Oa=!yi;xh();let{name:oo,isBracketed:rl}=ZT(),Th=xh();Oa&&!In(Uc)&&(yi=eg());let tg=rp(un,ee(),gi,Th),il=R(yi,oo,Pr,gi);il&&(yi=il,Oa=!0);let D0=Pr===1?p.createJSDocPropertyTag(Rr,oo,rl,yi,Oa,tg):p.createJSDocParameterTag(Rr,oo,rl,yi,Oa,tg);return Ht(D0,un)}function R(un,Rr,Pr,gi){if(un&&v(un.type)){let yi=ee(),Oa,oo;for(;Oa=mi(()=>Vn(Pr,gi,Rr));)Oa.kind===348||Oa.kind===355?oo=_n(oo,Oa):Oa.kind===352&&j(Oa.tagName,d.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(oo){let rl=Ht(p.createJSDocTypeLiteral(oo,un.type.kind===188),yi);return Ht(p.createJSDocTypeExpression(rl),yi)}}}function ne(un,Rr,Pr,gi){ft(Ja,lO)&&W(Rr.pos,t.getTokenStart(),d._0_tag_already_specified,Ci(Rr.escapedText));let yi=eg();return Ht(p.createJSDocReturnTag(Rr,yi,rp(un,ee(),Pr,gi)),un)}function Le(un,Rr,Pr,gi){ft(Ja,i3)&&W(Rr.pos,t.getTokenStart(),d._0_tag_already_specified,Ci(Rr.escapedText));let yi=Ae(!0),Oa=Pr!==void 0&&gi!==void 0?rp(un,ee(),Pr,gi):void 0;return Ht(p.createJSDocTypeTag(Rr,yi,Oa),un)}function Lt(un,Rr,Pr,gi){let Oa=M()===23||In(()=>St()===60&&Mu(St())&&Ny(t.getTokenValue()))?void 0:tt(),oo=Pr!==void 0&&gi!==void 0?rp(un,ee(),Pr,gi):void 0;return Ht(p.createJSDocSeeTag(Rr,Oa,oo),un)}function sr(un,Rr,Pr,gi){let yi=eg(),Oa=rp(un,ee(),Pr,gi);return Ht(p.createJSDocThrowsTag(Rr,yi,Oa),un)}function rs(un,Rr,Pr,gi){let yi=ee(),Oa=Xa(),oo=t.getTokenFullStart(),rl=rp(un,oo,Pr,gi);rl||(oo=t.getTokenFullStart());let Th=typeof rl!="string"?as(es([Ht(Oa,yi,oo)],rl),yi):Oa.text+rl;return Ht(p.createJSDocAuthorTag(Rr,Th),un)}function Xa(){let un=[],Rr=!1,Pr=t.getToken();for(;Pr!==1&&Pr!==4;){if(Pr===30)Rr=!0;else{if(Pr===60&&!Rr)break;if(Pr===32&&Rr){un.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}un.push(t.getTokenText()),Pr=St()}return p.createJSDocText(un.join(""))}function Rf(un,Rr,Pr,gi){let yi=ov();return Ht(p.createJSDocImplementsTag(Rr,yi,rp(un,ee(),Pr,gi)),un)}function Iy(un,Rr,Pr,gi){let yi=ov();return Ht(p.createJSDocAugmentsTag(Rr,yi,rp(un,ee(),Pr,gi)),un)}function Fy(un,Rr,Pr,gi){let yi=Ae(!1),Oa=Pr!==void 0&&gi!==void 0?rp(un,ee(),Pr,gi):void 0;return Ht(p.createJSDocSatisfiesTag(Rr,yi,Oa),un)}function ov(){let un=xs(19),Rr=ee(),Pr=$Q();t.setInJSDocType(!0);let gi=Py();t.setInJSDocType(!1);let yi=p.createExpressionWithTypeArguments(Pr,gi),Oa=Ht(yi,Rr);return un&&Pn(20),Oa}function $Q(){let un=ee(),Rr=Vb();for(;xs(25);){let Pr=Vb();Rr=Ht(X(Rr,Pr),un)}return Rr}function FS(un,Rr,Pr,gi,yi){return Ht(Rr(Pr,rp(un,ee(),gi,yi)),un)}function xD(un,Rr,Pr,gi){let yi=Ae(!0);return Mf(),Ht(p.createJSDocThisTag(Rr,yi,rp(un,ee(),Pr,gi)),un)}function Wpe(un,Rr,Pr,gi){let yi=Ae(!0);return Mf(),Ht(p.createJSDocEnumTag(Rr,yi,rp(un,ee(),Pr,gi)),un)}function XQ(un,Rr,Pr,gi){let yi=eg();xh();let Oa=lR();Mf();let oo=Y6(Pr),rl;if(!yi||v(yi.type)){let tg,il,D0,VN=!1;for(;(tg=mi(()=>OS(Pr)))&&tg.kind!==352;)if(VN=!0,tg.kind===351)if(il){let e4=tn(d.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);e4&&ga(e4,_C(ke,be,0,0,d.The_tag_was_first_specified_here));break}else il=tg;else D0=_n(D0,tg);if(VN){let e4=yi&&yi.type.kind===188,LS=p.createJSDocTypeLiteral(D0,e4);yi=il&&il.typeExpression&&!v(il.typeExpression.type)?il.typeExpression:Ht(LS,un),rl=yi.end}}rl=rl||oo!==void 0?ee():(Oa??yi??Rr).end,oo||(oo=rp(un,rl,Pr,gi));let Th=p.createJSDocTypedefTag(Rr,yi,Oa,oo);return Ht(Th,un,rl)}function lR(un){let Rr=t.getTokenStart();if(!Mu(M()))return;let Pr=Vb();if(xs(25)){let gi=lR(!0),yi=p.createModuleDeclaration(void 0,Pr,gi,un?8:void 0);return Ht(yi,Rr)}return un&&(Pr.flags|=4096),Pr}function Upe(un){let Rr=ee(),Pr,gi;for(;Pr=mi(()=>Vn(4,un));){if(Pr.kind===352){j(Pr.tagName,d.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}gi=_n(gi,Pr)}return as(gi||[],Rr)}function QQ(un,Rr){let Pr=Upe(Rr),gi=mi(()=>{if(zb(60)){let yi=SD(Rr);if(yi&&yi.kind===349)return yi}});return Ht(p.createJSDocSignature(void 0,Pr,gi),un)}function Z6(un,Rr,Pr,gi){let yi=lR();Mf();let Oa=Y6(Pr),oo=QQ(un,Pr);Oa||(Oa=rp(un,ee(),Pr,gi));let rl=Oa!==void 0?ee():oo.end;return Ht(p.createJSDocCallbackTag(Rr,oo,yi,Oa),un,rl)}function YQ(un,Rr,Pr,gi){Mf();let yi=Y6(Pr),Oa=QQ(un,Pr);yi||(yi=rp(un,ee(),Pr,gi));let oo=yi!==void 0?ee():Oa.end;return Ht(p.createJSDocOverloadTag(Rr,Oa,yi),un,oo)}function qpe(un,Rr){for(;!Ie(un)||!Ie(Rr);)if(!Ie(un)&&!Ie(Rr)&&un.right.escapedText===Rr.right.escapedText)un=un.left,Rr=Rr.left;else return!1;return un.escapedText===Rr.escapedText}function OS(un){return Vn(1,un)}function Vn(un,Rr,Pr){let gi=!0,yi=!1;for(;;)switch(St()){case 60:if(gi){let Oa=Oy(un,Rr);return Oa&&(Oa.kind===348||Oa.kind===355)&&Pr&&(Ie(Oa.name)||!qpe(Pr,Oa.name.left))?!1:Oa}yi=!1;break;case 4:gi=!0,yi=!1;break;case 42:yi&&(gi=!1),yi=!0;break;case 80:gi=!1;break;case 1:return!1}}function Oy(un,Rr){E.assert(M()===60);let Pr=t.getTokenFullStart();St();let gi=Vb(),yi=xh(),Oa;switch(gi.escapedText){case"type":return un===1&&Le(Pr,gi);case"prop":case"property":Oa=1;break;case"arg":case"argument":case"param":Oa=6;break;case"template":return KT(Pr,gi,Rr,yi);default:return!1}return un&Oa?P(Pr,gi,un,Rr):!1}function cv(){let un=ee(),Rr=zb(23);Rr&&Mf();let Pr=Vb(d.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),gi;if(Rr&&(Mf(),Pn(64),gi=Fs(16777216,xd),Pn(24)),!dc(Pr))return Ht(p.createTypeParameterDeclaration(void 0,Pr,void 0,gi),un)}function K6(){let un=ee(),Rr=[];do{Mf();let Pr=cv();Pr!==void 0&&Rr.push(Pr),xh()}while(zb(28));return as(Rr,un)}function KT(un,Rr,Pr,gi){let yi=M()===19?Ae():void 0,Oa=K6();return Ht(p.createJSDocTemplateTag(Rr,yi,Oa,rp(un,ee(),Pr,gi)),un)}function zb(un){return M()===un?(St(),!0):!1}function TD(){let un=Vb();for(xs(23)&&Pn(24);xs(25);){let Rr=Vb();xs(23)&&Pn(24),un=Ze(un,Rr)}return un}function Vb(un){if(!Mu(M()))return Jo(80,!un,un||d.Identifier_expected);Jt++;let Rr=t.getTokenStart(),Pr=t.getTokenEnd(),gi=M(),yi=nl(t.getTokenValue()),Oa=Ht(w(yi,gi),Rr,Pr);return St(),Oa}}})(zN=e.JSDocParser||(e.JSDocParser={}))})(P1||(P1={})),(e=>{function t(x,C,w,D){if(D=D||E.shouldAssert(2),p(x,C,w,D),GK(w))return x;if(x.statements.length===0)return P1.parseSourceFile(x.fileName,C,x.languageVersion,void 0,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);let O=x;E.assert(!O.hasBeenIncrementallyParsed),O.hasBeenIncrementallyParsed=!0,P1.fixupParentReferences(O);let z=x.text,V=y(x),X=f(x,w);p(x,C,X,D),E.assert(X.span.start<=w.span.start),E.assert(Dc(X.span)===Dc(w.span)),E.assert(Dc(J4(X))===Dc(J4(w)));let J=J4(X).length-X.span.length;u(O,X.span.start,Dc(X.span),Dc(J4(X)),J,z,C,D);let ie=P1.parseSourceFile(x.fileName,C,x.languageVersion,V,!0,x.scriptKind,x.setExternalModuleIndicator,x.jsDocParsingMode);return ie.commentDirectives=n(x.commentDirectives,ie.commentDirectives,X.span.start,Dc(X.span),J,z,C,D),ie.impliedNodeFormat=x.impliedNodeFormat,ie}e.updateSourceFile=t;function n(x,C,w,D,O,z,V,X){if(!x)return C;let J,ie=!1;for(let Z of x){let{range:ae,type:_e}=Z;if(ae.endD){B();let $={range:{pos:ae.pos+O,end:ae.end+O},type:_e};J=_n(J,$),X&&E.assert(z.substring(ae.pos,ae.end)===V.substring($.range.pos,$.range.end))}}return B(),J;function B(){ie||(ie=!0,J?C&&J.push(...C):J=C)}}function i(x,C,w,D,O,z){C?X(x):V(x);return;function V(J){let ie="";if(z&&s(J)&&(ie=D.substring(J.pos,J.end)),J._children&&(J._children=void 0),Lm(J,J.pos+w,J.end+w),z&&s(J)&&E.assert(ie===O.substring(J.pos,J.end)),vs(J,V,X),Z_(J))for(let B of J.jsDoc)V(B);c(J,z)}function X(J){J._children=void 0,Lm(J,J.pos+w,J.end+w);for(let ie of J)V(ie)}}function s(x){switch(x.kind){case 11:case 9:case 80:return!0}return!1}function o(x,C,w,D,O){E.assert(x.end>=C,"Adjusting an element that was entirely before the change range"),E.assert(x.pos<=w,"Adjusting an element that was entirely after the change range"),E.assert(x.pos<=x.end);let z=Math.min(x.pos,D),V=x.end>=w?x.end+O:Math.min(x.end,D);E.assert(z<=V),x.parent&&(E.assertGreaterThanOrEqual(z,x.parent.pos),E.assertLessThanOrEqual(V,x.parent.end)),Lm(x,z,V)}function c(x,C){if(C){let w=x.pos,D=O=>{E.assert(O.pos>=w),w=O.end};if(Z_(x))for(let O of x.jsDoc)D(O);vs(x,D),E.assert(w<=x.end)}}function u(x,C,w,D,O,z,V,X){J(x);return;function J(B){if(E.assert(B.pos<=B.end),B.pos>w){i(B,!1,O,z,V,X);return}let Z=B.end;if(Z>=C){if(B.intersectsChange=!0,B._children=void 0,o(B,C,w,D,O),vs(B,J,ie),Z_(B))for(let ae of B.jsDoc)J(ae);c(B,X);return}E.assert(Zw){i(B,!0,O,z,V,X);return}let Z=B.end;if(Z>=C){B.intersectsChange=!0,B._children=void 0,o(B,C,w,D,O);for(let ae of B)J(ae);return}E.assert(Z0&&V<=1;V++){let X=g(x,D);E.assert(X.pos<=D);let J=X.pos;D=Math.max(0,J-1)}let O=Xc(D,Dc(C.span)),z=C.newLength+(C.span.start-D);return wP(O,z)}function g(x,C){let w=x,D;if(vs(x,z),D){let V=O(D);V.pos>w.pos&&(w=V)}return w;function O(V){for(;;){let X=Hz(V);if(X)V=X;else return V}}function z(V){if(!dc(V))if(V.pos<=C){if(V.pos>=w.pos&&(w=V),CC),!0}}function p(x,C,w,D){let O=x.text;if(w&&(E.assert(O.length-w.span.length+w.newLength===C.length),D||E.shouldAssert(3))){let z=O.substr(0,w.span.start),V=C.substr(0,w.span.start);E.assert(z===V);let X=O.substring(Dc(w.span),O.length),J=C.substring(Dc(J4(w)),C.length);E.assert(X===J)}}function y(x){let C=x.statements,w=0;E.assert(w=ie.pos&&V=ie.pos&&V{x[x.Value=-1]="Value"})(S||(S={}))})(EW||(EW={})),DW=new Map,Z1e=/^\/\/\/\s*<(\S+)\s.*?\/>/im,K1e=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function bO(e){let t=new Map,n=new Map;return Qt(e,i=>{t.set(i.name.toLowerCase(),i),i.shortName&&n.set(i.shortName,i.name)}),{optionsNameMap:t,shortOptionNames:n}}function BC(){return Rve||(Rve=bO(Cg))}function sie(e){return eve(e,Tc)}function eve(e,t){let n=hs(e.type.keys()),i=(e.deprecatedKeys?n.filter(s=>!e.deprecatedKeys.has(s)):n).map(s=>`'${s}'`).join(", ");return t(d.Argument_for_0_option_must_be_Colon_1,`--${e.name}`,i)}function SO(e,t,n){return Ive(e,(t??"").trim(),n)}function aie(e,t="",n){if(t=t.trim(),ts(t,"-"))return;if(e.type==="listOrElement"&&!t.includes(","))return rT(e,t,n);if(t==="")return[];let i=t.split(",");switch(e.element.type){case"number":return Ri(i,s=>rT(e.element,parseInt(s),n));case"string":return Ri(i,s=>rT(e.element,s||"",n));case"boolean":case"object":return E.fail(`List of ${e.element.type} is not yet supported.`);default:return Ri(i,s=>SO(e.element,s,n))}}function tve(e){return e.name}function oie(e,t,n,i,s){var o;if((o=t.alternateMode)!=null&&o.getOptionsNameMap().optionsNameMap.has(e.toLowerCase()))return w1(s,i,t.alternateMode.diagnostic,e);let c=P4(e,t.optionDeclarations,tve);return c?w1(s,i,t.unknownDidYouMeanDiagnostic,n||e,c.name):w1(s,i,t.unknownOptionDiagnostic,n||e)}function PW(e,t,n){let i={},s,o=[],c=[];return u(t),{options:i,watchOptions:s,fileNames:o,errors:c};function u(g){let p=0;for(;pHl.readFile(x)));if(!os(p)){c.push(p);return}let y=[],S=0;for(;;){for(;S=p.length)break;let x=S;if(p.charCodeAt(x)===34){for(S++;S32;)S++;y.push(p.substring(x,S))}}u(y)}}function nve(e,t,n,i,s,o){if(i.isTSConfigOnly){let c=e[t];c==="null"?(s[i.name]=void 0,t++):i.type==="boolean"?c==="false"?(s[i.name]=rT(i,!1,o),t++):(c==="true"&&t++,o.push(Tc(d.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,i.name))):(o.push(Tc(d.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,i.name)),c&&!ts(c,"-")&&t++)}else if(!e[t]&&i.type!=="boolean"&&o.push(Tc(n.optionTypeMismatchDiagnostic,i.name,IW(i))),e[t]!=="null")switch(i.type){case"number":s[i.name]=rT(i,parseInt(e[t]),o),t++;break;case"boolean":let c=e[t];s[i.name]=rT(i,c!=="false",o),(c==="false"||c==="true")&&t++;break;case"string":s[i.name]=rT(i,e[t]||"",o),t++;break;case"list":let u=aie(i,e[t],o);s[i.name]=u||[],u&&t++;break;case"listOrElement":E.fail("listOrElement not supported here");break;default:s[i.name]=SO(i,e[t],o),t++;break}else s[i.name]=void 0,t++;return t}function rve(e,t){return PW(q8,e,t)}function wW(e,t){return cie(BC,e,t)}function cie(e,t,n=!1){t=t.toLowerCase();let{optionsNameMap:i,shortOptionNames:s}=e();if(n){let o=s.get(t);o!==void 0&&(t=o)}return i.get(t)}function ive(){return Bve||(Bve=bO(DO))}function sve(e){let{options:t,watchOptions:n,fileNames:i,errors:s}=PW(zve,e),o=t;return i.length===0&&i.push("."),o.clean&&o.force&&s.push(Tc(d.Options_0_and_1_cannot_be_combined,"clean","force")),o.clean&&o.verbose&&s.push(Tc(d.Options_0_and_1_cannot_be_combined,"clean","verbose")),o.clean&&o.watch&&s.push(Tc(d.Options_0_and_1_cannot_be_combined,"clean","watch")),o.watch&&o.dry&&s.push(Tc(d.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:o,watchOptions:n,projects:i,errors:s}}function ave(e,...t){return Vs(Tc(e,...t).messageText,os)}function L8(e,t,n,i,s,o){let c=u3(e,g=>n.readFile(g));if(!os(c)){n.onUnRecoverableConfigFileDiagnostic(c);return}let u=O8(e,c),f=n.getCurrentDirectory();return u.path=xo(e,f,cu(n.useCaseSensitiveFileNames)),u.resolvedPath=u.path,u.originalFileName=u.fileName,j8(u,n,cs(Xr(e),f),t,cs(e,f),void 0,o,i,s)}function M8(e,t){let n=u3(e,t);return os(n)?AW(e,n):{config:{},error:n}}function AW(e,t){let n=O8(e,t);return{config:_ve(n,n.parseDiagnostics,void 0),error:n.parseDiagnostics.length?n.parseDiagnostics[0]:void 0}}function lie(e,t){let n=u3(e,t);return os(n)?O8(e,n):{fileName:e,parseDiagnostics:[n]}}function u3(e,t){let n;try{n=t(e)}catch(i){return Tc(d.Cannot_read_file_0_Colon_1,e,i.message)}return n===void 0?Tc(d.Cannot_read_file_0,e):n}function NW(e){return jh(e,tve)}function ove(){return Vve||(Vve=bO(JC))}function cve(){return Wve||(Wve=NW(Cg))}function lve(){return Uve||(Uve=NW(JC))}function uve(){return qve||(qve=NW(U8))}function YOe(){return Tie===void 0&&(Tie={name:void 0,type:"object",elementOptions:NW([bie,Sie,xie,H8,{name:"references",type:"list",element:{name:"references",type:"object"},category:d.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:d.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:d.File_Management,defaultValueDescription:d.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:d.File_Management,defaultValueDescription:d.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},J8])}),Tie}function _ve(e,t,n){var i;let s=(i=e.statements[0])==null?void 0:i.expression;if(s&&s.kind!==210){if(t.push(pp(e,s,d.The_root_value_of_a_0_file_must_be_an_object,Mc(e.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Vu(s)){let o=xr(s.elements,xa);if(o)return R8(e,o,t,!0,n)}return{}}return R8(e,s,t,!0,n)}function uie(e,t){var n;return R8(e,(n=e.statements[0])==null?void 0:n.expression,t,!0,void 0)}function R8(e,t,n,i,s){if(!t)return i?{}:void 0;return u(t,s?.rootOptions);function o(g,p){var y;let S=i?{}:void 0;for(let x of g.properties){if(x.kind!==303){n.push(pp(e,x,d.Property_assignment_expected));continue}x.questionToken&&n.push(pp(e,x.questionToken,d.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),f(x.name)||n.push(pp(e,x.name,d.String_literal_with_double_quotes_expected));let C=YP(x.name)?void 0:Jk(x.name),w=C&&Ci(C),D=w?(y=p?.elementOptions)==null?void 0:y.get(w):void 0,O=u(x.initializer,D);typeof w<"u"&&(i&&(S[w]=O),s?.onPropertySet(w,O,x,p,D))}return S}function c(g,p){if(!i){g.forEach(y=>u(y,p));return}return Fr(g.map(y=>u(y,p)),y=>y!==void 0)}function u(g,p){switch(g.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return f(g)||n.push(pp(e,g,d.String_literal_with_double_quotes_expected)),g.text;case 9:return Number(g.text);case 224:if(g.operator!==41||g.operand.kind!==9)break;return-Number(g.operand.text);case 210:return o(g,p);case 209:return c(g.elements,p&&p.element)}p?n.push(pp(e,g,d.Compiler_option_0_requires_a_value_of_type_1,p.name,IW(p))):n.push(pp(e,g,d.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function f(g){return ca(g)&&d5(g,e)}}function IW(e){return e.type==="listOrElement"?`${IW(e.element)} or Array`:e.type==="list"?"Array":os(e.type)?e.type:"string"}function fve(e,t){if(e){if(B8(t))return!e.disallowNullOrUndefined;if(e.type==="list")return ss(t);if(e.type==="listOrElement")return ss(t)||fve(e.element,t);let n=os(e.type)?e.type:"string";return typeof t===n}return!1}function pve(e,t,n){var i,s,o;let c=cu(n.useCaseSensitiveFileNames),u=Kt(Fr(e.fileNames,(s=(i=e.options.configFile)==null?void 0:i.configFileSpecs)!=null&&s.validatedIncludeSpecs?KOe(t,e.options.configFile.configFileSpecs.validatedIncludeSpecs,e.options.configFile.configFileSpecs.validatedExcludeSpecs,n):Yg),y=>yP(cs(t,n.getCurrentDirectory()),cs(y,n.getCurrentDirectory()),c)),f=LW(e.options,{configFilePath:cs(t,n.getCurrentDirectory()),useCaseSensitiveFileNames:n.useCaseSensitiveFileNames}),g=e.watchOptions&&e9e(e.watchOptions);return{compilerOptions:{...FW(f),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:g&&FW(g),references:Kt(e.projectReferences,y=>({...y,path:y.originalPath?y.originalPath:"",originalPath:void 0})),files:bn(u)?u:void 0,...(o=e.options.configFile)!=null&&o.configFileSpecs?{include:ZOe(e.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:e.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:e.compileOnSave?!0:void 0}}function FW(e){return{...hs(e.entries()).reduce((t,n)=>({...t,[n[0]]:n[1]}),{})}}function ZOe(e){if(bn(e)){if(bn(e)!==1)return e;if(e[0]!==AO)return e}}function KOe(e,t,n,i){if(!t)return Yg;let s=Z5(e,n,t,i.useCaseSensitiveFileNames,i.getCurrentDirectory()),o=s.excludePattern&&ry(s.excludePattern,i.useCaseSensitiveFileNames),c=s.includeFilePattern&&ry(s.includeFilePattern,i.useCaseSensitiveFileNames);return c?o?u=>!(c.test(u)&&!o.test(u)):u=>!c.test(u):o?u=>o.test(u):Yg}function dve(e){switch(e.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return dve(e.element);default:return e.type}}function OW(e,t){return $l(t,(n,i)=>{if(n===e)return i})}function LW(e,t){return mve(e,BC(),t)}function e9e(e){return mve(e,ove())}function mve(e,{optionsNameMap:t},n){let i=new Map,s=n&&cu(n.useCaseSensitiveFileNames);for(let o in e)if(so(e,o)){if(t.has(o)&&(t.get(o).category===d.Command_line_Options||t.get(o).category===d.Output_Formatting))continue;let c=e[o],u=t.get(o.toLowerCase());if(u){E.assert(u.type!=="listOrElement");let f=dve(u);f?u.type==="list"?i.set(o,c.map(g=>OW(g,f))):i.set(o,OW(c,f)):n&&u.isFilePath?i.set(o,yP(n.configFilePath,cs(c,Xr(n.configFilePath)),s)):i.set(o,c)}}return i}function gve(e,t){let n=hve(e);return s();function i(o){return Array(o+1).join(" ")}function s(){let o=[],c=i(2);return JW.forEach(u=>{if(!n.has(u.name))return;let f=n.get(u.name),g=gie(u);f!==g?o.push(`${c}${u.name}: ${f}`):so(PO,u.name)&&o.push(`${c}${u.name}: ${g}`)}),o.join(t)+t}}function hve(e){let t=BI(e,PO);return LW(t)}function yve(e,t,n){let i=hve(e);return c();function s(u){return Array(u+1).join(" ")}function o({category:u,name:f,isCommandLineOnly:g}){let p=[d.Command_line_Options,d.Editor_Support,d.Compiler_Diagnostics,d.Backwards_Compatibility,d.Watch_and_Build_Modes,d.Output_Formatting];return!g&&u!==void 0&&(!p.includes(u)||i.has(f))}function c(){let u=new Map;u.set(d.Projects,[]),u.set(d.Language_and_Environment,[]),u.set(d.Modules,[]),u.set(d.JavaScript_Support,[]),u.set(d.Emit,[]),u.set(d.Interop_Constraints,[]),u.set(d.Type_Checking,[]),u.set(d.Completeness,[]);for(let x of Cg)if(o(x)){let C=u.get(x.category);C||u.set(x.category,C=[]),C.push(x)}let f=0,g=0,p=[];u.forEach((x,C)=>{p.length!==0&&p.push({value:""}),p.push({value:`/* ${ds(C)} */`});for(let w of x){let D;i.has(w.name)?D=`"${w.name}": ${JSON.stringify(i.get(w.name))}${(g+=1)===i.size?"":","}`:D=`// "${w.name}": ${JSON.stringify(gie(w))},`,p.push({value:D,description:`/* ${w.description&&ds(w.description)||w.name} */`}),f=Math.max(D.length,f)}});let y=s(2),S=[];S.push("{"),S.push(`${y}"compilerOptions": {`),S.push(`${y}${y}/* ${ds(d.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),S.push("");for(let x of p){let{value:C,description:w=""}=x;S.push(C&&`${y}${y}${C}${w&&s(f-C.length+2)+w}`)}if(t.length){S.push(`${y}},`),S.push(`${y}"files": [`);for(let x=0;xtypeof se=="object","object"),ae=X(J("files"));if(ae){let se=Z==="no-prop"||ss(Z)&&Z.length===0,Y=so(S,"extends");if(ae.length===0&&se&&!Y)if(t){let ve=c||"tsconfig.json",xe=d.The_files_list_in_config_file_0_is_empty,Me=nw(t,"files",he=>he.initializer),ke=w1(t,Me,xe,ve);p.push(ke)}else B(d.The_files_list_in_config_file_0_is_empty,c||"tsconfig.json")}let _e=X(J("include")),$=J("exclude"),H=!1,K=X($);if($==="no-prop"&&S.compilerOptions){let se=S.compilerOptions.outDir,Y=S.compilerOptions.declarationDir;(se||Y)&&(K=[se,Y].filter(ve=>!!ve))}ae===void 0&&_e===void 0&&(_e=[AO],H=!0);let oe,Se;return _e&&(oe=Mve(_e,p,!0,t,"include")),K&&(Se=Mve(K,p,!1,t,"exclude")),{filesSpecs:ae,includeSpecs:_e,excludeSpecs:K,validatedFilesSpec:Fr(ae,os),validatedIncludeSpecs:oe,validatedExcludeSpecs:Se,pathPatterns:void 0,isDefaultIncludeSpec:H}}function z(Z){let ae=f3(w,Z,x,n,f);return Tve(ae,_3(S),u)&&p.push(xve(w,c)),ae}function V(Z){let ae,_e=ie("references",$=>typeof $=="object","object");if(ss(_e))for(let $ of _e)typeof $.path!="string"?B(d.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(ae||(ae=[])).push({path:cs($.path,Z),originalPath:$.path,prepend:$.prepend,circular:$.circular});return ae}function X(Z){return ss(Z)?Z:void 0}function J(Z){return ie(Z,os,"string")}function ie(Z,ae,_e){if(so(S,Z)&&!B8(S[Z]))if(ss(S[Z])){let $=S[Z];return!t&&!hi($,ae)&&p.push(Tc(d.Compiler_option_0_requires_a_value_of_type_1,Z,_e)),$}else return B(d.Compiler_option_0_requires_a_value_of_type_1,Z,"Array"),"not-array";return"no-prop"}function B(Z,...ae){t||p.push(Tc(Z,...ae))}}function n9e(e){return e.code===d.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function xve({includeSpecs:e,excludeSpecs:t},n){return Tc(d.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,n||"tsconfig.json",JSON.stringify(e||[]),JSON.stringify(t||[]))}function Tve(e,t,n){return e.length===0&&t&&(!n||n.length===0)}function _3(e){return!so(e,"files")&&!so(e,"references")}function xO(e,t,n,i,s){let o=i.length;return Tve(e,s)?i.push(xve(n,t)):xj(i,c=>!n9e(c)),o!==i.length}function r9e(e){return!!e.options}function kve(e,t,n,i,s,o,c,u){var f;i=Su(i);let g=cs(s||"",i);if(o.includes(g))return c.push(Tc(d.Circularity_detected_while_resolving_configuration_Colon_0,[...o,g].join(" -> "))),{raw:e||uie(t,c)};let p=e?i9e(e,n,i,s,c):s9e(t,n,i,s,c);if((f=p.options)!=null&&f.paths&&(p.options.pathsBasePath=i),p.extendedConfigPath){o=o.concat([g]);let S={options:{}};os(p.extendedConfigPath)?y(S,p.extendedConfigPath):p.extendedConfigPath.forEach(x=>y(S,x)),!p.raw.include&&S.include&&(p.raw.include=S.include),!p.raw.exclude&&S.exclude&&(p.raw.exclude=S.exclude),!p.raw.files&&S.files&&(p.raw.files=S.files),p.raw.compileOnSave===void 0&&S.compileOnSave&&(p.raw.compileOnSave=S.compileOnSave),t&&S.extendedSourceFiles&&(t.extendedSourceFiles=hs(S.extendedSourceFiles.keys())),p.options=C4(S.options,p.options),p.watchOptions=p.watchOptions&&S.watchOptions?C4(S.watchOptions,p.watchOptions):p.watchOptions||S.watchOptions}return p;function y(S,x){let C=a9e(t,x,n,o,c,u,S);if(C&&r9e(C)){let w=C.raw,D,O=z=>{w[z]&&(S[z]=Kt(w[z],V=>I_(V)?V:Qr(D||(D=L4(Xr(x),i,cu(n.useCaseSensitiveFileNames))),V)))};O("include"),O("exclude"),O("files"),w.compileOnSave!==void 0&&(S.compileOnSave=w.compileOnSave),C4(S.options,C.options),S.watchOptions=S.watchOptions&&C.watchOptions?C4({},S.watchOptions,C.watchOptions):S.watchOptions||C.watchOptions}}}function i9e(e,t,n,i,s){so(e,"excludes")&&s.push(Tc(d.Unknown_option_excludes_Did_you_mean_exclude));let o=Ave(e.compilerOptions,n,s,i),c=Nve(e.typeAcquisition,n,s,i),u=c9e(e.watchOptions,n,s);e.compileOnSave=o9e(e,n,s);let f=e.extends||e.extends===""?Cve(e.extends,t,n,i,s):void 0;return{raw:e,options:o,watchOptions:u,typeAcquisition:c,extendedConfigPath:f}}function Cve(e,t,n,i,s,o,c,u){let f,g=i?bve(i,n):n;if(os(e))f=Eve(e,t,g,s,c,u);else if(ss(e)){f=[];for(let p=0;pz.name===x)&&(g=_n(g,w.name))))}}function Eve(e,t,n,i,s,o){if(e=Su(e),I_(e)||ts(e,"./")||ts(e,"../")){let u=cs(e,n);if(!t.fileExists(u)&&!Sc(u,".json")&&(u=`${u}.json`,!t.fileExists(u))){i.push(w1(o,s,d.File_0_not_found,e));return}return u}let c=Iie(e,Qr(n,"tsconfig.json"),t);if(c.resolvedModule)return c.resolvedModule.resolvedFileName;e===""?i.push(w1(o,s,d.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):i.push(w1(o,s,d.File_0_not_found,e))}function a9e(e,t,n,i,s,o,c){let u=n.useCaseSensitiveFileNames?t:Od(t),f,g,p;if(o&&(f=o.get(u))?{extendedResult:g,extendedConfig:p}=f:(g=lie(t,y=>n.readFile(y)),g.parseDiagnostics.length||(p=kve(void 0,g,n,Xr(t),Mc(t),i,s,o)),o&&o.set(u,{extendedResult:g,extendedConfig:p})),e&&((c.extendedSourceFiles??(c.extendedSourceFiles=new Set)).add(g.fileName),g.extendedSourceFiles))for(let y of g.extendedSourceFiles)c.extendedSourceFiles.add(y);if(g.parseDiagnostics.length){s.push(...g.parseDiagnostics);return}return p}function o9e(e,t,n){if(!so(e,J8.name))return!1;let i=$2(J8,e.compileOnSave,t,n);return typeof i=="boolean"&&i}function Dve(e,t,n){let i=[];return{options:Ave(e,t,i,n),errors:i}}function Pve(e,t,n){let i=[];return{options:Nve(e,t,i,n),errors:i}}function wve(e){return e&&Mc(e)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function Ave(e,t,n,i){let s=wve(i);return _ie(cve(),e,t,s,q8,n),i&&(s.configFilePath=Su(i)),s}function jW(e){return{enable:!!e&&Mc(e)==="jsconfig.json",include:[],exclude:[]}}function Nve(e,t,n,i){let s=jW(i);return _ie(uve(),e,t,s,vie,n),s}function c9e(e,t,n){return _ie(lve(),e,t,void 0,wO,n)}function _ie(e,t,n,i,s,o){if(t){for(let c in t){let u=e.get(c);u?(i||(i={}))[u.name]=$2(u,t[c],n,o):o.push(oie(c,s))}return i}}function w1(e,t,n,...i){return e&&t?pp(e,t,n,...i):Tc(n,...i)}function $2(e,t,n,i,s,o,c){if(e.isCommandLineOnly){i.push(w1(c,s?.name,d.Option_0_can_only_be_specified_on_command_line,e.name));return}if(fve(e,t)){let u=e.type;if(u==="list"&&ss(t))return Fve(e,t,n,i,s,o,c);if(u==="listOrElement")return ss(t)?Fve(e,t,n,i,s,o,c):$2(e.element,t,n,i,s,o,c);if(!os(e.type))return Ive(e,t,i,o,c);let f=rT(e,t,i,o,c);return B8(f)?f:l9e(e,n,f)}else i.push(w1(c,o,d.Compiler_option_0_requires_a_value_of_type_1,e.name,IW(e)))}function l9e(e,t,n){return e.isFilePath&&(n=cs(n,t),n===""&&(n=".")),n}function rT(e,t,n,i,s){var o;if(B8(t))return;let c=(o=e.extraValidation)==null?void 0:o.call(e,t);if(!c)return t;n.push(w1(s,i,...c))}function Ive(e,t,n,i,s){if(B8(t))return;let o=t.toLowerCase(),c=e.type.get(o);if(c!==void 0)return rT(e,c,n,i,s);n.push(eve(e,(u,...f)=>w1(s,i,u,...f)))}function Fve(e,t,n,i,s,o,c){return Fr(Kt(t,(u,f)=>$2(e.element,u,n,i,s,o?.elements[f],c)),u=>e.listPreserveFalsyValues?!0:!!u)}function f3(e,t,n,i,s=Ve){t=Ys(t);let o=cu(i.useCaseSensitiveFileNames),c=new Map,u=new Map,f=new Map,{validatedFilesSpec:g,validatedIncludeSpecs:p,validatedExcludeSpecs:y}=e,S=AE(n,s),x=qw(n,S);if(g)for(let O of g){let z=cs(O,t);c.set(o(z),z)}let C;if(p&&p.length>0)for(let O of i.readDirectory(t,Jp(x),y,p,void 0)){if(nc(O,".json")){if(!C){let X=p.filter(ie=>Sc(ie,".json")),J=Kt(Y5(X,t,"files"),ie=>`^${ie}$`);C=J?J.map(ie=>ry(ie,i.useCaseSensitiveFileNames)):Ve}if(Qo(C,X=>X.test(O))!==-1){let X=o(O);!c.has(X)&&!f.has(X)&&f.set(X,O)}continue}if(f9e(O,c,u,S,o))continue;p9e(O,u,S,o);let z=o(O);!c.has(z)&&!u.has(z)&&u.set(z,O)}let w=hs(c.values()),D=hs(u.values());return w.concat(D,hs(f.values()))}function fie(e,t,n,i,s){let{validatedFilesSpec:o,validatedIncludeSpecs:c,validatedExcludeSpecs:u}=t;if(!bn(c)||!bn(u))return!1;n=Ys(n);let f=cu(i);if(o){for(let g of o)if(f(cs(g,n))===e)return!1}return Lve(e,u,i,s,n)}function Ove(e){let t=ts(e,"**/")?0:e.indexOf("/**/");return t===-1?!1:(Sc(e,"/..")?e.length:e.lastIndexOf("/../"))>t}function TO(e,t,n,i){return Lve(e,Fr(t,s=>!Ove(s)),n,i)}function Lve(e,t,n,i,s){let o=wE(t,Qr(Ys(i),s),"exclude"),c=o&&ry(o,n);return c?c.test(e)?!0:!fx(e)&&c.test(wl(e)):!1}function Mve(e,t,n,i,s){return e.filter(c=>{if(!os(c))return!1;let u=pie(c,n);return u!==void 0&&t.push(o(...u)),u===void 0});function o(c,u){let f=n5(i,s,u);return w1(i,f,c,u)}}function pie(e,t){if(E.assert(typeof e=="string"),t&&Hve.test(e))return[d.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e];if(Ove(e))return[d.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,e]}function u9e({validatedIncludeSpecs:e,validatedExcludeSpecs:t},n,i){let s=wE(t,n,"exclude"),o=s&&new RegExp(s,i?"":"i"),c={};if(e!==void 0){let u=[];for(let f of e){let g=Ys(Qr(n,f));if(o&&o.test(g))continue;let p=_9e(g,i);if(p){let{key:y,flags:S}=p,x=c[y];(x===void 0||x$c(e,c)?c:void 0);if(!o)return!1;for(let c of o){if(nc(e,c)&&(c!==".ts"||!nc(e,".d.ts")))return!1;let u=s(g1(e,c));if(t.has(u)||n.has(u)){if(c===".d.ts"&&(nc(e,".js")||nc(e,".jsx")))continue;return!0}}return!1}function p9e(e,t,n,i){let s=Qt(n,o=>$c(e,o)?o:void 0);if(s)for(let o=s.length-1;o>=0;o--){let c=s[o];if(nc(e,c))return;let u=i(g1(e,c));t.delete(u)}}function die(e){let t={};for(let n in e)if(so(e,n)){let i=wW(n);i!==void 0&&(t[n]=mie(e[n],i))}return t}function mie(e,t){if(e===void 0)return e;switch(t.type){case"object":return"";case"string":return"";case"number":return typeof e=="number"?e:"";case"boolean":return typeof e=="boolean"?e:"";case"listOrElement":if(!ss(e))return mie(e,t.element);case"list":let n=t.element;return ss(e)?Ri(e,i=>mie(i,n)):"";default:return $l(t.type,(i,s)=>{if(i===e)return s})}}function gie(e){switch(e.type){case"number":return 1;case"boolean":return!0;case"string":let t=e.defaultValueDescription;return e.isFilePath?`./${t&&typeof t=="string"?t:""}`:"";case"list":return[];case"listOrElement":return gie(e.element);case"object":return{};default:let n=RI(e.type.keys());return n!==void 0?n:E.fail("Expected 'option.type' to have entries.")}}var J8,hie,p3,yie,z8,kO,JC,V8,W8,BW,JW,Cg,zW,VW,WW,CO,EO,UW,qW,HW,DO,U8,Rve,jve,PO,q8,Bve,Jve,zve,vie,Vve,wO,Wve,Uve,qve,H8,bie,Sie,xie,Tie,AO,Hve,Gve,d9e=ze({"src/compiler/commandLineParser.ts"(){"use strict";Rs(),J8={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},hie=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),p3=new Map(S4(hie.entries(),([e,t])=>[""+t,e])),yie=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.es2023.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],z8=yie.map(e=>e[0]),kO=new Map(yie),JC=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:d.Watch_and_Build_Modes,description:d.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:d.Watch_and_Build_Modes,description:d.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:d.Watch_and_Build_Modes,description:d.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:d.Watch_and_Build_Modes,description:d.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:pie},category:d.Watch_and_Build_Modes,description:d.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:pie},category:d.Watch_and_Build_Modes,description:d.Remove_a_list_of_files_from_the_watch_mode_s_processing}],V8=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:d.Command_line_Options,description:d.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:d.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:d.Command_line_Options,description:d.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:d.Output_Formatting,description:d.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:d.Compiler_Diagnostics,description:d.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:d.Compiler_Diagnostics,description:d.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:d.Compiler_Diagnostics,description:d.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:d.Output_Formatting,description:d.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:d.Compiler_Diagnostics,description:d.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:d.Compiler_Diagnostics,description:d.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:d.Compiler_Diagnostics,description:d.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:d.FILE_OR_DIRECTORY,category:d.Compiler_Diagnostics,description:d.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:d.DIRECTORY,category:d.Compiler_Diagnostics,description:d.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:d.Projects,description:d.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:d.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:d.Emit,transpileOptionValue:void 0,description:d.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:d.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:d.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:d.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:d.Emit,description:d.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:d.Emit,defaultValueDescription:!1,description:d.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:d.Emit,description:d.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:d.Watch_and_Build_Modes,description:d.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:d.Command_line_Options,isCommandLineOnly:!0,description:d.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:d.Platform_specific}],W8={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:d.VERSION,showInSimplifiedHelpView:!0,category:d.Language_and_Environment,description:d.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},BW={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:d.KIND,showInSimplifiedHelpView:!0,category:d.Modules,description:d.Specify_what_module_code_is_generated,defaultValueDescription:void 0},JW=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:d.Command_line_Options,description:d.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:d.Command_line_Options,description:d.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:d.Command_line_Options,description:d.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:d.Command_line_Options,paramType:d.FILE_OR_DIRECTORY,description:d.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:d.Command_line_Options,description:d.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:d.Command_line_Options,isCommandLineOnly:!0,description:d.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:d.Command_line_Options,isCommandLineOnly:!0,description:d.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},W8,BW,{name:"lib",type:"list",element:{name:"lib",type:kO,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:d.Language_and_Environment,description:d.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:d.JavaScript_Support,description:d.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:d.JavaScript_Support,description:d.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:hie,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:d.KIND,showInSimplifiedHelpView:!0,category:d.Language_and_Environment,description:d.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:d.FILE,showInSimplifiedHelpView:!0,category:d.Emit,description:d.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:d.DIRECTORY,showInSimplifiedHelpView:!0,category:d.Emit,description:d.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:d.LOCATION,category:d.Modules,description:d.Specify_the_root_folder_within_your_source_files,defaultValueDescription:d.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:d.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:d.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:d.FILE,category:d.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:d.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:d.Emit,defaultValueDescription:!1,description:d.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:d.Emit,description:d.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:d.Emit,description:d.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Emit,description:d.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:d.Emit,description:d.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:d.Interop_Constraints,description:d.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:d.Interop_Constraints,description:d.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:d.Type_Checking,description:d.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:d.Type_Checking,description:d.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:d.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:d.Type_Checking,description:d.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:d.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:d.Type_Checking,description:d.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:d.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:d.Type_Checking,description:d.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:d.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:d.Type_Checking,description:d.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:d.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:d.Type_Checking,description:d.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:d.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:d.Type_Checking,description:d.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:d.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:d.Type_Checking,description:d.Ensure_use_strict_is_always_emitted,defaultValueDescription:d.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Type_Checking,description:d.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Type_Checking,description:d.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Type_Checking,description:d.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Type_Checking,description:d.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Type_Checking,description:d.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Type_Checking,description:d.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Type_Checking,description:d.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:d.Type_Checking,description:d.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:d.STRATEGY,category:d.Modules,description:d.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:d.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:d.Modules,description:d.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:d.Modules,description:d.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:d.Modules,description:d.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:d.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:d.Modules,description:d.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:d.Modules,description:d.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Interop_Constraints,description:d.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:d.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:d.Interop_Constraints,description:d.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:d.Interop_Constraints,description:d.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Modules,description:d.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:d.Modules,description:d.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Modules,description:d.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:d.Modules,description:d.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:d.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:d.Modules,description:d.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:d.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:d.Modules,description:d.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:d.LOCATION,category:d.Emit,description:d.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:d.LOCATION,category:d.Emit,description:d.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:d.Emit,description:d.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Language_and_Environment,description:d.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:d.Language_and_Environment,description:d.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:d.Language_and_Environment,description:d.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:d.Language_and_Environment,description:d.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:d.Language_and_Environment,description:d.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:d.Modules,description:d.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:d.Modules,description:d.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:d.Backwards_Compatibility,paramType:d.FILE,transpileOptionValue:void 0,description:d.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:d.Language_and_Environment,description:d.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:d.Completeness,description:d.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:d.Backwards_Compatibility,description:d.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:d.Emit,description:d.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:d.NEWLINE,category:d.Emit,description:d.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Output_Formatting,description:d.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:d.Language_and_Environment,affectsProgramStructure:!0,description:d.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:d.Modules,description:d.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:d.Emit,description:d.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:d.Editor_Support,description:d.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:d.Projects,description:d.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:d.Projects,description:d.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:d.Projects,description:d.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Backwards_Compatibility,description:d.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:d.Emit,description:d.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:d.Emit,transpileOptionValue:void 0,description:d.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:d.Emit,description:d.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:d.DIRECTORY,category:d.Emit,transpileOptionValue:void 0,description:d.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:d.Completeness,description:d.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Type_Checking,description:d.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Type_Checking,description:d.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Backwards_Compatibility,description:d.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Backwards_Compatibility,description:d.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:d.Interop_Constraints,description:d.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:d.JavaScript_Support,description:d.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:d.Backwards_Compatibility,description:d.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:d.Language_and_Environment,description:d.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:d.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:d.Emit,description:d.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:d.Backwards_Compatibility,description:d.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:d.Specify_a_list_of_language_service_plugins_to_include,category:d.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:d.Control_what_method_is_used_to_detect_module_format_JS_files,category:d.Language_and_Environment,defaultValueDescription:d.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],Cg=[...V8,...JW],zW=Cg.filter(e=>!!e.affectsSemanticDiagnostics),VW=Cg.filter(e=>!!e.affectsEmit),WW=Cg.filter(e=>!!e.affectsDeclarationPath),CO=Cg.filter(e=>!!e.affectsModuleResolution),EO=Cg.filter(e=>!!e.affectsSourceFile||!!e.affectsBindDiagnostics),UW=Cg.filter(e=>!!e.affectsProgramStructure),qW=Cg.filter(e=>so(e,"transpileOptionValue")),HW=[{name:"verbose",shortName:"v",category:d.Command_line_Options,description:d.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:d.Command_line_Options,description:d.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:d.Command_line_Options,description:d.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:d.Command_line_Options,description:d.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],DO=[...V8,...HW],U8=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],jve={diagnostic:d.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:ive},PO={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},q8={alternateMode:jve,getOptionsNameMap:BC,optionDeclarations:Cg,unknownOptionDiagnostic:d.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:d.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:d.Compiler_option_0_expects_an_argument},Jve={diagnostic:d.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:BC},zve={alternateMode:Jve,getOptionsNameMap:ive,optionDeclarations:DO,unknownOptionDiagnostic:d.Unknown_build_option_0,unknownDidYouMeanDiagnostic:d.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:d.Build_option_0_requires_a_value_of_type_1},vie={optionDeclarations:U8,unknownOptionDiagnostic:d.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:d.Unknown_type_acquisition_option_0_Did_you_mean_1},wO={getOptionsNameMap:ove,optionDeclarations:JC,unknownOptionDiagnostic:d.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:d.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:d.Watch_option_0_requires_a_value_of_type_1},H8={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:d.File_Management,disallowNullOrUndefined:!0},bie={name:"compilerOptions",type:"object",elementOptions:cve(),extraKeyDiagnostics:q8},Sie={name:"watchOptions",type:"object",elementOptions:lve(),extraKeyDiagnostics:wO},xie={name:"typeAcquisition",type:"object",elementOptions:uve(),extraKeyDiagnostics:vie},AO="**/*",Hve=/(^|\/)\*\*\/?$/,Gve=/^[^*?]*(?=\/[^/]*[*?])/}});function Zi(e,t,...n){e.trace($z(t,...n))}function _h(e,t){return!!e.traceResolution&&t.trace!==void 0}function iT(e,t){let n;if(t&&e){let i=e.contents.packageJsonContent;typeof i.name=="string"&&typeof i.version=="string"&&(n={name:i.name,subModuleName:t.path.slice(e.packageDirectory.length+Oo.length),version:i.version})}return t&&{path:t.path,extension:t.ext,packageId:n,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function GW(e){return iT(void 0,e)}function $ve(e){if(e)return E.assert(e.packageId===void 0),{path:e.path,ext:e.extension,resolvedUsingTsExtension:e.resolvedUsingTsExtension}}function NO(e){let t=[];return e&1&&t.push("TypeScript"),e&2&&t.push("JavaScript"),e&4&&t.push("Declaration"),e&8&&t.push("JSON"),t.join(", ")}function m9e(e){let t=[];return e&1&&t.push(...n8),e&2&&t.push(...hC),e&4&&t.push(...t8),e&8&&t.push(".json"),t}function kie(e){if(e)return E.assert(nF(e.extension)),{fileName:e.path,packageId:e.packageId}}function Xve(e,t,n,i,s,o,c,u,f){if(!c.resultFromCache&&!c.compilerOptions.preserveSymlinks&&t&&n&&!t.originalPath&&!Al(e)){let{resolvedFileName:g,originalPath:p}=Zve(t.path,c.host,c.traceEnabled);p&&(t={...t,path:g,originalPath:p})}return Qve(t,n,i,s,o,c.resultFromCache,u,f)}function Qve(e,t,n,i,s,o,c,u){return o?c?.isReadonly?{...o,failedLookupLocations:Cie(o.failedLookupLocations,n),affectingLocations:Cie(o.affectingLocations,i),resolutionDiagnostics:Cie(o.resolutionDiagnostics,s)}:(o.failedLookupLocations=zC(o.failedLookupLocations,n),o.affectingLocations=zC(o.affectingLocations,i),o.resolutionDiagnostics=zC(o.resolutionDiagnostics,s),o):{resolvedModule:e&&{resolvedFileName:e.path,originalPath:e.originalPath===!0?void 0:e.originalPath,extension:e.extension,isExternalLibraryImport:t,packageId:e.packageId,resolvedUsingTsExtension:!!e.resolvedUsingTsExtension},failedLookupLocations:d3(n),affectingLocations:d3(i),resolutionDiagnostics:d3(s),node10Result:u}}function d3(e){return e.length?e:void 0}function zC(e,t){return t?.length?e?.length?(e.push(...t),e):t:e}function Cie(e,t){return e?.length?t.length?[...e,...t]:e.slice():d3(t)}function Yve(e,t,n,i){if(!so(e,t)){i.traceEnabled&&Zi(i.host,d.package_json_does_not_have_a_0_field,t);return}let s=e[t];if(typeof s!==n||s===null){i.traceEnabled&&Zi(i.host,d.Expected_type_of_0_field_in_package_json_to_be_1_got_2,t,n,s===null?"null":typeof s);return}return s}function $W(e,t,n,i){let s=Yve(e,t,"string",i);if(s===void 0)return;if(!s){i.traceEnabled&&Zi(i.host,d.package_json_had_a_falsy_0_field,t);return}let o=Ys(Qr(n,s));return i.traceEnabled&&Zi(i.host,d.package_json_has_0_field_1_that_references_2,t,s,o),o}function g9e(e,t,n){return $W(e,"typings",t,n)||$W(e,"types",t,n)}function h9e(e,t,n){return $W(e,"tsconfig",t,n)}function y9e(e,t,n){return $W(e,"main",t,n)}function v9e(e,t){let n=Yve(e,"typesVersions","object",t);if(n!==void 0)return t.traceEnabled&&Zi(t.host,d.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),n}function b9e(e,t){let n=v9e(e,t);if(n===void 0)return;if(t.traceEnabled)for(let c in n)so(n,c)&&!oP.tryParse(c)&&Zi(t.host,d.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,c);let i=IO(n);if(!i){t.traceEnabled&&Zi(t.host,d.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,Qi);return}let{version:s,paths:o}=i;if(typeof o!="object"){t.traceEnabled&&Zi(t.host,d.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${s}']`,"object",typeof o);return}return i}function IO(e){Jie||(Jie=new zp(ps));for(let t in e){if(!so(e,t))continue;let n=oP.tryParse(t);if(n!==void 0&&n.test(Jie))return{version:t,paths:e[t]}}}function m3(e,t){if(e.typeRoots)return e.typeRoots;let n;if(e.configFilePath?n=Xr(e.configFilePath):t.getCurrentDirectory&&(n=t.getCurrentDirectory()),n!==void 0)return S9e(n)}function S9e(e){let t;return Ld(Ys(e),n=>{let i=Qr(n,vbe);(t??(t=[])).push(i)}),t}function x9e(e,t,n){let i=typeof n.useCaseSensitiveFileNames=="function"?n.useCaseSensitiveFileNames():n.useCaseSensitiveFileNames;return t1(e,t,!i)===0}function Zve(e,t,n){let i=O9e(e,t,n),s=x9e(e,i,t);return{resolvedFileName:s?e:i,originalPath:s?void 0:e}}function Kve(e,t,n){let i=Sc(e,"/node_modules/@types")||Sc(e,"/node_modules/@types/")?gbe(t,n):t;return Qr(e,i)}function Eie(e,t,n,i,s,o,c){E.assert(typeof e=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");let u=_h(n,i);s&&(n=s.commandLine.options);let f=t?Xr(t):void 0,g=f?o?.getFromDirectoryCache(e,c,f,s):void 0;if(!g&&f&&!Al(e)&&(g=o?.getFromNonRelativeNameCache(e,c,f,s)),g)return u&&(Zi(i,d.Resolving_type_reference_directive_0_containing_file_1,e,t),s&&Zi(i,d.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName),Zi(i,d.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,e,f),J(g)),g;let p=m3(n,i);u&&(t===void 0?p===void 0?Zi(i,d.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,e):Zi(i,d.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,e,p):p===void 0?Zi(i,d.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,e,t):Zi(i,d.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,e,t,p),s&&Zi(i,d.Using_compiler_options_of_project_reference_redirect_0,s.sourceFile.fileName));let y=[],S=[],x=Die(n);c!==void 0&&(x|=30);let C=Yl(n);c===99&&3<=C&&C<=99&&(x|=32);let w=x&8?ab(n,c):[],D=[],O={compilerOptions:n,host:i,traceEnabled:u,failedLookupLocations:y,affectingLocations:S,packageJsonInfoCache:o,features:x,conditions:w,requestContainingDirectory:f,reportDiagnostic:Z=>void D.push(Z),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},z=ie(),V=!0;z||(z=B(),V=!1);let X;if(z){let{fileName:Z,packageId:ae}=z,_e=Z,$;n.preserveSymlinks||({resolvedFileName:_e,originalPath:$}=Zve(Z,i,u)),X={primary:V,resolvedFileName:_e,originalPath:$,packageId:ae,isExternalLibraryImport:aT(Z)}}return g={resolvedTypeReferenceDirective:X,failedLookupLocations:d3(y),affectingLocations:d3(S),resolutionDiagnostics:d3(D)},f&&o&&!o.isReadonly&&(o.getOrCreateCacheForDirectory(f,s).set(e,c,g),Al(e)||o.getOrCreateCacheForNonRelativeName(e,c,s).set(f,g)),u&&J(g),g;function J(Z){var ae;(ae=Z.resolvedTypeReferenceDirective)!=null&&ae.resolvedFileName?Z.resolvedTypeReferenceDirective.packageId?Zi(i,d.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,e,Z.resolvedTypeReferenceDirective.resolvedFileName,Y0(Z.resolvedTypeReferenceDirective.packageId),Z.resolvedTypeReferenceDirective.primary):Zi(i,d.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,e,Z.resolvedTypeReferenceDirective.resolvedFileName,Z.resolvedTypeReferenceDirective.primary):Zi(i,d.Type_reference_directive_0_was_not_resolved,e)}function ie(){if(p&&p.length)return u&&Zi(i,d.Resolving_with_primary_search_path_0,p.join(", ")),ba(p,Z=>{let ae=Kve(Z,e,O),_e=_d(Z,i);if(!_e&&u&&Zi(i,d.Directory_0_does_not_exist_skipping_all_lookups_in_it,Z),n.typeRoots){let $=UC(4,ae,!_e,O);if($){let H=$8($.path),K=H?ob(H,!1,O):void 0;return kie(iT(K,$))}}return kie(Lie(4,ae,!_e,O))});u&&Zi(i,d.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function B(){let Z=t&&Xr(t);if(Z!==void 0){let ae;if(!n.typeRoots||!Sc(t,YC))if(u&&Zi(i,d.Looking_up_in_node_modules_folder_initial_location_0,Z),Al(e)){let{path:_e}=sbe(Z,e);ae=KW(4,_e,!1,O,!0)}else{let _e=fbe(4,e,Z,O,void 0,void 0);ae=_e&&_e.value}else u&&Zi(i,d.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return kie(ae)}else u&&Zi(i,d.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function Die(e){let t=0;switch(Yl(e)){case 3:t=30;break;case 99:t=30;break;case 100:t=30;break}return e.resolvePackageJsonExports?t|=8:e.resolvePackageJsonExports===!1&&(t&=-9),e.resolvePackageJsonImports?t|=2:e.resolvePackageJsonImports===!1&&(t&=-3),t}function ab(e,t){let n=Yl(e);if(t===void 0){if(n===100)t=99;else if(n===2)return[]}let i=t===99?["import"]:["require"];return e.noDtsResolution||i.push("types"),n!==100&&i.push("node"),es(i,e.customConditions)}function XW(e,t,n,i,s){let o=X8(s?.getPackageJsonInfoCache(),i,n);return Ld(t,c=>{if(Mc(c)!=="node_modules"){let u=Qr(c,"node_modules"),f=Qr(u,e);return ob(f,!1,o)}})}function FO(e,t){if(e.types)return e.types;let n=[];if(t.directoryExists&&t.getDirectories){let i=m3(e,t);if(i){for(let s of i)if(t.directoryExists(s))for(let o of t.getDirectories(s)){let c=Ys(o),u=Qr(s,c,"package.json");if(!(t.fileExists(u)&&xE(u,t).typings===null)){let g=Mc(c);g.charCodeAt(0)!==46&&n.push(g)}}}}return n}function Pie(e){var t;if(e===null||typeof e!="object")return""+e;if(ss(e))return`[${(t=e.map(i=>Pie(i)))==null?void 0:t.join(",")}]`;let n="{";for(let i in e)so(e,i)&&(n+=`${i}: ${Pie(e[i])}`);return n+"}"}function QW(e,t){return t.map(n=>Pie(G5(e,n))).join("|")+`|${e.pathsBasePath}`}function YW(e,t){let n=new Map,i=new Map,s=new Map;return e&&n.set(e,s),{getMapOfCacheRedirects:o,getOrCreateMapOfCacheRedirects:c,update:u,clear:g,getOwnMap:()=>s};function o(y){return y?f(y.commandLine.options,!1):s}function c(y){return y?f(y.commandLine.options,!0):s}function u(y){e!==y&&(e?s=f(y,!0):n.set(y,s),e=y)}function f(y,S){let x=n.get(y);if(x)return x;let C=p(y);if(x=i.get(C),!x){if(e){let w=p(e);w===C?x=s:i.has(w)||i.set(w,s)}S&&(x??(x=new Map)),x&&i.set(C,x)}return x&&n.set(y,x),x}function g(){let y=e&&t.get(e);s.clear(),n.clear(),t.clear(),i.clear(),e&&(y&&t.set(e,y),n.set(e,s))}function p(y){let S=t.get(y);return S||t.set(y,S=QW(y,CO)),S}}function T9e(e,t){let n;return{getPackageJsonInfo:i,setPackageJsonInfo:s,clear:o,entries:c,getInternalMap:u};function i(f){return n?.get(xo(f,e,t))}function s(f,g){(n||(n=new Map)).set(xo(f,e,t),g)}function o(){n=void 0}function c(){let f=n?.entries();return f?hs(f):[]}function u(){return n}}function ebe(e,t,n,i){let s=e.getOrCreateMapOfCacheRedirects(t),o=s.get(n);return o||(o=i(),s.set(n,o)),o}function k9e(e,t,n,i){let s=YW(n,i);return{getFromDirectoryCache:f,getOrCreateCacheForDirectory:u,clear:o,update:c,directoryToModuleNameMap:s};function o(){s.clear()}function c(g){s.update(g)}function u(g,p){let y=xo(g,e,t);return ebe(s,p,y,()=>sT())}function f(g,p,y,S){var x,C;let w=xo(y,e,t);return(C=(x=s.getMapOfCacheRedirects(S))==null?void 0:x.get(w))==null?void 0:C.get(g,p)}}function g3(e,t){return t===void 0?e:`${t}|${e}`}function sT(){let e=new Map,t=new Map,n={get(s,o){return e.get(i(s,o))},set(s,o,c){return e.set(i(s,o),c),n},delete(s,o){return e.delete(i(s,o)),n},has(s,o){return e.has(i(s,o))},forEach(s){return e.forEach((o,c)=>{let[u,f]=t.get(c);return s(o,u,f)})},size(){return e.size}};return n;function i(s,o){let c=g3(s,o);return t.set(c,[s,o]),c}}function C9e(e){return e.resolvedModule&&(e.resolvedModule.originalPath||e.resolvedModule.resolvedFileName)}function E9e(e){return e.resolvedTypeReferenceDirective&&(e.resolvedTypeReferenceDirective.originalPath||e.resolvedTypeReferenceDirective.resolvedFileName)}function D9e(e,t,n,i,s){let o=YW(n,s);return{getFromNonRelativeNameCache:f,getOrCreateCacheForNonRelativeName:g,clear:c,update:u};function c(){o.clear()}function u(y){o.update(y)}function f(y,S,x,C){var w,D;return E.assert(!Al(y)),(D=(w=o.getMapOfCacheRedirects(C))==null?void 0:w.get(g3(y,S)))==null?void 0:D.get(x)}function g(y,S,x){return E.assert(!Al(y)),ebe(o,x,g3(y,S),p)}function p(){let y=new Map;return{get:S,set:x};function S(w){return y.get(xo(w,e,t))}function x(w,D){let O=xo(w,e,t);if(y.has(O))return;y.set(O,D);let z=i(D),V=z&&C(O,z),X=O;for(;X!==V;){let J=Xr(X);if(J===X||y.has(J))break;y.set(J,D),X=J}}function C(w,D){let O=xo(Xr(D),e,t),z=0,V=Math.min(w.length,O.length);for(;zi,clearAllExceptPackageJsonInfoCache:g,optionsToRedirectsKey:o};function f(){g(),i.clear()}function g(){c.clear(),u.clear()}function p(y){c.update(y),u.update(y)}}function VC(e,t,n,i,s){let o=tbe(e,t,n,i,C9e,s);return o.getOrCreateCacheForModuleName=(c,u,f)=>o.getOrCreateCacheForNonRelativeName(c,u,f),o}function OO(e,t,n,i,s){return tbe(e,t,n,i,E9e,s)}function ZW(e){return{moduleResolution:2,traceResolution:e.traceResolution}}function LO(e,t,n,i,s){return WC(e,t,ZW(n),i,s)}function nbe(e,t,n,i){let s=Xr(t);return n.getFromDirectoryCache(e,i,s,void 0)}function WC(e,t,n,i,s,o,c){var u,f,g;let p=_h(n,i);o&&(n=o.commandLine.options),p&&(Zi(i,d.Resolving_module_0_from_1,e,t),o&&Zi(i,d.Using_compiler_options_of_project_reference_redirect_0,o.sourceFile.fileName));let y=Xr(t),S=s?.getFromDirectoryCache(e,c,y,o);if(S)p&&Zi(i,d.Resolution_for_module_0_was_found_in_cache_from_location_1,e,y);else{let x=n.moduleResolution;if(x===void 0){switch(Ql(n)){case 1:x=2;break;case 100:x=3;break;case 199:x=99;break;default:x=1;break}p&&Zi(i,d.Module_resolution_kind_is_not_specified_using_0,Tk[x])}else p&&Zi(i,d.Explicitly_specified_module_resolution_kind_Colon_0,Tk[x]);switch((u=Lu)==null||u.logStartResolveModule(e),x){case 3:S=N9e(e,t,n,i,s,o,c);break;case 99:S=I9e(e,t,n,i,s,o,c);break;case 2:S=Nie(e,t,n,i,s,o,c?ab(n,c):void 0);break;case 1:S=jie(e,t,n,i,s,o);break;case 100:S=Aie(e,t,n,i,s,o,c?ab(n,c):void 0);break;default:return E.fail(`Unexpected moduleResolution: ${x}`)}S&&S.resolvedModule&&((f=Lu)==null||f.logInfoEvent(`Module "${e}" resolved to "${S.resolvedModule.resolvedFileName}"`)),(g=Lu)==null||g.logStopResolveModule(S&&S.resolvedModule?""+S.resolvedModule.resolvedFileName:"null"),s&&!s.isReadonly&&(s.getOrCreateCacheForDirectory(y,o).set(e,c,S),Al(e)||s.getOrCreateCacheForNonRelativeName(e,c,o).set(y,S))}return p&&(S.resolvedModule?S.resolvedModule.packageId?Zi(i,d.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,e,S.resolvedModule.resolvedFileName,Y0(S.resolvedModule.packageId)):Zi(i,d.Module_name_0_was_successfully_resolved_to_1,e,S.resolvedModule.resolvedFileName):Zi(i,d.Module_name_0_was_not_resolved,e)),S}function rbe(e,t,n,i,s){let o=P9e(e,t,i,s);return o?o.value:Al(t)?w9e(e,t,n,i,s):A9e(e,t,i,s)}function P9e(e,t,n,i){var s;let{baseUrl:o,paths:c,configFile:u}=i.compilerOptions;if(c&&!Q_(t)){i.traceEnabled&&(o&&Zi(i.host,d.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,o,t),Zi(i.host,d.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,t));let f=P5(i.compilerOptions,i.host),g=u?.configFileSpecs?(s=u.configFileSpecs).pathPatterns||(s.pathPatterns=tF(c)):void 0;return Rie(e,t,f,c,g,n,!1,i)}}function w9e(e,t,n,i,s){if(!s.compilerOptions.rootDirs)return;s.traceEnabled&&Zi(s.host,d.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,t);let o=Ys(Qr(n,t)),c,u;for(let f of s.compilerOptions.rootDirs){let g=Ys(f);Sc(g,Oo)||(g+=Oo);let p=ts(o,g)&&(u===void 0||u.lengthvoid z.push(B),isConfigLookup:u,candidateIsFromPackageJsonField:!1};C&&Ox(O)&&Zi(s,d.Resolving_in_0_mode_with_conditions_1,e&32?"ESM":"CJS",V.conditions.map(B=>`'${B}'`).join(", "));let X;if(O===2){let B=c&5,Z=c&-6;X=B&&ie(B,V)||Z&&ie(Z,V)||void 0}else X=ie(c,V);let J;if((p=X?.value)!=null&&p.isExternalLibraryImport&&!u&&c&5&&e&8&&!Al(t)&&!Mie(5,X.value.resolved.extension)&&g?.includes("import")){A1(V,d.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);let B={...V,features:V.features&-9,reportDiagnostic:Fa},Z=ie(c&5,B);(y=Z?.value)!=null&&y.isExternalLibraryImport&&(J=Z.value.resolved.path)}return Xve(t,(S=X?.value)==null?void 0:S.resolved,(x=X?.value)==null?void 0:x.isExternalLibraryImport,w,D,z,V,o,J);function ie(B,Z){let _e=rbe(B,t,n,($,H,K,oe)=>KW($,H,K,oe,!0),Z);if(_e)return xf({resolved:_e,isExternalLibraryImport:aT(_e.path)});if(Al(t)){let{path:$,parts:H}=sbe(n,t),K=KW(B,$,!1,Z,!0);return K&&xf({resolved:K,isExternalLibraryImport:gs(H,"node_modules")})}else{let $;if(e&2&&ts(t,"#")&&($=B9e(B,t,n,Z,o,f)),!$&&e&4&&($=j9e(B,t,n,Z,o,f)),!$){if(t.includes(":")){C&&Zi(s,d.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,t,NO(B));return}C&&Zi(s,d.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,t,NO(B)),$=fbe(B,t,n,Z,o,f)}return B&4&&($??($=ybe(t,Z))),$&&{value:$.value&&{resolved:$.value,isExternalLibraryImport:!0}}}}}function sbe(e,t){let n=Qr(e,t),i=bl(n),s=qo(i);return{path:s==="."||s===".."?wl(Ys(n)):Ys(n),parts:i}}function O9e(e,t,n){if(!t.realpath)return e;let i=Ys(t.realpath(e));return n&&Zi(t,d.Resolving_real_path_for_0_result_1,e,i),i}function KW(e,t,n,i,s){if(i.traceEnabled&&Zi(i.host,d.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,t,NO(e)),!zh(t)){if(!n){let c=Xr(t);_d(c,i.host)||(i.traceEnabled&&Zi(i.host,d.Directory_0_does_not_exist_skipping_all_lookups_in_it,c),n=!0)}let o=UC(e,t,n,i);if(o){let c=s?$8(o.path):void 0,u=c?ob(c,!1,i):void 0;return iT(u,o)}}if(n||_d(t,i.host)||(i.traceEnabled&&Zi(i.host,d.Directory_0_does_not_exist_skipping_all_lookups_in_it,t),n=!0),!(i.features&32))return Lie(e,t,n,i,s)}function aT(e){return e.includes(zm)}function $8(e,t){let n=Ys(e),i=n.lastIndexOf(zm);if(i===-1)return;let s=i+zm.length,o=abe(n,s,t);return n.charCodeAt(s)===64&&(o=abe(n,o,t)),n.slice(0,o)}function abe(e,t,n){let i=e.indexOf(Oo,t+1);return i===-1?n?e.length:t:i}function Fie(e,t,n,i){return GW(UC(e,t,n,i))}function UC(e,t,n,i){let s=obe(e,t,n,i);if(s)return s;if(!(i.features&32)){let o=cbe(t,e,"",n,i);if(o)return o}}function obe(e,t,n,i){if(!Mc(t).includes("."))return;let o=zu(t);o===t&&(o=t.substring(0,t.lastIndexOf(".")));let c=t.substring(o.length);return i.traceEnabled&&Zi(i.host,d.File_name_0_has_a_1_extension_stripping_it,t,c),cbe(o,e,c,n,i)}function Oie(e,t,n,i){return e&1&&$c(t,n8)||e&4&&$c(t,t8)?MO(t,n,i)!==void 0?{path:t,ext:L5(t),resolvedUsingTsExtension:void 0}:void 0:i.isConfigLookup&&e===8&&nc(t,".json")?MO(t,n,i)!==void 0?{path:t,ext:".json",resolvedUsingTsExtension:void 0}:void 0:obe(e,t,n,i)}function cbe(e,t,n,i,s){if(!i){let c=Xr(e);c&&(i=!_d(c,s.host))}switch(n){case".mjs":case".mts":case".d.mts":return t&1&&o(".mts",n===".mts"||n===".d.mts")||t&4&&o(".d.mts",n===".mts"||n===".d.mts")||t&2&&o(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return t&1&&o(".cts",n===".cts"||n===".d.cts")||t&4&&o(".d.cts",n===".cts"||n===".d.cts")||t&2&&o(".cjs")||void 0;case".json":return t&4&&o(".d.json.ts")||t&8&&o(".json")||void 0;case".tsx":case".jsx":return t&1&&(o(".tsx",n===".tsx")||o(".ts",n===".tsx"))||t&4&&o(".d.ts",n===".tsx")||t&2&&(o(".jsx")||o(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return t&1&&(o(".ts",n===".ts"||n===".d.ts")||o(".tsx",n===".ts"||n===".d.ts"))||t&4&&o(".d.ts",n===".ts"||n===".d.ts")||t&2&&(o(".js")||o(".jsx"))||s.isConfigLookup&&o(".json")||void 0;default:return t&4&&!Jl(e+n)&&o(`.d${n}.ts`)||void 0}function o(c,u){let f=MO(e+c,i,s);return f===void 0?void 0:{path:f,ext:c,resolvedUsingTsExtension:!s.candidateIsFromPackageJsonField&&u}}}function MO(e,t,n){var i;if(!((i=n.compilerOptions.moduleSuffixes)!=null&&i.length))return lbe(e,t,n);let s=bg(e)??"",o=s?Gw(e,s):e;return Qt(n.compilerOptions.moduleSuffixes,c=>lbe(o+c+s,t,n))}function lbe(e,t,n){var i;if(!t){if(n.host.fileExists(e))return n.traceEnabled&&Zi(n.host,d.File_0_exists_use_it_as_a_name_resolution_result,e),e;n.traceEnabled&&Zi(n.host,d.File_0_does_not_exist,e)}(i=n.failedLookupLocations)==null||i.push(e)}function Lie(e,t,n,i,s=!0){let o=s?ob(t,n,i):void 0,c=o&&o.contents.packageJsonContent,u=o&&RO(o,i);return iT(o,tU(e,t,n,i,c,u))}function eU(e,t,n,i,s){if(!s&&e.contents.resolvedEntrypoints!==void 0)return e.contents.resolvedEntrypoints;let o,c=5|(s?2:0),u=Die(t),f=X8(i?.getPackageJsonInfoCache(),n,t);f.conditions=ab(t),f.requestContainingDirectory=e.packageDirectory;let g=tU(c,e.packageDirectory,!1,f,e.contents.packageJsonContent,RO(e,f));if(o=_n(o,g?.path),u&8&&e.contents.packageJsonContent.exports){let p=ix([ab(t,99),ab(t,1)],cd);for(let y of p){let S={...f,failedLookupLocations:[],conditions:y,host:n},x=L9e(e,e.contents.packageJsonContent.exports,S,c);if(x)for(let C of x)o=Xg(o,C.path)}}return e.contents.resolvedEntrypoints=o||!1}function L9e(e,t,n,i){let s;if(ss(t))for(let c of t)o(c);else if(typeof t=="object"&&t!==null&&jO(t))for(let c in t)o(t[c]);else o(t);return s;function o(c){var u,f;if(typeof c=="string"&&ts(c,"./"))if(c.includes("*")&&n.host.readDirectory){if(c.indexOf("*")!==c.lastIndexOf("*"))return!1;n.host.readDirectory(e.packageDirectory,m9e(i),void 0,[Jl(c)?c.replace("*","**/*"):hP(c.replace("*","**/*"),Fw(c))]).forEach(g=>{s=Xg(s,{path:g,ext:O4(g),resolvedUsingTsExtension:void 0})})}else{let g=bl(c).slice(2);if(g.includes("..")||g.includes(".")||g.includes("node_modules"))return!1;let p=Qr(e.packageDirectory,c),y=cs(p,(f=(u=n.host).getCurrentDirectory)==null?void 0:f.call(u)),S=Oie(i,y,!1,n);if(S)return s=Xg(s,S,(x,C)=>x.path===C.path),!0}else if(Array.isArray(c)){for(let g of c)if(o(g))return!0}else if(typeof c=="object"&&c!==null)return Qt(Qg(c),g=>{if(g==="default"||gs(n.conditions,g)||Z8(n.conditions,g))return o(c[g]),!0})}}function X8(e,t,n){return{host:t,compilerOptions:n,traceEnabled:_h(n,t),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:e,features:0,conditions:Ve,requestContainingDirectory:void 0,reportDiagnostic:Fa,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function Q8(e,t){let n=bl(e);for(n.pop();n.length>0;){let i=ob(z0(n),!1,t);if(i)return i;n.pop()}}function RO(e,t){return e.contents.versionPaths===void 0&&(e.contents.versionPaths=b9e(e.contents.packageJsonContent,t)||!1),e.contents.versionPaths||void 0}function ob(e,t,n){var i,s,o,c,u,f;let{host:g,traceEnabled:p}=n,y=Qr(e,"package.json");if(t){(i=n.failedLookupLocations)==null||i.push(y);return}let S=(s=n.packageJsonInfoCache)==null?void 0:s.getPackageJsonInfo(y);if(S!==void 0){if(typeof S!="boolean")return p&&Zi(g,d.File_0_exists_according_to_earlier_cached_lookups,y),(o=n.affectingLocations)==null||o.push(y),S.packageDirectory===e?S:{packageDirectory:e,contents:S.contents};S&&p&&Zi(g,d.File_0_does_not_exist_according_to_earlier_cached_lookups,y),(c=n.failedLookupLocations)==null||c.push(y);return}let x=_d(e,g);if(x&&g.fileExists(y)){let C=xE(y,g);p&&Zi(g,d.Found_package_json_at_0,y);let w={packageDirectory:e,contents:{packageJsonContent:C,versionPaths:void 0,resolvedEntrypoints:void 0}};return n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(y,w),(u=n.affectingLocations)==null||u.push(y),w}else x&&p&&Zi(g,d.File_0_does_not_exist,y),n.packageJsonInfoCache&&!n.packageJsonInfoCache.isReadonly&&n.packageJsonInfoCache.setPackageJsonInfo(y,x),(f=n.failedLookupLocations)==null||f.push(y)}function tU(e,t,n,i,s,o){let c;s&&(i.isConfigLookup?c=h9e(s,t,i):c=e&4&&g9e(s,t,i)||e&7&&y9e(s,t,i)||void 0);let u=(S,x,C,w)=>{let D=MO(x,C,w);if(D){let J=M9e(S,D);if(J)return GW(J);w.traceEnabled&&Zi(w.host,d.File_0_has_an_unsupported_extension_so_skipping_it,D)}let O=S===4?5:S,z=w.features,V=w.candidateIsFromPackageJsonField;w.candidateIsFromPackageJsonField=!0,s?.type!=="module"&&(w.features&=-33);let X=KW(O,x,C,w,!1);return w.features=z,w.candidateIsFromPackageJsonField=V,X},f=c?!_d(Xr(c),i.host):void 0,g=n||!_d(t,i.host),p=Qr(t,i.isConfigLookup?"tsconfig":"index");if(o&&(!c||Cm(t,c))){let S=Em(t,c||p,!1);i.traceEnabled&&Zi(i.host,d.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,o.version,ps,S);let x=Rie(e,S,t,o.paths,void 0,u,f||g,i);if(x)return $ve(x.value)}let y=c&&$ve(u(e,c,f,i));if(y)return y;if(!(i.features&32))return UC(e,p,g,i)}function M9e(e,t,n){let i=bg(t);return i!==void 0&&Mie(e,i)?{path:t,ext:i,resolvedUsingTsExtension:n}:void 0}function Mie(e,t){return e&2&&(t===".js"||t===".jsx"||t===".mjs"||t===".cjs")||e&1&&(t===".ts"||t===".tsx"||t===".mts"||t===".cts")||e&4&&(t===".d.ts"||t===".d.mts"||t===".d.cts")||e&8&&t===".json"||!1}function Y8(e){let t=e.indexOf(Oo);return e[0]==="@"&&(t=e.indexOf(Oo,t+1)),t===-1?{packageName:e,rest:""}:{packageName:e.slice(0,t),rest:e.slice(t+1)}}function jO(e){return hi(Qg(e),t=>ts(t,"."))}function R9e(e){return!ft(Qg(e),t=>ts(t,"."))}function j9e(e,t,n,i,s,o){var c,u;let f=cs(Qr(n,"dummy"),(u=(c=i.host).getCurrentDirectory)==null?void 0:u.call(c)),g=Q8(f,i);if(!g||!g.contents.packageJsonContent.exports||typeof g.contents.packageJsonContent.name!="string")return;let p=bl(t),y=bl(g.contents.packageJsonContent.name);if(!hi(y,(D,O)=>p[O]===D))return;let S=p.slice(y.length),x=bn(S)?`.${Oo}${S.join(Oo)}`:".";if(m1(i.compilerOptions)&&!aT(n))return nU(g,e,x,i,s,o);let C=e&5,w=e&-6;return nU(g,C,x,i,s,o)||nU(g,w,x,i,s,o)}function nU(e,t,n,i,s,o){if(e.contents.packageJsonContent.exports){if(n==="."){let c;if(typeof e.contents.packageJsonContent.exports=="string"||Array.isArray(e.contents.packageJsonContent.exports)||typeof e.contents.packageJsonContent.exports=="object"&&R9e(e.contents.packageJsonContent.exports)?c=e.contents.packageJsonContent.exports:so(e.contents.packageJsonContent.exports,".")&&(c=e.contents.packageJsonContent.exports["."]),c)return _be(t,i,s,o,n,e,!1)(c,"",!1,".")}else if(jO(e.contents.packageJsonContent.exports)){if(typeof e.contents.packageJsonContent.exports!="object")return i.traceEnabled&&Zi(i.host,d.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),xf(void 0);let c=ube(t,i,s,o,n,e.contents.packageJsonContent.exports,e,!1);if(c)return c}return i.traceEnabled&&Zi(i.host,d.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,n,e.packageDirectory),xf(void 0)}}function B9e(e,t,n,i,s,o){var c,u;if(t==="#"||ts(t,"#/"))return i.traceEnabled&&Zi(i.host,d.Invalid_import_specifier_0_has_no_possible_resolutions,t),xf(void 0);let f=cs(Qr(n,"dummy"),(u=(c=i.host).getCurrentDirectory)==null?void 0:u.call(c)),g=Q8(f,i);if(!g)return i.traceEnabled&&Zi(i.host,d.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,f),xf(void 0);if(!g.contents.packageJsonContent.imports)return i.traceEnabled&&Zi(i.host,d.package_json_scope_0_has_no_imports_defined,g.packageDirectory),xf(void 0);let p=ube(e,i,s,o,t,g.contents.packageJsonContent.imports,g,!0);return p||(i.traceEnabled&&Zi(i.host,d.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,t,g.packageDirectory),xf(void 0))}function rU(e,t){let n=e.indexOf("*"),i=t.indexOf("*"),s=n===-1?e.length:n+1,o=i===-1?t.length:i+1;return s>o?-1:o>s||n===-1?1:i===-1||e.length>t.length?-1:t.length>e.length?1:0}function ube(e,t,n,i,s,o,c,u){let f=_be(e,t,n,i,s,c,u);if(!Sc(s,Oo)&&!s.includes("*")&&so(o,s)){let y=o[s];return f(y,"",!1,s)}let g=sx(Fr(Qg(o),y=>y.includes("*")||Sc(y,"/")),rU);for(let y of g)if(t.features&16&&p(y,s)){let S=o[y],x=y.indexOf("*"),C=s.substring(y.substring(0,x).length,s.length-(y.length-1-x));return f(S,C,!0,y)}else if(Sc(y,"*")&&ts(s,y.substring(0,y.length-1))){let S=o[y],x=s.substring(y.length-1);return f(S,x,!0,y)}else if(ts(s,y)){let S=o[y],x=s.substring(y.length);return f(S,x,!1,y)}function p(y,S){if(Sc(y,"*"))return!1;let x=y.indexOf("*");return x===-1?!1:ts(S,y.substring(0,x))&&Sc(S,y.substring(x+1))}}function _be(e,t,n,i,s,o,c){return u;function u(f,g,p,y){if(typeof f=="string"){if(!p&&g.length>0&&!Sc(f,"/"))return t.traceEnabled&&Zi(t.host,d.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),xf(void 0);if(!ts(f,"./")){if(c&&!ts(f,"../")&&!ts(f,"/")&&!I_(f)){let J=p?f.replace(/\*/g,g):f+g;A1(t,d.Using_0_subpath_1_with_target_2,"imports",y,J),A1(t,d.Resolving_module_0_from_1,J,o.packageDirectory+"/");let ie=G8(t.features,J,o.packageDirectory+"/",t.compilerOptions,t.host,n,e,!1,i,t.conditions);return xf(ie.resolvedModule?{path:ie.resolvedModule.resolvedFileName,extension:ie.resolvedModule.extension,packageId:ie.resolvedModule.packageId,originalPath:ie.resolvedModule.originalPath,resolvedUsingTsExtension:ie.resolvedModule.resolvedUsingTsExtension}:void 0)}return t.traceEnabled&&Zi(t.host,d.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),xf(void 0)}let D=(Q_(f)?bl(f).slice(1):bl(f)).slice(1);if(D.includes("..")||D.includes(".")||D.includes("node_modules"))return t.traceEnabled&&Zi(t.host,d.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),xf(void 0);let O=Qr(o.packageDirectory,f),z=bl(g);if(z.includes("..")||z.includes(".")||z.includes("node_modules"))return t.traceEnabled&&Zi(t.host,d.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),xf(void 0);t.traceEnabled&&Zi(t.host,d.Using_0_subpath_1_with_target_2,c?"imports":"exports",y,p?f.replace(/\*/g,g):f+g);let V=S(p?O.replace(/\*/g,g):O+g),X=C(V,g,Qr(o.packageDirectory,"package.json"),c);return X||xf(iT(o,Oie(e,V,!1,t)))}else if(typeof f=="object"&&f!==null)if(Array.isArray(f)){if(!bn(f))return t.traceEnabled&&Zi(t.host,d.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),xf(void 0);for(let w of f){let D=u(w,g,p,y);if(D)return D}}else{A1(t,d.Entering_conditional_exports);for(let w of Qg(f))if(w==="default"||t.conditions.includes(w)||Z8(t.conditions,w)){A1(t,d.Matched_0_condition_1,c?"imports":"exports",w);let D=f[w],O=u(D,g,p,y);if(O)return A1(t,d.Resolved_under_condition_0,w),A1(t,d.Exiting_conditional_exports),O;A1(t,d.Failed_to_resolve_under_condition_0,w)}else A1(t,d.Saw_non_matching_condition_0,w);A1(t,d.Exiting_conditional_exports);return}else if(f===null)return t.traceEnabled&&Zi(t.host,d.package_json_scope_0_explicitly_maps_specifier_1_to_null,o.packageDirectory,s),xf(void 0);return t.traceEnabled&&Zi(t.host,d.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,o.packageDirectory,s),xf(void 0);function S(w){var D,O;return w===void 0?w:cs(w,(O=(D=t.host).getCurrentDirectory)==null?void 0:O.call(D))}function x(w,D){return wl(Qr(w,D))}function C(w,D,O,z){var V,X,J,ie;if(!t.isConfigLookup&&(t.compilerOptions.declarationDir||t.compilerOptions.outDir)&&!w.includes("/node_modules/")&&(!t.compilerOptions.configFile||Cm(o.packageDirectory,S(t.compilerOptions.configFile.fileName),!iU(t)))){let Z=$h({useCaseSensitiveFileNames:()=>iU(t)}),ae=[];if(t.compilerOptions.rootDir||t.compilerOptions.composite&&t.compilerOptions.configFilePath){let _e=S(w3(t.compilerOptions,()=>[],((X=(V=t.host).getCurrentDirectory)==null?void 0:X.call(V))||"",Z));ae.push(_e)}else if(t.requestContainingDirectory){let _e=S(Qr(t.requestContainingDirectory,"index.ts")),$=S(w3(t.compilerOptions,()=>[_e,S(O)],((ie=(J=t.host).getCurrentDirectory)==null?void 0:ie.call(J))||"",Z));ae.push($);let H=wl($);for(;H&&H.length>1;){let K=bl(H);K.pop();let oe=z0(K);ae.unshift(oe),H=wl(oe)}}ae.length>1&&t.reportDiagnostic(Tc(z?d.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:d.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,D===""?".":D,O));for(let _e of ae){let $=B(_e);for(let H of $)if(Cm(H,w,!iU(t))){let K=w.slice(H.length+1),oe=Qr(_e,K),Se=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(let se of Se)if(nc(oe,se)){let Y=Ote(oe);for(let ve of Y){if(!Mie(e,ve))continue;let xe=hP(oe,ve,se,!iU(t));if(t.host.fileExists(xe))return xf(iT(o,Oie(e,xe,!1,t)))}}}}}return;function B(Z){var ae,_e;let $=t.compilerOptions.configFile?((_e=(ae=t.host).getCurrentDirectory)==null?void 0:_e.call(ae))||"":Z,H=[];return t.compilerOptions.declarationDir&&H.push(S(x($,t.compilerOptions.declarationDir))),t.compilerOptions.outDir&&t.compilerOptions.outDir!==t.compilerOptions.declarationDir&&H.push(S(x($,t.compilerOptions.outDir))),H}}}}function Z8(e,t){if(!e.includes("types")||!ts(t,"types@"))return!1;let n=oP.tryParse(t.substring(6));return n?n.test(ps):!1}function fbe(e,t,n,i,s,o){return pbe(e,t,n,i,!1,s,o)}function J9e(e,t,n){return pbe(4,e,t,n,!0,void 0,void 0)}function pbe(e,t,n,i,s,o,c){let u=i.features===0?void 0:i.features&32?99:1,f=e&5,g=e&-6;if(f){A1(i,d.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,NO(f));let y=p(f);if(y)return y}if(g&&!s)return A1(i,d.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,NO(g)),p(g);function p(y){return Ld(Su(n),S=>{if(Mc(S)!=="node_modules"){let x=hbe(o,t,u,S,c,i);return x||xf(dbe(y,t,S,i,s,o,c))}})}}function dbe(e,t,n,i,s,o,c){let u=Qr(n,"node_modules"),f=_d(u,i.host);if(!f&&i.traceEnabled&&Zi(i.host,d.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),!s){let g=mbe(e,t,u,f,i,o,c);if(g)return g}if(e&4){let g=Qr(u,"@types"),p=f;return f&&!_d(g,i.host)&&(i.traceEnabled&&Zi(i.host,d.Directory_0_does_not_exist_skipping_all_lookups_in_it,g),p=!1),mbe(4,gbe(t,i),g,p,i,o,c)}}function mbe(e,t,n,i,s,o,c){var u,f;let g=Ys(Qr(n,t)),{packageName:p,rest:y}=Y8(t),S=Qr(n,p),x,C=ob(g,!i,s);if(y!==""&&C&&(!(s.features&8)||!so(((u=x=ob(S,!i,s))==null?void 0:u.contents.packageJsonContent)??Ve,"exports"))){let O=UC(e,g,!i,s);if(O)return GW(O);let z=tU(e,g,!i,s,C.contents.packageJsonContent,RO(C,s));return iT(C,z)}let w=(O,z,V,X)=>{let J=(y||!(X.features&32))&&UC(O,z,V,X)||tU(O,z,V,X,C&&C.contents.packageJsonContent,C&&RO(C,X));return!J&&C&&(C.contents.packageJsonContent.exports===void 0||C.contents.packageJsonContent.exports===null)&&X.features&32&&(J=UC(O,Qr(z,"index.js"),V,X)),iT(C,J)};if(y!==""&&(C=x??ob(S,!i,s)),C&&C.contents.packageJsonContent.exports&&s.features&8)return(f=nU(C,e,Qr(".",y),s,o,c))==null?void 0:f.value;let D=y!==""&&C?RO(C,s):void 0;if(D){s.traceEnabled&&Zi(s.host,d.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,D.version,ps,y);let O=i&&_d(S,s.host),z=Rie(e,y,S,D.paths,void 0,w,!O,s);if(z)return z.value}return w(e,g,!i,s)}function Rie(e,t,n,i,s,o,c,u){s||(s=tF(i));let f=iV(s,t);if(f){let g=os(f)?void 0:mK(f,t),p=os(f)?f:dK(f);return u.traceEnabled&&Zi(u.host,d.Module_name_0_matched_pattern_1,t,p),{value:Qt(i[p],S=>{let x=g?S.replace("*",g):S,C=Ys(Qr(n,x));u.traceEnabled&&Zi(u.host,d.Trying_substitution_0_candidate_module_location_Colon_1,S,x);let w=bg(S);if(w!==void 0){let D=MO(C,c,u);if(D!==void 0)return GW({path:D,ext:w,resolvedUsingTsExtension:void 0})}return o(e,C,c||!_d(Xr(C),u.host),u)})}}}function gbe(e,t){let n=qC(e);return t.traceEnabled&&n!==e&&Zi(t.host,d.Scoped_package_detected_looking_in_0,n),n}function BO(e){return`@types/${qC(e)}`}function qC(e){if(ts(e,"@")){let t=e.replace(Oo,aU);if(t!==e)return t.slice(1)}return e}function h3(e){let t=w4(e,"@types/");return t!==e?K8(t):e}function K8(e){return e.includes(aU)?"@"+e.replace(aU,Oo):e}function hbe(e,t,n,i,s,o){let c=e&&e.getFromNonRelativeNameCache(t,n,i,s);if(c)return o.traceEnabled&&Zi(o.host,d.Resolution_for_module_0_was_found_in_cache_from_location_1,t,i),o.resultFromCache=c,{value:c.resolvedModule&&{path:c.resolvedModule.resolvedFileName,originalPath:c.resolvedModule.originalPath||!0,extension:c.resolvedModule.extension,packageId:c.resolvedModule.packageId,resolvedUsingTsExtension:c.resolvedModule.resolvedUsingTsExtension}}}function jie(e,t,n,i,s,o){let c=_h(n,i),u=[],f=[],g=Xr(t),p=[],y={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:s,features:0,conditions:[],requestContainingDirectory:g,reportDiagnostic:C=>void p.push(C),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},S=x(5)||x(2|(n.resolveJsonModule?8:0));return Xve(e,S&&S.value,S?.value&&aT(S.value.path),u,f,p,y,s);function x(C){let w=rbe(C,e,g,Fie,y);if(w)return{value:w};if(Al(e)){let D=Ys(Qr(g,e));return xf(Fie(C,D,!1,y))}else{let D=Ld(g,O=>{let z=hbe(s,e,void 0,O,o,y);if(z)return z;let V=Ys(Qr(O,e));return xf(Fie(C,V,!1,y))});if(D)return D;if(C&5){let O=J9e(e,g,y);return C&4&&(O??(O=ybe(e,y))),O}}}}function ybe(e,t){if(t.compilerOptions.typeRoots)for(let n of t.compilerOptions.typeRoots){let i=Kve(n,e,t),s=_d(n,t.host);!s&&t.traceEnabled&&Zi(t.host,d.Directory_0_does_not_exist_skipping_all_lookups_in_it,n);let o=UC(4,i,!s,t);if(o){let u=$8(o.path),f=u?ob(u,!1,t):void 0;return xf(iT(f,o))}let c=Lie(4,i,!s,t);if(c)return xf(c)}}function HC(e,t){return!!e.allowImportingTsExtensions||t&&Jl(t)}function Bie(e,t,n,i,s,o){let c=_h(n,i);c&&Zi(i,d.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,t,e,s);let u=[],f=[],g=[],p={compilerOptions:n,host:i,traceEnabled:c,failedLookupLocations:u,affectingLocations:f,packageJsonInfoCache:o,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:S=>void g.push(S),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},y=dbe(4,e,s,p,!1,void 0,void 0);return Qve(y,!0,u,f,g,p.resultFromCache,void 0)}function xf(e){return e!==void 0?{value:e}:void 0}function A1(e,t,...n){e.traceEnabled&&Zi(e.host,t,...n)}function iU(e){return e.host.useCaseSensitiveFileNames?typeof e.host.useCaseSensitiveFileNames=="boolean"?e.host.useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames():!0}var Jie,vbe,sU,zm,aU,z9e=ze({"src/compiler/moduleNameResolver.ts"(){"use strict";Rs(),vbe=Qr("node_modules","@types"),sU=(e=>(e[e.None=0]="None",e[e.Imports=2]="Imports",e[e.SelfName=4]="SelfName",e[e.Exports=8]="Exports",e[e.ExportsPatternTrailers=16]="ExportsPatternTrailers",e[e.AllFeatures=30]="AllFeatures",e[e.Node16Default=30]="Node16Default",e[e.NodeNextDefault=30]="NodeNextDefault",e[e.BundlerDefault=30]="BundlerDefault",e[e.EsmMode=32]="EsmMode",e))(sU||{}),zm="/node_modules/",aU="__"}});function fh(e,t){return e.body&&!e.body.parent&&(Ta(e.body,e),iy(e.body,!1)),e.body?zie(e.body,t):1}function zie(e,t=new Map){let n=Va(e);if(t.has(n))return t.get(n)||0;t.set(n,void 0);let i=V9e(e,t);return t.set(n,i),i}function V9e(e,t){switch(e.kind){case 264:case 265:return 0;case 266:if(Mv(e))return 2;break;case 272:case 271:if(!Mr(e,32))return 0;break;case 278:let n=e;if(!n.moduleSpecifier&&n.exportClause&&n.exportClause.kind===279){let i=0;for(let s of n.exportClause.elements){let o=W9e(s,t);if(o>i&&(i=o),i===1)return i}return i}break;case 268:{let i=0;return vs(e,s=>{let o=zie(s,t);switch(o){case 0:return;case 2:i=2;return;case 1:return i=1,!0;default:E.assertNever(o)}}),i}case 267:return fh(e,t);case 80:if(e.flags&4096)return 0}return 1}function W9e(e,t){let n=e.propertyName||e.name,i=e.parent;for(;i;){if(Ds(i)||Hd(i)||Li(i)){let s=i.statements,o;for(let c of s)if(AP(c,n)){c.parent||(Ta(c,i),iy(c,!1));let u=zie(c,t);if((o===void 0||u>o)&&(o=u),o===1)return o;c.kind===271&&(o=1)}if(o!==void 0)return o}i=i.parent}return 1}function oT(e){return E.attachFlowNodeDebugInfo(e),e}function Vie(e,t){var n,i;Fo("beforeBind"),(n=Lu)==null||n.logStartBindFile(""+e.fileName),Sbe(e,t),(i=Lu)==null||i.logStopBindFile(),Fo("afterBind"),gf("Bind","beforeBind","afterBind")}function U9e(){var e,t,n,i,s,o,c,u,f,g,p,y,S,x,C,w,D,O,z,V,X,J,ie=!1,B=0,Z,ae,_e={flags:1},$={flags:1},H=W();return oe;function K(L,pe,...Ke){return pp(Mn(L)||e,L,pe,...Ke)}function oe(L,pe){var Ke,It;e=L,t=pe,n=La(t),J=Se(e,pe),ae=new Set,B=0,Z=jl.getSymbolConstructor(),E.attachFlowNodeDebugInfo(_e),E.attachFlowNodeDebugInfo($),e.locals||((Ke=Wn)==null||Ke.push(Wn.Phase.Bind,"bindSourceFile",{path:e.path},!0),He(e),(It=Wn)==null||It.pop(),e.symbolCount=B,e.classifiableNames=ae,Ho()),e=void 0,t=void 0,n=void 0,i=void 0,s=void 0,o=void 0,c=void 0,u=void 0,f=void 0,g=!1,p=void 0,y=void 0,S=void 0,x=void 0,C=void 0,w=void 0,D=void 0,z=void 0,V=!1,ie=!1,X=0}function Se(L,pe){return bp(pe,"alwaysStrict")&&!L.isDeclarationFile?!0:!!L.externalModuleIndicator}function se(L,pe){return B++,new Z(L,pe)}function Y(L,pe,Ke){L.flags|=Ke,pe.symbol=L,L.declarations=Xg(L.declarations,pe),Ke&1955&&!L.exports&&(L.exports=Gs()),Ke&6240&&!L.members&&(L.members=Gs()),L.constEnumOnlyModule&&L.flags&304&&(L.constEnumOnlyModule=!1),Ke&111551&&gw(L,pe)}function ve(L){if(L.kind===277)return L.isExportEquals?"export=":"default";let pe=us(L);if(pe){if(lu(L)){let Ke=gp(pe);return jd(L)?"__global":`"${Ke}"`}if(pe.kind===167){let Ke=pe.expression;if(vf(Ke))return Yo(Ke.text);if(T5(Ke))return Zs(Ke.operator)+Ke.operand.text;E.fail("Only computed properties with literal names have declaration names")}if(Di(pe)){let Ke=Rl(L);if(!Ke)return;let It=Ke.symbol;return Ew(It,pe.escapedText)}return md(pe)?Mx(pe):Jd(pe)?fE(pe):void 0}switch(L.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(mc(L)===2)return"export=";E.fail("Unknown binary declaration kind");break;case 324:return Zk(L)?"__new":"__call";case 169:return E.assert(L.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${E.formatSyntaxKind(L.parent.kind)}, expected JSDocFunctionType`),"arg"+L.parent.parameters.indexOf(L)}}function xe(L){return Ru(L)?co(L.name):Ci(E.checkDefined(ve(L)))}function Me(L,pe,Ke,It,jn,zr,Vr){E.assert(Vr||!ey(Ke));let Bi=Mr(Ke,2048)||Eu(Ke)&&Ke.name.escapedText==="default",_a=Vr?"__computed":Bi&&pe?"default":ve(Ke),fa;if(_a===void 0)fa=se(0,"__missing");else if(fa=L.get(_a),It&2885600&&ae.add(_a),!fa)L.set(_a,fa=se(0,_a)),zr&&(fa.isReplaceableByMethod=!0);else{if(zr&&!fa.isReplaceableByMethod)return fa;if(fa.flags&jn){if(fa.isReplaceableByMethod)L.set(_a,fa=se(0,_a));else if(!(It&3&&fa.flags&67108864)){Ru(Ke)&&Ta(Ke.name,Ke);let sc=fa.flags&2?d.Cannot_redeclare_block_scoped_variable_0:d.Duplicate_identifier_0,nu=!0;(fa.flags&384||It&384)&&(sc=d.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,nu=!1);let hl=!1;bn(fa.declarations)&&(Bi||fa.declarations&&fa.declarations.length&&Ke.kind===277&&!Ke.isExportEquals)&&(sc=d.A_module_cannot_have_multiple_default_exports,nu=!1,hl=!0);let If=[];Xp(Ke)&&dc(Ke.type)&&Mr(Ke,32)&&fa.flags&2887656&&If.push(K(Ke,d.Did_you_mean_0,`export type { ${Ci(Ke.name.escapedText)} }`));let ha=us(Ke)||Ke;Qt(fa.declarations,(Ff,Ng)=>{let qm=us(Ff)||Ff,wi=nu?K(qm,sc,xe(Ff)):K(qm,sc);e.bindDiagnostics.push(hl?ga(wi,K(ha,Ng===0?d.Another_export_default_is_here:d.and_here)):wi),hl&&If.push(K(qm,d.The_first_export_default_is_here))});let Dp=nu?K(ha,sc,xe(Ke)):K(ha,sc);e.bindDiagnostics.push(ga(Dp,...If)),fa=se(0,_a)}}}return Y(fa,Ke,It),fa.parent?E.assert(fa.parent===pe,"Existing symbol parent should match new one"):fa.parent=pe,fa}function ke(L,pe,Ke){let It=!!(Dv(L)&32)||he(L);if(pe&2097152)return L.kind===281||L.kind===271&&It?Me(s.symbol.exports,s.symbol,L,pe,Ke):(E.assertNode(s,Pm),Me(s.locals,void 0,L,pe,Ke));if(mp(L)&&E.assert(Qn(L)),!lu(L)&&(It||s.flags&128)){if(!Pm(s)||!s.locals||Mr(L,2048)&&!ve(L))return Me(s.symbol.exports,s.symbol,L,pe,Ke);let jn=pe&111551?1048576:0,zr=Me(s.locals,void 0,L,jn,Ke);return zr.exportSymbol=Me(s.symbol.exports,s.symbol,L,pe,Ke),L.localSymbol=zr,zr}else return E.assertNode(s,Pm),Me(s.locals,void 0,L,pe,Ke)}function he(L){if(L.parent&&Pc(L)&&(L=L.parent),!mp(L))return!1;if(!x8(L)&&L.fullName)return!0;let pe=us(L);return pe?!!(Rw(pe.parent)&&pc(pe.parent)||ku(pe.parent)&&Dv(pe.parent)&32):!1}function be(L,pe){let Ke=s,It=o,jn=c;if(pe&1?(L.kind!==219&&(o=s),s=c=L,pe&32&&(s.locals=Gs(),Mi(s))):pe&2&&(c=L,pe&32&&(c.locals=void 0)),pe&4){let zr=p,Vr=y,Bi=S,_a=x,fa=D,sc=z,nu=V,hl=pe&16&&!Mr(L,1024)&&!L.asteriskToken&&!!T2(L)||L.kind===175;hl||(p=oT({flags:2}),pe&144&&(p.node=L)),x=hl||L.kind===176||Qn(L)&&(L.kind===262||L.kind===218)?Tn():void 0,D=void 0,y=void 0,S=void 0,z=void 0,V=!1,Oe(L),L.flags&=-5633,!(p.flags&1)&&pe&8&&fp(L.body)&&(L.flags|=512,V&&(L.flags|=1024),L.endFlowNode=p),L.kind===312&&(L.flags|=X,L.endFlowNode=p),x&&(Ft(x,p),p=Ye(x),(L.kind===176||L.kind===175||Qn(L)&&(L.kind===262||L.kind===218))&&(L.returnFlowNode=p)),hl||(p=zr),y=Vr,S=Bi,x=_a,D=fa,z=sc,V=nu}else pe&64?(g=!1,Oe(L),E.assertNotNode(L,Ie),L.flags=g?L.flags|256:L.flags&-257):Oe(L);s=Ke,o=It,c=jn}function _t(L){mt(L,pe=>pe.kind===262?He(pe):void 0),mt(L,pe=>pe.kind!==262?He(pe):void 0)}function mt(L,pe=He){L!==void 0&&Qt(L,pe)}function me(L){vs(L,He,mt)}function Oe(L){let pe=ie;if(ie=!1,At(L)){me(L),kt(L),ie=pe;return}switch(L.kind>=243&&L.kind<=259&&!t.allowUnreachableCode&&(L.flowNode=p),L.kind){case 247:Ii(L);break;case 246:Ki(L);break;case 248:na(L);break;case 249:case 250:Fs(L);break;case 245:Ce(L);break;case 253:case 257:Ue(L);break;case 252:case 251:gt(L);break;case 258:fe(L);break;case 255:we(L);break;case 269:Be(L);break;case 296:yt(L);break;case 244:G(L);break;case 256:wt(L);break;case 224:Zt(L);break;case 225:tn(L);break;case 226:if(Qh(L)){ie=pe,ln(L);return}H(L);break;case 220:j(L);break;case 227:ce(L);break;case 260:ue(L);break;case 211:case 212:jr(L);break;case 213:Br(L);break;case 235:br(L);break;case 353:case 345:case 347:Fe(L);break;case 312:{_t(L.statements),He(L.endOfFileToken);break}case 241:case 268:_t(L.statements);break;case 208:M(L);break;case 169:De(L);break;case 210:case 209:case 303:case 230:ie=pe;default:me(L);break}kt(L),ie=pe}function Qe(L){switch(L.kind){case 80:case 81:case 110:case 211:case 212:return ht(L);case 213:return Je(L);case 217:case 235:return Qe(L.expression);case 226:return Jt(L);case 224:return L.operator===54&&Qe(L.operand);case 221:return Qe(L.expression)}return!1}function at(L){return bE(L)||(Cr(L)||Qx(L)||C_(L))&&at(L.expression)||Yn(L)&&L.operatorToken.kind===28&&at(L.right)||ko(L)&&(vf(L.argumentExpression)||gc(L.argumentExpression))&&at(L.expression)||pl(L)&&at(L.left)}function ht(L){return at(L)||Tu(L)&&ht(L.expression)}function Je(L){if(L.arguments){for(let pe of L.arguments)if(ht(pe))return!0}return!!(L.expression.kind===211&&ht(L.expression.expression))}function lt(L,pe){return EC(L)&&Gt(L.expression)&&$a(pe)}function Jt(L){switch(L.operatorToken.kind){case 64:case 76:case 77:case 78:return ht(L.left);case 35:case 36:case 37:case 38:return Gt(L.left)||Gt(L.right)||lt(L.right,L.left)||lt(L.left,L.right)||G4(L.right)&&Qe(L.left)||G4(L.left)&&Qe(L.right);case 104:return Gt(L.left);case 103:return Qe(L.right);case 28:return Qe(L.right)}return!1}function Gt(L){switch(L.kind){case 217:return Gt(L.expression);case 226:switch(L.operatorToken.kind){case 64:return Gt(L.left);case 28:return Gt(L.right)}}return ht(L)}function Tn(){return oT({flags:4,antecedents:void 0})}function Un(){return oT({flags:8,antecedents:void 0})}function cn(L,pe,Ke){return oT({flags:1024,target:L,antecedents:pe,antecedent:Ke})}function zt(L){L.flags|=L.flags&2048?4096:2048}function Ft(L,pe){!(pe.flags&1)&&!gs(L.antecedents,pe)&&((L.antecedents||(L.antecedents=[])).push(pe),zt(pe))}function Lr(L,pe,Ke){return pe.flags&1?pe:Ke?(Ke.kind===112&&L&64||Ke.kind===97&&L&32)&&!D7(Ke)&&!yJ(Ke.parent)?_e:Qe(Ke)?(zt(pe),oT({flags:L,antecedent:pe,node:Ke})):pe:L&32?pe:_e}function ji(L,pe,Ke,It){return zt(L),oT({flags:128,antecedent:L,switchStatement:pe,clauseStart:Ke,clauseEnd:It})}function ii(L,pe,Ke){zt(pe);let It=oT({flags:L,antecedent:pe,node:Ke});return D&&Ft(D,It),It}function Hi(L,pe){return zt(L),oT({flags:512,antecedent:L,node:pe})}function Ye(L){let pe=L.antecedents;return pe?pe.length===1?pe[0]:L:_e}function fn(L){let pe=L.parent;switch(pe.kind){case 245:case 247:case 246:return pe.expression===L;case 248:case 227:return pe.condition===L}return!1}function An(L){for(;;)if(L.kind===217)L=L.expression;else if(L.kind===224&&L.operator===54)L=L.operand;else return Lw(L)}function Ot(L){return Mz(eo(L))}function Sn(L){for(;C_(L.parent)||x1(L.parent)&&L.parent.operator===54;)L=L.parent;return!fn(L)&&!An(L.parent)&&!(Tu(L.parent)&&L.parent.expression===L)}function Cn(L,pe,Ke,It){let jn=C,zr=w;C=Ke,w=It,L(pe),C=jn,w=zr}function Kn(L,pe,Ke){Cn(He,L,pe,Ke),(!L||!Ot(L)&&!An(L)&&!(Tu(L)&&W4(L)))&&(Ft(pe,Lr(32,p,L)),Ft(Ke,Lr(64,p,L)))}function Fi(L,pe,Ke){let It=y,jn=S;y=pe,S=Ke,He(L),y=It,S=jn}function Wi(L,pe){let Ke=z;for(;Ke&&L.parent.kind===256;)Ke.continueTarget=pe,Ke=Ke.next,L=L.parent;return pe}function Ii(L){let pe=Wi(L,Un()),Ke=Tn(),It=Tn();Ft(pe,p),p=pe,Kn(L.expression,Ke,It),p=Ye(Ke),Fi(L.statement,It,pe),Ft(pe,p),p=Ye(It)}function Ki(L){let pe=Un(),Ke=Wi(L,Tn()),It=Tn();Ft(pe,p),p=pe,Fi(L.statement,It,Ke),Ft(Ke,p),p=Ye(Ke),Kn(L.expression,pe,It),p=Ye(It)}function na(L){let pe=Wi(L,Un()),Ke=Tn(),It=Tn();He(L.initializer),Ft(pe,p),p=pe,Kn(L.condition,Ke,It),p=Ye(Ke),Fi(L.statement,It,pe),He(L.incrementor),Ft(pe,p),p=Ye(It)}function Fs(L){let pe=Wi(L,Un()),Ke=Tn();He(L.expression),Ft(pe,p),p=pe,L.kind===250&&He(L.awaitModifier),Ft(Ke,p),He(L.initializer),L.initializer.kind!==261&&ot(L.initializer),Fi(L.statement,Ke,pe),Ft(pe,p),p=Ye(Ke)}function Ce(L){let pe=Tn(),Ke=Tn(),It=Tn();Kn(L.expression,pe,Ke),p=Ye(pe),He(L.thenStatement),Ft(It,p),p=Ye(Ke),He(L.elseStatement),Ft(It,p),p=Ye(It)}function Ue(L){He(L.expression),L.kind===253&&(V=!0,x&&Ft(x,p)),p=_e}function it(L){for(let pe=z;pe;pe=pe.next)if(pe.name===L)return pe}function dt(L,pe,Ke){let It=L.kind===252?pe:Ke;It&&(Ft(It,p),p=_e)}function gt(L){if(He(L.label),L.label){let pe=it(L.label.escapedText);pe&&(pe.referenced=!0,dt(L,pe.breakTarget,pe.continueTarget))}else dt(L,y,S)}function fe(L){let pe=x,Ke=D,It=Tn(),jn=Tn(),zr=Tn();if(L.finallyBlock&&(x=jn),Ft(zr,p),D=zr,He(L.tryBlock),Ft(It,p),L.catchClause&&(p=Ye(zr),zr=Tn(),Ft(zr,p),D=zr,He(L.catchClause),Ft(It,p)),x=pe,D=Ke,L.finallyBlock){let Vr=Tn();Vr.antecedents=es(es(It.antecedents,zr.antecedents),jn.antecedents),p=Vr,He(L.finallyBlock),p.flags&1?p=_e:(x&&jn.antecedents&&Ft(x,cn(Vr,jn.antecedents,p)),D&&zr.antecedents&&Ft(D,cn(Vr,zr.antecedents,p)),p=It.antecedents?cn(Vr,It.antecedents,p):_e)}else p=Ye(It)}function we(L){let pe=Tn();He(L.expression);let Ke=y,It=O;y=pe,O=p,He(L.caseBlock),Ft(pe,p);let jn=Qt(L.caseBlock.clauses,zr=>zr.kind===297);L.possiblyExhaustive=!jn&&!pe.antecedents,jn||Ft(pe,ji(O,L,0,0)),y=Ke,O=It,p=Ye(pe)}function Be(L){let pe=L.clauses,Ke=L.parent.expression.kind===112||Qe(L.parent.expression),It=_e;for(let jn=0;jnKc(Ke)||hc(Ke))}function ua(L){L.flags&33554432&&!mi(L)?L.flags|=128:L.flags&=-129}function js(L){if(ua(L),lu(L))if(Mr(L,32)&&Po(L,d.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),UJ(L))Pn(L);else{let pe;if(L.name.kind===11){let{text:It}=L.name;pe=fC(It),pe===void 0&&Po(L.name,d.Pattern_0_can_have_at_most_one_Asterisk_character,It)}let Ke=wr(L,512,110735);e.patternAmbientModules=_n(e.patternAmbientModules,pe&&!os(pe)?{pattern:pe,symbol:Ke}:void 0)}else{let pe=Pn(L);if(pe!==0){let{symbol:Ke}=L;Ke.constEnumOnlyModule=!(Ke.flags&304)&&pe===2&&Ke.constEnumOnlyModule!==!1}}}function Pn(L){let pe=fh(L),Ke=pe!==0;return wr(L,Ke?512:1024,Ke?110735:0),pe}function Nc(L){let pe=se(131072,ve(L));Y(pe,L,131072);let Ke=se(2048,"__type");Y(Ke,L,2048),Ke.members=Gs(),Ke.members.set(pe.escapedName,pe)}function _s(L){return ec(L,4096,"__object")}function to(L){return ec(L,4096,"__jsxAttributes")}function fc(L,pe,Ke){return wr(L,pe,Ke)}function ec(L,pe,Ke){let It=se(pe,Ke);return pe&106508&&(It.parent=s.symbol),Y(It,L,pe),It}function gl(L,pe,Ke){switch(c.kind){case 267:ke(L,pe,Ke);break;case 312:if(K_(s)){ke(L,pe,Ke);break}default:E.assertNode(c,Pm),c.locals||(c.locals=Gs(),Mi(c)),Me(c.locals,void 0,L,pe,Ke)}}function Ho(){if(!f)return;let L=s,pe=u,Ke=c,It=i,jn=p;for(let zr of f){let Vr=zr.parent.parent;s=YJ(Vr)||e,c=Nm(Vr)||e,p=oT({flags:2}),i=zr,He(zr.typeExpression);let Bi=us(zr);if((x8(zr)||!zr.fullName)&&Bi&&Rw(Bi.parent)){let _a=pc(Bi.parent);if(_a){tc(e.symbol,Bi.parent,_a,!!Fn(Bi,sc=>Cr(sc)&&sc.name.escapedText==="prototype"),!1);let fa=s;switch(dw(Bi.parent)){case 1:case 2:K_(e)?s=e:s=void 0;break;case 4:s=Bi.parent.expression;break;case 3:s=Bi.parent.expression.name;break;case 5:s=cb(e,Bi.parent.expression)?e:Cr(Bi.parent.expression)?Bi.parent.expression.name:Bi.parent.expression;break;case 0:return E.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}s&&ke(zr,524288,788968),s=fa}}else x8(zr)||!zr.fullName||zr.fullName.kind===80?(i=zr.parent,gl(zr,524288,788968)):He(zr.fullName)}s=L,u=pe,c=Ke,i=It,p=jn}function xs(L){if(!e.parseDiagnostics.length&&!(L.flags&33554432)&&!(L.flags&16777216)&&!Ete(L)){let pe=s1(L);if(pe===void 0)return;J&&pe>=119&&pe<=127?e.bindDiagnostics.push(K(L,$s(L),co(L))):pe===135?Bc(e)&&s5(L)?e.bindDiagnostics.push(K(L,d.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,co(L))):L.flags&65536&&e.bindDiagnostics.push(K(L,d.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,co(L))):pe===127&&L.flags&16384&&e.bindDiagnostics.push(K(L,d.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,co(L)))}}function $s(L){return Rl(L)?d.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?d.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:d.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function cl(L){L.escapedText==="#constructor"&&(e.parseDiagnostics.length||e.bindDiagnostics.push(K(L,d.constructor_is_a_reserved_word,co(L))))}function Do(L){J&&x_(L.left)&&Xh(L.operatorToken.kind)&&zc(L,L.left)}function Xs(L){J&&L.variableDeclaration&&zc(L,L.variableDeclaration.name)}function Jc(L){if(J&&L.expression.kind===80){let pe=Lv(e,L.expression);e.bindDiagnostics.push(Nl(e,pe.start,pe.length,d.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function td(L){return Ie(L)&&(L.escapedText==="eval"||L.escapedText==="arguments")}function zc(L,pe){if(pe&&pe.kind===80){let Ke=pe;if(td(Ke)){let It=Lv(e,pe);e.bindDiagnostics.push(Nl(e,It.start,It.length,ic(L),ur(Ke)))}}}function ic(L){return Rl(L)?d.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:e.externalModuleIndicator?d.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:d.Invalid_use_of_0_in_strict_mode}function Bo(L){J&&zc(L,L.name)}function as(L){return Rl(L)?d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:e.externalModuleIndicator?d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:d.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ht(L){if(n<2&&c.kind!==312&&c.kind!==267&&!Nk(c)){let pe=Lv(e,L);e.bindDiagnostics.push(Nl(e,pe.start,pe.length,as(L)))}}function Jo(L){J&&zc(L,L.operand)}function nl(L){J&&(L.operator===46||L.operator===47)&&zc(L,L.operand)}function qu(L){J&&Po(L,d.with_statements_are_not_allowed_in_strict_mode)}function h_(L){J&&La(t)>=2&&(wee(L.statement)||uc(L.statement))&&Po(L.label,d.A_label_is_not_allowed_here)}function Po(L,pe,...Ke){let It=Im(e,L.pos);e.bindDiagnostics.push(Nl(e,It.start,It.length,pe,...Ke))}function Ic(L,pe,Ke){A(L,pe,pe,Ke)}function A(L,pe,Ke,It){Pe(L,{pos:b2(pe,e),end:Ke.end},It)}function Pe(L,pe,Ke){let It=Nl(e,pe.pos,pe.end-pe.pos,Ke);L?e.bindDiagnostics.push(It):e.bindSuggestionDiagnostics=_n(e.bindSuggestionDiagnostics,{...It,category:2})}function He(L){if(!L)return;Ta(L,i),Wn&&(L.tracingPath=e.path);let pe=J;if(Zn(L),L.kind>165){let Ke=i;i=L;let It=oU(L);It===0?Oe(L):be(L,It),i=Ke}else{let Ke=i;L.kind===1&&(i=L),kt(L),i=Ke}J=pe}function kt(L){if(Z_(L))if(Qn(L))for(let pe of L.jsDoc)He(pe);else for(let pe of L.jsDoc)Ta(pe,L),iy(pe,!1)}function gn(L){if(!J)for(let pe of L){if(!Up(pe))return;if(Ar(pe)){J=!0;return}}}function Ar(L){let pe=Fv(e,L.expression);return pe==='"use strict"'||pe==="'use strict'"}function Zn(L){switch(L.kind){case 80:if(L.flags&4096){let Vr=L.parent;for(;Vr&&!mp(Vr);)Vr=Vr.parent;gl(Vr,524288,788968);break}case 110:return p&&(ut(L)||i.kind===304)&&(L.flowNode=p),xs(L);case 166:p&&u5(L)&&(L.flowNode=p);break;case 236:case 108:L.flowNode=p;break;case 81:return cl(L);case 211:case 212:let pe=L;p&&at(pe)&&(pe.flowNode=p),vte(pe)&&Ln(pe),Qn(pe)&&e.commonJsModuleIndicator&&gg(pe)&&!JO(c,"module")&&Me(e.locals,void 0,pe.expression,134217729,111550);break;case 226:switch(mc(L)){case 1:t_(L);break;case 2:Au(L);break;case 3:Bs(L.left,L);break;case 6:Gi(L);break;case 4:tu(L);break;case 5:let Vr=L.left.expression;if(Qn(L)&&Ie(Vr)){let Bi=JO(c,Vr.escapedText);if(a5(Bi?.valueDeclaration)){tu(L);break}}Ec(L);break;case 0:break;default:E.fail("Unknown binary expression special property assignment kind")}return Do(L);case 299:return Xs(L);case 220:return Jc(L);case 225:return Jo(L);case 224:return nl(L);case 254:return qu(L);case 256:return h_(L);case 197:g=!0;return;case 182:break;case 168:return Ze(L);case 169:return Ag(L);case 260:return du(L);case 208:return L.flowNode=p,du(L);case 172:case 171:return Tr(L);case 303:case 304:return r_(L,4,0);case 306:return r_(L,8,900095);case 179:case 180:case 181:return wr(L,131072,0);case 174:case 173:return r_(L,8192|(L.questionToken?16777216:0),qp(L)?0:103359);case 262:return V_(L);case 176:return wr(L,16384,0);case 177:return r_(L,32768,46015);case 178:return r_(L,65536,78783);case 184:case 324:case 330:case 185:return Nc(L);case 187:case 329:case 200:return pi(L);case 339:return St(L);case 210:return _s(L);case 218:case 219:return Xf(L);case 213:switch(mc(L)){case 7:return vc(L);case 8:return Cl(L);case 9:return Os(L);case 0:break;default:return E.fail("Unknown call expression assignment declaration kind")}Qn(L)&&wg(L);break;case 231:case 263:return J=!0,Um(L);case 264:return gl(L,64,788872);case 265:return gl(L,524288,788968);case 266:return p0(L);case 267:return js(L);case 292:return to(L);case 291:return fc(L,4,0);case 271:case 274:case 276:case 281:return wr(L,2097152,2097152);case 270:return ll(L);case 273:return ul(L);case 278:return _o(L);case 277:return yc(L);case 312:return gn(L.statements),Dr();case 241:if(!Nk(L.parent))return;case 268:return gn(L.statements);case 348:if(L.parent.kind===330)return Ag(L);if(L.parent.kind!==329)break;case 355:let jn=L,zr=jn.isBracketed||jn.typeExpression&&jn.typeExpression.type.kind===323?16777220:4;return wr(jn,zr,0);case 353:case 345:case 347:return(f||(f=[])).push(L);case 346:return He(L.typeExpression)}}function Tr(L){let pe=u_(L),Ke=pe?98304:4,It=pe?13247:0;return r_(L,Ke|(L.questionToken?16777216:0),It)}function pi(L){return ec(L,2048,"__type")}function Dr(){if(ua(e),Bc(e))Ea();else if(dp(e)){Ea();let L=e.symbol;Me(e.symbol.exports,e.symbol,e,4,67108863),e.symbol=L}}function Ea(){ec(e,512,`"${zu(e.fileName)}"`)}function yc(L){if(!s.symbol||!s.symbol.exports)ec(L,111551,ve(L));else{let pe=eC(L)?2097152:4,Ke=Me(s.symbol.exports,s.symbol,L,pe,67108863);L.isExportEquals&&gw(Ke,L)}}function ll(L){ft(L.modifiers)&&e.bindDiagnostics.push(K(L,d.Modifiers_cannot_appear_here));let pe=Li(L.parent)?Bc(L.parent)?L.parent.isDeclarationFile?void 0:d.Global_module_exports_may_only_appear_in_declaration_files:d.Global_module_exports_may_only_appear_in_module_files:d.Global_module_exports_may_only_appear_at_top_level;pe?e.bindDiagnostics.push(K(L,pe)):(e.symbol.globalExports=e.symbol.globalExports||Gs(),Me(e.symbol.globalExports,e.symbol,L,2097152,2097152))}function _o(L){!s.symbol||!s.symbol.exports?ec(L,8388608,ve(L)):L.exportClause?jm(L.exportClause)&&(Ta(L.exportClause,L),Me(s.symbol.exports,s.symbol,L.exportClause,2097152,2097152)):Me(s.symbol.exports,s.symbol,L,8388608,0)}function ul(L){L.name&&wr(L,2097152,2097152)}function ro(L){return e.externalModuleIndicator&&e.externalModuleIndicator!==!0?!1:(e.commonJsModuleIndicator||(e.commonJsModuleIndicator=L,e.externalModuleIndicator||Ea()),!0)}function Cl(L){if(!ro(L))return;let pe=$f(L.arguments[0],void 0,(Ke,It)=>(It&&Y(It,Ke,67110400),It));pe&&Me(pe.exports,pe,L,1048580,0)}function t_(L){if(!ro(L))return;let pe=$f(L.left.expression,void 0,(Ke,It)=>(It&&Y(It,Ke,67110400),It));if(pe){let It=kw(L.right)&&(k2(L.left.expression)||gg(L.left.expression))?2097152:1048580;Ta(L.left,L),Me(pe.exports,pe,L.left,It,0)}}function Au(L){if(!ro(L))return;let pe=_w(L.right);if(Jz(pe)||s===e&&cb(e,pe))return;if(xa(pe)&&hi(pe.properties,sf)){Qt(pe.properties,Gf);return}let Ke=eC(L)?2097152:1049092,It=Me(e.symbol.exports,e.symbol,L,Ke|67108864,0);gw(It,L)}function Gf(L){Me(e.symbol.exports,e.symbol,L,69206016,0)}function tu(L){if(E.assert(Qn(L)),Yn(L)&&Cr(L.left)&&Di(L.left.name)||Cr(L)&&Di(L.name))return;let Ke=__(L,!1,!1);switch(Ke.kind){case 262:case 218:let It=Ke.symbol;if(Yn(Ke.parent)&&Ke.parent.operatorToken.kind===64){let Vr=Ke.parent.left;Jv(Vr)&&ny(Vr.expression)&&(It=n_(Vr.expression.expression,o))}It&&It.valueDeclaration&&(It.members=It.members||Gs(),ey(L)?ye(L,It,It.members):Me(It.members,It,L,67108868,0),Y(It,It.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:let jn=Ke.parent,zr=zs(Ke)?jn.symbol.exports:jn.symbol.members;ey(L)?ye(L,jn.symbol,zr):Me(zr,jn.symbol,L,67108868,0,!0);break;case 312:if(ey(L))break;Ke.commonJsModuleIndicator?Me(Ke.symbol.exports,Ke.symbol,L,1048580,0):wr(L,1,111550);break;case 267:break;default:E.failBadSyntaxKind(Ke)}}function ye(L,pe,Ke){Me(Ke,pe,L,4,0,!0,!0),Tt(L,pe)}function Tt(L,pe){pe&&(pe.assignmentDeclarationMembers||(pe.assignmentDeclarationMembers=new Map)).set(Va(L),L)}function Ln(L){L.expression.kind===110?tu(L):Jv(L)&&L.parent.parent.kind===312&&(ny(L.expression)?Bs(L,L.parent):Go(L))}function Gi(L){Ta(L.left,L),Ta(L.right,L),Vc(L.left.expression,L.left,!1,!0)}function Os(L){let pe=n_(L.arguments[0].expression);pe&&pe.valueDeclaration&&Y(pe,pe.valueDeclaration,32),Fc(L,pe,!0)}function Bs(L,pe){let Ke=L.expression,It=Ke.expression;Ta(It,Ke),Ta(Ke,L),Ta(L,pe),Vc(It,L,!0,!0)}function vc(L){let pe=n_(L.arguments[0]),Ke=L.parent.parent.kind===312;pe=tc(pe,L.arguments[0],Ke,!1,!1),Fc(L,pe,!1)}function Ec(L){var pe;let Ke=n_(L.left.expression,s)||n_(L.left.expression,c);if(!Qn(L)&&!bte(Ke))return;let It=DE(L.left);if(!(Ie(It)&&((pe=JO(s,It.escapedText))==null?void 0:pe.flags)&2097152))if(Ta(L.left,L),Ta(L.right,L),Ie(L.left.expression)&&s===e&&cb(e,L.left.expression))t_(L);else if(ey(L)){ec(L,67108868,"__computed");let jn=tc(Ke,L.left.expression,pc(L.left),!1,!1);Tt(L,jn)}else Go(Vs(L.left,E2))}function Go(L){E.assert(!Ie(L)),Ta(L.expression,L),Vc(L.expression,L,!1,!1)}function tc(L,pe,Ke,It,jn){return L?.flags&2097152||(Ke&&!It&&(L=$f(pe,L,(Bi,_a,fa)=>{if(_a)return Y(_a,Bi,67110400),_a;{let sc=fa?fa.exports:e.jsGlobalAugmentations||(e.jsGlobalAugmentations=Gs());return Me(sc,fa,Bi,67110400,110735)}})),jn&&L&&L.valueDeclaration&&Y(L,L.valueDeclaration,32)),L}function Fc(L,pe,Ke){if(!pe||!Ep(pe))return;let It=Ke?pe.members||(pe.members=Gs()):pe.exports||(pe.exports=Gs()),jn=0,zr=0;To(bx(L))?(jn=8192,zr=103359):Ws(L)&&C2(L)&&(ft(L.arguments[2].properties,Vr=>{let Bi=us(Vr);return!!Bi&&Ie(Bi)&&ur(Bi)==="set"})&&(jn|=65540,zr|=78783),ft(L.arguments[2].properties,Vr=>{let Bi=us(Vr);return!!Bi&&Ie(Bi)&&ur(Bi)==="get"})&&(jn|=32772,zr|=46015)),jn===0&&(jn=4,zr=0),Me(It,pe,L,jn|67108864,zr&-67108865)}function pc(L){return Yn(L.parent)?Nf(L.parent).parent.kind===312:L.parent.parent.kind===312}function Vc(L,pe,Ke,It){let jn=n_(L,s)||n_(L,c),zr=pc(pe);jn=tc(jn,pe.expression,zr,Ke,It),Fc(pe,jn,Ke)}function Ep(L){if(L.flags&1072)return!0;let pe=L.valueDeclaration;if(pe&&Ws(pe))return!!bx(pe);let Ke=pe?Ni(pe)?pe.initializer:Yn(pe)?pe.right:Cr(pe)&&Yn(pe.parent)?pe.parent.right:void 0:void 0;if(Ke=Ke&&_w(Ke),Ke){let It=ny(Ni(pe)?pe.name:Yn(pe)?pe.left:pe);return!!u1(Yn(Ke)&&(Ke.operatorToken.kind===57||Ke.operatorToken.kind===61)?Ke.right:Ke,It)}return!1}function Nf(L){for(;Yn(L.parent);)L=L.parent;return L.parent}function n_(L,pe=s){if(Ie(L))return JO(pe,L.escapedText);{let Ke=n_(L.expression);return Ke&&Ke.exports&&Ke.exports.get(rh(L))}}function $f(L,pe,Ke){if(cb(e,L))return e.symbol;if(Ie(L))return Ke(L,n_(L),pe);{let It=$f(L.expression,pe,Ke),jn=pw(L);return Di(jn)&&E.fail("unexpected PrivateIdentifier"),Ke(jn,It&&It.exports&&It.exports.get(rh(L)),It)}}function wg(L){!e.commonJsModuleIndicator&&T_(L,!1)&&ro(L)}function Um(L){if(L.kind===263)gl(L,32,899503);else{let jn=L.name?L.name.escapedText:"__class";ec(L,32,jn),L.name&&ae.add(L.name.escapedText)}let{symbol:pe}=L,Ke=se(4194308,"prototype"),It=pe.exports.get(Ke.escapedName);It&&(L.name&&Ta(L.name,L),e.bindDiagnostics.push(K(It.declarations[0],d.Duplicate_identifier_0,xc(Ke)))),pe.exports.set(Ke.escapedName,Ke),Ke.parent=pe}function p0(L){return Mv(L)?gl(L,128,899967):gl(L,256,899327)}function du(L){if(J&&zc(L,L.name),!Ms(L.name)){let pe=L.kind===260?L:L.parent.parent;Qn(L)&&H5(t)&&Bv(pe)&&!a1(L)&&!(Dv(L)&32)?wr(L,2097152,2097152):zJ(L)?gl(L,2,111551):Wv(L)?wr(L,1,111551):wr(L,1,111550)}}function Ag(L){if(!(L.kind===348&&s.kind!==330)&&(J&&!(L.flags&33554432)&&zc(L,L.name),Ms(L.name)?ec(L,1,"__"+L.parent.parameters.indexOf(L)):wr(L,1,111551),F_(L,L.parent))){let pe=L.parent.parent;Me(pe.symbol.members,pe.symbol,L,4|(L.questionToken?16777216:0),0)}}function V_(L){!e.isDeclarationFile&&!(L.flags&33554432)&&_E(L)&&(X|=4096),Bo(L),J?(Ht(L),gl(L,16,110991)):wr(L,16,110991)}function Xf(L){!e.isDeclarationFile&&!(L.flags&33554432)&&_E(L)&&(X|=4096),p&&(L.flowNode=p),Bo(L);let pe=L.name?L.name.escapedText:"__function";return ec(L,16,pe)}function r_(L,pe,Ke){return!e.isDeclarationFile&&!(L.flags&33554432)&&_E(L)&&(X|=4096),p&&t5(L)&&(L.flowNode=p),ey(L)?ec(L,pe,"__computed"):wr(L,pe,Ke)}function Q(L){let pe=Fn(L,Ke=>Ke.parent&&CC(Ke.parent)&&Ke.parent.extendsType===Ke);return pe&&pe.parent}function Ze(L){if(hd(L.parent)){let pe=v5(L.parent);pe?(E.assertNode(pe,Pm),pe.locals??(pe.locals=Gs()),Me(pe.locals,void 0,L,262144,526824)):wr(L,262144,526824)}else if(L.parent.kind===195){let pe=Q(L.parent);pe?(E.assertNode(pe,Pm),pe.locals??(pe.locals=Gs()),Me(pe.locals,void 0,L,262144,526824)):ec(L,262144,ve(L))}else wr(L,262144,526824)}function Pt(L){let pe=fh(L);return pe===1||pe===2&&F2(t)}function At(L){if(!(p.flags&1))return!1;if(p===_e&&(WP(L)&&L.kind!==242||L.kind===263||L.kind===267&&Pt(L))&&(p=$,!t.allowUnreachableCode)){let Ke=yne(t)&&!(L.flags&33554432)&&(!uc(L)||!!(Wh(L.declarationList)&7)||L.declarationList.declarations.some(It=>!!It.initializer));q9e(L,(It,jn)=>A(Ke,It,jn,d.Unreachable_code_detected))}return!0}}function q9e(e,t){if(Ai(e)&&bbe(e)&&Ds(e.parent)){let{statements:n}=e.parent,i=sV(n,e);Ej(i,bbe,(s,o)=>t(i[s],i[o-1]))}else t(e,e)}function bbe(e){return!al(e)&&!H9e(e)&&!T1(e)&&!(uc(e)&&!(Wh(e)&7)&&e.declarationList.declarations.some(t=>!t.initializer))}function H9e(e){switch(e.kind){case 264:case 265:return!0;case 267:return fh(e)!==1;case 266:return Mr(e,4096);default:return!1}}function cb(e,t){let n=0,i=JI();for(i.enqueue(t);!i.isEmpty()&&n<100;){if(n++,t=i.dequeue(),k2(t)||gg(t))return!0;if(Ie(t)){let s=JO(e,t.escapedText);if(s&&s.valueDeclaration&&Ni(s.valueDeclaration)&&s.valueDeclaration.initializer){let o=s.valueDeclaration.initializer;i.enqueue(o),pl(o,!0)&&(i.enqueue(o.left),i.enqueue(o.right))}}}return!1}function oU(e){switch(e.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(t5(e))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return e.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return As(e.parent)||rc(e.parent)?0:34}return 0}function JO(e,t){var n,i,s,o;let c=(i=(n=Ur(e,Pm))==null?void 0:n.locals)==null?void 0:i.get(t);if(c)return c.exportSymbol??c;if(Li(e)&&e.jsGlobalAugmentations&&e.jsGlobalAugmentations.has(t))return e.jsGlobalAugmentations.get(t);if(Rd(e))return(o=(s=e.symbol)==null?void 0:s.exports)==null?void 0:o.get(t)}var cU,lU,Sbe,G9e=ze({"src/compiler/binder.ts"(){"use strict";Rs(),u2(),cU=(e=>(e[e.NonInstantiated=0]="NonInstantiated",e[e.Instantiated=1]="Instantiated",e[e.ConstEnumOnly=2]="ConstEnumOnly",e))(cU||{}),lU=(e=>(e[e.None=0]="None",e[e.IsContainer=1]="IsContainer",e[e.IsBlockScopedContainer=2]="IsBlockScopedContainer",e[e.IsControlFlowContainer=4]="IsControlFlowContainer",e[e.IsFunctionLike=8]="IsFunctionLike",e[e.IsFunctionExpression=16]="IsFunctionExpression",e[e.HasLocals=32]="HasLocals",e[e.IsInterface=64]="IsInterface",e[e.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",e))(lU||{}),Sbe=U9e()}});function Wie(e,t,n,i,s,o,c,u,f,g){return p;function p(y=()=>!0){let S=[],x=[];return{walkType:ae=>{try{return C(ae),{visitedTypes:ox(S),visitedSymbols:ox(x)}}finally{og(S),og(x)}},walkSymbol:ae=>{try{return Z(ae),{visitedTypes:ox(S),visitedSymbols:ox(x)}}finally{og(S),og(x)}}};function C(ae){if(!(!ae||S[ae.id]||(S[ae.id]=ae,Z(ae.symbol)))){if(ae.flags&524288){let $=ae,H=$.objectFlags;H&4&&w(ae),H&32&&X(ae),H&3&&ie(ae),H&24&&B($)}ae.flags&262144&&D(ae),ae.flags&3145728&&O(ae),ae.flags&4194304&&z(ae),ae.flags&8388608&&V(ae)}}function w(ae){C(ae.target),Qt(g(ae),C)}function D(ae){C(u(ae))}function O(ae){Qt(ae.types,C)}function z(ae){C(ae.type)}function V(ae){C(ae.objectType),C(ae.indexType),C(ae.constraint)}function X(ae){C(ae.typeParameter),C(ae.constraintType),C(ae.templateType),C(ae.modifiersType)}function J(ae){let _e=t(ae);_e&&C(_e.type),Qt(ae.typeParameters,C);for(let $ of ae.parameters)Z($);C(e(ae)),C(n(ae))}function ie(ae){B(ae),Qt(ae.typeParameters,C),Qt(i(ae),C),C(ae.thisType)}function B(ae){let _e=s(ae);for(let $ of _e.indexInfos)C($.keyType),C($.type);for(let $ of _e.callSignatures)J($);for(let $ of _e.constructSignatures)J($);for(let $ of _e.properties)Z($)}function Z(ae){if(!ae)return!1;let _e=ta(ae);if(x[_e])return!1;if(x[_e]=ae,!y(ae))return!0;let $=o(ae);return C($),ae.exports&&ae.exports.forEach(Z),Qt(ae.declarations,H=>{if(H.type&&H.type.kind===186){let K=H.type,oe=c(f(K.exprName));Z(oe)}}),!1}}}var $9e=ze({"src/compiler/symbolWalker.ts"(){"use strict";Rs()}});function uU({importModuleSpecifierPreference:e,importModuleSpecifierEnding:t},n,i,s){let o=c();return{relativePreference:s!==void 0?Al(s)?0:1:e==="relative"?0:e==="non-relative"?1:e==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:u=>{if((u??i.impliedNodeFormat)===99)return HC(n,i.fileName)?[3,2]:[2];if(Yl(n)===1)return o===2?[2,1]:[1,2];let f=HC(n,i.fileName);switch(o){case 2:return f?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return f?[1,0,3,2]:[1,0,2];case 0:return f?[0,1,3,2]:[0,1,2];default:E.assertNever(o)}}};function c(){if(s!==void 0){if(Xv(s))return 2;if(Sc(s,"/index"))return 1}return rV(t,i.impliedNodeFormat,n,i)}}function X9e(e,t,n,i,s,o,c={}){let u=xbe(e,t,n,i,s,uU({},e,t,o),{},c);if(u!==o)return u}function zO(e,t,n,i,s,o={}){return xbe(e,t,n,i,s,uU({},e,t),{},o)}function Q9e(e,t,n,i,s,o={}){let c=Uie(t.path,i),u=Abe(t.path,n,i,s,o);return ba(u,f=>qie(f,c,t,i,e,s,!0,o.overrideImportMode))}function xbe(e,t,n,i,s,o,c,u={}){let f=Uie(n,s),g=Abe(n,i,s,c,u);return ba(g,p=>qie(p,f,t,s,e,c,void 0,u.overrideImportMode))||Ebe(i,f,e,s,u.overrideImportMode||t.impliedNodeFormat,o)}function Y9e(e,t,n,i,s={}){return Tbe(e,t,n,i,s)[0]}function Tbe(e,t,n,i,s={}){var o;let c=W7(e);if(!c)return Ve;let u=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n),f=u?.get(t.path,c.path,i,s);return[f?.moduleSpecifiers,c,f?.modulePaths,u]}function kbe(e,t,n,i,s,o,c={}){return Cbe(e,t,n,i,s,o,c,!1).moduleSpecifiers}function Cbe(e,t,n,i,s,o,c={},u){let f=!1,g=K9e(e,t);if(g)return{moduleSpecifiers:[g],computedWithoutCache:f};let[p,y,S,x]=Tbe(e,i,s,o,c);if(p)return{moduleSpecifiers:p,computedWithoutCache:f};if(!y)return{moduleSpecifiers:Ve,computedWithoutCache:f};f=!0,S||(S=Nbe(i.path,y.originalFileName,s));let C=Z9e(S,n,i,s,o,c,u);return x?.set(i.path,y.path,o,c,S,C),{moduleSpecifiers:C,computedWithoutCache:f}}function Z9e(e,t,n,i,s,o={},c){let u=Uie(n.path,i),f=uU(s,t,n),g=Qt(e,w=>Qt(i.getFileIncludeReasons().get(xo(w.path,i.getCurrentDirectory(),u.getCanonicalFileName)),D=>{if(D.kind!==3||D.file!==n.path||n.impliedNodeFormat&&n.impliedNodeFormat!==eq(n,D.index))return;let O=T9(n,D.index).text;return f.relativePreference!==1||!Q_(O)?O:void 0}));if(g)return[g];let p=ft(e,w=>w.isInNodeModules),y,S,x,C;for(let w of e){let D=w.isInNodeModules?qie(w,u,n,i,t,s,void 0,o.overrideImportMode):void 0;if(y=_n(y,D),D&&w.isRedirect)return y;if(!D){let O=Ebe(w.path,u,t,i,o.overrideImportMode||n.impliedNodeFormat,f,w.isRedirect);if(!O)continue;w.isRedirect?x=_n(x,O):eJ(O)?S=_n(S,O):(c||!p||w.isInNodeModules)&&(C=_n(C,O))}}return S?.length?S:x?.length?x:y?.length?y:E.checkDefined(C)}function Uie(e,t){let n=cu(t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!0),i=Xr(e);return{getCanonicalFileName:n,importingSourceFileName:e,sourceDirectory:i}}function Ebe(e,t,n,i,s,{getAllowedEndingsInPreferredOrder:o,relativePreference:c},u){let{baseUrl:f,paths:g,rootDirs:p}=n;if(u&&!g)return;let{sourceDirectory:y,getCanonicalFileName:S}=t,x=o(s),C=p&&eLe(p,e,y,S,x,n)||eA(Cv(Em(y,e,S)),x,n);if(!f&&!g||c===0)return u?void 0:C;let w=cs(P5(n,i)||f,i.getCurrentDirectory()),D=Lbe(e,w,S);if(!D)return u?void 0:C;let O=g&&Ibe(D,g,x,i,n);if(u)return O;let z=O===void 0&&f!==void 0?eA(D,x,n):O;if(!z)return C;if(c===1&&!Q_(z))return z;if(c===3&&!Q_(z)){let V=n.configFilePath?xo(Xr(n.configFilePath),i.getCurrentDirectory(),t.getCanonicalFileName):t.getCanonicalFileName(i.getCurrentDirectory()),X=xo(e,V,S),J=ts(y,V),ie=ts(X,V);if(J&&!ie||!J&&ie)return z;let B=Pbe(i,Xr(X));return Pbe(i,y)!==B?z:C}return Mbe(z)||VO(C)e.fileExists(Qr(n,"package.json"))?!0:void 0)}function wbe(e,t,n,i,s){var o;let c=$h(n),u=n.getCurrentDirectory(),f=n.isSourceOfProjectReferenceRedirect(t)?n.getProjectReferenceRedirect(t):void 0,g=xo(t,u,c),p=n.redirectTargetsMap.get(g)||Ve,S=[...f?[f]:Ve,t,...p].map(O=>cs(O,u)),x=!hi(S,ME);if(!i){let O=Qt(S,z=>!(x&&ME(z))&&s(z,f===z));if(O)return O}let C=(o=n.getSymlinkCache)==null?void 0:o.call(n).getSymlinkedDirectoriesByRealpath(),w=cs(t,u);return C&&Ld(Xr(w),O=>{let z=C.get(wl(xo(O,u,c)));if(z)return nJ(e,O,c)?!1:Qt(S,V=>{if(!nJ(V,O,c))return;let X=Em(O,V,c);for(let J of z){let ie=V0(J,X),B=s(ie,V===f);if(x=!0,B)return B}})})||(i?Qt(S,O=>x&&ME(O)?void 0:s(O,O===f)):void 0)}function Abe(e,t,n,i,s={}){var o;let c=xo(t,n.getCurrentDirectory(),$h(n)),u=(o=n.getModuleSpecifierCache)==null?void 0:o.call(n);if(u){let g=u.get(e,c,i,s);if(g?.modulePaths)return g.modulePaths}let f=Nbe(e,t,n);return u&&u.setModulePaths(e,c,i,s,f),f}function Nbe(e,t,n){let i=$h(n),s=new Map,o=!1;wbe(e,t,n,!0,(u,f)=>{let g=aT(u);s.set(u,{path:i(u),isRedirect:f,isInNodeModules:g}),o=o||g});let c=[];for(let u=Xr(e);s.size!==0;){let f=wl(u),g;s.forEach(({path:y,isRedirect:S,isInNodeModules:x},C)=>{ts(y,f)&&((g||(g=[])).push({path:C,isRedirect:S,isInNodeModules:x}),s.delete(C))}),g&&(g.length>1&&g.sort(Dbe),c.push(...g));let p=Xr(u);if(p===u)break;u=p}if(s.size){let u=hs(s.values());u.length>1&&u.sort(Dbe),c.push(...u)}return c}function K9e(e,t){var n;let i=(n=e.declarations)==null?void 0:n.find(c=>WJ(c)&&(!Ov(c)||!Al(gp(c.name))));if(i)return i.name.text;let o=Ri(e.declarations,c=>{var u,f,g,p;if(!Pc(c))return;let y=w(c);if(!((u=y?.parent)!=null&&u.parent&&Hd(y.parent)&&lu(y.parent.parent)&&Li(y.parent.parent.parent)))return;let S=(p=(g=(f=y.parent.parent.symbol.exports)==null?void 0:f.get("export="))==null?void 0:g.valueDeclaration)==null?void 0:p.expression;if(!S)return;let x=t.getSymbolAtLocation(S);if(!x)return;if((x?.flags&2097152?t.getAliasedSymbol(x):x)===c.symbol)return y.parent.parent;function w(D){for(;D.flags&8;)D=D.parent;return D}})[0];if(o)return o.name.text}function Ibe(e,t,n,i,s){for(let c in t)for(let u of t[c]){let f=Ys(u),g=f.indexOf("*"),p=n.map(y=>({ending:y,value:eA(e,[y],s)}));if(bg(f)&&p.push({ending:void 0,value:e}),g!==-1){let y=f.substring(0,g),S=f.substring(g+1);for(let{ending:x,value:C}of p)if(C.length>=y.length+S.length&&ts(C,y)&&Sc(C,S)&&o({ending:x,value:C})){let w=C.substring(y.length,C.length-S.length);if(!Q_(w))return c.replace("*",w)}}else if(ft(p,y=>y.ending!==0&&f===y.value)||ft(p,y=>y.ending===0&&f===y.value&&o(y)))return c}function o({ending:c,value:u}){return c!==0||u===eA(e,[c],s,i)}}function _U(e,t,n,i,s,o,c=0){if(typeof s=="string"){let u=cs(Qr(n,s),void 0),f=O2(t)?zu(t)+fU(t,e):void 0;switch(c){case 0:if(t1(t,u)===0||f&&t1(f,u)===0)return{moduleFileToTry:i};break;case 1:if(Cm(u,t)){let S=Em(u,t,!1);return{moduleFileToTry:cs(Qr(Qr(i,s),S),void 0)}}break;case 2:let g=u.indexOf("*"),p=u.slice(0,g),y=u.slice(g+1);if(ts(t,p)&&Sc(t,y)){let S=t.slice(p.length,t.length-y.length);return{moduleFileToTry:i.replace("*",S)}}if(f&&ts(f,p)&&Sc(f,y)){let S=f.slice(p.length,f.length-y.length);return{moduleFileToTry:i.replace("*",S)}}break}}else{if(Array.isArray(s))return Qt(s,u=>_U(e,t,n,i,u,o));if(typeof s=="object"&&s!==null){if(jO(s))return Qt(Qg(s),u=>{let f=cs(Qr(i,u),void 0),g=Sc(u,"/")?1:u.includes("*")?2:0;return _U(e,t,n,f,s[u],o,g)});for(let u of Qg(s))if(u==="default"||o.includes(u)||Z8(o,u)){let f=s[u],g=_U(e,t,n,i,f,o,c);if(g)return g}}}}function eLe(e,t,n,i,s,o){let c=Fbe(t,e,i);if(c===void 0)return;let u=Fbe(n,e,i),f=oa(u,p=>Kt(c,y=>Cv(Em(p,y,i)))),g=Mj(f,Hw);if(g)return eA(g,s,o)}function qie({path:e,isRedirect:t},{getCanonicalFileName:n,sourceDirectory:i},s,o,c,u,f,g){if(!o.fileExists||!o.readFile)return;let p=oF(e);if(!p)return;let S=uU(u,c,s).getAllowedEndingsInPreferredOrder(),x=e,C=!1;if(!f){let X=p.packageRootIndex,J;for(;;){let{moduleFileToTry:ie,packageRootPath:B,blockedByExports:Z,verbatimFromExports:ae}=V(X);if(Yl(c)!==1){if(Z)return;if(ae)return ie}if(B){x=B,C=!0;break}if(J||(J=ie),X=e.indexOf(Oo,X+1),X===-1){x=eA(J,S,c,o);break}}}if(t&&!C)return;let w=o.getGlobalTypingsCacheLocation&&o.getGlobalTypingsCacheLocation(),D=n(x.substring(0,p.topLevelNodeModulesIndex));if(!(ts(i,D)||w&&ts(n(w),D)))return;let O=x.substring(p.topLevelPackageNameIndex+1),z=h3(O);return Yl(c)===1&&z===O?void 0:z;function V(X){var J,ie;let B=e.substring(0,X),Z=Qr(B,"package.json"),ae=e,_e=!1,$=(ie=(J=o.getPackageJsonInfoCache)==null?void 0:J.call(o))==null?void 0:ie.getPackageJsonInfo(Z);if(typeof $=="object"||$===void 0&&o.fileExists(Z)){let H=$?.contents.packageJsonContent||JSON.parse(o.readFile(Z)),K=g||s.impliedNodeFormat;if(Qz(c)){let se=B.substring(p.topLevelPackageNameIndex+1),Y=h3(se),ve=ab(c,K),xe=H.exports?_U(c,e,B,Y,H.exports,ve):void 0;if(xe)return{...O2(xe.moduleFileToTry)?{moduleFileToTry:zu(xe.moduleFileToTry)+fU(xe.moduleFileToTry,c)}:xe,verbatimFromExports:!0};if(H.exports)return{moduleFileToTry:e,blockedByExports:!0}}let oe=H.typesVersions?IO(H.typesVersions):void 0;if(oe){let se=e.slice(B.length+1),Y=Ibe(se,oe.paths,S,o,c);Y===void 0?_e=!0:ae=Qr(B,Y)}let Se=H.typings||H.types||H.main||"index.js";if(os(Se)&&!(_e&&iV(tF(oe.paths),Se))){let se=xo(Se,B,n),Y=n(ae);if(zu(se)===zu(Y))return{packageRootPath:B,moduleFileToTry:ae};if(H.type!=="module"&&!$c(Y,r8)&&ts(Y,se)&&Xr(Y)===e1(se)&&zu(Mc(Y))==="index")return{packageRootPath:B,moduleFileToTry:ae}}}else{let H=n(ae.substring(p.packageRootIndex+1));if(H==="index.d.ts"||H==="index.js"||H==="index.ts"||H==="index.tsx")return{moduleFileToTry:ae,packageRootPath:B}}return{moduleFileToTry:ae}}}function tLe(e,t){if(!e.fileExists)return;let n=Jp(AE({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(let i of n){let s=t+i;if(e.fileExists(s))return s}}function Fbe(e,t,n){return Ri(t,i=>{let s=Lbe(e,i,n);return s!==void 0&&Mbe(s)?void 0:s})}function eA(e,t,n,i){if($c(e,[".json",".mjs",".cjs"]))return e;let s=zu(e);if(e===s)return e;let o=t.indexOf(2),c=t.indexOf(3);if($c(e,[".mts",".cts"])&&c!==-1&&cg===0||g===1);return f!==-1&&fVO,forEachFileNameOfModule:()=>wbe,getModuleSpecifier:()=>zO,getModuleSpecifiers:()=>kbe,getModuleSpecifiersWithCacheInfo:()=>Cbe,getNodeModulesPackageName:()=>Q9e,tryGetJSExtensionForFile:()=>fU,tryGetModuleSpecifiersFromCache:()=>Y9e,tryGetRealFileNameForNonJsDeclarationFileName:()=>Obe,updateModuleSpecifier:()=>X9e});var Gie=ze({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){"use strict";Rbe()}});function nLe(){this.flags=0}function Va(e){return e.id||(e.id=Qie,Qie++),e.id}function ta(e){return e.id||(e.id=Xie,Xie++),e.id}function pU(e,t){let n=fh(e);return n===1||t&&n===2}function $ie(e){var t=[],n=r=>{t.push(r)},i,s=new Set,o,c,u=jl.getSymbolConstructor(),f=jl.getTypeConstructor(),g=jl.getSignatureConstructor(),p=0,y=0,S=0,x=0,C=0,w=0,D,O,z=!1,V=Gs(),X=[1],J=e.getCompilerOptions(),ie=La(J),B=Ql(J),Z=!!J.experimentalDecorators,ae=Uw(J),_e=bne(J),$=Fx(J),H=bp(J,"strictNullChecks"),K=bp(J,"strictFunctionTypes"),oe=bp(J,"strictBindCallApply"),Se=bp(J,"strictPropertyInitialization"),se=bp(J,"noImplicitAny"),Y=bp(J,"noImplicitThis"),ve=bp(J,"useUnknownInCatchVariables"),xe=!!J.keyofStringsOnly,Me=xe?1:0,ke=J.suppressExcessPropertyErrors?0:8192,he=J.exactOptionalPropertyTypes,be=Tot(),_t=t_t(),mt=AS(),me=Gs(),Oe=ja(4,"undefined");Oe.declarations=[];var Qe=ja(1536,"globalThis",8);Qe.exports=me,Qe.declarations=[],me.set(Qe.escapedName,Qe);var at=ja(4,"arguments"),ht=ja(4,"require"),Je=J.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",lt=!J.verbatimModuleSyntax||!!J.importsNotUsedAsValues,Jt,Gt,Tn=0,Un,cn=0;let zt={getNodeCount:()=>Fu(e.getSourceFiles(),(r,a)=>r+a.nodeCount,0),getIdentifierCount:()=>Fu(e.getSourceFiles(),(r,a)=>r+a.identifierCount,0),getSymbolCount:()=>Fu(e.getSourceFiles(),(r,a)=>r+a.symbolCount,y),getTypeCount:()=>p,getInstantiationCount:()=>S,getRelationCacheSizes:()=>({assignable:U_.size,identity:of.size,subtype:Hm.size,strictSubtype:Qf.size}),isUndefinedSymbol:r=>r===Oe,isArgumentsSymbol:r=>r===at,isUnknownSymbol:r=>r===gt,getMergedSymbol:Ba,getDiagnostics:QIe,getGlobalDiagnostics:hut,getRecursionIdentity:NY,getUnmatchedProperties:yme,getTypeOfSymbolAtLocation:(r,a)=>{let l=ls(a);return l?mit(r,l):ot},getTypeOfSymbol:Vn,getSymbolsOfParameterPropertyDeclaration:(r,a)=>{let l=ls(r,ms);return l===void 0?E.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(E.assert(F_(l,l.parent)),M6(l,Yo(a)))},getDeclaredTypeOfSymbol:wo,getPropertiesOfType:Qa,getPropertyOfType:(r,a)=>Ks(r,Yo(a)),getPrivateIdentifierPropertyOfType:(r,a,l)=>{let _=ls(l);if(!_)return;let m=Yo(a),h=oZ(m,_);return h?rge(r,h):void 0},getTypeOfPropertyOfType:(r,a)=>q(r,Yo(a)),getIndexInfoOfType:(r,a)=>Ug(r,a===0?Fe:St),getIndexInfosOfType:$u,getIndexInfosOfIndexSymbol:mde,getSignaturesOfType:Ps,getIndexTypeOfType:(r,a)=>uv(r,a===0?Fe:St),getIndexType:r=>sg(r),getBaseTypes:il,getBaseTypeOfLiteralType:Ah,getWidenedType:_f,getTypeFromTypeNode:r=>{let a=ls(r,Ei);return a?li(a):ot},getParameterType:Nd,getParameterIdentifierInfoAtPosition:zat,getPromisedTypeOfPromise:TI,getAwaitedType:r=>KS(r),getReturnTypeOfSignature:Ua,isNullableType:GR,getNullableType:LY,getNonNullableType:Nh,getNonOptionalType:MY,getTypeArguments:vo,typeToTypeNode:mt.typeToTypeNode,indexInfoToIndexSignatureDeclaration:mt.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:mt.signatureToSignatureDeclaration,symbolToEntityName:mt.symbolToEntityName,symbolToExpression:mt.symbolToExpression,symbolToNode:mt.symbolToNode,symbolToTypeParameterDeclarations:mt.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:mt.symbolToParameterDeclaration,typeParameterToDeclaration:mt.typeParameterToDeclaration,getSymbolsInScope:(r,a)=>{let l=ls(r);return l?yut(l,a):[]},getSymbolAtLocation:r=>{let a=ls(r);return a?ad(a,!0):void 0},getIndexInfosAtLocation:r=>{let a=ls(r);return a?Eut(a):void 0},getShorthandAssignmentValueSymbol:r=>{let a=ls(r);return a?Dut(a):void 0},getExportSpecifierLocalTargetSymbol:r=>{let a=ls(r,Eu);return a?Put(a):void 0},getExportSymbolOfSymbol(r){return Ba(r.exportSymbol||r)},getTypeAtLocation:r=>{let a=ls(r);return a?fk(a):ot},getTypeOfAssignmentPattern:r=>{let a=ls(r,$4);return a&&LZ(a)||ot},getPropertySymbolOfDestructuringAssignment:r=>{let a=ls(r,Ie);return a?wut(a):void 0},signatureToString:(r,a,l,_)=>cm(r,ls(a),l,_),typeToString:(r,a,l)=>hn(r,ls(a),l),symbolToString:(r,a,l,_)=>ci(r,ls(a),l,_),typePredicateToString:(r,a,l)=>Ym(r,ls(a),l),writeSignature:(r,a,l,_,m)=>cm(r,ls(a),l,_,m),writeType:(r,a,l,_)=>hn(r,ls(a),l,_),writeSymbol:(r,a,l,_,m)=>ci(r,ls(a),l,_,m),writeTypePredicate:(r,a,l,_)=>Ym(r,ls(a),l,_),getAugmentedPropertiesOfType:she,getRootSymbols:i7e,getSymbolOfExpando:mZ,getContextualType:(r,a)=>{let l=ls(r,ut);if(l)return a&4?ji(l,()=>S_(l,a)):S_(l,a)},getContextualTypeForObjectLiteralElement:r=>{let a=ls(r,th);return a?Wme(a,void 0):void 0},getContextualTypeForArgumentAtIndex:(r,a)=>{let l=ls(r,Iv);return l&&Vme(l,a)},getContextualTypeForJsxAttribute:r=>{let a=ls(r,L7);return a&&bAe(a,void 0)},isContextSensitive:ap,getTypeOfPropertyOfContextualType:Zb,getFullyQualifiedName:Np,getResolvedSignature:(r,a,l)=>ii(r,a,l,0),getCandidateSignaturesForStringLiteralCompletions:Ft,getResolvedSignatureForSignatureHelp:(r,a,l)=>Lr(r,()=>ii(r,a,l,16)),getExpandedParameters:kPe,hasEffectiveRestParameter:ag,containsArgumentsReference:pde,getConstantValue:r=>{let a=ls(r,l7e);return a?ahe(a):void 0},isValidPropertyAccess:(r,a)=>{let l=ls(r,bee);return!!l&&Yst(l,Yo(a))},isValidPropertyAccessForCompletions:(r,a,l)=>{let _=ls(r,Cr);return!!_&&QAe(_,a,l)},getSignatureFromDeclaration:r=>{let a=ls(r,As);return a?Lp(a):void 0},isImplementationOfOverload:r=>{let a=ls(r,As);return a?o7e(a):void 0},getImmediateAliasedSymbol:$me,getAliasedSymbol:yl,getEmitResolver:Fl,getExportsOfModule:T0,getExportsAndPropertiesOfModule:mD,forEachExportAndPropertyOfModule:qT,getSymbolWalker:Wie(Ret,sp,Ua,il,Ed,Vn,sd,Nu,tf,vo),getAmbientModules:U_t,getJsxIntrinsicTagNamesAt:Ast,isOptionalParameter:r=>{let a=ls(r,ms);return a?$N(a):!1},tryGetMemberInModuleExports:(r,a)=>HT(Yo(r),a),tryGetMemberInModuleExportsAndProperties:(r,a)=>GT(Yo(r),a),tryFindAmbientModule:r=>eY(r,!0),tryFindAmbientModuleWithoutAugmentations:r=>eY(r,!1),getApparentType:o_,getUnionType:Jr,isTypeAssignableTo:da,createAnonymousType:ac,createSignature:Wg,createSymbol:ja,createIndexInfo:ig,getAnyType:()=>G,getStringType:()=>Fe,getStringLiteralType:b_,getNumberType:()=>St,getNumberLiteralType:wd,getBigIntType:()=>Mt,createPromiseType:rj,createArrayType:hu,getElementTypeOfArrayType:ime,getBooleanType:()=>jr,getFalseType:r=>r?Wt:Rn,getTrueType:r=>r?nr:br,getVoidType:()=>Mi,getUndefinedType:()=>j,getNullType:()=>De,getESSymbolType:()=>Br,getNeverType:()=>wr,getOptionalType:()=>M,getPromiseType:()=>yR(!1),getPromiseLikeType:()=>_we(!1),getAsyncIterableType:()=>{let r=uY(!1);if(r!==as)return r},isSymbolAccessible:hr,isArrayType:cp,isTupleType:va,isArrayLikeType:F0,isEmptyAnonymousObjectType:wh,isTypeInvalidDueToUnionDiscriminant:het,getExactOptionalProperties:qnt,getAllPossiblePropertiesOfTypes:yet,getSuggestedSymbolForNonexistentProperty:age,getSuggestionForNonexistentProperty:oge,getSuggestedSymbolForNonexistentJSXAttribute:$Ae,getSuggestedSymbolForNonexistentSymbol:(r,a,l)=>cge(r,Yo(a),l),getSuggestionForNonexistentSymbol:(r,a,l)=>Gst(r,Yo(a),l),getSuggestedSymbolForNonexistentModule:lZ,getSuggestionForNonexistentExport:$st,getSuggestedSymbolForNonexistentClassMember:GAe,getBaseConstraintOfType:a_,getDefaultFromTypeParameter:r=>r&&r.flags&262144?jS(r):void 0,resolveName(r,a,l,_){return bc(a,Yo(r),l,void 0,void 0,!1,_)},getJsxNamespace:r=>Ci(U1(r)),getJsxFragmentFactory:r=>{let a=che(r);return a&&Ci(tf(a).escapedText)},getAccessibleSymbolChain:iv,getTypePredicateOfSignature:sp,resolveExternalModuleName:r=>{let a=ls(r,ut);return a&&s_(a,a,!0)},resolveExternalModuleSymbol:cf,tryGetThisTypeAt:(r,a,l)=>{let _=ls(r);return _&&jme(_,a,l)},getTypeArgumentConstraint:r=>{let a=ls(r,Ei);return a&&tct(a)},getSuggestionDiagnostics:(r,a)=>{let l=ls(r,Li)||E.fail("Could not determine parsed source file.");if(IE(l,J,e))return Ve;let _;try{return i=a,rhe(l),E.assert(!!(Hr(l).flags&1)),_=Nr(_,gS.getDiagnostics(l.fileName)),fIe(XIe(l),(m,h,T)=>{!jk(m)&&!$Ie(h,!!(m.flags&33554432))&&(_||(_=[])).push({...T,category:2})}),_||Ve}finally{i=void 0}},runWithCancellationToken:(r,a)=>{try{return i=r,a(zt)}finally{i=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:un,isDeclarationVisible:bh,isPropertyAccessible:uge,getTypeOnlyAliasDeclaration:Kf,getMemberOverrideModifierStatus:Flt,isTypeParameterPossiblyReferenced:kR,typeHasCallOrConstructSignatures:MZ};function Ft(r,a){let l=new Set,_=[];ji(a,()=>ii(r,_,void 0,0));for(let m of _)l.add(m);_.length=0,Lr(a,()=>ii(r,_,void 0,0));for(let m of _)l.add(m);return hs(l)}function Lr(r,a){if(r=Fn(r,PJ),r){let l=[],_=[];for(;r;){let h=Hr(r);if(l.push([h,h.resolvedSignature]),h.resolvedSignature=void 0,Yv(r)){let T=Ti(fr(r)),N=T.type;_.push([T,N]),T.type=void 0}r=Fn(r.parent,PJ)}let m=a();for(let[h,T]of l)h.resolvedSignature=T;for(let[h,T]of _)h.type=T;return m}return a()}function ji(r,a){let l=Fn(r,Iv);if(l){let m=r;do Hr(m).skipDirectInference=!0,m=m.parent;while(m&&m!==l)}z=!0;let _=Lr(r,a);if(z=!1,l){let m=r;do Hr(m).skipDirectInference=void 0,m=m.parent;while(m&&m!==l)}return _}function ii(r,a,l,_){let m=ls(r,Iv);Jt=l;let h=m?p4(m,a,_):void 0;return Jt=void 0,h}var Hi=new Map,Ye=new Map,fn=new Map,An=new Map,Ot=new Map,Sn=new Map,Cn=new Map,Kn=new Map,Fi=new Map,Wi=new Map,Ii=new Map,Ki=new Map,na=new Map,Fs=new Map,Ce=new Map,Ue=[],it=new Map,dt=new Set,gt=ja(4,"unknown"),fe=ja(0,"__resolving__"),we=new Map,Be=new Map,yt=new Set,G=Wc(1,"any"),vt=Wc(1,"any",262144,"auto"),wt=Wc(1,"any",void 0,"wildcard"),Re=Wc(1,"any",void 0,"blocked string"),ot=Wc(1,"error"),Dt=Wc(1,"unresolved"),Zt=Wc(1,"any",65536,"non-inferrable"),tn=Wc(1,"intrinsic"),ln=Wc(2,"unknown"),W=Wc(2,"unknown",void 0,"non-null"),j=Wc(32768,"undefined"),ce=H?j:Wc(32768,"undefined",65536,"widening"),ee=Wc(32768,"undefined",void 0,"missing"),ue=he?ee:j,M=Wc(32768,"undefined",void 0,"optional"),De=Wc(65536,"null"),qe=H?De:Wc(65536,"null",65536,"widening"),Fe=Wc(4,"string"),St=Wc(8,"number"),Mt=Wc(64,"bigint"),Wt=Wc(512,"false",void 0,"fresh"),Rn=Wc(512,"false"),nr=Wc(512,"true",void 0,"fresh"),br=Wc(512,"true");nr.regularType=br,nr.freshType=nr,br.regularType=br,br.freshType=nr,Wt.regularType=Rn,Wt.freshType=Wt,Rn.regularType=Rn,Rn.freshType=Wt;var jr=Jr([Rn,br]),Br=Wc(4096,"symbol"),Mi=Wc(16384,"void"),wr=Wc(131072,"never"),is=Wc(131072,"never",262144,"silent"),In=Wc(131072,"never",void 0,"implicit"),mi=Wc(131072,"never",void 0,"unreachable"),ua=Wc(67108864,"object"),js=Jr([Fe,St]),Pn=Jr([Fe,St,Br]),Nc=xe?Fe:Pn,_s=Jr([St,Mt]),to=Jr([Fe,St,jr,Mt,De,j]),fc=JS(["",""],[St]),ec=TR(r=>r.flags&262144?ynt(r):r,()=>"(restrictive mapper)"),gl=TR(r=>r.flags&262144?wt:r,()=>"(permissive mapper)"),Ho=Wc(131072,"never",void 0,"unique literal"),xs=TR(r=>r.flags&262144?Ho:r,()=>"(unique literal mapper)"),$s,cl=TR(r=>($s&&(r===h_||r===Po||r===Ic)&&$s(!0),r),()=>"(unmeasurable reporter)"),Do=TR(r=>($s&&(r===h_||r===Po||r===Ic)&&$s(!1),r),()=>"(unreliable reporter)"),Xs=ac(void 0,V,Ve,Ve,Ve),Jc=ac(void 0,V,Ve,Ve,Ve);Jc.objectFlags|=2048;var td=ja(2048,"__type");td.members=Gs();var zc=ac(td,V,Ve,Ve,Ve),ic=ac(void 0,V,Ve,Ve,Ve),Bo=H?Jr([j,De,ic]):ln,as=ac(void 0,V,Ve,Ve,Ve);as.instantiations=new Map;var Ht=ac(void 0,V,Ve,Ve,Ve);Ht.objectFlags|=262144;var Jo=ac(void 0,V,Ve,Ve,Ve),nl=ac(void 0,V,Ve,Ve,Ve),qu=ac(void 0,V,Ve,Ve,Ve),h_=gu(),Po=gu();Po.constraint=h_;var Ic=gu(),A=gu(),Pe=gu();Pe.constraint=A;var He=gR(1,"<>",0,G),kt=Wg(void 0,void 0,void 0,Ve,G,void 0,0,0),gn=Wg(void 0,void 0,void 0,Ve,ot,void 0,0,0),Ar=Wg(void 0,void 0,void 0,Ve,G,void 0,0,0),Zn=Wg(void 0,void 0,void 0,Ve,is,void 0,0,0),Tr=ig(St,Fe,!0),pi=new Map,Dr={get yieldType(){return E.fail("Not supported")},get returnType(){return E.fail("Not supported")},get nextType(){return E.fail("Not supported")}},Ea=R0(G,G,G),yc=R0(G,G,ln),ll=R0(wr,G,j),_o={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Zet,getGlobalIterableType:uY,getGlobalIterableIteratorType:Ket,getGlobalGeneratorType:ett,resolveIterationType:(r,a)=>KS(r,a,d.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:d.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:d.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:d.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ul={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:ttt,getGlobalIterableType:Tde,getGlobalIterableIteratorType:ntt,getGlobalGeneratorType:rtt,resolveIterationType:(r,a)=>r,mustHaveANextMethodDiagnostic:d.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:d.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:d.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},ro,Cl=new Map,t_=[],Au,Gf,tu,ye,Tt,Ln,Gi,Os,Bs,vc,Ec,Go,tc,Fc,pc,Vc,Ep,Nf,n_,$f,wg,Um,p0,du,Ag,V_,Xf,r_,Q,Ze,Pt,At,L,pe,Ke,It,jn,zr,Vr,Bi,_a,fa,sc,nu,hl,If,ha,Dp,Ff,Ng,qm,wi,gy,hy,xd,Sb,d0=new Map,Ee=0,We=0,xt=0,jt=!1,nn=0,Bn,sn,En,oi=[],mr=[],gr=[],_r=0,Oi=[],io=[],Za=0,W_=b_(""),J1=wd(0),yy=mY({negative:!1,base10Value:"0"}),mh=[],vy=[],_S=[],xb=0,fS=!1,pS=0,_D=10,AT=[],w6=[],z1=[],NT=[],IT=[],A6=[],dS=[],N6=[],FT=[],OT=[],mS=[],Tb=[],kb=[],V1=[],m0=[],Cb=[],em=[],Ra=iC(),gS=iC(),I6=U6(),by,g0,Hm=new Map,Qf=new Map,U_=new Map,i_=new Map,of=new Map,W1=new Map,F6=Gs();F6.set(Oe.escapedName,Oe);var LT=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",J.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return n_t(),zt;function hS(r){return r?Ce.get(r):void 0}function Eb(r,a){return r&&Ce.set(r,a),a}function U1(r){if(r){let a=Mn(r);if(a)if(Zx(r)){if(a.localJsxFragmentNamespace)return a.localJsxFragmentNamespace;let l=a.pragmas.get("jsxfrag");if(l){let m=ss(l)?l[0]:l;if(a.localJsxFragmentFactory=nT(m.arguments.factory,ie),Ge(a.localJsxFragmentFactory,q1,Y_),a.localJsxFragmentFactory)return a.localJsxFragmentNamespace=tf(a.localJsxFragmentFactory).escapedText}let _=che(r);if(_)return a.localJsxFragmentFactory=_,a.localJsxFragmentNamespace=tf(_).escapedText}else{let l=yS(a);if(l)return a.localJsxNamespace=l}}return by||(by="React",J.jsxFactory?(g0=nT(J.jsxFactory,ie),Ge(g0,q1),g0&&(by=tf(g0).escapedText)):J.reactNamespace&&(by=Yo(J.reactNamespace))),g0||(g0=I.createQualifiedName(I.createIdentifier(Ci(by)),"createElement")),by}function yS(r){if(r.localJsxNamespace)return r.localJsxNamespace;let a=r.pragmas.get("jsx");if(a){let l=ss(a)?a[0]:a;if(r.localJsxFactory=nT(l.arguments.factory,ie),Ge(r.localJsxFactory,q1,Y_),r.localJsxFactory)return r.localJsxNamespace=tf(r.localJsxFactory).escapedText}}function q1(r){return Lm(r,-1,-1),on(r,q1,yd)}function Fl(r,a){return QIe(r,a),_t}function h0(r,a,...l){let _=r?vr(r,a,...l):Tc(a,...l),m=Ra.lookup(_);return m||(Ra.add(_),_)}function y0(r,a,l,..._){let m=je(a,l,..._);return m.skippedOn=r,m}function Ig(r,a,...l){return r?vr(r,a,...l):Tc(a,...l)}function je(r,a,...l){let _=Ig(r,a,...l);return Ra.add(_),_}function Vl(r,a){r?Ra.add(a):gS.add({...a,category:2})}function Yf(r,a,l,..._){if(a.pos<0||a.end<0){if(!r)return;let m=Mn(a);Vl(r,"message"in l?Nl(m,0,0,l,..._):ZJ(m,l));return}Vl(r,"message"in l?vr(a,l,..._):nh(Mn(a),a,l))}function Hu(r,a,l,..._){let m=je(r,l,..._);if(a){let h=vr(r,d.Did_you_forget_to_use_await);ga(m,h)}return m}function O6(r,a){let l=Array.isArray(r)?Qt(r,pJ):pJ(r);return l&&ga(a,vr(l,d.The_declaration_was_marked_as_deprecated_here)),gS.add(a),a}function v0(r){let a=v_(r);return a&&bn(r.declarations)>1?a.flags&64?ft(r.declarations,H1):hi(r.declarations,H1):!!r.valueDeclaration&&H1(r.valueDeclaration)||bn(r.declarations)&&hi(r.declarations,H1)}function H1(r){return!!(i2(r)&536870912)}function Fg(r,a,l){let _=vr(r,d._0_is_deprecated,l);return O6(a,_)}function fD(r,a,l,_){let m=l?vr(r,d.The_signature_0_of_1_is_deprecated,_,l):vr(r,d._0_is_deprecated,_);return O6(a,m)}function ja(r,a,l){y++;let _=new u(r|33554432,a);return _.links=new Kie,_.links.checkFlags=l||0,_}function Td(r,a){let l=ja(1,r);return l.links.type=a,l}function vS(r,a){let l=ja(4,r);return l.links.type=a,l}function bS(r){let a=0;return r&2&&(a|=111551),r&1&&(a|=111550),r&4&&(a|=0),r&8&&(a|=900095),r&16&&(a|=110991),r&32&&(a|=899503),r&64&&(a|=788872),r&256&&(a|=899327),r&128&&(a|=899967),r&512&&(a|=110735),r&8192&&(a|=103359),r&32768&&(a|=46015),r&65536&&(a|=78783),r&262144&&(a|=526824),r&524288&&(a|=788968),r&2097152&&(a|=2097152),a}function Db(r,a){a.mergeId||(a.mergeId=Yie,Yie++),AT[a.mergeId]=r}function Pb(r){let a=ja(r.flags,r.escapedName);return a.declarations=r.declarations?r.declarations.slice():[],a.parent=r.parent,r.valueDeclaration&&(a.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(a.constEnumOnlyModule=!0),r.members&&(a.members=new Map(r.members)),r.exports&&(a.exports=new Map(r.exports)),Db(a,r),a}function Pp(r,a,l=!1){if(!(r.flags&bS(a.flags))||(a.flags|r.flags)&67108864){if(a===r)return r;if(!(r.flags&33554432)){let m=Oc(r);if(m===gt)return a;r=Pb(m)}a.flags&512&&r.flags&512&&r.constEnumOnlyModule&&!a.constEnumOnlyModule&&(r.constEnumOnlyModule=!1),r.flags|=a.flags,a.valueDeclaration&&gw(r,a.valueDeclaration),Nr(r.declarations,a.declarations),a.members&&(r.members||(r.members=Gs()),tm(r.members,a.members,l)),a.exports&&(r.exports||(r.exports=Gs()),tm(r.exports,a.exports,l)),l||Db(r,a)}else if(r.flags&1024)r!==Qe&&je(a.declarations&&us(a.declarations[0]),d.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,ci(r));else{let m=!!(r.flags&384||a.flags&384),h=!!(r.flags&2||a.flags&2),T=m?d.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:h?d.Cannot_redeclare_block_scoped_variable_0:d.Duplicate_identifier_0,N=a.declarations&&Mn(a.declarations[0]),F=r.declarations&&Mn(r.declarations[0]),U=GP(N,J.checkJs),re=GP(F,J.checkJs),le=ci(a);if(N&&F&&ro&&!m&&N!==F){let Te=t1(N.path,F.path)===-1?N:F,Ne=Te===N?F:N,st=T4(ro,`${Te.path}|${Ne.path}`,()=>({firstFile:Te,secondFile:Ne,conflictingSymbols:new Map})),Et=T4(st.conflictingSymbols,le,()=>({isBlockScoped:h,firstFileLocations:[],secondFileLocations:[]}));U||_(Et.firstFileLocations,a),re||_(Et.secondFileLocations,r)}else U||kd(a,T,le,r),re||kd(r,T,le,a)}return r;function _(m,h){if(h.declarations)for(let T of h.declarations)lp(m,T)}}function kd(r,a,l,_){Qt(r.declarations,m=>{Og(m,a,l,_.declarations)})}function Og(r,a,l,_){let m=(u1(r,!1)?cz(r):us(r))||r,h=h0(m,a,l);for(let T of _||Ve){let N=(u1(T,!1)?cz(T):us(T))||T;if(N===m)continue;h.relatedInformation=h.relatedInformation||[];let F=vr(N,d._0_was_also_declared_here,l),U=vr(N,d.and_here);bn(h.relatedInformation)>=5||ft(h.relatedInformation,re=>PE(re,U)===0||PE(re,F)===0)||ga(h,bn(h.relatedInformation)?U:F)}}function SS(r,a){if(!r?.size)return a;if(!a?.size)return r;let l=Gs();return tm(l,r),tm(l,a),l}function tm(r,a,l=!1){a.forEach((_,m)=>{let h=r.get(m);r.set(m,h?Pp(h,_,l):Ba(_))})}function xS(r){var a,l,_;let m=r.parent;if(((a=m.symbol.declarations)==null?void 0:a[0])!==m){E.assert(m.symbol.declarations.length>1);return}if(jd(m))tm(me,m.symbol.exports);else{let h=r.parent.parent.flags&33554432?void 0:d.Invalid_module_name_in_augmentation_module_0_cannot_be_found,T=jg(r,r,h,!0);if(!T)return;if(T=cf(T),T.flags&1920)if(ft(Gf,N=>T===N.symbol)){let N=Pp(m.symbol,T,!0);tu||(tu=new Map),tu.set(r.text,N)}else{if((l=T.exports)!=null&&l.get("__export")&&((_=m.symbol.exports)!=null&&_.size)){let N=$pe(T,"resolvedExports");for(let[F,U]of hs(m.symbol.exports.entries()))N.has(F)&&!T.exports.has(F)&&Pp(N.get(F),U)}Pp(T,m.symbol)}else je(r,d.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,r.text)}}function L6(r,a,l){a.forEach((m,h)=>{let T=r.get(h);T?Qt(T.declarations,_(Ci(h),l)):r.set(h,m)});function _(m,h){return T=>Ra.add(vr(T,h,m))}}function Ti(r){if(r.flags&33554432)return r.links;let a=ta(r);return w6[a]??(w6[a]=new Kie)}function Hr(r){let a=Va(r);return z1[a]||(z1[a]=new nLe)}function nm(r){return r.kind===312&&!K_(r)}function P_(r,a,l){if(l){let _=Ba(r.get(a));if(_&&(E.assert((lc(_)&1)===0,"Should never get an instantiated symbol here."),_.flags&l||_.flags&2097152&&mu(_)&l))return _}}function M6(r,a){let l=r.parent,_=r.parent.parent,m=P_(l.locals,a,111551),h=P_(Ly(_.symbol),a,111551);return m&&h?[m,h]:E.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function b0(r,a){let l=Mn(r),_=Mn(a),m=Nm(r);if(l!==_){if(B&&(l.externalModuleIndicator||_.externalModuleIndicator)||!lo(J)||A2(a)||r.flags&33554432||T(a,r))return!0;let F=e.getSourceFiles();return F.indexOf(l)<=F.indexOf(_)}if(a.flags&16777216||A2(a)||Eme(a))return!0;if(r.pos<=a.pos&&!(Is(r)&&iw(a.parent)&&!r.initializer&&!r.exclamationToken)){if(r.kind===208){let F=f1(a,208);return F?Fn(F,Ma)!==Fn(r,Ma)||r.posNa(F)&&F.parent.parent===r);if(Is(r))return!N(r,a,!1);if(F_(r,r.parent))return!(_e&&Rl(r)===Rl(a)&&T(a,r))}return!0}if(a.parent.kind===281||a.parent.kind===277&&a.parent.isExportEquals||a.kind===277&&a.isExportEquals)return!0;if(T(a,r))return _e&&Rl(r)&&(Is(r)||F_(r,r.parent))?!N(r,a,!0):!0;return!1;function h(F,U){switch(F.parent.parent.kind){case 243:case 248:case 250:if(Ab(U,F,m))return!0;break}let re=F.parent.parent;return Ok(re)&&Ab(U,re.expression,m)}function T(F,U){return!!Fn(F,re=>{if(re===m)return"quit";if(As(re))return!0;if(rc(re))return U.posF.end?!1:Fn(U,Te=>{if(Te===F)return"quit";switch(Te.kind){case 219:return!0;case 172:return re&&(Is(F)&&Te.parent===F.parent||F_(F,F.parent)&&Te.parent===F.parent.parent)?"quit":!0;case 241:switch(Te.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function R6(r,a,l){let _=La(J),m=a;if(ms(l)&&m.body&&r.valueDeclaration&&r.valueDeclaration.pos>=m.body.pos&&r.valueDeclaration.end<=m.body.end&&_>=2){let N=Hr(m);return N.declarationRequiresScopeChange===void 0&&(N.declarationRequiresScopeChange=Qt(m.parameters,h)||!1),!N.declarationRequiresScopeChange}return!1;function h(N){return T(N.name)||!!N.initializer&&T(N.initializer)}function T(N){switch(N.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return T(N.name);case 172:return Yc(N)?!_e:T(N.name);default:return yJ(N)||Tu(N)?_<7:Ma(N)&&N.dotDotDotToken&&Gp(N.parent)?_<4:Ei(N)?!1:vs(N,T)||!1}}}function wb(r){return h2(r)&&eh(r.type)||i3(r)&&eh(r.typeExpression)}function bc(r,a,l,_,m,h,T=!1,N=!0){return Gu(r,a,l,_,m,h,T,N,P_)}function Gu(r,a,l,_,m,h,T,N,F){var U,re,le;let Te=r,Ne,st,Et,Yt,pn,tr=!1,yn=r,Ut,On=!1;e:for(;r;){if(a==="const"&&wb(r))return;if(VP(r)&&st&&r.name===st&&(st=r,r=r.parent),Pm(r)&&r.locals&&!nm(r)&&(Ne=F(r.locals,a,l))){let wn=!0;if(As(r)&&st&&st!==r.body?(l&Ne.flags&788968&&st.kind!==327&&(wn=Ne.flags&262144?st===r.type||st.kind===169||st.kind===348||st.kind===349||st.kind===168:!1),l&Ne.flags&3&&(R6(Ne,r,st)?wn=!1:Ne.flags&1&&(wn=st.kind===169||st===r.type&&!!Fn(Ne.valueDeclaration,ms)))):r.kind===194&&(wn=st===r.trueType),wn)break e;Ne=void 0}switch(tr=tr||Gm(r,st),r.kind){case 312:if(!K_(r))break;On=!0;case 267:let wn=((U=fr(r))==null?void 0:U.exports)||V;if(r.kind===312||Pc(r)&&r.flags&33554432&&!jd(r)){if(Ne=wn.get("default")){let bs=cC(Ne);if(bs&&Ne.flags&l&&bs.escapedName===a)break e;Ne=void 0}let lr=wn.get(a);if(lr&&lr.flags===2097152&&(Zo(lr,281)||Zo(lr,280)))break}if(a!=="default"&&(Ne=F(wn,a,l&2623475)))if(Li(r)&&r.commonJsModuleIndicator&&!((re=Ne.declarations)!=null&&re.some(mp)))Ne=void 0;else break e;break;case 266:if(Ne=F(((le=fr(r))==null?void 0:le.exports)||V,a,l&8)){_&&pd(J)&&!(r.flags&33554432)&&Mn(r)!==Mn(Ne.valueDeclaration)&&je(yn,d.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Ci(a),Je,`${Ci(lf(r).escapedName)}.${Ci(a)}`);break e}break;case 172:if(!zs(r)){let lr=rd(r.parent);lr&&lr.locals&&F(lr.locals,a,l&111551)&&(E.assertNode(r,Is),Yt=r)}break;case 263:case 231:case 264:if(Ne=F(fr(r).members||V,a,l&788968)){if(!G1(Ne,r)){Ne=void 0;break}if(st&&zs(st)){_&&je(yn,d.Static_members_cannot_reference_class_type_parameters);return}break e}if(Bl(r)&&l&32){let lr=r.name;if(lr&&a===lr.escapedText){Ne=r.symbol;break e}}break;case 233:if(st===r.expression&&r.parent.token===96){let lr=r.parent.parent;if(ei(lr)&&(Ne=F(fr(lr).members,a,l&788968))){_&&je(yn,d.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Ut=r.parent.parent,(ei(Ut)||Ut.kind===264)&&(Ne=F(fr(Ut).members,a,l&788968))){_&&je(yn,d.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(La(J)>=2)break;case 174:case 176:case 177:case 178:case 262:if(l&3&&a==="arguments"){Ne=at;break e}break;case 218:if(l&3&&a==="arguments"){Ne=at;break e}if(l&16){let lr=r.name;if(lr&&a===lr.escapedText){Ne=r.symbol;break e}}break;case 170:r.parent&&r.parent.kind===169&&(r=r.parent),r.parent&&(Ml(r.parent)||r.parent.kind===263)&&(r=r.parent);break;case 353:case 345:case 347:let vn=oE(r);vn&&(r=vn.parent);break;case 169:st&&(st===r.initializer||st===r.name&&Ms(st))&&(pn||(pn=r));break;case 208:st&&(st===r.initializer||st===r.name&&Ms(st))&&Wv(r)&&!pn&&(pn=r);break;case 195:if(l&262144){let lr=r.typeParameter.name;if(lr&&a===lr.escapedText){Ne=r.typeParameter.symbol;break e}}break;case 281:st&&st===r.propertyName&&r.parent.parent.moduleSpecifier&&(r=r.parent.parent.parent);break}Lg(r)&&(Et=r),st=r,r=hd(r)?v5(r)||r.parent:(gd(r)||lO(r))&&_1(r)||r.parent}if(h&&Ne&&(!Et||Ne!==Et.symbol)&&(Ne.isReferenced|=l),!Ne){if(st&&(E.assertNode(st,Li),st.commonJsModuleIndicator&&a==="exports"&&l&st.symbol.flags))return st.symbol;T||(Ne=F(me,a,l))}if(!Ne&&Te&&Qn(Te)&&Te.parent&&T_(Te.parent,!1))return ht;function kn(){return Yt&&!_e?(je(yn,yn&&Yt.type&&DP(Yt.type,yn.pos)?d.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:d.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,co(Yt.name),nd(m)),!0):!1}if(Ne){if(_&&kn())return}else{_&&n(()=>{if(!yn||yn.parent.kind!==331&&!Mg(yn,a,m)&&!kn()&&!j6(yn)&&!B6(yn,a,l)&&!S0(yn,a)&&!RT(yn,a,l)&&!J6(yn,a,l)&&!rm(yn,a,l)){let wn,vn;if(m&&(vn=qst(m),vn&&je(yn,_,nd(m),vn)),!vn&&N&&pS<_D&&(wn=cge(Te,a,l),wn?.valueDeclaration&&lu(wn.valueDeclaration)&&jd(wn.valueDeclaration)&&(wn=void 0),wn)){let bs=ci(wn),ws=sge(Te,wn,!1),ks=l===1920||m&&typeof m!="string"&&Ro(m)?d.Cannot_find_namespace_0_Did_you_mean_1:ws?d.Could_not_find_name_0_Did_you_mean_1:d.Cannot_find_name_0_Did_you_mean_1,Xi=Ig(yn,ks,nd(m),bs);Vl(!ws,Xi),wn.valueDeclaration&&ga(Xi,vr(wn.valueDeclaration,d._0_is_declared_here,bs))}!wn&&!vn&&m&&je(yn,_,nd(m)),pS++}});return}return _&&n(()=>{if(yn&&(l&2||(l&32||l&384)&&(l&111551)===111551)){let wn=Ip(Ne);(wn.flags&2||wn.flags&32||wn.flags&384)&&fo(wn,yn)}if(Ne&&On&&(l&111551)===111551&&!(Te.flags&16777216)){let wn=Ba(Ne);bn(wn.declarations)&&hi(wn.declarations,vn=>b8(vn)||Li(vn)&&!!vn.symbol.globalExports)&&Yf(!J.allowUmdGlobalAccess,yn,d._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Ci(a))}if(Ne&&pn&&!tr&&(l&111551)===111551){let wn=Ba(KQ(Ne)),vn=Fm(pn);wn===fr(pn)?je(yn,d.Parameter_0_cannot_reference_itself,co(pn.name)):wn.valueDeclaration&&wn.valueDeclaration.pos>pn.pos&&vn.parent.locals&&F(vn.parent.locals,wn.escapedName,l)===wn&&je(yn,d.Parameter_0_cannot_reference_identifier_1_declared_after_it,co(pn.name),co(yn))}if(Ne&&yn&&l&111551&&Ne.flags&2097152&&!(Ne.flags&111551)&&!h1(yn)){let wn=Kf(Ne,111551);if(wn){let vn=wn.kind===281||wn.kind===278||wn.kind===280?d._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:d._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,lr=Ci(a);gh(je(yn,vn,lr),wn,lr)}}}),Ne}function gh(r,a,l){return a?ga(r,vr(a,a.kind===281||a.kind===278||a.kind===280?d._0_was_exported_here:d._0_was_imported_here,l)):r}function Gm(r,a){return r.kind!==219&&r.kind!==218?xC(r)||(To(r)||r.kind===172&&!zs(r))&&(!a||a!==r.name):a&&a===r.name?!1:r.asteriskToken||Mr(r,1024)?!0:!T2(r)}function Lg(r){switch(r.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function nd(r){return os(r)?Ci(r):co(r)}function G1(r,a){if(r.declarations){for(let l of r.declarations)if(l.kind===168&&(hd(l.parent)?Tx(l.parent):l.parent)===a)return!(hd(l.parent)&&xr(l.parent.parent.tags,mp))}return!1}function Mg(r,a,l){if(!Ie(r)||r.escapedText!==a||YIe(r)||A2(r))return!1;let _=__(r,!1,!1),m=_;for(;m;){if(ei(m.parent)){let h=fr(m.parent);if(!h)break;let T=Vn(h);if(Ks(T,a))return je(r,d.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,nd(l),ci(h)),!0;if(m===_&&!zs(m)){let N=wo(h).thisType;if(Ks(N,a))return je(r,d.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,nd(l)),!0}}m=m.parent}return!1}function j6(r){let a=$m(r);return a&&yo(a,64,!0)?(je(r,d.Cannot_extend_an_interface_0_Did_you_mean_implements,Qc(a)),!0):!1}function $m(r){switch(r.kind){case 80:case 211:return r.parent?$m(r.parent):void 0;case 233:if(gc(r.expression))return r.expression;default:return}}function B6(r,a,l){let _=1920|(Qn(r)?111551:0);if(l===_){let m=Oc(bc(r,a,788968&~_,void 0,void 0,!1)),h=r.parent;if(m){if(k_(h)){E.assert(h.left===r,"Should only be resolving left side of qualified name as a namespace");let T=h.right.escapedText;if(Ks(wo(m),T))return je(h,d.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,Ci(a),Ci(T)),!0}return je(r,d._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Ci(a)),!0}}return!1}function rm(r,a,l){if(l&788584){let _=Oc(bc(r,a,111127,void 0,void 0,!1));if(_&&!(_.flags&1920))return je(r,d._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Ci(a)),!0}return!1}function Xm(r){return r==="any"||r==="string"||r==="number"||r==="boolean"||r==="never"||r==="unknown"}function S0(r,a){return Xm(a)&&r.parent.kind===281?(je(r,d.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,a),!0):!1}function J6(r,a,l){if(l&111551){if(Xm(a)){let h=r.parent.parent;if(h&&h.parent&&rf(h)){let T=h.token,N=h.parent.kind;N===264&&T===96?je(r,d.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Ci(a)):N===263&&T===96?je(r,d.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Ci(a)):N===263&&T===119&&je(r,d.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Ci(a))}else je(r,d._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Ci(a));return!0}let _=Oc(bc(r,a,788544,void 0,void 0,!1)),m=_&&mu(_);if(_&&m!==void 0&&!(m&111551)){let h=Ci(a);return pD(a)?je(r,d._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,h):MT(r,_)?je(r,d._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,h,h==="K"?"P":"K"):je(r,d._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,h),!0}}return!1}function MT(r,a){let l=Fn(r.parent,_=>Na(_)||bf(_)?!1:nf(_)||"quit");if(l&&l.members.length===1){let _=wo(a);return!!(_.flags&1048576)&&aj(_,384,!0)}return!1}function pD(r){switch(r){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function RT(r,a,l){if(l&111127){if(Oc(bc(r,a,1024,void 0,void 0,!1)))return je(r,d.Cannot_use_namespace_0_as_a_value,Ci(a)),!0}else if(l&788544&&Oc(bc(r,a,1536,void 0,void 0,!1)))return je(r,d.Cannot_use_namespace_0_as_a_type,Ci(a)),!0;return!1}function fo(r,a){var l;if(E.assert(!!(r.flags&2||r.flags&32||r.flags&384)),r.flags&67108881&&r.flags&32)return;let _=(l=r.declarations)==null?void 0:l.find(m=>zJ(m)||ei(m)||m.kind===266);if(_===void 0)return E.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(_.flags&33554432)&&!b0(_,a)){let m,h=co(us(_));r.flags&2?m=je(a,d.Block_scoped_variable_0_used_before_its_declaration,h):r.flags&32?m=je(a,d.Class_0_used_before_its_declaration,h):r.flags&256&&(m=je(a,d.Enum_0_used_before_its_declaration,h)),m&&ga(m,vr(_,d._0_is_declared_here,h))}}function Ab(r,a,l){return!!a&&!!Fn(r,_=>_===a||(_===l||As(_)&&(!T2(_)||Sl(_)&3)?"quit":!1))}function jT(r){switch(r.kind){case 271:return r;case 273:return r.parent;case 274:return r.parent.parent;case 276:return r.parent.parent.parent;default:return}}function wp(r){return r.declarations&&Bp(r.declarations,$1)}function $1(r){return r.kind===271||r.kind===270||r.kind===273&&!!r.name||r.kind===274||r.kind===280||r.kind===276||r.kind===281||r.kind===277&&eC(r)||Yn(r)&&mc(r)===2&&eC(r)||ho(r)&&Yn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64&&BT(r.parent.right)||r.kind===304||r.kind===303&&BT(r.initializer)||r.kind===260&&Bv(r)||r.kind===208&&Bv(r.parent.parent)}function BT(r){return kw(r)||uo(r)&&dm(r)}function dD(r,a){let l=yh(r);if(l){let m=DE(l.expression).arguments[0];return Ie(l.name)?Oc(Ks(WPe(m),l.name.escapedText)):void 0}if(Ni(r)||r.moduleReference.kind===283){let m=s_(r,sz(r)||iE(r)),h=cf(m);return w_(r,m,h,!1),h}let _=ES(r.moduleReference,a);return TS(r,_),_}function TS(r,a){if(w_(r,void 0,a,!1)&&!r.isTypeOnly){let l=Kf(fr(r)),_=l.kind===281||l.kind===278,m=_?d.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:d.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,h=_?d._0_was_exported_here:d._0_was_imported_here,T=l.kind===278?"*":Ci(l.name.escapedText);ga(je(r.moduleReference,m),vr(l,h,T))}}function rr(r,a,l,_){let m=r.exports.get("export="),h=m?Ks(Vn(m),a,!0):r.exports.get(a),T=Oc(h,_);return w_(l,h,T,!1),T}function ru(r){return hc(r)&&!r.isExportEquals||Mr(r,2048)||Eu(r)||jm(r)}function ns(r){return $a(r)?vd(Mn(r),r):void 0}function y_(r,a){return r===99&&a===1}function im(r){return ns(r)===99&&Sc(r.text,".json")}function Ap(r,a,l,_){let m=r&&ns(_);if(r&&m!==void 0){let h=y_(m,r.impliedNodeFormat);if(m===99||h)return h}if(!$)return!1;if(!r||r.isDeclarationFile){let h=rr(a,"default",void 0,!0);return!(h&&ft(h.declarations,ru)||rr(a,Yo("__esModule"),void 0,l))}return Bu(r)?typeof r.externalModuleIndicator!="object"&&!rr(a,Yo("__esModule"),void 0,l):Mb(a)}function Hn(r,a){let l=s_(r,r.parent.moduleSpecifier);if(l)return Nb(l,r,a)}function Nb(r,a,l){var _;let m;Z4(r)?m=r:m=rr(r,"default",a,l);let h=(_=r.declarations)==null?void 0:_.find(Li),T=X1(a);if(!T)return m;let N=im(T),F=Ap(h,r,l,T);if(!m&&!F&&!N)if(Mb(r)&&!$){let U=B>=5?"allowSyntheticDefaultImports":"esModuleInterop",le=r.exports.get("export=").valueDeclaration,Te=je(a.name,d.Module_0_can_only_be_default_imported_using_the_1_flag,ci(r),U);le&&ga(Te,vr(le,d.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,U))}else Rm(a)?El(r,a):Y1(r,r,a,gx(a)&&a.propertyName||a.name);else if(F||N){let U=cf(r,l)||Oc(r,l);return w_(a,r,U,!1),U}return w_(a,m,void 0,!1),m}function X1(r){switch(r.kind){case 273:return r.parent.moduleSpecifier;case 271:return Bm(r.moduleReference)?r.moduleReference.expression:void 0;case 274:return r.parent.parent.moduleSpecifier;case 276:return r.parent.parent.parent.moduleSpecifier;case 281:return r.parent.parent.moduleSpecifier;default:return E.assertNever(r)}}function El(r,a){var l,_,m;if((l=r.exports)!=null&&l.has(a.symbol.escapedName))je(a.name,d.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,ci(r),ci(a.symbol));else{let h=je(a.name,d.Module_0_has_no_default_export,ci(r)),T=(_=r.exports)==null?void 0:_.get("__export");if(T){let N=(m=T.declarations)==null?void 0:m.find(F=>{var U,re;return!!(Kc(F)&&F.moduleSpecifier&&((re=(U=s_(F,F.moduleSpecifier))==null?void 0:U.exports)!=null&&re.has("default")))});N&&ga(h,vr(N,d.export_Asterisk_does_not_re_export_a_default))}}}function sm(r,a){let l=r.parent.parent.moduleSpecifier,_=s_(r,l),m=ky(_,l,a,!1);return w_(r,_,m,!1),m}function am(r,a){let l=r.parent.moduleSpecifier,_=l&&s_(r,l),m=l&&ky(_,l,a,!1);return w_(r,_,m,!1),m}function Sy(r,a){if(r===gt&&a===gt)return gt;if(r.flags&790504)return r;let l=ja(r.flags|a.flags,r.escapedName);return E.assert(r.declarations||a.declarations),l.declarations=ix(es(r.declarations,a.declarations),B0),l.parent=r.parent||a.parent,r.valueDeclaration&&(l.valueDeclaration=r.valueDeclaration),a.members&&(l.members=new Map(a.members)),r.exports&&(l.exports=new Map(r.exports)),l}function JT(r,a,l,_){var m;if(r.flags&1536){let h=q_(r).get(a.escapedText),T=Oc(h,_),N=(m=Ti(r).typeOnlyExportStarMap)==null?void 0:m.get(a.escapedText);return w_(l,h,T,!1,N,a.escapedText),T}}function hh(r,a){if(r.flags&3){let l=r.valueDeclaration.type;if(l)return Oc(Ks(li(l),a))}}function Q1(r,a,l=!1){var _;let m=sz(r)||r.moduleSpecifier,h=s_(r,m),T=!Cr(a)&&a.propertyName||a.name;if(!Ie(T))return;let N=T.escapedText==="default"&&$,F=ky(h,m,!1,N);if(F&&T.escapedText){if(Z4(h))return h;let U;h&&h.exports&&h.exports.get("export=")?U=Ks(Vn(F),T.escapedText,!0):U=hh(F,T.escapedText),U=Oc(U,l);let re=JT(F,T,a,l);if(re===void 0&&T.escapedText==="default"){let Te=(_=h.declarations)==null?void 0:_.find(Li);(im(m)||Ap(Te,h,l,m))&&(re=cf(h,l)||Oc(h,l))}let le=re&&U&&re!==U?Sy(U,re):re||U;return le||Y1(h,F,r,T),le}}function Y1(r,a,l,_){var m;let h=Np(r,l),T=co(_),N=lZ(_,a);if(N!==void 0){let F=ci(N),U=je(_,d._0_has_no_exported_member_named_1_Did_you_mean_2,h,T,F);N.valueDeclaration&&ga(U,vr(N.valueDeclaration,d._0_is_declared_here,F))}else(m=r.exports)!=null&&m.has("default")?je(_,d.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,h,T):Rg(l,_,T,r,h)}function Rg(r,a,l,_,m){var h,T;let N=(T=(h=Ur(_.valueDeclaration,Pm))==null?void 0:h.locals)==null?void 0:T.get(a.escapedText),F=_.exports;if(N){let U=F?.get("export=");if(U)Lf(U,N)?Qm(r,a,l,m):je(a,d.Module_0_has_no_exported_member_1,m,l);else{let re=F?xr(fde(F),Te=>!!Lf(Te,N)):void 0,le=re?je(a,d.Module_0_declares_1_locally_but_it_is_exported_as_2,m,l,ci(re)):je(a,d.Module_0_declares_1_locally_but_it_is_not_exported,m,l);N.declarations&&ga(le,...Kt(N.declarations,(Te,Ne)=>vr(Te,Ne===0?d._0_is_declared_here:d.and_here,l)))}}else je(a,d.Module_0_has_no_exported_member_1,m,l)}function Qm(r,a,l,_){if(B>=5){let m=Om(J)?d._0_can_only_be_imported_by_using_a_default_import:d._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;je(a,m,l)}else if(Qn(r)){let m=Om(J)?d._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:d._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;je(a,m,l)}else{let m=Om(J)?d._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:d._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;je(a,m,l,l,_)}}function kS(r,a){if(E_(r)&&ur(r.propertyName||r.name)==="default"){let T=X1(r),N=T&&s_(r,T);if(N)return Nb(N,r,a)}let l=Ma(r)?Fm(r):r.parent.parent.parent,_=yh(l),m=Q1(l,_||r,a),h=r.propertyName||r.name;return _&&m&&Ie(h)?Oc(Ks(Vn(m),h.escapedText),a):(w_(r,void 0,m,!1),m)}function yh(r){if(Ni(r)&&r.initializer&&Cr(r.initializer))return r.initializer}function xy(r,a){if(Rd(r.parent)){let l=cf(r.parent.symbol,a);return w_(r,void 0,l,!1),l}}function Ib(r,a,l){if(ur(r.propertyName||r.name)==="default"){let m=X1(r),h=m&&s_(r,m);if(h)return Nb(h,r,!!l)}let _=r.parent.parent.moduleSpecifier?Q1(r.parent.parent,r,l):yo(r.propertyName||r.name,a,!1,l);return w_(r,void 0,_,!1),_}function zT(r,a){let l=hc(r)?r.expression:r.right,_=CS(l,a);return w_(r,void 0,_,!1),_}function CS(r,a){if(Bl(r))return Gc(r).symbol;if(!Y_(r)&&!gc(r))return;let l=yo(r,901119,!0,a);return l||(Gc(r),Hr(r).resolvedSymbol)}function Fb(r,a){if(Yn(r.parent)&&r.parent.left===r&&r.parent.operatorToken.kind===64)return CS(r.parent.right,a)}function Zf(r,a=!1){switch(r.kind){case 271:case 260:return dD(r,a);case 273:return Hn(r,a);case 274:return sm(r,a);case 280:return am(r,a);case 276:case 208:return kS(r,a);case 281:return Ib(r,901119,a);case 277:case 226:return zT(r,a);case 270:return xy(r,a);case 304:return yo(r.name,901119,!0,a);case 303:return CS(r.initializer,a);case 212:case 211:return Fb(r,a);default:return E.fail()}}function Z1(r,a=901119){return r?(r.flags&(2097152|a))===2097152||!!(r.flags&2097152&&r.flags&67108864):!1}function Oc(r,a){return!a&&Z1(r)?yl(r):r}function yl(r){E.assert((r.flags&2097152)!==0,"Should only get Alias here.");let a=Ti(r);if(a.aliasTarget)a.aliasTarget===fe&&(a.aliasTarget=gt);else{a.aliasTarget=fe;let l=wp(r);if(!l)return E.fail();let _=Zf(l);a.aliasTarget===fe?a.aliasTarget=_||gt:je(l,d.Circular_definition_of_import_alias_0,ci(r))}return a.aliasTarget}function VT(r){if(Ti(r).aliasTarget!==fe)return yl(r)}function mu(r,a,l){let _=a&&Kf(r),m=_&&Kc(_),h=_&&(m?s_(_.moduleSpecifier,_.moduleSpecifier,!0):yl(_.symbol)),T=m&&h?Bg(h):void 0,N=l?0:r.flags,F;for(;r.flags&2097152;){let U=Ip(yl(r));if(!m&&U===h||T?.get(U.escapedName)===U)break;if(U===gt)return 67108863;if(U===r||F?.has(U))break;U.flags&2097152&&(F?F.add(U):F=new Set([r,U])),N|=U.flags,r=U}return N}function w_(r,a,l,_,m,h){if(!r||Cr(r))return!1;let T=fr(r);if(Nv(r)){let F=Ti(T);return F.typeOnlyDeclaration=r,!0}if(m){let F=Ti(T);return F.typeOnlyDeclaration=m,T.escapedName!==h&&(F.typeOnlyExportStarName=h),!0}let N=Ti(T);return Ob(N,a,_)||Ob(N,l,_)}function Ob(r,a,l){var _;if(a&&(r.typeOnlyDeclaration===void 0||l&&r.typeOnlyDeclaration===!1)){let m=((_=a.exports)==null?void 0:_.get("export="))??a,h=m.declarations&&xr(m.declarations,Nv);r.typeOnlyDeclaration=h??Ti(m).typeOnlyDeclaration??!1}return!!r.typeOnlyDeclaration}function Kf(r,a){if(!(r.flags&2097152))return;let l=Ti(r);if(a===void 0)return l.typeOnlyDeclaration||void 0;if(l.typeOnlyDeclaration){let _=l.typeOnlyDeclaration.kind===278?Oc(Bg(l.typeOnlyDeclaration.symbol.parent).get(l.typeOnlyExportStarName||r.escapedName)):yl(l.typeOnlyDeclaration.symbol);return mu(_)&a?l.typeOnlyDeclaration:void 0}}function K1(r){if(!lt)return;let a=fr(r),l=yl(a);l&&(l===gt||mu(a,!0)&111551&&!wI(l))&&x0(a)}function x0(r){E.assert(lt);let a=Ti(r);if(!a.referenced){a.referenced=!0;let l=wp(r);if(!l)return E.fail();Gk(l)&&mu(Oc(r))&111551&&Gc(l.moduleReference)}}function Wl(r){let a=Ti(r);a.constEnumReferenced||(a.constEnumReferenced=!0)}function ES(r,a){return r.kind===80&&SE(r)&&(r=r.parent),r.kind===80||r.parent.kind===166?yo(r,1920,!1,a):(E.assert(r.parent.kind===271),yo(r,901119,!1,a))}function Np(r,a){return r.parent?Np(r.parent,a)+"."+ci(r):ci(r,a,void 0,36)}function Ty(r){for(;k_(r.parent);)r=r.parent;return r}function z6(r){let a=tf(r),l=bc(a,a.escapedText,111551,void 0,a,!0);if(l){for(;k_(a.parent);){let _=Vn(l);if(l=Ks(_,a.parent.right.escapedText),!l)return;a=a.parent}return l}}function yo(r,a,l,_,m){if(dc(r))return;let h=1920|(Qn(r)?a&111551:0),T;if(r.kind===80){let N=a===h||Ro(r)?d.Cannot_find_namespace_0:R8e(tf(r)),F=Qn(r)&&!Ro(r)?V6(r,a):void 0;if(T=Ba(bc(m||r,r.escapedText,a,l||F?void 0:N,r,!0,!1)),!T)return Ba(F)}else if(r.kind===166||r.kind===211){let N=r.kind===166?r.left:r.expression,F=r.kind===166?r.right:r.name,U=yo(N,h,l,!1,m);if(!U||dc(F))return;if(U===gt)return U;if(U.valueDeclaration&&Qn(U.valueDeclaration)&&Yl(J)!==100&&Ni(U.valueDeclaration)&&U.valueDeclaration.initializer&&hNe(U.valueDeclaration.initializer)){let re=U.valueDeclaration.initializer.arguments[0],le=s_(re,re);if(le){let Te=cf(le);Te&&(U=Te)}}if(T=Ba(P_(q_(U),F.escapedText,a)),!T&&U.flags&2097152&&(T=Ba(P_(q_(yl(U)),F.escapedText,a))),!T){if(!l){let re=Np(U),le=co(F),Te=lZ(F,U);if(Te){je(F,d._0_has_no_exported_member_named_1_Did_you_mean_2,re,le,ci(Te));return}let Ne=k_(r)&&Ty(r);if(ye&&a&788968&&Ne&&!EC(Ne.parent)&&z6(Ne)){je(Ne,d._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,O_(Ne));return}if(a&1920&&k_(r.parent)){let Et=Ba(P_(q_(U),F.escapedText,788968));if(Et){je(r.parent.right,d.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,ci(Et),Ci(r.parent.right.escapedText));return}}je(F,d.Namespace_0_has_no_exported_member_1,re,le)}return}}else E.assertNever(r,"Unknown entity name kind.");return E.assert((lc(T)&1)===0,"Should never get an instantiated symbol here."),!Ro(r)&&Y_(r)&&(T.flags&2097152||r.parent.kind===277)&&w_(hz(r),T,void 0,!0),T.flags&a||_?T:yl(T)}function V6(r,a){if(cY(r.parent)){let l=DS(r.parent);if(l)return bc(l,r.escapedText,a,void 0,r,!0)}}function DS(r){if(Fn(r,m=>Lk(m)||m.flags&16777216?mp(m):"quit"))return;let l=Tx(r);if(l&&Il(l)&&mw(l.expression)){let m=fr(l.expression.left);if(m)return ev(m)}if(l&&uo(l)&&mw(l.parent)&&Il(l.parent.parent)){let m=fr(l.parent.left);if(m)return ev(m)}if(l&&(qp(l)||el(l))&&Yn(l.parent.parent)&&mc(l.parent.parent)===6){let m=fr(l.parent.parent.left);if(m)return ev(m)}let _=D2(r);if(_&&As(_)){let m=fr(_);return m&&m.valueDeclaration}}function ev(r){let a=r.parent.valueDeclaration;return a?(sE(a)?bx(a):y2(a)?uw(a):void 0)||a:void 0}function WT(r){let a=r.valueDeclaration;if(!a||!Qn(a)||r.flags&524288||u1(a,!1))return;let l=Ni(a)?uw(a):bx(a);if(l){let _=lf(l);if(_)return hge(_,r)}}function s_(r,a,l){let m=Yl(J)===1?d.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:d.Cannot_find_module_0_or_its_corresponding_type_declarations;return jg(r,a,l?void 0:m)}function jg(r,a,l,_=!1){return $a(a)?vh(r,a.text,l,a,_):void 0}function vh(r,a,l,_,m=!1){var h,T,N,F,U,re,le,Te,Ne,st;if(ts(a,"@types/")){let vn=d.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,lr=w4(a,"@types/");je(_,vn,lr,a)}let Et=eY(a,!0);if(Et)return Et;let Yt=Mn(r),pn=$a(r)?r:((h=Fn(r,ef))==null?void 0:h.arguments[0])||((T=Fn(r,kl))==null?void 0:T.moduleSpecifier)||((N=Fn(r,l1))==null?void 0:N.moduleReference.expression)||((F=Fn(r,Kc))==null?void 0:F.moduleSpecifier)||((U=Pc(r)?r:r.parent&&Pc(r.parent)&&r.parent.name===r?r.parent:void 0)==null?void 0:U.name)||((re=K0(r)?r:void 0)==null?void 0:re.argument.literal),tr=pn&&$a(pn)?vd(Yt,pn):Yt.impliedNodeFormat,yn=Yl(J),Ut=(le=e.getResolvedModule(Yt,a,tr))==null?void 0:le.resolvedModule,On=Ut&&lq(J,Ut,Yt),kn=Ut&&(!On||On===d.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&e.getSourceFile(Ut.resolvedFileName);if(kn){if(On&&je(_,On,a,Ut.resolvedFileName),Ut.resolvedUsingTsExtension&&Jl(a)){let vn=((Te=Fn(r,kl))==null?void 0:Te.importClause)||Fn(r,ud(Kl,Kc));(vn&&!vn.isTypeOnly||Fn(r,ef))&&je(_,d.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,wn(E.checkDefined(L5(a))))}else if(Ut.resolvedUsingTsExtension&&!HC(J,Yt.fileName)){let vn=((Ne=Fn(r,kl))==null?void 0:Ne.importClause)||Fn(r,ud(Kl,Kc));if(!(vn?.isTypeOnly||Fn(r,ch))){let lr=E.checkDefined(L5(a));je(_,d.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,lr)}}if(kn.symbol){if(Ut.isExternalLibraryImport&&!NE(Ut.extension)&&Lb(!1,_,Yt,tr,Ut,a),yn===3||yn===99){let vn=Yt.impliedNodeFormat===1&&!Fn(r,ef)||!!Fn(r,Kl),lr=Fn(r,bs=>ch(bs)||Kc(bs)||kl(bs));if(vn&&kn.impliedNodeFormat===99&&!Bne(lr))if(Fn(r,Kl))je(_,d.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,a);else{let bs,ws=bg(Yt.fileName);if(ws===".ts"||ws===".js"||ws===".tsx"||ws===".jsx"){let ks=Yt.packageJsonScope,Xi=ws===".ts"?".mts":ws===".js"?".mjs":void 0;ks&&!ks.contents.packageJsonContent.type?Xi?bs=ys(void 0,d.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Xi,Qr(ks.packageDirectory,"package.json")):bs=ys(void 0,d.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,Qr(ks.packageDirectory,"package.json")):Xi?bs=ys(void 0,d.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,Xi):bs=ys(void 0,d.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Ra.add(nh(Mn(_),_,ys(bs,d.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,a)))}}return Ba(kn.symbol)}l&&je(_,d.File_0_is_not_a_module,kn.fileName);return}if(Gf){let vn=Bj(Gf,lr=>lr.pattern,a);if(vn){let lr=tu&&tu.get(a);return Ba(lr||vn.symbol)}}if(Ut&&!NE(Ut.extension)&&On===void 0||On===d.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(m){let vn=d.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;je(_,vn,a,Ut.resolvedFileName)}else Lb(se&&!!l,_,Yt,tr,Ut,a);return}if(l){if(Ut){let vn=e.getProjectReferenceRedirect(Ut.resolvedFileName);if(vn){je(_,d.Output_file_0_has_not_been_built_from_source_file_1,vn,Ut.resolvedFileName);return}}if(On)je(_,On,a,Ut.resolvedFileName);else{let vn=Q_(a)&&!fx(a),lr=yn===3||yn===99;if(!$v(J)&&nc(a,".json")&&yn!==1&&U5(J))je(_,d.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,a);else if(tr===99&&lr&&vn){let bs=cs(a,Xr(Yt.path)),ws=(st=LT.find(([ks,Xi])=>e.fileExists(bs+ks)))==null?void 0:st[1];ws?je(_,d.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,a+ws):je(_,d.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else je(_,l,a)}}return;function wn(vn){let lr=Gw(a,vn);if(W5(B)||tr===99){let bs=Jl(a)&&HC(J);return lr+(vn===".mts"||vn===".d.mts"?bs?".mts":".mjs":vn===".cts"||vn===".d.mts"?bs?".cts":".cjs":bs?".ts":".js")}return lr}}function Lb(r,a,l,_,{packageId:m,resolvedFileName:h},T){let N;!Al(T)&&m&&(N=MJ(l,e,T,_,m.name)),Yf(r,a,ys(N,d.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,T,h))}function cf(r,a){if(r?.exports){let l=Oc(r.exports.get("export="),a),_=UT(Ba(l),Ba(r));return Ba(_)||r}}function UT(r,a){if(!r||r===gt||r===a||a.exports.size===1||r.flags&2097152)return r;let l=Ti(r);if(l.cjsExportMerged)return l.cjsExportMerged;let _=r.flags&33554432?r:Pb(r);return _.flags=_.flags|512,_.exports===void 0&&(_.exports=Gs()),a.exports.forEach((m,h)=>{h!=="export="&&_.exports.set(h,_.exports.has(h)?Pp(_.exports.get(h),m):m)}),_===r&&(Ti(_).resolvedExports=void 0,Ti(_).resolvedMembers=void 0),Ti(_).cjsExportMerged=_,l.cjsExportMerged=_}function ky(r,a,l,_){var m;let h=cf(r,l);if(!l&&h){if(!_&&!(h.flags&1539)&&!Zo(h,312)){let N=B>=5?"allowSyntheticDefaultImports":"esModuleInterop";return je(a,d.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,N),h}let T=a.parent;if(kl(T)&&Yk(T)||ef(T)){let N=ef(T)?T.arguments[0]:T.moduleSpecifier,F=Vn(h),U=mNe(F,h,r,N);if(U)return Of(h,U,T);let re=(m=r?.declarations)==null?void 0:m.find(Li),le=re&&y_(ns(N),re.impliedNodeFormat);if(Om(J)||le){let Te=mR(F,0);if((!Te||!Te.length)&&(Te=mR(F,1)),Te&&Te.length||Ks(F,"default",!0)||le){let Ne=F.flags&3670016?gNe(F,h,r,N):yge(h,h.parent);return Of(h,Ne,T)}}}}return h}function Of(r,a,l){let _=ja(r.flags,r.escapedName);_.declarations=r.declarations?r.declarations.slice():[],_.parent=r.parent,_.links.target=r,_.links.originatingImport=l,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration),r.constEnumOnlyModule&&(_.constEnumOnlyModule=!0),r.members&&(_.members=new Map(r.members)),r.exports&&(_.exports=new Map(r.exports));let m=Ed(a);return _.links.type=ac(_,m.members,Ve,Ve,m.indexInfos),_}function Mb(r){return r.exports.get("export=")!==void 0}function T0(r){return fde(Bg(r))}function mD(r){let a=T0(r),l=cf(r);if(l!==r){let _=Vn(l);tv(_)&&Nr(a,Qa(_))}return a}function qT(r,a){Bg(r).forEach((m,h)=>{rv(h)||a(m,h)});let _=cf(r);if(_!==r){let m=Vn(_);tv(m)&&get(m,(h,T)=>{a(h,T)})}}function HT(r,a){let l=Bg(a);if(l)return l.get(r)}function GT(r,a){let l=HT(r,a);if(l)return l;let _=cf(a);if(_===a)return;let m=Vn(_);return tv(m)?Ks(m,r):void 0}function tv(r){return!(r.flags&402784252||Ir(r)&1||cp(r)||va(r))}function q_(r){return r.flags&6256?$pe(r,"resolvedExports"):r.flags&1536?Bg(r):r.exports||V}function Bg(r){let a=Ti(r);if(!a.resolvedExports){let{exports:l,typeOnlyExportStarMap:_}=XT(r);a.resolvedExports=l,a.typeOnlyExportStarMap=_}return a.resolvedExports}function $T(r,a,l,_){a&&a.forEach((m,h)=>{if(h==="default")return;let T=r.get(h);if(!T)r.set(h,m),l&&_&&l.set(h,{specifierText:Qc(_.moduleSpecifier)});else if(l&&_&&T&&Oc(T)!==Oc(m)){let N=l.get(h);N.exportsWithDuplicate?N.exportsWithDuplicate.push(_):N.exportsWithDuplicate=[_]}})}function XT(r){let a=[],l,_=new Set;r=cf(r);let m=h(r)||V;return l&&_.forEach(T=>l.delete(T)),{exports:m,typeOnlyExportStarMap:l};function h(T,N,F){if(!F&&T?.exports&&T.exports.forEach((le,Te)=>_.add(Te)),!(T&&T.exports&&lp(a,T)))return;let U=new Map(T.exports),re=T.exports.get("__export");if(re){let le=Gs(),Te=new Map;if(re.declarations)for(let Ne of re.declarations){let st=s_(Ne,Ne.moduleSpecifier),Et=h(st,Ne,F||Ne.isTypeOnly);$T(le,Et,Te,Ne)}Te.forEach(({exportsWithDuplicate:Ne},st)=>{if(!(st==="export="||!(Ne&&Ne.length)||U.has(st)))for(let Et of Ne)Ra.add(vr(Et,d.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Te.get(st).specifierText,Ci(st)))}),$T(U,le)}return N?.isTypeOnly&&(l??(l=new Map),U.forEach((le,Te)=>l.set(Te,N))),U}}function Ba(r){let a;return r&&r.mergeId&&(a=AT[r.mergeId])?a:r}function fr(r){return Ba(r.symbol&&KQ(r.symbol))}function lf(r){return Rd(r)?fr(r):void 0}function v_(r){return Ba(r.parent&&KQ(r.parent))}function Rb(r,a){let l=Mn(a),_=Va(l),m=Ti(r),h;if(m.extendedContainersByFile&&(h=m.extendedContainersByFile.get(_)))return h;if(l&&l.imports){for(let N of l.imports){if(Ro(N))continue;let F=s_(a,N,!0);!F||!Cy(F,r)||(h=_n(h,F))}if(bn(h))return(m.extendedContainersByFile||(m.extendedContainersByFile=new Map)).set(_,h),h}if(m.extendedContainers)return m.extendedContainers;let T=e.getSourceFiles();for(let N of T){if(!Bc(N))continue;let F=fr(N);Cy(F,r)&&(h=_n(h,F))}return m.extendedContainers=h||Ve}function W6(r,a,l){let _=v_(r);if(_&&!(r.flags&262144)){let T=Ri(_.declarations,h),N=a&&Rb(r,a),F=nv(_,l);if(a&&_.flags&Jg(l)&&iv(_,a,1920,!1))return _n(es(es([_],T),N),F);let U=!(_.flags&Jg(l))&&_.flags&788968&&wo(_).flags&524288&&l===111551?Dy(a,le=>$l(le,Te=>{if(Te.flags&Jg(l)&&Vn(Te)===wo(_))return Te})):void 0,re=U?[U,...T,_]:[...T,_];return re=_n(re,F),re=Nr(re,N),re}let m=Ri(r.declarations,T=>{if(!lu(T)&&T.parent){if(Ls(T.parent))return fr(T.parent);if(Hd(T.parent)&&T.parent.parent&&cf(fr(T.parent.parent))===r)return fr(T.parent.parent)}if(Bl(T)&&Yn(T.parent)&&T.parent.operatorToken.kind===64&&ho(T.parent.left)&&gc(T.parent.left.expression))return gg(T.parent.left)||k2(T.parent.left.expression)?fr(Mn(T)):(Gc(T.parent.left.expression),Hr(T.parent.left.expression).resolvedSymbol)});if(!bn(m))return;return Ri(m,T=>Cy(T,r)?T:void 0);function h(T){return _&&jb(T,_)}}function nv(r,a){let l=!!bn(r.declarations)&&Da(r.declarations);if(a&111551&&l&&l.parent&&Ni(l.parent)&&(xa(l)&&l===l.parent.initializer||nf(l)&&l===l.parent.type))return fr(l.parent)}function jb(r,a){let l=ai(r),_=l&&l.exports&&l.exports.get("export=");return _&&Lf(_,a)?l:void 0}function Cy(r,a){if(r===v_(a))return a;let l=r.exports&&r.exports.get("export=");if(l&&Lf(l,a))return r;let _=q_(r),m=_.get(a.escapedName);return m&&Lf(m,a)?m:$l(_,h=>{if(Lf(h,a))return h})}function Lf(r,a){if(Ba(Oc(Ba(r)))===Ba(Oc(Ba(a))))return r}function Ip(r){return Ba(r&&(r.flags&1048576)!==0&&r.exportSymbol||r)}function Ey(r,a){return!!(r.flags&111551||r.flags&2097152&&mu(r,!a)&111551)}function rd(r){let a=r.members;for(let l of a)if(l.kind===176&&fp(l.body))return l}function Fp(r){var a;let l=new f(zt,r);return p++,l.id=p,(a=Wn)==null||a.recordType(l),l}function k0(r,a){let l=Fp(r);return l.symbol=a,l}function Bb(r){return new f(zt,r)}function Wc(r,a,l=0,_){gD(a,_);let m=Fp(r);return m.intrinsicName=a,m.debugIntrinsicName=_,m.objectFlags=l|524288|2097152|33554432|16777216,m}function gD(r,a){let l=`${r},${a??""}`;yt.has(l)&&E.fail(`Duplicate intrinsic type name ${r}${a?` (${a})`:""}; you may need to pass a name to createIntrinsicType.`),yt.add(l)}function ep(r,a){let l=k0(524288,a);return l.objectFlags=r,l.members=void 0,l.properties=void 0,l.callSignatures=void 0,l.constructSignatures=void 0,l.indexInfos=void 0,l}function U6(){return Jr(hs(gU.keys(),b_))}function gu(r){return k0(262144,r)}function rv(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)!==95&&r.charCodeAt(2)!==64&&r.charCodeAt(2)!==35}function Jb(r){let a;return r.forEach((l,_)=>{PS(l,_)&&(a||(a=[])).push(l)}),a||Ve}function PS(r,a){return!rv(a)&&Ey(r)}function q6(r){let a=Jb(r),l=rY(r);return l?es(a,[l]):a}function tp(r,a,l,_,m){let h=r;return h.members=a,h.properties=Ve,h.callSignatures=l,h.constructSignatures=_,h.indexInfos=m,a!==V&&(h.properties=Jb(a)),h}function ac(r,a,l,_,m){return tp(ep(16,r),a,l,_,m)}function om(r){if(r.constructSignatures.length===0)return r;if(r.objectTypeWithoutAbstractConstructSignatures)return r.objectTypeWithoutAbstractConstructSignatures;let a=Fr(r.constructSignatures,_=>!(_.flags&4));if(r.constructSignatures===a)return r;let l=ac(r.symbol,r.members,r.callSignatures,ft(a)?a:Ve,r.indexInfos);return r.objectTypeWithoutAbstractConstructSignatures=l,l.objectTypeWithoutAbstractConstructSignatures=l,l}function Dy(r,a){let l;for(let _=r;_;_=_.parent){if(Pm(_)&&_.locals&&!nm(_)&&(l=a(_.locals,void 0,!0,_)))return l;switch(_.kind){case 312:if(!K_(_))break;case 267:let m=fr(_);if(l=a(m?.exports||V,void 0,!0,_))return l;break;case 263:case 231:case 264:let h;if((fr(_).members||V).forEach((T,N)=>{T.flags&788968&&(h||(h=Gs())).set(N,T)}),h&&(l=a(h,void 0,!1,_)))return l;break}}return a(me,void 0,!0)}function Jg(r){return r===111551?111551:1920}function iv(r,a,l,_,m=new Map){if(!(r&&!Py(r)))return;let h=Ti(r),T=h.accessibleChainCache||(h.accessibleChainCache=new Map),N=Dy(a,(pn,tr,yn,Ut)=>Ut),F=`${_?0:1}|${N&&Va(N)}|${l}`;if(T.has(F))return T.get(F);let U=ta(r),re=m.get(U);re||m.set(U,re=[]);let le=Dy(a,Te);return T.set(F,le),le;function Te(pn,tr,yn){if(!lp(re,pn))return;let Ut=Et(pn,tr,yn);return re.pop(),Ut}function Ne(pn,tr){return!H6(pn,a,tr)||!!iv(pn.parent,a,Jg(tr),_,m)}function st(pn,tr,yn){return(r===(tr||pn)||Ba(r)===Ba(tr||pn))&&!ft(pn.declarations,Ls)&&(yn||Ne(Ba(pn),l))}function Et(pn,tr,yn){return st(pn.get(r.escapedName),void 0,tr)?[r]:$l(pn,On=>{if(On.flags&2097152&&On.escapedName!=="export="&&On.escapedName!=="default"&&!(B5(On)&&a&&Bc(Mn(a)))&&(!_||ft(On.declarations,l1))&&(!yn||!ft(On.declarations,gte))&&(tr||!Zo(On,281))){let kn=yl(On),wn=Yt(On,kn,tr);if(wn)return wn}if(On.escapedName===r.escapedName&&On.exportSymbol&&st(Ba(On.exportSymbol),void 0,tr))return[r]})||(pn===me?Yt(Qe,Qe,tr):void 0)}function Yt(pn,tr,yn){if(st(pn,tr,yn))return[pn];let Ut=q_(tr),On=Ut&&Te(Ut,!0);if(On&&Ne(pn,Jg(l)))return[pn].concat(On)}}function H6(r,a,l){let _=!1;return Dy(a,m=>{let h=Ba(m.get(r.escapedName));if(!h)return!1;if(h===r)return!0;let T=h.flags&2097152&&!Zo(h,281);return h=T?yl(h):h,(T?mu(h):h.flags)&l?(_=!0,!0):!1}),_}function Py(r){if(r.declarations&&r.declarations.length){for(let a of r.declarations)switch(a.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function k(r,a){return xi(r,a,788968,!1,!0).accessibility===0}function te(r,a){return xi(r,a,111551,!1,!0).accessibility===0}function ct(r,a,l){return xi(r,a,l,!1,!1).accessibility===0}function $t(r,a,l,_,m,h){if(!bn(r))return;let T,N=!1;for(let F of r){let U=iv(F,a,_,!1);if(U){T=F;let Te=A_(U[0],m);if(Te)return Te}if(h&&ft(F.declarations,Ls)){if(m){N=!0;continue}return{accessibility:0}}let re=W6(F,a,_),le=$t(re,a,l,l===F?Jg(_):_,m,h);if(le)return le}if(N)return{accessibility:0};if(T)return{accessibility:1,errorSymbolName:ci(l,a,_),errorModuleName:T!==l?ci(T,a,1920):void 0}}function hr(r,a,l,_){return xi(r,a,l,_,!0)}function xi(r,a,l,_,m){if(r&&a){let h=$t([r],a,r,l,_,m);if(h)return h;let T=Qt(r.declarations,ai);if(T){let N=ai(a);if(T!==N)return{accessibility:2,errorSymbolName:ci(r,a,l),errorModuleName:ci(T),errorNode:Qn(a)?a:void 0}}return{accessibility:1,errorSymbolName:ci(r,a,l)}}return{accessibility:0}}function ai(r){let a=Fn(r,zi);return a&&fr(a)}function zi(r){return lu(r)||r.kind===312&&K_(r)}function Ls(r){return G7(r)||r.kind===312&&K_(r)}function A_(r,a){let l;if(!hi(Fr(r.declarations,h=>h.kind!==80),_))return;return{accessibility:0,aliasesToMakeVisible:l};function _(h){var T,N;if(!bh(h)){let F=jT(h);if(F&&!Mr(F,32)&&bh(F.parent))return m(h,F);if(Ni(h)&&uc(h.parent.parent)&&!Mr(h.parent.parent,32)&&bh(h.parent.parent.parent))return m(h,h.parent.parent);if($7(h)&&!Mr(h,32)&&bh(h.parent))return m(h,h);if(Ma(h)){if(r.flags&2097152&&Qn(h)&&((T=h.parent)!=null&&T.parent)&&Ni(h.parent.parent)&&((N=h.parent.parent.parent)!=null&&N.parent)&&uc(h.parent.parent.parent.parent)&&!Mr(h.parent.parent.parent.parent,32)&&h.parent.parent.parent.parent.parent&&bh(h.parent.parent.parent.parent.parent))return m(h,h.parent.parent.parent.parent);if(r.flags&2){let U=Fn(h,uc);return Mr(U,32)?!0:bh(U.parent)?m(h,U):!1}}return!1}return!0}function m(h,T){return a&&(Hr(h).isVisible=!0,l=Xg(l,T)),!0}}function H_(r,a){let l;r.parent.kind===186||r.parent.kind===233&&!dg(r.parent)||r.parent.kind===167?l=1160127:r.kind===166||r.kind===211||r.parent.kind===271?l=1920:l=788968;let _=tf(r),m=bc(a,_.escapedText,l,void 0,void 0,!1);return m&&m.flags&262144&&l&788968?{accessibility:0}:!m&&Hv(_)&&hr(fr(__(_,!1,!1)),_,l,!1).accessibility===0?{accessibility:0}:m&&A_(m,!0)||{accessibility:1,errorSymbolName:Qc(_),errorNode:_}}function ci(r,a,l,_=4,m){let h=70221824;_&2&&(h|=128),_&1&&(h|=512),_&8&&(h|=16384),_&32&&(h|=134217728),_&16&&(h|=1073741824);let T=_&4?mt.symbolToNode:mt.symbolToEntityName;return m?N(m).getText():Q4(N);function N(F){let U=T(r,l,a,h),re=a?.kind===312?WU():fb(),le=a&&Mn(a);return re.writeNode(4,U,le,F),F}}function cm(r,a,l=0,_,m){return m?h(m).getText():Q4(h);function h(T){let N;l&262144?N=_===1?185:184:N=_===1?180:179;let F=mt.signatureToSignatureDeclaration(r,N,a,sv(l)|70221824|512),U=oA(),re=a&&Mn(a);return U.writeNode(4,F,re,wz(T)),T}}function hn(r,a,l=1064960,_=Nw("")){let m=J.noErrorTruncation||l&1,h=mt.typeToTypeNode(r,a,sv(l)|70221824|(m?1:0));if(h===void 0)return E.fail("should always get typenode");let T=r!==Dt?fb():VU(),N=a&&Mn(a);T.writeNode(4,h,N,_);let F=_.getText(),U=m?_F*2:Kw*2;return U&&F&&F.length>=U?F.substr(0,U-3)+"...":F}function wy(r,a){let l=wS(r.symbol)?hn(r,r.symbol.valueDeclaration):hn(r),_=wS(a.symbol)?hn(a,a.symbol.valueDeclaration):hn(a);return l===_&&(l=C0(r),_=C0(a)),[l,_]}function C0(r){return hn(r,void 0,64)}function wS(r){return r&&!!r.valueDeclaration&&ut(r.valueDeclaration)&&!ap(r.valueDeclaration)}function sv(r=0){return r&848330091}function QT(r){return!!r.symbol&&!!(r.symbol.flags&32)&&(r===ip(r.symbol)||!!(r.flags&524288)&&!!(Ir(r)&16777216))}function AS(){return{typeToTypeNode:(Xe,de,Xn,yr)=>a(de,Xn,yr,ni=>_(Xe,ni)),indexInfoToIndexSignatureDeclaration:(Xe,de,Xn,yr)=>a(de,Xn,yr,ni=>re(Xe,ni,void 0)),signatureToSignatureDeclaration:(Xe,de,Xn,yr,ni)=>a(Xn,yr,ni,Kr=>le(Xe,de,Kr)),symbolToEntityName:(Xe,de,Xn,yr,ni)=>a(Xn,yr,ni,Kr=>Xi(Xe,Kr,de,!1)),symbolToExpression:(Xe,de,Xn,yr,ni)=>a(Xn,yr,ni,Kr=>Iu(Xe,Kr,de)),symbolToTypeParameterDeclarations:(Xe,de,Xn,yr)=>a(de,Xn,yr,ni=>On(Xe,ni)),symbolToParameterDeclaration:(Xe,de,Xn,yr)=>a(de,Xn,yr,ni=>Yt(Xe,ni)),typeParameterToDeclaration:(Xe,de,Xn,yr)=>a(de,Xn,yr,ni=>st(Xe,ni)),symbolTableToDeclarationStatements:(Xe,de,Xn,yr,ni)=>a(de,Xn,yr,Kr=>pf(Xe,Kr,ni)),symbolToNode:(Xe,de,Xn,yr,ni)=>a(Xn,yr,ni,Kr=>r(Xe,Kr,de))};function r(Xe,de,Xn){if(de.flags&1073741824){if(Xe.valueDeclaration){let ni=us(Xe.valueDeclaration);if(ni&&Na(ni))return ni}let yr=Ti(Xe).nameType;if(yr&&yr.flags&9216)return de.enclosingDeclaration=yr.symbol.valueDeclaration,I.createComputedPropertyName(Iu(yr.symbol,de,Xn))}return Iu(Xe,de,Xn)}function a(Xe,de,Xn,yr){E.assert(Xe===void 0||(Xe.flags&16)===0);let ni=Xn?.trackSymbol?Xn.moduleResolverHost:de&134217728?iLe(e):void 0,Kr={enclosingDeclaration:Xe,flags:de||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};Kr.tracker=new hU(Kr,Xn,ni);let di=yr(Kr);return Kr.truncating&&Kr.flags&1&&Kr.tracker.reportTruncationError(),Kr.encounteredError?void 0:di}function l(Xe){return Xe.truncating?Xe.truncating:Xe.truncating=Xe.approximateLength>(Xe.flags&1?_F:Kw)}function _(Xe,de){let Xn=de.flags,yr=m(Xe,de);return de.flags=Xn,yr}function m(Xe,de){var Xn,yr;i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ni=de.flags&8388608;if(de.flags&=-8388609,!Xe){if(!(de.flags&262144)){de.encounteredError=!0;return}return de.approximateLength+=3,I.createKeywordTypeNode(133)}if(de.flags&536870912||(Xe=Dd(Xe)),Xe.flags&1)return Xe.aliasSymbol?I.createTypeReferenceNode(lr(Xe.aliasSymbol),F(Xe.aliasTypeArguments,de)):Xe===Dt?UE(I.createKeywordTypeNode(133),3,"unresolved"):(de.approximateLength+=3,I.createKeywordTypeNode(Xe===tn?141:133));if(Xe.flags&2)return I.createKeywordTypeNode(159);if(Xe.flags&4)return de.approximateLength+=6,I.createKeywordTypeNode(154);if(Xe.flags&8)return de.approximateLength+=6,I.createKeywordTypeNode(150);if(Xe.flags&64)return de.approximateLength+=6,I.createKeywordTypeNode(163);if(Xe.flags&16&&!Xe.aliasSymbol)return de.approximateLength+=7,I.createKeywordTypeNode(136);if(Xe.flags&1056){if(Xe.symbol.flags&8){let mn=v_(Xe.symbol),$r=bs(mn,de,788968);if(wo(mn)===Xe)return $r;let bi=xc(Xe.symbol);return hf(bi,0)?ui($r,I.createTypeReferenceNode(bi,void 0)):ch($r)?($r.isTypeOf=!0,I.createIndexedAccessTypeNode($r,I.createLiteralTypeNode(I.createStringLiteral(bi)))):Tp($r)?I.createIndexedAccessTypeNode(I.createTypeQueryNode($r.typeName),I.createLiteralTypeNode(I.createStringLiteral(bi))):E.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return bs(Xe.symbol,de,788968)}if(Xe.flags&128)return de.approximateLength+=Xe.value.length+2,I.createLiteralTypeNode($n(I.createStringLiteral(Xe.value,!!(de.flags&268435456)),16777216));if(Xe.flags&256){let mn=Xe.value;return de.approximateLength+=(""+mn).length,I.createLiteralTypeNode(mn<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-mn)):I.createNumericLiteral(mn))}if(Xe.flags&2048)return de.approximateLength+=Qv(Xe.value).length+1,I.createLiteralTypeNode(I.createBigIntLiteral(Xe.value));if(Xe.flags&512)return de.approximateLength+=Xe.intrinsicName.length,I.createLiteralTypeNode(Xe.intrinsicName==="true"?I.createTrue():I.createFalse());if(Xe.flags&8192){if(!(de.flags&1048576)){if(te(Xe.symbol,de.enclosingDeclaration))return de.approximateLength+=6,bs(Xe.symbol,de,111551);de.tracker.reportInaccessibleUniqueSymbolError&&de.tracker.reportInaccessibleUniqueSymbolError()}return de.approximateLength+=13,I.createTypeOperatorNode(158,I.createKeywordTypeNode(155))}if(Xe.flags&16384)return de.approximateLength+=4,I.createKeywordTypeNode(116);if(Xe.flags&32768)return de.approximateLength+=9,I.createKeywordTypeNode(157);if(Xe.flags&65536)return de.approximateLength+=4,I.createLiteralTypeNode(I.createNull());if(Xe.flags&131072)return de.approximateLength+=5,I.createKeywordTypeNode(146);if(Xe.flags&4096)return de.approximateLength+=6,I.createKeywordTypeNode(155);if(Xe.flags&67108864)return de.approximateLength+=6,I.createKeywordTypeNode(151);if(jE(Xe))return de.flags&4194304&&(!de.encounteredError&&!(de.flags&32768)&&(de.encounteredError=!0),(yr=(Xn=de.tracker).reportInaccessibleThisError)==null||yr.call(Xn)),de.approximateLength+=4,I.createThisTypeNode();if(!ni&&Xe.aliasSymbol&&(de.flags&16384||k(Xe.aliasSymbol,de.enclosingDeclaration))){let mn=F(Xe.aliasTypeArguments,de);return rv(Xe.aliasSymbol.escapedName)&&!(Xe.aliasSymbol.flags&32)?I.createTypeReferenceNode(I.createIdentifier(""),mn):bn(mn)===1&&Xe.aliasSymbol===Os.symbol?I.createArrayTypeNode(mn[0]):bs(Xe.aliasSymbol,de,788968,mn)}let Kr=Ir(Xe);if(Kr&4)return E.assert(!!(Xe.flags&524288)),Xe.node?Bt(Xe,xn):xn(Xe);if(Xe.flags&262144||Kr&3){if(Xe.flags&262144&&gs(de.inferTypeParameters,Xe)){de.approximateLength+=xc(Xe.symbol).length+6;let $r,bi=Nu(Xe);if(bi){let Ui=$Pe(Xe,!0);Ui&&Dh(bi,Ui)||(de.approximateLength+=9,$r=bi&&_(bi,de))}return I.createInferTypeNode(Ne(Xe,de,$r))}if(de.flags&4&&Xe.flags&262144&&!k(Xe.symbol,de.enclosingDeclaration)){let $r=ks(Xe,de);return de.approximateLength+=ur($r).length,I.createTypeReferenceNode(I.createIdentifier(ur($r)),void 0)}if(Xe.symbol)return bs(Xe.symbol,de,788968);let mn=(Xe===A||Xe===Pe)&&O&&O.symbol?(Xe===Pe?"sub-":"super-")+xc(O.symbol):"?";return I.createTypeReferenceNode(I.createIdentifier(mn),void 0)}if(Xe.flags&1048576&&Xe.origin&&(Xe=Xe.origin),Xe.flags&3145728){let mn=Xe.flags&1048576?E0(Xe.types):Xe.types;if(bn(mn)===1)return _(mn[0],de);let $r=F(mn,de,!0);if($r&&$r.length>0)return Xe.flags&1048576?I.createUnionTypeNode($r):I.createIntersectionTypeNode($r);!de.encounteredError&&!(de.flags&262144)&&(de.encounteredError=!0);return}if(Kr&48)return E.assert(!!(Xe.flags&524288)),qt(Xe);if(Xe.flags&4194304){let mn=Xe.type;de.approximateLength+=6;let $r=_(mn,de);return I.createTypeOperatorNode(143,$r)}if(Xe.flags&134217728){let mn=Xe.texts,$r=Xe.types,bi=I.createTemplateHead(mn[0]),Ui=I.createNodeArray(Kt($r,(ea,vl)=>I.createTemplateLiteralTypeSpan(_(ea,de),(vl<$r.length-1?I.createTemplateMiddle:I.createTemplateTail)(mn[vl+1]))));return de.approximateLength+=2,I.createTemplateLiteralType(bi,Ui)}if(Xe.flags&268435456){let mn=_(Xe.type,de);return bs(Xe.symbol,de,788968,[mn])}if(Xe.flags&8388608){let mn=_(Xe.objectType,de),$r=_(Xe.indexType,de);return de.approximateLength+=2,I.createIndexedAccessTypeNode(mn,$r)}if(Xe.flags&16777216)return Bt(Xe,mn=>di(mn));if(Xe.flags&33554432)return _(Xe.baseType,de);return E.fail("Should be unreachable.");function di(mn){let $r=_(mn.checkType,de);if(de.approximateLength+=15,de.flags&4&&mn.root.isDistributive&&!(mn.checkType.flags&262144)){let $o=gu(ja(262144,"T")),Vo=ks($o,de),yu=I.createTypeReferenceNode(Vo);de.approximateLength+=37;let Xo=ck(mn.root.checkType,$o,mn.mapper),$e=de.inferTypeParameters;de.inferTypeParameters=mn.root.inferTypeParameters;let pt=_(Vi(mn.root.extendsType,Xo),de);de.inferTypeParameters=$e;let Vt=Er(Vi(li(mn.root.node.trueType),Xo)),Nn=Er(Vi(li(mn.root.node.falseType),Xo));return I.createConditionalTypeNode($r,I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(yu.typeName))),I.createConditionalTypeNode(I.createTypeReferenceNode(I.cloneNode(Vo)),_(mn.checkType,de),I.createConditionalTypeNode(yu,pt,Vt,Nn),I.createKeywordTypeNode(146)),I.createKeywordTypeNode(146))}let bi=de.inferTypeParameters;de.inferTypeParameters=mn.root.inferTypeParameters;let Ui=_(mn.extendsType,de);de.inferTypeParameters=bi;let ea=Er(dv(mn)),vl=Er(mv(mn));return I.createConditionalTypeNode($r,Ui,ea,vl)}function Er(mn){var $r,bi,Ui;return mn.flags&1048576?($r=de.visitedTypes)!=null&&$r.has(Xu(mn))?(de.flags&131072||(de.encounteredError=!0,(Ui=(bi=de.tracker)==null?void 0:bi.reportCyclicStructureError)==null||Ui.call(bi)),h(de)):Bt(mn,ea=>_(ea,de)):_(mn,de)}function dr(mn){return!!SY(mn)}function et(mn){return!!mn.target&&dr(mn.target)&&!dr(mn)}function Ct(mn){var $r;E.assert(!!(mn.flags&524288));let bi=mn.declaration.readonlyToken?I.createToken(mn.declaration.readonlyToken.kind):void 0,Ui=mn.declaration.questionToken?I.createToken(mn.declaration.questionToken.kind):void 0,ea,vl,$o=!qN(mn)&&!(ek(mn).flags&2)&&de.flags&4&&!(Op(mn).flags&262144&&(($r=Nu(Op(mn)))==null?void 0:$r.flags)&4194304);if(qN(mn)){if(et(mn)&&de.flags&4){let Vt=gu(ja(262144,"T")),Nn=ks(Vt,de);vl=I.createTypeReferenceNode(Nn)}ea=I.createTypeOperatorNode(143,vl||_(ek(mn),de))}else if($o){let Vt=gu(ja(262144,"T")),Nn=ks(Vt,de);vl=I.createTypeReferenceNode(Nn),ea=vl}else ea=_(Op(mn),de);let Vo=Ne(Cd(mn),de,ea),yu=mn.declaration.nameType?_(P0(mn),de):void 0,Xo=_(Hy(kh(mn),!!(ng(mn)&4)),de),$e=I.createMappedTypeNode(bi,Vo,yu,Ui,Xo,void 0);de.approximateLength+=10;let pt=$n($e,1);if(et(mn)&&de.flags&4){let Vt=Vi(Nu(li(mn.declaration.typeParameter.constraint.type))||ln,mn.mapper);return I.createConditionalTypeNode(_(ek(mn),de),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(vl.typeName),Vt.flags&2?void 0:_(Vt,de))),pt,I.createKeywordTypeNode(146))}else if($o)return I.createConditionalTypeNode(_(Op(mn),de),I.createInferTypeNode(I.createTypeParameterDeclaration(void 0,I.cloneNode(vl.typeName),I.createTypeOperatorNode(143,_(ek(mn),de)))),pt,I.createKeywordTypeNode(146));return pt}function qt(mn){var $r,bi;let Ui=mn.id,ea=mn.symbol;if(ea){let $o=QT(mn)?788968:111551;if(dm(ea.valueDeclaration))return bs(ea,de,$o);if(ea.flags&32&&!FS(ea)&&!(ea.valueDeclaration&&ei(ea.valueDeclaration)&&de.flags&2048&&(!Zc(ea.valueDeclaration)||hr(ea,de.enclosingDeclaration,$o,!1).accessibility!==0))||ea.flags&896||vl())return bs(ea,de,$o);if(($r=de.visitedTypes)!=null&&$r.has(Ui)){let Vo=G6(mn);return Vo?bs(Vo,de,788968):h(de)}else return Bt(mn,Xt)}else{if(!!(Ir(mn)&8388608)){let Vo=mn;if(xC(Vo.node)){let yu=Ao(de,Vo.node);if(yu)return yu}return(bi=de.visitedTypes)!=null&&bi.has(Ui)?h(de):Bt(mn,Xt)}return Xt(mn)}function vl(){var $o;let Vo=!!(ea.flags&8192)&&ft(ea.declarations,Xo=>zs(Xo)),yu=!!(ea.flags&16)&&(ea.parent||Qt(ea.declarations,Xo=>Xo.parent.kind===312||Xo.parent.kind===268));if(Vo||yu)return(!!(de.flags&4096)||(($o=de.visitedTypes)==null?void 0:$o.has(Ui)))&&(!(de.flags&8)||te(ea,de.enclosingDeclaration))}}function Bt(mn,$r){var bi,Ui,ea;let vl=mn.id,$o=Ir(mn)&16&&mn.symbol&&mn.symbol.flags&32,Vo=Ir(mn)&4&&mn.node?"N"+Va(mn.node):mn.flags&16777216?"N"+Va(mn.root.node):mn.symbol?($o?"+":"")+ta(mn.symbol):void 0;de.visitedTypes||(de.visitedTypes=new Set),Vo&&!de.symbolDepth&&(de.symbolDepth=new Map);let yu=de.enclosingDeclaration&&Hr(de.enclosingDeclaration),Xo=`${Xu(mn)}|${de.flags}`;yu&&(yu.serializedTypes||(yu.serializedTypes=new Map));let $e=(bi=yu?.serializedTypes)==null?void 0:bi.get(Xo);if($e)return(Ui=$e.trackedSymbols)==null||Ui.forEach(([_i,fs,Hs])=>de.tracker.trackSymbol(_i,fs,Hs)),$e.truncating&&(de.truncating=!0),de.approximateLength+=$e.addedLength,cr($e.node);let pt;if(Vo){if(pt=de.symbolDepth.get(Vo)||0,pt>10)return h(de);de.symbolDepth.set(Vo,pt+1)}de.visitedTypes.add(vl);let Vt=de.trackedSymbols;de.trackedSymbols=void 0;let Nn=de.approximateLength,pr=$r(mn),an=de.approximateLength-Nn;return!de.reportedDiagnostic&&!de.encounteredError&&((ea=yu?.serializedTypes)==null||ea.set(Xo,{node:pr,truncating:de.truncating,addedLength:an,trackedSymbols:de.trackedSymbols})),de.visitedTypes.delete(vl),Vo&&de.symbolDepth.set(Vo,pt),de.trackedSymbols=Vt,pr;function cr(_i){return!Ro(_i)&&ls(_i)===_i?_i:nt(I.cloneNode(on(_i,cr,yd,ri)),_i)}function ri(_i,fs,Hs,Qs,si){return _i&&_i.length===0?nt(I.createNodeArray(void 0,_i.hasTrailingComma),_i):Dn(_i,fs,Hs,Qs,si)}}function Xt(mn){if(jf(mn)||mn.containsError)return Ct(mn);let $r=Ed(mn);if(!$r.properties.length&&!$r.indexInfos.length){if(!$r.callSignatures.length&&!$r.constructSignatures.length)return de.approximateLength+=2,$n(I.createTypeLiteralNode(void 0),1);if($r.callSignatures.length===1&&!$r.constructSignatures.length){let $o=$r.callSignatures[0];return le($o,184,de)}if($r.constructSignatures.length===1&&!$r.callSignatures.length){let $o=$r.constructSignatures[0];return le($o,185,de)}}let bi=Fr($r.constructSignatures,$o=>!!($o.flags&4));if(ft(bi)){let $o=Kt(bi,BS);return $r.callSignatures.length+($r.constructSignatures.length-bi.length)+$r.indexInfos.length+(de.flags&2048?Lh($r.properties,yu=>!(yu.flags&4194304)):bn($r.properties))&&$o.push(om($r)),_(ya($o),de)}let Ui=de.flags;de.flags|=4194304;let ea=Yi($r);de.flags=Ui;let vl=I.createTypeLiteralNode(ea);return de.approximateLength+=2,$n(vl,de.flags&1024?0:1),vl}function xn(mn){let $r=vo(mn);if(mn.target===Os||mn.target===Bs){if(de.flags&2){let ea=_($r[0],de);return I.createTypeReferenceNode(mn.target===Os?"Array":"ReadonlyArray",[ea])}let bi=_($r[0],de),Ui=I.createArrayTypeNode(bi);return mn.target===Os?Ui:I.createTypeOperatorNode(148,Ui)}else if(mn.target.objectFlags&8){if($r=sl($r,(bi,Ui)=>Hy(bi,!!(mn.target.elementFlags[Ui]&2))),$r.length>0){let bi=A0(mn),Ui=F($r.slice(0,bi),de);if(Ui){let{labeledElementDeclarations:ea}=mn.target;for(let $o=0;$o0){let yu=(mn.target.typeParameters||Ve).length;vl=F($r.slice(Ui,yu),de)}let $o=de.flags;de.flags|=16;let Vo=bs(mn.symbol,de,788968,vl);return de.flags=$o,ea?ui(ea,Vo):Vo}}}function ui(mn,$r){if(ch(mn)){let bi=mn.typeArguments,Ui=mn.qualifier;Ui&&(Ie(Ui)?bi!==M2(Ui)&&(Ui=e0(I.cloneNode(Ui),bi)):bi!==M2(Ui.right)&&(Ui=I.updateQualifiedName(Ui,Ui.left,e0(I.cloneNode(Ui.right),bi)))),bi=$r.typeArguments;let ea=Gr($r);for(let vl of ea)Ui=Ui?I.createQualifiedName(Ui,vl):vl;return I.updateImportTypeNode(mn,mn.argument,mn.attributes,Ui,bi,mn.isTypeOf)}else{let bi=mn.typeArguments,Ui=mn.typeName;Ie(Ui)?bi!==M2(Ui)&&(Ui=e0(I.cloneNode(Ui),bi)):bi!==M2(Ui.right)&&(Ui=I.updateQualifiedName(Ui,Ui.left,e0(I.cloneNode(Ui.right),bi))),bi=$r.typeArguments;let ea=Gr($r);for(let vl of ea)Ui=I.createQualifiedName(Ui,vl);return I.updateTypeReferenceNode(mn,Ui,bi)}}function Gr(mn){let $r=mn.typeName,bi=[];for(;!Ie($r);)bi.unshift($r.right),$r=$r.left;return bi.unshift($r),bi}function Yi(mn){if(l(de))return[I.createPropertySignature(void 0,"...",void 0,void 0)];let $r=[];for(let ea of mn.callSignatures)$r.push(le(ea,179,de));for(let ea of mn.constructSignatures)ea.flags&4||$r.push(le(ea,180,de));for(let ea of mn.indexInfos)$r.push(re(ea,de,mn.objectFlags&1024?h(de):void 0));let bi=mn.properties;if(!bi)return $r;let Ui=0;for(let ea of bi){if(Ui++,de.flags&2048){if(ea.flags&4194304)continue;Uf(ea)&6&&de.tracker.reportPrivateInBaseOfClassExpression&&de.tracker.reportPrivateInBaseOfClassExpression(Ci(ea.escapedName))}if(l(de)&&Ui+2!(xn.flags&32768)),0);for(let xn of Xt){let ui=le(xn,173,de,{name:Er,questionToken:dr});Xn.push(Bt(ui))}if(Xt.length||!dr)return}let et;T(Xe,de)?et=h(de):(ni&&(de.reverseMappedStack||(de.reverseMappedStack=[]),de.reverseMappedStack.push(Xe)),et=Kr?fl(de,Kr,Xe,di):I.createKeywordTypeNode(133),ni&&de.reverseMappedStack.pop());let Ct=Id(Xe)?[I.createToken(148)]:void 0;Ct&&(de.approximateLength+=9);let qt=I.createPropertySignature(Ct,Er,dr,et);Xn.push(Bt(qt));function Bt(Xt){var xn;let ui=(xn=Xe.declarations)==null?void 0:xn.find(Gr=>Gr.kind===355);if(ui){let Gr=FP(ui.comment);Gr&&v1(Xt,[{kind:3,text:`* - * `+Gr.replace(/\n/g,` - * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else Xe.valueDeclaration&&jc(Xt,Xe.valueDeclaration);return Xt}}function F(Xe,de,Xn){if(ft(Xe)){if(l(de))if(Xn){if(Xe.length>2)return[_(Xe[0],de),I.createTypeReferenceNode(`... ${Xe.length-2} more ...`,void 0),_(Xe[Xe.length-1],de)]}else return[I.createTypeReferenceNode("...",void 0)];let ni=!(de.flags&64)?mf():void 0,Kr=[],di=0;for(let Er of Xe){if(di++,l(de)&&di+2{if(!Nne(dr,([et],[Ct])=>U(et,Ct)))for(let[et,Ct]of dr)Kr[Ct]=_(et,de)}),de.flags=Er}return Kr}}function U(Xe,de){return Xe===de||!!Xe.symbol&&Xe.symbol===de.symbol||!!Xe.aliasSymbol&&Xe.aliasSymbol===de.aliasSymbol}function re(Xe,de,Xn){let yr=Zee(Xe)||"x",ni=_(Xe.keyType,de),Kr=I.createParameterDeclaration(void 0,void 0,yr,void 0,ni,void 0);return Xn||(Xn=_(Xe.type||G,de)),!Xe.type&&!(de.flags&2097152)&&(de.encounteredError=!0),de.approximateLength+=yr.length+4,I.createIndexSignature(Xe.isReadonly?[I.createToken(148)]:void 0,[Kr],Xn)}function le(Xe,de,Xn,yr){var ni;let Kr=Xn.flags&256;Kr&&(Xn.flags&=-257),Xn.approximateLength+=3;let di,Er;Xn.flags&32&&Xe.target&&Xe.mapper&&Xe.target.typeParameters?Er=Xe.target.typeParameters.map(Yi=>_(Vi(Yi,Xe.mapper),Xn)):di=Xe.typeParameters&&Xe.typeParameters.map(Yi=>st(Yi,Xn));let dr=kPe(Xe,!0)[0],et;if(Xn.enclosingDeclaration&&Xe.declaration&&Xe.declaration!==Xn.enclosingDeclaration&&!Qn(Xe.declaration)&&ft(dr)){let Yi=Hr(Xn.enclosingDeclaration).fakeScopeForSignatureDeclaration?Xn.enclosingDeclaration:void 0;E.assertOptionalNode(Yi,Ds);let mn=Yi?.locals??Gs(),$r;for(let bi of dr)mn.has(bi.escapedName)||($r=_n($r,bi.escapedName),mn.set(bi.escapedName,bi));if($r){let bi=function(){Qt($r,Ui=>mn.delete(Ui))};var Ct=bi;if(Yi)et=bi;else{let Ui=Jm.createBlock(Ve);Hr(Ui).fakeScopeForSignatureDeclaration=!0,Ui.locals=mn;let ea=Xn.enclosingDeclaration;Ta(Ui,ea),Xn.enclosingDeclaration=Ui,et=()=>{Xn.enclosingDeclaration=ea,bi()}}}}let qt=(ft(dr,Yi=>Yi!==dr[dr.length-1]&&!!(lc(Yi)&32768))?Xe.parameters:dr).map(Yi=>Yt(Yi,Xn,de===176,yr?.privateSymbolVisitor,yr?.bundledImports)),Bt=Xn.flags&33554432?void 0:Te(Xe,Xn);Bt&&qt.unshift(Bt);let Xt,xn=sp(Xe);if(xn){let Yi=xn.kind===2||xn.kind===3?I.createToken(131):void 0,mn=xn.kind===1||xn.kind===3?$n(I.createIdentifier(xn.parameterName),16777216):I.createThisTypeNode(),$r=xn.type&&_(xn.type,Xn);Xt=I.createTypePredicateNode(Yi,mn,$r)}else{let Yi=Ua(Xe);Yi&&!(Kr&&Ae(Yi))?Xt=Dl(Xn,Yi,Xe,yr?.privateSymbolVisitor,yr?.bundledImports):Kr||(Xt=I.createKeywordTypeNode(133))}let ui=yr?.modifiers;if(de===185&&Xe.flags&4){let Yi=Vd(ui);ui=I.createModifiersFromModifierFlags(Yi|64)}let Gr=de===179?I.createCallSignature(di,qt,Xt):de===180?I.createConstructSignature(di,qt,Xt):de===173?I.createMethodSignature(ui,yr?.name??I.createIdentifier(""),yr?.questionToken,di,qt,Xt):de===174?I.createMethodDeclaration(ui,void 0,yr?.name??I.createIdentifier(""),void 0,di,qt,Xt,void 0):de===176?I.createConstructorDeclaration(ui,qt,void 0):de===177?I.createGetAccessorDeclaration(ui,yr?.name??I.createIdentifier(""),qt,Xt,void 0):de===178?I.createSetAccessorDeclaration(ui,yr?.name??I.createIdentifier(""),qt,void 0):de===181?I.createIndexSignature(ui,qt,Xt):de===324?I.createJSDocFunctionType(qt,Xt):de===184?I.createFunctionTypeNode(di,qt,Xt??I.createTypeReferenceNode(I.createIdentifier(""))):de===185?I.createConstructorTypeNode(ui,di,qt,Xt??I.createTypeReferenceNode(I.createIdentifier(""))):de===262?I.createFunctionDeclaration(ui,void 0,yr?.name?Vs(yr.name,Ie):I.createIdentifier(""),di,qt,Xt,void 0):de===218?I.createFunctionExpression(ui,void 0,yr?.name?Vs(yr.name,Ie):I.createIdentifier(""),di,qt,Xt,I.createBlock([])):de===219?I.createArrowFunction(ui,di,qt,Xt,void 0,I.createBlock([])):E.assertNever(de);if(Er&&(Gr.typeArguments=I.createNodeArray(Er)),((ni=Xe.declaration)==null?void 0:ni.kind)===330&&Xe.declaration.parent.kind===346){let Yi=Qc(Xe.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(mn=>mn.replace(/^\s+/," ")).join(` -`);UE(Gr,3,Yi,!0)}return et?.(),Gr}function Te(Xe,de){if(Xe.thisParameter)return Yt(Xe.thisParameter,de);if(Xe.declaration&&Qn(Xe.declaration)){let Xn=k7(Xe.declaration);if(Xn&&Xn.typeExpression)return I.createParameterDeclaration(void 0,void 0,"this",void 0,_(li(Xn.typeExpression),de))}}function Ne(Xe,de,Xn){let yr=de.flags;de.flags&=-513;let ni=I.createModifiersFromModifierFlags(nme(Xe)),Kr=ks(Xe,de),di=jS(Xe),Er=di&&_(di,de);return de.flags=yr,I.createTypeParameterDeclaration(ni,Kr,Xn,Er)}function st(Xe,de,Xn=Nu(Xe)){let yr=Xn&&_(Xn,de);return Ne(Xe,de,yr)}function Et(Xe){let de=Zo(Xe,169);if(de)return de;if(!wm(Xe))return Zo(Xe,348)}function Yt(Xe,de,Xn,yr,ni){let Kr=Et(Xe),di=Vn(Xe);Kr&&c7e(Kr)&&(di=qy(di));let Er=fl(de,di,Xe,de.enclosingDeclaration,yr,ni),dr=!(de.flags&8192)&&Xn&&Kr&&Yp(Kr)?Kt(Pv(Kr),I.cloneNode):void 0,Ct=Kr&&fg(Kr)||lc(Xe)&32768?I.createToken(26):void 0,qt=pn(Xe,Kr,de),Xt=Kr&&$N(Kr)||lc(Xe)&16384?I.createToken(58):void 0,xn=I.createParameterDeclaration(dr,Ct,qt,Xt,Er,void 0);return de.approximateLength+=xc(Xe).length+3,xn}function pn(Xe,de,Xn){return de&&de.name?de.name.kind===80?$n(I.cloneNode(de.name),16777216):de.name.kind===166?$n(I.cloneNode(de.name.right),16777216):yr(de.name):xc(Xe);function yr(ni){return Kr(ni);function Kr(di){Xn.tracker.canTrackSymbol&&Na(di)&&Gpe(di)&&tr(di.expression,Xn.enclosingDeclaration,Xn);let Er=on(di,Kr,yd,void 0,Kr);return Ma(Er)&&(Er=I.updateBindingElement(Er,Er.dotDotDotToken,Er.propertyName,Er.name,void 0)),Ro(Er)||(Er=I.cloneNode(Er)),$n(Er,16777217)}}}function tr(Xe,de,Xn){if(!Xn.tracker.canTrackSymbol)return;let yr=tf(Xe),ni=bc(yr,yr.escapedText,1160127,void 0,void 0,!0);ni&&Xn.tracker.trackSymbol(ni,de,111551)}function yn(Xe,de,Xn,yr){return de.tracker.trackSymbol(Xe,de.enclosingDeclaration,Xn),Ut(Xe,de,Xn,yr)}function Ut(Xe,de,Xn,yr){let ni;return!(Xe.flags&262144)&&(de.enclosingDeclaration||de.flags&64)&&!(de.flags&134217728)?(ni=E.checkDefined(di(Xe,Xn,!0)),E.assert(ni&&ni.length>0)):ni=[Xe],ni;function di(Er,dr,et){let Ct=iv(Er,de.enclosingDeclaration,dr,!!(de.flags&128)),qt;if(!Ct||H6(Ct[0],de.enclosingDeclaration,Ct.length===1?dr:Jg(dr))){let Xt=W6(Ct?Ct[0]:Er,de.enclosingDeclaration,dr);if(bn(Xt)){qt=Xt.map(Gr=>ft(Gr.declarations,Ls)?vn(Gr,de):void 0);let xn=Xt.map((Gr,Yi)=>Yi);xn.sort(Bt);let ui=xn.map(Gr=>Xt[Gr]);for(let Gr of ui){let Yi=di(Gr,Jg(dr),!1);if(Yi){if(Gr.exports&&Gr.exports.get("export=")&&Lf(Gr.exports.get("export="),Er)){Ct=Yi;break}Ct=Yi.concat(Ct||[Cy(Gr,Er)||Er]);break}}}}if(Ct)return Ct;if(et||!(Er.flags&6144))return!et&&!yr&&Qt(Er.declarations,Ls)?void 0:[Er];function Bt(Xt,xn){let ui=qt[Xt],Gr=qt[xn];if(ui&&Gr){let Yi=Q_(Gr);return Q_(ui)===Yi?VO(ui)-VO(Gr):Yi?-1:1}return 0}}}function On(Xe,de){let Xn;return h4(Xe).flags&524384&&(Xn=I.createNodeArray(Kt(un(Xe),ni=>st(ni,de)))),Xn}function kn(Xe,de,Xn){var yr;E.assert(Xe&&0<=de&&deVy(Ct,dr.links.mapper)),Xn)}else di=On(ni,Xn)}return di}function wn(Xe){return $x(Xe.objectType)?wn(Xe.objectType):Xe}function vn(Xe,de,Xn){let yr=Zo(Xe,312);if(!yr){let et=ba(Xe.declarations,Ct=>jb(Ct,Xe));et&&(yr=Zo(et,312))}if(yr&&yr.moduleName!==void 0)return yr.moduleName;if(!yr){if(de.tracker.trackReferencedAmbientModule){let et=Fr(Xe.declarations,lu);if(bn(et))for(let Ct of et)de.tracker.trackReferencedAmbientModule(Ct,Xe)}if(mU.test(Xe.escapedName))return Xe.escapedName.substring(1,Xe.escapedName.length-1)}if(!de.enclosingDeclaration||!de.tracker.moduleResolverHost)return mU.test(Xe.escapedName)?Xe.escapedName.substring(1,Xe.escapedName.length-1):Mn(qJ(Xe)).fileName;let ni=Mn(cc(de.enclosingDeclaration)),Kr=Xn||ni?.impliedNodeFormat,di=g3(ni.path,Kr),Er=Ti(Xe),dr=Er.specifierCache&&Er.specifierCache.get(di);if(!dr){let et=!!lo(J),{moduleResolverHost:Ct}=de.tracker,qt=et?{...J,baseUrl:Ct.getCommonSourceDirectory()}:J;dr=Da(kbe(Xe,zt,qt,ni,Ct,{importModuleSpecifierPreference:et?"non-relative":"project-relative",importModuleSpecifierEnding:et?"minimal":Kr===99?"js":void 0},{overrideImportMode:Xn})),Er.specifierCache??(Er.specifierCache=new Map),Er.specifierCache.set(di,dr)}return dr}function lr(Xe){let de=I.createIdentifier(Ci(Xe.escapedName));return Xe.parent?I.createQualifiedName(lr(Xe.parent),de):de}function bs(Xe,de,Xn,yr){let ni=yn(Xe,de,Xn,!(de.flags&16384)),Kr=Xn===111551;if(ft(ni[0].declarations,Ls)){let dr=ni.length>1?Er(ni,ni.length-1,1):void 0,et=yr||kn(ni,0,de),Ct=Mn(cc(de.enclosingDeclaration)),qt=W7(ni[0]),Bt,Xt;if((Yl(J)===3||Yl(J)===99)&&qt?.impliedNodeFormat===99&&qt.impliedNodeFormat!==Ct?.impliedNodeFormat&&(Bt=vn(ni[0],de,99),Xt=I.createImportAttributes(I.createNodeArray([I.createImportAttribute(I.createStringLiteral("resolution-mode"),I.createStringLiteral("import"))]))),Bt||(Bt=vn(ni[0],de)),!(de.flags&67108864)&&Yl(J)!==1&&Bt.includes("/node_modules/")){let ui=Bt;if(Yl(J)===3||Yl(J)===99){let Gr=Ct?.impliedNodeFormat===99?1:99;Bt=vn(ni[0],de,Gr),Bt.includes("/node_modules/")?Bt=ui:Xt=I.createImportAttributes(I.createNodeArray([I.createImportAttribute(I.createStringLiteral("resolution-mode"),I.createStringLiteral(Gr===99?"import":"require"))]))}Xt||(de.encounteredError=!0,de.tracker.reportLikelyUnsafeImportRequiredError&&de.tracker.reportLikelyUnsafeImportRequiredError(ui))}let xn=I.createLiteralTypeNode(I.createStringLiteral(Bt));if(de.tracker.trackExternalModuleSymbolOfImportTypeNode&&de.tracker.trackExternalModuleSymbolOfImportTypeNode(ni[0]),de.approximateLength+=Bt.length+10,!dr||Y_(dr)){if(dr){let ui=Ie(dr)?dr:dr.right;e0(ui,void 0)}return I.createImportTypeNode(xn,Xt,dr,et,Kr)}else{let ui=wn(dr),Gr=ui.objectType.typeName;return I.createIndexedAccessTypeNode(I.createImportTypeNode(xn,Xt,Gr,et,Kr),ui.indexType)}}let di=Er(ni,ni.length-1,0);if($x(di))return di;if(Kr)return I.createTypeQueryNode(di);{let dr=Ie(di)?di:di.right,et=M2(dr);return e0(dr,void 0),I.createTypeReferenceNode(di,et)}function Er(dr,et,Ct){let qt=et===dr.length-1?yr:kn(dr,et,de),Bt=dr[et],Xt=dr[et-1],xn;if(et===0)de.flags|=16777216,xn=Zm(Bt,de),de.approximateLength+=(xn?xn.length:0)+1,de.flags^=16777216;else if(Xt&&q_(Xt)){let Gr=q_(Xt);$l(Gr,(Yi,mn)=>{if(Lf(Yi,Bt)&&!WN(mn)&&mn!=="export=")return xn=Ci(mn),!0})}if(xn===void 0){let Gr=ba(Bt.declarations,us);if(Gr&&Na(Gr)&&Y_(Gr.expression)){let Yi=Er(dr,et-1,Ct);return Y_(Yi)?I.createIndexedAccessTypeNode(I.createParenthesizedType(I.createTypeQueryNode(Yi)),I.createTypeQueryNode(Gr.expression)):Yi}xn=Zm(Bt,de)}if(de.approximateLength+=xn.length+1,!(de.flags&16)&&Xt&&Ly(Xt)&&Ly(Xt).get(Bt.escapedName)&&Lf(Ly(Xt).get(Bt.escapedName),Bt)){let Gr=Er(dr,et-1,Ct);return $x(Gr)?I.createIndexedAccessTypeNode(Gr,I.createLiteralTypeNode(I.createStringLiteral(xn))):I.createIndexedAccessTypeNode(I.createTypeReferenceNode(Gr,qt),I.createLiteralTypeNode(I.createStringLiteral(xn)))}let ui=$n(I.createIdentifier(xn),16777216);if(qt&&e0(ui,I.createNodeArray(qt)),ui.symbol=Bt,et>Ct){let Gr=Er(dr,et-1,Ct);return Y_(Gr)?I.createQualifiedName(Gr,ui):E.fail("Impossible construct - an export of an indexed access cannot be reachable")}return ui}}function ws(Xe,de,Xn){let yr=bc(de.enclosingDeclaration,Xe,788968,void 0,Xe,!1);return yr?!(yr.flags&262144&&yr===Xn.symbol):!1}function ks(Xe,de){var Xn,yr;if(de.flags&4&&de.typeParameterNames){let Kr=de.typeParameterNames.get(Xu(Xe));if(Kr)return Kr}let ni=Xi(Xe.symbol,de,788968,!0);if(!(ni.kind&80))return I.createIdentifier("(Missing type parameter)");if(de.flags&4){let Kr=ni.escapedText,di=((Xn=de.typeParameterNamesByTextNextNameCount)==null?void 0:Xn.get(Kr))||0,Er=Kr;for(;(yr=de.typeParameterNamesByText)!=null&&yr.has(Er)||ws(Er,de,Xe);)di++,Er=`${Kr}_${di}`;if(Er!==Kr){let dr=M2(ni);ni=I.createIdentifier(Er),e0(ni,dr)}(de.typeParameterNamesByTextNextNameCount||(de.typeParameterNamesByTextNextNameCount=new Map)).set(Kr,di),(de.typeParameterNames||(de.typeParameterNames=new Map)).set(Xu(Xe),ni),(de.typeParameterNamesByText||(de.typeParameterNamesByText=new Set)).add(Kr)}return ni}function Xi(Xe,de,Xn,yr){let ni=yn(Xe,de,Xn);return yr&&ni.length!==1&&!de.encounteredError&&!(de.flags&65536)&&(de.encounteredError=!0),Kr(ni,ni.length-1);function Kr(di,Er){let dr=kn(di,Er,de),et=di[Er];Er===0&&(de.flags|=16777216);let Ct=Zm(et,de);Er===0&&(de.flags^=16777216);let qt=$n(I.createIdentifier(Ct),16777216);return dr&&e0(qt,I.createNodeArray(dr)),qt.symbol=et,Er>0?I.createQualifiedName(Kr(di,Er-1),qt):qt}}function Iu(Xe,de,Xn){let yr=yn(Xe,de,Xn);return ni(yr,yr.length-1);function ni(Kr,di){let Er=kn(Kr,di,de),dr=Kr[di];di===0&&(de.flags|=16777216);let et=Zm(dr,de);di===0&&(de.flags^=16777216);let Ct=et.charCodeAt(0);if(cw(Ct)&&ft(dr.declarations,Ls))return I.createStringLiteral(vn(dr,de));if(di===0||_V(et,ie)){let qt=$n(I.createIdentifier(et),16777216);return Er&&e0(qt,I.createNodeArray(Er)),qt.symbol=dr,di>0?I.createPropertyAccessExpression(ni(Kr,di-1),qt):qt}else{Ct===91&&(et=et.substring(1,et.length-1),Ct=et.charCodeAt(0));let qt;if(cw(Ct)&&!(dr.flags&8)?qt=I.createStringLiteral(hp(et).replace(/\\./g,Bt=>Bt.substring(1)),Ct===39):""+ +et===et&&(qt=I.createNumericLiteral(+et)),!qt){let Bt=$n(I.createIdentifier(et),16777216);Er&&e0(Bt,I.createNodeArray(Er)),Bt.symbol=dr,qt=Bt}return I.createElementAccessExpression(ni(Kr,di-1),qt)}}}function Jf(Xe){let de=us(Xe);return de?Na(de)?!!($i(de.expression).flags&402653316):ko(de)?!!($i(de.argumentExpression).flags&402653316):ca(de):!1}function dn(Xe){let de=us(Xe);return!!(de&&ca(de)&&(de.singleQuote||!Ro(de)&&ts(Qc(de,!1),"'")))}function zn(Xe,de){let Xn=!!bn(Xe.declarations)&&hi(Xe.declarations,Jf),yr=!!bn(Xe.declarations)&&hi(Xe.declarations,dn),ni=!!(Xe.flags&8192),Kr=ki(Xe,de,yr,Xn,ni);if(Kr)return Kr;let di=Ci(Xe.escapedName);return aF(di,La(J),yr,Xn,ni)}function ki(Xe,de,Xn,yr,ni){let Kr=Ti(Xe).nameType;if(Kr){if(Kr.flags&384){let di=""+Kr.value;return!hf(di,La(J))&&(yr||!Sg(di))?I.createStringLiteral(di,!!Xn):Sg(di)&&ts(di,"-")?I.createComputedPropertyName(I.createNumericLiteral(+di)):aF(di,La(J),Xn,yr,ni)}if(Kr.flags&8192)return I.createComputedPropertyName(Iu(Kr.symbol,de,111551))}}function Ns(Xe){let de={...Xe};return de.typeParameterNames&&(de.typeParameterNames=new Map(de.typeParameterNames)),de.typeParameterNamesByText&&(de.typeParameterNamesByText=new Set(de.typeParameterNamesByText)),de.typeParameterSymbolList&&(de.typeParameterSymbolList=new Set(de.typeParameterSymbolList)),de.tracker=new hU(de,de.tracker.inner,de.tracker.moduleResolverHost),de}function qn(Xe,de){return Xe.declarations&&xr(Xe.declarations,Xn=>!!Xl(Xn)&&(!de||!!Fn(Xn,yr=>yr===de)))}function wa(Xe,de){return!(Ir(de)&4)||!Tp(Xe)||bn(Xe.typeArguments)>=rg(de.target.typeParameters)}function po(Xe){return Hr(Xe).fakeScopeForSignatureDeclaration?Xe.parent:Xe}function fl(Xe,de,Xn,yr,ni,Kr){if(!tt(de)&&yr){let dr=qn(Xn,po(yr));if(dr&&!To(dr)&&!Sf(dr)){let et=Xl(dr);if(qa(et,dr,de)&&wa(et,de)){let Ct=Ao(Xe,et,ni,Kr);if(Ct)return Ct}}}let di=Xe.flags;de.flags&8192&&de.symbol===Xn&&(!Xe.enclosingDeclaration||ft(Xn.declarations,dr=>Mn(dr)===Mn(Xe.enclosingDeclaration)))&&(Xe.flags|=1048576);let Er=_(de,Xe);return Xe.flags=di,Er}function qa(Xe,de,Xn){let yr=li(Xe);return yr===Xn?!0:ms(de)&&de.questionToken?jp(Xn,524288)===yr:!1}function Dl(Xe,de,Xn,yr,ni){if(!tt(de)&&Xe.enclosingDeclaration){let Kr=Xn.declaration&&yp(Xn.declaration),di=po(Xe.enclosingDeclaration);if(Fn(Kr,Er=>Er===di)&&Kr){let Er=li(Kr);if((Er.flags&262144&&Er.isThisType?Vi(Er,Xn.mapper):Er)===de&&wa(Kr,de)){let et=Ao(Xe,Kr,yr,ni);if(et)return et}}}return _(de,Xe)}function Lc(Xe,de,Xn){let yr=!1,ni=tf(Xe);if(Qn(Xe)&&(k2(ni)||gg(ni.parent)||k_(ni.parent)&&lz(ni.parent.left)&&k2(ni.parent.right)))return yr=!0,{introducesError:yr,node:Xe};let Kr=yo(ni,67108863,!0,!0);if(Kr&&(hr(Kr,de.enclosingDeclaration,67108863,!1).accessibility!==0?yr=!0:(de.tracker.trackSymbol(Kr,de.enclosingDeclaration,67108863),Xn?.(Kr)),Ie(Xe))){let di=wo(Kr),Er=Kr.flags&262144&&!k(di.symbol,de.enclosingDeclaration)?ks(di,de):I.cloneNode(Xe);return Er.symbol=Kr,{introducesError:yr,node:$n(or(Er,Xe),16777216)}}return{introducesError:yr,node:Xe}}function Ao(Xe,de,Xn,yr){i&&i.throwIfCancellationRequested&&i.throwIfCancellationRequested();let ni=!1,Kr=Mn(de),di=Ge(de,Er,Ei);if(ni)return;return di===de?nt(I.cloneNode(de),de):di;function Er(dr){if(Nre(dr)||dr.kind===326)return I.createKeywordTypeNode(133);if(Ire(dr))return I.createKeywordTypeNode(159);if(wC(dr))return I.createUnionTypeNode([Ge(dr.type,Er,Ei),I.createLiteralTypeNode(I.createNull())]);if(tW(dr))return I.createUnionTypeNode([Ge(dr.type,Er,Ei),I.createKeywordTypeNode(157)]);if(aO(dr))return Ge(dr.type,Er);if(oO(dr))return I.createArrayTypeNode(Ge(dr.type,Er,Ei));if(eT(dr))return I.createTypeLiteralNode(Kt(dr.jsDocPropertyTags,Bt=>{let Xt=Ie(Bt.name)?Bt.name:Bt.name.right,xn=q(li(dr),Xt.escapedText),ui=xn&&Bt.typeExpression&&li(Bt.typeExpression.type)!==xn?_(xn,Xe):void 0;return I.createPropertySignature(void 0,Xt,Bt.isBracketed||Bt.typeExpression&&tW(Bt.typeExpression.type)?I.createToken(58):void 0,ui||Bt.typeExpression&&Ge(Bt.typeExpression.type,Er,Ei)||I.createKeywordTypeNode(133))}));if(Tp(dr)&&Ie(dr.typeName)&&dr.typeName.escapedText==="")return or(I.createKeywordTypeNode(133),dr);if((t0(dr)||Tp(dr))&&f5(dr))return I.createTypeLiteralNode([I.createIndexSignature(void 0,[I.createParameterDeclaration(void 0,void 0,"x",void 0,Ge(dr.typeArguments[0],Er,Ei))],Ge(dr.typeArguments[1],Er,Ei))]);if(AC(dr))if(Zk(dr)){let Bt;return I.createConstructorTypeNode(void 0,Dn(dr.typeParameters,Er,Ko),Ri(dr.parameters,(Xt,xn)=>Xt.name&&Ie(Xt.name)&&Xt.name.escapedText==="new"?(Bt=Xt.type,void 0):I.createParameterDeclaration(void 0,et(Xt),Ct(Xt,xn),Xt.questionToken,Ge(Xt.type,Er,Ei),void 0)),Ge(Bt||dr.type,Er,Ei)||I.createKeywordTypeNode(133))}else return I.createFunctionTypeNode(Dn(dr.typeParameters,Er,Ko),Kt(dr.parameters,(Bt,Xt)=>I.createParameterDeclaration(void 0,et(Bt),Ct(Bt,Xt),Bt.questionToken,Ge(Bt.type,Er,Ei),void 0)),Ge(dr.type,Er,Ei)||I.createKeywordTypeNode(133));if(Tp(dr)&&ow(dr)&&(!wa(dr,li(dr))||nwe(dr)||gt===a4(dr,788968,!0)))return or(_(li(dr),Xe),dr);if(K0(dr)){let Bt=Hr(dr).resolvedSymbol;return ow(dr)&&Bt&&(!dr.isTypeOf&&!(Bt.flags&788968)||!(bn(dr.typeArguments)>=rg(un(Bt))))?or(_(li(dr),Xe),dr):I.updateImportTypeNode(dr,I.updateLiteralTypeNode(dr.argument,qt(dr,dr.argument.literal)),dr.attributes,dr.qualifier,Dn(dr.typeArguments,Er,Ei),dr.isTypeOf)}if(Y_(dr)||gc(dr)){let{introducesError:Bt,node:Xt}=Lc(dr,Xe,Xn);if(ni=ni||Bt,Xt!==dr)return Xt}return Kr&&TC(dr)&&Ka(Kr,dr.pos).line===Ka(Kr,dr.end).line&&$n(dr,1),on(dr,Er,yd);function et(Bt){return Bt.dotDotDotToken||(Bt.type&&oO(Bt.type)?I.createToken(26):void 0)}function Ct(Bt,Xt){return Bt.name&&Ie(Bt.name)&&Bt.name.escapedText==="this"?"this":et(Bt)?"args":`arg${Xt}`}function qt(Bt,Xt){if(yr){if(Xe.tracker&&Xe.tracker.moduleResolverHost){let xn=lhe(Bt);if(xn){let Gr={getCanonicalFileName:cu(!!e.useCaseSensitiveFileNames),getCurrentDirectory:()=>Xe.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>Xe.tracker.moduleResolverHost.getCommonSourceDirectory()},Yi=E5(Gr,xn);return I.createStringLiteral(Yi)}}}else if(Xe.tracker&&Xe.tracker.trackExternalModuleSymbolOfImportTypeNode){let xn=jg(Xt,Xt,void 0);xn&&Xe.tracker.trackExternalModuleSymbolOfImportTypeNode(xn)}return Xt}}}function pf(Xe,de,Xn){var yr;let ni=Ll(I.createPropertyDeclaration,174,!0),Kr=Ll((bt,Sr,Yr,Wr)=>I.createPropertySignature(bt,Sr,Yr,Wr),173,!1),di=de.enclosingDeclaration,Er=[],dr=new Set,et=[],Ct=de;de={...Ct,usedSymbolNames:new Set(Ct.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((yr=Ct.remappedSymbolReferences)==null?void 0:yr.entries()),tracker:void 0};let qt={...Ct.tracker.inner,trackSymbol:(bt,Sr,Yr)=>{var Wr,Zr;if((Wr=de.remappedSymbolNames)!=null&&Wr.has(ta(bt)))return!1;if(hr(bt,Sr,Yr,!1).accessibility===0){let Us=Ut(bt,de,Yr);if(!(bt.flags&4)){let Ss=Us[0],aa=Mn(Ct.enclosingDeclaration);ft(Ss.declarations,Ga=>Mn(Ga)===aa)&&Vo(Ss)}}else if((Zr=Ct.tracker.inner)!=null&&Zr.trackSymbol)return Ct.tracker.inner.trackSymbol(bt,Sr,Yr);return!1}};de.tracker=new hU(de,qt,Ct.tracker.moduleResolverHost),$l(Xe,(bt,Sr)=>{let Yr=Ci(Sr);$_(bt,Yr)});let Bt=!Xn,Xt=Xe.get("export=");return Xt&&Xe.size>1&&Xt.flags&2097152&&(Xe=Gs(),Xe.set("export=",Xt)),ea(Xe),$r(Er);function xn(bt){return!!bt&&bt.kind===80}function ui(bt){return uc(bt)?Fr(Kt(bt.declarationList.declarations,us),xn):Fr([us(bt)],xn)}function Gr(bt){let Sr=xr(bt,hc),Yr=Qo(bt,Pc),Wr=Yr!==-1?bt[Yr]:void 0;if(Wr&&Sr&&Sr.isExportEquals&&Ie(Sr.expression)&&Ie(Wr.name)&&ur(Wr.name)===ur(Sr.expression)&&Wr.body&&Hd(Wr.body)){let Zr=Fr(bt,Ss=>!!(Ju(Ss)&32)),Ha=Wr.name,Us=Wr.body;if(bn(Zr)&&(Wr=I.updateModuleDeclaration(Wr,Wr.modifiers,Wr.name,Us=I.updateModuleBlock(Us,I.createNodeArray([...Wr.body.statements,I.createExportDeclaration(void 0,!1,I.createNamedExports(Kt(oa(Zr,Ss=>ui(Ss)),Ss=>I.createExportSpecifier(!1,void 0,Ss))),void 0)]))),bt=[...bt.slice(0,Yr),Wr,...bt.slice(Yr+1)]),!xr(bt,Ss=>Ss!==Wr&&AP(Ss,Ha))){Er=[];let Ss=!ft(Us.statements,aa=>Mr(aa,32)||hc(aa)||Kc(aa));Qt(Us.statements,aa=>{Xo(aa,Ss?32:0)}),bt=[...Fr(bt,aa=>aa!==Wr&&aa!==Sr),...Er]}}return bt}function Yi(bt){let Sr=Fr(bt,Wr=>Kc(Wr)&&!Wr.moduleSpecifier&&!!Wr.exportClause&&kp(Wr.exportClause));bn(Sr)>1&&(bt=[...Fr(bt,Zr=>!Kc(Zr)||!!Zr.moduleSpecifier||!Zr.exportClause),I.createExportDeclaration(void 0,!1,I.createNamedExports(oa(Sr,Zr=>Vs(Zr.exportClause,kp).elements)),void 0)]);let Yr=Fr(bt,Wr=>Kc(Wr)&&!!Wr.moduleSpecifier&&!!Wr.exportClause&&kp(Wr.exportClause));if(bn(Yr)>1){let Wr=E4(Yr,Zr=>ca(Zr.moduleSpecifier)?">"+Zr.moduleSpecifier.text:">");if(Wr.length!==Yr.length)for(let Zr of Wr)Zr.length>1&&(bt=[...Fr(bt,Ha=>!Zr.includes(Ha)),I.createExportDeclaration(void 0,!1,I.createNamedExports(oa(Zr,Ha=>Vs(Ha.exportClause,kp).elements)),Zr[0].moduleSpecifier)])}return bt}function mn(bt){let Sr=Qo(bt,Yr=>Kc(Yr)&&!Yr.moduleSpecifier&&!Yr.attributes&&!!Yr.exportClause&&kp(Yr.exportClause));if(Sr>=0){let Yr=bt[Sr],Wr=Ri(Yr.exportClause.elements,Zr=>{if(!Zr.propertyName){let Ha=nP(bt),Us=Fr(Ha,Ss=>AP(bt[Ss],Zr.name));if(bn(Us)&&hi(Us,Ss=>Xw(bt[Ss]))){for(let Ss of Us)bt[Ss]=bi(bt[Ss]);return}}return Zr});bn(Wr)?bt[Sr]=I.updateExportDeclaration(Yr,Yr.modifiers,Yr.isTypeOnly,I.updateNamedExports(Yr.exportClause,Wr),Yr.moduleSpecifier,Yr.attributes):Ky(bt,Sr)}return bt}function $r(bt){return bt=Gr(bt),bt=Yi(bt),bt=mn(bt),di&&(Li(di)&&K_(di)||Pc(di))&&(!ft(bt,zP)||!Cee(bt)&&ft(bt,F7))&&bt.push(T8(I)),bt}function bi(bt){let Sr=(Ju(bt)|32)&-129;return I.replaceModifiers(bt,Sr)}function Ui(bt){let Sr=Ju(bt)&-33;return I.replaceModifiers(bt,Sr)}function ea(bt,Sr,Yr){Sr||et.push(new Map),bt.forEach(Wr=>{vl(Wr,!1,!!Yr)}),Sr||(et[et.length-1].forEach(Wr=>{vl(Wr,!0,!!Yr)}),et.pop())}function vl(bt,Sr,Yr){let Wr=Ba(bt);if(dr.has(ta(Wr)))return;if(dr.add(ta(Wr)),!Sr||bn(bt.declarations)&&ft(bt.declarations,Ha=>!!Fn(Ha,Us=>Us===di))){let Ha=de;de=Ns(de),$o(bt,Sr,Yr),de.reportedDiagnostic&&(Ct.reportedDiagnostic=de.reportedDiagnostic),de.trackedSymbols&&(Ha.trackedSymbols?E.assert(de.trackedSymbols===Ha.trackedSymbols):Ha.trackedSymbols=de.trackedSymbols),de=Ha}}function $o(bt,Sr,Yr,Wr=bt.escapedName){var Zr,Ha,Us,Ss,aa,Ga;let go=Ci(Wr),l_=Wr==="default";if(Sr&&!(de.flags&131072)&&Cx(go)&&!l_){de.encounteredError=!0;return}let vu=l_&&!!(bt.flags&-113||bt.flags&16&&bn(Qa(Vn(bt))))&&!(bt.flags&2097152),bu=!vu&&!Sr&&Cx(go)&&!l_;(vu||bu)&&(Sr=!0);let Wo=(Sr?0:32)|(l_&&!vu?2048:0),au=bt.flags&1536&&bt.flags&7&&Wr!=="export=",$g=au&&za(Vn(bt),bt);if((bt.flags&8208||$g)&&cr(Vn(bt),bt,$_(bt,go),Wo),bt.flags&524288&&$e(bt,go,Wo),bt.flags&98311&&Wr!=="export="&&!(bt.flags&4194304)&&!(bt.flags&32)&&!(bt.flags&8192)&&!$g)if(Yr)mo(bt)&&(bu=!1,vu=!1);else{let ou=Vn(bt),X_=$_(bt,go);if(ou.symbol&&ou.symbol!==bt&&ou.symbol.flags&16&&ft(ou.symbol.declarations,Yv)&&((Zr=ou.symbol.members)!=null&&Zr.size||(Ha=ou.symbol.exports)!=null&&Ha.size))de.remappedSymbolReferences||(de.remappedSymbolReferences=new Map),de.remappedSymbolReferences.set(ta(ou.symbol),bt),$o(ou.symbol,Sr,Yr,Wr),de.remappedSymbolReferences.delete(ta(ou.symbol));else if(!(bt.flags&16)&&za(ou,bt))cr(ou,bt,X_,Wo);else{let mk=bt.flags&2?JD(bt)?2:1:(Us=bt.parent)!=null&&Us.valueDeclaration&&Li((Ss=bt.parent)==null?void 0:Ss.valueDeclaration)?2:void 0,ym=vu||!(bt.flags&4)?X_:xv(X_,bt),Xy=bt.declarations&&xr(bt.declarations,II=>Ni(II));Xy&&Tl(Xy.parent)&&Xy.parent.declarations.length===1&&(Xy=Xy.parent.parent);let Qy=(aa=bt.declarations)==null?void 0:aa.find(Cr);if(Qy&&Yn(Qy.parent)&&Ie(Qy.parent.right)&&((Ga=ou.symbol)!=null&&Ga.valueDeclaration)&&Li(ou.symbol.valueDeclaration)){let II=X_===Qy.parent.right.escapedText?void 0:Qy.parent.right;Xo(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,II,X_)])),0),de.tracker.trackSymbol(ou.symbol,de.enclosingDeclaration,111551)}else{let II=nt(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(ym,void 0,fl(de,ou,bt,di,Vo,Xn))],mk)),Xy);Xo(II,ym!==X_?Wo&-33:Wo),ym!==X_&&!Sr&&(Xo(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,ym,X_)])),0),bu=!1,vu=!1)}}}if(bt.flags&384&&an(bt,go,Wo),bt.flags&32&&(bt.flags&4&&bt.valueDeclaration&&Yn(bt.valueDeclaration.parent)&&Bl(bt.valueDeclaration.parent.right)?Cs(bt,$_(bt,go),Wo):Qs(bt,$_(bt,go),Wo)),(bt.flags&1536&&(!au||Nn(bt))||$g)&&pr(bt,go,Wo),bt.flags&64&&!(bt.flags&32)&&pt(bt,go,Wo),bt.flags&2097152&&Cs(bt,$_(bt,go),Wo),bt.flags&4&&bt.escapedName==="export="&&mo(bt),bt.flags&8388608&&bt.declarations)for(let ou of bt.declarations){let X_=s_(ou,ou.moduleSpecifier);X_&&Xo(I.createExportDeclaration(void 0,ou.isTypeOnly,void 0,I.createStringLiteral(vn(X_,de))),0)}vu?Xo(I.createExportAssignment(void 0,!1,I.createIdentifier($_(bt,go))),0):bu&&Xo(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,$_(bt,go),go)])),0)}function Vo(bt){if(ft(bt.declarations,Wv))return;E.assertIsDefined(et[et.length-1]),xv(Ci(bt.escapedName),bt);let Sr=!!(bt.flags&2097152)&&!ft(bt.declarations,Yr=>!!Fn(Yr,Kc)||jm(Yr)||Kl(Yr)&&!Bm(Yr.moduleReference));et[Sr?0:et.length-1].set(ta(bt),bt)}function yu(bt){return Li(bt)&&(K_(bt)||dp(bt))||lu(bt)&&!jd(bt)}function Xo(bt,Sr){if(Yp(bt)){let Yr=0,Wr=de.enclosingDeclaration&&(mp(de.enclosingDeclaration)?Mn(de.enclosingDeclaration):de.enclosingDeclaration);Sr&32&&Wr&&(yu(Wr)||Pc(Wr))&&Xw(bt)&&(Yr|=32),Bt&&!(Yr&32)&&(!Wr||!(Wr.flags&33554432))&&(T1(bt)||uc(bt)||al(bt)||Zc(bt)||Pc(bt))&&(Yr|=128),Sr&2048&&(Zc(bt)||Wu(bt)||al(bt))&&(Yr|=2048),Yr&&(bt=I.replaceModifiers(bt,Yr|Ju(bt)))}Er.push(bt)}function $e(bt,Sr,Yr){var Wr;let Zr=fPe(bt),Ha=Ti(bt).typeParameters,Us=Kt(Ha,vu=>st(vu,de)),Ss=(Wr=bt.declarations)==null?void 0:Wr.find(mp),aa=FP(Ss?Ss.comment||Ss.parent.comment:void 0),Ga=de.flags;de.flags|=8388608;let go=de.enclosingDeclaration;de.enclosingDeclaration=Ss;let l_=Ss&&Ss.typeExpression&&q2(Ss.typeExpression)&&Ao(de,Ss.typeExpression.type,Vo,Xn)||_(Zr,de);Xo(v1(I.createTypeAliasDeclaration(void 0,$_(bt,Sr),Us,l_),aa?[{kind:3,text:`* - * `+aa.replace(/\n/g,` - * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),Yr),de.flags=Ga,de.enclosingDeclaration=go}function pt(bt,Sr,Yr){let Wr=ip(bt),Zr=un(bt),Ha=Kt(Zr,bu=>st(bu,de)),Us=il(Wr),Ss=bn(Us)?ya(Us):void 0,aa=oa(Qa(Wr),bu=>gm(bu,Ss)),Ga=hm(0,Wr,Ss,179),go=hm(1,Wr,Ss,180),l_=s2(Wr,Ss),vu=bn(Us)?[I.createHeritageClause(96,Ri(Us,bu=>dk(bu,111551)))]:void 0;Xo(I.createInterfaceDeclaration(void 0,$_(bt,Sr),Ha,vu,[...l_,...go,...Ga,...aa]),Yr)}function Vt(bt){let Sr=q_(bt);return Sr?Fr(hs(Sr.values()),Yr=>fs(Yr)&&hf(Yr.escapedName,99)):[]}function Nn(bt){return hi(Vt(bt),Sr=>!(mu(Oc(Sr))&111551))}function pr(bt,Sr,Yr){let Wr=Vt(bt),Zr=iP(Wr,Ss=>Ss.parent&&Ss.parent===bt?"real":"merged"),Ha=Zr.get("real")||Ve,Us=Zr.get("merged")||Ve;if(bn(Ha)){let Ss=$_(bt,Sr);_i(Ha,Ss,Yr,!!(bt.flags&67108880))}if(bn(Us)){let Ss=Mn(de.enclosingDeclaration),aa=$_(bt,Sr),Ga=I.createModuleBlock([I.createExportDeclaration(void 0,!1,I.createNamedExports(Ri(Fr(Us,go=>go.escapedName!=="export="),go=>{var l_,vu;let bu=Ci(go.escapedName),Wo=$_(go,bu),au=go.declarations&&wp(go);if(Ss&&(au?Ss!==Mn(au):!ft(go.declarations,X_=>Mn(X_)===Ss))){(vu=(l_=de.tracker)==null?void 0:l_.reportNonlocalAugmentation)==null||vu.call(l_,Ss,bt,go);return}let $g=au&&Zf(au,!0);Vo($g||go);let ou=$g?$_($g,Ci($g.escapedName)):Wo;return I.createExportSpecifier(!1,bu===ou?void 0:ou,bu)})))]);Xo(I.createModuleDeclaration(void 0,I.createIdentifier(aa),Ga,32),0)}}function an(bt,Sr,Yr){Xo(I.createEnumDeclaration(I.createModifiersFromModifierFlags(wge(bt)?4096:0),$_(bt,Sr),Kt(Fr(Qa(Vn(bt)),Wr=>!!(Wr.flags&8)),Wr=>{let Zr=Wr.declarations&&Wr.declarations[0]&&sb(Wr.declarations[0])?ahe(Wr.declarations[0]):void 0;return I.createEnumMember(Ci(Wr.escapedName),Zr===void 0?void 0:typeof Zr=="string"?I.createStringLiteral(Zr):I.createNumericLiteral(Zr))})),Yr)}function cr(bt,Sr,Yr,Wr){let Zr=Ps(bt,0);for(let Ha of Zr){let Us=le(Ha,262,de,{name:I.createIdentifier(Yr),privateSymbolVisitor:Vo,bundledImports:Xn});Xo(nt(Us,ri(Ha)),Wr)}if(!(Sr.flags&1536&&Sr.exports&&Sr.exports.size)){let Ha=Fr(Qa(bt),fs);_i(Ha,Yr,Wr,!0)}}function ri(bt){if(bt.declaration&&bt.declaration.parent){if(Yn(bt.declaration.parent)&&mc(bt.declaration.parent)===5)return bt.declaration.parent;if(Ni(bt.declaration.parent)&&bt.declaration.parent.parent)return bt.declaration.parent.parent}return bt.declaration}function _i(bt,Sr,Yr,Wr){if(bn(bt)){let Ha=iP(bt,Wo=>!bn(Wo.declarations)||ft(Wo.declarations,au=>Mn(au)===Mn(de.enclosingDeclaration))?"local":"remote").get("local")||Ve,Us=Jm.createModuleDeclaration(void 0,I.createIdentifier(Sr),I.createModuleBlock([]),32);Ta(Us,di),Us.locals=Gs(bt),Us.symbol=bt[0].parent;let Ss=Er;Er=[];let aa=Bt;Bt=!1;let Ga={...de,enclosingDeclaration:Us},go=de;de=Ga,ea(Gs(Ha),Wr,!0),de=go,Bt=aa;let l_=Er;Er=Ss;let vu=Kt(l_,Wo=>hc(Wo)&&!Wo.isExportEquals&&Ie(Wo.expression)?I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,Wo.expression,I.createIdentifier("default"))])):Wo),bu=hi(vu,Wo=>Mr(Wo,32))?Kt(vu,Ui):vu;Us=I.updateModuleDeclaration(Us,Us.modifiers,Us.name,I.createModuleBlock(bu)),Xo(Us,Yr)}}function fs(bt){return!!(bt.flags&2887656)||!(bt.flags&4194304||bt.escapedName==="prototype"||bt.valueDeclaration&&zs(bt.valueDeclaration)&&ei(bt.valueDeclaration.parent))}function Hs(bt){let Sr=Ri(bt,Yr=>{let Wr=de.enclosingDeclaration;de.enclosingDeclaration=Yr;let Zr=Yr.expression;if(gc(Zr)){if(Ie(Zr)&&ur(Zr)==="")return Ha(void 0);let Us;if({introducesError:Us,node:Zr}=Lc(Zr,de,Vo),Us)return Ha(void 0)}return Ha(I.createExpressionWithTypeArguments(Zr,Kt(Yr.typeArguments,Us=>Ao(de,Us,Vo,Xn)||_(li(Us),de))));function Ha(Us){return de.enclosingDeclaration=Wr,Us}});if(Sr.length===bt.length)return Sr}function Qs(bt,Sr,Yr){var Wr,Zr;let Ha=(Wr=bt.declarations)==null?void 0:Wr.find(ei),Us=de.enclosingDeclaration;de.enclosingDeclaration=Ha||Us;let Ss=un(bt),aa=Kt(Ss,vm=>st(vm,de)),Ga=uf(ip(bt)),go=il(Ga),l_=Ha&&tC(Ha),vu=l_&&Hs(l_)||Ri(Th(Ga),Oh),bu=Vn(bt),Wo=!!((Zr=bu.symbol)!=null&&Zr.valueDeclaration)&&ei(bu.symbol.valueDeclaration),au=Wo?rl(bu):G,$g=[...bn(go)?[I.createHeritageClause(96,Kt(go,vm=>v4(vm,au,Sr)))]:[],...bn(vu)?[I.createHeritageClause(119,vu)]:[]],ou=Mlt(Ga,go,Qa(Ga)),X_=Fr(ou,vm=>{let ZD=vm.valueDeclaration;return!!ZD&&!(Ru(ZD)&&Di(ZD.name))}),ym=ft(ou,vm=>{let ZD=vm.valueDeclaration;return!!ZD&&Ru(ZD)&&Di(ZD.name)})?[I.createPropertyDeclaration(void 0,I.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Ve,Xy=oa(X_,vm=>ni(vm,!1,go[0])),Qy=oa(Fr(Qa(bu),vm=>!(vm.flags&4194304)&&vm.escapedName!=="prototype"&&!fs(vm)),vm=>ni(vm,!0,au)),Z_t=!Wo&&!!bt.valueDeclaration&&Qn(bt.valueDeclaration)&&!ft(Ps(bu,1))?[I.createConstructorDeclaration(I.createModifiersFromModifierFlags(2),[],void 0)]:hm(1,bu,au,176),K_t=s2(Ga,go[0]);de.enclosingDeclaration=Us,Xo(nt(I.createClassDeclaration(void 0,Sr,aa,$g,[...K_t,...Qy,...Z_t,...Xy,...ym]),bt.declarations&&Fr(bt.declarations,vm=>Zc(vm)||Bl(vm))[0]),Yr)}function si(bt){return ba(bt,Sr=>{if(E_(Sr)||Eu(Sr))return ur(Sr.propertyName||Sr.name);if(Yn(Sr)||hc(Sr)){let Yr=hc(Sr)?Sr.expression:Sr.right;if(Cr(Yr))return ur(Yr.name)}if($1(Sr)){let Yr=us(Sr);if(Yr&&Ie(Yr))return ur(Yr)}})}function Cs(bt,Sr,Yr){var Wr,Zr,Ha,Us,Ss;let aa=wp(bt);if(!aa)return E.fail();let Ga=Ba(Zf(aa,!0));if(!Ga)return;let go=Z4(Ga)&&si(bt.declarations)||Ci(Ga.escapedName);go==="export="&&$&&(go="default");let l_=$_(Ga,go);switch(Vo(Ga),aa.kind){case 208:if(((Zr=(Wr=aa.parent)==null?void 0:Wr.parent)==null?void 0:Zr.kind)===260){let Wo=vn(Ga.parent||Ga,de),{propertyName:au}=aa;Xo(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,au&&Ie(au)?I.createIdentifier(ur(au)):void 0,I.createIdentifier(Sr))])),I.createStringLiteral(Wo),void 0),0);break}E.failBadSyntaxKind(((Ha=aa.parent)==null?void 0:Ha.parent)||aa,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((Ss=(Us=aa.parent)==null?void 0:Us.parent)==null?void 0:Ss.kind)===226&&sa(Ci(bt.escapedName),l_);break;case 260:if(Cr(aa.initializer)){let Wo=aa.initializer,au=I.createUniqueName(Sr),$g=vn(Ga.parent||Ga,de);Xo(I.createImportEqualsDeclaration(void 0,!1,au,I.createExternalModuleReference(I.createStringLiteral($g))),0),Xo(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(Sr),I.createQualifiedName(au,Wo.name)),Yr);break}case 271:if(Ga.escapedName==="export="&&ft(Ga.declarations,Wo=>Li(Wo)&&dp(Wo))){mo(bt);break}let vu=!(Ga.flags&512)&&!Ni(aa);Xo(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(Sr),vu?Xi(Ga,de,67108863,!1):I.createExternalModuleReference(I.createStringLiteral(vn(Ga,de)))),vu?Yr:0);break;case 270:Xo(I.createNamespaceExportDeclaration(ur(aa.name)),0);break;case 273:{let Wo=vn(Ga.parent||Ga,de),au=Xn?I.createStringLiteral(Wo):aa.parent.moduleSpecifier;Xo(I.createImportDeclaration(void 0,I.createImportClause(!1,I.createIdentifier(Sr),void 0),au,aa.parent.attributes),0);break}case 274:{let Wo=vn(Ga.parent||Ga,de),au=Xn?I.createStringLiteral(Wo):aa.parent.parent.moduleSpecifier;Xo(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(I.createIdentifier(Sr))),au,aa.parent.attributes),0);break}case 280:Xo(I.createExportDeclaration(void 0,!1,I.createNamespaceExport(I.createIdentifier(Sr)),I.createStringLiteral(vn(Ga,de))),0);break;case 276:{let Wo=vn(Ga.parent||Ga,de),au=Xn?I.createStringLiteral(Wo):aa.parent.parent.parent.moduleSpecifier;Xo(I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamedImports([I.createImportSpecifier(!1,Sr!==go?I.createIdentifier(go):void 0,I.createIdentifier(Sr))])),au,aa.parent.parent.parent.attributes),0);break}case 281:let bu=aa.parent.parent.moduleSpecifier;sa(Ci(bt.escapedName),bu?go:l_,bu&&$a(bu)?I.createStringLiteral(bu.text):void 0);break;case 277:mo(bt);break;case 226:case 211:case 212:bt.escapedName==="default"||bt.escapedName==="export="?mo(bt):sa(Sr,l_);break;default:return E.failBadSyntaxKind(aa,"Unhandled alias declaration kind in symbol serializer!")}}function sa(bt,Sr,Yr){Xo(I.createExportDeclaration(void 0,!1,I.createNamedExports([I.createExportSpecifier(!1,bt!==Sr?Sr:void 0,bt)]),Yr),0)}function mo(bt){var Sr;if(bt.flags&4194304)return!1;let Yr=Ci(bt.escapedName),Wr=Yr==="export=",Ha=Wr||Yr==="default",Us=bt.declarations&&wp(bt),Ss=Us&&Zf(Us,!0);if(Ss&&bn(Ss.declarations)&&ft(Ss.declarations,aa=>Mn(aa)===Mn(di))){let aa=Us&&(hc(Us)||Yn(Us)?yz(Us):Dte(Us)),Ga=aa&&gc(aa)?Qlt(aa):void 0,go=Ga&&yo(Ga,67108863,!0,!0,di);(go||Ss)&&Vo(go||Ss);let l_=de.tracker.disableTrackSymbol;if(de.tracker.disableTrackSymbol=!0,Ha)Er.push(I.createExportAssignment(void 0,Wr,Iu(Ss,de,67108863)));else if(Ga===aa&&Ga)sa(Yr,ur(Ga));else if(aa&&Bl(aa))sa(Yr,$_(Ss,xc(Ss)));else{let vu=xv(Yr,bt);Xo(I.createImportEqualsDeclaration(void 0,!1,I.createIdentifier(vu),Xi(Ss,de,67108863,!1)),0),sa(Yr,vu)}return de.tracker.disableTrackSymbol=l_,!0}else{let aa=xv(Yr,bt),Ga=_f(Vn(Ba(bt)));if(za(Ga,bt))cr(Ga,bt,aa,Ha?0:32);else{let go=((Sr=de.enclosingDeclaration)==null?void 0:Sr.kind)===267&&(!(bt.flags&98304)||bt.flags&65536)?1:2,l_=I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(aa,void 0,fl(de,Ga,bt,di,Vo,Xn))],go));Xo(l_,Ss&&Ss.flags&4&&Ss.escapedName==="export="?128:Yr===aa?32:0)}return Ha?(Er.push(I.createExportAssignment(void 0,Wr,I.createIdentifier(aa))),!0):Yr!==aa?(sa(Yr,aa),!0):!1}}function za(bt,Sr){let Yr=Mn(de.enclosingDeclaration);return Ir(bt)&48&&!bn($u(bt))&&!QT(bt)&&!!(bn(Fr(Qa(bt),fs))||bn(Ps(bt,0)))&&!bn(Ps(bt,1))&&!qn(Sr,di)&&!(bt.symbol&&ft(bt.symbol.declarations,Wr=>Mn(Wr)!==Yr))&&!ft(Qa(bt),Wr=>WN(Wr.escapedName))&&!ft(Qa(bt),Wr=>ft(Wr.declarations,Zr=>Mn(Zr)!==Yr))&&hi(Qa(bt),Wr=>hf(xc(Wr),ie)?Wr.flags&98304?Oy(Wr)===OS(Wr):!0:!1)}function Ll(bt,Sr,Yr){return function(Zr,Ha,Us){var Ss,aa,Ga,go,l_;let vu=Uf(Zr),bu=!!(vu&2);if(Ha&&Zr.flags&2887656)return[];if(Zr.flags&4194304||Zr.escapedName==="constructor"||Us&&Ks(Us,Zr.escapedName)&&Id(Ks(Us,Zr.escapedName))===Id(Zr)&&(Zr.flags&16777216)===(Ks(Us,Zr.escapedName).flags&16777216)&&Dh(Vn(Zr),q(Us,Zr.escapedName)))return[];let Wo=vu&-1025|(Ha?256:0),au=zn(Zr,de),$g=(Ss=Zr.declarations)==null?void 0:Ss.find(ud(Is,G0,Ni,bf,Yn,Cr));if(Zr.flags&98304&&Yr){let ou=[];if(Zr.flags&65536){let X_=Zr.declarations&&Qt(Zr.declarations,ym=>{if(ym.kind===178)return ym;if(Ws(ym)&&C2(ym))return Qt(ym.arguments[2].properties,Xy=>{let Qy=us(Xy);if(Qy&&Ie(Qy)&&ur(Qy)==="set")return Xy})});E.assert(!!X_);let mk=To(X_)?Lp(X_).parameters[0]:void 0;ou.push(nt(I.createSetAccessorDeclaration(I.createModifiersFromModifierFlags(Wo),au,[I.createParameterDeclaration(void 0,void 0,mk?pn(mk,Et(mk),de):"value",void 0,bu?void 0:fl(de,Vn(Zr),Zr,di,Vo,Xn))],void 0),((aa=Zr.declarations)==null?void 0:aa.find(qh))||$g))}if(Zr.flags&32768){let X_=vu&2;ou.push(nt(I.createGetAccessorDeclaration(I.createModifiersFromModifierFlags(Wo),au,[],X_?void 0:fl(de,Vn(Zr),Zr,di,Vo,Xn),void 0),((Ga=Zr.declarations)==null?void 0:Ga.find(X0))||$g))}return ou}else if(Zr.flags&98311)return nt(bt(I.createModifiersFromModifierFlags((Id(Zr)?8:0)|Wo),au,Zr.flags&16777216?I.createToken(58):void 0,bu?void 0:fl(de,OS(Zr),Zr,di,Vo,Xn),void 0),((go=Zr.declarations)==null?void 0:go.find(ud(Is,Ni)))||$g);if(Zr.flags&8208){let ou=Vn(Zr),X_=Ps(ou,0);if(Wo&2)return nt(bt(I.createModifiersFromModifierFlags((Id(Zr)?8:0)|Wo),au,Zr.flags&16777216?I.createToken(58):void 0,void 0,void 0),((l_=Zr.declarations)==null?void 0:l_.find(To))||X_[0]&&X_[0].declaration||Zr.declarations&&Zr.declarations[0]);let mk=[];for(let ym of X_){let Xy=le(ym,Sr,de,{name:au,questionToken:Zr.flags&16777216?I.createToken(58):void 0,modifiers:Wo?I.createModifiersFromModifierFlags(Wo):void 0}),Qy=ym.declaration&&mw(ym.declaration.parent)?ym.declaration.parent:ym.declaration;mk.push(nt(Xy,Qy))}return mk}return E.fail(`Unhandled class member kind! ${Zr.__debugFlags||Zr.flags}`)}}function gm(bt,Sr){return Kr(bt,!1,Sr)}function hm(bt,Sr,Yr,Wr){let Zr=Ps(Sr,bt);if(bt===1){if(!Yr&&hi(Zr,Ss=>bn(Ss.parameters)===0))return[];if(Yr){let Ss=Ps(Yr,1);if(!bn(Ss)&&hi(Zr,aa=>bn(aa.parameters)===0))return[];if(Ss.length===Zr.length){let aa=!1;for(let Ga=0;Ga_(Zr,de)),Wr=Iu(bt.target.symbol,de,788968)):bt.symbol&&ct(bt.symbol,di,Sr)&&(Wr=Iu(bt.symbol,de,788968)),Wr)return I.createExpressionWithTypeArguments(Wr,Yr)}function Oh(bt){let Sr=dk(bt,788968);if(Sr)return Sr;if(bt.symbol)return I.createExpressionWithTypeArguments(Iu(bt.symbol,de,788968),void 0)}function xv(bt,Sr){var Yr,Wr;let Zr=Sr?ta(Sr):void 0;if(Zr&&de.remappedSymbolNames.has(Zr))return de.remappedSymbolNames.get(Zr);Sr&&(bt=bj(Sr,bt));let Ha=0,Us=bt;for(;(Yr=de.usedSymbolNames)!=null&&Yr.has(bt);)Ha++,bt=`${Us}_${Ha}`;return(Wr=de.usedSymbolNames)==null||Wr.add(bt),Zr&&de.remappedSymbolNames.set(Zr,bt),bt}function bj(bt,Sr){if(Sr==="default"||Sr==="__class"||Sr==="__function"){let Yr=de.flags;de.flags|=16777216;let Wr=Zm(bt,de);de.flags=Yr,Sr=Wr.length>0&&cw(Wr.charCodeAt(0))?hp(Wr):Wr}return Sr==="default"?Sr="_default":Sr==="export="&&(Sr="_exports"),Sr=hf(Sr,ie)&&!Cx(Sr)?Sr:"_"+Sr.replace(/[^a-zA-Z0-9]/g,"_"),Sr}function $_(bt,Sr){let Yr=ta(bt);return de.remappedSymbolNames.has(Yr)?de.remappedSymbolNames.get(Yr):(Sr=bj(bt,Sr),de.remappedSymbolNames.set(Yr,Sr),Sr)}}}function Ym(r,a,l=16384,_){return _?m(_).getText():Q4(m);function m(h){let T=I.createTypePredicateNode(r.kind===2||r.kind===3?I.createToken(131):void 0,r.kind===1||r.kind===3?I.createIdentifier(r.parameterName):I.createThisTypeNode(),r.type&&mt.typeToTypeNode(r.type,a,sv(l)|70221824|512)),N=fb(),F=a&&Mn(a);return N.writeNode(4,T,F,h),h}}function E0(r){let a=[],l=0;for(let _=0;_us(T)?T:void 0),h=m&&us(m);if(m&&h){if(Ws(m)&&C2(m))return xc(r);if(Na(h)&&!(lc(r)&4096)){let T=Ti(r).nameType;if(T&&T.flags&384){let N=hD(r,a);if(N!==void 0)return N}}return co(h)}if(m||(m=r.declarations[0]),m.parent&&m.parent.kind===260)return co(m.parent.name);switch(m.kind){case 231:case 218:case 219:return a&&!a.encounteredError&&!(a.flags&131072)&&(a.encounteredError=!0),m.kind===231?"(Anonymous class)":"(Anonymous function)"}}let _=hD(r,a);return _!==void 0?_:xc(r)}function bh(r){if(r){let l=Hr(r);return l.isVisible===void 0&&(l.isVisible=!!a()),l.isVisible}return!1;function a(){switch(r.kind){case 345:case 353:case 347:return!!(r.parent&&r.parent.parent&&r.parent.parent.parent&&Li(r.parent.parent.parent));case 208:return bh(r.parent.parent);case 260:if(Ms(r.name)&&!r.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(Ov(r))return!0;let l=NS(r);return!(VZ(r)&32)&&!(r.kind!==271&&l.kind!==312&&l.flags&33554432)?nm(l):bh(l);case 172:case 171:case 177:case 178:case 174:case 173:if(M_(r,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return bh(r.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function $6(r,a){let l;r.parent&&r.parent.kind===277?l=bc(r,r.escapedText,2998271,void 0,r,!1):r.parent.kind===281&&(l=Ib(r.parent,2998271));let _,m;return l&&(m=new Set,m.add(ta(l)),h(l.declarations)),_;function h(T){Qt(T,N=>{let F=jT(N)||N;if(a?Hr(N).isVisible=!0:(_=_||[],lp(_,F)),Gk(N)){let U=N.moduleReference,re=tf(U),le=bc(N,re.escapedText,901119,void 0,void 0,!1);le&&m&&Yy(m,ta(le))&&h(le.declarations)}})}}function Km(r,a){let l=av(r,a);if(l>=0){let{length:_}=mh;for(let m=l;m<_;m++)vy[m]=!1;return!1}return mh.push(r),vy.push(!0),_S.push(a),!0}function av(r,a){for(let l=mh.length-1;l>=xb;l--){if(aR(mh[l],_S[l]))return-1;if(mh[l]===r&&_S[l]===a)return l}return-1}function aR(r,a){switch(a){case 0:return!!Ti(r).type;case 5:return!!Hr(r).resolvedEnumType;case 2:return!!Ti(r).declaredType;case 1:return!!r.resolvedBaseConstructorType;case 3:return!!r.resolvedReturnType;case 4:return!!r.immediateBaseConstraint;case 6:return!!r.resolvedTypeArguments;case 7:return!!r.baseTypesResolved;case 8:return!!Ti(r).writeType;case 9:return Hr(r).parameterInitializerContainsUndefined!==void 0}return E.assertNever(a)}function lm(){return mh.pop(),_S.pop(),vy.pop()}function NS(r){return Fn(Fm(r),a=>{switch(a.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function zN(r){let a=wo(v_(r));return a.typeParameters?w0(a,Kt(a.typeParameters,l=>G)):a}function q(r,a){let l=Ks(r,a);return l?Vn(l):void 0}function ge(r,a){var l;let _;return q(r,a)||(_=(l=nk(r,a))==null?void 0:l.type)&&Ol(_,!0,!0)}function Ae(r){return r&&(r.flags&1)!==0}function tt(r){return r===ot||!!(r.flags&1&&r.aliasSymbol)}function Nt(r,a){if(a!==0)return Sh(r,!1,a);let l=fr(r);return l&&Ti(l).type||Sh(r,!1,a)}function rn(r,a,l){if(r=Hc(r,F=>!(F.flags&98304)),r.flags&131072)return Xs;if(r.flags&1048576)return zo(r,F=>rn(F,a,l));let _=Jr(Kt(a,N0)),m=[],h=[];for(let F of Qa(r)){let U=wD(F,8576);!da(U,_)&&!(Uf(F)&6)&&dY(F)?m.push(F):h.push(U)}if(qb(r)||pv(_)){if(h.length&&(_=Jr([_,...h])),_.flags&131072)return r;let F=ctt();return F?s4(F,[r,_]):ot}let T=Gs();for(let F of m)T.set(F.escapedName,zde(F,!1));let N=ac(l,T,Ve,Ve,$u(r));return N.objectFlags|=4194304,N}function kr(r){return!!(r.flags&465829888)&&oc(a_(r)||ln,32768)}function vi(r){let a=_m(r,kr)?zo(r,l=>l.flags&465829888?Ch(l):l):r;return jp(a,524288)}function fi(r,a){let l=ti(r);return l?Gy(l,a):a}function ti(r){let a=Ji(r);if(a&&vw(a)&&a.flowNode){let l=ao(r);if(l){let _=nt(Jm.createStringLiteral(l),r),m=x_(a)?a:Jm.createParenthesizedExpression(a),h=nt(Jm.createElementAccessExpression(m,_),r);return Ta(_,h),Ta(h,r),m!==a&&Ta(m,h),h.flowNode=a.flowNode,h}}}function Ji(r){let a=r.parent.parent;switch(a.kind){case 208:case 303:return ti(a);case 209:return ti(r.parent);case 260:return a.initializer;case 226:return a.right}}function ao(r){let a=r.parent;return r.kind===208&&a.kind===206?Wa(r.propertyName||r.name):r.kind===303||r.kind===304?Wa(r.name):""+a.elements.indexOf(r)}function Wa(r){let a=N0(r);return a.flags&384?""+a.value:void 0}function Ja(r){let a=r.dotDotDotToken?32:0,l=Nt(r.parent.parent,a);return l&&np(r,l,!1)}function np(r,a,l){if(Ae(a))return a;let _=r.parent;H&&r.flags&33554432&&Wv(r)?a=Nh(a):H&&_.parent.initializer&&!Rp($8e(_.parent.initializer),65536)&&(a=jp(a,524288));let m;if(_.kind===206)if(r.dotDotDotToken){if(a=Dd(a),a.flags&2||!WR(a))return je(r,d.Rest_types_may_only_be_created_from_object_types),ot;let h=[];for(let T of _.elements)T.dotDotDotToken||h.push(T.propertyName||T.name);m=rn(a,h,r.symbol)}else{let h=r.propertyName||r.name,T=N0(h),N=G_(a,T,32,h);m=fi(r,N)}else{let h=M0(65|(r.dotDotDotToken?0:128),a,j,_),T=_.elements.indexOf(r);if(r.dotDotDotToken){let N=zo(a,F=>F.flags&58982400?Ch(F):F);m=Bf(N,va)?zo(N,F=>PD(F,T)):hu(h)}else if(F0(a)){let N=wd(T),F=32|(l||zD(r)?16:0),U=Jy(a,N,F,r.name)||ot;m=fi(r,U)}else m=h}return r.initializer?Xl(Dk(r))?H&&!Rp(bI(r,0),16777216)?vi(m):m:Ige(r,Jr([vi(m),bI(r,0)],2)):m}function id(r){let a=o1(r);if(a)return li(a)}function Ay(r){let a=eo(r,!0);return a.kind===106||a.kind===80&&sd(a)===Oe}function Vg(r){let a=eo(r,!0);return a.kind===209&&a.elements.length===0}function Ol(r,a=!1,l=!0){return H&&l?qy(r,a):r}function Sh(r,a,l){if(Ni(r)&&r.parent.parent.kind===249){let T=sg(nge($i(r.parent.parent.expression,l)));return T.flags&4456448?Nwe(T):Fe}if(Ni(r)&&r.parent.parent.kind===250){let T=r.parent.parent;return dj(T)||G}if(Ms(r.parent))return Ja(r);let _=Is(r)&&!zd(r)||bf(r)||Lre(r),m=a&&BE(r),h=Le(r);if(VJ(r))return h?Ae(h)||h===ln?h:ot:ve?ln:G;if(h)return Ol(h,_,m);if((se||Qn(r))&&Ni(r)&&!Ms(r.name)&&!(VZ(r)&32)&&!(r.flags&33554432)){if(!(i2(r)&6)&&(!r.initializer||Ay(r.initializer)))return vt;if(r.initializer&&Vg(r.initializer))return Vc}if(ms(r)){let T=r.parent;if(T.kind===178&&t4(T)){let U=Zo(fr(r.parent),177);if(U){let re=Lp(U),le=fhe(T);return le&&r===le?(E.assert(!le.type),Vn(re.thisParameter)):Ua(re)}}let N=Oet(T,r);if(N)return N;let F=r.symbol.escapedName==="this"?dAe(T):mAe(r);if(F)return Ol(F,!1,m)}if(y2(r)&&r.initializer){if(Qn(r)&&!ms(r)){let N=SD(r,fr(r),uw(r));if(N)return N}let T=Ige(r,bI(r,l));return Ol(T,_,m)}if(Is(r)&&(se||Qn(r)))if(Yc(r)){let T=Fr(r.parent.members,rc),N=T.length?oR(r.symbol,T):Ju(r)&128?AY(r.symbol):void 0;return N&&Ol(N,!0,m)}else{let T=rd(r.parent),N=T?bD(r.symbol,T):Ju(r)&128?AY(r.symbol):void 0;return N&&Ol(N,!0,m)}if($d(r))return nr;if(Ms(r.name))return ZT(r.name,!1,!0)}function yD(r){if(r.valueDeclaration&&Yn(r.valueDeclaration)){let a=Ti(r);return a.isConstructorDeclaredProperty===void 0&&(a.isConstructorDeclaredProperty=!1,a.isConstructorDeclaredProperty=!!Q6(r)&&hi(r.declarations,l=>Yn(l)&&eZ(l)&&(l.left.kind!==212||vf(l.left.argumentExpression))&&!rp(void 0,l,r,l))),a.isConstructorDeclaredProperty}return!1}function X6(r){let a=r.valueDeclaration;return a&&Is(a)&&!Xl(a)&&!a.initializer&&(se||Qn(a))}function Q6(r){if(r.declarations)for(let a of r.declarations){let l=__(a,!1,!1);if(l&&(l.kind===176||dm(l)))return l}}function vD(r){let a=Mn(r.declarations[0]),l=Ci(r.escapedName),_=r.declarations.every(h=>Qn(h)&&ho(h)&&gg(h.expression)),m=_?I.createPropertyAccessExpression(I.createPropertyAccessExpression(I.createIdentifier("module"),I.createIdentifier("exports")),l):I.createPropertyAccessExpression(I.createIdentifier("exports"),l);return _&&Ta(m.expression.expression,m.expression),Ta(m.expression,m),Ta(m,a),m.flowNode=a.endFlowNode,Gy(m,vt,j)}function oR(r,a){let l=ts(r.escapedName,"__#")?I.createPrivateIdentifier(r.escapedName.split("@")[1]):Ci(r.escapedName);for(let _ of a){let m=I.createPropertyAccessExpression(I.createThis(),l);Ta(m.expression,m),Ta(m,_),m.flowNode=_.returnFlowNode;let h=Mf(m,r);if(se&&(h===vt||h===Vc)&&je(r.valueDeclaration,d.Member_0_implicitly_has_an_1_type,ci(r),hn(h)),!Bf(h,GR))return PI(h)}}function bD(r,a){let l=ts(r.escapedName,"__#")?I.createPrivateIdentifier(r.escapedName.split("@")[1]):Ci(r.escapedName),_=I.createPropertyAccessExpression(I.createThis(),l);Ta(_.expression,_),Ta(_,a),_.flowNode=a.returnFlowNode;let m=Mf(_,r);return se&&(m===vt||m===Vc)&&je(r.valueDeclaration,d.Member_0_implicitly_has_an_1_type,ci(r),hn(m)),Bf(m,GR)?void 0:PI(m)}function Mf(r,a){let l=a?.valueDeclaration&&(!X6(a)||Ju(a.valueDeclaration)&128)&&AY(a)||j;return Gy(r,vt,l)}function xh(r,a){let l=bx(r.valueDeclaration);if(l){let N=Qn(l)?a1(l):void 0;return N&&N.typeExpression?li(N.typeExpression):r.valueDeclaration&&SD(r.valueDeclaration,r,l)||Qb(Gc(l))}let _,m=!1,h=!1;if(yD(r)&&(_=bD(r,Q6(r))),!_){let N;if(r.declarations){let F;for(let U of r.declarations){let re=Yn(U)||Ws(U)?U:ho(U)?Yn(U.parent)?U.parent:U:void 0;if(!re)continue;let le=ho(re)?dw(re):mc(re);(le===4||Yn(re)&&eZ(re,le))&&(Uc(re)?m=!0:h=!0),Ws(re)||(F=rp(F,re,r,U)),F||(N||(N=[])).push(Yn(re)||Ws(re)?Y6(r,a,re,le):wr)}_=F}if(!_){if(!bn(N))return ot;let F=m&&r.declarations?Ny(N,r.declarations):void 0;if(h){let re=AY(r);re&&((F||(F=[])).push(re),m=!0)}let U=ft(F,re=>!!(re.flags&-98305))?F:N;_=Jr(U)}}let T=_f(Ol(_,!1,h&&!m));return r.valueDeclaration&&Qn(r.valueDeclaration)&&Hc(T,N=>!!(N.flags&-98305))===wr?(yv(r.valueDeclaration,G),G):T}function SD(r,a,l){var _,m;if(!Qn(r)||!l||!xa(l)||l.properties.length)return;let h=Gs();for(;Yn(r)||Cr(r);){let F=lf(r);(_=F?.exports)!=null&&_.size&&tm(h,F.exports),r=Yn(r)?r.parent:r.parent.parent}let T=lf(r);(m=T?.exports)!=null&&m.size&&tm(h,T.exports);let N=ac(a,h,Ve,Ve,Ve);return N.objectFlags|=4096,N}function rp(r,a,l,_){var m;let h=Xl(a.parent);if(h){let T=_f(li(h));if(r)!tt(r)&&!tt(T)&&!Dh(r,T)&&hIe(void 0,r,_,T);else return T}if((m=l.parent)!=null&&m.valueDeclaration){let T=Xl(l.parent.valueDeclaration);if(T){let N=Ks(li(T),l.escapedName);if(N)return Oy(N)}}return r}function Y6(r,a,l,_){if(Ws(l)){if(a)return Vn(a);let T=Gc(l.arguments[2]),N=q(T,"value");if(N)return N;let F=q(T,"get");if(F){let re=QS(F);if(re)return Ua(re)}let U=q(T,"set");if(U){let re=QS(U);if(re)return Tge(re)}return G}if(Ia(l.left,l.right))return G;let m=_===1&&(Cr(l.left)||ko(l.left))&&(gg(l.left.expression)||Ie(l.left.expression)&&k2(l.left.expression)),h=a?Vn(a):m?c_(Gc(l.right)):Qb(Gc(l.right));if(h.flags&524288&&_===2&&r.escapedName==="export="){let T=Ed(h),N=Gs();z7(T.members,N);let F=N.size;a&&!a.exports&&(a.exports=Gs()),(a||r).exports.forEach((re,le)=>{var Te;let Ne=N.get(le);if(Ne&&Ne!==re&&!(re.flags&2097152))if(re.flags&111551&&Ne.flags&111551){if(re.valueDeclaration&&Ne.valueDeclaration&&Mn(re.valueDeclaration)!==Mn(Ne.valueDeclaration)){let Et=Ci(re.escapedName),Yt=((Te=Ur(Ne.valueDeclaration,Ru))==null?void 0:Te.name)||Ne.valueDeclaration;ga(je(re.valueDeclaration,d.Duplicate_identifier_0,Et),vr(Yt,d._0_was_also_declared_here,Et)),ga(je(Yt,d.Duplicate_identifier_0,Et),vr(re.valueDeclaration,d._0_was_also_declared_here,Et))}let st=ja(re.flags|Ne.flags,le);st.links.type=Jr([Vn(re),Vn(Ne)]),st.valueDeclaration=Ne.valueDeclaration,st.declarations=es(Ne.declarations,re.declarations),N.set(le,st)}else N.set(le,Pp(re,Ne));else N.set(le,re)});let U=ac(F!==N.size?void 0:T.symbol,N,T.callSignatures,T.constructSignatures,T.indexInfos);if(F===N.size&&(h.aliasSymbol&&(U.aliasSymbol=h.aliasSymbol,U.aliasTypeArguments=h.aliasTypeArguments),Ir(h)&4)){U.aliasSymbol=h.symbol;let re=vo(h);U.aliasTypeArguments=bn(re)?re:void 0}return U.objectFlags|=Ir(h)&4096,U.symbol&&U.symbol.flags&32&&h===ip(U.symbol)&&(U.objectFlags|=16777216),U}return IY(h)?(yv(l,pc),pc):h}function Ia(r,a){return Cr(r)&&r.expression.kind===110&&l3(a,l=>iu(r,l))}function Uc(r){let a=__(r,!1,!1);return a.kind===176||a.kind===262||a.kind===218&&!mw(a.parent)}function Ny(r,a){return E.assert(r.length===a.length),r.filter((l,_)=>{let m=a[_],h=Yn(m)?m:Yn(m.parent)?m.parent:void 0;return h&&Uc(h)})}function IS(r,a,l){if(r.initializer){let _=Ms(r.name)?ZT(r.name,!0,!1):ln;return Ol(Ige(r,bI(r,0,_)))}return Ms(r.name)?ZT(r.name,a,l):(l&&!ne(r)&&yv(r,G),a?Zt:G)}function cR(r,a,l){let _=Gs(),m,h=131200;Qt(r.elements,N=>{let F=N.propertyName||N.name;if(N.dotDotDotToken){m=ig(Fe,G,!1);return}let U=N0(F);if(!Sp(U)){h|=512;return}let re=xp(U),le=4|(N.initializer?16777216:0),Te=ja(le,re);Te.links.type=IS(N,a,l),Te.links.bindingElement=N,_.set(Te.escapedName,Te)});let T=ac(void 0,_,Ve,Ve,m?[m]:Ve);return T.objectFlags|=h,a&&(T.pattern=r,T.objectFlags|=131072),T}function eg(r,a,l){let _=r.elements,m=qo(_),h=m&&m.kind===208&&m.dotDotDotToken?m:void 0;if(_.length===0||_.length===1&&h)return ie>=2?mwe(G):pc;let T=Kt(_,re=>xl(re)?G:IS(re,a,l)),N=a2(_,re=>!(re===h||xl(re)||zD(re)),_.length-1)+1,F=Kt(_,(re,le)=>re===h?4:le>=N?2:1),U=Pd(T,F);return a&&(U=QPe(U),U.pattern=r,U.objectFlags|=131072),U}function ZT(r,a=!1,l=!1){return r.kind===206?cR(r,a,l):eg(r,a,l)}function v(r,a){return R(Sh(r,!0,0),r,a)}function P(r){let a=lf(r),l=Qet(!1);return l&&a&&a===l}function R(r,a,l){return r?(r.flags&4096&&P(a.parent)&&(r=Vde(a)),l&&zY(a,r),r.flags&8192&&(Ma(a)||!a.type)&&r.symbol!==fr(a)&&(r=Br),_f(r)):(r=ms(a)&&a.dotDotDotToken?pc:G,l&&(ne(a)||yv(a,r)),r)}function ne(r){let a=Fm(r),l=a.kind===169?a.parent:a;return lj(l)}function Le(r){let a=Xl(r);if(a)return li(a)}function Lt(r){let a=r.valueDeclaration;return a?(Ma(a)&&(a=Dk(a)),ms(a)?TY(a.parent):!1):!1}function sr(r){let a=Ti(r);if(!a.type){let l=rs(r);return!a.type&&!Lt(r)&&(a.type=l),l}return a.type}function rs(r){if(r.flags&4194304)return zN(r);if(r===ht)return G;if(r.flags&134217728&&r.valueDeclaration){let _=fr(Mn(r.valueDeclaration)),m=ja(_.flags,"exports");m.declarations=_.declarations?_.declarations.slice():[],m.parent=r,m.links.target=_,_.valueDeclaration&&(m.valueDeclaration=_.valueDeclaration),_.members&&(m.members=new Map(_.members)),_.exports&&(m.exports=new Map(_.exports));let h=Gs();return h.set("exports",m),ac(r,h,Ve,Ve,Ve)}E.assertIsDefined(r.valueDeclaration);let a=r.valueDeclaration;if(Li(a)&&dp(a))return a.statements.length?_f(Qb($i(a.statements[0].expression))):Xs;if(G0(a))return ov(r);if(!Km(r,0))return r.flags&512&&!(r.flags&67108864)?xD(r):Z6(r);let l;if(a.kind===277)l=R(Le(a)||Gc(a.expression),a);else if(Yn(a)||Qn(a)&&(Ws(a)||(Cr(a)||g5(a))&&Yn(a.parent)))l=xh(r);else if(Cr(a)||ko(a)||Ie(a)||$a(a)||R_(a)||Zc(a)||al(a)||kc(a)&&!qp(a)||xg(a)||Li(a)){if(r.flags&9136)return xD(r);l=Yn(a.parent)?xh(r):Le(a)||G}else if(el(a))l=Le(a)||WNe(a);else if($d(a))l=Le(a)||DAe(a);else if(sf(a))l=Le(a)||UD(a.name,0);else if(qp(a))l=Le(a)||UNe(a,0);else if(ms(a)||Is(a)||bf(a)||Ni(a)||Ma(a)||OP(a))l=v(a,!0);else if(T1(a))l=xD(r);else if(sb(a))l=XQ(r);else return E.fail("Unhandled declaration kind! "+E.formatSyntaxKind(a.kind)+" for "+E.formatSymbol(r));return lm()?l:r.flags&512&&!(r.flags&67108864)?xD(r):Z6(r)}function Xa(r){if(r)switch(r.kind){case 177:return yp(r);case 178:return Rte(r);case 172:return E.assert(zd(r)),Xl(r)}}function Rf(r){let a=Xa(r);return a&&li(a)}function Iy(r){let a=fhe(r);return a&&a.symbol}function Fy(r){return _v(Lp(r))}function ov(r){let a=Ti(r);if(!a.type){if(!Km(r,0))return ot;let l=Zo(r,177),_=Zo(r,178),m=Ur(Zo(r,172),u_),h=l&&Qn(l)&&id(l)||Rf(l)||Rf(_)||Rf(m)||l&&l.body&&hZ(l)||m&&m.initializer&&v(m,!0);h||(_&&!lj(_)?Yf(se,_,d.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,ci(r)):l&&!lj(l)?Yf(se,l,d.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,ci(r)):m&&!lj(m)&&Yf(se,m,d.Member_0_implicitly_has_an_1_type,ci(r),"any"),h=G),lm()||(Xa(l)?je(l,d._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ci(r)):Xa(_)||Xa(m)?je(_,d._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ci(r)):l&&se&&je(l,d._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,ci(r)),h=G),a.type=h}return a.type}function $Q(r){let a=Ti(r);if(!a.writeType){if(!Km(r,8))return ot;let l=Zo(r,178)??Ur(Zo(r,172),u_),_=Rf(l);lm()||(Xa(l)&&je(l,d._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ci(r)),_=G),a.writeType=_||ov(r)}return a.writeType}function FS(r){let a=rl(ip(r));return a.flags&8650752?a:a.flags&2097152?xr(a.types,l=>!!(l.flags&8650752)):void 0}function xD(r){let a=Ti(r),l=a;if(!a.type){let _=r.valueDeclaration&&mZ(r.valueDeclaration,!1);if(_){let m=hge(r,_);m&&(r=m,a=m.links)}l.type=a.type=Wpe(r)}return a.type}function Wpe(r){let a=r.valueDeclaration;if(r.flags&1536&&Z4(r))return G;if(a&&(a.kind===226||ho(a)&&a.parent.kind===226))return xh(r);if(r.flags&512&&a&&Li(a)&&a.commonJsModuleIndicator){let _=cf(r);if(_!==r){if(!Km(r,0))return ot;let m=Ba(r.exports.get("export=")),h=xh(m,m===_?void 0:_);return lm()?h:Z6(r)}}let l=ep(16,r);if(r.flags&32){let _=FS(r);return _?ya([l,_]):l}else return H&&r.flags&16777216?qy(l,!0):l}function XQ(r){let a=Ti(r);return a.type||(a.type=mPe(r))}function lR(r){let a=Ti(r);if(!a.type){if(!Km(r,0))return ot;let l=yl(r),_=r.declarations&&Zf(wp(r),!0),m=ba(_?.declarations,h=>hc(h)?Le(h):void 0);if(a.type=_?.declarations&&FZ(_.declarations)&&r.declarations.length?vD(_):FZ(r.declarations)?vt:m||(mu(l)&111551?Vn(l):ot),!lm())return Z6(_??r),a.type=ot}return a.type}function Upe(r){let a=Ti(r);return a.type||(a.type=Vi(Vn(a.target),a.mapper))}function QQ(r){let a=Ti(r);return a.writeType||(a.writeType=Vi(OS(a.target),a.mapper))}function Z6(r){let a=r.valueDeclaration;if(a){if(Xl(a))return je(r.valueDeclaration,d._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,ci(r)),ot;se&&(a.kind!==169||a.initializer)&&je(r.valueDeclaration,d._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,ci(r))}else if(r.flags&2097152){let l=wp(r);l&&je(l,d.Circular_definition_of_import_alias_0,ci(r))}return G}function YQ(r){let a=Ti(r);return a.type||(E.assertIsDefined(a.deferralParent),E.assertIsDefined(a.deferralConstituents),a.type=a.deferralParent.flags&1048576?Jr(a.deferralConstituents):ya(a.deferralConstituents)),a.type}function qpe(r){let a=Ti(r);return!a.writeType&&a.deferralWriteConstituents&&(E.assertIsDefined(a.deferralParent),E.assertIsDefined(a.deferralConstituents),a.writeType=a.deferralParent.flags&1048576?Jr(a.deferralWriteConstituents):ya(a.deferralWriteConstituents)),a.writeType}function OS(r){let a=lc(r);return r.flags&4?a&2?a&65536?qpe(r)||YQ(r):r.links.writeType||r.links.type:Hy(Vn(r),!!(r.flags&16777216)):r.flags&98304?a&1?QQ(r):$Q(r):Vn(r)}function Vn(r){let a=lc(r);return a&65536?YQ(r):a&1?Upe(r):a&262144?det(r):a&8192?wrt(r):r.flags&7?sr(r):r.flags&9136?xD(r):r.flags&8?XQ(r):r.flags&98304?ov(r):r.flags&2097152?lR(r):ot}function Oy(r){return Hy(Vn(r),!!(r.flags&16777216))}function cv(r,a){return r!==void 0&&a!==void 0&&(Ir(r)&4)!==0&&r.target===a}function K6(r){return Ir(r)&4?r.target:r}function KT(r,a){return l(r);function l(_){if(Ir(_)&7){let m=K6(_);return m===a||ft(il(m),l)}else if(_.flags&2097152)return ft(_.types,l);return!1}}function zb(r,a){for(let l of a)r=Xg(r,MS(fr(l)));return r}function TD(r,a){for(;;){if(r=r.parent,r&&Yn(r)){let l=mc(r);if(l===6||l===3){let _=fr(r.left);_&&_.parent&&!Fn(_.parent.valueDeclaration,m=>r===m)&&(r=_.parent.valueDeclaration)}}if(!r)return;switch(r.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{let _=TD(r,a);if(r.kind===200)return _n(_,MS(fr(r.typeParameter)));if(r.kind===194)return es(_,zwe(r));let m=zb(_,q0(r)),h=a&&(r.kind===263||r.kind===231||r.kind===264||dm(r))&&ip(fr(r)).thisType;return h?_n(m,h):m}case 348:let l=Sw(r);l&&(r=l.valueDeclaration);break;case 327:{let _=TD(r,a);return r.tags?zb(_,oa(r.tags,m=>hd(m)?m.typeParameters:void 0)):_}}}}function Vb(r){var a;let l=r.flags&32||r.flags&16?r.valueDeclaration:(a=r.declarations)==null?void 0:a.find(_=>{if(_.kind===264)return!0;if(_.kind!==260)return!1;let m=_.initializer;return!!m&&(m.kind===218||m.kind===219)});return E.assert(!!l,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),TD(l)}function un(r){if(!r.declarations)return;let a;for(let l of r.declarations)(l.kind===264||l.kind===263||l.kind===231||dm(l)||yw(l))&&(a=zb(a,q0(l)));return a}function Rr(r){return es(Vb(r),un(r))}function Pr(r){let a=Ps(r,1);if(a.length===1){let l=a[0];if(!l.typeParameters&&l.parameters.length===1&&Du(l)){let _=tj(l.parameters[0]);return Ae(_)||ime(_)===G}}return!1}function gi(r){if(Ps(r,1).length>0)return!0;if(r.flags&8650752){let a=a_(r);return!!a&&Pr(a)}return!1}function yi(r){let a=ah(r.symbol);return a&&Bd(a)}function Oa(r,a,l){let _=bn(a),m=Qn(l);return Fr(Ps(r,1),h=>(m||_>=rg(h.typeParameters))&&_<=bn(h.typeParameters))}function oo(r,a,l){let _=Oa(r,a,l),m=Kt(a,li);return sl(_,h=>ft(h.typeParameters)?XN(h,m,Qn(l)):h)}function rl(r){if(!r.resolvedBaseConstructorType){let a=ah(r.symbol),l=a&&Bd(a),_=yi(r);if(!_)return r.resolvedBaseConstructorType=j;if(!Km(r,1))return ot;let m=$i(_.expression);if(l&&_!==l&&(E.assert(!l.typeArguments),$i(l.expression)),m.flags&2621440&&Ed(m),!lm())return je(r.symbol.valueDeclaration,d._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,ci(r.symbol)),r.resolvedBaseConstructorType=ot;if(!(m.flags&1)&&m!==qe&&!gi(m)){let h=je(_.expression,d.Type_0_is_not_a_constructor_function_type,hn(m));if(m.flags&262144){let T=ED(m),N=ln;if(T){let F=Ps(T,1);F[0]&&(N=Ua(F[0]))}m.symbol.declarations&&ga(h,vr(m.symbol.declarations[0],d.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,ci(m.symbol),hn(N)))}return r.resolvedBaseConstructorType=ot}r.resolvedBaseConstructorType=m}return r.resolvedBaseConstructorType}function Th(r){let a=Ve;if(r.symbol.declarations)for(let l of r.symbol.declarations){let _=tC(l);if(_)for(let m of _){let h=li(m);tt(h)||(a===Ve?a=[h]:a.push(h))}}return a}function tg(r,a){je(r,d.Type_0_recursively_references_itself_as_a_base_type,hn(a,void 0,2))}function il(r){if(!r.baseTypesResolved){if(Km(r,7)&&(r.objectFlags&8?r.resolvedBaseTypes=[D0(r)]:r.symbol.flags&96?(r.symbol.flags&32&&VN(r),r.symbol.flags&64&&WKe(r)):E.fail("type must be class or interface"),!lm()&&r.symbol.declarations))for(let a of r.symbol.declarations)(a.kind===263||a.kind===264)&&tg(a,r);r.baseTypesResolved=!0}return r.resolvedBaseTypes}function D0(r){let a=sl(r.typeParameters,(l,_)=>r.elementFlags[_]&8?G_(l,St):l);return hu(Jr(a||Ve),r.readonly)}function VN(r){r.resolvedBaseTypes=uF;let a=o_(rl(r));if(!(a.flags&2621441))return r.resolvedBaseTypes=Ve;let l=yi(r),_,m=a.symbol?wo(a.symbol):void 0;if(a.symbol&&a.symbol.flags&32&&e4(m))_=YPe(l,a.symbol);else if(a.flags&1)_=a;else{let T=oo(a,l.typeArguments,l);if(!T.length)return je(l.expression,d.No_base_constructor_has_the_specified_number_of_type_arguments),r.resolvedBaseTypes=Ve;_=Ua(T[0])}if(tt(_))return r.resolvedBaseTypes=Ve;let h=Dd(_);if(!LS(h)){let T=ode(void 0,_),N=ys(T,d.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,hn(h));return Ra.add(nh(Mn(l.expression),l.expression,N)),r.resolvedBaseTypes=Ve}return r===h||KT(h,r)?(je(r.symbol.valueDeclaration,d.Type_0_recursively_references_itself_as_a_base_type,hn(r,void 0,2)),r.resolvedBaseTypes=Ve):(r.resolvedBaseTypes===uF&&(r.members=void 0),r.resolvedBaseTypes=[h])}function e4(r){let a=r.outerTypeParameters;if(a){let l=a.length-1,_=vo(r);return a[l].symbol!==_[l].symbol}return!0}function LS(r){if(r.flags&262144){let a=a_(r);if(a)return LS(a)}return!!(r.flags&67633153&&!jf(r)||r.flags&2097152&&hi(r.types,LS))}function WKe(r){if(r.resolvedBaseTypes=r.resolvedBaseTypes||Ve,r.symbol.declarations){for(let a of r.symbol.declarations)if(a.kind===264&&uE(a))for(let l of uE(a)){let _=Dd(li(l));tt(_)||(LS(_)?r!==_&&!KT(_,r)?r.resolvedBaseTypes===Ve?r.resolvedBaseTypes=[_]:r.resolvedBaseTypes.push(_):tg(a,r):je(l,d.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function UKe(r){if(!r.declarations)return!0;for(let a of r.declarations)if(a.kind===264){if(a.flags&256)return!1;let l=uE(a);if(l){for(let _ of l)if(gc(_.expression)){let m=yo(_.expression,788968,!0);if(!m||!(m.flags&64)||ip(m).thisType)return!1}}}return!0}function ip(r){let a=Ti(r),l=a;if(!a.declaredType){let _=r.flags&32?1:2,m=hge(r,r.valueDeclaration&&wat(r.valueDeclaration));m&&(r=m,a=m.links);let h=l.declaredType=a.declaredType=ep(_,r),T=Vb(r),N=un(r);(T||N||_===1||!UKe(r))&&(h.objectFlags|=4,h.typeParameters=es(T,N),h.outerTypeParameters=T,h.localTypeParameters=N,h.instantiations=new Map,h.instantiations.set(Mp(h.typeParameters),h),h.target=h,h.resolvedTypeArguments=h.typeParameters,h.thisType=gu(r),h.thisType.isThisType=!0,h.thisType.constraint=h)}return a.declaredType}function fPe(r){var a;let l=Ti(r);if(!l.declaredType){if(!Km(r,2))return ot;let _=E.checkDefined((a=r.declarations)==null?void 0:a.find(yw),"Type alias symbol with no valid declaration found"),m=mp(_)?_.typeExpression:_.type,h=m?li(m):ot;if(lm()){let T=un(r);T&&(l.typeParameters=T,l.instantiations=new Map,l.instantiations.set(Mp(T),h))}else h=ot,_.kind===347?je(_.typeExpression.type,d.Type_alias_0_circularly_references_itself,ci(r)):je(Ru(_)&&_.name||_,d.Type_alias_0_circularly_references_itself,ci(r));l.declaredType=h}return l.declaredType}function ZQ(r){return r.flags&1056&&r.symbol.flags&8?wo(v_(r.symbol)):r}function pPe(r){let a=Ti(r);if(!a.declaredType){let l=[];if(r.declarations){for(let m of r.declarations)if(m.kind===266){for(let h of m.members)if(t4(h)){let T=fr(h),N=AI(h),F=ok(N!==void 0?unt(N,ta(r),T):dPe(T));Ti(T).declaredType=F,l.push(c_(F))}}}let _=l.length?Jr(l,1,r,void 0):dPe(r);_.flags&1048576&&(_.flags|=1024,_.symbol=r),a.declaredType=_}return a.declaredType}function dPe(r){let a=k0(32,r),l=k0(32,r);return a.regularType=a,a.freshType=l,l.regularType=a,l.freshType=l,a}function mPe(r){let a=Ti(r);if(!a.declaredType){let l=pPe(v_(r));a.declaredType||(a.declaredType=l)}return a.declaredType}function MS(r){let a=Ti(r);return a.declaredType||(a.declaredType=gu(r))}function qKe(r){let a=Ti(r);return a.declaredType||(a.declaredType=wo(yl(r)))}function wo(r){return gPe(r)||ot}function gPe(r){if(r.flags&96)return ip(r);if(r.flags&524288)return fPe(r);if(r.flags&262144)return MS(r);if(r.flags&384)return pPe(r);if(r.flags&8)return mPe(r);if(r.flags&2097152)return qKe(r)}function uR(r){switch(r.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return uR(r.elementType);case 183:return!r.typeArguments||r.typeArguments.every(uR)}return!1}function HKe(r){let a=wk(r);return!a||uR(a)}function hPe(r){let a=Xl(r);return a?uR(a):!Q0(r)}function GKe(r){let a=yp(r),l=q0(r);return(r.kind===176||!!a&&uR(a))&&r.parameters.every(hPe)&&l.every(HKe)}function $Ke(r){if(r.declarations&&r.declarations.length===1){let a=r.declarations[0];if(a)switch(a.kind){case 172:case 171:return hPe(a);case 174:case 173:case 176:case 177:case 178:return GKe(a)}}return!1}function yPe(r,a,l){let _=Gs();for(let m of r)_.set(m.escapedName,l&&$Ke(m)?m:Ude(m,a));return _}function vPe(r,a){for(let l of a){if(bPe(l))continue;let _=r.get(l.escapedName);(!_||_.valueDeclaration&&Yn(_.valueDeclaration)&&!yD(_)&&!fte(_.valueDeclaration))&&(r.set(l.escapedName,l),r.set(l.escapedName,l))}}function bPe(r){return!!r.valueDeclaration&&ju(r.valueDeclaration)&&zs(r.valueDeclaration)}function Hpe(r){if(!r.declaredProperties){let a=r.symbol,l=Ly(a);r.declaredProperties=Jb(l),r.declaredCallSignatures=Ve,r.declaredConstructSignatures=Ve,r.declaredIndexInfos=Ve,r.declaredCallSignatures=Wb(l.get("__call")),r.declaredConstructSignatures=Wb(l.get("__new")),r.declaredIndexInfos=GPe(a)}return r}function Gpe(r){if(!Na(r)&&!ko(r))return!1;let a=Na(r)?r.expression:r.argumentExpression;return gc(a)&&Sp(Na(r)?qg(r):Gc(a))}function WN(r){return r.charCodeAt(0)===95&&r.charCodeAt(1)===95&&r.charCodeAt(2)===64}function _R(r){let a=us(r);return!!a&&Gpe(a)}function t4(r){return!ey(r)||_R(r)}function XKe(r){return k5(r)&&!Gpe(r)}function QKe(r,a,l){E.assert(!!(lc(r)&4096),"Expected a late-bound symbol."),r.flags|=l,Ti(a.symbol).lateSymbol=r,r.declarations?a.symbol.isReplaceableByMethod||r.declarations.push(a):r.declarations=[a],l&111551&&(!r.valueDeclaration||r.valueDeclaration.kind!==a.kind)&&(r.valueDeclaration=a)}function SPe(r,a,l,_){E.assert(!!_.symbol,"The member is expected to have a symbol.");let m=Hr(_);if(!m.resolvedSymbol){m.resolvedSymbol=_.symbol;let h=Yn(_)?_.left:_.name,T=ko(h)?Gc(h.argumentExpression):qg(h);if(Sp(T)){let N=xp(T),F=_.symbol.flags,U=l.get(N);U||l.set(N,U=ja(0,N,4096));let re=a&&a.get(N);if(!(r.flags&32)&&(U.flags&bS(F)||re)){let le=re?es(re.declarations,U.declarations):U.declarations,Te=!(T.flags&8192)&&Ci(N)||co(h);Qt(le,Ne=>je(us(Ne)||Ne,d.Property_0_was_also_declared_here,Te)),je(h||_,d.Duplicate_property_0,Te),U=ja(0,N,4096)}return U.links.nameType=T,QKe(U,_,F),U.parent?E.assert(U.parent===r,"Existing symbol parent should match new one"):U.parent=r,m.resolvedSymbol=U}}return m.resolvedSymbol}function $pe(r,a){var l,_,m;let h=Ti(r);if(!h[a]){let T=a==="resolvedExports",N=T?r.flags&1536?XT(r).exports:r.exports:r.members;h[a]=N||V;let F=Gs();for(let le of r.declarations||Ve){let Te=ite(le);if(Te)for(let Ne of Te)T===Yc(Ne)&&_R(Ne)&&SPe(r,N,F,Ne)}let U=(((l=r.valueDeclaration)==null?void 0:l.kind)===219||((_=r.valueDeclaration)==null?void 0:_.kind)===218)&&((m=lf(r.valueDeclaration.parent))==null?void 0:m.assignmentDeclarationMembers)||r.assignmentDeclarationMembers;if(U){let le=hs(U.values());for(let Te of le){let Ne=mc(Te),st=Ne===3||Yn(Te)&&eZ(Te,Ne)||Ne===9||Ne===6;T===!st&&_R(Te)&&SPe(r,N,F,Te)}}let re=SS(N,F);if(r.flags&33554432&&h.cjsExportMerged&&r.declarations)for(let le of r.declarations){let Te=Ti(le.symbol)[a];if(!re){re=Te;continue}Te&&Te.forEach((Ne,st)=>{let Et=re.get(st);if(!Et)re.set(st,Ne);else{if(Et===Ne)return;re.set(st,Pp(Et,Ne))}})}h[a]=re||V}return h[a]}function Ly(r){return r.flags&6256?$pe(r,"resolvedMembers"):r.members||V}function KQ(r){if(r.flags&106500&&r.escapedName==="__computed"){let a=Ti(r);if(!a.lateSymbol&&ft(r.declarations,_R)){let l=Ba(r.parent);ft(r.declarations,Yc)?q_(l):Ly(l)}return a.lateSymbol||(a.lateSymbol=r)}return r}function uf(r,a,l){if(Ir(r)&4){let _=r.target,m=vo(r);return bn(_.typeParameters)===bn(m)?w0(_,es(m,[a||_.thisType])):r}else if(r.flags&2097152){let _=sl(r.types,m=>uf(m,a,l));return _!==r.types?ya(_):r}return l?o_(r):r}function xPe(r,a,l,_){let m,h,T,N,F;wj(l,_,0,l.length)?(h=a.symbol?Ly(a.symbol):Gs(a.declaredProperties),T=a.declaredCallSignatures,N=a.declaredConstructSignatures,F=a.declaredIndexInfos):(m=N_(l,_),h=yPe(a.declaredProperties,m,l.length===1),T=yY(a.declaredCallSignatures,m),N=yY(a.declaredConstructSignatures,m),F=Gwe(a.declaredIndexInfos,m));let U=il(a);if(U.length){if(a.symbol&&h===Ly(a.symbol)){let le=Gs();for(let Te of h.values())Te.flags&262144||le.set(Te.escapedName,Te);h=le}tp(r,h,T,N,F);let re=qo(_);for(let le of U){let Te=re?uf(Vi(le,m),re):le;vPe(h,Qa(Te)),T=es(T,Ps(Te,0)),N=es(N,Ps(Te,1));let Ne=Te!==G?$u(Te):[ig(Fe,G,!1)];F=es(F,Fr(Ne,st=>!cde(F,st.keyType)))}}tp(r,h,T,N,F)}function YKe(r){xPe(r,Hpe(r),Ve,Ve)}function ZKe(r){let a=Hpe(r.target),l=es(a.typeParameters,[a.thisType]),_=vo(r),m=_.length===l.length?_:es(_,[r]);xPe(r,a,l,m)}function Wg(r,a,l,_,m,h,T,N){let F=new g(zt,N);return F.declaration=r,F.typeParameters=a,F.parameters=_,F.thisParameter=l,F.resolvedReturnType=m,F.resolvedTypePredicate=h,F.minArgumentCount=T,F.resolvedMinArgumentCount=void 0,F.target=void 0,F.mapper=void 0,F.compositeSignatures=void 0,F.compositeKind=void 0,F}function UN(r){let a=Wg(r.declaration,r.typeParameters,r.thisParameter,r.parameters,void 0,void 0,r.minArgumentCount,r.flags&167);return a.target=r.target,a.mapper=r.mapper,a.compositeSignatures=r.compositeSignatures,a.compositeKind=r.compositeKind,a}function TPe(r,a){let l=UN(r);return l.compositeSignatures=a,l.compositeKind=1048576,l.target=void 0,l.mapper=void 0,l}function KKe(r,a){if((r.flags&24)===a)return r;r.optionalCallSignatureCache||(r.optionalCallSignatureCache={});let l=a===8?"inner":"outer";return r.optionalCallSignatureCache[l]||(r.optionalCallSignatureCache[l]=eet(r,a))}function eet(r,a){E.assert(a===8||a===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");let l=UN(r);return l.flags|=a,l}function kPe(r,a){if(Du(r)){let m=r.parameters.length-1,h=r.parameters[m].escapedName,T=Vn(r.parameters[m]);if(va(T))return[l(T,m,h)];if(!a&&T.flags&1048576&&hi(T.types,va))return Kt(T.types,N=>l(N,m,h))}return[r.parameters];function l(m,h,T){let N=vo(m),F=_(m,T),U=Kt(N,(re,le)=>{let Te=F&&F[le]?F[le]:VD(r,h+le,m),Ne=m.target.elementFlags[le],st=Ne&12?32768:Ne&2?16384:0,Et=ja(1,Te,st);return Et.links.type=Ne&4?hu(re):re,Et});return es(r.parameters.slice(0,h),U)}function _(m,h){let T=new Map;return Kt(m.target.labeledElementDeclarations,(N,F)=>{let U=xge(N,F,h),re=T.get(U);return re===void 0?(T.set(U,1),U):(T.set(U,re+1),`${U}_${re}`)})}}function tet(r){let a=rl(r),l=Ps(a,1),_=ah(r.symbol),m=!!_&&Mr(_,64);if(l.length===0)return[Wg(void 0,r.localTypeParameters,void 0,Ve,r,void 0,0,m?4:0)];let h=yi(r),T=Qn(h),N=hR(h),F=bn(N),U=[];for(let re of l){let le=rg(re.typeParameters),Te=bn(re.typeParameters);if(T||F>=le&&F<=Te){let Ne=Te?nY(re,Ry(N,re.typeParameters,le,T)):UN(re);Ne.typeParameters=r.localTypeParameters,Ne.resolvedReturnType=r,Ne.flags=m?Ne.flags|4:Ne.flags&-5,U.push(Ne)}}return U}function Xpe(r,a,l,_,m){for(let h of r)if(AR(h,a,l,_,m,l?wnt:nI))return h}function net(r,a,l){if(a.typeParameters){if(l>0)return;for(let m=1;m1&&(l=l===void 0?_:-1);for(let m of r[_])if(!a||!Xpe(a,m,!1,!1,!0)){let h=net(r,m,_);if(h){let T=m;if(h.length>1){let N=m.thisParameter,F=Qt(h,U=>U.thisParameter);if(F){let U=ya(Ri(h,re=>re.thisParameter&&Vn(re.thisParameter)));N=VS(F,U)}T=TPe(m,h),T.thisParameter=N}(a||(a=[])).push(T)}}}if(!bn(a)&&l!==-1){let _=r[l!==void 0?l:0],m=_.slice();for(let h of r)if(h!==_){let T=h[0];if(E.assert(!!T,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),m=T.typeParameters&&ft(m,N=>!!N.typeParameters&&!CPe(T.typeParameters,N.typeParameters))?void 0:Kt(m,N=>set(N,T)),!m)break}a=m}return a||Ve}function CPe(r,a){if(bn(r)!==bn(a))return!1;if(!r||!a)return!0;let l=N_(a,r);for(let _=0;_=m?r:a,T=h===r?a:r,N=h===r?_:m,F=ag(r)||ag(a),U=F&&!ag(h),re=new Array(N+(U?1:0));for(let le=0;le=mm(h)&&le>=mm(T),pn=le>=_?void 0:VD(r,le),tr=le>=m?void 0:VD(a,le),yn=pn===tr?pn:pn?tr?void 0:pn:tr,Ut=ja(1|(Yt&&!Et?16777216:0),yn||`arg${le}`,Et?32768:Yt?16384:0);Ut.links.type=Et?hu(st):st,re[le]=Ut}if(U){let le=ja(1,"args",32768);le.links.type=hu(Nd(T,N)),T===a&&(le.links.type=Vi(le.links.type,l)),re[N]=le}return re}function set(r,a){let l=r.typeParameters||a.typeParameters,_;r.typeParameters&&a.typeParameters&&(_=N_(a.typeParameters,r.typeParameters));let m=r.declaration,h=iet(r,a,_),T=ret(r.thisParameter,a.thisParameter,_),N=Math.max(r.minArgumentCount,a.minArgumentCount),F=Wg(m,l,T,h,void 0,void 0,N,(r.flags|a.flags)&167);return F.compositeKind=1048576,F.compositeSignatures=es(r.compositeKind!==2097152&&r.compositeSignatures||[r],[a]),_&&(F.mapper=r.compositeKind!==2097152&&r.mapper&&r.compositeSignatures?gv(r.mapper,_):_),F}function EPe(r){let a=$u(r[0]);if(a){let l=[];for(let _ of a){let m=_.keyType;hi(r,h=>!!Ug(h,m))&&l.push(ig(m,Jr(Kt(r,h=>uv(h,m))),ft(r,h=>Ug(h,m).isReadonly)))}return l}return Ve}function aet(r){let a=Qpe(Kt(r.types,m=>m===Tt?[gn]:Ps(m,0))),l=Qpe(Kt(r.types,m=>Ps(m,1))),_=EPe(r.types);tp(r,V,a,l,_)}function fR(r,a){return r?a?ya([r,a]):r:a}function DPe(r){let a=Lh(r,_=>Ps(_,1).length>0),l=Kt(r,Pr);if(a>0&&a===Lh(l,_=>_)){let _=l.indexOf(!0);l[_]=!1}return l}function oet(r,a,l,_){let m=[];for(let h=0;hN);for(let N=0;N0&&(U=Kt(U,re=>{let le=UN(re);return le.resolvedReturnType=oet(Ua(re),m,h,N),le})),l=PPe(l,U)}a=PPe(a,Ps(F,0)),_=Fu($u(F),(U,re)=>wPe(U,re,!1),_)}tp(r,V,a||Ve,l||Ve,_||Ve)}function PPe(r,a){for(let l of a)(!r||hi(r,_=>!AR(_,l,!1,!1,!1,nI)))&&(r=_n(r,l));return r}function wPe(r,a,l){if(r)for(let _=0;_{var F;!(N.flags&418)&&!(N.flags&512&&((F=N.declarations)!=null&&F.length)&&hi(N.declarations,lu))&&T.set(N.escapedName,N)}),l=T}let m;if(tp(r,l,Ve,Ve,Ve),a.flags&32){let T=ip(a),N=rl(T);N.flags&11272192?(l=Gs(q6(l)),vPe(l,Qa(N))):N===G&&(m=ig(Fe,G,!1))}let h=rY(l);if(h?_=mde(h):(m&&(_=_n(_,m)),a.flags&384&&(wo(a).flags&32||ft(r.properties,T=>!!(Vn(T).flags&296)))&&(_=_n(_,Tr))),tp(r,l,Ve,Ve,_||Ve),a.flags&8208&&(r.callSignatures=Wb(a)),a.flags&32){let T=ip(a),N=a.members?Wb(a.members.get("__constructor")):Ve;a.flags&16&&(N=Nr(N.slice(),Ri(r.callSignatures,F=>dm(F.declaration)?Wg(F.declaration,F.typeParameters,F.thisParameter,F.parameters,T,void 0,F.minArgumentCount,F.flags&167):void 0))),N.length||(N=tet(T)),r.constructSignatures=N}}function _et(r,a,l){return Vi(r,N_([a.indexType,a.objectType],[wd(0),Pd([l])]))}function fet(r){let a=Ug(r.source,Fe),l=ng(r.mappedType),_=!(l&1),m=l&4?0:16777216,h=a?[ig(Fe,WY(a.type,r.mappedType,r.constraintType),_&&a.isReadonly)]:Ve,T=Gs();for(let N of Qa(r.source)){let F=8192|(_&&Id(N)?8:0),U=ja(4|N.flags&m,N.escapedName,F);if(U.declarations=N.declarations,U.links.nameType=Ti(N).nameType,U.links.propertyType=Vn(N),r.constraintType.type.flags&8388608&&r.constraintType.type.objectType.flags&262144&&r.constraintType.type.indexType.flags&262144){let re=r.constraintType.type.objectType,le=_et(r.mappedType,r.constraintType.type,re);U.links.mappedType=le,U.links.constraintType=sg(re)}else U.links.mappedType=r.mappedType,U.links.constraintType=r.constraintType;T.set(N.escapedName,U)}tp(r,T,Ve,Ve,h)}function pR(r){if(r.flags&4194304){let a=o_(r.type);return O0(a)?vwe(a):sg(a)}if(r.flags&16777216){if(r.root.isDistributive){let a=r.checkType,l=pR(a);if(l!==a)return Gde(r,ck(r.root.checkType,l,r.mapper))}return r}if(r.flags&1048576)return zo(r,pR,!0);if(r.flags&2097152){let a=r.types;return a.length===2&&a[0].flags&76&&a[1]===zc?r:ya(sl(r.types,pR))}return r}function Ype(r){return lc(r)&4096}function Zpe(r,a,l,_){for(let m of Qa(r))_(wD(m,a));if(r.flags&1)_(Fe);else for(let m of $u(r))(!l||m.keyType.flags&134217732)&&_(m.keyType)}function pet(r){let a=Gs(),l;tp(r,V,Ve,Ve,Ve);let _=Cd(r),m=Op(r),h=r.target||r,T=P0(h),N=!T||IPe(h),F=kh(h),U=o_(ek(r)),re=ng(r),le=xe?128:8576;qN(r)?Zpe(U,le,xe,Te):HS(pR(m),Te),tp(r,a,Ve,Ve,l||Ve);function Te(st){let Et=T?Vi(T,tI(r.mapper,_,st)):st;HS(Et,Yt=>Ne(st,Yt))}function Ne(st,Et){if(Sp(Et)){let Yt=xp(Et),pn=a.get(Yt);if(pn)pn.links.nameType=Jr([pn.links.nameType,Et]),pn.links.keyType=Jr([pn.links.keyType,st]);else{let tr=Sp(st)?Ks(U,xp(st)):void 0,yn=!!(re&4||!(re&8)&&tr&&tr.flags&16777216),Ut=!!(re&1||!(re&2)&&tr&&Id(tr)),On=H&&!yn&&tr&&tr.flags&16777216,kn=tr?Ype(tr):0,wn=ja(4|(yn?16777216:0),Yt,kn|262144|(Ut?8:0)|(On?524288:0));wn.links.mappedType=r,wn.links.nameType=Et,wn.links.keyType=st,tr&&(wn.links.syntheticOrigin=tr,wn.declarations=N?tr.declarations:void 0),a.set(Yt,wn)}}else if(iY(Et)||Et.flags&33){let Yt=Et.flags&5?Fe:Et.flags&40?St:Et,pn=Vi(F,tI(r.mapper,_,st)),tr=GN(U,Et),yn=!!(re&1||!(re&2)&&tr?.isReadonly),Ut=ig(Yt,pn,yn);l=wPe(l,Ut,!0)}}}function det(r){if(!r.links.type){let a=r.links.mappedType;if(!Km(r,0))return a.containsError=!0,ot;let l=kh(a.target||a),_=tI(a.mapper,Cd(a),r.links.keyType),m=Vi(l,_),h=H&&r.flags&16777216&&!oc(m,49152)?qy(m,!0):r.links.checkFlags&524288?jY(m):m;lm()||(je(D,d.Type_of_property_0_circularly_references_itself_in_mapped_type_1,ci(r),hn(a)),h=ot),r.links.type=h}return r.links.type}function Cd(r){return r.typeParameter||(r.typeParameter=MS(fr(r.declaration.typeParameter)))}function Op(r){return r.constraintType||(r.constraintType=Nu(Cd(r))||ot)}function P0(r){return r.declaration.nameType?r.nameType||(r.nameType=Vi(li(r.declaration.nameType),r.mapper)):void 0}function kh(r){return r.templateType||(r.templateType=r.declaration.type?Vi(Ol(li(r.declaration.type),!0,!!(ng(r)&4)),r.mapper):ot)}function APe(r){return wk(r.declaration.typeParameter)}function qN(r){let a=APe(r);return a.kind===198&&a.operator===143}function ek(r){if(!r.modifiersType)if(qN(r))r.modifiersType=Vi(li(APe(r).type),r.mapper);else{let a=Rde(r.declaration),l=Op(a),_=l&&l.flags&262144?Nu(l):l;r.modifiersType=_&&_.flags&4194304?Vi(_.type,r.mapper):ln}return r.modifiersType}function ng(r){let a=r.declaration;return(a.readonlyToken?a.readonlyToken.kind===41?2:1:0)|(a.questionToken?a.questionToken.kind===41?8:4:0)}function NPe(r){let a=ng(r);return a&8?-1:a&4?1:0}function Kpe(r){let a=NPe(r),l=ek(r);return a||(jf(l)?NPe(l):0)}function met(r){return!!(Ir(r)&32&&ng(r)&4)}function jf(r){if(Ir(r)&32){let a=Op(r);if(pv(a))return!0;let l=P0(r);if(l&&pv(Vi(l,$b(Cd(r),a))))return!0}return!1}function IPe(r){let a=P0(r);return!!a&&da(a,Cd(r))}function Ed(r){return r.members||(r.flags&524288?r.objectFlags&4?ZKe(r):r.objectFlags&3?YKe(r):r.objectFlags&1024?fet(r):r.objectFlags&16?uet(r):r.objectFlags&32?pet(r):E.fail("Unhandled object type "+E.formatObjectFlags(r.objectFlags)):r.flags&1048576?aet(r):r.flags&2097152?cet(r):E.fail("Unhandled type "+E.formatTypeFlags(r.flags))),r}function My(r){return r.flags&524288?Ed(r).properties:Ve}function lv(r,a){if(r.flags&524288){let _=Ed(r).members.get(a);if(_&&Ey(_))return _}}function dR(r){if(!r.resolvedProperties){let a=Gs();for(let l of r.types){for(let _ of Qa(l))if(!a.has(_.escapedName)){let m=sde(r,_.escapedName);m&&a.set(_.escapedName,m)}if(r.flags&1048576&&$u(l).length===0)break}r.resolvedProperties=Jb(a)}return r.resolvedProperties}function Qa(r){return r=kD(r),r.flags&3145728?dR(r):My(r)}function get(r,a){r=kD(r),r.flags&3670016&&Ed(r).members.forEach((l,_)=>{PS(l,_)&&a(l,_)})}function het(r,a){return a.properties.some(_=>{let m=_.name&&(md(_.name)?b_(Zw(_.name)):N0(_.name)),h=m&&Sp(m)?xp(m):void 0,T=h===void 0?void 0:q(r,h);return!!T&&sI(T)&&!da(fk(_),T)})}function yet(r){let a=Jr(r);if(!(a.flags&1048576))return she(a);let l=Gs();for(let _ of r)for(let{escapedName:m}of she(_))if(!l.has(m)){let h=RPe(a,m);h&&l.set(m,h)}return hs(l.values())}function RS(r){return r.flags&262144?Nu(r):r.flags&8388608?vet(r):r.flags&16777216?LPe(r):a_(r)}function Nu(r){return HN(r)?ED(r):void 0}function tk(r,a=0){var l;return a<5&&!!(r&&(r.flags&262144&&ft((l=r.symbol)==null?void 0:l.declarations,_=>Mr(_,4096))||r.flags&3145728&&ft(r.types,_=>tk(_,a))||r.flags&8388608&&tk(r.objectType,a+1)||r.flags&16777216&&tk(LPe(r),a+1)||r.flags&33554432&&tk(r.baseType,a)||O0(r)&&Qo(fv(r),(_,m)=>!!(r.target.elementFlags[m]&8)&&tk(_,a))>=0))}function vet(r){return HN(r)?bet(r):void 0}function ede(r){let a=Eh(r,!1);return a!==r?a:RS(r)}function bet(r){if(ide(r)||jf(r.objectType))return fY(r.objectType,r.indexType);let a=ede(r.indexType);if(a&&a!==r.indexType){let _=Jy(r.objectType,a,r.accessFlags);if(_)return _}let l=ede(r.objectType);if(l&&l!==r.objectType)return Jy(l,r.indexType,r.accessFlags)}function tde(r){if(!r.resolvedDefaultConstraint){let a=int(r),l=mv(r);r.resolvedDefaultConstraint=Ae(a)?l:Ae(l)?a:Jr([a,l])}return r.resolvedDefaultConstraint}function FPe(r){if(r.resolvedConstraintOfDistributive!==void 0)return r.resolvedConstraintOfDistributive||void 0;if(r.root.isDistributive&&r.restrictiveInstantiation!==r){let a=Eh(r.checkType,!1),l=a===r.checkType?RS(a):a;if(l&&l!==r.checkType){let _=Gde(r,ck(r.root.checkType,l,r.mapper));if(!(_.flags&131072))return r.resolvedConstraintOfDistributive=_,_}}r.resolvedConstraintOfDistributive=!1}function OPe(r){return FPe(r)||tde(r)}function LPe(r){return HN(r)?OPe(r):void 0}function xet(r,a){let l,_=!1;for(let m of r)if(m.flags&465829888){let h=RS(m);for(;h&&h.flags&21233664;)h=RS(h);h&&(l=_n(l,h),a&&(l=_n(l,m)))}else(m.flags&469892092||wh(m))&&(_=!0);if(l&&(a||_)){if(_)for(let m of r)(m.flags&469892092||wh(m))&&(l=_n(l,m));return DR(ya(l),!1)}}function a_(r){if(r.flags&464781312||O0(r)){let a=nde(r);return a!==Jo&&a!==nl?a:void 0}return r.flags&4194304?Nc:void 0}function Ch(r){return a_(r)||r}function HN(r){return nde(r)!==nl}function nde(r){if(r.resolvedBaseConstraint)return r.resolvedBaseConstraint;let a=[];return r.resolvedBaseConstraint=l(r);function l(h){if(!h.immediateBaseConstraint){if(!Km(h,4))return nl;let T,N=NY(h);if((a.length<10||a.length<50&&!gs(a,N))&&(a.push(N),T=m(Eh(h,!1)),a.pop()),!lm()){if(h.flags&262144){let F=gde(h);if(F){let U=je(F,d.Type_parameter_0_has_a_circular_constraint,hn(h));D&&!zv(F,D)&&!zv(D,F)&&ga(U,vr(D,d.Circularity_originates_in_type_at_this_location))}}T=nl}h.immediateBaseConstraint=T||Jo}return h.immediateBaseConstraint}function _(h){let T=l(h);return T!==Jo&&T!==nl?T:void 0}function m(h){if(h.flags&262144){let T=ED(h);return h.isThisType||!T?T:_(T)}if(h.flags&3145728){let T=h.types,N=[],F=!1;for(let U of T){let re=_(U);re?(re!==U&&(F=!0),N.push(re)):F=!0}return F?h.flags&1048576&&N.length===T.length?Jr(N):h.flags&2097152&&N.length?ya(N):void 0:h}if(h.flags&4194304)return Nc;if(h.flags&134217728){let T=h.types,N=Ri(T,_);return N.length===T.length?JS(h.texts,N):Fe}if(h.flags&268435456){let T=_(h.type);return T&&T!==h.type?ik(h.symbol,T):Fe}if(h.flags&8388608){if(ide(h))return _(fY(h.objectType,h.indexType));let T=_(h.objectType),N=_(h.indexType),F=T&&N&&Jy(T,N,h.accessFlags);return F&&_(F)}if(h.flags&16777216){let T=OPe(h);return T&&_(T)}if(h.flags&33554432)return _(vde(h));if(O0(h)){let T=Kt(fv(h),(N,F)=>{let U=N.flags&262144&&h.target.elementFlags[F]&8&&_(N)||N;return U!==N&&Bf(U,re=>Xb(re)&&!O0(re))?U:N});return Pd(T,h.target.elementFlags,h.target.readonly,h.target.labeledElementDeclarations)}return h}}function Tet(r,a){return r.resolvedApparentType||(r.resolvedApparentType=uf(r,a,!0))}function rde(r){if(r.default)r.default===qu&&(r.default=nl);else if(r.target){let a=rde(r.target);r.default=a?Vi(a,r.mapper):Jo}else{r.default=qu;let a=r.symbol&&Qt(r.symbol.declarations,_=>Ko(_)&&_.default),l=a?li(a):Jo;r.default===qu&&(r.default=l)}return r.default}function jS(r){let a=rde(r);return a!==Jo&&a!==nl?a:void 0}function ket(r){return rde(r)!==nl}function MPe(r){return!!(r.symbol&&Qt(r.symbol.declarations,a=>Ko(a)&&a.default))}function Cet(r){return r.resolvedApparentType||(r.resolvedApparentType=Eet(r))}function Eet(r){let a=SY(r);if(a&&!r.declaration.nameType){let l=Nu(a);if(l&&Bf(l,Xb))return Vi(r,ck(a,l,r.mapper))}return r}function ide(r){let a;return!!(r.flags&8388608&&Ir(a=r.objectType)&32&&!jf(a)&&pv(r.indexType)&&!(ng(a)&8)&&!a.declaration.nameType)}function o_(r){let a=r.flags&465829888?a_(r)||ln:r,l=Ir(a);return l&32?Cet(a):l&4&&a!==r?uf(a,r):a.flags&2097152?Tet(a,r):a.flags&402653316?vc:a.flags&296?Ec:a.flags&2112?ltt():a.flags&528?Go:a.flags&12288?uwe():a.flags&67108864?Xs:a.flags&4194304?Nc:a.flags&2&&!H?Xs:a}function kD(r){return Dd(o_(Dd(r)))}function RPe(r,a,l){var _,m,h;let T,N,F,U=r.flags&1048576,re,le=4,Te=U?0:8,Ne=!1;for(let wn of r.types){let vn=o_(wn);if(!(tt(vn)||vn.flags&131072)){let lr=Ks(vn,a,l),bs=lr?Uf(lr):0;if(lr){if(lr.flags&106500&&(re??(re=U?0:16777216),U?re|=lr.flags&16777216:re&=lr.flags),!T)T=lr;else if(lr!==T)if((h4(lr)||lr)===(h4(T)||T)&&rme(T,lr,(ks,Xi)=>ks===Xi?-1:0)===-1)Ne=!!T.parent&&!!bn(un(T.parent));else{N||(N=new Map,N.set(ta(T),T));let ks=ta(lr);N.has(ks)||N.set(ks,lr)}U&&Id(lr)?Te|=8:!U&&!Id(lr)&&(Te&=-9),Te|=(bs&6?0:256)|(bs&4?512:0)|(bs&2?1024:0)|(bs&256?2048:0),ege(lr)||(le=2)}else if(U){let ws=!WN(a)&&nk(vn,a);ws?(Te|=32|(ws.isReadonly?8:0),F=_n(F,va(vn)?OY(vn)||j:ws.type)):bv(vn)&&!(Ir(vn)&2097152)?(Te|=32,F=_n(F,j)):Te|=16}}}if(!T||U&&(N||Te&48)&&Te&1536&&!(N&&Det(N.values())))return;if(!N&&!(Te&16)&&!F)if(Ne){let wn=(_=Ur(T,wm))==null?void 0:_.links,vn=VS(T,wn?.type);return vn.parent=(h=(m=T.valueDeclaration)==null?void 0:m.symbol)==null?void 0:h.parent,vn.links.containingType=r,vn.links.mapper=wn?.mapper,vn}else return T;let st=N?hs(N.values()):[T],Et,Yt,pn,tr=[],yn,Ut,On=!1;for(let wn of st){Ut?wn.valueDeclaration&&wn.valueDeclaration!==Ut&&(On=!0):Ut=wn.valueDeclaration,Et=Nr(Et,wn.declarations);let vn=Vn(wn);Yt||(Yt=vn,pn=Ti(wn).nameType);let lr=OS(wn);(yn||lr!==vn)&&(yn=_n(yn||tr.slice(),lr)),vn!==Yt&&(Te|=64),(sI(vn)||sk(vn))&&(Te|=128),vn.flags&131072&&vn!==Ho&&(Te|=131072),tr.push(vn)}Nr(tr,F);let kn=ja(4|(re??0),a,le|Te);return kn.links.containingType=r,!On&&Ut&&(kn.valueDeclaration=Ut,Ut.symbol.parent&&(kn.parent=Ut.symbol.parent)),kn.declarations=Et,kn.links.nameType=pn,tr.length>2?(kn.links.checkFlags|=65536,kn.links.deferralParent=r,kn.links.deferralConstituents=tr,kn.links.deferralWriteConstituents=yn):(kn.links.type=U?Jr(tr):ya(tr),yn&&(kn.links.writeType=U?Jr(yn):ya(yn))),kn}function jPe(r,a,l){var _,m;let h=(_=r.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&_.get(a)||!l?(m=r.propertyCache)==null?void 0:m.get(a):void 0;return h||(h=RPe(r,a,l),h&&(l?r.propertyCacheWithoutObjectFunctionPropertyAugment||(r.propertyCacheWithoutObjectFunctionPropertyAugment=Gs()):r.propertyCache||(r.propertyCache=Gs())).set(a,h)),h}function Det(r){let a;for(let l of r){if(!l.declarations)return;if(!a){a=new Set(l.declarations);continue}if(a.forEach(_=>{gs(l.declarations,_)||a.delete(_)}),a.size===0)return}return a}function sde(r,a,l){let _=jPe(r,a,l);return _&&!(lc(_)&16)?_:void 0}function Dd(r){return r.flags&1048576&&r.objectFlags&16777216?r.resolvedReducedType||(r.resolvedReducedType=Pet(r)):r.flags&2097152?(r.objectFlags&16777216||(r.objectFlags|=16777216|(ft(dR(r),wet)?33554432:0)),r.objectFlags&33554432?wr:r):r}function Pet(r){let a=sl(r.types,Dd);if(a===r.types)return r;let l=Jr(a);return l.flags&1048576&&(l.resolvedReducedType=l),l}function wet(r){return BPe(r)||JPe(r)}function BPe(r){return!(r.flags&16777216)&&(lc(r)&131264)===192&&!!(Vn(r).flags&131072)}function JPe(r){return!r.valueDeclaration&&!!(lc(r)&1024)}function ade(r){return!!(r.flags&1048576&&r.objectFlags&16777216&&ft(r.types,ade)||r.flags&2097152&&Aet(r))}function Aet(r){let a=r.uniqueLiteralFilledInstantiation||(r.uniqueLiteralFilledInstantiation=Vi(r,xs));return Dd(a)!==a}function ode(r,a){if(a.flags&2097152&&Ir(a)&33554432){let l=xr(dR(a),BPe);if(l)return ys(r,d.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,hn(a,void 0,536870912),ci(l));let _=xr(dR(a),JPe);if(_)return ys(r,d.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,hn(a,void 0,536870912),ci(_))}return r}function Ks(r,a,l,_){if(r=kD(r),r.flags&524288){let m=Ed(r),h=m.members.get(a);if(h&&Ey(h,_))return h;if(l)return;let T=m===Ht?Tt:m.callSignatures.length?Ln:m.constructSignatures.length?Gi:void 0;if(T){let N=lv(T,a);if(N)return N}return lv(ye,a)}if(r.flags&3145728)return sde(r,a,l)}function mR(r,a){if(r.flags&3670016){let l=Ed(r);return a===0?l.callSignatures:l.constructSignatures}return Ve}function Ps(r,a){let l=mR(kD(r),a);if(a===0&&!bn(l)&&r.flags&1048576){if(r.arrayFallbackSignatures)return r.arrayFallbackSignatures;let _;if(Bf(r,m=>{var h;return!!((h=m.symbol)!=null&&h.parent)&&Net(m.symbol.parent)&&(_?_===m.symbol.escapedName:(_=m.symbol.escapedName,!0))})){let m=zo(r,T=>Vy((zPe(T.symbol.parent)?Bs:Os).typeParameters[0],T.mapper)),h=hu(m,_m(r,T=>zPe(T.symbol.parent)));return r.arrayFallbackSignatures=Ps(q(h,_),a)}r.arrayFallbackSignatures=l}return l}function Net(r){return!r||!Os.symbol||!Bs.symbol?!1:!!Lf(r,Os.symbol)||!!Lf(r,Bs.symbol)}function zPe(r){return!r||!Bs.symbol?!1:!!Lf(r,Bs.symbol)}function cde(r,a){return xr(r,l=>l.keyType===a)}function lde(r,a){let l,_,m;for(let h of r)h.keyType===Fe?l=h:n4(a,h.keyType)&&(_?(m||(m=[_])).push(h):_=h);return m?ig(ln,ya(Kt(m,h=>h.type)),Fu(m,(h,T)=>h&&T.isReadonly,!0)):_||(l&&n4(a,Fe)?l:void 0)}function n4(r,a){return da(r,a)||a===Fe&&da(r,St)||a===St&&(r===fc||!!(r.flags&128)&&Sg(r.value))}function ude(r){return r.flags&3670016?Ed(r).indexInfos:Ve}function $u(r){return ude(kD(r))}function Ug(r,a){return cde($u(r),a)}function uv(r,a){var l;return(l=Ug(r,a))==null?void 0:l.type}function _de(r,a){return $u(r).filter(l=>n4(a,l.keyType))}function GN(r,a){return lde($u(r),a)}function nk(r,a){return GN(r,WN(a)?Br:b_(Ci(a)))}function VPe(r){var a;let l;for(let _ of q0(r))l=Xg(l,MS(_.symbol));return l?.length?l:al(r)?(a=CD(r))==null?void 0:a.typeParameters:void 0}function fde(r){let a=[];return r.forEach((l,_)=>{rv(_)||a.push(l)}),a}function eY(r,a){if(Al(r))return;let l=P_(me,'"'+r+'"',512);return l&&a?Ba(l):l}function $N(r){if(xx(r)||Qw(r)||Yw(r))return!0;if(r.initializer){let l=Lp(r.parent),_=r.parent.parameters.indexOf(r);return E.assert(_>=0),_>=mm(l,3)}let a=T2(r.parent);return a?!r.type&&!r.dotDotDotToken&&r.parent.parameters.indexOf(r)>=pZ(a).length:!1}function Iet(r){return Is(r)&&!zd(r)&&r.questionToken}function gR(r,a,l,_){return{kind:r,parameterName:a,parameterIndex:l,type:_}}function rg(r){let a=0;if(r)for(let l=0;l=l&&h<=m){let T=r?r.slice():[];for(let F=h;FN.arguments.length&&!Yt||Yw(st)||(m=l.length)}if((r.kind===177||r.kind===178)&&t4(r)&&(!T||!h)){let Ne=r.kind===177?178:177,st=Zo(fr(r),Ne);st&&(h=Iy(st))}if(Qn(r)){let Ne=k7(r);Ne&&Ne.typeExpression&&(h=VS(ja(1,"this"),li(Ne.typeExpression)))}let re=C1(r)?D2(r):r,le=re&&Cc(re)?ip(Ba(re.parent.symbol)):void 0,Te=le?le.localTypeParameters:VPe(r);(FJ(r)||Qn(r)&&Fet(r,l))&&(_|=1),(XE(r)&&Mr(r,64)||Cc(r)&&Mr(r.parent,64))&&(_|=4),a.resolvedSignature=Wg(r,Te,h,l,void 0,void 0,m,_)}return a.resolvedSignature}function Fet(r,a){if(C1(r)||!pde(r))return!1;let l=qo(r.parameters),_=l?Pk(l):c1(r).filter(gd),m=ba(_,T=>T.typeExpression&&oO(T.typeExpression.type)?T.typeExpression.type:void 0),h=ja(3,"args",32768);return m?h.links.type=hu(li(m.type)):(h.links.checkFlags|=65536,h.links.deferralParent=wr,h.links.deferralConstituents=[pc],h.links.deferralWriteConstituents=[pc]),m&&a.pop(),a.push(h),!0}function CD(r){if(!(Qn(r)&&To(r)))return;let a=a1(r);return a?.typeExpression&&QS(li(a.typeExpression))}function Oet(r,a){let l=CD(r);if(!l)return;let _=r.parameters.indexOf(a);return a.dotDotDotToken?gI(l,_):Nd(l,_)}function Let(r){let a=CD(r);return a&&Ua(a)}function pde(r){let a=Hr(r);return a.containsArgumentsReference===void 0&&(a.flags&512?a.containsArgumentsReference=!0:a.containsArgumentsReference=l(r.body)),a.containsArgumentsReference;function l(_){if(!_)return!1;switch(_.kind){case 80:return _.escapedText===at.escapedName&&NI(_)===at;case 172:case 174:case 177:case 178:return _.name.kind===167&&l(_.name);case 211:case 212:return l(_.expression);case 303:return l(_.initializer);default:return!Tz(_)&&!dg(_)&&!!vs(_,l)}}}function Wb(r){if(!r||!r.declarations)return Ve;let a=[];for(let l=0;l0&&_.body){let m=r.declarations[l-1];if(_.parent===m.parent&&_.kind===m.kind&&_.pos===m.end)continue}if(Qn(_)&&_.jsDoc){let m=!1;for(let h of _.jsDoc)if(h.tags){for(let T of h.tags)if(IC(T)){let N=T.typeExpression;N.type===void 0&&!Cc(_)&&yv(N,G),a.push(Lp(N)),m=!0}}if(m)continue}a.push(!Yv(_)&&!qp(_)&&CD(_)||Lp(_))}}return a}function WPe(r){let a=s_(r,r);if(a){let l=cf(a);if(l)return Vn(l)}return G}function _v(r){if(r.thisParameter)return Vn(r.thisParameter)}function sp(r){if(!r.resolvedTypePredicate){if(r.target){let a=sp(r.target);r.resolvedTypePredicate=a?vnt(a,r.mapper):He}else if(r.compositeSignatures)r.resolvedTypePredicate=Itt(r.compositeSignatures,r.compositeKind)||He;else{let a=r.declaration&&yp(r.declaration),l;if(!a){let _=CD(r.declaration);_&&r!==_&&(l=sp(_))}r.resolvedTypePredicate=a&&ZF(a)?Met(a,r):l||He}E.assert(!!r.resolvedTypePredicate)}return r.resolvedTypePredicate===He?void 0:r.resolvedTypePredicate}function Met(r,a){let l=r.parameterName,_=r.type&&li(r.type);return l.kind===197?gR(r.assertsModifier?2:0,void 0,void 0,_):gR(r.assertsModifier?3:1,l.escapedText,Qo(a.parameters,m=>m.escapedName===l.escapedText),_)}function UPe(r,a,l){return a!==2097152?Jr(r,l):ya(r)}function Ua(r){if(!r.resolvedReturnType){if(!Km(r,3))return ot;let a=r.target?Vi(Ua(r.target),r.mapper):r.compositeSignatures?Vi(UPe(Kt(r.compositeSignatures,Ua),r.compositeKind,2),r.mapper):r4(r.declaration)||(dc(r.declaration.body)?G:hZ(r.declaration));if(r.flags&8?a=C8e(a):r.flags&16&&(a=qy(a)),!lm()){if(r.declaration){let l=yp(r.declaration);if(l)je(l,d.Return_type_annotation_circularly_references_itself);else if(se){let _=r.declaration,m=us(_);m?je(m,d._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,co(m)):je(_,d.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}a=G}r.resolvedReturnType=a}return r.resolvedReturnType}function r4(r){if(r.kind===176)return ip(Ba(r.parent.symbol));let a=yp(r);if(C1(r)){let l=oE(r);if(l&&Cc(l.parent)&&!a)return ip(Ba(l.parent.parent.symbol))}if(Zk(r))return li(r.parameters[0].type);if(a)return li(a);if(r.kind===177&&t4(r)){let l=Qn(r)&&id(r);if(l)return l;let _=Zo(fr(r),178),m=Rf(_);if(m)return m}return Let(r)}function tY(r){return r.compositeSignatures&&ft(r.compositeSignatures,tY)||!r.resolvedReturnType&&av(r,3)>=0}function Ret(r){return qPe(r)||G}function qPe(r){if(Du(r)){let a=Vn(r.parameters[r.parameters.length-1]),l=va(a)?OY(a):a;return l&&uv(l,St)}}function XN(r,a,l,_){let m=dde(r,Ry(a,r.typeParameters,rg(r.typeParameters),l));if(_){let h=eNe(Ua(m));if(h){let T=UN(h);T.typeParameters=_;let N=UN(m);return N.resolvedReturnType=BS(T),N}}return m}function dde(r,a){let l=r.instantiations||(r.instantiations=new Map),_=Mp(a),m=l.get(_);return m||l.set(_,m=nY(r,a)),m}function nY(r,a){return c4(r,jet(r,a),!0)}function jet(r,a){return N_(r.typeParameters,a)}function QN(r){return r.typeParameters?r.erasedSignatureCache||(r.erasedSignatureCache=Bet(r)):r}function Bet(r){return c4(r,$we(r.typeParameters),!0)}function Jet(r){return r.typeParameters?r.canonicalSignatureCache||(r.canonicalSignatureCache=zet(r)):r}function zet(r){return XN(r,Kt(r.typeParameters,a=>a.target&&!Nu(a.target)?a.target:a),Qn(r.declaration))}function Vet(r){let a=r.typeParameters;if(a){if(r.baseSignatureCache)return r.baseSignatureCache;let l=$we(a),_=N_(a,Kt(a,h=>Nu(h)||ln)),m=Kt(a,h=>Vi(h,_)||ln);for(let h=0;h{iY(m)&&!cde(a,m)&&a.push(ig(m,l.type?li(l.type):G,M_(l,8),l))})}return a}return Ve}function iY(r){return!!(r.flags&4108)||sk(r)||!!(r.flags&2097152)&&!AD(r)&&ft(r.types,iY)}function gde(r){return Ri(Fr(r.symbol&&r.symbol.declarations,Ko),wk)[0]}function $Pe(r,a){var l;let _;if((l=r.symbol)!=null&&l.declarations){for(let m of r.symbol.declarations)if(m.parent.kind===195){let[h=m.parent,T]=Cte(m.parent.parent);if(T.kind===183&&!a){let N=T,F=jge(N);if(F){let U=N.typeArguments.indexOf(h);if(U()=>Kot(N,F,st))),Te=Vi(re,le);Te!==r&&(_=_n(_,Te))}}}}else if(T.kind===169&&T.dotDotDotToken||T.kind===191||T.kind===202&&T.dotDotDotToken)_=_n(_,hu(ln));else if(T.kind===204)_=_n(_,Fe);else if(T.kind===168&&T.parent.kind===200)_=_n(_,Nc);else if(T.kind===200&&T.type&&eo(T.type)===m.parent&&T.parent.kind===194&&T.parent.extendsType===T&&T.parent.checkType.kind===200&&T.parent.checkType.type){let N=T.parent.checkType,F=li(N.type);_=_n(_,Vi(F,$b(MS(fr(N.typeParameter)),N.typeParameter.constraint?li(N.typeParameter.constraint):Nc)))}}}return _&&ya(_)}function ED(r){if(!r.constraint)if(r.target){let a=Nu(r.target);r.constraint=a?Vi(a,r.mapper):Jo}else{let a=gde(r);if(!a)r.constraint=$Pe(r)||Jo;else{let l=li(a);l.flags&1&&!tt(l)&&(l=a.parent.parent.kind===200?Nc:ln),r.constraint=l}}return r.constraint===Jo?void 0:r.constraint}function XPe(r){let a=Zo(r.symbol,168),l=hd(a.parent)?v5(a.parent):a.parent;return l&&lf(l)}function Mp(r){let a="";if(r){let l=r.length,_=0;for(;_1&&(a+=":"+h),_+=h}}return a}function rk(r,a){return r?`@${ta(r)}`+(a?`:${Mp(a)}`:""):""}function sY(r,a){let l=0;for(let _ of r)(a===void 0||!(_.flags&a))&&(l|=Ir(_));return l&458752}function i4(r,a){return ft(a)&&r===as?ln:w0(r,a)}function w0(r,a){let l=Mp(a),_=r.instantiations.get(l);return _||(_=ep(4,r.symbol),r.instantiations.set(l,_),_.objectFlags|=a?sY(a):0,_.target=r,_.resolvedTypeArguments=a),_}function QPe(r){let a=k0(r.flags,r.symbol);return a.objectFlags=r.objectFlags,a.target=r.target,a.resolvedTypeArguments=r.resolvedTypeArguments,a}function hde(r,a,l,_,m){if(!_){_=ak(a);let T=o4(_);m=l?I0(T,l):T}let h=ep(4,r.symbol);return h.target=r,h.node=a,h.mapper=l,h.aliasSymbol=_,h.aliasTypeArguments=m,h}function vo(r){var a,l;if(!r.resolvedTypeArguments){if(!Km(r,6))return((a=r.target.localTypeParameters)==null?void 0:a.map(()=>ot))||Ve;let _=r.node,m=_?_.kind===183?es(r.target.outerTypeParameters,SZ(_,r.target.localTypeParameters)):_.kind===188?[li(_.elementType)]:Kt(_.elements,li):Ve;lm()?r.resolvedTypeArguments=r.mapper?I0(m,r.mapper):m:(r.resolvedTypeArguments=((l=r.target.localTypeParameters)==null?void 0:l.map(()=>ot))||Ve,je(r.node||D,r.target.symbol?d.Type_arguments_for_0_circularly_reference_themselves:d.Tuple_type_arguments_circularly_reference_themselves,r.target.symbol&&ci(r.target.symbol)))}return r.resolvedTypeArguments}function A0(r){return bn(r.target.typeParameters)}function YPe(r,a){let l=wo(Ba(a)),_=l.localTypeParameters;if(_){let m=bn(r.typeArguments),h=rg(_),T=Qn(r);if(!(!se&&T)&&(m_.length)){let U=T&&t0(r)&&!NC(r.parent),re=h===_.length?U?d.Expected_0_type_arguments_provide_these_with_an_extends_tag:d.Generic_type_0_requires_1_type_argument_s:U?d.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:d.Generic_type_0_requires_between_1_and_2_type_arguments,le=hn(l,void 0,2);if(je(r,re,le,h,_.length),!T)return ot}if(r.kind===183&&hwe(r,bn(r.typeArguments)!==_.length))return hde(l,r,void 0);let F=es(l.outerTypeParameters,Ry(hR(r),_,h,T));return w0(l,F)}return Ub(r,a)?l:ot}function s4(r,a,l,_){let m=wo(r);if(m===tn&&GO.has(r.escapedName)&&a&&a.length===1)return ik(r,a[0]);let h=Ti(r),T=h.typeParameters,N=Mp(a)+rk(l,_),F=h.instantiations.get(N);return F||h.instantiations.set(N,F=Ywe(m,N_(T,Ry(a,T,rg(T),Qn(r.valueDeclaration))),l,_)),F}function Wet(r,a){if(lc(a)&1048576){let m=hR(r),h=rk(a,m),T=Be.get(h);return T||(T=Wc(1,"error",void 0,`alias ${h}`),T.aliasSymbol=a,T.aliasTypeArguments=m,Be.set(h,T)),T}let l=wo(a),_=Ti(a).typeParameters;if(_){let m=bn(r.typeArguments),h=rg(_);if(m_.length)return je(r,h===_.length?d.Generic_type_0_requires_1_type_argument_s:d.Generic_type_0_requires_between_1_and_2_type_arguments,ci(a),h,_.length),ot;let T=ak(r),N=T&&(ZPe(a)||!ZPe(T))?T:void 0,F;if(N)F=o4(N);else if(B7(r)){let U=a4(r,2097152,!0);if(U&&U!==gt){let re=yl(U);re&&re.flags&524288&&(N=re,F=hR(r)||(_?[]:void 0))}}return s4(a,hR(r),N,F)}return Ub(r,a)?l:ot}function ZPe(r){var a;let l=(a=r.declarations)==null?void 0:a.find(yw);return!!(l&&yf(l))}function Uet(r){switch(r.kind){case 183:return r.typeName;case 233:let a=r.expression;if(gc(a))return a}}function KPe(r){return r.parent?`${KPe(r.parent)}.${r.escapedName}`:r.escapedName}function aY(r){let l=(r.kind===166?r.right:r.kind===211?r.name:r).escapedText;if(l){let _=r.kind===166?aY(r.left):r.kind===211?aY(r.expression):void 0,m=_?`${KPe(_)}.${l}`:l,h=we.get(m);return h||(we.set(m,h=ja(524288,l,1048576)),h.parent=_,h.links.declaredType=Dt),h}return gt}function a4(r,a,l){let _=Uet(r);if(!_)return gt;let m=yo(_,a,l);return m&&m!==gt?m:l?gt:aY(_)}function oY(r,a){if(a===gt)return ot;if(a=WT(a)||a,a.flags&96)return YPe(r,a);if(a.flags&524288)return Wet(r,a);let l=gPe(a);if(l)return Ub(r,a)?c_(l):ot;if(a.flags&111551&&cY(r)){let _=qet(r,a);return _||(a4(r,788968),Vn(a))}return ot}function qet(r,a){let l=Hr(r);if(!l.resolvedJSDocType){let _=Vn(a),m=_;if(a.valueDeclaration){let h=r.kind===205&&r.qualifier;_.symbol&&_.symbol!==a&&h&&(m=oY(r,_.symbol))}l.resolvedJSDocType=m}return l.resolvedJSDocType}function yde(r,a){if(a.flags&3||a===r||r.flags&1)return r;let l=`${Xu(r)}>${Xu(a)}`,_=Ki.get(l);if(_)return _;let m=Fp(33554432);return m.baseType=r,m.constraint=a,Ki.set(l,m),m}function vde(r){return ya([r.constraint,r.baseType])}function ewe(r){return r.kind===189&&r.elements.length===1}function twe(r,a,l){return ewe(a)&&ewe(l)?twe(r,a.elements[0],l.elements[0]):zy(li(a))===zy(r)?li(l):void 0}function Het(r,a){let l,_=!0;for(;a&&!Ai(a)&&a.kind!==327;){let m=a.parent;if(m.kind===169&&(_=!_),(_||r.flags&8650752)&&m.kind===194&&a===m.trueType){let h=twe(r,m.checkType,m.extendsType);h&&(l=_n(l,h))}else if(r.flags&262144&&m.kind===200&&a===m.type){let h=li(m);if(Cd(h)===zy(r)){let T=SY(h);if(T){let N=Nu(T);N&&Bf(N,Xb)&&(l=_n(l,Jr([St,fc])))}}}a=m}return l?yde(r,ya(l)):r}function cY(r){return!!(r.flags&16777216)&&(r.kind===183||r.kind===205)}function Ub(r,a){return r.typeArguments?(je(r,d.Type_0_is_not_generic,a?ci(a):r.typeName?co(r.typeName):WO),!1):!0}function nwe(r){if(Ie(r.typeName)){let a=r.typeArguments;switch(r.typeName.escapedText){case"String":return Ub(r),Fe;case"Number":return Ub(r),St;case"Boolean":return Ub(r),jr;case"Void":return Ub(r),Mi;case"Undefined":return Ub(r),j;case"Null":return Ub(r),De;case"Function":case"function":return Ub(r),Tt;case"array":return(!a||!a.length)&&!se?pc:void 0;case"promise":return(!a||!a.length)&&!se?rj(G):void 0;case"Object":if(a&&a.length===2){if(f5(r)){let l=li(a[0]),_=li(a[1]),m=l===Fe||l===St?[ig(l,_,!1)]:Ve;return ac(void 0,V,Ve,Ve,m)}return G}return Ub(r),se?void 0:G}}}function Get(r){let a=li(r.type);return H?LY(a,65536):a}function bde(r){let a=Hr(r);if(!a.resolvedType){if(eh(r)&&h2(r.parent))return a.resolvedSymbol=gt,a.resolvedType=Gc(r.parent.expression);let l,_,m=788968;cY(r)&&(_=nwe(r),_||(l=a4(r,m,!0),l===gt?l=a4(r,m|111551):a4(r,m),_=oY(r,l))),_||(l=a4(r,m),_=oY(r,l)),a.resolvedSymbol=l,a.resolvedType=_}return a.resolvedType}function hR(r){return Kt(r.typeArguments,li)}function rwe(r){let a=Hr(r);if(!a.resolvedType){let l=bNe(r);a.resolvedType=c_(_f(l))}return a.resolvedType}function iwe(r,a){function l(m){let h=m.declarations;if(h)for(let T of h)switch(T.kind){case 263:case 264:case 266:return T}}if(!r)return a?as:Xs;let _=wo(r);return _.flags&524288?bn(_.typeParameters)!==a?(je(l(r),d.Global_type_0_must_have_1_type_parameter_s,xc(r),a),a?as:Xs):_:(je(l(r),d.Global_type_0_must_be_a_class_or_interface_type,xc(r)),a?as:Xs)}function Sde(r,a){return DD(r,111551,a?d.Cannot_find_global_value_0:void 0)}function swe(r,a){return DD(r,788968,a?d.Cannot_find_global_type_0:void 0)}function lY(r,a,l){let _=DD(r,788968,l?d.Cannot_find_global_type_0:void 0);if(_&&(wo(_),bn(Ti(_).typeParameters)!==a)){let m=_.declarations&&xr(_.declarations,Xp);je(m,d.Global_type_0_must_have_1_type_parameter_s,xc(_),a);return}return _}function DD(r,a,l){return bc(void 0,r,a,l,r,!1,!1,!1)}function qc(r,a,l){let _=swe(r,l);return _||l?iwe(_,a):void 0}function $et(){return Um||(Um=qc("TypedPropertyDescriptor",1,!0)||as)}function Xet(){return jn||(jn=qc("TemplateStringsArray",0,!0)||Xs)}function awe(){return zr||(zr=qc("ImportMeta",0,!0)||Xs)}function owe(){if(!Vr){let r=ja(0,"ImportMetaExpression"),a=awe(),l=ja(4,"meta",8);l.parent=r,l.links.type=a;let _=Gs([l]);r.members=_,Vr=ac(r,_,Ve,Ve,Ve)}return Vr}function cwe(r){return Bi||(Bi=qc("ImportCallOptions",0,r))||Xs}function lwe(r){return n_||(n_=Sde("Symbol",r))}function Qet(r){return $f||($f=swe("SymbolConstructor",r))}function uwe(){return wg||(wg=qc("Symbol",0,!1))||Xs}function yR(r){return p0||(p0=qc("Promise",1,r))||as}function _we(r){return du||(du=qc("PromiseLike",1,r))||as}function xde(r){return Ag||(Ag=Sde("Promise",r))}function Yet(r){return V_||(V_=qc("PromiseConstructorLike",0,r))||Xs}function uY(r){return L||(L=qc("AsyncIterable",1,r))||as}function Zet(r){return pe||(pe=qc("AsyncIterator",3,r))||as}function Ket(r){return Ke||(Ke=qc("AsyncIterableIterator",1,r))||as}function ett(r){return It||(It=qc("AsyncGenerator",3,r))||as}function Tde(r){return Xf||(Xf=qc("Iterable",1,r))||as}function ttt(r){return r_||(r_=qc("Iterator",3,r))||as}function ntt(r){return Q||(Q=qc("IterableIterator",1,r))||as}function rtt(r){return Ze||(Ze=qc("Generator",3,r))||as}function itt(r){return Pt||(Pt=qc("IteratorYieldResult",1,r))||as}function stt(r){return At||(At=qc("IteratorReturnResult",1,r))||as}function fwe(r){return _a||(_a=qc("Disposable",0,r))||Xs}function att(r){return fa||(fa=qc("AsyncDisposable",0,r))||Xs}function pwe(r,a=0){let l=DD(r,788968,void 0);return l&&iwe(l,a)}function ott(){return sc||(sc=lY("Extract",2,!0)||gt),sc===gt?void 0:sc}function ctt(){return nu||(nu=lY("Omit",2,!0)||gt),nu===gt?void 0:nu}function kde(r){return hl||(hl=lY("Awaited",1,r)||(r?gt:void 0)),hl===gt?void 0:hl}function ltt(){return If||(If=qc("BigInt",0,!1))||Xs}function utt(r){return Ff??(Ff=qc("ClassDecoratorContext",1,r))??as}function _tt(r){return Ng??(Ng=qc("ClassMethodDecoratorContext",2,r))??as}function ftt(r){return qm??(qm=qc("ClassGetterDecoratorContext",2,r))??as}function ptt(r){return wi??(wi=qc("ClassSetterDecoratorContext",2,r))??as}function dtt(r){return gy??(gy=qc("ClassAccessorDecoratorContext",2,r))??as}function mtt(r){return hy??(hy=qc("ClassAccessorDecoratorTarget",2,r))??as}function gtt(r){return xd??(xd=qc("ClassAccessorDecoratorResult",2,r))??as}function htt(r){return Sb??(Sb=qc("ClassFieldDecoratorContext",2,r))??as}function ytt(){return ha||(ha=Sde("NaN",!1))}function vtt(){return Dp||(Dp=lY("Record",2,!0)||gt),Dp===gt?void 0:Dp}function YN(r,a){return r!==as?w0(r,a):Xs}function dwe(r){return YN($et(),[r])}function mwe(r){return YN(Tde(!0),[r])}function hu(r,a){return YN(a?Bs:Os,[r])}function Cde(r){switch(r.kind){case 190:return 2;case 191:return gwe(r);case 202:return r.questionToken?2:r.dotDotDotToken?gwe(r):1;default:return 1}}function gwe(r){return xR(r.type)?4:8}function btt(r){let a=Ttt(r.parent);if(xR(r))return a?Bs:Os;let _=Kt(r.elements,Cde);return Ede(_,a,Kt(r.elements,Stt))}function Stt(r){return QE(r)||ms(r)?r:void 0}function hwe(r,a){return!!ak(r)||ywe(r)&&(r.kind===188?jy(r.elementType):r.kind===189?ft(r.elements,jy):a||ft(r.typeArguments,jy))}function ywe(r){let a=r.parent;switch(a.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return ywe(a);case 265:return!0}return!1}function jy(r){switch(r.kind){case 183:return cY(r)||!!(a4(r,788968).flags&524288);case 186:return!0;case 198:return r.operator!==158&&jy(r.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return jy(r.type);case 191:return r.type.kind!==188||jy(r.type.elementType);case 192:case 193:return ft(r.types,jy);case 199:return jy(r.objectType)||jy(r.indexType);case 194:return jy(r.checkType)||jy(r.extendsType)||jy(r.trueType)||jy(r.falseType)}return!1}function xtt(r){let a=Hr(r);if(!a.resolvedType){let l=btt(r);if(l===as)a.resolvedType=Xs;else if(!(r.kind===189&&ft(r.elements,_=>!!(Cde(_)&8)))&&hwe(r))a.resolvedType=r.kind===189&&r.elements.length===0?l:hde(l,r,void 0);else{let _=r.kind===188?[li(r.elementType)]:Kt(r.elements,li);a.resolvedType=Dde(l,_)}}return a.resolvedType}function Ttt(r){return Gx(r)&&r.operator===148}function Pd(r,a,l=!1,_=[]){let m=Ede(a||Kt(r,h=>1),l,_);return m===as?Xs:r.length?Dde(m,r):m}function Ede(r,a,l){if(r.length===1&&r[0]&4)return a?Bs:Os;let _=Kt(r,h=>h&1?"#":h&2?"?":h&4?".":"*").join()+(a?"R":"")+(ft(l,h=>!!h)?","+Kt(l,h=>h?Va(h):"_").join(","):""),m=Hi.get(_);return m||Hi.set(_,m=ktt(r,a,l)),m}function ktt(r,a,l){let _=r.length,m=Lh(r,le=>!!(le&9)),h,T=[],N=0;if(_){h=new Array(_);for(let le=0;le<_;le++){let Te=h[le]=gu(),Ne=r[le];if(N|=Ne,!(N&12)){let st=ja(4|(Ne&2?16777216:0),""+le,a?8:0);st.links.tupleLabelDeclaration=l?.[le],st.links.type=Te,T.push(st)}}}let F=T.length,U=ja(4,"length",a?8:0);if(N&12)U.links.type=St;else{let le=[];for(let Te=m;Te<=_;Te++)le.push(wd(Te));U.links.type=Jr(le)}T.push(U);let re=ep(12);return re.typeParameters=h,re.outerTypeParameters=void 0,re.localTypeParameters=h,re.instantiations=new Map,re.instantiations.set(Mp(re.typeParameters),re),re.target=re,re.resolvedTypeArguments=re.typeParameters,re.thisType=gu(),re.thisType.isThisType=!0,re.thisType.constraint=re,re.declaredProperties=T,re.declaredCallSignatures=Ve,re.declaredConstructSignatures=Ve,re.declaredIndexInfos=Ve,re.elementFlags=r,re.minLength=m,re.fixedLength=F,re.hasRestElement=!!(N&12),re.combinedFlags=N,re.readonly=a,re.labeledElementDeclarations=l,re}function Dde(r,a){return r.objectFlags&8?Pde(r,a):w0(r,a)}function Pde(r,a){var l,_,m;if(!(r.combinedFlags&14))return w0(r,a);if(r.combinedFlags&8){let Ne=Qo(a,(st,Et)=>!!(r.elementFlags[Et]&8&&st.flags&1179648));if(Ne>=0)return vR(Kt(a,(st,Et)=>r.elementFlags[Et]&8?st:ln))?zo(a[Ne],st=>Pde(r,Ij(a,Ne,st))):ot}let h=[],T=[],N=[],F=-1,U=-1,re=-1;for(let Ne=0;Ne=1e4)return je(D,dg(D)?d.Type_produces_a_tuple_type_that_is_too_large_to_represent:d.Expression_produces_a_tuple_type_that_is_too_large_to_represent),ot;Qt(Yt,(pn,tr)=>{var yn;return Te(pn,st.target.elementFlags[tr],(yn=st.target.labeledElementDeclarations)==null?void 0:yn[tr])})}else Te(F0(st)&&uv(st,St)||ot,4,(_=r.labeledElementDeclarations)==null?void 0:_[Ne]);else Te(st,Et,(m=r.labeledElementDeclarations)==null?void 0:m[Ne])}for(let Ne=0;Ne=0&&UT[U+st]&8?G_(Ne,St):Ne)),h.splice(U+1,re-U),T.splice(U+1,re-U),N.splice(U+1,re-U));let le=Ede(T,r.readonly,N);return le===as?Xs:T.length?w0(le,h):le;function Te(Ne,st,Et){st&1&&(F=T.length),st&4&&U<0&&(U=T.length),st&6&&(re=T.length),h.push(st&2?Ol(Ne,!0):Ne),T.push(st),N.push(Et)}}function PD(r,a,l=0){let _=r.target,m=A0(r)-l;return a>_.fixedLength?urt(r)||Pd(Ve):Pd(vo(r).slice(a,m),_.elementFlags.slice(a,m),!1,_.labeledElementDeclarations&&_.labeledElementDeclarations.slice(a,m))}function vwe(r){return Jr(_n(rK(r.target.fixedLength,a=>b_(""+a)),sg(r.target.readonly?Bs:Os)))}function Ctt(r,a){let l=Qo(r.elementFlags,_=>!(_&a));return l>=0?l:r.elementFlags.length}function ZN(r,a){return r.elementFlags.length-a2(r.elementFlags,l=>!(l&a))-1}function wde(r){return r.fixedLength+ZN(r,3)}function fv(r){let a=vo(r),l=A0(r);return a.length===l?a:a.slice(0,l)}function Ett(r){return Ol(li(r.type),!0)}function Xu(r){return r.id}function By(r,a){return Rh(r,a,Xu,Io)>=0}function Ade(r,a){let l=Rh(r,a,Xu,Io);return l<0?(r.splice(~l,0,a),!0):!1}function Dtt(r,a,l){let _=l.flags;if(!(_&131072))if(a|=_&473694207,_&465829888&&(a|=33554432),l===wt&&(a|=8388608),!H&&_&98304)Ir(l)&65536||(a|=4194304);else{let m=r.length,h=m&&l.id>r[m-1].id?~m:Rh(r,l,Xu,Io);h<0&&r.splice(~h,0,l)}return a}function bwe(r,a,l){let _;for(let m of l)m!==_&&(a=m.flags&1048576?bwe(r,a|(Ntt(m)?1048576:0),m.types):Dtt(r,a,m),_=m);return a}function Ptt(r,a){var l;if(r.length<2)return r;let _=Mp(r),m=na.get(_);if(m)return m;let h=a&&ft(r,U=>!!(U.flags&524288)&&!jf(U)&&Yde(Ed(U))),T=r.length,N=T,F=0;for(;N>0;){N--;let U=r[N];if(h||U.flags&469499904){if(U.flags&262144&&Ch(U).flags&1048576){um(U,Jr(Kt(r,Te=>Te===U?wr:Te)),Qf)&&Ky(r,N);continue}let re=U.flags&61603840?xr(Qa(U),Te=>Ad(Vn(Te))):void 0,le=re&&c_(Vn(re));for(let Te of r)if(U!==Te){if(F===1e5&&F/(T-N)*T>1e6){(l=Wn)==null||l.instant(Wn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:r.map(st=>st.id)}),je(D,d.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(F++,re&&Te.flags&61603840){let Ne=q(Te,re.escapedName);if(Ne&&Ad(Ne)&&c_(Ne)!==le)continue}if(um(U,Te,Qf)&&(!(Ir(K6(U))&1)||!(Ir(K6(Te))&1)||hv(U,Te))){Ky(r,N);break}}}}return na.set(_,r),r}function wtt(r,a,l){let _=r.length;for(;_>0;){_--;let m=r[_],h=m.flags;(h&402653312&&a&4||h&256&&a&8||h&2048&&a&64||h&8192&&a&4096||l&&h&32768&&a&16384||Gb(m)&&By(r,m.regularType))&&Ky(r,_)}}function Att(r){let a=Fr(r,l=>!!(l.flags&134217728)&&sk(l));if(a.length){let l=r.length;for(;l>0;){l--;let _=r[l];_.flags&128&&ft(a,m=>UY(_,m))&&Ky(r,l)}}}function Ntt(r){return!!(r.flags&1048576&&(r.aliasSymbol||r.origin))}function Swe(r,a){for(let l of a)if(l.flags&1048576){let _=l.origin;l.aliasSymbol||_&&!(_.flags&1048576)?lp(r,l):_&&_.flags&1048576&&Swe(r,_.types)}}function Nde(r,a){let l=Bb(r);return l.types=a,l}function Jr(r,a=1,l,_,m){if(r.length===0)return wr;if(r.length===1)return r[0];if(r.length===2&&!m&&(r[0].flags&1048576||r[1].flags&1048576)){let h=a===0?"N":a===2?"S":"L",T=r[0].id=2&&h[0]===j&&h[1]===ee&&Ky(h,1),(T&402664352||T&16384&&T&32768)&&wtt(h,T,!!(a&2)),T&128&&T&134217728&&Att(h),a===2&&(h=Ptt(h,!!(T&524288)),!h))return ot;if(h.length===0)return T&65536?T&4194304?De:qe:T&32768?T&4194304?j:ce:wr}if(!m&&T&1048576){let F=[];Swe(F,r);let U=[];for(let le of h)ft(F,Te=>By(Te.types,le))||U.push(le);if(!l&&F.length===1&&U.length===0)return F[0];if(Fu(F,(le,Te)=>le+Te.types.length,0)+U.length===h.length){for(let le of F)Ade(U,le);m=Nde(1048576,U)}}let N=(T&36323331?0:32768)|(T&2097152?16777216:0);return Fde(h,N,l,_,m)}function Itt(r,a){let l,_=[];for(let h of r){let T=sp(h);if(T){if(T.kind!==0&&T.kind!==1||l&&!Ide(l,T))return;l=T,_.push(T.type)}else{let N=a!==2097152?Ua(h):void 0;if(N!==Wt&&N!==Rn)return}}if(!l)return;let m=UPe(_,a);return gR(l.kind,l.parameterName,l.parameterIndex,m)}function Ide(r,a){return r.kind===a.kind&&r.parameterIndex===a.parameterIndex}function Fde(r,a,l,_,m){if(r.length===0)return wr;if(r.length===1)return r[0];let T=(m?m.flags&1048576?`|${Mp(m.types)}`:m.flags&2097152?`&${Mp(m.types)}`:`#${m.type.id}|${Mp(r)}`:Mp(r))+rk(l,_),N=Ye.get(T);return N||(N=Fp(1048576),N.objectFlags=a|sY(r,98304),N.types=r,N.origin=m,N.aliasSymbol=l,N.aliasTypeArguments=_,r.length===2&&r[0].flags&512&&r[1].flags&512&&(N.flags|=16,N.intrinsicName="boolean"),Ye.set(T,N)),N}function Ftt(r){let a=Hr(r);if(!a.resolvedType){let l=ak(r);a.resolvedType=Jr(Kt(r.types,li),1,l,o4(l))}return a.resolvedType}function Ott(r,a,l){let _=l.flags;return _&2097152?Twe(r,a,l.types):(wh(l)?a&16777216||(a|=16777216,r.set(l.id.toString(),l)):(_&3?l===wt&&(a|=8388608):(H||!(_&98304))&&(l===ee&&(a|=262144,l=j),r.has(l.id.toString())||(l.flags&109472&&a&109472&&(a|=67108864),r.set(l.id.toString(),l))),a|=_&473694207),a)}function Twe(r,a,l){for(let _ of l)a=Ott(r,a,c_(_));return a}function Ltt(r,a){let l=r.length;for(;l>0;){l--;let _=r[l];(_.flags&4&&a&402653312||_.flags&8&&a&256||_.flags&64&&a&2048||_.flags&4096&&a&8192||_.flags&16384&&a&32768||wh(_)&&a&470302716)&&Ky(r,l)}}function Mtt(r,a){for(let l of r)if(!By(l.types,a)){let _=a.flags&128?Fe:a.flags&288?St:a.flags&2048?Mt:a.flags&8192?Br:void 0;if(!_||!By(l.types,_))return!1}return!0}function Rtt(r){let a=r.length,l=Fr(r,_=>!!(_.flags&128));for(;a>0;){a--;let _=r[a];if(_.flags&134217728){for(let m of l)if(Wy(m,_)){Ky(r,a);break}else if(sk(_))return!0}}return!1}function kwe(r,a){for(let l=0;l!(_.flags&a))}function jtt(r){let a,l=Qo(r,T=>!!(Ir(T)&32768));if(l<0)return!1;let _=l+1;for(;_!!(U.flags&1048576&&U.types[0].flags&32768))){let U=ft(T,oI)?ee:j;kwe(T,32768),F=Jr([ya(T),U],1,a,l)}else if(hi(T,U=>!!(U.flags&1048576&&(U.types[0].flags&65536||U.types[1].flags&65536))))kwe(T,65536),F=Jr([ya(T),De],1,a,l);else{if(!vR(T))return ot;let U=Jtt(T),re=ft(U,le=>!!(le.flags&2097152))&&Ode(U)>Ode(T)?Nde(2097152,T):void 0;F=Jr(U,1,a,l,re)}else F=Btt(T,a,l);An.set(N,F)}return F}function Cwe(r){return Fu(r,(a,l)=>l.flags&1048576?a*l.types.length:l.flags&131072?0:a,1)}function vR(r){var a;let l=Cwe(r);return l>=1e5?((a=Wn)==null||a.instant(Wn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:r.map(_=>_.id),size:l}),je(D,d.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function Jtt(r){let a=Cwe(r),l=[];for(let _=0;_=0;N--)if(r[N].flags&1048576){let F=r[N].types,U=F.length;m[N]=F[h%U],h=Math.floor(h/U)}let T=ya(m);T.flags&131072||l.push(T)}return l}function Ewe(r){return!(r.flags&3145728)||r.aliasSymbol?1:r.flags&1048576&&r.origin?Ewe(r.origin):Ode(r.types)}function Ode(r){return Fu(r,(a,l)=>a+Ewe(l),0)}function ztt(r){let a=Hr(r);if(!a.resolvedType){let l=ak(r),_=Kt(r.types,li),m=_.length===2?_.indexOf(zc):-1,h=m>=0?_[1-m]:ln,T=!!(h.flags&76||h.flags&134217728&&sk(h));a.resolvedType=ya(_,l,o4(l),T)}return a.resolvedType}function Dwe(r,a){let l=Fp(4194304);return l.type=r,l.indexFlags=a,l}function Vtt(r){let a=Bb(4194304);return a.type=r,a}function Pwe(r,a){return a&1?r.resolvedStringIndexType||(r.resolvedStringIndexType=Dwe(r,1)):r.resolvedIndexType||(r.resolvedIndexType=Dwe(r,0))}function Wtt(r,a){let l=Cd(r),_=Op(r),m=P0(r.target||r);if(!m&&!(a&2))return _;let h=[];if(qN(r)){if(pv(_))return Pwe(r,a);{let F=o_(ek(r));Zpe(F,8576,!!(a&1),N)}}else HS(pR(_),N);pv(_)&&HS(_,N);let T=a&2?Hc(Jr(h),F=>!(F.flags&5)):Jr(h);if(T.flags&1048576&&_.flags&1048576&&Mp(T.types)===Mp(_.types))return _;return T;function N(F){let U=m?Vi(m,tI(r.mapper,l,F)):F;h.push(U===Fe?js:U)}}function Utt(r){let a=Cd(r);return l(P0(r)||a);function l(_){return _.flags&470810623?!0:_.flags&16777216?_.root.isDistributive&&_.checkType===a:_.flags&137363456?hi(_.types,l):_.flags&8388608?l(_.objectType)&&l(_.indexType):_.flags&33554432?l(_.baseType)&&l(_.constraint):_.flags&268435456?l(_.type):!1}}function N0(r){if(Di(r))return wr;if(R_(r))return c_($i(r));if(Na(r))return c_(qg(r));let a=P2(r);return a!==void 0?b_(Ci(a)):ut(r)?c_($i(r)):wr}function wD(r,a,l){if(l||!(Uf(r)&6)){let _=Ti(KQ(r)).nameType;if(!_){let m=us(r.valueDeclaration);_=r.escapedName==="default"?b_("default"):m&&N0(m)||(Dw(r)?void 0:b_(xc(r)))}if(_&&_.flags&a)return _}return wr}function wwe(r,a){return!!(r.flags&a||r.flags&2097152&&ft(r.types,l=>wwe(l,a)))}function qtt(r,a,l){let _=l&&(Ir(r)&7||r.aliasSymbol)?Vtt(r):void 0,m=Kt(Qa(r),T=>wD(T,a)),h=Kt($u(r),T=>T!==Tr&&wwe(T.keyType,a)?T.keyType===Fe&&a&8?js:T.keyType:wr);return Jr(es(m,h),1,void 0,void 0,_)}function Awe(r,a=0){return!!(r.flags&58982400||O0(r)||jf(r)&&!Utt(r)||r.flags&1048576&&!(a&4)&&ade(r)||r.flags&2097152&&oc(r,465829888)&&ft(r.types,wh))}function sg(r,a=Me){return r=Dd(r),Awe(r,a)?Pwe(r,a):r.flags&1048576?ya(Kt(r.types,l=>sg(l,a))):r.flags&2097152?Jr(Kt(r.types,l=>sg(l,a))):Ir(r)&32?Wtt(r,a):r===wt?wt:r.flags&2?wr:r.flags&131073?Nc:qtt(r,(a&2?128:402653316)|(a&1?0:12584),a===Me)}function Nwe(r){if(xe)return r;let a=ott();return a?s4(a,[r,Fe]):Fe}function Htt(r){let a=Nwe(sg(r));return a.flags&131072?Fe:a}function Gtt(r){let a=Hr(r);if(!a.resolvedType)switch(r.operator){case 143:a.resolvedType=sg(li(r.type));break;case 158:a.resolvedType=r.type.kind===155?Vde(xw(r.parent)):ot;break;case 148:a.resolvedType=li(r.type);break;default:E.assertNever(r.operator)}return a.resolvedType}function $tt(r){let a=Hr(r);return a.resolvedType||(a.resolvedType=JS([r.head.text,...Kt(r.templateSpans,l=>l.literal.text)],Kt(r.templateSpans,l=>li(l.type)))),a.resolvedType}function JS(r,a){let l=Qo(a,U=>!!(U.flags&1179648));if(l>=0)return vR(a)?zo(a[l],U=>JS(r,Ij(a,l,U))):ot;if(gs(a,wt))return wt;let _=[],m=[],h=r[0];if(!F(r,a))return Fe;if(_.length===0)return b_(h);if(m.push(h),hi(m,U=>U==="")){if(hi(_,U=>!!(U.flags&4)))return Fe;if(_.length===1&&sk(_[0]))return _[0]}let T=`${Mp(_)}|${Kt(m,U=>U.length).join(",")}|${m.join("")}`,N=Wi.get(T);return N||Wi.set(T,N=Qtt(m,_)),N;function F(U,re){for(let le=0;leik(r,l)):a.flags&128?b_(Iwe(r,a.value)):a.flags&134217728?JS(...Ytt(r,a.texts,a.types)):a.flags&268435456&&r===a.symbol?a:a.flags&268435461||pv(a)?Fwe(r,a):bR(a)?Fwe(r,JS(["",""],[a])):a}function Iwe(r,a){switch(GO.get(r.escapedName)){case 0:return a.toUpperCase();case 1:return a.toLowerCase();case 2:return a.charAt(0).toUpperCase()+a.slice(1);case 3:return a.charAt(0).toLowerCase()+a.slice(1)}return a}function Ytt(r,a,l){switch(GO.get(r.escapedName)){case 0:return[a.map(_=>_.toUpperCase()),l.map(_=>ik(r,_))];case 1:return[a.map(_=>_.toLowerCase()),l.map(_=>ik(r,_))];case 2:return[a[0]===""?a:[a[0].charAt(0).toUpperCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[ik(r,l[0]),...l.slice(1)]:l];case 3:return[a[0]===""?a:[a[0].charAt(0).toLowerCase()+a[0].slice(1),...a.slice(1)],a[0]===""?[ik(r,l[0]),...l.slice(1)]:l]}return[a,l]}function Fwe(r,a){let l=`${ta(r)},${Xu(a)}`,_=Ii.get(l);return _||Ii.set(l,_=Ztt(r,a)),_}function Ztt(r,a){let l=k0(268435456,r);return l.type=a,l}function Ktt(r,a,l,_,m){let h=Fp(8388608);return h.objectType=r,h.indexType=a,h.accessFlags=l,h.aliasSymbol=_,h.aliasTypeArguments=m,h}function KN(r){if(se)return!1;if(Ir(r)&4096)return!0;if(r.flags&1048576)return hi(r.types,KN);if(r.flags&2097152)return ft(r.types,KN);if(r.flags&465829888){let a=nde(r);return a!==r&&KN(a)}return!1}function _Y(r,a){return Sp(r)?xp(r):a&&Rc(a)?P2(a):void 0}function Lde(r,a){if(a.flags&8208){let l=Fn(r.parent,_=>!ho(_))||r.parent;return Iv(l)?Dm(l)&&Ie(r)&&V8e(l,r):hi(a.declarations,_=>!As(_)||H1(_))}return!0}function Owe(r,a,l,_,m,h){let T=m&&m.kind===212?m:void 0,N=m&&Di(m)?void 0:_Y(l,m);if(N!==void 0){if(h&256)return Zb(a,N)||G;let U=Ks(a,N);if(U){if(h&64&&m&&U.declarations&&v0(U)&&Lde(m,U)){let le=T?.argumentExpression??($x(m)?m.indexType:m);Fg(le,U.declarations,N)}if(T){if(XR(U,T,XAe(T.expression,a.symbol)),MNe(T,U,kx(T))){je(T.argumentExpression,d.Cannot_assign_to_0_because_it_is_a_read_only_property,ci(U));return}if(h&8&&(Hr(m).resolvedSymbol=U),VAe(T,U))return vt}let re=h&4?OS(U):Vn(U);return T&&kx(T)!==1?Gy(T,re):m&&$x(m)&&oI(re)?Jr([re,j]):re}if(Bf(a,va)&&Sg(N)){let re=+N;if(m&&Bf(a,le=>!le.target.hasRestElement)&&!(h&16)){let le=Mde(m);if(va(a)){if(re<0)return je(le,d.A_tuple_type_cannot_be_indexed_with_a_negative_value),j;je(le,d.Tuple_type_0_of_length_1_has_no_element_at_index_2,hn(a),A0(a),Ci(N))}else je(le,d.Property_0_does_not_exist_on_type_1,Ci(N),hn(a))}if(re>=0)return F(Ug(a,St)),x8e(a,re,h&1?ee:void 0)}}if(!(l.flags&98304)&&Ul(l,402665900)){if(a.flags&131073)return a;let U=GN(a,l)||Ug(a,Fe);if(U){if(h&2&&U.keyType!==St){T&&(h&4?je(T,d.Type_0_is_generic_and_can_only_be_indexed_for_reading,hn(r)):je(T,d.Type_0_cannot_be_used_to_index_type_1,hn(l),hn(r)));return}if(m&&U.keyType===Fe&&!Ul(l,12)){let re=Mde(m);return je(re,d.Type_0_cannot_be_used_as_an_index_type,hn(l)),h&1?Jr([U.type,ee]):U.type}return F(U),h&1&&!(a.symbol&&a.symbol.flags&384&&l.symbol&&l.flags&1024&&v_(l.symbol)===a.symbol)?Jr([U.type,ee]):U.type}if(l.flags&131072)return wr;if(KN(a))return G;if(T&&!vZ(a)){if(bv(a)){if(se&&l.flags&384)return Ra.add(vr(T,d.Property_0_does_not_exist_on_type_1,l.value,hn(a))),j;if(l.flags&12){let re=Kt(a.properties,le=>Vn(le));return Jr(_n(re,j))}}if(a.symbol===Qe&&N!==void 0&&Qe.exports.has(N)&&Qe.exports.get(N).flags&418)je(T,d.Property_0_does_not_exist_on_type_1,Ci(N),hn(a));else if(se&&!J.suppressImplicitAnyIndexErrors&&!(h&128))if(N!==void 0&&HAe(N,a)){let re=hn(a);je(T,d.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,N,re,re+"["+Qc(T.argumentExpression)+"]")}else if(uv(a,St))je(T.argumentExpression,d.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let re;if(N!==void 0&&(re=oge(N,a)))re!==void 0&&je(T.argumentExpression,d.Property_0_does_not_exist_on_type_1_Did_you_mean_2,N,hn(a),re);else{let le=Xst(a,T,l);if(le!==void 0)je(T,d.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,hn(a),le);else{let Te;if(l.flags&1024)Te=ys(void 0,d.Property_0_does_not_exist_on_type_1,"["+hn(l)+"]",hn(a));else if(l.flags&8192){let Ne=Np(l.symbol,T);Te=ys(void 0,d.Property_0_does_not_exist_on_type_1,"["+Ne+"]",hn(a))}else l.flags&128||l.flags&256?Te=ys(void 0,d.Property_0_does_not_exist_on_type_1,l.value,hn(a)):l.flags&12&&(Te=ys(void 0,d.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,hn(l),hn(a)));Te=ys(Te,d.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,hn(_),hn(a)),Ra.add(nh(Mn(T),T,Te))}}}return}}if(KN(a))return G;if(m){let U=Mde(m);l.flags&384?je(U,d.Property_0_does_not_exist_on_type_1,""+l.value,hn(a)):l.flags&12?je(U,d.Type_0_has_no_matching_index_signature_for_type_1,hn(a),hn(l)):je(U,d.Type_0_cannot_be_used_as_an_index_type,hn(l))}if(Ae(l))return l;return;function F(U){U&&U.isReadonly&&T&&(hg(T)||gz(T))&&je(T,d.Index_signature_in_type_0_only_permits_reading,hn(a))}}function Mde(r){return r.kind===212?r.argumentExpression:r.kind===199?r.indexType:r.kind===167?r.expression:r}function bR(r){if(r.flags&2097152){let a=!1;for(let l of r.types)if(l.flags&101248||bR(l))a=!0;else if(!(l.flags&524288))return!1;return a}return!!(r.flags&77)||sk(r)}function sk(r){return!!(r.flags&134217728)&&hi(r.types,bR)||!!(r.flags&268435456)&&bR(r.type)}function AD(r){return!!eI(r)}function qb(r){return!!(eI(r)&4194304)}function pv(r){return!!(eI(r)&8388608)}function eI(r){return r.flags&3145728?(r.objectFlags&2097152||(r.objectFlags|=2097152|Fu(r.types,(a,l)=>a|eI(l),0)),r.objectFlags&12582912):r.flags&33554432?(r.objectFlags&2097152||(r.objectFlags|=2097152|eI(r.baseType)|eI(r.constraint)),r.objectFlags&12582912):(r.flags&58982400||jf(r)||O0(r)?4194304:0)|(r.flags&465829888&&!sk(r)?8388608:0)}function Eh(r,a){return r.flags&8388608?tnt(r,a):r.flags&16777216?nnt(r,a):r}function Lwe(r,a,l){if(r.flags&1048576||r.flags&2097152&&!Awe(r)){let _=Kt(r.types,m=>Eh(G_(m,a),l));return r.flags&2097152||l?ya(_):Jr(_)}}function ent(r,a,l){if(a.flags&1048576){let _=Kt(a.types,m=>Eh(G_(r,m),l));return l?ya(_):Jr(_)}}function tnt(r,a){let l=a?"simplifiedForWriting":"simplifiedForReading";if(r[l])return r[l]===nl?r:r[l];r[l]=nl;let _=Eh(r.objectType,a),m=Eh(r.indexType,a),h=ent(_,m,a);if(h)return r[l]=h;if(!(m.flags&465829888)){let T=Lwe(_,m,a);if(T)return r[l]=T}if(O0(_)&&m.flags&296){let T=LD(_,m.flags&8?0:_.target.fixedLength,0,a);if(T)return r[l]=T}return jf(_)&&(!P0(_)||IPe(_))?r[l]=zo(fY(_,r.indexType),T=>Eh(T,a)):r[l]=r}function nnt(r,a){let l=r.checkType,_=r.extendsType,m=dv(r),h=mv(r);if(h.flags&131072&&zy(m)===zy(l)){if(l.flags&1||da(zS(l),zS(_)))return Eh(m,a);if(Mwe(l,_))return wr}else if(m.flags&131072&&zy(h)===zy(l)){if(!(l.flags&1)&&da(zS(l),zS(_)))return wr;if(l.flags&1||Mwe(l,_))return Eh(h,a)}return r}function Mwe(r,a){return!!(Jr([fR(r,a),wr]).flags&131072)}function fY(r,a){let l=N_([Cd(r)],[a]),_=gv(r.mapper,l);return Vi(kh(r.target||r),_)}function G_(r,a,l=0,_,m,h){return Jy(r,a,l,_,m,h)||(_?ot:ln)}function Rwe(r,a){return Bf(r,l=>{if(l.flags&384){let _=xp(l);if(Sg(_)){let m=+_;return m>=0&&m0&&!ft(r.elements,a=>$V(a)||XV(a)||QE(a)&&!!(a.questionToken||a.dotDotDotToken))}function Jwe(r,a){return AD(r)||a&&va(r)&&ft(fv(r),AD)}function jde(r,a,l,_){let m,h,T=0;for(;;){if(T===1e3)return je(D,d.Type_instantiation_is_excessively_deep_and_possibly_infinite),ot;let F=Vi(zy(r.checkType),a),U=Vi(r.extendsType,a);if(F===ot||U===ot)return ot;if(F===wt||U===wt)return wt;let re=Bwe(r.node.checkType)&&Bwe(r.node.extendsType)&&bn(r.node.checkType.elements)===bn(r.node.extendsType.elements),le=Jwe(F,re),Te;if(r.inferTypeParameters){let st=sl(r.inferTypeParameters,rnt),Et=st!==r.inferTypeParameters?N_(r.inferTypeParameters,st):void 0,Yt=lI(st,void 0,0);if(Et){let tr=gv(a,Et);for(let yn=0;ynVy(Et,le)),Ne=N_(re.outerTypeParameters,Te),st=re.isDistributive?Vy(re.checkType,Ne):void 0;if(!st||st===re.checkType||!(st.flags&1179648))return r=re,a=Ne,l=void 0,_=void 0,re.aliasSymbol&&T++,!0}}return!1}}function dv(r){return r.resolvedTrueType||(r.resolvedTrueType=Vi(li(r.root.node.trueType),r.mapper))}function mv(r){return r.resolvedFalseType||(r.resolvedFalseType=Vi(li(r.root.node.falseType),r.mapper))}function int(r){return r.resolvedInferredTrueType||(r.resolvedInferredTrueType=r.combinedMapper?Vi(li(r.root.node.trueType),r.combinedMapper):dv(r))}function zwe(r){let a;return r.locals&&r.locals.forEach(l=>{l.flags&262144&&(a=_n(a,wo(l)))}),a}function snt(r){return r.isDistributive&&(kR(r.checkType,r.node.trueType)||kR(r.checkType,r.node.falseType))}function ant(r){let a=Hr(r);if(!a.resolvedType){let l=li(r.checkType),_=ak(r),m=o4(_),h=TD(r,!0),T=m?h:Fr(h,F=>kR(F,r)),N={node:r,checkType:l,extendsType:li(r.extendsType),isDistributive:!!(l.flags&262144),inferTypeParameters:zwe(r),outerTypeParameters:T,instantiations:void 0,aliasSymbol:_,aliasTypeArguments:m};a.resolvedType=jde(N,void 0),T&&(N.instantiations=new Map,N.instantiations.set(Mp(T),a.resolvedType))}return a.resolvedType}function ont(r){let a=Hr(r);return a.resolvedType||(a.resolvedType=MS(fr(r.typeParameter))),a.resolvedType}function Vwe(r){return Ie(r)?[r]:_n(Vwe(r.left),r.right)}function cnt(r){var a;let l=Hr(r);if(!l.resolvedType){if(!K0(r))return je(r.argument,d.String_literal_expected),l.resolvedSymbol=gt,l.resolvedType=ot;let _=r.isTypeOf?111551:r.flags&16777216?900095:788968,m=s_(r,r.argument.literal);if(!m)return l.resolvedSymbol=gt,l.resolvedType=ot;let h=!!((a=m.exports)!=null&&a.get("export=")),T=cf(m,!1);if(dc(r.qualifier))if(T.flags&_)l.resolvedType=Wwe(r,l,T,_);else{let N=_===111551?d.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:d.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;je(r,N,r.argument.literal.text),l.resolvedSymbol=gt,l.resolvedType=ot}else{let N=Vwe(r.qualifier),F=T,U;for(;U=N.shift();){let re=N.length?1920:_,le=Ba(Oc(F)),Te=r.isTypeOf||Qn(r)&&h?Ks(Vn(le),U.escapedText,!1,!0):void 0,st=(r.isTypeOf?void 0:P_(q_(le),U.escapedText,re))??Te;if(!st)return je(U,d.Namespace_0_has_no_exported_member_1,Np(F),co(U)),l.resolvedType=ot;Hr(U).resolvedSymbol=st,Hr(U.parent).resolvedSymbol=st,F=st}l.resolvedType=Wwe(r,l,F,_)}}return l.resolvedType}function Wwe(r,a,l,_){let m=Oc(l);return a.resolvedSymbol=m,_===111551?SNe(Vn(l),r):oY(r,m)}function Uwe(r){let a=Hr(r);if(!a.resolvedType){let l=ak(r);if(Ly(r.symbol).size===0&&!l)a.resolvedType=zc;else{let _=ep(16,r.symbol);_.aliasSymbol=l,_.aliasTypeArguments=o4(l),eT(r)&&r.isArrayType&&(_=hu(_)),a.resolvedType=_}}return a.resolvedType}function ak(r){let a=r.parent;for(;Hx(a)||q2(a)||Gx(a)&&a.operator===148;)a=a.parent;return yw(a)?fr(a):void 0}function o4(r){return r?un(r):void 0}function pY(r){return!!(r.flags&524288)&&!jf(r)}function Bde(r){return Ph(r)||!!(r.flags&474058748)}function Jde(r,a){if(!(r.flags&1048576))return r;if(hi(r.types,Bde))return xr(r.types,Ph)||Xs;let l=xr(r.types,h=>!Bde(h));if(!l||xr(r.types,h=>h!==l&&!Bde(h)))return r;return m(l);function m(h){let T=Gs();for(let F of Qa(h))if(!(Uf(F)&6)){if(dY(F)){let U=F.flags&65536&&!(F.flags&32768),le=ja(16777220,F.escapedName,Ype(F)|(a?8:0));le.links.type=U?j:Ol(Vn(F),!0),le.declarations=F.declarations,le.links.nameType=Ti(F).nameType,le.links.syntheticOrigin=F,T.set(F.escapedName,le)}}let N=ac(h.symbol,T,Ve,Ve,$u(h));return N.objectFlags|=131200,N}}function Hb(r,a,l,_,m){if(r.flags&1||a.flags&1)return G;if(r.flags&2||a.flags&2)return ln;if(r.flags&131072)return a;if(a.flags&131072)return r;if(r=Jde(r,m),r.flags&1048576)return vR([r,a])?zo(r,U=>Hb(U,a,l,_,m)):ot;if(a=Jde(a,m),a.flags&1048576)return vR([r,a])?zo(a,U=>Hb(r,U,l,_,m)):ot;if(a.flags&473960444)return r;if(qb(r)||qb(a)){if(Ph(r))return a;if(r.flags&2097152){let U=r.types,re=U[U.length-1];if(pY(re)&&pY(a))return ya(es(U.slice(0,U.length-1),[Hb(re,a,l,_,m)]))}return ya([r,a])}let h=Gs(),T=new Set,N=r===Xs?$u(a):EPe([r,a]);for(let U of Qa(a))Uf(U)&6?T.add(U.escapedName):dY(U)&&h.set(U.escapedName,zde(U,m));for(let U of Qa(r))if(!(T.has(U.escapedName)||!dY(U)))if(h.has(U.escapedName)){let re=h.get(U.escapedName),le=Vn(re);if(re.flags&16777216){let Te=es(U.declarations,re.declarations),Ne=4|U.flags&16777216,st=ja(Ne,U.escapedName),Et=Vn(U),Yt=jY(Et),pn=jY(le);st.links.type=Yt===pn?Et:Jr([Et,pn],2),st.links.leftSpread=U,st.links.rightSpread=re,st.declarations=Te,st.links.nameType=Ti(U).nameType,h.set(U.escapedName,st)}}else h.set(U.escapedName,zde(U,m));let F=ac(l,h,Ve,Ve,sl(N,U=>lnt(U,m)));return F.objectFlags|=2228352|_,F}function dY(r){var a;return!ft(r.declarations,ju)&&(!(r.flags&106496)||!((a=r.declarations)!=null&&a.some(l=>ei(l.parent))))}function zde(r,a){let l=r.flags&65536&&!(r.flags&32768);if(!l&&a===Id(r))return r;let _=4|r.flags&16777216,m=ja(_,r.escapedName,Ype(r)|(a?8:0));return m.links.type=l?j:Vn(r),m.declarations=r.declarations,m.links.nameType=Ti(r).nameType,m.links.syntheticOrigin=r,m}function lnt(r,a){return r.isReadonly!==a?ig(r.keyType,r.type,a,r.declaration):r}function SR(r,a,l,_){let m=k0(r,l);return m.value=a,m.regularType=_||m,m}function ok(r){if(r.flags&2976){if(!r.freshType){let a=SR(r.flags,r.value,r.symbol,r);a.freshType=a,r.freshType=a}return r.freshType}return r}function c_(r){return r.flags&2976?r.regularType:r.flags&1048576?r.regularType||(r.regularType=zo(r,c_)):r}function Gb(r){return!!(r.flags&2976)&&r.freshType===r}function b_(r){let a;return Ot.get(r)||(Ot.set(r,a=SR(128,r)),a)}function wd(r){let a;return Sn.get(r)||(Sn.set(r,a=SR(256,r)),a)}function mY(r){let a,l=Qv(r);return Cn.get(l)||(Cn.set(l,a=SR(2048,r)),a)}function unt(r,a,l){let _,m=`${a}${typeof r=="string"?"@":"#"}${r}`,h=1024|(typeof r=="string"?128:256);return Kn.get(m)||(Kn.set(m,_=SR(h,r,l)),_)}function _nt(r){if(r.literal.kind===106)return De;let a=Hr(r);return a.resolvedType||(a.resolvedType=c_($i(r.literal))),a.resolvedType}function fnt(r){let a=k0(8192,r);return a.escapedName=`__@${a.symbol.escapedName}@${ta(a.symbol)}`,a}function Vde(r){if(ote(r)){let a=e5(r)?lf(r.left):lf(r);if(a){let l=Ti(a);return l.uniqueESSymbolType||(l.uniqueESSymbolType=fnt(a))}}return Br}function pnt(r){let a=__(r,!1,!1),l=a&&a.parent;if(l&&(ei(l)||l.kind===264)&&!zs(a)&&(!Cc(a)||zv(r,a.body)))return ip(fr(l)).thisType;if(l&&xa(l)&&Yn(l.parent)&&mc(l.parent)===6)return ip(lf(l.parent.left).parent).thisType;let _=r.flags&16777216?_1(r):void 0;return _&&uo(_)&&Yn(_.parent)&&mc(_.parent)===3?ip(lf(_.parent.left).parent).thisType:dm(a)&&zv(r,a.body)?ip(fr(a)).thisType:(je(r,d.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),ot)}function gY(r){let a=Hr(r);return a.resolvedType||(a.resolvedType=pnt(r)),a.resolvedType}function qwe(r){return li(xR(r.type)||r.type)}function xR(r){switch(r.kind){case 196:return xR(r.type);case 189:if(r.elements.length===1&&(r=r.elements[0],r.kind===191||r.kind===202&&r.dotDotDotToken))return xR(r.type);break;case 188:return r.elementType}}function dnt(r){let a=Hr(r);return a.resolvedType||(a.resolvedType=r.dotDotDotToken?qwe(r):Ol(li(r.type),!0,!!r.questionToken))}function li(r){return Het(Hwe(r),r)}function Hwe(r){switch(r.kind){case 133:case 319:case 320:return G;case 159:return ln;case 154:return Fe;case 150:return St;case 163:return Mt;case 136:return jr;case 155:return Br;case 116:return Mi;case 157:return j;case 106:return De;case 146:return wr;case 151:return r.flags&524288&&!se?G:ua;case 141:return tn;case 197:case 110:return gY(r);case 201:return _nt(r);case 183:return bde(r);case 182:return r.assertsModifier?Mi:jr;case 233:return bde(r);case 186:return rwe(r);case 188:case 189:return xtt(r);case 190:return Ett(r);case 192:return Ftt(r);case 193:return ztt(r);case 321:return Get(r);case 323:return Ol(li(r.type));case 202:return dnt(r);case 196:case 322:case 316:return li(r.type);case 191:return qwe(r);case 325:return _ut(r);case 184:case 185:case 187:case 329:case 324:case 330:return Uwe(r);case 198:return Gtt(r);case 199:return jwe(r);case 200:return Rde(r);case 194:return ant(r);case 195:return ont(r);case 203:return $tt(r);case 205:return cnt(r);case 80:case 166:case 211:let a=ad(r);return a?wo(a):ot;default:return ot}}function hY(r,a,l){if(r&&r.length)for(let _=0;__.typeParameter),Kt(l,()=>ln))}function gv(r,a){return r?vY(4,r,a):a}function hnt(r,a){return r?vY(5,r,a):a}function ck(r,a,l){return l?vY(5,$b(r,a),l):$b(r,a)}function tI(r,a,l){return r?vY(5,r,$b(a,l)):$b(a,l)}function ynt(r){return!r.constraint&&!gde(r)||r.constraint===Jo?r:r.restrictiveInstantiation||(r.restrictiveInstantiation=gu(r.symbol),r.restrictiveInstantiation.constraint=Jo,r.restrictiveInstantiation)}function bY(r){let a=gu(r.symbol);return a.target=r,a}function vnt(r,a){return gR(r.kind,r.parameterName,r.parameterIndex,Vi(r.type,a))}function c4(r,a,l){let _;if(r.typeParameters&&!l){_=Kt(r.typeParameters,bY),a=gv(N_(r.typeParameters,_),a);for(let h of _)h.mapper=a}let m=Wg(r.declaration,_,r.thisParameter&&Ude(r.thisParameter,a),hY(r.parameters,a,Ude),void 0,void 0,r.minArgumentCount,r.flags&167);return m.target=r,m.mapper=a,m}function Ude(r,a){let l=Ti(r);if(l.type&&!vv(l.type)&&(!(r.flags&65536)||l.writeType&&!vv(l.writeType)))return r;lc(r)&1&&(r=l.target,a=gv(l.mapper,a));let _=ja(r.flags,r.escapedName,1|lc(r)&53256);return _.declarations=r.declarations,_.parent=r.parent,_.links.target=r,_.links.mapper=a,r.valueDeclaration&&(_.valueDeclaration=r.valueDeclaration),l.nameType&&(_.links.nameType=l.nameType),_}function bnt(r,a,l,_){let m=r.objectFlags&4||r.objectFlags&8388608?r.node:r.symbol.declarations[0],h=Hr(m),T=r.objectFlags&4?h.resolvedType:r.objectFlags&64?r.target:r,N=h.outerTypeParameters;if(!N){let F=TD(m,!0);if(dm(m)){let re=VPe(m);F=Nr(F,re)}N=F||Ve;let U=r.objectFlags&8388612?[m]:r.symbol.declarations;N=(T.objectFlags&8388612||T.symbol.flags&8192||T.symbol.flags&2048)&&!T.aliasTypeArguments?Fr(N,re=>ft(U,le=>kR(re,le))):N,h.outerTypeParameters=N}if(N.length){let F=gv(r.mapper,a),U=Kt(N,st=>Vy(st,F)),re=l||r.aliasSymbol,le=l?_:I0(r.aliasTypeArguments,a),Te=Mp(U)+rk(re,le);T.instantiations||(T.instantiations=new Map,T.instantiations.set(Mp(N)+rk(T.aliasSymbol,T.aliasTypeArguments),T));let Ne=T.instantiations.get(Te);if(!Ne){let st=N_(N,U);Ne=T.objectFlags&4?hde(r.target,r.node,st,re,le):T.objectFlags&32?Xwe(T,st,re,le):Hde(T,st,re,le),T.instantiations.set(Te,Ne);let Et=Ir(Ne);if(Ne.flags&3899393&&!(Et&524288)){let Yt=ft(U,vv);Ir(Ne)&524288||(Et&52?Ne.objectFlags|=524288|(Yt?1048576:0):Ne.objectFlags|=Yt?0:524288)}}return Ne}return r}function Snt(r){return!(r.parent.kind===183&&r.parent.typeArguments&&r===r.parent.typeName||r.parent.kind===205&&r.parent.typeArguments&&r===r.parent.qualifier)}function kR(r,a){if(r.symbol&&r.symbol.declarations&&r.symbol.declarations.length===1){let _=r.symbol.declarations[0].parent;for(let m=a;m!==_;m=m.parent)if(!m||m.kind===241||m.kind===194&&vs(m.extendsType,l))return!0;return l(a)}return!0;function l(_){switch(_.kind){case 197:return!!r.isThisType;case 80:return!r.isThisType&&dg(_)&&Snt(_)&&Hwe(_)===r;case 186:let m=_.exprName,h=tf(m);if(!Hv(h)){let T=sd(h),N=r.symbol.declarations[0],F=N.kind===168?N.parent:r.isThisType?N:void 0;if(T.declarations&&F)return ft(T.declarations,U=>zv(U,F))||ft(_.typeArguments,l)}return!0;case 174:case 173:return!_.type&&!!_.body||ft(_.typeParameters,l)||ft(_.parameters,l)||!!_.type&&l(_.type)}return!!vs(_,l)}}function SY(r){let a=Op(r);if(a.flags&4194304){let l=zy(a.type);if(l.flags&262144)return l}}function Xwe(r,a,l,_){let m=SY(r);if(m){let h=Vi(m,a);if(m!==h)return Z8e(Dd(h),T=>{if(T.flags&61603843&&T!==wt&&!tt(T)){if(!r.declaration.nameType){let N;if(cp(T)||T.flags&1&&av(m,4)<0&&(N=Nu(m))&&Bf(N,Xb))return Tnt(T,r,ck(m,T,a));if(O0(T))return xnt(T,r,m,a);if(va(T))return knt(T,r,ck(m,T,a))}return Hde(r,ck(m,T,a))}return T},l,_)}return Vi(Op(r),a)===wt?wt:Hde(r,a,l,_)}function qde(r,a){return a&1?!0:a&2?!1:r}function xnt(r,a,l,_){let m=r.target.elementFlags,h=Kt(fv(r),(N,F)=>{let U=m[F]&8?N:m[F]&4?hu(N):Pd([N],[m[F]]);return U===l?a:Xwe(a,ck(l,U,_))}),T=qde(r.target.readonly,ng(a));return Pd(h,Kt(h,N=>8),T)}function Tnt(r,a,l){let _=Qwe(a,St,!0,l);return tt(_)?ot:hu(_,qde(FD(r),ng(a)))}function knt(r,a,l){let _=r.target.elementFlags,m=Kt(fv(r),(F,U)=>Qwe(a,b_(""+U),!!(_[U]&2),l)),h=ng(a),T=h&4?Kt(_,F=>F&1?2:F):h&8?Kt(_,F=>F&2?1:F):_,N=qde(r.target.readonly,h);return gs(m,ot)?ot:Pd(m,T,N,r.target.labeledElementDeclarations)}function Qwe(r,a,l,_){let m=tI(_,Cd(r),a),h=Vi(kh(r.target||r),m),T=ng(r);return H&&T&4&&!oc(h,49152)?qy(h,!0):H&&T&8&&l?jp(h,524288):h}function Hde(r,a,l,_){let m=ep(r.objectFlags&-1572865|64,r.symbol);if(r.objectFlags&32){m.declaration=r.declaration;let h=Cd(r),T=bY(h);m.typeParameter=T,a=gv($b(h,T),a),T.mapper=a}return r.objectFlags&8388608&&(m.node=r.node),m.target=r,m.mapper=a,m.aliasSymbol=l||r.aliasSymbol,m.aliasTypeArguments=l?_:I0(r.aliasTypeArguments,a),m.objectFlags|=m.aliasTypeArguments?sY(m.aliasTypeArguments):0,m}function Gde(r,a,l,_){let m=r.root;if(m.outerTypeParameters){let h=Kt(m.outerTypeParameters,F=>Vy(F,a)),T=Mp(h)+rk(l,_),N=m.instantiations.get(T);if(!N){let F=N_(m.outerTypeParameters,h),U=m.checkType,re=m.isDistributive?Vy(U,F):void 0;N=re&&U!==re&&re.flags&1179648?Z8e(Dd(re),le=>jde(m,ck(U,le,F)),l,_):jde(m,F,l,_),m.instantiations.set(T,N)}return N}return r}function Vi(r,a){return r&&a?Ywe(r,a,void 0,void 0):r}function Ywe(r,a,l,_){var m;if(!vv(r))return r;if(C===100||x>=5e6)return(m=Wn)==null||m.instant(Wn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:r.id,instantiationDepth:C,instantiationCount:x}),je(D,d.Type_instantiation_is_excessively_deep_and_possibly_infinite),ot;S++,x++,C++;let h=Cnt(r,a,l,_);return C--,h}function Cnt(r,a,l,_){let m=r.flags;if(m&262144)return Vy(r,a);if(m&524288){let h=r.objectFlags;if(h&52){if(h&4&&!r.node){let T=r.resolvedTypeArguments,N=I0(T,a);return N!==T?Dde(r.target,N):r}return h&1024?Ent(r,a):bnt(r,a,l,_)}return r}if(m&3145728){let h=r.flags&1048576?r.origin:void 0,T=h&&h.flags&3145728?h.types:r.types,N=I0(T,a);if(N===T&&l===r.aliasSymbol)return r;let F=l||r.aliasSymbol,U=l?_:I0(r.aliasTypeArguments,a);return m&2097152||h&&h.flags&2097152?ya(N,F,U):Jr(N,1,F,U)}if(m&4194304)return sg(Vi(r.type,a));if(m&134217728)return JS(r.texts,I0(r.types,a));if(m&268435456)return ik(r.symbol,Vi(r.type,a));if(m&8388608){let h=l||r.aliasSymbol,T=l?_:I0(r.aliasTypeArguments,a);return G_(Vi(r.objectType,a),Vi(r.indexType,a),r.accessFlags,void 0,h,T)}if(m&16777216)return Gde(r,gv(r.mapper,a),l,_);if(m&33554432){let h=Vi(r.baseType,a),T=Vi(r.constraint,a);return h.flags&8650752&&AD(T)?yde(h,T):T.flags&3||da(zS(h),zS(T))?h:h.flags&8650752?yde(h,T):ya([T,h])}return r}function Ent(r,a){let l=Vi(r.mappedType,a);if(!(Ir(l)&32))return r;let _=Vi(r.constraintType,a);if(!(_.flags&4194304))return r;let m=A8e(Vi(r.source,a),l,_);return m||r}function xY(r){return r.flags&402915327?r:r.permissiveInstantiation||(r.permissiveInstantiation=Vi(r,gl))}function zS(r){return r.flags&402915327?r:(r.restrictiveInstantiation||(r.restrictiveInstantiation=Vi(r,ec),r.restrictiveInstantiation.restrictiveInstantiation=r.restrictiveInstantiation),r.restrictiveInstantiation)}function Dnt(r,a){return ig(r.keyType,Vi(r.type,a),r.isReadonly,r.declaration)}function ap(r){switch(E.assert(r.kind!==174||qp(r)),r.kind){case 218:case 219:case 174:case 262:return Zwe(r);case 210:return ft(r.properties,ap);case 209:return ft(r.elements,ap);case 227:return ap(r.whenTrue)||ap(r.whenFalse);case 226:return(r.operatorToken.kind===57||r.operatorToken.kind===61)&&(ap(r.left)||ap(r.right));case 303:return ap(r.initializer);case 217:return ap(r.expression);case 292:return ft(r.properties,ap)||Gd(r.parent)&&ft(r.parent.parent.children,ap);case 291:{let{initializer:a}=r;return!!a&&ap(a)}case 294:{let{expression:a}=r;return!!a&&ap(a)}}return!1}function Zwe(r){return sF(r)||Pnt(r)}function Pnt(r){return r.typeParameters||yp(r)||!r.body?!1:r.body.kind!==241?ap(r.body):!!Rv(r.body,a=>!!a.expression&&ap(a.expression))}function TY(r){return(Yv(r)||qp(r))&&Zwe(r)}function Kwe(r){if(r.flags&524288){let a=Ed(r);if(a.constructSignatures.length||a.callSignatures.length){let l=ep(16,r.symbol);return l.members=a.members,l.properties=a.properties,l.callSignatures=Ve,l.constructSignatures=Ve,l.indexInfos=Ve,l}}else if(r.flags&2097152)return ya(Kt(r.types,Kwe));return r}function Dh(r,a){return um(r,a,of)}function nI(r,a){return um(r,a,of)?-1:0}function $de(r,a){return um(r,a,U_)?-1:0}function wnt(r,a){return um(r,a,Hm)?-1:0}function Wy(r,a){return um(r,a,Hm)}function e8e(r,a){return um(r,a,Qf)}function da(r,a){return um(r,a,U_)}function hv(r,a){return r.flags&1048576?hi(r.types,l=>hv(l,a)):a.flags&1048576?ft(a.types,l=>hv(r,l)):r.flags&2097152?ft(r.types,l=>hv(l,a)):r.flags&58982400?hv(a_(r)||ln,a):wh(a)?!!(r.flags&67633152):a===ye?!!(r.flags&67633152)&&!wh(r):a===Tt?!!(r.flags&524288)&&wme(r):KT(r,K6(a))||cp(a)&&!FD(a)&&hv(r,Bs)}function kY(r,a){return um(r,a,i_)}function CR(r,a){return kY(r,a)||kY(a,r)}function Qu(r,a,l,_,m,h){return op(r,a,U_,l,_,m,h)}function Uy(r,a,l,_,m,h){return Xde(r,a,U_,l,_,m,h,void 0)}function Xde(r,a,l,_,m,h,T,N){return um(r,a,l)?!0:!_||!rI(m,r,a,l,h,T,N)?op(r,a,l,_,h,T,N):!1}function t8e(r){return!!(r.flags&16777216||r.flags&2097152&&ft(r.types,t8e))}function rI(r,a,l,_,m,h,T){if(!r||t8e(l))return!1;if(!op(a,l,_,void 0)&&Ant(r,a,l,_,m,h,T))return!0;switch(r.kind){case 234:if(!wb(r))break;case 294:case 217:return rI(r.expression,a,l,_,m,h,T);case 226:switch(r.operatorToken.kind){case 64:case 28:return rI(r.right,a,l,_,m,h,T)}break;case 210:return jnt(r,a,l,_,h,T);case 209:return Mnt(r,a,l,_,h,T);case 292:return Lnt(r,a,l,_,h,T);case 219:return Nnt(r,a,l,_,h,T)}return!1}function Ant(r,a,l,_,m,h,T){let N=Ps(a,0),F=Ps(a,1);for(let U of[F,N])if(ft(U,re=>{let le=Ua(re);return!(le.flags&131073)&&op(le,l,_,void 0)})){let re=T||{};Qu(a,l,r,m,h,re);let le=re.errors[re.errors.length-1];return ga(le,vr(r,U===F?d.Did_you_mean_to_use_new_with_this_expression:d.Did_you_mean_to_call_this_expression)),!0}return!1}function Nnt(r,a,l,_,m,h){if(Ds(r.body)||ft(r.parameters,j7))return!1;let T=QS(a);if(!T)return!1;let N=Ps(l,0);if(!bn(N))return!1;let F=r.body,U=Ua(T),re=Jr(Kt(N,Ua));if(!op(U,re,_,void 0)){let le=F&&rI(F,U,re,_,void 0,m,h);if(le)return le;let Te=h||{};if(op(U,re,_,F,void 0,m,Te),Te.errors)return l.symbol&&bn(l.symbol.declarations)&&ga(Te.errors[Te.errors.length-1],vr(l.symbol.declarations[0],d.The_expected_type_comes_from_the_return_type_of_this_signature)),!(Sl(r)&2)&&!q(U,"then")&&op(rj(U),re,_,void 0)&&ga(Te.errors[Te.errors.length-1],vr(r,d.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function n8e(r,a,l){let _=Jy(a,l);if(_)return _;if(a.flags&1048576){let m=u8e(r,a);if(m)return Jy(m,l)}}function r8e(r,a){VR(r,a,!1);let l=UD(r,1);return pI(),l}function ER(r,a,l,_,m,h){let T=!1;for(let N of r){let{errorNode:F,innerExpression:U,nameType:re,errorMessage:le}=N,Te=n8e(a,l,re);if(!Te||Te.flags&8388608)continue;let Ne=Jy(a,re);if(!Ne)continue;let st=_Y(re,void 0);if(!op(Ne,Te,_,void 0)){let Et=U&&rI(U,Ne,Te,_,void 0,m,h);if(T=!0,!Et){let Yt=h||{},pn=U?r8e(U,Ne):Ne;if(he&&EY(pn,Te)){let tr=vr(F,d.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,hn(pn),hn(Te));Ra.add(tr),Yt.errors=[tr]}else{let tr=!!(st&&(Ks(l,st)||gt).flags&16777216),yn=!!(st&&(Ks(a,st)||gt).flags&16777216);Te=Hy(Te,tr),Ne=Hy(Ne,tr&&yn),op(pn,Te,_,F,le,m,Yt)&&pn!==Ne&&op(Ne,Te,_,F,le,m,Yt)}if(Yt.errors){let tr=Yt.errors[Yt.errors.length-1],yn=Sp(re)?xp(re):void 0,Ut=yn!==void 0?Ks(l,yn):void 0,On=!1;if(!Ut){let kn=GN(l,re);kn&&kn.declaration&&!Mn(kn.declaration).hasNoDefaultLib&&(On=!0,ga(tr,vr(kn.declaration,d.The_expected_type_comes_from_this_index_signature)))}if(!On&&(Ut&&bn(Ut.declarations)||l.symbol&&bn(l.symbol.declarations))){let kn=Ut&&bn(Ut.declarations)?Ut.declarations[0]:l.symbol.declarations[0];Mn(kn).hasNoDefaultLib||ga(tr,vr(kn,d.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,yn&&!(re.flags&8192)?Ci(yn):hn(re),hn(l)))}}}}}return T}function Int(r,a,l,_,m,h){let T=Hc(l,FY),N=Hc(l,re=>!FY(re)),F=N!==wr?Gge(13,0,N,void 0):void 0,U=!1;for(let re=r.next();!re.done;re=r.next()){let{errorNode:le,innerExpression:Te,nameType:Ne,errorMessage:st}=re.value,Et=F,Yt=T!==wr?n8e(a,T,Ne):void 0;if(Yt&&!(Yt.flags&8388608)&&(Et=F?Jr([F,Yt]):Yt),!Et)continue;let pn=Jy(a,Ne);if(!pn)continue;let tr=_Y(Ne,void 0);if(!op(pn,Et,_,void 0)){let yn=Te&&rI(Te,pn,Et,_,void 0,m,h);if(U=!0,!yn){let Ut=h||{},On=Te?r8e(Te,pn):pn;if(he&&EY(On,Et)){let kn=vr(le,d.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,hn(On),hn(Et));Ra.add(kn),Ut.errors=[kn]}else{let kn=!!(tr&&(Ks(T,tr)||gt).flags&16777216),wn=!!(tr&&(Ks(a,tr)||gt).flags&16777216);Et=Hy(Et,kn),pn=Hy(pn,kn&&wn),op(On,Et,_,le,st,m,Ut)&&On!==pn&&op(pn,Et,_,le,st,m,Ut)}}}}return U}function*Fnt(r){if(bn(r.properties))for(let a of r.properties)Kx(a)||Xme(Zw(a.name))||(yield{errorNode:a.name,innerExpression:a.initializer,nameType:b_(Zw(a.name))})}function*Ont(r,a){if(!bn(r.children))return;let l=0;for(let _=0;_1,Yt,pn;if(Tde(!1)!==as){let yn=mwe(G);Yt=Hc(Ne,Ut=>da(Ut,yn)),pn=Hc(Ne,Ut=>!da(Ut,yn))}else Yt=Hc(Ne,FY),pn=Hc(Ne,yn=>!FY(yn));if(Et){if(Yt!==wr){let yn=Pd(iZ(U,0)),Ut=Ont(U,F);T=Int(Ut,yn,Yt,_,m,h)||T}else if(!um(G_(a,Te),Ne,_)){T=!0;let yn=je(U.openingElement.tagName,d.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,le,hn(Ne));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(yn)}}else if(pn!==wr){let yn=st[0],Ut=i8e(yn,Te,F);Ut&&(T=ER(function*(){yield Ut}(),a,l,_,m,h)||T)}else if(!um(G_(a,Te),Ne,_)){T=!0;let yn=je(U.openingElement.tagName,d.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,le,hn(Ne));h&&h.skipLogging&&(h.errors||(h.errors=[])).push(yn)}}return T;function F(){if(!N){let U=Qc(r.parent.tagName),re=UR($S(r)),le=re===void 0?"children":Ci(re),Te=G_(l,b_(le)),Ne=d._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={...Ne,key:"!!ALREADY FORMATTED!!",message:$z(Ne,U,le,hn(Te))}}return N}}function*s8e(r,a){let l=bn(r.elements);if(l)for(let _=0;_F:mm(r)>F))return _&&!(l&8)&&m(d.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,mm(r),F),0;r.typeParameters&&r.typeParameters!==a.typeParameters&&(a=Jet(a),r=tNe(r,a,void 0,T));let re=ff(r),le=yI(r),Te=yI(a);(le||Te)&&Vi(le||Te,N);let Ne=a.declaration?a.declaration.kind:0,st=!(l&3)&&K&&Ne!==174&&Ne!==173&&Ne!==176,Et=-1,Yt=_v(r);if(Yt&&Yt!==Mi){let yn=_v(a);if(yn){let Ut=!st&&T(Yt,yn,!1)||T(yn,Yt,_);if(!Ut)return _&&m(d.The_this_types_of_each_signature_are_incompatible),0;Et&=Ut}}let pn=le||Te?Math.min(re,F):Math.max(re,F),tr=le||Te?pn-1:-1;for(let yn=0;yn=mm(r)&&yn=3&&a[0].flags&32768&&a[1].flags&65536&&ft(a,wh)?67108864:0)}return!!(r.objectFlags&67108864)}return!1}function ND(r){return!!((r.flags&1048576?r.types[0]:r).flags&32768)}function o8e(r){return r.flags&524288&&!jf(r)&&Qa(r).length===0&&$u(r).length===1&&!!Ug(r,Fe)||r.flags&3145728&&hi(r.types,o8e)||!1}function Zde(r,a,l){let _=r.flags&8?v_(r):r,m=a.flags&8?v_(a):a;if(_===m)return!0;if(_.escapedName!==m.escapedName||!(_.flags&256)||!(m.flags&256))return!1;let h=ta(_)+","+ta(m),T=W1.get(h);if(T!==void 0&&!(!(T&4)&&T&2&&l))return!!(T&1);let N=Vn(m);for(let F of Qa(Vn(_)))if(F.flags&8){let U=Ks(N,F.escapedName);if(!U||!(U.flags&8))return l?(l(d.Property_0_is_missing_in_type_1,xc(F),hn(wo(m),void 0,64)),W1.set(h,6)):W1.set(h,2),!1}return W1.set(h,1),!0}function iI(r,a,l,_){let m=r.flags,h=a.flags;return h&1||m&131072||r===wt||h&2&&!(l===Qf&&m&1)?!0:h&131072?!1:!!(m&402653316&&h&4||m&128&&m&1024&&h&128&&!(h&1024)&&r.value===a.value||m&296&&h&8||m&256&&m&1024&&h&256&&!(h&1024)&&r.value===a.value||m&2112&&h&64||m&528&&h&16||m&12288&&h&4096||m&32&&h&32&&r.symbol.escapedName===a.symbol.escapedName&&Zde(r.symbol,a.symbol,_)||m&1024&&h&1024&&(m&1048576&&h&1048576&&Zde(r.symbol,a.symbol,_)||m&2944&&h&2944&&r.value===a.value&&Zde(r.symbol,a.symbol,_))||m&32768&&(!H&&!(h&3145728)||h&49152)||m&65536&&(!H&&!(h&3145728)||h&65536)||m&524288&&h&67108864&&!(l===Qf&&wh(r)&&!(Ir(r)&8192))||(l===U_||l===i_)&&(m&1||m&8&&(h&32||h&256&&h&1024)||m&256&&!(m&1024)&&(h&32||h&256&&h&1024&&r.value===a.value)||Vnt(a)))}function um(r,a,l){if(Gb(r)&&(r=r.regularType),Gb(a)&&(a=a.regularType),r===a)return!0;if(l!==of){if(l===i_&&!(a.flags&131072)&&iI(a,r,l)||iI(r,a,l))return!0}else if(!((r.flags|a.flags)&61865984)){if(r.flags!==a.flags)return!1;if(r.flags&67358815)return!0}if(r.flags&524288&&a.flags&524288){let _=l.get(wY(r,a,0,l,!1));if(_!==void 0)return!!(_&1)}return r.flags&469499904||a.flags&469499904?op(r,a,l,void 0):!1}function c8e(r,a){return Ir(r)&2048&&Xme(a.escapedName)}function DR(r,a){for(;;){let l=Gb(r)?r.regularType:O0(r)?Unt(r,a):Ir(r)&4?r.node?w0(r.target,vo(r)):ame(r)||r:r.flags&3145728?Wnt(r,a):r.flags&33554432?a?r.baseType:vde(r):r.flags&25165824?Eh(r,a):r;if(l===r)return l;r=l}}function Wnt(r,a){let l=Dd(r);if(l!==r)return l;if(r.flags&2097152&&ft(r.types,wh)){let _=sl(r.types,m=>DR(m,a));if(_!==r.types)return ya(_)}return r}function Unt(r,a){let l=fv(r),_=sl(l,m=>m.flags&25165824?Eh(m,a):m);return l!==_?Pde(r.target,_):r}function op(r,a,l,_,m,h,T){var N;let F,U,re,le,Te,Ne,st=0,Et=0,Yt=0,pn=0,tr=!1,yn=0,Ut=0,On,kn,wn=16e6-l.size>>3;E.assert(l!==of||!_,"no error reporting in identity checking");let vn=qn(r,a,3,!!_,m);if(kn&&ks(),tr){let $e=wY(r,a,0,l,!1);l.set($e,6),(N=Wn)==null||N.instant(Wn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:r.id,targetId:a.id,depth:Et,targetDepth:Yt});let pt=wn<=0?d.Excessive_complexity_comparing_types_0_and_1:d.Excessive_stack_depth_comparing_types_0_and_1,Vt=je(_||D,pt,hn(r),hn(a));T&&(T.errors||(T.errors=[])).push(Vt)}else if(F){if(h){let Vt=h();Vt&&(gne(Vt,F),F=Vt)}let $e;if(m&&_&&!vn&&r.symbol){let Vt=Ti(r.symbol);if(Vt.originatingImport&&!ef(Vt.originatingImport)&&op(Vn(Vt.target),a,l,void 0)){let pr=vr(Vt.originatingImport,d.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);$e=_n($e,pr)}}let pt=nh(Mn(_),_,F,$e);U&&ga(pt,...U),T&&(T.errors||(T.errors=[])).push(pt),(!T||!T.skipLogging)&&Ra.add(pt)}return _&&T&&T.skipLogging&&vn===0&&E.assert(!!T.errors,"missed opportunity to interact with error."),vn!==0;function lr($e){F=$e.errorInfo,On=$e.lastSkippedInfo,kn=$e.incompatibleStack,yn=$e.overrideNextErrorInfo,Ut=$e.skipParentCounter,U=$e.relatedInfo}function bs(){return{errorInfo:F,lastSkippedInfo:On,incompatibleStack:kn?.slice(),overrideNextErrorInfo:yn,skipParentCounter:Ut,relatedInfo:U?.slice()}}function ws($e,...pt){yn++,On=void 0,(kn||(kn=[])).push([$e,...pt])}function ks(){let $e=kn||[];kn=void 0;let pt=On;if(On=void 0,$e.length===1){Xi(...$e[0]),pt&&dn(void 0,...pt);return}let Vt="",Nn=[];for(;$e.length;){let[pr,...an]=$e.pop();switch(pr.code){case d.Types_of_property_0_are_incompatible.code:{Vt.indexOf("new ")===0&&(Vt=`(${Vt})`);let cr=""+an[0];Vt.length===0?Vt=`${cr}`:hf(cr,La(J))?Vt=`${Vt}.${cr}`:cr[0]==="["&&cr[cr.length-1]==="]"?Vt=`${Vt}${cr}`:Vt=`${Vt}[${cr}]`;break}case d.Call_signature_return_types_0_and_1_are_incompatible.code:case d.Construct_signature_return_types_0_and_1_are_incompatible.code:case d.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case d.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Vt.length===0){let cr=pr;pr.code===d.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?cr=d.Call_signature_return_types_0_and_1_are_incompatible:pr.code===d.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(cr=d.Construct_signature_return_types_0_and_1_are_incompatible),Nn.unshift([cr,an[0],an[1]])}else{let cr=pr.code===d.Construct_signature_return_types_0_and_1_are_incompatible.code||pr.code===d.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",ri=pr.code===d.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||pr.code===d.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Vt=`${cr}${Vt}(${ri})`}break}case d.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Nn.unshift([d.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,an[0],an[1]]);break}case d.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Nn.unshift([d.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,an[0],an[1],an[2]]);break}default:return E.fail(`Unhandled Diagnostic: ${pr.code}`)}}Vt?Xi(Vt[Vt.length-1]===")"?d.The_types_returned_by_0_are_incompatible_between_these_types:d.The_types_of_0_are_incompatible_between_these_types,Vt):Nn.shift();for(let[pr,...an]of Nn){let cr=pr.elidedInCompatabilityPyramid;pr.elidedInCompatabilityPyramid=!1,Xi(pr,...an),pr.elidedInCompatabilityPyramid=cr}pt&&dn(void 0,...pt)}function Xi($e,...pt){E.assert(!!_),kn&&ks(),!$e.elidedInCompatabilityPyramid&&(Ut===0?F=ys(F,$e,...pt):Ut--)}function Iu($e,...pt){Xi($e,...pt),Ut++}function Jf($e){E.assert(!!F),U?U.push($e):U=[$e]}function dn($e,pt,Vt){kn&&ks();let[Nn,pr]=wy(pt,Vt),an=pt,cr=Nn;if(sI(pt)&&!Kde(Vt)&&(an=Ah(pt),E.assert(!da(an,Vt),"generalized source shouldn't be assignable"),cr=C0(an)),(Vt.flags&8388608&&!(pt.flags&8388608)?Vt.objectType.flags:Vt.flags)&262144&&Vt!==A&&Vt!==Pe){let _i=a_(Vt),fs;_i&&(da(an,_i)||(fs=da(pt,_i)))?Xi(d._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,fs?Nn:cr,pr,hn(_i)):(F=void 0,Xi(d._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,pr,cr))}if($e)$e===d.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&he&&l8e(pt,Vt).length&&($e=d.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(l===i_)$e=d.Type_0_is_not_comparable_to_type_1;else if(Nn===pr)$e=d.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(he&&l8e(pt,Vt).length)$e=d.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if(pt.flags&128&&Vt.flags&1048576){let _i=Qst(pt,Vt);if(_i){Xi(d.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,cr,pr,hn(_i));return}}$e=d.Type_0_is_not_assignable_to_type_1}Xi($e,cr,pr)}function zn($e,pt){let Vt=wS($e.symbol)?hn($e,$e.symbol.valueDeclaration):hn($e),Nn=wS(pt.symbol)?hn(pt,pt.symbol.valueDeclaration):hn(pt);(vc===$e&&Fe===pt||Ec===$e&&St===pt||Go===$e&&jr===pt||uwe()===$e&&Br===pt)&&Xi(d._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Nn,Vt)}function ki($e,pt,Vt){return va($e)?$e.target.readonly&&NR(pt)?(Vt&&Xi(d.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,hn($e),hn(pt)),!1):Xb(pt):FD($e)&&NR(pt)?(Vt&&Xi(d.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,hn($e),hn(pt)),!1):va(pt)?cp($e):!0}function Ns($e,pt,Vt){return qn($e,pt,3,Vt)}function qn($e,pt,Vt=3,Nn=!1,pr,an=0){if($e===pt)return-1;if($e.flags&524288&&pt.flags&402784252)return l===i_&&!(pt.flags&131072)&&iI(pt,$e,l)||iI($e,pt,l,Nn?Xi:void 0)?-1:(Nn&&wa($e,pt,$e,pt,pr),0);let cr=DR($e,!1),ri=DR(pt,!0);if(cr===ri)return-1;if(l===of)return cr.flags!==ri.flags?0:cr.flags&67358815?-1:(po(cr,ri),Kr(cr,ri,!1,0,Vt));if(cr.flags&262144&&RS(cr)===ri)return-1;if(cr.flags&470302716&&ri.flags&1048576){let _i=ri.types,fs=_i.length===2&&_i[0].flags&98304?_i[1]:_i.length===3&&_i[0].flags&98304&&_i[1].flags&98304?_i[2]:void 0;if(fs&&!(fs.flags&98304)&&(ri=DR(fs,!0),cr===ri))return-1}if(l===i_&&!(ri.flags&131072)&&iI(ri,cr,l)||iI(cr,ri,l,Nn?Xi:void 0))return-1;if(cr.flags&469499904||ri.flags&469499904){if(!(an&2)&&bv(cr)&&Ir(cr)&8192&&qa(cr,ri,Nn))return Nn&&dn(pr,cr,pt.aliasSymbol?pt:ri),0;let fs=(l!==i_||Ad(cr))&&!(an&2)&&cr.flags&405405692&&cr!==ye&&ri.flags&2621440&&_8e(ri)&&(Qa(cr).length>0||MZ(cr)),Hs=!!(Ir(cr)&2048);if(fs&&!Hnt(cr,ri,Hs)){if(Nn){let Cs=hn($e.aliasSymbol?$e:cr),sa=hn(pt.aliasSymbol?pt:ri),mo=Ps(cr,0),za=Ps(cr,1);mo.length>0&&qn(Ua(mo[0]),ri,1,!1)||za.length>0&&qn(Ua(za[0]),ri,1,!1)?Xi(d.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,Cs,sa):Xi(d.Type_0_has_no_properties_in_common_with_type_1,Cs,sa)}return 0}po(cr,ri);let si=cr.flags&1048576&&cr.types.length<4&&!(ri.flags&1048576)||ri.flags&1048576&&ri.types.length<4&&!(cr.flags&469499904)?Lc(cr,ri,Nn,an):Kr(cr,ri,Nn,an,Vt);if(si)return si}return Nn&&wa($e,pt,cr,ri,pr),0}function wa($e,pt,Vt,Nn,pr){var an,cr;let ri=!!ame($e),_i=!!ame(pt);Vt=$e.aliasSymbol||ri?$e:Vt,Nn=pt.aliasSymbol||_i?pt:Nn;let fs=yn>0;if(fs&&yn--,Vt.flags&524288&&Nn.flags&524288){let Hs=F;ki(Vt,Nn,!0),F!==Hs&&(fs=!!F)}if(Vt.flags&524288&&Nn.flags&402784252)zn(Vt,Nn);else if(Vt.symbol&&Vt.flags&524288&&ye===Vt)Xi(d.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Ir(Vt)&2048&&Nn.flags&2097152){let Hs=Nn.types,Qs=e2(Tf.IntrinsicAttributes,_),si=e2(Tf.IntrinsicClassAttributes,_);if(!tt(Qs)&&!tt(si)&&(gs(Hs,Qs)||gs(Hs,si)))return}else F=ode(F,pt);if(!pr&&fs){On=[Vt,Nn];return}if(dn(pr,Vt,Nn),Vt.flags&262144&&((cr=(an=Vt.symbol)==null?void 0:an.declarations)!=null&&cr[0])&&!RS(Vt)){let Hs=bY(Vt);if(Hs.constraint=Vi(Nn,$b(Vt,Hs)),HN(Hs)){let Qs=hn(Nn,Vt.symbol.declarations[0]);Jf(vr(Vt.symbol.declarations[0],d.This_type_parameter_might_need_an_extends_0_constraint,Qs))}}}function po($e,pt){if(Wn&&$e.flags&3145728&&pt.flags&3145728){let Vt=$e,Nn=pt;if(Vt.objectFlags&Nn.objectFlags&32768)return;let pr=Vt.types.length,an=Nn.types.length;pr*an>1e6&&Wn.instant(Wn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:$e.id,sourceSize:pr,targetId:pt.id,targetSize:an,pos:_?.pos,end:_?.end})}}function fl($e,pt){return Jr(Fu($e,(Nn,pr)=>{var an;pr=o_(pr);let cr=pr.flags&3145728?sde(pr,pt):lv(pr,pt),ri=cr&&Vn(cr)||((an=nk(pr,pt))==null?void 0:an.type)||j;return _n(Nn,ri)},void 0)||Ve)}function qa($e,pt,Vt){var Nn;if(!HR(pt)||!se&&Ir(pt)&4096)return!1;let pr=!!(Ir($e)&2048);if((l===U_||l===i_)&&(jD(ye,pt)||!pr&&Ph(pt)))return!1;let an=pt,cr;pt.flags&1048576&&(an=T7e($e,pt,qn)||Y_t(pt),cr=an.flags&1048576?an.types:[an]);for(let ri of Qa($e))if(Dl(ri,$e.symbol)&&!c8e($e,ri)){if(!Zme(an,ri.escapedName,pr)){if(Vt){let _i=Hc(an,HR);if(!_)return E.fail();if(rb(_)||Zu(_)||Zu(_.parent)){ri.valueDeclaration&&$d(ri.valueDeclaration)&&Mn(_)===Mn(ri.valueDeclaration.name)&&(_=ri.valueDeclaration.name);let fs=ci(ri),Hs=$Ae(fs,_i),Qs=Hs?ci(Hs):void 0;Qs?Xi(d.Property_0_does_not_exist_on_type_1_Did_you_mean_2,fs,hn(_i),Qs):Xi(d.Property_0_does_not_exist_on_type_1,fs,hn(_i))}else{let fs=((Nn=$e.symbol)==null?void 0:Nn.declarations)&&Pl($e.symbol.declarations),Hs;if(ri.valueDeclaration&&Fn(ri.valueDeclaration,Qs=>Qs===fs)&&Mn(fs)===Mn(_)){let Qs=ri.valueDeclaration;E.assertNode(Qs,th);let si=Qs.name;_=si,Ie(si)&&(Hs=oge(si,_i))}Hs!==void 0?Iu(d.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,ci(ri),hn(_i),Hs):Iu(d.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,ci(ri),hn(_i))}}return!0}if(cr&&!qn(Vn(ri),fl(cr,ri.escapedName),3,Vt))return Vt&&ws(d.Types_of_property_0_are_incompatible,ci(ri)),!0}return!1}function Dl($e,pt){return $e.valueDeclaration&&pt.valueDeclaration&&$e.valueDeclaration.parent===pt.valueDeclaration}function Lc($e,pt,Vt,Nn){if($e.flags&1048576){if(pt.flags&1048576){let pr=$e.origin;if(pr&&pr.flags&2097152&&pt.aliasSymbol&&gs(pr.types,pt))return-1;let an=pt.origin;if(an&&an.flags&1048576&&$e.aliasSymbol&&gs(an.types,$e))return-1}return l===i_?de($e,pt,Vt&&!($e.flags&402784252),Nn):yr($e,pt,Vt&&!($e.flags&402784252),Nn)}if(pt.flags&1048576)return pf(cI($e),pt,Vt&&!($e.flags&402784252)&&!(pt.flags&402784252));if(pt.flags&2097152)return Xe($e,pt,Vt,2);if(l===i_&&pt.flags&402784252){let pr=sl($e.types,an=>an.flags&465829888?a_(an)||ln:an);if(pr!==$e.types){if($e=ya(pr),$e.flags&131072)return 0;if(!($e.flags&2097152))return qn($e,pt,1,!1)||qn(pt,$e,1,!1)}}return de($e,pt,!1,1)}function Ao($e,pt){let Vt=-1,Nn=$e.types;for(let pr of Nn){let an=pf(pr,pt,!1);if(!an)return 0;Vt&=an}return Vt}function pf($e,pt,Vt){let Nn=pt.types;if(pt.flags&1048576){if(By(Nn,$e))return-1;if(l!==i_&&Ir(pt)&32768&&!($e.flags&1024)&&($e.flags&2688||(l===Hm||l===Qf)&&$e.flags&256)){let an=$e===$e.regularType?$e.freshType:$e.regularType,cr=$e.flags&128?Fe:$e.flags&256?St:$e.flags&2048?Mt:void 0;return cr&&By(Nn,cr)||an&&By(Nn,an)?-1:0}let pr=J8e(pt,$e);if(pr){let an=qn($e,pr,2,!1);if(an)return an}}for(let pr of Nn){let an=qn($e,pr,2,!1);if(an)return an}if(Vt){let pr=u8e($e,pt,qn);pr&&qn($e,pr,2,!0)}return 0}function Xe($e,pt,Vt,Nn){let pr=-1,an=pt.types;for(let cr of an){let ri=qn($e,cr,2,Vt,void 0,Nn);if(!ri)return 0;pr&=ri}return pr}function de($e,pt,Vt,Nn){let pr=$e.types;if($e.flags&1048576&&By(pr,pt))return-1;let an=pr.length;for(let cr=0;cr=cr.types.length&&an.length%cr.types.length===0){let Hs=qn(_i,cr.types[ri%cr.types.length],3,!1,void 0,Nn);if(Hs){pr&=Hs;continue}}let fs=qn(_i,pt,1,Vt,void 0,Nn);if(!fs)return 0;pr&=fs}return pr}function ni($e=Ve,pt=Ve,Vt=Ve,Nn,pr){if($e.length!==pt.length&&l===of)return 0;let an=$e.length<=pt.length?$e.length:pt.length,cr=-1;for(let ri=0;ri(Cs|=za?16:8,si(za)));let sa;return pn===3?((an=Wn)==null||an.instant(Wn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:$e.id,sourceIdStack:Te.map(za=>za.id),targetId:pt.id,targetIdStack:Ne.map(za=>za.id),depth:Et,targetDepth:Yt}),sa=3):((cr=Wn)==null||cr.push(Wn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:$e.id,targetId:pt.id}),sa=di($e,pt,Vt,Nn),(ri=Wn)==null||ri.pop()),$s&&($s=si),pr&1&&Et--,pr&2&&Yt--,pn=Qs,sa?(sa===-1||Et===0&&Yt===0)&&mo(sa===-1||sa===3):(l.set(_i,(Vt?4:0)|2|Cs),wn--,mo(!1)),sa;function mo(za){for(let Ll=Hs;Llri!==$e)&&(an=qn(cr,pt,1,!1,void 0,Nn))}an&&!(Nn&2)&&pt.flags&2097152&&!qb(pt)&&$e.flags&2621440?(an&=xn($e,pt,Vt,void 0,!1,0),an&&bv($e)&&Ir($e)&8192&&(an&=$o($e,pt,!1,Vt,0))):an&&pY(pt)&&!Xb(pt)&&$e.flags&2097152&&o_($e).flags&3670016&&!ft($e.types,cr=>cr===pt||!!(Ir(cr)&262144))&&(an&=xn($e,pt,Vt,void 0,!0,Nn))}return an&&lr(pr),an}function Er($e,pt,Vt,Nn,pr){let an,cr,ri=!1,_i=$e.flags,fs=pt.flags;if(l===of){if(_i&3145728){let si=Ao($e,pt);return si&&(si&=Ao(pt,$e)),si}if(_i&4194304)return qn($e.type,pt.type,3,!1);if(_i&8388608&&(an=qn($e.objectType,pt.objectType,3,!1))&&(an&=qn($e.indexType,pt.indexType,3,!1))||_i&16777216&&$e.root.isDistributive===pt.root.isDistributive&&(an=qn($e.checkType,pt.checkType,3,!1))&&(an&=qn($e.extendsType,pt.extendsType,3,!1))&&(an&=qn(dv($e),dv(pt),3,!1))&&(an&=qn(mv($e),mv(pt),3,!1))||_i&33554432&&(an=qn($e.baseType,pt.baseType,3,!1))&&(an&=qn($e.constraint,pt.constraint,3,!1)))return an;if(!(_i&524288))return 0}else if(_i&3145728||fs&3145728){if(an=Lc($e,pt,Vt,Nn))return an;if(!(_i&465829888||_i&524288&&fs&1048576||_i&2097152&&fs&467402752))return 0}if(_i&17301504&&$e.aliasSymbol&&$e.aliasTypeArguments&&$e.aliasSymbol===pt.aliasSymbol&&!(DY($e)||DY(pt))){let si=f8e($e.aliasSymbol);if(si===Ve)return 1;let Cs=Ti($e.aliasSymbol).typeParameters,sa=rg(Cs),mo=Ry($e.aliasTypeArguments,Cs,sa,Qn($e.aliasSymbol.valueDeclaration)),za=Ry(pt.aliasTypeArguments,Cs,sa,Qn($e.aliasSymbol.valueDeclaration)),Ll=Qs(mo,za,si,Nn);if(Ll!==void 0)return Ll}if(S8e($e)&&!$e.target.readonly&&(an=qn(vo($e)[0],pt,1))||S8e(pt)&&(pt.target.readonly||NR(a_($e)||$e))&&(an=qn($e,vo(pt)[0],2)))return an;if(fs&262144){if(Ir($e)&32&&!$e.declaration.nameType&&qn(sg(pt),Op($e),3)&&!(ng($e)&4)){let si=kh($e),Cs=G_(pt,Cd($e));if(an=qn(si,Cs,3,Vt))return an}if(l===i_&&_i&262144){let si=Nu($e);if(si&&HN($e))for(;si&&_m(si,Cs=>!!(Cs.flags&262144));){if(an=qn(si,pt,1,!1))return an;si=Nu(si)}return 0}}else if(fs&4194304){let si=pt.type;if(_i&4194304&&(an=qn(si,$e.type,3,!1)))return an;if(va(si)){if(an=qn($e,vwe(si),2,Vt))return an}else{let Cs=ede(si);if(Cs){if(qn($e,sg(Cs,pt.indexFlags|4),2,Vt)===-1)return-1}else if(jf(si)){let sa=P0(si),mo=Op(si),za;if(sa&&qN(si)){let Ll=o_(ek(si)),gm=[];Zpe(Ll,8576,!1,hm=>void gm.push(Vi(sa,tI(si.mapper,Cd(si),hm)))),za=Jr([...gm,sa])}else za=sa||mo;if(qn($e,za,2,Vt)===-1)return-1}}}else if(fs&8388608){if(_i&8388608){if((an=qn($e.objectType,pt.objectType,3,Vt))&&(an&=qn($e.indexType,pt.indexType,3,Vt)),an)return an;Vt&&(cr=F)}if(l===U_||l===i_){let si=pt.objectType,Cs=pt.indexType,sa=a_(si)||si,mo=a_(Cs)||Cs;if(!qb(sa)&&!pv(mo)){let za=4|(sa!==si?2:0),Ll=Jy(sa,mo,za);if(Ll){if(Vt&&cr&&lr(pr),an=qn($e,Ll,2,Vt,void 0,Nn))return an;Vt&&cr&&F&&(F=Hs([cr])<=Hs([F])?cr:F)}}}Vt&&(cr=void 0)}else if(jf(pt)&&l!==of){let si=!!pt.declaration.nameType,Cs=kh(pt),sa=ng(pt);if(!(sa&8)){if(!si&&Cs.flags&8388608&&Cs.objectType===$e&&Cs.indexType===Cd(pt))return-1;if(!jf($e)){let mo=si?P0(pt):Op(pt),za=sg($e,2),Ll=sa&4,gm=Ll?fR(mo,za):void 0;if(Ll?!(gm.flags&131072):qn(mo,za,3)){let hm=kh(pt),s2=Cd(pt),v4=BD(hm,-98305);if(!si&&v4.flags&8388608&&v4.indexType===s2){if(an=qn($e,v4.objectType,2,Vt))return an}else{let dk=si?gm||mo:gm?ya([gm,s2]):s2,Oh=G_($e,dk);if(an=qn(Oh,hm,3,Vt))return an}}cr=F,lr(pr)}}}else if(fs&16777216){if(ID(pt,Ne,Yt,10))return 3;let si=pt;if(!si.root.inferTypeParameters&&!snt(si.root)&&!($e.flags&16777216&&$e.root===si.root)){let Cs=!da(xY(si.checkType),xY(si.extendsType)),sa=!Cs&&da(zS(si.checkType),zS(si.extendsType));if((an=Cs?-1:qn($e,dv(si),2,!1,void 0,Nn))&&(an&=sa?-1:qn($e,mv(si),2,!1,void 0,Nn),an))return an}}else if(fs&134217728){if(_i&134217728){if(l===i_)return Irt($e,pt)?0:-1;Vi($e,cl)}if(UY($e,pt))return-1}else if(pt.flags&268435456&&!($e.flags&268435456)&&Sme($e,pt))return-1;if(_i&8650752){if(!(_i&8388608&&fs&8388608)){let si=RS($e)||ln;if(an=qn(si,pt,1,!1,void 0,Nn))return an;if(an=qn(uf(si,$e),pt,1,Vt&&si!==ln&&!(fs&_i&262144),void 0,Nn))return an;if(ide($e)){let Cs=RS($e.indexType);if(Cs&&(an=qn(G_($e.objectType,Cs),pt,1,Vt)))return an}}}else if(_i&4194304){if(an=qn(Nc,pt,1,Vt))return an}else if(_i&134217728&&!(fs&524288)){if(!(fs&134217728)){let si=a_($e);if(si&&si!==$e&&(an=qn(si,pt,1,Vt)))return an}}else if(_i&268435456)if(fs&268435456){if($e.symbol!==pt.symbol)return 0;if(an=qn($e.type,pt.type,3,Vt))return an}else{let si=a_($e);if(si&&(an=qn(si,pt,1,Vt)))return an}else if(_i&16777216){if(ID($e,Te,Et,10))return 3;if(fs&16777216){let Cs=$e.root.inferTypeParameters,sa=$e.extendsType,mo;if(Cs){let za=lI(Cs,void 0,0,Ns);Ih(za.inferences,pt.extendsType,sa,1536),sa=Vi(sa,za.mapper),mo=za.mapper}if(Dh(sa,pt.extendsType)&&(qn($e.checkType,pt.checkType,3)||qn(pt.checkType,$e.checkType,3))&&((an=qn(Vi(dv($e),mo),dv(pt),3,Vt))&&(an&=qn(mv($e),mv(pt),3,Vt)),an))return an}else{let Cs=HN($e)?FPe($e):void 0;if(Cs&&(an=qn(Cs,pt,1,Vt)))return an}let si=tde($e);if(si&&(an=qn(si,pt,1,Vt)))return an}else{if(l!==Hm&&l!==Qf&&met(pt)&&Ph($e))return-1;if(jf(pt))return jf($e)&&(an=dr($e,pt,Vt))?an:0;let si=!!(_i&402784252);if(l!==of)$e=o_($e),_i=$e.flags;else if(jf($e))return 0;if(Ir($e)&4&&Ir(pt)&4&&$e.target===pt.target&&!va($e)&&!(DY($e)||DY(pt))){if(IY($e))return-1;let Cs=tme($e.target);if(Cs===Ve)return 1;let sa=Qs(vo($e),vo(pt),Cs,Nn);if(sa!==void 0)return sa}else{if(FD(pt)?Bf($e,Xb):cp(pt)&&Bf($e,Cs=>va(Cs)&&!Cs.target.readonly))return l!==of?qn(uv($e,St)||G,uv(pt,St)||G,3,Vt):0;if(O0($e)&&va(pt)&&!O0(pt)){let Cs=Ch($e);if(Cs!==$e)return qn(Cs,pt,1,Vt)}else if((l===Hm||l===Qf)&&Ph(pt)&&Ir(pt)&8192&&!Ph($e))return 0}if(_i&2621440&&fs&524288){let Cs=Vt&&F===pr.errorInfo&&!si;if(an=xn($e,pt,Cs,void 0,!1,Nn),an&&(an&=Gr($e,pt,0,Cs,Nn),an&&(an&=Gr($e,pt,1,Cs,Nn),an&&(an&=$o($e,pt,si,Cs,Nn)))),ri&&an)F=cr||F||pr.errorInfo;else if(an)return an}if(_i&2621440&&fs&1048576){let Cs=BD(pt,36175872);if(Cs.flags&1048576){let sa=et($e,Cs);if(sa)return sa}}}return 0;function Hs(si){return si?Fu(si,(Cs,sa)=>Cs+1+Hs(sa.next),0):0}function Qs(si,Cs,sa,mo){if(an=ni(si,Cs,sa,Vt,mo))return an;if(ft(sa,Ll=>!!(Ll&24))){cr=void 0,lr(pr);return}let za=Cs&&Gnt(Cs,sa);if(ri=!za,sa!==Ve&&!za){if(ri&&!(Vt&&ft(sa,Ll=>(Ll&7)===0)))return 0;cr=F,lr(pr)}}}function dr($e,pt,Vt){if(l===i_||(l===of?ng($e)===ng(pt):Kpe($e)<=Kpe(pt))){let pr,an=Op(pt),cr=Vi(Op($e),Kpe($e)<0?Do:cl);if(pr=qn(an,cr,3,Vt)){let ri=N_([Cd($e)],[Cd(pt)]);if(Vi(P0($e),ri)===Vi(P0(pt),ri))return pr&qn(Vi(kh($e),ri),kh(pt),3,Vt)}}return 0}function et($e,pt){var Vt;let Nn=Qa($e),pr=B8e(Nn,pt);if(!pr)return 0;let an=1;for(let Qs of pr)if(an*=ait(Oy(Qs)),an>25)return(Vt=Wn)==null||Vt.instant(Wn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:$e.id,targetId:pt.id,numCombinations:an}),0;let cr=new Array(pr.length),ri=new Set;for(let Qs=0;QsQs[sa],!1,0,H||l===i_))continue e}lp(fs,Cs,B0),si=!0}if(!si)return 0}let Hs=-1;for(let Qs of fs)if(Hs&=xn($e,Qs,!1,ri,!1,0),Hs&&(Hs&=Gr($e,Qs,0,!1,0),Hs&&(Hs&=Gr($e,Qs,1,!1,0),Hs&&!(va($e)&&va(Qs))&&(Hs&=$o($e,Qs,!1,!1,0)))),!Hs)return Hs;return Hs}function Ct($e,pt){if(!pt||$e.length===0)return $e;let Vt;for(let Nn=0;Nn<$e.length;Nn++)pt.has($e[Nn].escapedName)?Vt||(Vt=$e.slice(0,Nn)):Vt&&Vt.push($e[Nn]);return Vt||$e}function qt($e,pt,Vt,Nn,pr){let an=H&&!!(lc(pt)&48),cr=Ol(Oy(pt),!1,an),ri=Vt($e);return qn(ri,cr,3,Nn,void 0,pr)}function Bt($e,pt,Vt,Nn,pr,an,cr,ri){let _i=Uf(Vt),fs=Uf(Nn);if(_i&2||fs&2){if(Vt.valueDeclaration!==Nn.valueDeclaration)return an&&(_i&2&&fs&2?Xi(d.Types_have_separate_declarations_of_a_private_property_0,ci(Nn)):Xi(d.Property_0_is_private_in_type_1_but_not_in_type_2,ci(Nn),hn(_i&2?$e:pt),hn(_i&2?pt:$e))),0}else if(fs&4){if(!Znt(Vt,Nn))return an&&Xi(d.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2,ci(Nn),hn(lk(Vt)||$e),hn(lk(Nn)||pt)),0}else if(_i&4)return an&&Xi(d.Property_0_is_protected_in_type_1_but_public_in_type_2,ci(Nn),hn($e),hn(pt)),0;if(l===Qf&&Id(Vt)&&!Id(Nn))return 0;let Hs=qt(Vt,Nn,pr,an,cr);return Hs?!ri&&Vt.flags&16777216&&Nn.flags&106500&&!(Nn.flags&16777216)?(an&&Xi(d.Property_0_is_optional_in_type_1_but_required_in_type_2,ci(Nn),hn($e),hn(pt)),0):Hs:(an&&ws(d.Types_of_property_0_are_incompatible,ci(Nn)),0)}function Xt($e,pt,Vt,Nn){let pr=!1;if(Vt.valueDeclaration&&Ru(Vt.valueDeclaration)&&Di(Vt.valueDeclaration.name)&&$e.symbol&&$e.symbol.flags&32){let cr=Vt.valueDeclaration.name.escapedText,ri=Ew($e.symbol,cr);if(ri&&Ks($e,ri)){let _i=I.getDeclarationName($e.symbol.valueDeclaration),fs=I.getDeclarationName(pt.symbol.valueDeclaration);Xi(d.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2,nd(cr),nd(_i.escapedText===""?WO:_i),nd(fs.escapedText===""?WO:fs));return}}let an=hs(yme($e,pt,Nn,!1));if((!m||m.code!==d.Class_0_incorrectly_implements_interface_1.code&&m.code!==d.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)&&(pr=!0),an.length===1){let cr=ci(Vt,void 0,0,20);Xi(d.Property_0_is_missing_in_type_1_but_required_in_type_2,cr,...wy($e,pt)),bn(Vt.declarations)&&Jf(vr(Vt.declarations[0],d._0_is_declared_here,cr)),pr&&F&&yn++}else ki($e,pt,!1)&&(an.length>5?Xi(d.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,hn($e),hn(pt),Kt(an.slice(0,4),cr=>ci(cr)).join(", "),an.length-4):Xi(d.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,hn($e),hn(pt),Kt(an,cr=>ci(cr)).join(", ")),pr&&F&&yn++)}function xn($e,pt,Vt,Nn,pr,an){if(l===of)return ui($e,pt,Nn);let cr=-1;if(va(pt)){if(Xb($e)){if(!pt.target.readonly&&(FD($e)||va($e)&&$e.target.readonly))return 0;let Qs=A0($e),si=A0(pt),Cs=va($e)?$e.target.combinedFlags&4:4,sa=pt.target.combinedFlags&4,mo=va($e)?$e.target.minLength:0,za=pt.target.minLength;if(!Cs&&Qs=hm?si-1-Math.min(bj,s2):Oh,bt=pt.target.elementFlags[$_];if(bt&8&&!(xv&8))return Vt&&Xi(d.Source_provides_no_match_for_variadic_element_at_position_0_in_target,$_),0;if(xv&8&&!(bt&12))return Vt&&Xi(d.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,Oh,$_),0;if(bt&1&&!(xv&1))return Vt&&Xi(d.Source_provides_no_match_for_required_element_at_position_0_in_target,$_),0;if(dk&&((xv&12||bt&12)&&(dk=!1),dk&&Nn?.has(""+Oh)))continue;let Sr=Hy(Ll[Oh],!!(xv&bt&2)),Yr=gm[$_],Wr=xv&8&&bt&4?hu(Yr):Hy(Yr,!!(bt&2)),Zr=qn(Sr,Wr,3,Vt,void 0,an);if(!Zr)return Vt&&(si>1||Qs>1)&&(v4&&Oh>=hm&&bj>=s2&&hm!==Qs-s2-1?ws(d.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,hm,Qs-s2-1,$_):ws(d.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,Oh,$_)),0;cr&=Zr}return cr}if(pt.target.combinedFlags&12)return 0}let ri=(l===Hm||l===Qf)&&!bv($e)&&!IY($e)&&!va($e),_i=vme($e,pt,ri,!1);if(_i)return Vt&&Yi($e,pt)&&Xt($e,pt,_i,ri),0;if(bv(pt)){for(let Qs of Ct(Qa($e),Nn))if(!lv(pt,Qs.escapedName)&&!(Vn(Qs).flags&32768))return Vt&&Xi(d.Property_0_does_not_exist_on_type_1,ci(Qs),hn(pt)),0}let fs=Qa(pt),Hs=va($e)&&va(pt);for(let Qs of Ct(fs,Nn)){let si=Qs.escapedName;if(!(Qs.flags&4194304)&&(!Hs||Sg(si)||si==="length")&&(!pr||Qs.flags&16777216)){let Cs=Ks($e,si);if(Cs&&Cs!==Qs){let sa=Bt($e,pt,Cs,Qs,Oy,Vt,an,l===i_);if(!sa)return 0;cr&=sa}}}return cr}function ui($e,pt,Vt){if(!($e.flags&524288&&pt.flags&524288))return 0;let Nn=Ct(My($e),Vt),pr=Ct(My(pt),Vt);if(Nn.length!==pr.length)return 0;let an=-1;for(let cr of Nn){let ri=lv(pt,cr.escapedName);if(!ri)return 0;let _i=rme(cr,ri,qn);if(!_i)return 0;an&=_i}return an}function Gr($e,pt,Vt,Nn,pr){var an,cr;if(l===of)return Ui($e,pt,Vt);if(pt===Ht||$e===Ht)return-1;let ri=$e.symbol&&dm($e.symbol.valueDeclaration),_i=pt.symbol&&dm(pt.symbol.valueDeclaration),fs=Ps($e,ri&&Vt===1?0:Vt),Hs=Ps(pt,_i&&Vt===1?0:Vt);if(Vt===1&&fs.length&&Hs.length){let mo=!!(fs[0].flags&4),za=!!(Hs[0].flags&4);if(mo&&!za)return Nn&&Xi(d.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Xo(fs[0],Hs[0],Nn))return 0}let Qs=-1,si=Vt===1?$r:mn,Cs=Ir($e),sa=Ir(pt);if(Cs&64&&sa&64&&$e.symbol===pt.symbol||Cs&4&&sa&4&&$e.target===pt.target)for(let mo=0;mocm(hm,void 0,262144,Vt);return Xi(d.Type_0_is_not_assignable_to_type_1,gm(za),gm(Ll)),Xi(d.Types_of_construct_signatures_are_incompatible),Qs}}else e:for(let mo of Hs){let za=bs(),Ll=Nn;for(let gm of fs){let hm=bi(gm,mo,!0,Ll,pr,si(gm,mo));if(hm){Qs&=hm,lr(za);continue e}Ll=!1}return Ll&&Xi(d.Type_0_provides_no_match_for_the_signature_1,hn($e),cm(mo,void 0,void 0,Vt)),0}return Qs}function Yi($e,pt){let Vt=mR($e,0),Nn=mR($e,1),pr=My($e);return(Vt.length||Nn.length)&&!pr.length?!!(Ps(pt,0).length&&Vt.length||Ps(pt,1).length&&Nn.length):!0}function mn($e,pt){return $e.parameters.length===0&&pt.parameters.length===0?(Vt,Nn)=>ws(d.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,hn(Vt),hn(Nn)):(Vt,Nn)=>ws(d.Call_signature_return_types_0_and_1_are_incompatible,hn(Vt),hn(Nn))}function $r($e,pt){return $e.parameters.length===0&&pt.parameters.length===0?(Vt,Nn)=>ws(d.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,hn(Vt),hn(Nn)):(Vt,Nn)=>ws(d.Construct_signature_return_types_0_and_1_are_incompatible,hn(Vt),hn(Nn))}function bi($e,pt,Vt,Nn,pr,an){let cr=l===Hm?16:l===Qf?24:0;return Qde(Vt?QN($e):$e,Vt?QN(pt):pt,cr,Nn,Xi,an,ri,cl);function ri(_i,fs,Hs){return qn(_i,fs,3,Hs,void 0,pr)}}function Ui($e,pt,Vt){let Nn=Ps($e,Vt),pr=Ps(pt,Vt);if(Nn.length!==pr.length)return 0;let an=-1;for(let cr=0;cr_i.keyType===Fe),ri=-1;for(let _i of an){let fs=l!==Qf&&!Vt&&cr&&_i.type.flags&1?-1:jf($e)&&cr?qn(kh($e),_i.type,3,Nn):Vo($e,_i,Nn,pr);if(!fs)return 0;ri&=fs}return ri}function Vo($e,pt,Vt,Nn){let pr=GN($e,pt.keyType);return pr?vl(pr,pt,Vt,Nn):!(Nn&1)&&(l!==Qf||Ir($e)&8192)&&BY($e)?ea($e,pt,Vt,Nn):(Vt&&Xi(d.Index_signature_for_type_0_is_missing_in_type_1,hn(pt.keyType),hn($e)),0)}function yu($e,pt){let Vt=$u($e),Nn=$u(pt);if(Vt.length!==Nn.length)return 0;for(let pr of Nn){let an=Ug($e,pr.keyType);if(!(an&&qn(an.type,pr.type,3)&&an.isReadonly===pr.isReadonly))return 0}return-1}function Xo($e,pt,Vt){if(!$e.declaration||!pt.declaration)return!0;let Nn=Px($e.declaration,6),pr=Px(pt.declaration,6);return pr===2||pr===4&&Nn!==2||pr!==4&&!Nn?!0:(Vt&&Xi(d.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,zg(Nn),zg(pr)),!1)}}function Kde(r){if(r.flags&16)return!1;if(r.flags&3145728)return!!Qt(r.types,Kde);if(r.flags&465829888){let a=RS(r);if(a&&a!==r)return Kde(a)}return Ad(r)||!!(r.flags&134217728)||!!(r.flags&268435456)}function l8e(r,a){return va(r)&&va(a)?Ve:Qa(a).filter(l=>EY(q(r,l.escapedName),Vn(l)))}function EY(r,a){return!!r&&!!a&&oc(r,32768)&&!!oI(a)}function qnt(r){return Qa(r).filter(a=>oI(Vn(a)))}function u8e(r,a,l=$de){return T7e(r,a,l)||G_t(r,a)||$_t(r,a)||X_t(r,a)||Q_t(r,a)}function eme(r,a,l){let _=r.types,m=_.map(T=>T.flags&402784252?0:-1);for(let[T,N]of a){let F=!1;for(let U=0;U<_.length;U++)if(m[U]){let re=ge(_[U],N);re&&l(T(),re)?F=!0:m[U]=3}for(let U=0;U<_.length;U++)m[U]===3&&(m[U]=F?0:-1)}let h=gs(m,0)?Jr(_.filter((T,N)=>m[N]),0):r;return h.flags&131072?r:h}function _8e(r){if(r.flags&524288){let a=Ed(r);return a.callSignatures.length===0&&a.constructSignatures.length===0&&a.indexInfos.length===0&&a.properties.length>0&&hi(a.properties,l=>!!(l.flags&16777216))}return r.flags&2097152?hi(r.types,_8e):!1}function Hnt(r,a,l){for(let _ of Qa(r))if(Zme(a,_.escapedName,l))return!0;return!1}function tme(r){return r===Os||r===Bs||r.objectFlags&8?X:p8e(r.symbol,r.typeParameters)}function f8e(r){return p8e(r,Ti(r).typeParameters)}function p8e(r,a=Ve){var l,_;let m=Ti(r);if(!m.variances){(l=Wn)==null||l.push(Wn.Phase.CheckTypes,"getVariancesWorker",{arity:a.length,id:Xu(wo(r))});let h=fS;fS||(fS=!0,xb=mh.length),m.variances=Ve;let T=[];for(let N of a){let F=nme(N),U=F&16384?F&8192?0:1:F&8192?2:void 0;if(U===void 0){let re=!1,le=!1,Te=$s;$s=Et=>Et?le=!0:re=!0;let Ne=PR(r,N,h_),st=PR(r,N,Po);U=(da(st,Ne)?1:0)|(da(Ne,st)?2:0),U===3&&da(PR(r,N,Ic),Ne)&&(U=4),$s=Te,(re||le)&&(re&&(U|=8),le&&(U|=16))}T.push(U)}h||(fS=!1,xb=0),m.variances=T,(_=Wn)==null||_.pop({variances:T.map(E.formatVariance)})}return m.variances}function PR(r,a,l){let _=$b(a,l),m=wo(r);if(tt(m))return m;let h=r.flags&524288?s4(r,I0(Ti(r).typeParameters,_)):w0(m,I0(m.typeParameters,_));return dt.add(Xu(h)),h}function DY(r){return dt.has(Xu(r))}function nme(r){var a;return Fu((a=r.symbol)==null?void 0:a.declarations,(l,_)=>l|Ju(_),0)&28672}function Gnt(r,a){for(let l=0;l!!(a.flags&262144)||PY(a))}function Qnt(r,a,l,_){let m=[],h="",T=F(r,0),N=F(a,0);return`${h}${T},${N}${l}`;function F(U,re=0){let le=""+U.target.id;for(let Te of vo(U)){if(Te.flags&262144){if(_||$nt(Te)){let Ne=m.indexOf(Te);Ne<0&&(Ne=m.length,m.push(Te)),le+="="+Ne;continue}h="*"}else if(re<4&&PY(Te)){le+="<"+F(Te,re+1)+">";continue}le+="-"+Te.id}return le}}function wY(r,a,l,_,m){if(_===of&&r.id>a.id){let T=r;r=a,a=T}let h=l?":"+l:"";return PY(r)&&PY(a)?Qnt(r,a,h,m):`${r.id},${a.id}${h}`}function wR(r,a){if(lc(r)&6){for(let l of r.links.containingType.types){let _=Ks(l,r.escapedName),m=_&&wR(_,a);if(m)return m}return}return a(r)}function lk(r){return r.parent&&r.parent.flags&32?wo(v_(r)):void 0}function AY(r){let a=lk(r),l=a&&il(a)[0];return l&&q(l,r.escapedName)}function Ynt(r,a){return wR(r,l=>{let _=lk(l);return _?KT(_,a):!1})}function Znt(r,a){return!wR(a,l=>Uf(l)&4?!Ynt(r,lk(l)):!1)}function d8e(r,a,l){return wR(a,_=>Uf(_,l)&4?!KT(r,lk(_)):!1)?void 0:r}function ID(r,a,l,_=3){if(l>=_){if((Ir(r)&96)===96&&(r=m8e(r)),r.flags&2097152)return ft(r.types,N=>ID(N,a,l,_));let m=NY(r),h=0,T=0;for(let N=0;N=T&&(h++,h>=_))return!0;T=F.id}}}return!1}function m8e(r){let a;for(;(Ir(r)&96)===96&&(a=ek(r))&&(a.symbol||a.flags&2097152&&ft(a.types,l=>!!l.symbol));)r=a;return r}function g8e(r,a){return(Ir(r)&96)===96&&(r=m8e(r)),r.flags&2097152?ft(r.types,l=>g8e(l,a)):NY(r)===a}function NY(r){if(r.flags&524288&&!xme(r)){if(Ir(r)&4&&r.node)return r.node;if(r.symbol&&!(Ir(r)&16&&r.symbol.flags&32))return r.symbol;if(va(r))return r.target}if(r.flags&262144)return r.symbol;if(r.flags&8388608){do r=r.objectType;while(r.flags&8388608);return r}return r.flags&16777216?r.root:r}function Knt(r,a){return rme(r,a,nI)!==0}function rme(r,a,l){if(r===a)return-1;let _=Uf(r)&6,m=Uf(a)&6;if(_!==m)return 0;if(_){if(h4(r)!==h4(a))return 0}else if((r.flags&16777216)!==(a.flags&16777216))return 0;return Id(r)!==Id(a)?0:l(Vn(r),Vn(a))}function ert(r,a,l){let _=ff(r),m=ff(a),h=mm(r),T=mm(a),N=ag(r),F=ag(a);return!!(_===m&&h===T&&N===F||l&&h<=T)}function AR(r,a,l,_,m,h){if(r===a)return-1;if(!ert(r,a,l)||bn(r.typeParameters)!==bn(a.typeParameters))return 0;if(a.typeParameters){let F=N_(r.typeParameters,a.typeParameters);for(let U=0;Ua|(l.flags&1048576?h8e(l.types):l.flags),0)}function rrt(r){if(r.length===1)return r[0];let a=H?sl(r,_=>Hc(_,m=>!(m.flags&98304))):r,l=nrt(a)?Jr(a):Fu(a,(_,m)=>Wy(_,m)?m:_);return a===r?l:LY(l,h8e(r)&98304)}function irt(r){return Fu(r,(a,l)=>Wy(l,a)?l:a)}function cp(r){return!!(Ir(r)&4)&&(r.target===Os||r.target===Bs)}function FD(r){return!!(Ir(r)&4)&&r.target===Bs}function Xb(r){return cp(r)||va(r)}function NR(r){return cp(r)&&!FD(r)||va(r)&&!r.target.readonly}function ime(r){return cp(r)?vo(r)[0]:void 0}function F0(r){return cp(r)||!(r.flags&98304)&&da(r,Ep)}function sme(r){return NR(r)||!(r.flags&98305)&&da(r,pc)}function ame(r){if(!(Ir(r)&4)||!(Ir(r.target)&3))return;if(Ir(r)&33554432)return Ir(r)&67108864?r.cachedEquivalentBaseType:void 0;r.objectFlags|=33554432;let a=r.target;if(Ir(a)&1){let m=yi(a);if(m&&m.expression.kind!==80&&m.expression.kind!==211)return}let l=il(a);if(l.length!==1||Ly(r.symbol).size)return;let _=bn(a.typeParameters)?Vi(l[0],N_(a.typeParameters,vo(r).slice(0,a.typeParameters.length))):l[0];return bn(vo(r))>bn(a.typeParameters)&&(_=uf(_,Pa(vo(r)))),r.objectFlags|=67108864,r.cachedEquivalentBaseType=_}function y8e(r){return H?r===In:r===ce}function IY(r){let a=ime(r);return!!a&&y8e(a)}function OD(r){let a;return va(r)||!!Ks(r,"0")||F0(r)&&!!(a=q(r,"length"))&&Bf(a,l=>!!(l.flags&256))}function FY(r){return F0(r)||OD(r)}function srt(r,a){let l=q(r,""+a);if(l)return l;if(Bf(r,va))return x8e(r,a,J.noUncheckedIndexedAccess?j:void 0)}function art(r){return!(r.flags&240544)}function Ad(r){return!!(r.flags&109472)}function v8e(r){let a=Ch(r);return a.flags&2097152?ft(a.types,Ad):Ad(a)}function ort(r){return r.flags&2097152&&xr(r.types,Ad)||r}function sI(r){return r.flags&16?!0:r.flags&1048576?r.flags&1024?!0:hi(r.types,Ad):Ad(r)}function Ah(r){return r.flags&1056?ZQ(r):r.flags&402653312?Fe:r.flags&256?St:r.flags&2048?Mt:r.flags&512?jr:r.flags&1048576?crt(r):r}function crt(r){let a=`B${Xu(r)}`;return hS(a)??Eb(a,zo(r,Ah))}function ome(r){return r.flags&402653312?Fe:r.flags&288?St:r.flags&2048?Mt:r.flags&512?jr:r.flags&1048576?zo(r,ome):r}function Qb(r){return r.flags&1056&&Gb(r)?ZQ(r):r.flags&128&&Gb(r)?Fe:r.flags&256&&Gb(r)?St:r.flags&2048&&Gb(r)?Mt:r.flags&512&&Gb(r)?jr:r.flags&1048576?zo(r,Qb):r}function b8e(r){return r.flags&8192?Br:r.flags&1048576?zo(r,b8e):r}function cme(r,a){return bZ(r,a)||(r=b8e(Qb(r))),c_(r)}function lrt(r,a,l){if(r&&Ad(r)){let _=a?l?TI(a):a:void 0;r=cme(r,_)}return r}function lme(r,a,l,_){if(r&&Ad(r)){let m=a?t2(l,a,_):void 0;r=cme(r,m)}return r}function va(r){return!!(Ir(r)&4&&r.target.objectFlags&8)}function O0(r){return va(r)&&!!(r.target.combinedFlags&8)}function S8e(r){return O0(r)&&r.target.elementFlags.length===1}function OY(r){return LD(r,r.target.fixedLength)}function x8e(r,a,l){return zo(r,_=>{let m=_,h=OY(m);return h?l&&a>=wde(m.target)?Jr([h,l]):h:j})}function urt(r){let a=OY(r);return a&&hu(a)}function LD(r,a,l=0,_=!1,m=!1){let h=A0(r)-l;if(a(l&12)===(a.target.elementFlags[_]&12))}function T8e({value:r}){return r.base10Value==="0"}function k8e(r){return Hc(r,a=>Rp(a,4194304))}function frt(r){return zo(r,prt)}function prt(r){return r.flags&4?W_:r.flags&8?J1:r.flags&64?yy:r===Rn||r===Wt||r.flags&114691||r.flags&128&&r.value===""||r.flags&256&&r.value===0||r.flags&2048&&T8e(r)?r:wr}function LY(r,a){let l=a&~r.flags&98304;return l===0?r:Jr(l===32768?[r,j]:l===65536?[r,De]:[r,j,De])}function qy(r,a=!1){E.assert(H);let l=a?ue:j;return r===l||r.flags&1048576&&r.types[0]===l?r:Jr([r,l])}function drt(r){return Nf||(Nf=DD("NonNullable",524288,void 0)||gt),Nf!==gt?s4(Nf,[r]):ya([r,Xs])}function Nh(r){return H?qS(r,2097152):r}function C8e(r){return H?Jr([r,M]):r}function MY(r){return H?GY(r,M):r}function RY(r,a,l){return l?W4(a)?qy(r):C8e(r):r}function aI(r,a){return D7(a)?Nh(r):Tu(a)?MY(r):r}function Hy(r,a){return he&&a?GY(r,ee):r}function oI(r){return r===ee||!!(r.flags&1048576)&&r.types[0]===ee}function jY(r){return he?GY(r,ee):jp(r,524288)}function mrt(r,a){return(r.flags&524)!==0&&(a.flags&28)!==0}function BY(r){let a=Ir(r);return r.flags&2097152?hi(r.types,BY):!!(r.symbol&&r.symbol.flags&7040&&!(r.symbol.flags&32)&&!MZ(r))||!!(a&4194304)||!!(a&1024&&BY(r.source))}function VS(r,a){let l=ja(r.flags,r.escapedName,lc(r)&8);l.declarations=r.declarations,l.parent=r.parent,l.links.type=a,l.links.target=r,r.valueDeclaration&&(l.valueDeclaration=r.valueDeclaration);let _=Ti(r).nameType;return _&&(l.links.nameType=_),l}function grt(r,a){let l=Gs();for(let _ of My(r)){let m=Vn(_),h=a(m);l.set(_.escapedName,h===m?_:VS(_,h))}return l}function cI(r){if(!(bv(r)&&Ir(r)&8192))return r;let a=r.regularType;if(a)return a;let l=r,_=grt(r,cI),m=ac(l.symbol,_,l.callSignatures,l.constructSignatures,l.indexInfos);return m.flags=l.flags,m.objectFlags|=l.objectFlags&-8193,r.regularType=m,m}function E8e(r,a,l){return{parent:r,propertyName:a,siblings:l,resolvedProperties:void 0}}function D8e(r){if(!r.siblings){let a=[];for(let l of D8e(r.parent))if(bv(l)){let _=lv(l,r.propertyName);_&&HS(Vn(_),m=>{a.push(m)})}r.siblings=a}return r.siblings}function hrt(r){if(!r.resolvedProperties){let a=new Map;for(let l of D8e(r))if(bv(l)&&!(Ir(l)&2097152))for(let _ of Qa(l))a.set(_.escapedName,_);r.resolvedProperties=hs(a.values())}return r.resolvedProperties}function yrt(r,a){if(!(r.flags&4))return r;let l=Vn(r),_=a&&E8e(a,r.escapedName,void 0),m=ume(l,_);return m===l?r:VS(r,m)}function vrt(r){let a=it.get(r.escapedName);if(a)return a;let l=VS(r,ue);return l.flags|=16777216,it.set(r.escapedName,l),l}function brt(r,a){let l=Gs();for(let m of My(r))l.set(m.escapedName,yrt(m,a));if(a)for(let m of hrt(a))l.has(m.escapedName)||l.set(m.escapedName,vrt(m));let _=ac(r.symbol,l,Ve,Ve,sl($u(r),m=>ig(m.keyType,_f(m.type),m.isReadonly)));return _.objectFlags|=Ir(r)&266240,_}function _f(r){return ume(r,void 0)}function ume(r,a){if(Ir(r)&196608){if(a===void 0&&r.widened)return r.widened;let l;if(r.flags&98305)l=G;else if(bv(r))l=brt(r,a);else if(r.flags&1048576){let _=a||E8e(void 0,void 0,r.types),m=sl(r.types,h=>h.flags&98304?h:ume(h,_));l=Jr(m,ft(m,Ph)?2:1)}else r.flags&2097152?l=ya(sl(r.types,_f)):Xb(r)&&(l=w0(r.target,sl(vo(r),_f)));return l&&a===void 0&&(r.widened=l),l||r}return r}function JY(r){let a=!1;if(Ir(r)&65536){if(r.flags&1048576)if(ft(r.types,Ph))a=!0;else for(let l of r.types)JY(l)&&(a=!0);if(Xb(r))for(let l of vo(r))JY(l)&&(a=!0);if(bv(r))for(let l of My(r)){let _=Vn(l);Ir(_)&65536&&(JY(_)||je(l.valueDeclaration,d.Object_literal_s_property_0_implicitly_has_an_1_type,ci(l),hn(_f(_))),a=!0)}}return a}function yv(r,a,l){let _=hn(_f(a));if(Qn(r)&&!$w(Mn(r),J))return;let m;switch(r.kind){case 226:case 172:case 171:m=se?d.Member_0_implicitly_has_an_1_type:d.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:let h=r;if(Ie(h.name)){let T=s1(h.name);if((SC(h.parent)||xg(h.parent)||Tg(h.parent))&&h.parent.parameters.includes(h)&&(bc(h,h.name.escapedText,788968,void 0,h.name.escapedText,!0)||T&&Gz(T))){let N="arg"+h.parent.parameters.indexOf(h),F=co(h.name)+(h.dotDotDotToken?"[]":"");Yf(se,r,d.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,N,F);return}}m=r.dotDotDotToken?se?d.Rest_parameter_0_implicitly_has_an_any_type:d.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:se?d.Parameter_0_implicitly_has_an_1_type:d.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(m=d.Binding_element_0_implicitly_has_an_1_type,!se)return;break;case 324:je(r,d.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return;case 330:se&&IC(r.parent)&&je(r.parent.tagName,d.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,_);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(se&&!r.name){l===3?je(r,d.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,_):je(r,d.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,_);return}m=se?l===3?d._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:d._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:d._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:se&&je(r,d.Mapped_object_type_implicitly_has_an_any_template_type);return;default:m=se?d.Variable_0_implicitly_has_an_1_type:d.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}Yf(se,r,m,co(us(r)),_)}function zY(r,a,l){n(()=>{se&&Ir(a)&65536&&(!l||!Hme(r))&&(JY(a)||yv(r,a,l))})}function _me(r,a,l){let _=ff(r),m=ff(a),h=hI(r),T=hI(a),N=T?m-1:m,F=h?N:Math.min(_,N),U=_v(r);if(U){let re=_v(a);re&&l(U,re)}for(let re=0;rea.typeParameter),Kt(r.inferences,(a,l)=>()=>(a.isFixed||(krt(r),VY(r.inferences),a.isFixed=!0),Tme(r,l))))}function Trt(r){return Wde(Kt(r.inferences,a=>a.typeParameter),Kt(r.inferences,(a,l)=>()=>Tme(r,l)))}function VY(r){for(let a of r)a.isFixed||(a.inferredType=void 0)}function dme(r,a,l){(r.intraExpressionInferenceSites??(r.intraExpressionInferenceSites=[])).push({node:a,type:l})}function krt(r){if(r.intraExpressionInferenceSites){for(let{node:a,type:l}of r.intraExpressionInferenceSites){let _=a.kind===174?vAe(a,2):S_(a,2);_&&Ih(r.inferences,l,_)}r.intraExpressionInferenceSites=void 0}}function mme(r){return{typeParameter:r,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function P8e(r){return{typeParameter:r.typeParameter,candidates:r.candidates&&r.candidates.slice(),contraCandidates:r.contraCandidates&&r.contraCandidates.slice(),inferredType:r.inferredType,priority:r.priority,topLevel:r.topLevel,isFixed:r.isFixed,impliedArity:r.impliedArity}}function Crt(r){let a=Fr(r.inferences,m4);return a.length?pme(Kt(a,P8e),r.signature,r.flags,r.compareTypes):void 0}function gme(r){return r&&r.mapper}function vv(r){let a=Ir(r);if(a&524288)return!!(a&1048576);let l=!!(r.flags&465829888||r.flags&524288&&!w8e(r)&&(a&4&&(r.node||ft(vo(r),vv))||a&16&&r.symbol&&r.symbol.flags&14384&&r.symbol.declarations||a&12583968)||r.flags&3145728&&!(r.flags&1024)&&!w8e(r)&&ft(r.types,vv));return r.flags&3899393&&(r.objectFlags|=524288|(l?1048576:0)),l}function w8e(r){if(r.aliasSymbol&&!r.aliasTypeArguments){let a=Zo(r.aliasSymbol,265);return!!(a&&Fn(a.parent,l=>l.kind===312?!0:l.kind===267?!1:"quit"))}return!1}function uI(r,a,l=0){return!!(r===a||r.flags&3145728&&ft(r.types,_=>uI(_,a,l))||l<3&&r.flags&16777216&&(uI(dv(r),a,l+1)||uI(mv(r),a,l+1)))}function Ert(r,a){let l=sp(r);return l?!!l.type&&uI(l.type,a):uI(Ua(r),a)}function Drt(r){let a=Gs();HS(r,_=>{if(!(_.flags&128))return;let m=Yo(_.value),h=ja(4,m);h.links.type=G,_.symbol&&(h.declarations=_.symbol.declarations,h.valueDeclaration=_.symbol.valueDeclaration),a.set(m,h)});let l=r.flags&4?[ig(Fe,Xs,!1)]:Ve;return ac(void 0,a,Ve,Ve,l)}function A8e(r,a,l){let _=r.id+","+a.id+","+l.id;if(Cl.has(_))return Cl.get(_);let m=r.id+","+(a.target||a).id;if(gs(t_,m))return;t_.push(m);let h=Prt(r,a,l);return t_.pop(),Cl.set(_,h),h}function hme(r){return!(Ir(r)&262144)||bv(r)&&ft(Qa(r),a=>hme(Vn(a)))||va(r)&&ft(fv(r),hme)}function Prt(r,a,l){if(!(Ug(r,Fe)||Qa(r).length!==0&&hme(r)))return;if(cp(r))return hu(WY(vo(r)[0],a,l),FD(r));if(va(r)){let m=Kt(fv(r),T=>WY(T,a,l)),h=ng(a)&4?sl(r.target.elementFlags,T=>T&2?1:T):r.target.elementFlags;return Pd(m,h,r.target.readonly,r.target.labeledElementDeclarations)}let _=ep(1040,void 0);return _.source=r,_.mappedType=a,_.constraintType=l,_}function wrt(r){let a=Ti(r);return a.type||(a.type=WY(r.links.propertyType,r.links.mappedType,r.links.constraintType)),a.type}function WY(r,a,l){let _=G_(l.type,Cd(a)),m=kh(a),h=mme(_);return Ih([h],r,m),N8e(h)||ln}function*yme(r,a,l,_){let m=Qa(a);for(let h of m)if(!bPe(h)&&(l||!(h.flags&16777216||lc(h)&48))){let T=Ks(r,h.escapedName);if(!T)yield h;else if(_){let N=Vn(h);if(N.flags&109472){let F=Vn(T);F.flags&1||c_(F)===c_(N)||(yield h)}}}}function vme(r,a,l,_){return RI(yme(r,a,l,_))}function Art(r,a){return!(a.target.combinedFlags&8)&&a.target.minLength>r.target.minLength||!a.target.hasRestElement&&(r.target.hasRestElement||a.target.fixedLengthik(h,m),r)===r&&Sme(r,a)}return!1}function O8e(r,a){if(r===a||a.flags&5)return!0;if(a.flags&2097152)return hi(a.types,l=>l===zc||O8e(r,l));if(r.flags&128){let l=r.value;return!!(a.flags&8&&F8e(l,!1)||a.flags&64&&iF(l,!1)||a.flags&98816&&l===a.intrinsicName||a.flags&268435456&&Sme(b_(l),a)||a.flags&134217728&&UY(r,a))}if(r.flags&134217728){let l=r.texts;return l.length===2&&l[0]===""&&l[1]===""&&da(r.types[0],a)}return da(r,a)}function L8e(r,a){return r.flags&128?M8e([r.value],Ve,a):r.flags&134217728?tP(r.texts,a.texts)?Kt(r.types,Ort):M8e(r.texts,r.types,a):void 0}function UY(r,a){let l=L8e(r,a);return!!l&&hi(l,(_,m)=>O8e(_,a.types[m]))}function Ort(r){return r.flags&402653317?r:JS(["",""],[r])}function M8e(r,a,l){let _=r.length-1,m=r[0],h=r[_],T=l.texts,N=T.length-1,F=T[0],U=T[N];if(_===0&&m.length0){let tr=Te,yn=Ne;for(;yn=st(tr).indexOf(pn,yn),!(yn>=0);){if(tr++,tr===r.length)return;yn=0}Et(tr,yn),Ne+=pn.length}else if(Ne!gs(Ns,wa)):dn,qn?Fr(zn,wa=>!gs(qn,wa)):zn]}function tr(dn,zn,ki){let Ns=dn.length!!On(qn));if(!Ns||zn&&Ns!==zn)return;zn=Ns}return zn}function wn(dn,zn,ki){let Ns=0;if(ki&1048576){let qn,wa=dn.flags&1048576?dn.types:[dn],po=new Array(wa.length),fl=!1;for(let qa of zn)if(On(qa))qn=qa,Ns++;else for(let Dl=0;Dlpo[Lc]?void 0:Dl);if(qa.length){Te(Jr(qa),qn);return}}}else for(let qn of zn)On(qn)?Ns++:Te(dn,qn);if(ki&2097152?Ns===1:Ns>0)for(let qn of zn)On(qn)&&Ne(dn,qn,1)}function vn(dn,zn,ki){if(ki.flags&1048576){let Ns=!1;for(let qn of ki.types)Ns=vn(dn,zn,qn)||Ns;return Ns}if(ki.flags&4194304){let Ns=On(ki.type);if(Ns&&!Ns.isFixed&&!I8e(dn)){let qn=A8e(dn,zn,ki);qn&&Ne(qn,Ns.typeParameter,Ir(dn)&262144?16:8)}return!0}if(ki.flags&262144){Ne(sg(dn,dn.pattern?2:0),ki,32);let Ns=RS(ki);if(Ns&&vn(dn,zn,Ns))return!0;let qn=Kt(Qa(dn),Vn),wa=Kt($u(dn),po=>po!==Tr?po.type:wr);return Te(Jr(es(qn,wa)),kh(zn)),!0}return!1}function lr(dn,zn){if(dn.flags&16777216)Te(dn.checkType,zn.checkType),Te(dn.extendsType,zn.extendsType),Te(dv(dn),dv(zn)),Te(mv(dn),mv(zn));else{let ki=[dv(zn),mv(zn)];Et(dn,ki,zn.flags,m?64:0)}}function bs(dn,zn){let ki=L8e(dn,zn),Ns=zn.types;if(ki||hi(zn.texts,qn=>qn.length===0))for(let qn=0;qnAo|pf.flags,0);if(!(Lc&4)){let Ao=wa.value;Lc&296&&!F8e(Ao,!0)&&(Lc&=-297),Lc&2112&&!iF(Ao,!0)&&(Lc&=-2113);let pf=Fu(Dl,(Xe,de)=>de.flags&Lc?Xe.flags&4?Xe:de.flags&4?wa:Xe.flags&134217728?Xe:de.flags&134217728&&UY(wa,de)?wa:Xe.flags&268435456?Xe:de.flags&268435456&&Ao===Iwe(de.symbol,Ao)?wa:Xe.flags&128?Xe:de.flags&128&&de.value===Ao?de:Xe.flags&8?Xe:de.flags&8?wd(+Ao):Xe.flags&32?Xe:de.flags&32?wd(+Ao):Xe.flags&256?Xe:de.flags&256&&de.value===+Ao?de:Xe.flags&64?Xe:de.flags&64?Frt(Ao):Xe.flags&2048?Xe:de.flags&2048&&Qv(de.value)===Ao?de:Xe.flags&16?Xe:de.flags&16?Ao==="true"?nr:Ao==="false"?Wt:jr:Xe.flags&512?Xe:de.flags&512&&de.intrinsicName===Ao?de:Xe.flags&32768?Xe:de.flags&32768&&de.intrinsicName===Ao?de:Xe.flags&65536?Xe:de.flags&65536&&de.intrinsicName===Ao?de:Xe:Xe,wr);if(!(pf.flags&131072)){Te(pf,po);continue}}}}Te(wa,po)}}function ws(dn,zn){var ki,Ns;if(Ir(dn)&4&&Ir(zn)&4&&(dn.target===zn.target||cp(dn)&&cp(zn))){tr(vo(dn),vo(zn),tme(dn.target));return}if(jf(dn)&&jf(zn)){Te(Op(dn),Op(zn)),Te(kh(dn),kh(zn));let qn=P0(dn),wa=P0(zn);qn&&wa&&Te(qn,wa)}if(Ir(zn)&32&&!zn.declaration.nameType){let qn=Op(zn);if(vn(dn,zn,qn))return}if(!Nrt(dn,zn)){if(Xb(dn)){if(va(zn)){let qn=A0(dn),wa=A0(zn),po=vo(zn),fl=zn.target.elementFlags;if(va(dn)&&_rt(dn,zn)){for(let Lc=0;Lc0){let wa=Ps(zn,ki),po=wa.length;for(let fl=0;fl1){let a=Fr(r,xme);if(a.length){let l=Jr(a,2);return es(Fr(r,_=>!xme(_)),[l])}}return r}function Brt(r){return r.priority&416?ya(r.contraCandidates):irt(r.contraCandidates)}function Jrt(r,a){let l=jrt(r.candidates),_=Rrt(r.typeParameter)||tk(r.typeParameter),m=!_&&r.topLevel&&(r.isFixed||!Ert(a,r.typeParameter)),h=_?sl(l,c_):m?sl(l,Qb):l,T=r.priority&416?Jr(h,2):rrt(h);return _f(T)}function Tme(r,a){let l=r.inferences[a];if(!l.inferredType){let _,m;if(r.signature){let T=l.candidates?Jrt(l,r.signature):void 0,N=l.contraCandidates?Brt(l):void 0;if(T||N){let F=T&&(!N||!(T.flags&131072)&&ft(l.contraCandidates,U=>Wy(T,U))&&hi(r.inferences,U=>U!==l&&Nu(U.typeParameter)!==l.typeParameter||hi(U.candidates,re=>Wy(re,T))));_=F?T:N,m=F?N:T}else if(r.flags&1)_=is;else{let F=jS(l.typeParameter);F&&(_=Vi(F,hnt(gnt(r,a),r.nonFixingMapper)))}}else _=N8e(l);l.inferredType=_||kme(!!(r.flags&2));let h=Nu(l.typeParameter);if(h){let T=Vi(h,r.nonFixingMapper);(!_||!r.compareTypes(_,uf(T,_)))&&(l.inferredType=m&&r.compareTypes(m,uf(T,m))?m:T)}}return l.inferredType}function kme(r){return r?G:ln}function Cme(r){let a=[];for(let l=0;lWu(a)||Xp(a)||nf(a)))}function qY(r,a,l,_){switch(r.kind){case 80:if(!Dx(r)){let T=sd(r);return T!==gt?`${_?Va(_):"-1"}|${Xu(a)}|${Xu(l)}|${ta(T)}`:void 0}case 110:return`0|${_?Va(_):"-1"}|${Xu(a)}|${Xu(l)}`;case 235:case 217:return qY(r.expression,a,l,_);case 166:let m=qY(r.left,a,l,_);return m&&m+"."+r.right.escapedText;case 211:case 212:let h=WS(r);if(h!==void 0){let T=qY(r.expression,a,l,_);return T&&T+"."+h}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Va(r)}#${Xu(a)}`}}function iu(r,a){switch(a.kind){case 217:case 235:return iu(r,a.expression);case 226:return pl(a)&&iu(r,a.left)||Yn(a)&&a.operatorToken.kind===28&&iu(r,a.right)}switch(r.kind){case 236:return a.kind===236&&r.keywordToken===a.keywordToken&&r.name.escapedText===a.name.escapedText;case 80:case 81:return Dx(r)?a.kind===110:a.kind===80&&sd(r)===sd(a)||(Ni(a)||Ma(a))&&Ip(sd(r))===fr(a);case 110:return a.kind===110;case 108:return a.kind===108;case 235:case 217:return iu(r.expression,a);case 211:case 212:let l=WS(r),_=ho(a)?WS(a):void 0;return l!==void 0&&_!==void 0&&_===l&&iu(r.expression,a.expression);case 166:return ho(a)&&r.right.escapedText===WS(a)&&iu(r.left,a.expression);case 226:return Yn(r)&&r.operatorToken.kind===28&&iu(r.right,a)}return!1}function WS(r){if(Cr(r))return r.name.escapedText;if(ko(r))return zrt(r);if(Ma(r)){let a=ao(r);return a?Yo(a):void 0}if(ms(r))return""+r.parent.parameters.indexOf(r)}function Dme(r){return r.flags&8192?r.escapedName:r.flags&384?Yo(""+r.value):void 0}function zrt(r){return vf(r.argumentExpression)?Yo(r.argumentExpression.text):gc(r.argumentExpression)?Vrt(r.argumentExpression):void 0}function Vrt(r){let a=yo(r,111551,!0);if(!a||!(JD(a)||a.flags&8))return;let l=a.valueDeclaration;if(l===void 0)return;let _=Le(l);if(_){let m=Dme(_);if(m!==void 0)return m}if(y2(l)&&b0(l,r)){let m=lw(l);if(m)return Dme(su(m));if(sb(l))return Jk(l.name)}}function j8e(r,a){for(;ho(r);)if(r=r.expression,iu(r,a))return!0;return!1}function US(r,a){for(;Tu(r);)if(r=r.expression,iu(r,a))return!0;return!1}function MD(r,a){if(r&&r.flags&1048576){let l=jPe(r,a);if(l&&lc(l)&2)return l.links.isDiscriminantProperty===void 0&&(l.links.isDiscriminantProperty=(l.links.checkFlags&192)===192&&!AD(Vn(l))),!!l.links.isDiscriminantProperty}return!1}function B8e(r,a){let l;for(let _ of r)if(MD(a,_.escapedName)){if(l){l.push(_);continue}l=[_]}return l}function Wrt(r,a){let l=new Map,_=0;for(let m of r)if(m.flags&61603840){let h=q(m,a);if(h){if(!sI(h))return;let T=!1;HS(h,N=>{let F=Xu(c_(N)),U=l.get(F);U?U!==ln&&(l.set(F,ln),T=!0):l.set(F,m)}),T||_++}}return _>=10&&_*2>=r.length?l:void 0}function IR(r){let a=r.types;if(!(a.length<10||Ir(r)&32768||Lh(a,l=>!!(l.flags&59506688))<10)){if(r.keyPropertyName===void 0){let l=Qt(a,m=>m.flags&59506688?Qt(Qa(m),h=>Ad(Vn(h))?h.escapedName:void 0):void 0),_=l&&Wrt(a,l);r.keyPropertyName=_?l:"",r.constituentMap=_}return r.keyPropertyName.length?r.keyPropertyName:void 0}}function FR(r,a){var l;let _=(l=r.constituentMap)==null?void 0:l.get(Xu(c_(a)));return _!==ln?_:void 0}function J8e(r,a){let l=IR(r),_=l&&q(a,l);return _&&FR(r,_)}function Urt(r,a){let l=IR(r),_=l&&xr(a.properties,h=>h.symbol&&h.kind===303&&h.symbol.escapedName===l&&zR(h.initializer)),m=_&&cj(_.initializer);return m&&FR(r,m)}function z8e(r,a){return iu(r,a)||j8e(r,a)}function V8e(r,a){if(r.arguments){for(let l of r.arguments)if(z8e(a,l)||US(l,a))return!0}return!!(r.expression.kind===211&&z8e(a,r.expression.expression))}function Pme(r){return(!r.id||r.id<0)&&(r.id=Zie,Zie++),r.id}function qrt(r,a){if(!(r.flags&1048576))return da(r,a);for(let l of r.types)if(da(l,a))return!0;return!1}function Hrt(r,a){if(r===a)return r;if(a.flags&131072)return a;let l=`A${Xu(r)},${Xu(a)}`;return hS(l)??Eb(l,Grt(r,a))}function Grt(r,a){let l=Hc(r,m=>qrt(a,m)),_=a.flags&512&&Gb(a)?zo(l,ok):l;return da(a,_)?_:r}function wme(r){let a=Ed(r);return!!(a.callSignatures.length||a.constructSignatures.length||a.members.get("bind")&&Wy(r,Tt))}function RD(r,a){return Ame(r,a)&a}function Rp(r,a){return RD(r,a)!==0}function Ame(r,a){r.flags&467927040&&(r=a_(r)||ln);let l=r.flags;if(l&268435460)return H?16317953:16776705;if(l&134217856){let _=l&128&&r.value==="";return H?_?12123649:7929345:_?12582401:16776705}if(l&40)return H?16317698:16776450;if(l&256){let _=r.value===0;return H?_?12123394:7929090:_?12582146:16776450}if(l&64)return H?16317188:16775940;if(l&2048){let _=T8e(r);return H?_?12122884:7928580:_?12581636:16775940}return l&16?H?16316168:16774920:l&528?H?r===Wt||r===Rn?12121864:7927560:r===Wt||r===Rn?12580616:16774920:l&524288?a&(H?83427327:83886079)?Ir(r)&16&&Ph(r)?H?83427327:83886079:wme(r)?H?7880640:16728e3:H?7888800:16736160:0:l&16384?9830144:l&32768?26607360:l&65536?42917664:l&12288?H?7925520:16772880:l&67108864?H?7888800:16736160:l&131072?0:l&1048576?Fu(r.types,(_,m)=>_|Ame(m,a),0):l&2097152?$rt(r,a):83886079}function $rt(r,a){let l=oc(r,402784252),_=0,m=134217727;for(let h of r.types)if(!(l&&h.flags&524288)){let T=Ame(h,a);_|=T,m&=T}return _&8256|m&134209471}function jp(r,a){return Hc(r,l=>Rp(l,a))}function qS(r,a){let l=W8e(jp(H&&r.flags&2?Bo:r,a));if(H)switch(a){case 524288:return zo(l,_=>Rp(_,65536)?ya([_,Rp(_,131072)&&!oc(l,65536)?Jr([Xs,De]):Xs]):_);case 1048576:return zo(l,_=>Rp(_,131072)?ya([_,Rp(_,65536)&&!oc(l,32768)?Jr([Xs,j]):Xs]):_);case 2097152:case 4194304:return zo(l,_=>Rp(_,262144)?drt(_):_)}return l}function W8e(r){return r===Bo?ln:r}function Nme(r,a){return a?Jr([vi(r),su(a)]):r}function U8e(r,a){var l;let _=N0(a);if(!Sp(_))return ot;let m=xp(_);return q(r,m)||_I((l=nk(r,m))==null?void 0:l.type)||ot}function q8e(r,a){return Bf(r,OD)&&srt(r,a)||_I(M0(65,r,j,void 0))||ot}function _I(r){return r&&(J.noUncheckedIndexedAccess?Jr([r,ee]):r)}function H8e(r){return hu(M0(65,r,j,void 0)||ot)}function Xrt(r){return r.parent.kind===209&&Ime(r.parent)||r.parent.kind===303&&Ime(r.parent.parent)?Nme(OR(r),r.right):su(r.right)}function Ime(r){return r.parent.kind===226&&r.parent.left===r||r.parent.kind===250&&r.parent.initializer===r}function Qrt(r,a){return q8e(OR(r),r.elements.indexOf(a))}function Yrt(r){return H8e(OR(r.parent))}function G8e(r){return U8e(OR(r.parent),r.name)}function Zrt(r){return Nme(G8e(r),r.objectAssignmentInitializer)}function OR(r){let{parent:a}=r;switch(a.kind){case 249:return Fe;case 250:return dj(a)||ot;case 226:return Xrt(a);case 220:return j;case 209:return Qrt(a,r);case 230:return Yrt(a);case 303:return G8e(a);case 304:return Zrt(a)}return ot}function Krt(r){let a=r.parent,l=X8e(a.parent),_=a.kind===206?U8e(l,r.propertyName||r.name):r.dotDotDotToken?H8e(l):q8e(l,a.elements.indexOf(r));return Nme(_,r.initializer)}function $8e(r){return Hr(r).resolvedType||su(r)}function eit(r){return r.initializer?$8e(r.initializer):r.parent.parent.kind===249?Fe:r.parent.parent.kind===250&&dj(r.parent.parent)||ot}function X8e(r){return r.kind===260?eit(r):Krt(r)}function tit(r){return r.kind===260&&r.initializer&&Vg(r.initializer)||r.kind!==208&&r.parent.kind===226&&Vg(r.parent.right)}function Yb(r){switch(r.kind){case 217:return Yb(r.expression);case 226:switch(r.operatorToken.kind){case 64:case 76:case 77:case 78:return Yb(r.left);case 28:return Yb(r.right)}}return r}function Q8e(r){let{parent:a}=r;return a.kind===217||a.kind===226&&a.operatorToken.kind===64&&a.left===r||a.kind===226&&a.operatorToken.kind===28&&a.right===r?Q8e(a):r}function nit(r){return r.kind===296?c_(su(r.expression)):wr}function HY(r){let a=Hr(r);if(!a.switchTypes){a.switchTypes=[];for(let l of r.caseBlock.clauses)a.switchTypes.push(nit(l))}return a.switchTypes}function Y8e(r){if(ft(r.caseBlock.clauses,l=>l.kind===296&&!$a(l.expression)))return;let a=[];for(let l of r.caseBlock.clauses){let _=l.kind===296?l.expression.text:void 0;a.push(_&&!gs(a,_)?_:void 0)}return a}function rit(r,a){return r.flags&1048576?!Qt(r.types,l=>!gs(a,l)):gs(a,r)}function jD(r,a){return!!(r===a||r.flags&131072||a.flags&1048576&&iit(r,a))}function iit(r,a){if(r.flags&1048576){for(let l of r.types)if(!By(a.types,l))return!1;return!0}return r.flags&1056&&ZQ(r)===a?!0:By(a.types,r)}function HS(r,a){return r.flags&1048576?Qt(r.types,a):a(r)}function _m(r,a){return r.flags&1048576?ft(r.types,a):a(r)}function Bf(r,a){return r.flags&1048576?hi(r.types,a):a(r)}function sit(r,a){return r.flags&3145728?hi(r.types,a):a(r)}function Hc(r,a){if(r.flags&1048576){let l=r.types,_=Fr(l,a);if(_===l)return r;let m=r.origin,h;if(m&&m.flags&1048576){let T=m.types,N=Fr(T,F=>!!(F.flags&1048576)||a(F));if(T.length-N.length===l.length-_.length){if(N.length===1)return N[0];h=Nde(1048576,N)}}return Fde(_,r.objectFlags&16809984,void 0,void 0,h)}return r.flags&131072||a(r)?r:wr}function GY(r,a){return Hc(r,l=>l!==a)}function ait(r){return r.flags&1048576?r.types.length:1}function zo(r,a,l){if(r.flags&131072)return r;if(!(r.flags&1048576))return a(r);let _=r.origin,m=_&&_.flags&1048576?_.types:r.types,h,T=!1;for(let N of m){let F=N.flags&1048576?zo(N,a,l):a(N);T||(T=N!==F),F&&(h?h.push(F):h=[F])}return T?h&&Jr(h,l?0:1):r}function Z8e(r,a,l,_){return r.flags&1048576&&l?Jr(Kt(r.types,a),1,l,_):zo(r,a)}function BD(r,a){return Hc(r,l=>(l.flags&a)!==0)}function K8e(r,a){return oc(r,134217804)&&oc(a,402655616)?zo(r,l=>l.flags&4?BD(a,402653316):sk(l)&&!oc(a,402653188)?BD(a,128):l.flags&8?BD(a,264):l.flags&64?BD(a,2112):l):r}function l4(r){return r.flags===0}function GS(r){return r.flags===0?r.type:r}function u4(r,a){return a?{flags:0,type:r.flags&131072?is:r}:r}function oit(r){let a=ep(256);return a.elementType=r,a}function Fme(r){return Ue[r.id]||(Ue[r.id]=oit(r))}function eAe(r,a){let l=cI(Ah(cj(a)));return jD(l,r.elementType)?r:Fme(Jr([r.elementType,l]))}function cit(r){return r.flags&131072?Vc:hu(r.flags&1048576?Jr(r.types,2):r)}function lit(r){return r.finalArrayType||(r.finalArrayType=cit(r.elementType))}function LR(r){return Ir(r)&256?lit(r):r}function uit(r){return Ir(r)&256?r.elementType:wr}function _it(r){let a=!1;for(let l of r)if(!(l.flags&131072)){if(!(Ir(l)&256))return!1;a=!0}return a}function tAe(r){let a=Q8e(r),l=a.parent,_=Cr(l)&&(l.name.escapedText==="length"||l.parent.kind===213&&Ie(l.name)&&xz(l.name)),m=l.kind===212&&l.expression===a&&l.parent.kind===226&&l.parent.operatorToken.kind===64&&l.parent.left===l&&!hg(l.parent)&&Ul(su(l.argumentExpression),296);return _||m}function fit(r){return(Ni(r)||Is(r)||bf(r)||ms(r))&&!!(Xl(r)||Qn(r)&&Q0(r)&&r.initializer&&Yv(r.initializer)&&yp(r.initializer))}function $Y(r,a){if(r=Oc(r),r.flags&8752)return Vn(r);if(r.flags&7){if(lc(r)&262144){let _=r.links.syntheticOrigin;if(_&&$Y(_))return Vn(r)}let l=r.valueDeclaration;if(l){if(fit(l))return Vn(r);if(Ni(l)&&l.parent.parent.kind===250){let _=l.parent.parent,m=MR(_.expression,void 0);if(m){let h=_.awaitModifier?15:13;return M0(h,m,j,void 0)}}a&&ga(a,vr(l,d._0_needs_an_explicit_type_annotation,ci(r)))}}}function MR(r,a){if(!(r.flags&67108864))switch(r.kind){case 80:let l=Ip(sd(r));return $Y(l,a);case 110:return Nit(r);case 108:return Bme(r);case 211:{let _=MR(r.expression,a);if(_){let m=r.name,h;if(Di(m)){if(!_.symbol)return;h=Ks(_,Ew(_.symbol,m.escapedText))}else h=Ks(_,m.escapedText);return h&&$Y(h,a)}return}case 217:return MR(r.expression,a)}}function RR(r){let a=Hr(r),l=a.effectsSignature;if(l===void 0){let _;if(Yn(r)){let T=_4(r.right);_=Age(T)}else r.parent.kind===244?_=MR(r.expression,void 0):r.expression.kind!==108&&(Tu(r)?_=fm(aI($i(r.expression),r.expression),r.expression):_=_4(r.expression));let m=Ps(_&&o_(_)||ln,0),h=m.length===1&&!m[0].typeParameters?m[0]:ft(m,nAe)?p4(r):void 0;l=a.effectsSignature=h&&nAe(h)?h:gn}return l===gn?void 0:l}function nAe(r){return!!(sp(r)||r.declaration&&(r4(r.declaration)||ln).flags&131072)}function pit(r,a){if(r.kind===1||r.kind===3)return a.arguments[r.parameterIndex];let l=eo(a.expression);return ho(l)?eo(l.expression):void 0}function dit(r){let a=Fn(r,CJ),l=Mn(r),_=Im(l,a.statements.pos);Ra.add(Nl(l,_.start,_.length,d.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function jR(r){let a=XY(r,!1);return Bn=r,sn=a,a}function BR(r){let a=eo(r,!0);return a.kind===97||a.kind===226&&(a.operatorToken.kind===56&&(BR(a.left)||BR(a.right))||a.operatorToken.kind===57&&BR(a.left)&&BR(a.right))}function XY(r,a){for(;;){if(r===Bn)return sn;let l=r.flags;if(l&4096){if(!a){let _=Pme(r),m=OT[_];return m!==void 0?m:OT[_]=XY(r,!0)}a=!1}if(l&368)r=r.antecedent;else if(l&512){let _=RR(r.node);if(_){let m=sp(_);if(m&&m.kind===3&&!m.type){let h=r.node.arguments[m.parameterIndex];if(h&&BR(h))return!1}if(Ua(_).flags&131072)return!1}r=r.antecedent}else{if(l&4)return ft(r.antecedents,_=>XY(_,!1));if(l&8){let _=r.antecedents;if(_===void 0||_.length===0)return!1;r=_[0]}else if(l&128){if(r.clauseStart===r.clauseEnd&&INe(r.switchStatement))return!1;r=r.antecedent}else if(l&1024){Bn=void 0;let _=r.target,m=_.antecedents;_.antecedents=r.antecedents;let h=XY(r.antecedent,!1);return _.antecedents=m,h}else return!(l&1)}}}function QY(r,a){for(;;){let l=r.flags;if(l&4096){if(!a){let _=Pme(r),m=mS[_];return m!==void 0?m:mS[_]=QY(r,!0)}a=!1}if(l&496)r=r.antecedent;else if(l&512){if(r.node.expression.kind===108)return!0;r=r.antecedent}else{if(l&4)return hi(r.antecedents,_=>QY(_,!1));if(l&8)r=r.antecedents[0];else if(l&1024){let _=r.target,m=_.antecedents;_.antecedents=r.antecedents;let h=QY(r.antecedent,!1);return _.antecedents=m,h}else return!!(l&1)}}}function rAe(r){switch(r.kind){case 110:return!0;case 80:if(!Dx(r)){let a=sd(r);return JD(a)||uV(a)&&!YY(a)}break;case 211:case 212:return rAe(r.expression)&&Id(Hr(r).resolvedSymbol||gt)}return!1}function Gy(r,a,l=a,_,m=(h=>(h=Ur(r,vw))==null?void 0:h.flowNode)()){let h,T=!1,N=0;if(jt)return ot;if(!m)return a;nn++;let F=xt,U=GS(Te(m));xt=F;let re=Ir(U)&256&&tAe(r)?Vc:LR(U);if(re===mi||r.parent&&r.parent.kind===235&&!(re.flags&131072)&&jp(re,2097152).flags&131072)return a;return re===W?ln:re;function le(){return T?h:(T=!0,h=qY(r,a,l,_))}function Te(et){var Ct;if(N===2e3)return(Ct=Wn)==null||Ct.instant(Wn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:et.id}),jt=!0,dit(r),ot;N++;let qt;for(;;){let Bt=et.flags;if(Bt&4096){for(let xn=F;xn=0&&qt.parameterIndex!(xn.flags&163840)):Ct.kind===221&&US(Ct.expression,r)&&(Bt=po(Bt,et.switchStatement,et.clauseStart,et.clauseEnd,xn=>!(xn.flags&131072||xn.flags&128&&xn.value==="undefined"))));let Xt=vn(Ct,Bt);Xt&&(Bt=ws(Bt,Xt,et.switchStatement,et.clauseStart,et.clauseEnd))}return u4(Bt,l4(qt))}function Ut(et){let Ct=[],qt=!1,Bt=!1,Xt;for(let xn of et.antecedents){if(!Xt&&xn.flags&128&&xn.clauseStart===xn.clauseEnd){Xt=xn;continue}let ui=Te(xn),Gr=GS(ui);if(Gr===a&&a===l)return Gr;lp(Ct,Gr),jD(Gr,l)||(qt=!0),l4(ui)&&(Bt=!0)}if(Xt){let xn=Te(Xt),ui=GS(xn);if(!(ui.flags&131072)&&!gs(Ct,ui)&&!INe(Xt.switchStatement)){if(ui===a&&a===l)return ui;Ct.push(ui),jD(ui,l)||(qt=!0),l4(xn)&&(Bt=!0)}}return u4(kn(Ct,qt?2:1),Bt)}function On(et){let Ct=Pme(et),qt=NT[Ct]||(NT[Ct]=new Map),Bt=le();if(!Bt)return a;let Xt=qt.get(Bt);if(Xt)return Xt;for(let mn=Ee;mn{let mn=ge(Yi,Bt)||ln;return!(mn.flags&131072)&&!(Gr.flags&131072)&&CR(Gr,mn)})}function bs(et,Ct,qt,Bt,Xt){if((qt===37||qt===38)&&et.flags&1048576){let xn=IR(et);if(xn&&xn===WS(Ct)){let ui=FR(et,su(Bt));if(ui)return qt===(Xt?37:38)?ui:Ad(q(ui,xn)||ln)?GY(et,ui):et}}return lr(et,Ct,xn=>Ns(xn,qt,Bt,Xt))}function ws(et,Ct,qt,Bt,Xt){if(BtFR(et,Gr)||ln));if(ui!==ln)return ui}return lr(et,Ct,xn=>fl(xn,qt,Bt,Xt))}function ks(et,Ct,qt){if(iu(r,Ct))return qS(et,qt?4194304:8388608);H&&qt&&US(Ct,r)&&(et=qS(et,2097152));let Bt=vn(Ct,et);return Bt?lr(et,Bt,Xt=>jp(Xt,qt?4194304:8388608)):et}function Xi(et,Ct,qt){let Bt=Ks(et,Ct);return Bt?!!(Bt.flags&16777216||lc(Bt)&48)||qt:!!nk(et,Ct)||!qt}function Iu(et,Ct,qt){let Bt=xp(Ct);if(_m(et,xn=>Xi(xn,Bt,!0)))return Hc(et,xn=>Xi(xn,Bt,qt));if(qt){let xn=vtt();if(xn)return ya([et,s4(xn,[Ct,ln])])}return et}function Jf(et,Ct,qt,Bt,Xt){return Xt=Xt!==(qt.kind===112)!=(Bt!==38&&Bt!==36),Er(et,Ct,Xt)}function dn(et,Ct,qt){switch(Ct.operatorToken.kind){case 64:case 76:case 77:case 78:return ks(Er(et,Ct.right,qt),Ct.left,qt);case 35:case 36:case 37:case 38:let Bt=Ct.operatorToken.kind,Xt=Yb(Ct.left),xn=Yb(Ct.right);if(Xt.kind===221&&$a(xn))return qn(et,Xt,Bt,xn,qt);if(xn.kind===221&&$a(Xt))return qn(et,xn,Bt,Xt,qt);if(iu(r,Xt))return Ns(et,Bt,xn,qt);if(iu(r,xn))return Ns(et,Bt,Xt,qt);H&&(US(Xt,r)?et=ki(et,Bt,xn,qt):US(xn,r)&&(et=ki(et,Bt,Xt,qt)));let ui=vn(Xt,et);if(ui)return bs(et,ui,Bt,xn,qt);let Gr=vn(xn,et);if(Gr)return bs(et,Gr,Bt,Xt,qt);if(pf(Xt))return Xe(et,Bt,xn,qt);if(pf(xn))return Xe(et,Bt,Xt,qt);if(G4(xn)&&!ho(Xt))return Jf(et,Xt,xn,Bt,qt);if(G4(Xt)&&!ho(xn))return Jf(et,xn,Xt,Bt,qt);break;case 104:return de(et,Ct,qt);case 103:if(Di(Ct.left))return zn(et,Ct,qt);let Yi=Yb(Ct.right);if(oI(et)&&ho(r)&&iu(r.expression,Yi)){let mn=su(Ct.left);if(Sp(mn)&&WS(r)===xp(mn))return jp(et,qt?524288:65536)}if(iu(r,Yi)){let mn=su(Ct.left);if(Sp(mn))return Iu(et,mn,qt)}break;case 28:return Er(et,Ct.right,qt);case 56:return qt?Er(Er(et,Ct.left,!0),Ct.right,!0):Jr([Er(et,Ct.left,!1),Er(et,Ct.right,!1)]);case 57:return qt?Jr([Er(et,Ct.left,!0),Er(et,Ct.right,!0)]):Er(Er(et,Ct.left,!1),Ct.right,!1)}return et}function zn(et,Ct,qt){let Bt=Yb(Ct.right);if(!iu(r,Bt))return et;E.assertNode(Ct.left,Di);let Xt=cZ(Ct.left);if(Xt===void 0)return et;let xn=Xt.parent,ui=Yc(E.checkDefined(Xt.valueDeclaration,"should always have a declaration"))?Vn(xn):wo(xn);return yr(et,ui,qt,!0)}function ki(et,Ct,qt,Bt){let Xt=Ct===35||Ct===37,xn=Ct===35||Ct===36?98304:32768,ui=su(qt);return Xt!==Bt&&Bf(ui,Yi=>!!(Yi.flags&xn))||Xt===Bt&&Bf(ui,Yi=>!(Yi.flags&(3|xn)))?qS(et,2097152):et}function Ns(et,Ct,qt,Bt){if(et.flags&1)return et;(Ct===36||Ct===38)&&(Bt=!Bt);let Xt=su(qt),xn=Ct===35||Ct===36;if(Xt.flags&98304){if(!H)return et;let ui=xn?Bt?262144:2097152:Xt.flags&65536?Bt?131072:1048576:Bt?65536:524288;return qS(et,ui)}if(Bt){if(!xn&&(et.flags&2||_m(et,wh))){if(Xt.flags&469893116||wh(Xt))return Xt;if(Xt.flags&524288)return ua}let ui=Hc(et,Gr=>CR(Gr,Xt)||xn&&mrt(Gr,Xt));return K8e(ui,Xt)}return Ad(Xt)?Hc(et,ui=>!(v8e(ui)&&CR(ui,Xt))):et}function qn(et,Ct,qt,Bt,Xt){(qt===36||qt===38)&&(Xt=!Xt);let xn=Yb(Ct.expression);if(!iu(r,xn)){H&&US(xn,r)&&Xt===(Bt.text!=="undefined")&&(et=qS(et,2097152));let ui=vn(xn,et);return ui?lr(et,ui,Gr=>wa(Gr,Bt,Xt)):et}return wa(et,Bt,Xt)}function wa(et,Ct,qt){return qt?qa(et,Ct.text):qS(et,gU.get(Ct.text)||32768)}function po(et,Ct,qt,Bt,Xt){return qt!==Bt&&hi(HY(Ct).slice(qt,Bt),Xt)?jp(et,2097152):et}function fl(et,Ct,qt,Bt){let Xt=HY(Ct);if(!Xt.length)return et;let xn=Xt.slice(qt,Bt),ui=qt===Bt||gs(xn,wr);if(et.flags&2&&!ui){let $r;for(let bi=0;biCR(Gr,$r)),Gr);if(!ui)return Yi;let mn=Hc(et,$r=>!(v8e($r)&&gs(Xt,c_(ort($r)))));return Yi.flags&131072?mn:Jr([Yi,mn])}function qa(et,Ct){switch(Ct){case"string":return Dl(et,Fe,1);case"number":return Dl(et,St,2);case"bigint":return Dl(et,Mt,4);case"boolean":return Dl(et,jr,8);case"symbol":return Dl(et,Br,16);case"object":return et.flags&1?et:Jr([Dl(et,ua,32),Dl(et,De,131072)]);case"function":return et.flags&1?et:Dl(et,Tt,64);case"undefined":return Dl(et,j,65536)}return Dl(et,ua,128)}function Dl(et,Ct,qt){return zo(et,Bt=>um(Bt,Ct,Qf)?Rp(Bt,qt)?Bt:wr:Wy(Ct,Bt)?Ct:Rp(Bt,qt)?ya([Bt,Ct]):wr)}function Lc(et,Ct,qt,Bt){let Xt=Y8e(Ct);if(!Xt)return et;let xn=Qo(Ct.caseBlock.clauses,Yi=>Yi.kind===297);if(qt===Bt||xn>=qt&&xnRD(mn,Yi)===Yi)}let Gr=Xt.slice(qt,Bt);return Jr(Kt(Gr,Yi=>Yi?qa(et,Yi):wr))}function Ao(et,Ct,qt,Bt){let Xt=Qo(Ct.caseBlock.clauses,Gr=>Gr.kind===297),xn=qt===Bt||Xt>=qt&&XtGr.kind===296?Er(et,Gr.expression,!0):wr))}function pf(et){return(Cr(et)&&ur(et.name)==="constructor"||ko(et)&&$a(et.argumentExpression)&&et.argumentExpression.text==="constructor")&&iu(r,et.expression)}function Xe(et,Ct,qt,Bt){if(Bt?Ct!==35&&Ct!==37:Ct!==36&&Ct!==38)return et;let Xt=su(qt);if(!ohe(Xt)&&!gi(Xt))return et;let xn=Ks(Xt,"prototype");if(!xn)return et;let ui=Vn(xn),Gr=Ae(ui)?void 0:ui;if(!Gr||Gr===ye||Gr===Tt)return et;if(Ae(et))return Gr;return Hc(et,mn=>Yi(mn,Gr));function Yi(mn,$r){return mn.flags&524288&&Ir(mn)&1||$r.flags&524288&&Ir($r)&1?mn.symbol===$r.symbol:Wy(mn,$r)}}function de(et,Ct,qt){let Bt=Yb(Ct.left);if(!iu(r,Bt))return qt&&H&&US(Bt,r)?qS(et,2097152):et;let Xt=Ct.right,xn=su(Xt);if(!hv(xn,ye))return et;let ui=RR(Ct),Gr=ui&&sp(ui);if(Gr&&Gr.kind===1&&Gr.parameterIndex===0)return yr(et,Gr.type,qt,!0);if(!hv(xn,Tt))return et;let Yi=zo(xn,Xn);return Ae(et)&&(Yi===ye||Yi===Tt)||!qt&&!(Yi.flags&524288&&!wh(Yi))?et:yr(et,Yi,qt,!0)}function Xn(et){let Ct=q(et,"prototype");if(Ct&&!Ae(Ct))return Ct;let qt=Ps(et,1);return qt.length?Jr(Kt(qt,Bt=>Ua(QN(Bt)))):Xs}function yr(et,Ct,qt,Bt){let Xt=et.flags&1048576?`N${Xu(et)},${Xu(Ct)},${(qt?1:0)|(Bt?2:0)}`:void 0;return hS(Xt)??Eb(Xt,ni(et,Ct,qt,Bt))}function ni(et,Ct,qt,Bt){if(!qt){if(Bt)return Hc(et,Yi=>!hv(Yi,Ct));let Gr=yr(et,Ct,!0,!1);return Hc(et,Yi=>!jD(Yi,Gr))}if(et.flags&3)return Ct;let Xt=Bt?hv:Wy,xn=et.flags&1048576?IR(et):void 0,ui=zo(Ct,Gr=>{let Yi=xn&&q(Gr,xn),mn=Yi&&FR(et,Yi),$r=zo(mn||et,Bt?bi=>hv(bi,Gr)?bi:hv(Gr,bi)?Gr:wr:bi=>e8e(bi,Gr)?bi:e8e(Gr,bi)?Gr:Wy(bi,Gr)?bi:Wy(Gr,bi)?Gr:wr);return $r.flags&131072?zo(et,bi=>oc(bi,465829888)&&Xt(Gr,a_(bi)||ln)?ya([bi,Gr]):wr):$r});return ui.flags&131072?Wy(Ct,et)?Ct:da(et,Ct)?et:da(Ct,et)?Ct:ya([et,Ct]):ui}function Kr(et,Ct,qt){if(V8e(Ct,r)){let Bt=qt||!p2(Ct)?RR(Ct):void 0,Xt=Bt&&sp(Bt);if(Xt&&(Xt.kind===0||Xt.kind===1))return di(et,Xt,Ct,qt)}if(oI(et)&&ho(r)&&Cr(Ct.expression)){let Bt=Ct.expression;if(iu(r.expression,Yb(Bt.expression))&&Ie(Bt.name)&&Bt.name.escapedText==="hasOwnProperty"&&Ct.arguments.length===1){let Xt=Ct.arguments[0];if($a(Xt)&&WS(r)===Yo(Xt.text))return jp(et,qt?524288:65536)}}return et}function di(et,Ct,qt,Bt){if(Ct.type&&!(Ae(et)&&(Ct.type===ye||Ct.type===Tt))){let Xt=pit(Ct,qt);if(Xt){if(iu(r,Xt))return yr(et,Ct.type,Bt,!1);H&&US(Xt,r)&&(Bt&&!Rp(Ct.type,65536)||!Bt&&Bf(Ct.type,GR))&&(et=qS(et,2097152));let xn=vn(Xt,et);if(xn)return lr(et,xn,ui=>yr(ui,Ct.type,Bt,!1))}}return et}function Er(et,Ct,qt){if(D7(Ct)||Yn(Ct.parent)&&(Ct.parent.operatorToken.kind===61||Ct.parent.operatorToken.kind===78)&&Ct.parent.left===Ct)return dr(et,Ct,qt);switch(Ct.kind){case 80:if(!iu(r,Ct)&&w<5){let Bt=sd(Ct);if(JD(Bt)){let Xt=Bt.valueDeclaration;if(Xt&&Ni(Xt)&&!Xt.type&&Xt.initializer&&rAe(r)){w++;let xn=Er(et,Xt.initializer,qt);return w--,xn}}}case 110:case 108:case 211:case 212:return ks(et,Ct,qt);case 213:return Kr(et,Ct,qt);case 217:case 235:return Er(et,Ct.expression,qt);case 226:return dn(et,Ct,qt);case 224:if(Ct.operator===54)return Er(et,Ct.operand,!qt);break}return et}function dr(et,Ct,qt){if(iu(r,Ct))return qS(et,qt?2097152:262144);let Bt=vn(Ct,et);return Bt?lr(et,Bt,Xt=>jp(Xt,qt?2097152:262144)):et}}function mit(r,a){if(r=Ip(r),(a.kind===80||a.kind===81)&&(SE(a)&&(a=a.parent),mg(a)&&(!hg(a)||Ax(a)))){let l=MY(Ax(a)&&a.kind===211?aZ(a,void 0,!0):su(a));if(Ip(Hr(a).resolvedSymbol)===r)return l}return ih(a)&&qh(a.parent)&&Xa(a.parent)?$Q(a.parent.symbol):Bz(a)&&Ax(a.parent)?OS(r):Oy(r)}function fI(r){return Fn(r.parent,a=>As(a)&&!T2(a)||a.kind===268||a.kind===312||a.kind===172)}function YY(r){if(!r.valueDeclaration)return!1;let a=Fm(r.valueDeclaration).parent,l=Hr(a);return l.flags&131072||(l.flags|=131072,git(a)||iAe(a)),r.isAssigned||!1}function git(r){return!!Fn(r.parent,a=>(As(a)||ib(a))&&!!(Hr(a).flags&131072))}function iAe(r){if(r.kind===80){if(hg(r)){let a=sd(r);uV(a)&&(a.isAssigned=!0)}}else vs(r,iAe)}function JD(r){return r.flags&3&&(Kme(r)&6)!==0}function hit(r){let a=Hr(r);if(a.parameterInitializerContainsUndefined===void 0){if(!Km(r,9))return Z6(r.symbol),!0;let l=!!Rp(bI(r,0),16777216);if(!lm())return Z6(r.symbol),!0;a.parameterInitializerContainsUndefined=l}return a.parameterInitializerContainsUndefined}function yit(r,a){return H&&a.kind===169&&a.initializer&&Rp(r,16777216)&&!hit(a)?jp(r,524288):r}function vit(r,a){let l=a.parent;return l.kind===211||l.kind===166||l.kind===213&&l.expression===a||l.kind===212&&l.expression===a&&!(_m(r,aAe)&&pv(su(l.argumentExpression)))}function sAe(r){return r.flags&2097152?ft(r.types,sAe):!!(r.flags&465829888&&Ch(r).flags&1146880)}function aAe(r){return r.flags&2097152?ft(r.types,aAe):!!(r.flags&465829888&&!oc(Ch(r),98304))}function bit(r,a){let l=(Ie(r)||Cr(r)||ko(r))&&!((Gd(r.parent)||W2(r.parent))&&r.parent.tagName===r)&&(a&&a&32?S_(r,8):S_(r,void 0));return l&&!AD(l)}function Ome(r,a,l){return!(l&&l&2)&&_m(r,sAe)&&(vit(r,a)||bit(a,l))?zo(r,Ch):r}function oAe(r){return!!Fn(r,a=>{let l=a.parent;return l===void 0?"quit":hc(l)?l.expression===a&&gc(a):Eu(l)?l.name===a||l.propertyName===a:!1})}function ZY(r,a){if(lt&&Z1(r,111551)&&!A2(a)){let l=yl(r);mu(r,!0)&1160127&&(pd(J)||F2(J)&&oAe(a)||!wI(Ip(l))?x0(r):Wl(r))}}function Sit(r,a){var l;let _=Vn(r),m=r.valueDeclaration;if(m){if(Ma(m)&&!m.initializer&&!m.dotDotDotToken&&m.parent.elements.length>=2){let h=m.parent.parent;if(h.kind===260&&i2(m)&6||h.kind===169){let T=Hr(h);if(!(T.flags&4194304)){T.flags|=4194304;let N=Nt(h,0),F=N&&zo(N,Ch);if(T.flags&=-4194305,F&&F.flags&1048576&&!(h.kind===169&&YY(r))){let U=m.parent,re=Gy(U,F,F,void 0,a.flowNode);return re.flags&131072?wr:np(m,re,!0)}}}}if(ms(m)&&!m.type&&!m.initializer&&!m.dotDotDotToken){let h=m.parent;if(h.parameters.length>=2&&TY(h)){let T=dI(h);if(T&&T.parameters.length===1&&Du(T)){let N=kD(Vi(Vn(T.parameters[0]),(l=Kb(h))==null?void 0:l.nonFixingMapper));if(N.flags&1048576&&Bf(N,va)&&!YY(r)){let F=Gy(h,N,N,void 0,a.flowNode),U=h.parameters.indexOf(m)-(Uv(h)?1:0);return G_(F,wd(U))}}}}}return _}function xit(r,a){if(Dx(r))return JR(r);let l=sd(r);if(l===gt)return ot;if(l===at){if(UAe(r))return je(r,d.arguments_cannot_be_referenced_in_property_initializers),ot;let Ut=yf(r);return ie<2&&(Ut.kind===219?je(r,d.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Mr(Ut,1024)&&je(r,d.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),Hr(Ut).flags|=512,Vn(l)}kit(r)&&ZY(l,r);let _=Ip(l),m=the(_,r);v0(m)&&Lde(r,m)&&m.declarations&&Fg(r,m.declarations,r.escapedText);let h=_.valueDeclaration;if(h&&_.flags&32&&ei(h)&&h.name!==r){let Ut=__(r,!1,!1);for(;Ut.kind!==312&&Ut.parent!==h;)Ut=__(Ut,!1,!1);Ut.kind!==312&&(Hr(h).flags|=262144,Hr(Ut).flags|=262144,Hr(r).flags|=536870912)}Dit(r,l);let T=Sit(_,r),N=kx(r);if(N){if(!(_.flags&3)&&!(Qn(r)&&_.flags&512)){let Ut=_.flags&384?d.Cannot_assign_to_0_because_it_is_an_enum:_.flags&32?d.Cannot_assign_to_0_because_it_is_a_class:_.flags&1536?d.Cannot_assign_to_0_because_it_is_a_namespace:_.flags&16?d.Cannot_assign_to_0_because_it_is_a_function:_.flags&2097152?d.Cannot_assign_to_0_because_it_is_an_import:d.Cannot_assign_to_0_because_it_is_not_a_variable;return je(r,Ut,ci(l)),ot}if(Id(_))return _.flags&3?je(r,d.Cannot_assign_to_0_because_it_is_a_constant,ci(l)):je(r,d.Cannot_assign_to_0_because_it_is_a_read_only_property,ci(l)),ot}let F=_.flags&2097152;if(_.flags&3){if(N===1)return dz(r)?Ah(T):T}else if(F)h=wp(l);else return T;if(!h)return T;T=Ome(T,r,a);let U=Fm(h).kind===169,re=fI(h),le=fI(r),Te=le!==re,Ne=r.parent&&r.parent.parent&&n0(r.parent)&&Ime(r.parent.parent),st=l.flags&134217728,Et=T===vt||T===Vc,Yt=Et&&r.parent.kind===235;for(;le!==re&&(le.kind===218||le.kind===219||t5(le))&&(JD(_)&&T!==Vc||U&&!YY(_));)le=fI(le);let pn=U||F||Te||Ne||st||Tit(r,h)||T!==vt&&T!==Vc&&(!H||(T.flags&16387)!==0||A2(r)||Eme(r)||r.parent.kind===281)||r.parent.kind===235||h.kind===260&&h.exclamationToken||h.flags&33554432,tr=Yt?j:pn?U?yit(T,h):T:Et?j:qy(T),yn=Yt?Nh(Gy(r,T,tr,le)):Gy(r,T,tr,le);if(!tAe(r)&&(T===vt||T===Vc)){if(yn===vt||yn===Vc)return se&&(je(us(h),d.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,ci(l),hn(yn)),je(r,d.Variable_0_implicitly_has_an_1_type,ci(l),hn(yn))),PI(yn)}else if(!pn&&!ND(T)&&ND(yn))return je(r,d.Variable_0_is_used_before_being_assigned,ci(l)),T;return N?Ah(yn):yn}function Tit(r,a){if(Ma(a)){let l=Fn(r,Ma);return l&&Fm(l)===Fm(a)}}function kit(r){var a;let l=r.parent;if(l){if(Cr(l)&&l.expression===r||Eu(l)&&l.isTypeOnly)return!1;let _=(a=l.parent)==null?void 0:a.parent;if(_&&Kc(_)&&_.isTypeOnly)return!1}return!0}function Cit(r,a){return!!Fn(r,l=>l===a?"quit":As(l)||l.parent&&Is(l.parent)&&!Yc(l.parent)&&l.parent.initializer===l)}function Eit(r,a){return Fn(r,l=>l===a?"quit":l===a.initializer||l===a.condition||l===a.incrementor||l===a.statement)}function Lme(r){return Fn(r,a=>!a||Tz(a)?"quit":$0(a,!1))}function Dit(r,a){if(ie>=2||!(a.flags&34)||!a.valueDeclaration||Li(a.valueDeclaration)||a.valueDeclaration.parent.kind===299)return;let l=Nm(a.valueDeclaration),_=Cit(r,l),m=Lme(l);if(m){if(_){let h=!0;if(z2(l)){let T=f1(a.valueDeclaration,261);if(T&&T.parent===l){let N=Eit(r.parent,l);if(N){let F=Hr(N);F.flags|=8192;let U=F.capturedBlockScopeBindings||(F.capturedBlockScopeBindings=[]);lp(U,a),N===l.initializer&&(h=!1)}}}h&&(Hr(m).flags|=4096)}if(z2(l)){let h=f1(a.valueDeclaration,261);h&&h.parent===l&&wit(r,l)&&(Hr(a.valueDeclaration).flags|=65536)}Hr(a.valueDeclaration).flags|=32768}_&&(Hr(a.valueDeclaration).flags|=16384)}function Pit(r,a){let l=Hr(r);return!!l&&gs(l.capturedBlockScopeBindings,fr(a))}function wit(r,a){let l=r;for(;l.parent.kind===217;)l=l.parent;let _=!1;if(hg(l))_=!0;else if(l.parent.kind===224||l.parent.kind===225){let m=l.parent;_=m.operator===46||m.operator===47}return _?!!Fn(l,m=>m===a?"quit":m===a.statement):!1}function Mme(r,a){if(Hr(r).flags|=2,a.kind===172||a.kind===176){let l=a.parent;Hr(l).flags|=4}else Hr(a).flags|=4}function cAe(r){return x2(r)?r:As(r)?void 0:vs(r,cAe)}function Rme(r){let a=fr(r),l=wo(a);return rl(l)===qe}function lAe(r,a,l){let _=a.parent;Vv(_)&&!Rme(_)&&vw(r)&&r.flowNode&&!QY(r.flowNode,!1)&&je(r,l)}function Ait(r,a){Is(a)&&Yc(a)&&Z&&a.initializer&&DP(a.initializer,r.pos)&&Vf(a.parent)&&je(r,d.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function JR(r){let a=A2(r),l=__(r,!0,!0),_=!1,m=!1;for(l.kind===176&&lAe(r,l,d.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(l.kind===219&&(l=__(l,!1,!m),_=!0),l.kind===167){l=__(l,!_,!1),m=!0;continue}break}if(Ait(r,l),m)je(r,d.this_cannot_be_referenced_in_a_computed_property_name);else switch(l.kind){case 267:je(r,d.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:je(r,d.this_cannot_be_referenced_in_current_location);break;case 176:uAe(r,l)&&je(r,d.this_cannot_be_referenced_in_constructor_arguments);break}!a&&_&&ie<2&&Mme(r,l);let h=jme(r,!0,l);if(Y){let T=Vn(Qe);if(h===T&&_)je(r,d.The_containing_arrow_function_captures_the_global_value_of_this);else if(!h){let N=je(r,d.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!Li(l)){let F=jme(l);F&&F!==T&&ga(N,vr(l,d.An_outer_value_of_this_is_shadowed_by_this_container))}}}return h||G}function jme(r,a=!0,l=__(r,!1,!1)){let _=Qn(r);if(As(l)&&(!zme(r)||Uv(l))){let m=Fy(l)||_&&Fit(l);if(!m){let h=Iit(l);if(_&&h){let T=$i(h).symbol;T&&T.members&&T.flags&16&&(m=wo(T).thisType)}else dm(l)&&(m=wo(Ba(l.symbol)).thisType);m||(m=dAe(l))}if(m)return Gy(r,m)}if(ei(l.parent)){let m=fr(l.parent),h=zs(l)?Vn(m):wo(m).thisType;return Gy(r,h)}if(Li(l))if(l.commonJsModuleIndicator){let m=fr(l);return m&&Vn(m)}else{if(l.externalModuleIndicator)return j;if(a)return Vn(Qe)}}function Nit(r){let a=__(r,!1,!1);if(As(a)){let l=Lp(a);if(l.thisParameter)return $Y(l.thisParameter)}if(ei(a.parent)){let l=fr(a.parent);return zs(a)?Vn(l):wo(l).thisType}}function Iit(r){if(r.kind===218&&Yn(r.parent)&&mc(r.parent)===3)return r.parent.left.expression.expression;if(r.kind===174&&r.parent.kind===210&&Yn(r.parent.parent)&&mc(r.parent.parent)===6)return r.parent.parent.left.expression;if(r.kind===218&&r.parent.kind===303&&r.parent.parent.kind===210&&Yn(r.parent.parent.parent)&&mc(r.parent.parent.parent)===6)return r.parent.parent.parent.left.expression;if(r.kind===218&&el(r.parent)&&Ie(r.parent.name)&&(r.parent.name.escapedText==="value"||r.parent.name.escapedText==="get"||r.parent.name.escapedText==="set")&&xa(r.parent.parent)&&Ws(r.parent.parent.parent)&&r.parent.parent.parent.arguments[2]===r.parent.parent&&mc(r.parent.parent.parent)===9)return r.parent.parent.parent.arguments[0].expression;if(kc(r)&&Ie(r.name)&&(r.name.escapedText==="value"||r.name.escapedText==="get"||r.name.escapedText==="set")&&xa(r.parent)&&Ws(r.parent.parent)&&r.parent.parent.arguments[2]===r.parent&&mc(r.parent.parent)===9)return r.parent.parent.arguments[0].expression}function Fit(r){let a=k7(r);if(a&&a.typeExpression)return li(a.typeExpression);let l=CD(r);if(l)return _v(l)}function uAe(r,a){return!!Fn(r,l=>To(l)?"quit":l.kind===169&&l.parent===a)}function Bme(r){let a=r.parent.kind===213&&r.parent.expression===r,l=rw(r,!0),_=l,m=!1,h=!1;if(!a){for(;_&&_.kind===219;)Mr(_,1024)&&(h=!0),_=rw(_,!0),m=ie<2;_&&Mr(_,1024)&&(h=!0)}let T=0;if(!_||!re(_)){let le=Fn(r,Te=>Te===_?"quit":Te.kind===167);return le&&le.kind===167?je(r,d.super_cannot_be_referenced_in_a_computed_property_name):a?je(r,d.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!_||!_.parent||!(ei(_.parent)||_.parent.kind===210)?je(r,d.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):je(r,d.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),ot}if(!a&&l.kind===176&&lAe(r,_,d.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),zs(_)||a?(T=32,!a&&ie>=2&&ie<=8&&(Is(_)||rc(_))&&Yee(r.parent,le=>{(!Li(le)||K_(le))&&(Hr(le).flags|=2097152)})):T=16,Hr(r).flags|=T,_.kind===174&&h&&(f_(r.parent)&&hg(r.parent)?Hr(_).flags|=256:Hr(_).flags|=128),m&&Mme(r.parent,_),_.parent.kind===210)return ie<2?(je(r,d.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),ot):G;let N=_.parent;if(!Vv(N))return je(r,d.super_can_only_be_referenced_in_a_derived_class),ot;if(Rme(N))return a?ot:qe;let F=wo(fr(N)),U=F&&il(F)[0];if(!U)return ot;if(_.kind===176&&uAe(r,_))return je(r,d.super_cannot_be_referenced_in_constructor_arguments),ot;return T===32?rl(F):uf(U,F.thisType);function re(le){return a?le.kind===176:ei(le.parent)||le.parent.kind===210?zs(le)?le.kind===174||le.kind===173||le.kind===177||le.kind===178||le.kind===172||le.kind===175:le.kind===174||le.kind===173||le.kind===177||le.kind===178||le.kind===172||le.kind===171||le.kind===176:!1}}function _Ae(r){return(r.kind===174||r.kind===177||r.kind===178)&&r.parent.kind===210?r.parent:r.kind===218&&r.parent.kind===303?r.parent.parent:void 0}function fAe(r){return Ir(r)&4&&r.target===Fc?vo(r)[0]:void 0}function Oit(r){return zo(r,a=>a.flags&2097152?Qt(a.types,fAe):fAe(a))}function pAe(r,a){let l=r,_=a;for(;_;){let m=Oit(_);if(m)return m;if(l.parent.kind!==303)break;l=l.parent.parent,_=Sv(l,void 0)}}function dAe(r){if(r.kind===219)return;if(TY(r)){let l=dI(r);if(l){let _=l.thisParameter;if(_)return Vn(_)}}let a=Qn(r);if(Y||a){let l=_Ae(r);if(l){let m=Sv(l,void 0),h=pAe(l,m);return h?Vi(h,gme(Kb(l))):_f(m?Nh(m):Gc(l))}let _=Gh(r.parent);if(pl(_)){let m=_.left;if(ho(m)){let{expression:h}=m;if(a&&Ie(h)){let T=Mn(_);if(T.commonJsModuleIndicator&&sd(h)===T.symbol)return}return _f(Gc(h))}}}}function mAe(r){let a=r.parent;if(!TY(a))return;let l=T2(a);if(l&&l.arguments){let m=pZ(l),h=a.parameters.indexOf(r);if(r.dotDotDotToken)return pge(m,h,m.length,G,void 0,0);let T=Hr(l),N=T.resolvedSignature;T.resolvedSignature=kt;let F=h0)return ZT(l.name,!0,!1)}}function jit(r,a){let l=yf(r);if(l){let _=KY(l,a);if(_){let m=Sl(l);if(m&1){let h=(m&2)!==0;_.flags&1048576&&(_=Hc(_,N=>!!t2(1,N,h)));let T=t2(1,_,(m&2)!==0);if(!T)return;_=T}if(m&2){let h=zo(_,L0);return h&&Jr([h,PNe(h)])}return _}}}function Bit(r,a){let l=S_(r,a);if(l){let _=L0(l);return _&&Jr([_,PNe(_)])}}function Jit(r,a){let l=yf(r);if(l){let _=Sl(l),m=KY(l,a);if(m){let h=(_&2)!==0;return!r.asteriskToken&&m.flags&1048576&&(m=Hc(m,T=>!!t2(1,T,h))),r.asteriskToken?m:t2(0,m,h)}}}function zme(r){let a=!1;for(;r.parent&&!As(r.parent);){if(ms(r.parent)&&(a||r.parent.initializer===r))return!0;Ma(r.parent)&&r.parent.initializer===r&&(a=!0),r=r.parent}return!1}function gAe(r,a){let l=!!(Sl(a)&2),_=KY(a,void 0);if(_)return t2(r,_,l)||void 0}function KY(r,a){let l=r4(r);if(l)return l;let _=Hme(r);if(_&&!tY(_)){let h=Ua(_),T=Sl(r);return T&1?Hc(h,N=>!!(N.flags&58998787)||Lge(N,T,void 0)):T&2?Hc(h,N=>!!(N.flags&58998787)||!!qD(N)):h}let m=T2(r);if(m)return S_(m,a)}function hAe(r,a){let _=pZ(r).indexOf(a);return _===-1?void 0:Vme(r,_)}function Vme(r,a){if(ef(r))return a===0?Fe:a===1?cwe(!1):G;let l=Hr(r).resolvedSignature===Ar?Ar:p4(r);if(Zu(r)&&a===0)return rZ(l,r);let _=l.parameters.length-1;return Du(l)&&a>=_?G_(Vn(l.parameters[_]),wd(a-_),256):Nd(l,a)}function zit(r){let a=Ege(r);return a?BS(a):void 0}function Vit(r,a){if(r.parent.kind===215)return hAe(r.parent,a)}function Wit(r,a){let l=r.parent,{left:_,operatorToken:m,right:h}=l;switch(m.kind){case 64:case 77:case 76:case 78:return r===h?qit(l):void 0;case 57:case 61:let T=S_(l,a);return r===h&&(T&&T.pattern||!T&&!yte(l))?su(_):T;case 56:case 28:return r===h?S_(l,a):void 0;default:return}}function Uit(r){if(Rd(r)&&r.symbol)return r.symbol;if(Ie(r))return sd(r);if(Cr(r)){let l=su(r.expression);return Di(r.name)?a(l,r.name):Ks(l,r.name.escapedText)}if(ko(r)){let l=Gc(r.argumentExpression);if(!Sp(l))return;let _=su(r.expression);return Ks(_,xp(l))}return;function a(l,_){let m=oZ(_.escapedText,_);return m&&rge(l,m)}}function qit(r){var a,l;let _=mc(r);switch(_){case 0:case 4:let m=Uit(r.left),h=m&&m.valueDeclaration;if(h&&(Is(h)||bf(h))){let F=Xl(h);return F&&Vi(li(F),Ti(m).mapper)||(Is(h)?h.initializer&&su(r.left):void 0)}return _===0?su(r.left):yAe(r);case 5:if(eZ(r,_))return yAe(r);if(!Rd(r.left)||!r.left.symbol)return su(r.left);{let F=r.left.symbol.valueDeclaration;if(!F)return;let U=Vs(r.left,ho),re=Xl(F);if(re)return li(re);if(Ie(U.expression)){let le=U.expression,Te=bc(le,le.escapedText,111551,void 0,le.escapedText,!0);if(Te){let Ne=Te.valueDeclaration&&Xl(Te.valueDeclaration);if(Ne){let st=rh(U);if(st!==void 0)return Zb(li(Ne),st)}return}}return Qn(F)||F===r.left?void 0:su(r.left)}case 1:case 6:case 3:case 2:let T;_!==2&&(T=Rd(r.left)?(a=r.left.symbol)==null?void 0:a.valueDeclaration:void 0),T||(T=(l=r.symbol)==null?void 0:l.valueDeclaration);let N=T&&Xl(T);return N?li(N):void 0;case 7:case 8:case 9:return E.fail("Does not apply");default:return E.assertNever(_)}}function eZ(r,a=mc(r)){if(a===4)return!0;if(!Qn(r)||a!==5||!Ie(r.left.expression))return!1;let l=r.left.expression.escapedText,_=bc(r.left,l,111551,void 0,void 0,!0,!0);return a5(_?.valueDeclaration)}function yAe(r){if(!r.symbol)return su(r.left);if(r.symbol.valueDeclaration){let m=Xl(r.symbol.valueDeclaration);if(m){let h=li(m);if(h)return h}}let a=Vs(r.left,ho);if(!qp(__(a.expression,!1,!1)))return;let l=JR(a.expression),_=rh(a);return _!==void 0&&Zb(l,_)||void 0}function Hit(r){return!!(lc(r)&262144&&!r.links.type&&av(r,0)>=0)}function Zb(r,a,l){return zo(r,_=>{var m;if(jf(_)&&!_.declaration.nameType){let h=Op(_),T=a_(h)||h,N=l||b_(Ci(a));if(da(N,T))return fY(_,N)}else if(_.flags&3670016){let h=Ks(_,a);if(h)return Hit(h)?void 0:Hy(Vn(h),!!(h&&h.flags&16777216));if(va(_)&&Sg(a)&&+a>=0){let T=LD(_,_.target.fixedLength,0,!1,!0);if(T)return T}return(m=lde(ude(_),l||b_(Ci(a))))==null?void 0:m.type}},!0)}function vAe(r,a){if(E.assert(qp(r)),!(r.flags&67108864))return Wme(r,a)}function Wme(r,a){let l=r.parent,_=el(r)&&Jme(r,a);if(_)return _;let m=Sv(l,a);if(m){if(t4(r)){let h=fr(r);return Zb(m,h.escapedName,Ti(h).nameType)}if(ey(r)){let h=us(r);if(h&&Na(h)){let T=$i(h.expression),N=Sp(T)&&Zb(m,xp(T));if(N)return N}}if(r.name){let h=N0(r.name);return zo(m,T=>{var N;return(N=lde(ude(T),h))==null?void 0:N.type},!0)}}}function Git(r){let a,l;for(let _=0;_{if(va(h)){if((_===void 0||a<_)&&am)?l-a:0,N=T>0&&h.target.hasRestElement?ZN(h.target,3):0;return T>0&&T<=N?vo(h)[A0(h)-T]:LD(h,_===void 0?h.target.fixedLength:Math.min(h.target.fixedLength,_),l===void 0||m===void 0?N:Math.min(N,l-m),!1,!0)}return(!_||a<_)&&Zb(h,""+a)||Hge(1,h,j,void 0,!1)},!0)}function $it(r,a){let l=r.parent;return r===l.whenTrue||r===l.whenFalse?S_(l,a):void 0}function Xit(r,a,l){let _=Sv(r.openingElement.attributes,l),m=UR($S(r));if(!(_&&!Ae(_)&&m&&m!==""))return;let h=rC(r.children),T=h.indexOf(a),N=Zb(_,m);return N&&(h.length===1?N:zo(N,F=>F0(F)?G_(F,wd(T)):F,!0))}function Qit(r,a){let l=r.parent;return L7(l)?S_(r,a):kg(l)?Xit(l,r,a):void 0}function bAe(r,a){if($d(r)){let l=Sv(r.parent,a);return!l||Ae(l)?void 0:Zb(l,JE(r.name))}else return S_(r.parent,a)}function zR(r){switch(r.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return zR(r.expression);case 294:return!r.expression||zR(r.expression)}return!1}function Yit(r,a){return Urt(a,r)||eme(a,es(Kt(Fr(r.properties,l=>l.symbol?l.kind===303?zR(l.initializer)&&MD(a,l.symbol.escapedName):l.kind===304?MD(a,l.symbol.escapedName):!1:!1),l=>[()=>cj(l.kind===303?l.initializer:l.name),l.symbol.escapedName]),Kt(Fr(Qa(a),l=>{var _;return!!(l.flags&16777216)&&!!((_=r?.symbol)!=null&&_.members)&&!r.symbol.members.has(l.escapedName)&&MD(a,l.escapedName)}),l=>[()=>j,l.escapedName])),da)}function Zit(r,a){let l=UR($S(r));return eme(a,es(Kt(Fr(r.properties,_=>!!_.symbol&&_.kind===291&&MD(a,_.symbol.escapedName)&&(!_.initializer||zR(_.initializer))),_=>[_.initializer?()=>cj(_.initializer):()=>nr,_.symbol.escapedName]),Kt(Fr(Qa(a),_=>{var m;if(!(_.flags&16777216)||!((m=r?.symbol)!=null&&m.members))return!1;let h=r.parent.parent;return _.escapedName===l&&kg(h)&&rC(h.children).length?!1:!r.symbol.members.has(_.escapedName)&&MD(a,_.escapedName)}),_=>[()=>j,_.escapedName])),da)}function Sv(r,a){let l=qp(r)?vAe(r,a):S_(r,a),_=tZ(l,r,a);if(_&&!(a&&a&2&&_.flags&8650752)){let m=zo(_,h=>Ir(h)&32?h:o_(h),!0);return m.flags&1048576&&xa(r)?Yit(r,m):m.flags&1048576&&rb(r)?Zit(r,m):m}}function tZ(r,a,l){if(r&&oc(r,465829888)){let _=Kb(a);if(_&&l&1&&ft(_.inferences,Fot))return nZ(r,_.nonFixingMapper);if(_?.returnMapper){let m=nZ(r,_.returnMapper);return m.flags&1048576&&By(m.types,Rn)&&By(m.types,br)?Hc(m,h=>h!==Rn&&h!==br):m}}return r}function nZ(r,a){return r.flags&465829888?Vi(r,a):r.flags&1048576?Jr(Kt(r.types,l=>nZ(l,a)),0):r.flags&2097152?ya(Kt(r.types,l=>nZ(l,a))):r}function S_(r,a){var l;if(r.flags&67108864)return;let _=xAe(r,!a);if(_>=0)return mr[_];let{parent:m}=r;switch(m.kind){case 260:case 169:case 172:case 171:case 208:return Rit(r,a);case 219:case 253:return jit(r,a);case 229:return Jit(m,a);case 223:return Bit(m,a);case 213:case 214:return hAe(m,r);case 170:return zit(m);case 216:case 234:return eh(m.type)?S_(m,a):li(m.type);case 226:return Wit(r,a);case 303:case 304:return Wme(m,a);case 305:return S_(m.parent,a);case 209:{let h=m,T=Sv(h,a),N=Bk(h.elements,r),F=(l=Hr(h)).spreadIndices??(l.spreadIndices=Git(h.elements));return Ume(T,N,h.elements.length,F.first,F.last)}case 227:return $it(r,a);case 239:return E.assert(m.parent.kind===228),Vit(m.parent,r);case 217:{if(Qn(m)){if(fV(m))return li(pV(m));let h=a1(m);if(h&&!eh(h.typeExpression.type))return li(h.typeExpression.type)}return S_(m,a)}case 235:return S_(m,a);case 238:return li(m.type);case 277:return Le(m);case 294:return Qit(m,a);case 291:case 293:return bAe(m,a);case 286:case 285:return tst(m,a)}}function SAe(r){VR(r,S_(r,void 0),!0)}function VR(r,a,l){oi[_r]=r,mr[_r]=a,gr[_r]=l,_r++}function pI(){_r--}function xAe(r,a){for(let l=_r-1;l>=0;l--)if(r===oi[l]&&(a||!gr[l]))return l;return-1}function Kit(r,a){Oi[Za]=r,io[Za]=a,Za++}function est(){Za--}function Kb(r){for(let a=Za-1;a>=0;a--)if(zv(r,Oi[a]))return io[a]}function tst(r,a){if(Gd(r)&&a!==4){let l=xAe(r.parent,!a);if(l>=0)return mr[l]}return Vme(r,0)}function rZ(r,a){return iNe(a)!==0?nst(r,a):sst(r,a)}function nst(r,a){let l=kge(r,ln);l=TAe(a,$S(a),l);let _=e2(Tf.IntrinsicAttributes,a);return tt(_)||(l=fR(_,l)),l}function rst(r,a){if(r.compositeSignatures){let _=[];for(let m of r.compositeSignatures){let h=Ua(m);if(Ae(h))return h;let T=q(h,a);if(!T)return;_.push(T)}return ya(_)}let l=Ua(r);return Ae(l)?l:q(l,a)}function ist(r){if(uk(r.tagName)){let l=IAe(r),_=dZ(r,l);return BS(_)}let a=Gc(r.tagName);if(a.flags&128){let l=NAe(a,r);if(!l)return ot;let _=dZ(r,l);return BS(_)}return a}function TAe(r,a,l){let _=Cst(a);if(_){let m=ist(r),h=LAe(_,Qn(r),m,l);if(h)return h}return l}function sst(r,a){let l=$S(a),_=Dst(l),m=_===void 0?kge(r,ln):_===""?Ua(r):rst(r,_);if(!m)return _&&bn(a.attributes.properties)&&je(a,d.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Ci(_)),ln;if(m=TAe(a,l,m),Ae(m))return m;{let h=m,T=e2(Tf.IntrinsicClassAttributes,a);if(!tt(T)){let F=un(T.symbol),U=Ua(r),re;if(F){let le=Ry([U],F,rg(F),Qn(a));re=Vi(T,N_(F,le))}else re=T;h=fR(re,h)}let N=e2(Tf.IntrinsicAttributes,a);return tt(N)||(h=fR(N,h)),h}}function ast(r){return bp(J,"noImplicitAny")?Fu(r,(a,l)=>a===l||!a?a:CPe(a.typeParameters,l.typeParameters)?lst(a,l):void 0):void 0}function ost(r,a,l){if(!r||!a)return r||a;let _=Jr([Vn(r),Vi(Vn(a),l)]);return VS(r,_)}function cst(r,a,l){let _=ff(r),m=ff(a),h=_>=m?r:a,T=h===r?a:r,N=h===r?_:m,F=ag(r)||ag(a),U=F&&!ag(h),re=new Array(N+(U?1:0));for(let le=0;le=mm(h)&&le>=mm(T),pn=le>=_?void 0:VD(r,le),tr=le>=m?void 0:VD(a,le),yn=pn===tr?pn:pn?tr?void 0:pn:tr,Ut=ja(1|(Yt&&!Et?16777216:0),yn||`arg${le}`);Ut.links.type=Et?hu(st):st,re[le]=Ut}if(U){let le=ja(1,"args");le.links.type=hu(Nd(T,N)),T===a&&(le.links.type=Vi(le.links.type,l)),re[N]=le}return re}function lst(r,a){let l=r.typeParameters||a.typeParameters,_;r.typeParameters&&a.typeParameters&&(_=N_(a.typeParameters,r.typeParameters));let m=r.declaration,h=cst(r,a,_),T=ost(r.thisParameter,a.thisParameter,_),N=Math.max(r.minArgumentCount,a.minArgumentCount),F=Wg(m,l,T,h,void 0,void 0,N,(r.flags|a.flags)&167);return F.compositeKind=2097152,F.compositeSignatures=es(r.compositeKind===2097152&&r.compositeSignatures||[r],[a]),_&&(F.mapper=r.compositeKind===2097152&&r.mapper&&r.compositeSignatures?gv(r.mapper,_):_),F}function qme(r,a){let l=Ps(r,0),_=Fr(l,m=>!ust(m,a));return _.length===1?_[0]:ast(_)}function ust(r,a){let l=0;for(;lT[Ne]&8?Jy(Te,St)||G:Te),2):H?In:ce,F))}function CAe(r){if(!(Ir(r)&4))return r;let a=r.literalType;return a||(a=r.literalType=QPe(r),a.objectFlags|=147456),a}function dst(r){switch(r.kind){case 167:return mst(r);case 80:return Sg(r.escapedText);case 9:case 11:return Sg(r.text);default:return!1}}function mst(r){return Ul(qg(r),296)}function qg(r){let a=Hr(r.expression);if(!a.resolvedType){if((nf(r.parent.parent)||ei(r.parent.parent)||Wu(r.parent.parent))&&Yn(r.expression)&&r.expression.operatorToken.kind===103&&r.parent.kind!==177&&r.parent.kind!==178)return a.resolvedType=ot;if(a.resolvedType=$i(r.expression),Is(r.parent)&&!Yc(r.parent)&&Bl(r.parent.parent)){let l=Nm(r.parent.parent),_=Lme(l);_&&(Hr(_).flags|=4096,Hr(r).flags|=32768,Hr(r.parent.parent).flags|=32768)}(a.resolvedType.flags&98304||!Ul(a.resolvedType,402665900)&&!da(a.resolvedType,Pn))&&je(r,d.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return a.resolvedType}function gst(r){var a;let l=(a=r.declarations)==null?void 0:a[0];return Sg(r.escapedName)||l&&Ru(l)&&dst(l.name)}function EAe(r){var a;let l=(a=r.declarations)==null?void 0:a[0];return Dw(r)||l&&Ru(l)&&Na(l.name)&&Ul(qg(l.name),4096)}function Gme(r,a,l,_){let m=[];for(let T=a;T0&&(N=Hb(N,On(),r.symbol,Et,re),T=[],h=Gs(),pn=!1,tr=!1,yn=!1);let lr=Dd($i(kn.expression,a&2));if(WR(lr)){let bs=Jde(lr,re);if(m&&PAe(bs,m,kn),Ut=T.length,tt(N))continue;N=Hb(N,bs,r.symbol,Et,re)}else je(kn,d.Spread_types_may_only_be_created_from_object_types),N=ot;continue}else E.assert(kn.kind===177||kn.kind===178),_k(kn);vn&&!(vn.flags&8576)?da(vn,Pn)&&(da(vn,St)?tr=!0:da(vn,Br)?yn=!0:pn=!0,_&&(Yt=!0)):h.set(wn.escapedName,wn),T.push(wn)}if(pI(),U){let kn=Fn(F.pattern.parent,vn=>vn.kind===260||vn.kind===226||vn.kind===169);if(Fn(r,vn=>vn===kn||vn.kind===305).kind!==305)for(let vn of Qa(F))!h.get(vn.escapedName)&&!Ks(N,vn.escapedName)&&(vn.flags&16777216||je(vn.valueDeclaration||((l=Ur(vn,wm))==null?void 0:l.links.bindingElement),d.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),h.set(vn.escapedName,vn),T.push(vn))}if(tt(N))return ot;if(N!==Xs)return T.length>0&&(N=Hb(N,On(),r.symbol,Et,re),T=[],h=Gs(),pn=!1,tr=!1),zo(N,kn=>kn===Xs?On():kn);return On();function On(){let kn=[];pn&&kn.push(Gme(r,Ut,T,Fe)),tr&&kn.push(Gme(r,Ut,T,St)),yn&&kn.push(Gme(r,Ut,T,Br));let wn=ac(r.symbol,h,Ve,Ve,kn);return wn.objectFlags|=Et|128|131072,st&&(wn.objectFlags|=4096),Yt&&(wn.objectFlags|=512),_&&(wn.pattern=r),wn}}function WR(r){let a=k8e(zo(r,Ch));return!!(a.flags&126615553||a.flags&3145728&&hi(a.types,WR))}function yst(r){Yme(r)}function vst(r,a){return _k(r),qR(r)||G}function bst(r){Yme(r.openingElement),uk(r.closingElement.tagName)?sZ(r.closingElement):$i(r.closingElement.tagName),iZ(r)}function Sst(r,a){return _k(r),qR(r)||G}function xst(r){Yme(r.openingFragment);let a=Mn(r);return $5(J)&&(J.jsxFactory||a.pragmas.has("jsx"))&&!J.jsxFragmentFactory&&!a.pragmas.has("jsxfrag")&&je(r,J.jsxFactory?d.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:d.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),iZ(r),qR(r)||G}function Xme(r){return r.includes("-")}function uk(r){return Ie(r)&&sC(r.escapedText)||md(r)}function DAe(r,a){return r.initializer?UD(r.initializer,a):nr}function Tst(r,a=0){let l=r.attributes,_=S_(l,0),m=H?Gs():void 0,h=Gs(),T=Jc,N=!1,F,U=!1,re=2048,le=UR($S(r));for(let st of l.properties){let Et=st.symbol;if($d(st)){let Yt=DAe(st,a);re|=Ir(Yt)&458752;let pn=ja(4|Et.flags,Et.escapedName);if(pn.declarations=Et.declarations,pn.parent=Et.parent,Et.valueDeclaration&&(pn.valueDeclaration=Et.valueDeclaration),pn.links.type=Yt,pn.links.target=Et,h.set(pn.escapedName,pn),m?.set(pn.escapedName,pn),JE(st.name)===le&&(U=!0),_){let tr=Ks(_,Et.escapedName);tr&&tr.declarations&&v0(tr)&&Ie(st.name)&&Fg(st.name,tr.declarations,st.name.escapedText)}if(_&&a&2&&!(a&4)&&ap(st)){let tr=Kb(l);E.assert(tr);let yn=st.initializer.expression;dme(tr,yn,Yt)}}else{E.assert(st.kind===293),h.size>0&&(T=Hb(T,Ne(),l.symbol,re,!1),h=Gs());let Yt=Dd($i(st.expression,a&2));Ae(Yt)&&(N=!0),WR(Yt)?(T=Hb(T,Yt,l.symbol,re,!1),m&&PAe(Yt,m,st)):(je(st.expression,d.Spread_types_may_only_be_created_from_object_types),F=F?ya([F,Yt]):Yt)}}N||h.size>0&&(T=Hb(T,Ne(),l.symbol,re,!1));let Te=r.parent.kind===284?r.parent:void 0;if(Te&&Te.openingElement===r&&rC(Te.children).length>0){let st=iZ(Te,a);if(!N&&le&&le!==""){U&&je(l,d._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Ci(le));let Et=Sv(r.attributes,void 0),Yt=Et&&Zb(Et,le),pn=ja(4,le);pn.links.type=st.length===1?st[0]:Yt&&_m(Yt,OD)?Pd(st):hu(Jr(st)),pn.valueDeclaration=I.createPropertySignature(void 0,Ci(le),void 0,void 0),Ta(pn.valueDeclaration,l),pn.valueDeclaration.symbol=pn;let tr=Gs();tr.set(le,pn),T=Hb(T,ac(l.symbol,tr,Ve,Ve,Ve),l.symbol,re,!1)}}if(N)return G;if(F&&T!==Jc)return ya([F,T]);return F||(T===Jc?Ne():T);function Ne(){re|=ke;let st=ac(l.symbol,h,Ve,Ve,Ve);return st.objectFlags|=re|128|131072,st}}function iZ(r,a){let l=[];for(let _ of r.children)if(_.kind===12)_.containsOnlyTriviaWhiteSpaces||l.push(Fe);else{if(_.kind===294&&!_.expression)continue;l.push(UD(_,a))}return l}function PAe(r,a,l){for(let _ of Qa(r))if(!(_.flags&16777216)){let m=a.get(_.escapedName);if(m){let h=je(m.valueDeclaration,d._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Ci(m.escapedName));ga(h,vr(l,d.This_spread_always_overwrites_this_property))}}}function kst(r,a){return Tst(r.parent,a)}function e2(r,a){let l=$S(a),_=l&&q_(l),m=_&&P_(_,r,788968);return m?wo(m):ot}function sZ(r){let a=Hr(r);if(!a.resolvedSymbol){let l=e2(Tf.IntrinsicElements,r);if(tt(l))return se&&je(r,d.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Ci(Tf.IntrinsicElements)),a.resolvedSymbol=gt;{if(!Ie(r.tagName)&&!md(r.tagName))return E.fail();let _=md(r.tagName)?Mx(r.tagName):r.tagName.escapedText,m=Ks(l,_);if(m)return a.jsxFlags|=1,a.resolvedSymbol=m;let h=e7e(l,b_(Ci(_)));return h?(a.jsxFlags|=2,a.resolvedSymbol=h):ge(l,_)?(a.jsxFlags|=2,a.resolvedSymbol=l.symbol):(je(r,d.Property_0_does_not_exist_on_type_1,dV(r.tagName),"JSX."+Tf.IntrinsicElements),a.resolvedSymbol=gt)}}return a.resolvedSymbol}function Qme(r){let a=r&&Mn(r),l=a&&Hr(a);if(l&&l.jsxImplicitImportContainer===!1)return;if(l&&l.jsxImplicitImportContainer)return l.jsxImplicitImportContainer;let _=Q5(X5(J,a),J);if(!_)return;let h=Yl(J)===1?d.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:d.Cannot_find_module_0_or_its_corresponding_type_declarations,T=vh(r,_,h,r),N=T&&T!==gt?Ba(Oc(T)):void 0;return l&&(l.jsxImplicitImportContainer=N||!1),N}function $S(r){let a=r&&Hr(r);if(a&&a.jsxNamespace)return a.jsxNamespace;if(!a||a.jsxNamespace!==!1){let _=Qme(r);if(!_||_===gt){let m=U1(r);_=bc(r,m,1920,void 0,m,!1)}if(_){let m=Oc(P_(q_(Oc(_)),Tf.JSX,1920));if(m&&m!==gt)return a&&(a.jsxNamespace=m),m}a&&(a.jsxNamespace=!1)}let l=Oc(DD(Tf.JSX,1920,void 0));if(l!==gt)return l}function wAe(r,a){let l=a&&P_(a.exports,r,788968),_=l&&wo(l),m=_&&Qa(_);if(m){if(m.length===0)return"";if(m.length===1)return m[0].escapedName;m.length>1&&l.declarations&&je(l.declarations[0],d.The_global_type_JSX_0_may_not_have_more_than_one_property,Ci(r))}}function Cst(r){return r&&P_(r.exports,Tf.LibraryManagedAttributes,788968)}function Est(r){return r&&P_(r.exports,Tf.ElementType,788968)}function Dst(r){return wAe(Tf.ElementAttributesPropertyNameContainer,r)}function UR(r){return wAe(Tf.ElementChildrenAttributeNameContainer,r)}function AAe(r,a){if(r.flags&4)return[kt];if(r.flags&128){let m=NAe(r,a);return m?[dZ(a,m)]:(je(a,d.Property_0_does_not_exist_on_type_1,r.value,"JSX."+Tf.IntrinsicElements),Ve)}let l=o_(r),_=Ps(l,1);return _.length===0&&(_=Ps(l,0)),_.length===0&&l.flags&1048576&&(_=Qpe(Kt(l.types,m=>AAe(m,a)))),_}function NAe(r,a){let l=e2(Tf.IntrinsicElements,a);if(!tt(l)){let _=r.value,m=Ks(l,Yo(_));if(m)return Vn(m);let h=uv(l,Fe);return h||void 0}return G}function Pst(r,a,l){if(r===1){let m=OAe(l);m&&op(a,m,U_,l.tagName,d.Its_return_type_0_is_not_a_valid_JSX_element,_)}else if(r===0){let m=FAe(l);m&&op(a,m,U_,l.tagName,d.Its_instance_type_0_is_not_a_valid_JSX_element,_)}else{let m=OAe(l),h=FAe(l);if(!m||!h)return;let T=Jr([m,h]);op(a,T,U_,l.tagName,d.Its_element_type_0_is_not_a_valid_JSX_element,_)}function _(){let m=Qc(l.tagName);return ys(void 0,d._0_cannot_be_used_as_a_JSX_component,m)}}function IAe(r){var a;E.assert(uk(r.tagName));let l=Hr(r);if(!l.resolvedJsxElementAttributesType){let _=sZ(r);if(l.jsxFlags&1)return l.resolvedJsxElementAttributesType=Vn(_)||ot;if(l.jsxFlags&2){let m=md(r.tagName)?Mx(r.tagName):r.tagName.escapedText;return l.resolvedJsxElementAttributesType=((a=nk(e2(Tf.IntrinsicElements,r),m))==null?void 0:a.type)||ot}else return l.resolvedJsxElementAttributesType=ot}return l.resolvedJsxElementAttributesType}function FAe(r){let a=e2(Tf.ElementClass,r);if(!tt(a))return a}function qR(r){return e2(Tf.Element,r)}function OAe(r){let a=qR(r);if(a)return Jr([a,De])}function wst(r){let a=$S(r);if(!a)return;let l=Est(a);if(!l)return;let _=LAe(l,Qn(r));if(!(!_||tt(_)))return _}function LAe(r,a,...l){let _=wo(r);if(r.flags&524288){let m=Ti(r).typeParameters;if(bn(m)>=l.length){let h=Ry(l,m,l.length,a);return bn(h)===0?_:s4(r,h)}}if(bn(_.typeParameters)>=l.length){let m=Ry(l,_.typeParameters,l.length,a);return w0(_,m)}}function Ast(r){let a=e2(Tf.IntrinsicElements,r);return a?Qa(a):Ve}function Nst(r){(J.jsx||0)===0&&je(r,d.Cannot_use_JSX_unless_the_jsx_flag_is_provided),qR(r)===void 0&&se&&je(r,d.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function Yme(r){let a=Zu(r);if(a&&x_t(r),Nst(r),!Qme(r)){let l=Ra&&J.jsx===2?d.Cannot_find_name_0:void 0,_=U1(r),m=a?r.tagName:r,h;if(Zx(r)&&_==="null"||(h=bc(m,_,111551,l,_,!0)),h&&(h.isReferenced=67108863,lt&&h.flags&2097152&&!Kf(h)&&x0(h)),Zx(r)){let T=Mn(r),N=yS(T);N&&bc(m,N,111551,l,N,!0)}}if(a){let l=r,_=p4(l);gZ(_,r);let m=wst(l);if(m!==void 0){let h=l.tagName,T=uk(h)?b_(dV(h)):$i(h);op(T,m,U_,h,d.Its_type_0_is_not_a_valid_JSX_element_type,()=>{let N=Qc(h);return ys(void 0,d._0_cannot_be_used_as_a_JSX_component,N)})}else Pst(iNe(l),Ua(_),l)}}function Zme(r,a,l){if(r.flags&524288){if(lv(r,a)||nk(r,a)||WN(a)&&Ug(r,Fe)||l&&Xme(a))return!0}else if(r.flags&3145728&&HR(r)){for(let _ of r.types)if(Zme(_,a,l))return!0}return!1}function HR(r){return!!(r.flags&524288&&!(Ir(r)&512)||r.flags&67108864||r.flags&1048576&&ft(r.types,HR)||r.flags&2097152&&hi(r.types,HR))}function Ist(r,a){if(k_t(r),r.expression){let l=$i(r.expression,a);return r.dotDotDotToken&&l!==G&&!cp(l)&&je(r,d.JSX_spread_child_must_be_an_array_type),l}else return ot}function Kme(r){return r.valueDeclaration?i2(r.valueDeclaration):0}function ege(r){if(r.flags&8192||lc(r)&4)return!0;if(Qn(r.valueDeclaration)){let a=r.valueDeclaration.parent;return a&&Yn(a)&&mc(a)===3}}function tge(r,a,l,_,m,h=!0){let T=h?r.kind===166?r.right:r.kind===205?r:r.kind===208&&r.propertyName?r.propertyName:r.name:void 0;return MAe(r,a,l,_,m,T)}function MAe(r,a,l,_,m,h){var T;let N=Uf(m,l);if(a){if(ie<2&&RAe(m))return h&&je(h,d.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(N&64)return h&&je(h,d.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,ci(m),hn(lk(m))),!1;if(!(N&256)&&((T=m.declarations)!=null&&T.some(gee)))return h&&je(h,d.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,ci(m)),!1}if(N&64&&RAe(m)&&(iw(r)||mte(r)||Gp(r.parent)&&a5(r.parent.parent))){let U=ah(v_(m));if(U&&Sut(r))return h&&je(h,d.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,ci(m),gp(U.name)),!1}if(!(N&6))return!0;if(N&2){let U=ah(v_(m));return ihe(r,U)?!0:(h&&je(h,d.Property_0_is_private_and_only_accessible_within_class_1,ci(m),hn(lk(m))),!1)}if(a)return!0;let F=ZIe(r,U=>{let re=wo(fr(U));return d8e(re,m,l)});return!F&&(F=Fst(r),F=F&&d8e(F,m,l),N&256||!F)?(h&&je(h,d.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,ci(m),hn(lk(m)||_)),!1):N&256?!0:(_.flags&262144&&(_=_.isThisType?Nu(_):a_(_)),!_||!KT(_,F)?(h&&je(h,d.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,ci(m),hn(F),hn(_)),!1):!0)}function Fst(r){let a=Ost(r),l=a?.type&&li(a.type);if(l&&l.flags&262144&&(l=Nu(l)),l&&Ir(l)&7)return K6(l)}function Ost(r){let a=__(r,!1,!1);return a&&As(a)?Uv(a):void 0}function RAe(r){return!!wR(r,a=>!(a.flags&8192))}function _4(r){return fm($i(r),r)}function GR(r){return Rp(r,50331648)}function nge(r){return GR(r)?Nh(r):r}function Lst(r,a){let l=gc(r)?O_(r):void 0;if(r.kind===106){je(r,d.The_value_0_cannot_be_used_here,"null");return}if(l!==void 0&&l.length<100){if(Ie(r)&&l==="undefined"){je(r,d.The_value_0_cannot_be_used_here,"undefined");return}je(r,a&16777216?a&33554432?d._0_is_possibly_null_or_undefined:d._0_is_possibly_undefined:d._0_is_possibly_null,l)}else je(r,a&16777216?a&33554432?d.Object_is_possibly_null_or_undefined:d.Object_is_possibly_undefined:d.Object_is_possibly_null)}function Mst(r,a){je(r,a&16777216?a&33554432?d.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:d.Cannot_invoke_an_object_which_is_possibly_undefined:d.Cannot_invoke_an_object_which_is_possibly_null)}function jAe(r,a,l){if(H&&r.flags&2){if(gc(a)){let m=O_(a);if(m.length<100)return je(a,d._0_is_of_type_unknown,m),ot}return je(a,d.Object_is_of_type_unknown),ot}let _=RD(r,50331648);if(_&50331648){l(a,_);let m=Nh(r);return m.flags&229376?ot:m}return r}function fm(r,a){return jAe(r,a,Lst)}function BAe(r,a){let l=fm(r,a);if(l.flags&16384){if(gc(a)){let _=O_(a);if(Ie(a)&&_==="undefined")return je(a,d.The_value_0_cannot_be_used_here,_),l;if(_.length<100)return je(a,d._0_is_possibly_undefined,_),l}je(a,d.Object_is_possibly_undefined)}return l}function aZ(r,a,l){return r.flags&64?Rst(r,a):ige(r,r.expression,_4(r.expression),r.name,a,l)}function Rst(r,a){let l=$i(r.expression),_=aI(l,r.expression);return RY(ige(r,r.expression,fm(_,r.expression),r.name,a),r,_!==l)}function JAe(r,a){let l=u5(r)&&Hv(r.left)?fm(JR(r.left),r.left):_4(r.left);return ige(r,r.left,l,r.right,a)}function zAe(r){for(;r.parent.kind===217;)r=r.parent;return Dm(r.parent)&&r.parent.expression===r}function oZ(r,a){for(let l=i5(a);l;l=Rl(l)){let{symbol:_}=l,m=Ew(_,r),h=_.members&&_.members.get(m)||_.exports&&_.exports.get(m);if(h)return h}}function jst(r){if(!Rl(r))return en(r,d.Private_identifiers_are_not_allowed_outside_class_bodies);if(!iO(r.parent)){if(!mg(r))return en(r,d.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);let a=Yn(r.parent)&&r.parent.operatorToken.kind===103;if(!cZ(r)&&!a)return en(r,d.Cannot_find_name_0,ur(r))}return!1}function Bst(r){jst(r);let a=cZ(r);return a&&XR(a,void 0,!1),G}function cZ(r){if(!mg(r))return;let a=Hr(r);return a.resolvedSymbol===void 0&&(a.resolvedSymbol=oZ(r.escapedText,r)),a.resolvedSymbol}function rge(r,a){return Ks(r,a.escapedName)}function Jst(r,a,l){let _,m=Qa(r);m&&Qt(m,T=>{let N=T.valueDeclaration;if(N&&Ru(N)&&Di(N.name)&&N.name.escapedText===a.escapedText)return _=T,!0});let h=nd(a);if(_){let T=E.checkDefined(_.valueDeclaration),N=E.checkDefined(Rl(T));if(l?.valueDeclaration){let F=l.valueDeclaration,U=Rl(F);if(E.assert(!!U),Fn(U,re=>N===re)){let re=je(a,d.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,h,hn(r));return ga(re,vr(F,d.The_shadowing_declaration_of_0_is_defined_here,h),vr(T,d.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,h)),!0}}return je(a,d.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,h,nd(N.name||WO)),!0}return!1}function VAe(r,a){return(yD(a)||iw(r)&&X6(a))&&__(r,!0,!1)===Q6(a)}function ige(r,a,l,_,m,h){let T=Hr(a).resolvedSymbol,N=kx(r),F=o_(N!==0||zAe(r)?_f(l):l),U=Ae(F)||F===is,re;if(Di(_)){ie<99&&(N!==0&&_l(r,1048576),N!==1&&_l(r,524288));let Te=oZ(_.escapedText,_);if(N&&Te&&Te.valueDeclaration&&kc(Te.valueDeclaration)&&en(_,d.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,ur(_)),U){if(Te)return tt(F)?ot:F;if(i5(_)===void 0)return en(_,d.Private_identifiers_are_not_allowed_outside_class_bodies),G}if(re=Te&&rge(l,Te),re===void 0){if(Jst(l,_,Te))return ot;let Ne=i5(_);Ne&&GP(Mn(Ne),J.checkJs)&&en(_,d.Private_field_0_must_be_declared_in_an_enclosing_class,ur(_))}else re.flags&65536&&!(re.flags&32768)&&N!==1&&je(r,d.Private_accessor_was_defined_without_a_getter)}else{if(U)return Ie(a)&&T&&ZY(T,r),tt(F)?ot:F;re=Ks(F,_.escapedText,vZ(F),r.kind===166)}Ie(a)&&T&&(pd(J)||!(re&&(wI(re)||re.flags&8&&r.parent.kind===306))||F2(J)&&oAe(r))&&ZY(T,r);let le;if(re){let Te=the(re,_);if(v0(Te)&&Lde(r,Te)&&Te.declarations&&Fg(_,Te.declarations,_.escapedText),zst(re,r,_),XR(re,r,XAe(a,T)),Hr(r).resolvedSymbol=re,tge(r,a.kind===108,Ax(r),F,re),MNe(r,re,N))return je(_,d.Cannot_assign_to_0_because_it_is_a_read_only_property,ur(_)),ot;le=VAe(r,re)?vt:h||j5(r)?OS(re):Vn(re)}else{let Te=!Di(_)&&(N===0||!qb(l)||jE(l))?nk(F,_.escapedText):void 0;if(!(Te&&Te.type)){let Ne=sge(r,l.symbol,!0);return!Ne&&KN(l)?G:l.symbol===Qe?(Qe.exports.has(_.escapedText)&&Qe.exports.get(_.escapedText).flags&418?je(_,d.Property_0_does_not_exist_on_type_1,Ci(_.escapedText),hn(l)):se&&je(_,d.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,hn(l)),G):(_.escapedText&&!j6(r)&&qAe(_,jE(l)?F:l,Ne),ot)}Te.isReadonly&&(hg(r)||gz(r))&&je(r,d.Index_signature_in_type_0_only_permits_reading,hn(F)),le=J.noUncheckedIndexedAccess&&!hg(r)?Jr([Te.type,ee]):Te.type,J.noPropertyAccessFromIndexSignature&&Cr(r)&&je(_,d.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Ci(_.escapedText)),Te.declaration&&H1(Te.declaration)&&Fg(_,[Te.declaration],_.escapedText)}return WAe(r,re,le,_,m)}function sge(r,a,l){var _;let m=Mn(r);if(m&&J.checkJs===void 0&&m.checkJsDirective===void 0&&(m.scriptKind===1||m.scriptKind===2)){let h=Qt(a?.declarations,Mn),T=!a?.valueDeclaration||!ei(a.valueDeclaration)||((_=a.valueDeclaration.heritageClauses)==null?void 0:_.length)||Hh(!1,a.valueDeclaration);return!(m!==h&&h&&nm(h))&&!(l&&a&&a.flags&32&&T)&&!(r&&l&&Cr(r)&&r.expression.kind===110&&T)}return!1}function WAe(r,a,l,_,m){let h=kx(r);if(h===1)return Hy(l,!!(a&&a.flags&16777216));if(a&&!(a.flags&98311)&&!(a.flags&8192&&l.flags&1048576)&&!FZ(a.declarations))return l;if(l===vt)return Mf(r,a);l=Ome(l,r,m);let T=!1;if(H&&Se&&ho(r)&&r.expression.kind===110){let F=a&&a.valueDeclaration;if(F&&BIe(F)&&!zs(F)){let U=fI(r);U.kind===176&&U.parent===F.parent&&!(F.flags&33554432)&&(T=!0)}}else H&&a&&a.valueDeclaration&&Cr(a.valueDeclaration)&&dw(a.valueDeclaration)&&fI(r)===fI(a.valueDeclaration)&&(T=!0);let N=Gy(r,l,T?qy(l):l);return T&&!ND(l)&&ND(N)?(je(_,d.Property_0_is_used_before_being_assigned,ci(a)),l):h?Ah(N):N}function zst(r,a,l){let{valueDeclaration:_}=r;if(!_||Mn(a).isDeclarationFile)return;let m,h=ur(l);UAe(a)&&!Iet(_)&&!(ho(a)&&ho(a.expression))&&!b0(_,l)&&!(kc(_)&&VZ(_)&256)&&(ae||!Vst(r))?m=je(l,d.Property_0_is_used_before_its_initialization,h):_.kind===263&&a.parent.kind!==183&&!(_.flags&33554432)&&!b0(_,l)&&(m=je(l,d.Class_0_used_before_its_declaration,h)),m&&ga(m,vr(_,d._0_is_declared_here,h))}function UAe(r){return!!Fn(r,a=>{switch(a.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return Ds(a.parent)&&rc(a.parent.parent)?!0:"quit";default:return mg(a)?!1:"quit"}})}function Vst(r){if(!(r.parent.flags&32))return!1;let a=Vn(r.parent);for(;;){if(a=a.symbol&&Wst(a),!a)return!1;let l=Ks(a,r.escapedName);if(l&&l.valueDeclaration)return!0}}function Wst(r){let a=il(r);if(a.length!==0)return ya(a)}function qAe(r,a,l){let _,m;if(!Di(r)&&a.flags&1048576&&!(a.flags&402784252)){for(let T of a.types)if(!Ks(T,r.escapedText)&&!nk(T,r.escapedText)){_=ys(_,d.Property_0_does_not_exist_on_type_1,co(r),hn(T));break}}if(HAe(r.escapedText,a)){let T=co(r),N=hn(a);_=ys(_,d.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,T,N,N+"."+T)}else{let T=TI(a);if(T&&Ks(T,r.escapedText))_=ys(_,d.Property_0_does_not_exist_on_type_1,co(r),hn(a)),m=vr(r,d.Did_you_forget_to_use_await);else{let N=co(r),F=hn(a),U=Hst(N,a);if(U!==void 0)_=ys(_,d.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,F,U);else{let re=age(r,a);if(re!==void 0){let le=xc(re),Te=l?d.Property_0_may_not_exist_on_type_1_Did_you_mean_2:d.Property_0_does_not_exist_on_type_1_Did_you_mean_2;_=ys(_,Te,N,F,le),m=re.valueDeclaration&&vr(re.valueDeclaration,d._0_is_declared_here,le)}else{let le=Ust(a)?d.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:d.Property_0_does_not_exist_on_type_1;_=ys(ode(_,a),le,N,F)}}}}let h=nh(Mn(r),r,_);m&&ga(h,m),Vl(!l||_.code!==d.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,h)}function Ust(r){return J.lib&&!J.lib.includes("dom")&&sit(r,a=>a.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Ci(a.symbol.escapedName)))&&Ph(r)}function HAe(r,a){let l=a.symbol&&Ks(Vn(a.symbol),r);return l!==void 0&&!!l.valueDeclaration&&zs(l.valueDeclaration)}function qst(r){let a=nd(r),_=fF().get(a);return _&&Aj(_.keys())}function Hst(r,a){let l=o_(a).symbol;if(!l)return;let _=xc(l),h=fF().get(_);if(h){for(let[T,N]of h)if(gs(N,r))return T}}function GAe(r,a){return $R(r,Qa(a),106500)}function age(r,a){let l=Qa(a);if(typeof r!="string"){let _=r.parent;Cr(_)&&(l=Fr(l,m=>QAe(_,a,m))),r=ur(r)}return $R(r,l,111551)}function $Ae(r,a){let l=os(r)?r:ur(r),_=Qa(a);return(l==="for"?xr(_,h=>xc(h)==="htmlFor"):l==="class"?xr(_,h=>xc(h)==="className"):void 0)??$R(l,_,111551)}function oge(r,a){let l=age(r,a);return l&&xc(l)}function cge(r,a,l){return E.assert(a!==void 0,"outername should always be defined"),Gu(r,a,l,void 0,a,!1,!1,!0,(m,h,T)=>{E.assertEqual(a,h,"name should equal outerName");let N=P_(m,h,T);if(N)return N;let F;return m===me?F=Ri(["string","number","boolean","object","bigint","symbol"],re=>m.has(re.charAt(0).toUpperCase()+re.slice(1))?ja(524288,re):void 0).concat(hs(m.values())):F=hs(m.values()),$R(Ci(h),F,T)})}function Gst(r,a,l){let _=cge(r,a,l);return _&&xc(_)}function lZ(r,a){return a.exports&&$R(ur(r),T0(a),2623475)}function $st(r,a){let l=lZ(r,a);return l&&xc(l)}function Xst(r,a,l){function _(T){let N=lv(r,T);if(N){let F=QS(Vn(N));return!!F&&mm(F)>=1&&da(l,Nd(F,0))}return!1}let m=hg(a)?"set":"get";if(!_(m))return;let h=jw(a.expression);return h===void 0?h=m:h+="."+m,h}function Qst(r,a){let l=a.types.filter(_=>!!(_.flags&128));return P4(r.value,l,_=>_.value)}function $R(r,a,l){return P4(r,a,_);function _(m){let h=xc(m);if(!ts(h,'"')){if(m.flags&l)return h;if(m.flags&2097152){let T=VT(m);if(T&&T.flags&l)return h}}}}function XR(r,a,l){let _=r&&r.flags&106500&&r.valueDeclaration;if(!_)return;let m=M_(_,2),h=r.valueDeclaration&&Ru(r.valueDeclaration)&&Di(r.valueDeclaration.name);if(!(!m&&!h)&&!(a&&j5(a)&&!(r.flags&65536))){if(l){let T=Fn(a,To);if(T&&T.symbol===r)return}(lc(r)&1?Ti(r).target:r).isReferenced=67108863}}function XAe(r,a){return r.kind===110||!!a&&gc(r)&&a===sd(tf(r))}function Yst(r,a){switch(r.kind){case 211:return lge(r,r.expression.kind===108,a,_f($i(r.expression)));case 166:return lge(r,!1,a,_f($i(r.left)));case 205:return lge(r,!1,a,li(r))}}function QAe(r,a,l){return uge(r,r.kind===211&&r.expression.kind===108,!1,a,l)}function lge(r,a,l,_){if(Ae(_))return!0;let m=Ks(_,l);return!!m&&uge(r,a,!1,_,m)}function uge(r,a,l,_,m){if(Ae(_))return!0;if(m.valueDeclaration&&ju(m.valueDeclaration)){let h=Rl(m.valueDeclaration);return!Tu(r)&&!!Fn(r,T=>T===h)}return MAe(r,a,l,_,m)}function Zst(r){let a=r.initializer;if(a.kind===261){let l=a.declarations[0];if(l&&!Ms(l.name))return fr(l)}else if(a.kind===80)return sd(a)}function Kst(r){return $u(r).length===1&&!!Ug(r,St)}function eat(r){let a=eo(r);if(a.kind===80){let l=sd(a);if(l.flags&3){let _=r,m=r.parent;for(;m;){if(m.kind===249&&_===m.statement&&Zst(m)===l&&Kst(su(m.expression)))return!0;_=m,m=m.parent}}}return!1}function tat(r,a){return r.flags&64?nat(r,a):YAe(r,_4(r.expression),a)}function nat(r,a){let l=$i(r.expression),_=aI(l,r.expression);return RY(YAe(r,fm(_,r.expression),a),r,_!==l)}function YAe(r,a,l){let _=kx(r)!==0||zAe(r)?_f(a):a,m=r.argumentExpression,h=$i(m);if(tt(_)||_===is)return _;if(vZ(_)&&!$a(m))return je(m,d.A_const_enum_member_can_only_be_accessed_using_a_string_literal),ot;let T=eat(m)?St:h,N=hg(r)?4|(qb(_)&&!jE(_)?2:0):32,F=Jy(_,T,N,r)||ot;return rIe(WAe(r,Hr(r).resolvedSymbol,F,m,l),r)}function ZAe(r){return Dm(r)||B2(r)||Zu(r)}function XS(r){return ZAe(r)&&Qt(r.typeArguments,pa),r.kind===215?$i(r.template):Zu(r)?$i(r.attributes):Yn(r)?$i(r.left):Dm(r)&&Qt(r.arguments,a=>{$i(a)}),kt}function pm(r){return XS(r),gn}function rat(r,a,l){let _,m,h=0,T,N=-1,F;E.assert(!a.length);for(let U of r){let re=U.declaration&&fr(U.declaration),le=U.declaration&&U.declaration.parent;!m||re===m?_&&le===_?T=T+1:(_=le,T=h):(T=h=a.length,_=le),m=re,dU(U)?(N++,F=N,h++):F=T,a.splice(F,0,l?KKe(U,l):U)}}function uZ(r){return!!r&&(r.kind===230||r.kind===237&&r.isSpread)}function _Z(r){return Qo(r,uZ)}function KAe(r){return!!(r.flags&16384)}function iat(r){return!!(r.flags&49155)}function fZ(r,a,l,_=!1){let m,h=!1,T=ff(l),N=mm(l);if(r.kind===215)if(m=a.length,r.template.kind===228){let F=Pa(r.template.templateSpans);h=dc(F.literal)||!!F.literal.isUnterminated}else{let F=r.template;E.assert(F.kind===15),h=!!F.isUnterminated}else if(r.kind===170)m=aNe(r,l);else if(r.kind===226)m=1;else if(Zu(r)){if(h=r.attributes.end===r.end,h)return!0;m=N===0?a.length:1,T=a.length===0?T:1,N=Math.min(N,1)}else if(r.arguments){m=_?a.length+1:a.length,h=r.arguments.end===r.end;let F=_Z(a);if(F>=0)return F>=mm(l)&&(ag(l)||FT)return!1;if(h||m>=N)return!0;for(let F=m;F=_&&a.length<=l}function QS(r){return mI(r,0,!1)}function eNe(r){return mI(r,0,!1)||mI(r,1,!1)}function mI(r,a,l){if(r.flags&524288){let _=Ed(r);if(l||_.properties.length===0&&_.indexInfos.length===0){if(a===0&&_.callSignatures.length===1&&_.constructSignatures.length===0)return _.callSignatures[0];if(a===1&&_.constructSignatures.length===1&&_.callSignatures.length===0)return _.constructSignatures[0]}}}function tNe(r,a,l,_){let m=lI(r.typeParameters,r,0,_),h=hI(a),T=l&&(h&&h.flags&262144?l.nonFixingMapper:l.mapper),N=T?c4(a,T):a;return _me(N,r,(F,U)=>{Ih(m.inferences,F,U)}),l||fme(a,r,(F,U)=>{Ih(m.inferences,F,U,128)}),XN(r,Cme(m),Qn(a.declaration))}function sat(r,a,l,_){let m=rZ(a,r),h=d4(r.attributes,m,_,l);return Ih(_.inferences,h,m),Cme(_)}function nNe(r){if(!r)return Mi;let a=$i(r);return Qte(r)?a:V4(r.parent)?Nh(a):Tu(r.parent)?MY(a):a}function fge(r,a,l,_,m){if(Zu(r))return sat(r,a,_,m);if(r.kind!==170&&r.kind!==226){let F=hi(a.typeParameters,re=>!!jS(re)),U=S_(r,F?8:0);if(U){let re=Ua(a);if(vv(re)){let le=Kb(r);if(!(!F&&S_(r,8)!==U)){let Et=gme(Srt(le,1)),Yt=Vi(U,Et),pn=QS(Yt),tr=pn&&pn.typeParameters?BS(dde(pn,pn.typeParameters)):Yt;Ih(m.inferences,tr,re,128)}let Ne=lI(a.typeParameters,a,m.flags),st=Vi(U,le&&le.returnMapper);Ih(Ne.inferences,st,re),m.returnMapper=ft(Ne.inferences,m4)?gme(Crt(Ne)):void 0}}}let h=yI(a),T=h?Math.min(ff(a)-1,l.length):l.length;if(h&&h.flags&262144){let F=xr(m.inferences,U=>U.typeParameter===h);F&&(F.impliedArity=Qo(l,uZ,T)<0?l.length-T:void 0)}let N=_v(a);if(N&&vv(N)){let F=sNe(r);Ih(m.inferences,nNe(F),N)}for(let F=0;F=l-1){let re=r[l-1];if(uZ(re)){let le=re.kind===237?re.type:d4(re.expression,_,m,h);return F0(le)?rNe(le):hu(M0(33,le,j,re.kind===230?re.expression:re),T)}}let N=[],F=[],U=[];for(let re=a;reys(void 0,d.Type_0_does_not_satisfy_the_constraint_1):void 0,le=_||d.Type_0_does_not_satisfy_the_constraint_1;N||(N=N_(h,T));let Te=T[F];if(!Qu(Te,uf(Vi(U,N),Te),l?a[F]:void 0,le,re))return}}return T}function iNe(r){if(uk(r.tagName))return 2;let a=o_($i(r.tagName));return bn(Ps(a,1))?0:bn(Ps(a,0))?1:2}function aat(r,a,l,_,m,h,T){let N=rZ(a,r),F=d4(r.attributes,N,void 0,_),U=_&4?cI(F):F;return re()&&Xde(U,N,l,m?r.tagName:void 0,r.attributes,void 0,h,T);function re(){var le;if(Qme(r))return!0;let Te=(Gd(r)||W2(r))&&!(uk(r.tagName)||md(r.tagName))?$i(r.tagName):void 0;if(!Te)return!0;let Ne=Ps(Te,0);if(!bn(Ne))return!0;let st=u7e(r);if(!st)return!0;let Et=yo(st,111551,!0,!1,r);if(!Et)return!0;let Yt=Vn(Et),pn=Ps(Yt,0);if(!bn(pn))return!0;let tr=!1,yn=0;for(let On of pn){let kn=Nd(On,0),wn=Ps(kn,0);if(bn(wn))for(let vn of wn){if(tr=!0,ag(vn))return!0;let lr=ff(vn);lr>yn&&(yn=lr)}}if(!tr)return!0;let Ut=1/0;for(let On of Ne){let kn=mm(On);kn{m.push(h.expression)}),m}if(r.kind===170)return oat(r);if(r.kind===226)return[r.left];if(Zu(r))return r.attributes.properties.length>0||Gd(r)&&r.parent.children.length>0?[r.attributes]:Ve;let a=r.arguments||Ve,l=_Z(a);if(l>=0){let _=a.slice(0,l);for(let m=l;m{var U;let re=T.target.elementFlags[F],le=YR(h,re&4?hu(N):N,!!(re&12),(U=T.target.labeledElementDeclarations)==null?void 0:U[F]);_.push(le)}):_.push(h)}return _}return a}function oat(r){let a=r.expression,l=Ege(r);if(l){let _=[];for(let m of l.parameters){let h=Vn(m);_.push(YR(a,h))}return _}return E.fail()}function aNe(r,a){return J.experimentalDecorators?cat(r,a):2}function cat(r,a){switch(r.parent.kind){case 263:case 231:return 1;case 172:return zd(r.parent)?3:2;case 174:case 177:case 178:return ie===0||a.parameters.length<=2?2:3;case 169:return 3;default:return E.fail()}}function oNe(r,a){let l,_,m=Mn(r);if(Cr(r.expression)){let h=Lv(m,r.expression.name);l=h.start,_=a?h.length:r.end-l}else{let h=Lv(m,r.expression);l=h.start,_=a?h.length:r.end-l}return{start:l,length:_,sourceFile:m}}function ZR(r,a,...l){if(Ws(r)){let{sourceFile:_,start:m,length:h}=oNe(r);return"message"in a?Nl(_,m,h,a,...l):ZJ(_,a)}else return"message"in a?vr(r,a,...l):nh(Mn(r),r,a)}function lat(r){if(!Ws(r)||!Ie(r.expression))return!1;let a=bc(r.expression,r.expression.escapedText,111551,void 0,void 0,!1),l=a?.valueDeclaration;if(!l||!ms(l)||!Yv(l.parent)||!Kv(l.parent.parent)||!Ie(l.parent.parent.expression))return!1;let _=xde(!1);return _?ad(l.parent.parent.expression,!0)===_:!1}function cNe(r,a,l,_){var m;let h=_Z(l);if(h>-1)return vr(l[h],d.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let T=Number.POSITIVE_INFINITY,N=Number.NEGATIVE_INFINITY,F=Number.NEGATIVE_INFINITY,U=Number.POSITIVE_INFINITY,re;for(let Et of a){let Yt=mm(Et),pn=ff(Et);YtF&&(F=Yt),l.lengthm?T=Math.min(T,F):U1&&(yn=kn(Te,Hm,st,Ut)),yn||(yn=kn(Te,U_,st,Ut)),yn)return yn;if(yn=_at(r,Te,Ne,!!l,_),Hr(r).resolvedSignature=yn,re)if(!h&&U&&(h=d.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),Yt)if(Yt.length===1||Yt.length>3){let wn=Yt[Yt.length-1],vn;Yt.length>3&&(vn=ys(vn,d.The_last_overload_gave_the_following_error),vn=ys(vn,d.No_overload_matches_this_call)),h&&(vn=ys(vn,h));let lr=QR(r,Ne,wn,U_,0,!0,()=>vn);if(lr)for(let bs of lr)wn.declaration&&Yt.length>3&&ga(bs,vr(wn.declaration,d.The_last_overload_is_declared_here)),On(wn,bs),Ra.add(bs);else E.fail("No error for last overload signature")}else{let wn=[],vn=0,lr=Number.MAX_VALUE,bs=0,ws=0;for(let dn of Yt){let ki=QR(r,Ne,dn,U_,0,!0,()=>ys(void 0,d.Overload_0_of_1_2_gave_the_following_error,ws+1,Te.length,cm(dn)));ki?(ki.length<=lr&&(lr=ki.length,bs=ws),vn=Math.max(vn,ki.length),wn.push(ki)):E.fail("No error for 3 or fewer overload signatures"),ws++}let ks=vn>1?wn[bs]:Jp(wn);E.assert(ks.length>0,"No errors reported for 3 or fewer overload signatures");let Xi=ys(Kt(ks,ete),d.No_overload_matches_this_call);h&&(Xi=ys(Xi,h));let Iu=[...oa(ks,dn=>dn.relatedInformation)],Jf;if(hi(ks,dn=>dn.start===ks[0].start&&dn.length===ks[0].length&&dn.file===ks[0].file)){let{file:dn,start:zn,length:ki}=ks[0];Jf={file:dn,start:zn,length:ki,code:Xi.code,category:Xi.category,messageText:Xi,relatedInformation:Iu}}else Jf=nh(Mn(r),r,Xi,Iu);On(Yt[0],Jf),Ra.add(Jf)}else if(pn)Ra.add(cNe(r,[pn],Ne,h));else if(tr)dge(tr,r.typeArguments,!0,h);else{let wn=Fr(a,vn=>_ge(vn,le));wn.length===0?Ra.add(uat(r,a,le,h)):Ra.add(cNe(r,wn,Ne,h))}return yn;function On(wn,vn){var lr,bs;let ws=Yt,ks=pn,Xi=tr,Iu=((bs=(lr=wn.declaration)==null?void 0:lr.symbol)==null?void 0:bs.declarations)||Ve,dn=Iu.length>1?xr(Iu,zn=>To(zn)&&fp(zn.body)):void 0;if(dn){let zn=Lp(dn),ki=!zn.typeParameters;kn([zn],U_,ki)&&ga(vn,vr(dn,d.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Yt=ws,pn=ks,tr=Xi}function kn(wn,vn,lr,bs=!1){if(Yt=void 0,pn=void 0,tr=void 0,lr){let ws=wn[0];if(ft(le)||!fZ(r,Ne,ws,bs))return;if(QR(r,Ne,ws,vn,0,!1,void 0)){Yt=[ws];return}return ws}for(let ws=0;ws0),_k(r),_||a.length===1||a.some(h=>!!h.typeParameters)?dat(r,a,l,m):fat(a)}function fat(r){let a=Ri(r,F=>F.thisParameter),l;a.length&&(l=lNe(a,a.map(tj)));let{min:_,max:m}=Pne(r,pat),h=[];for(let F=0;FDu(re)?FYS(re,F))))}let T=Ri(r,F=>Du(F)?Pa(F.parameters):void 0),N=128;if(T.length!==0){let F=hu(Jr(Ri(r,qPe),2));h.push(uNe(T,F)),N|=1}return r.some(dU)&&(N|=2),Wg(r[0].declaration,void 0,l,h,ya(r.map(Ua)),void 0,_,N)}function pat(r){let a=r.parameters.length;return Du(r)?a-1:a}function lNe(r,a){return uNe(r,Jr(a,2))}function uNe(r,a){return VS(Da(r),a)}function dat(r,a,l,_){let m=hat(a,Jt===void 0?l.length:Jt),h=a[m],{typeParameters:T}=h;if(!T)return h;let N=ZAe(r)?r.typeArguments:void 0,F=N?nY(h,mat(N,T,Qn(r))):gat(r,T,h,l,_);return a[m]=F,F}function mat(r,a,l){let _=r.map(fk);for(;_.length>a.length;)_.pop();for(;_.length=a)return m;T>_&&(_=T,l=m)}return l}function yat(r,a,l){if(r.expression.kind===108){let F=Bme(r.expression);if(Ae(F)){for(let U of r.arguments)$i(U);return kt}if(!tt(F)){let U=Bd(Rl(r));if(U){let re=oo(F,U.typeArguments,U);return f4(r,re,a,l,0)}}return XS(r)}let _,m=$i(r.expression);if(p2(r)){let F=aI(m,r.expression);_=F===m?0:W4(r)?16:8,m=F}else _=0;if(m=jAe(m,r.expression,Mst),m===is)return Zn;let h=o_(m);if(tt(h))return pm(r);let T=Ps(h,0),N=Ps(h,1).length;if(KR(m,h,T.length,N))return!tt(m)&&r.typeArguments&&je(r,d.Untyped_function_calls_may_not_accept_type_arguments),XS(r);if(!T.length){if(N)je(r,d.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,hn(m));else{let F;if(r.arguments.length===1){let U=Mn(r).text;xu(U.charCodeAt(ma(U,r.expression.end,!0)-1))&&(F=vr(r.expression,d.Are_you_missing_a_semicolon))}gge(r.expression,h,0,F)}return pm(r)}return l&8&&!r.typeArguments&&T.some(vat)?(HNe(r,l),Ar):T.some(F=>Qn(F.declaration)&&!!fJ(F.declaration))?(je(r,d.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,hn(m)),pm(r)):f4(r,T,a,l,_)}function vat(r){return!!(r.typeParameters&&ohe(Ua(r)))}function KR(r,a,l,_){return Ae(r)||Ae(a)&&!!(r.flags&262144)||!l&&!_&&!(a.flags&1048576)&&!(Dd(a).flags&131072)&&da(r,Tt)}function bat(r,a,l){if(r.arguments&&ie<1){let T=_Z(r.arguments);T>=0&&je(r.arguments[T],d.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let _=_4(r.expression);if(_===is)return Zn;if(_=o_(_),tt(_))return pm(r);if(Ae(_))return r.typeArguments&&je(r,d.Untyped_function_calls_may_not_accept_type_arguments),XS(r);let m=Ps(_,1);if(m.length){if(!Sat(r,m[0]))return pm(r);if(_Ne(m,N=>!!(N.flags&4)))return je(r,d.Cannot_create_an_instance_of_an_abstract_class),pm(r);let T=_.symbol&&ah(_.symbol);return T&&Mr(T,64)?(je(r,d.Cannot_create_an_instance_of_an_abstract_class),pm(r)):f4(r,m,a,l,0)}let h=Ps(_,0);if(h.length){let T=f4(r,h,a,l,0);return se||(T.declaration&&!dm(T.declaration)&&Ua(T)!==Mi&&je(r,d.Only_a_void_function_can_be_called_with_the_new_keyword),_v(T)===Mi&&je(r,d.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),T}return gge(r.expression,_,1),pm(r)}function _Ne(r,a){return ss(r)?ft(r,l=>_Ne(l,a)):r.compositeKind===1048576?ft(r.compositeSignatures,a):a(r)}function mge(r,a){let l=il(a);if(!bn(l))return!1;let _=l[0];if(_.flags&2097152){let m=_.types,h=DPe(m),T=0;for(let N of _.types){if(!h[T]&&Ir(N)&3&&(N.symbol===r||mge(r,N)))return!0;T++}return!1}return _.symbol===r?!0:mge(r,_)}function Sat(r,a){if(!a||!a.declaration)return!0;let l=a.declaration,_=Px(l,6);if(!_||l.kind!==176)return!0;let m=ah(l.parent.symbol),h=wo(l.parent.symbol);if(!ihe(r,m)){let T=Rl(r);if(T&&_&4){let N=fk(T);if(mge(l.parent.symbol,N))return!0}return _&2&&je(r,d.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,hn(h)),_&4&&je(r,d.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,hn(h)),!1}return!0}function fNe(r,a,l){let _,m=l===0,h=KS(a),T=h&&Ps(h,l).length>0;if(a.flags&1048576){let F=a.types,U=!1;for(let re of F)if(Ps(re,l).length!==0){if(U=!0,_)break}else if(_||(_=ys(_,m?d.Type_0_has_no_call_signatures:d.Type_0_has_no_construct_signatures,hn(re)),_=ys(_,m?d.Not_all_constituents_of_type_0_are_callable:d.Not_all_constituents_of_type_0_are_constructable,hn(a))),U)break;U||(_=ys(void 0,m?d.No_constituent_of_type_0_is_callable:d.No_constituent_of_type_0_is_constructable,hn(a))),_||(_=ys(_,m?d.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:d.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,hn(a)))}else _=ys(_,m?d.Type_0_has_no_call_signatures:d.Type_0_has_no_construct_signatures,hn(a));let N=m?d.This_expression_is_not_callable:d.This_expression_is_not_constructable;if(Ws(r.parent)&&r.parent.arguments.length===0){let{resolvedSymbol:F}=Hr(r);F&&F.flags&32768&&(N=d.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:ys(_,N),relatedMessage:T?d.Did_you_forget_to_use_await:void 0}}function gge(r,a,l,_){let{messageChain:m,relatedMessage:h}=fNe(r,a,l),T=nh(Mn(r),r,m);if(h&&ga(T,vr(r,h)),Ws(r.parent)){let{start:N,length:F}=oNe(r.parent,!0);T.start=N,T.length=F}Ra.add(T),pNe(a,l,_?ga(T,_):T)}function pNe(r,a,l){if(!r.symbol)return;let _=Ti(r.symbol).originatingImport;if(_&&!ef(_)){let m=Ps(Vn(Ti(r.symbol).target),a);if(!m||!m.length)return;ga(l,vr(_,d.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function xat(r,a,l){let _=$i(r.tag),m=o_(_);if(tt(m))return pm(r);let h=Ps(m,0),T=Ps(m,1).length;if(KR(_,m,h.length,T))return XS(r);if(!h.length){if(Vu(r.parent)){let N=vr(r.tag,d.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Ra.add(N),pm(r)}return gge(r.tag,m,0),pm(r)}return f4(r,h,a,l,0)}function Tat(r){switch(r.parent.kind){case 263:case 231:return d.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return d.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return d.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return d.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return E.fail()}}function kat(r,a,l){let _=$i(r.expression),m=o_(_);if(tt(m))return pm(r);let h=Ps(m,0),T=Ps(m,1).length;if(KR(_,m,h.length,T))return XS(r);if(Dat(r,h)&&!C_(r.expression)){let F=Qc(r.expression,!1);return je(r,d._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,F),pm(r)}let N=Tat(r);if(!h.length){let F=fNe(r.expression,m,0),U=ys(F.messageChain,N),re=nh(Mn(r.expression),r.expression,U);return F.relatedMessage&&ga(re,vr(r.expression,F.relatedMessage)),Ra.add(re),pNe(m,0,re),pm(r)}return f4(r,h,a,l,0,N)}function dZ(r,a){let l=$S(r),_=l&&q_(l),m=_&&P_(_,Tf.Element,788968),h=m&&mt.symbolToEntityName(m,788968,r),T=I.createFunctionTypeNode(void 0,[I.createParameterDeclaration(void 0,void 0,"props",void 0,mt.typeToTypeNode(a,r))],h?I.createTypeReferenceNode(h,void 0):I.createKeywordTypeNode(133)),N=ja(1,"props");return N.links.type=a,Wg(T,void 0,void 0,[N],m?wo(m):ot,void 0,1,0)}function Cat(r,a,l){if(uk(r.tagName)){let T=IAe(r),N=dZ(r,T);return Uy(d4(r.attributes,rZ(N,r),void 0,0),T,r.tagName,r.attributes),bn(r.typeArguments)&&(Qt(r.typeArguments,pa),Ra.add(zk(Mn(r),r.typeArguments,d.Expected_0_type_arguments_but_got_1,0,bn(r.typeArguments)))),N}let _=$i(r.tagName),m=o_(_);if(tt(m))return pm(r);let h=AAe(_,r);return KR(_,m,h.length,0)?XS(r):h.length===0?(je(r.tagName,d.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Qc(r.tagName)),pm(r)):f4(r,h,a,l,0)}function Eat(r,a,l){let _=$i(r.right);if(!Ae(_)){let m=Age(_);if(m){let h=o_(m);if(tt(h))return pm(r);let T=Ps(h,0),N=Ps(h,1);if(KR(m,h,T.length,N.length))return XS(r);if(T.length)return f4(r,T,a,l,0)}else if(!(MZ(_)||Wy(_,Tt)))return je(r.right,d.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),pm(r)}return kt}function Dat(r,a){return a.length&&hi(a,l=>l.minArgumentCount===0&&!Du(l)&&l.parameters.length1?Gc(r.arguments[1]):void 0;for(let h=2;h{let T=_f(m);kY(h,T)||a8e(m,h,l,d.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Mat(r){let a=$i(r.expression),l=aI(a,r.expression);return RY(Nh(l),r,l!==a)}function Rat(r){return r.flags&64?Mat(r):Nh($i(r.expression))}function bNe(r){if(p7e(r),Qt(r.typeArguments,pa),r.kind===233){let l=Gh(r.parent);l.kind===226&&l.operatorToken.kind===104&&zv(r,l.right)&&je(r,d.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}let a=r.kind===233?$i(r.expression):Hv(r.exprName)?JR(r.exprName):$i(r.exprName);return SNe(a,r)}function SNe(r,a){let l=a.typeArguments;if(r===is||tt(r)||!ft(l))return r;let _=!1,m,h=N(r),T=_?m:r;return T&&Ra.add(zk(Mn(a),l,d.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,hn(T))),h;function N(U){let re=!1,le=!1,Te=Ne(U);return _||(_=le),re&&!le&&(m??(m=U)),Te;function Ne(st){if(st.flags&524288){let Et=Ed(st),Yt=F(Et.callSignatures),pn=F(Et.constructSignatures);if(re||(re=Et.callSignatures.length!==0||Et.constructSignatures.length!==0),le||(le=Yt.length!==0||pn.length!==0),Yt!==Et.callSignatures||pn!==Et.constructSignatures){let tr=ac(void 0,Et.members,Yt,pn,Et.indexInfos);return tr.objectFlags|=8388608,tr.node=a,tr}}else if(st.flags&58982400){let Et=a_(st);if(Et){let Yt=Ne(Et);if(Yt!==Et)return Yt}}else{if(st.flags&1048576)return zo(st,N);if(st.flags&2097152)return ya(sl(st.types,Ne))}return st}}function F(U){let re=Fr(U,le=>!!le.typeParameters&&_ge(le,l));return sl(re,le=>{let Te=dge(le,l,!0);return Te?XN(le,Te,Qn(le.declaration)):le})}}function jat(r){return pa(r.type),bge(r.expression,r.type)}function bge(r,a,l){let _=$i(r,l),m=li(a);if(tt(m))return m;let h=Fn(a.parent,T=>T.kind===238||T.kind===357);return Uy(_,m,h,r,d.Type_0_does_not_satisfy_the_expected_type_1),_}function Bat(r){return O_t(r),r.keywordToken===105?Sge(r):r.keywordToken===102?Jat(r):E.assertNever(r.keywordToken)}function xNe(r){switch(r.keywordToken){case 102:return owe();case 105:let a=Sge(r);return tt(a)?ot:rot(a);default:E.assertNever(r.keywordToken)}}function Sge(r){let a=dte(r);if(a)if(a.kind===176){let l=fr(a.parent);return Vn(l)}else{let l=fr(a);return Vn(l)}else return je(r,d.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),ot}function Jat(r){B===100||B===199?Mn(r).impliedNodeFormat!==99&&je(r,d.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):B<6&&B!==4&&je(r,d.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);let a=Mn(r);return E.assert(!!(a.flags&8388608),"Containing file is missing import meta node flag."),r.name.escapedText==="meta"?awe():ot}function tj(r){let a=r.valueDeclaration;return Ol(Vn(r),!1,!!a&&(Q0(a)||BE(a)))}function xge(r,a,l="arg"){return r?(E.assert(Ie(r.name)),r.name.escapedText):`${l}_${a}`}function VD(r,a,l){let _=r.parameters.length-(Du(r)?1:0);if(a<_)return r.parameters[a].escapedName;let m=r.parameters[_]||gt,h=l||Vn(m);if(va(h)){let T=h.target.labeledElementDeclarations,N=a-_;return xge(T?.[N],N,m.escapedName)}return m.escapedName}function zat(r,a){var l;if(((l=r.declaration)==null?void 0:l.kind)===324)return;let _=r.parameters.length-(Du(r)?1:0);if(a<_){let N=r.parameters[a],F=TNe(N);return F?{parameter:F,parameterName:N.escapedName,isRestParameter:!1}:void 0}let m=r.parameters[_]||gt,h=TNe(m);if(!h)return;let T=Vn(m);if(va(T)){let N=T.target.labeledElementDeclarations,F=a-_,U=N?.[F],re=!!U?.dotDotDotToken;return U?(E.assert(Ie(U.name)),{parameter:U.name,parameterName:U.name.escapedText,isRestParameter:re}):void 0}if(a===_)return{parameter:h,parameterName:m.escapedName,isRestParameter:!0}}function TNe(r){return r.valueDeclaration&&ms(r.valueDeclaration)&&Ie(r.valueDeclaration.name)&&r.valueDeclaration.name}function kNe(r){return r.kind===202||ms(r)&&r.name&&Ie(r.name)}function Vat(r,a){let l=r.parameters.length-(Du(r)?1:0);if(a=_-1)return a===_-1?h:hu(G_(h,St));let T=[],N=[],F=[];for(let U=a;U<_;U++)!h||U<_-1?(T.push(Nd(r,U)),N.push(U!(F&1)),N=T<0?h.target.fixedLength:T;N>0&&(m=r.parameters.length-1+N)}}if(m===void 0){if(!l&&r.flags&32)return 0;m=r.minArgumentCount}if(_)return m;for(let h=m-1;h>=0;h--){let T=Nd(r,h);if(Hc(T,KAe).flags&131072)break;m=h}r.resolvedMinArgumentCount=m}return r.resolvedMinArgumentCount}function ag(r){if(Du(r)){let a=Vn(r.parameters[r.parameters.length-1]);return!va(a)||a.target.hasRestElement}return!1}function hI(r){if(Du(r)){let a=Vn(r.parameters[r.parameters.length-1]);if(!va(a))return a;if(a.target.hasRestElement)return PD(a,a.target.fixedLength)}}function yI(r){let a=hI(r);return a&&!cp(a)&&!Ae(a)?a:void 0}function Tge(r){return kge(r,wr)}function kge(r,a){return r.parameters.length>0?Nd(r,0):a}function CNe(r,a,l){let _=r.parameters.length-(Du(r)?1:0);for(let m=0;m<_;m++){let h=r.parameters[m].valueDeclaration,T=Xl(h);if(T){let N=Ol(li(T),!1,BE(h)),F=Nd(a,m);Ih(l.inferences,N,F)}}}function Wat(r,a){if(a.typeParameters)if(!r.typeParameters)r.typeParameters=a.typeParameters;else return;if(a.thisParameter){let _=r.thisParameter;(!_||_.valueDeclaration&&!_.valueDeclaration.type)&&(_||(r.thisParameter=VS(a.thisParameter,void 0)),nj(r.thisParameter,Vn(a.thisParameter)))}let l=r.parameters.length-(Du(r)?1:0);for(let _=0;_=0);let h=Cc(_.parent)?Vn(fr(_.parent.parent)):n7e(_.parent),T=Cc(_.parent)?j:r7e(_.parent),N=wd(m),F=Td("target",h),U=Td("propertyKey",T),re=Td("parameterIndex",N);l.decoratorSignature=CI(void 0,void 0,[F,U,re],Mi);break}case 174:case 177:case 178:case 172:{let _=a;if(!ei(_.parent))break;let m=n7e(_),h=Td("target",m),T=r7e(_),N=Td("propertyKey",T),F=Is(_)?Mi:dwe(fk(_));if(ie!==0&&(!Is(a)||zd(a))){let re=dwe(fk(_)),le=Td("descriptor",re);l.decoratorSignature=CI(void 0,void 0,[h,N,le],Jr([F,Mi]))}else l.decoratorSignature=CI(void 0,void 0,[h,N],Jr([F,Mi]));break}}return l.decoratorSignature===kt?void 0:l.decoratorSignature}function Ege(r){return Z?not(r):tot(r)}function rj(r){let a=yR(!0);return a!==as?(r=L0(HD(r))||ln,w0(a,[r])):ln}function PNe(r){let a=_we(!0);return a!==as?(r=L0(HD(r))||ln,w0(a,[r])):ln}function ij(r,a){let l=rj(a);return l===ln?(je(r,ef(r)?d.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:d.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),ot):(xde(!0)||je(r,ef(r)?d.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:d.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),l)}function rot(r){let a=ja(0,"NewTargetExpression"),l=ja(4,"target",8);l.parent=a,l.links.type=r;let _=Gs([l]);return a.members=_,ac(a,_,Ve,Ve,Ve)}function hZ(r,a){if(!r.body)return ot;let l=Sl(r),_=(l&2)!==0,m=(l&1)!==0,h,T,N,F=Mi;if(r.body.kind!==241)h=Gc(r.body,a&&a&-9),_&&(h=HD(kI(h,!1,r,d.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(m){let U=ONe(r,a);U?U.length>0&&(h=Jr(U,2)):F=wr;let{yieldTypes:re,nextTypes:le}=iot(r,a);T=ft(re)?Jr(re,2):void 0,N=ft(le)?ya(le):void 0}else{let U=ONe(r,a);if(!U)return l&2?ij(r,wr):wr;if(U.length===0){let re=KY(r,void 0),le=re&&(mj(re,l)||Mi).flags&32768?j:Mi;return l&2?ij(r,le):le}h=Jr(U,2)}if(h||T||N){if(T&&zY(r,T,3),h&&zY(r,h,1),N&&zY(r,N,2),h&&Ad(h)||T&&Ad(T)||N&&Ad(N)){let U=Hme(r),re=U?U===Lp(r)?m?void 0:h:tZ(Ua(U),r,void 0):void 0;m?(T=lme(T,re,0,_),h=lme(h,re,1,_),N=lme(N,re,2,_)):h=lrt(h,re,_)}T&&(T=_f(T)),h&&(h=_f(h)),N&&(N=_f(N))}return m?wNe(T||wr,h||F,N||gAe(2,r)||ln,_):_?rj(h||F):h||F}function wNe(r,a,l,_){let m=_?_o:ul,h=m.getGlobalGeneratorType(!1);if(r=m.resolveIterationType(r,void 0)||ln,a=m.resolveIterationType(a,void 0)||ln,l=m.resolveIterationType(l,void 0)||ln,h===as){let T=m.getGlobalIterableIteratorType(!1),N=T!==as?SIe(T,m):void 0,F=N?N.returnType:G,U=N?N.nextType:j;return da(a,F)&&da(U,l)?T!==as?YN(T,[r]):(m.getGlobalIterableIteratorType(!0),Xs):(m.getGlobalGeneratorType(!0),Xs)}return YN(h,[r,a,l])}function iot(r,a){let l=[],_=[],m=(Sl(r)&2)!==0;return rte(r.body,h=>{let T=h.expression?$i(h.expression,a):ce;lp(l,ANe(h,T,G,m));let N;if(h.asteriskToken){let F=wZ(T,m?19:17,h.expression);N=F&&F.nextType}else N=S_(h,void 0);N&&lp(_,N)}),{yieldTypes:l,nextTypes:_}}function ANe(r,a,l,_){let m=r.expression||r,h=r.asteriskToken?M0(_?19:17,a,l,m):a;return _?KS(h,m,r.asteriskToken?d.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:d.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h}function NNe(r,a,l){let _=0;for(let m=0;m=a?l[m]:void 0;_|=h!==void 0?gU.get(h)||32768:0}return _}function INe(r){let a=Hr(r);if(a.isExhaustive===void 0){a.isExhaustive=0;let l=sot(r);a.isExhaustive===0&&(a.isExhaustive=l)}else a.isExhaustive===0&&(a.isExhaustive=!1);return a.isExhaustive}function sot(r){if(r.expression.kind===221){let _=Y8e(r);if(!_)return!1;let m=Ch(Gc(r.expression.expression)),h=NNe(0,0,_);return m.flags&3?(556800&h)===556800:!_m(m,T=>RD(T,h)===h)}let a=Gc(r.expression);if(!sI(a))return!1;let l=HY(r);return!l.length||ft(l,art)?!1:rit(zo(a,c_),l)}function FNe(r){return r.endFlowNode&&jR(r.endFlowNode)}function ONe(r,a){let l=Sl(r),_=[],m=FNe(r),h=!1;if(Rv(r.body,T=>{let N=T.expression;if(N){if(N=eo(N,!0),l&2&&N.kind===223&&(N=eo(N.expression,!0)),N.kind===213&&N.expression.kind===80&&Gc(N.expression).symbol===r.symbol){h=!0;return}let F=Gc(N,a&&a&-9);l&2&&(F=HD(kI(F,!1,r,d.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),F.flags&131072&&(h=!0),lp(_,F)}else m=!0}),!(_.length===0&&!m&&(h||aot(r))))return H&&_.length&&m&&!(dm(r)&&_.some(T=>T.symbol===r.symbol))&&lp(_,j),_}function aot(r){switch(r.kind){case 218:case 219:return!0;case 174:return r.parent.kind===210;default:return!1}}function Dge(r,a){n(l);return;function l(){let _=Sl(r),m=a&&mj(a,_);if(m&&(oc(m,16384)||m.flags&32769)||r.kind===173||dc(r.body)||r.body.kind!==241||!FNe(r))return;let h=r.flags&1024,T=yp(r)||r;if(m&&m.flags&131072)je(T,d.A_function_returning_never_cannot_have_a_reachable_end_point);else if(m&&!h)je(T,d.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(m&&H&&!da(j,m))je(T,d.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(J.noImplicitReturns){if(!m){if(!h)return;let N=Ua(Lp(r));if(wIe(r,N))return}je(T,d.Not_all_code_paths_return_a_value)}}}function LNe(r,a){if(E.assert(r.kind!==174||qp(r)),_k(r),uo(r)&&GD(r,r.name),a&&a&4&&ap(r)){if(!yp(r)&&!sF(r)){let _=dI(r);if(_&&vv(Ua(_))){let m=Hr(r);if(m.contextFreeType)return m.contextFreeType;let h=hZ(r,a),T=Wg(void 0,void 0,void 0,Ve,h,void 0,0,64),N=ac(r.symbol,V,[T],Ve,Ve);return N.objectFlags|=262144,m.contextFreeType=N}}return Ht}return!JZ(r)&&r.kind===218&&uhe(r),oot(r,a),Vn(fr(r))}function oot(r,a){let l=Hr(r);if(!(l.flags&64)){let _=dI(r);if(!(l.flags&64)){l.flags|=64;let m=Pl(Ps(Vn(fr(r)),0));if(!m)return;if(ap(r))if(_){let h=Kb(r),T;if(a&&a&2){CNe(m,_,h);let N=hI(_);N&&N.flags&262144&&(T=c4(_,h.nonFixingMapper))}T||(T=h?c4(_,h.mapper):_),Wat(m,T)}else Uat(m);else if(_&&!r.typeParameters&&_.parameters.length>r.parameters.length){let h=Kb(r);a&&a&2&&CNe(m,_,h)}if(_&&!r4(r)&&!m.resolvedReturnType){let h=hZ(r,a);m.resolvedReturnType||(m.resolvedReturnType=h)}SI(r)}}}function cot(r){E.assert(r.kind!==174||qp(r));let a=Sl(r),l=r4(r);if(Dge(r,l),r.body)if(yp(r)||Ua(Lp(r)),r.body.kind===241)pa(r.body);else{let _=$i(r.body),m=l&&mj(l,a);if(m)if((a&3)===2){let h=kI(_,!1,r.body,d.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);Uy(h,m,r.body,r.body)}else Uy(_,m,r.body,r.body)}}function yZ(r,a,l,_=!1){if(!da(a,_s)){let m=_&&qD(a);return Hu(r,!!m&&da(m,_s),l),!1}return!0}function lot(r){if(!Ws(r)||!C2(r))return!1;let a=Gc(r.arguments[2]);if(q(a,"value")){let m=Ks(a,"writable"),h=m&&Vn(m);if(!h||h===Wt||h===Rn)return!0;if(m&&m.valueDeclaration&&el(m.valueDeclaration)){let T=m.valueDeclaration.initializer,N=$i(T);if(N===Wt||N===Rn)return!0}return!1}return!Ks(a,"set")}function Id(r){return!!(lc(r)&8||r.flags&4&&Uf(r)&8||r.flags&3&&Kme(r)&6||r.flags&98304&&!(r.flags&65536)||r.flags&8||ft(r.declarations,lot))}function MNe(r,a,l){var _,m;if(l===0)return!1;if(Id(a)){if(a.flags&4&&ho(r)&&r.expression.kind===110){let h=yf(r);if(!(h&&(h.kind===176||dm(h))))return!0;if(a.valueDeclaration){let T=Yn(a.valueDeclaration),N=h.parent===a.valueDeclaration.parent,F=h===a.valueDeclaration.parent,U=T&&((_=a.parent)==null?void 0:_.valueDeclaration)===h.parent,re=T&&((m=a.parent)==null?void 0:m.valueDeclaration)===h;return!(N||F||U||re)}}return!0}if(ho(r)){let h=eo(r.expression);if(h.kind===80){let T=Hr(h).resolvedSymbol;if(T.flags&2097152){let N=wp(T);return!!N&&N.kind===274}}}return!1}function vI(r,a,l){let _=wc(r,7);return _.kind!==80&&!ho(_)?(je(r,a),!1):_.flags&64?(je(r,l),!1):!0}function uot(r){$i(r.expression);let a=eo(r.expression);if(!ho(a))return je(a,d.The_operand_of_a_delete_operator_must_be_a_property_reference),jr;Cr(a)&&Di(a.name)&&je(a,d.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);let l=Hr(a),_=Ip(l.resolvedSymbol);return _&&(Id(_)?je(a,d.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):_ot(a,_)),jr}function _ot(r,a){let l=Vn(a);H&&!(l.flags&131075)&&!(he?a.flags&16777216:Rp(l,16777216))&&je(r,d.The_operand_of_a_delete_operator_must_be_optional)}function fot(r){return $i(r.expression),I6}function pot(r){return _k(r),ce}function RNe(r){let a=!1,l=r5(r);if(l&&rc(l)){let _=cy(r)?d.await_expression_cannot_be_used_inside_a_class_static_block:d.await_using_statements_cannot_be_used_inside_a_class_static_block;je(r,_),a=!0}else if(!(r.flags&65536))if(s5(r)){let _=Mn(r);if(!n2(_)){let m;if(!vx(_,J)){m??(m=Im(_,r.pos));let h=cy(r)?d.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:d.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,T=Nl(_,m.start,m.length,h);Ra.add(T),a=!0}switch(B){case 100:case 199:if(_.impliedNodeFormat===1){m??(m=Im(_,r.pos)),Ra.add(Nl(_,m.start,m.length,d.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),a=!0;break}case 7:case 99:case 4:if(ie>=4)break;default:m??(m=Im(_,r.pos));let h=cy(r)?d.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:d.Top_level_await_using_statements_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;Ra.add(Nl(_,m.start,m.length,h)),a=!0;break}}}else{let _=Mn(r);if(!n2(_)){let m=Im(_,r.pos),h=cy(r)?d.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:d.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,T=Nl(_,m.start,m.length,h);if(l&&l.kind!==176&&!(Sl(l)&2)){let N=vr(l,d.Did_you_mean_to_mark_this_function_as_async);ga(T,N)}Ra.add(T),a=!0}}return cy(r)&&zme(r)&&(je(r,d.await_expressions_cannot_be_used_in_a_parameter_initializer),a=!0),a}function dot(r){n(()=>RNe(r));let a=$i(r.expression),l=kI(a,!0,r,d.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return l===a&&!tt(l)&&!(a.flags&3)&&Vl(!1,vr(r,d.await_has_no_effect_on_the_type_of_this_expression)),l}function mot(r){let a=$i(r.operand);if(a===is)return is;switch(r.operand.kind){case 9:switch(r.operator){case 41:return ok(wd(-r.operand.text));case 40:return ok(wd(+r.operand.text))}break;case 10:if(r.operator===41)return ok(mY({negative:!0,base10Value:FE(r.operand.text)}))}switch(r.operator){case 40:case 41:case 55:return fm(a,r.operand),sj(a,12288)&&je(r.operand,d.The_0_operator_cannot_be_applied_to_type_symbol,Zs(r.operator)),r.operator===40?(sj(a,2112)&&je(r.operand,d.Operator_0_cannot_be_applied_to_type_1,Zs(r.operator),hn(Ah(a))),St):Pge(a);case 54:qge(a,r.operand);let l=RD(a,12582912);return l===4194304?Wt:l===8388608?nr:jr;case 46:case 47:return yZ(r.operand,fm(a,r.operand),d.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&vI(r.operand,d.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,d.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Pge(a)}return ot}function got(r){let a=$i(r.operand);return a===is?is:(yZ(r.operand,fm(a,r.operand),d.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&vI(r.operand,d.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,d.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),Pge(a))}function Pge(r){return oc(r,2112)?Ul(r,3)||oc(r,296)?_s:Mt:St}function sj(r,a){if(oc(r,a))return!0;let l=Ch(r);return!!l&&oc(l,a)}function oc(r,a){if(r.flags&a)return!0;if(r.flags&3145728){let l=r.types;for(let _ of l)if(oc(_,a))return!0}return!1}function Ul(r,a,l){return r.flags&a?!0:l&&r.flags&114691?!1:!!(a&296)&&da(r,St)||!!(a&2112)&&da(r,Mt)||!!(a&402653316)&&da(r,Fe)||!!(a&528)&&da(r,jr)||!!(a&16384)&&da(r,Mi)||!!(a&131072)&&da(r,wr)||!!(a&65536)&&da(r,De)||!!(a&32768)&&da(r,j)||!!(a&4096)&&da(r,Br)||!!(a&67108864)&&da(r,ua)}function aj(r,a,l){return r.flags&1048576?hi(r.types,_=>aj(_,a,l)):Ul(r,a,l)}function vZ(r){return!!(Ir(r)&16)&&!!r.symbol&&wge(r.symbol)}function wge(r){return(r.flags&128)!==0}function Age(r){let a=TIe("hasInstance"),l=lv(r,a);if(l){let _=Vn(l);if(_&&Ps(_,0).length!==0)return _}}function hot(r,a,l,_,m){if(l===is||_===is)return is;!Ae(l)&&aj(l,402784252)&&je(r,d.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),E.assert(O5(r.parent));let h=p4(r.parent,void 0,m);if(h===Ar)return is;let T=Ua(h);return Qu(T,jr,a,d.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),jr}function yot(r){return _m(r,a=>a===ic||!!(a.flags&2097152)&&wh(Ch(a)))}function vot(r,a,l,_){if(l===is||_===is)return is;if(Di(r)){if(ie<99&&_l(r,2097152),!Hr(r).resolvedSymbol&&Rl(r)){let m=sge(r,_.symbol,!0);qAe(r,_,m)}}else Qu(fm(l,r),Pn,r);return Qu(fm(_,a),ua,a)&&yot(_)&&je(a,d.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,hn(_)),jr}function bot(r,a,l){let _=r.properties;if(H&&_.length===0)return fm(a,r);for(let m=0;m<_.length;m++)jNe(r,a,m,_,l);return a}function jNe(r,a,l,_,m=!1){let h=r.properties,T=h[l];if(T.kind===303||T.kind===304){let N=T.name,F=N0(N);if(Sp(F)){let le=xp(F),Te=Ks(a,le);Te&&(XR(Te,T,m),tge(T,!1,!0,a,Te))}let U=G_(a,F,32,N),re=fi(T,U);return ZS(T.kind===304?T:T.initializer,re)}else if(T.kind===305)if(lPD(U,l)):hu(_);return ZS(N,F,m)}}}}function ZS(r,a,l,_){let m;if(r.kind===304){let h=r;h.objectAssignmentInitializer&&(H&&!Rp($i(h.objectAssignmentInitializer),16777216)&&(a=jp(a,524288)),Cot(h.name,h.equalsToken,h.objectAssignmentInitializer,l)),m=r.name}else m=r;return m.kind===226&&m.operatorToken.kind===64&&(be(m,l),m=m.left,H&&(a=jp(a,524288))),m.kind===210?bot(m,a,_):m.kind===209?Sot(m,a,l):xot(m,a,l)}function xot(r,a,l){let _=$i(r,l),m=r.parent.kind===305?d.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:d.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,h=r.parent.kind===305?d.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:d.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return vI(r,m,h)&&Uy(a,_,r,r),Ak(r)&&_l(r.parent,1048576),a}function oj(r){switch(r=eo(r),r.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return oj(r.whenTrue)&&oj(r.whenFalse);case 226:return Xh(r.operatorToken.kind)?!1:oj(r.left)&&oj(r.right);case 224:case 225:switch(r.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Nge(r,a){return(a.flags&98304)!==0||kY(r,a)}function Tot(){let r=hO(a,l,_,m,h,T);return(Te,Ne)=>{let st=r(Te,Ne);return E.assertIsDefined(st),st};function a(Te,Ne,st){return Ne?(Ne.stackIndex++,Ne.skip=!1,U(Ne,void 0),le(Ne,void 0)):Ne={checkMode:st,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Qn(Te)&&bx(Te)?(Ne.skip=!0,le(Ne,$i(Te.right,st)),Ne):(kot(Te),Te.operatorToken.kind===64&&(Te.left.kind===210||Te.left.kind===209)&&(Ne.skip=!0,le(Ne,ZS(Te.left,$i(Te.right,st),st,Te.right.kind===110))),Ne)}function l(Te,Ne,st){if(!Ne.skip)return N(Ne,Te)}function _(Te,Ne,st){if(!Ne.skip){let Et=re(Ne);E.assertIsDefined(Et),U(Ne,Et),le(Ne,void 0);let Yt=Te.kind;if(Ow(Yt)){let pn=st.parent;for(;pn.kind===217||Lw(pn);)pn=pn.parent;(Yt===56||J2(pn))&&Uge(st.left,Et,J2(pn)?pn.thenStatement:void 0),qge(Et,st.left)}}}function m(Te,Ne,st){if(!Ne.skip)return N(Ne,Te)}function h(Te,Ne){let st;if(Ne.skip)st=re(Ne);else{let Et=F(Ne);E.assertIsDefined(Et);let Yt=re(Ne);E.assertIsDefined(Yt),st=JNe(Te.left,Te.operatorToken,Te.right,Et,Yt,Ne.checkMode,Te)}return Ne.skip=!1,U(Ne,void 0),le(Ne,void 0),Ne.stackIndex--,st}function T(Te,Ne,st){return le(Te,Ne),Te}function N(Te,Ne){if(Yn(Ne))return Ne;le(Te,$i(Ne,Te.checkMode))}function F(Te){return Te.typeStack[Te.stackIndex]}function U(Te,Ne){Te.typeStack[Te.stackIndex]=Ne}function re(Te){return Te.typeStack[Te.stackIndex+1]}function le(Te,Ne){Te.typeStack[Te.stackIndex+1]=Ne}}function kot(r){let{left:a,operatorToken:l,right:_}=r;l.kind===61&&(Yn(a)&&(a.operatorToken.kind===57||a.operatorToken.kind===56)&&en(a,d._0_and_1_operations_cannot_be_mixed_without_parentheses,Zs(a.operatorToken.kind),Zs(l.kind)),Yn(_)&&(_.operatorToken.kind===57||_.operatorToken.kind===56)&&en(_,d._0_and_1_operations_cannot_be_mixed_without_parentheses,Zs(_.operatorToken.kind),Zs(l.kind)))}function Cot(r,a,l,_,m){let h=a.kind;if(h===64&&(r.kind===210||r.kind===209))return ZS(r,$i(l,_),_,l.kind===110);let T;Ow(h)?T=$D(r,_):T=$i(r,_);let N=$i(l,_);return JNe(r,a,l,T,N,_,m)}function JNe(r,a,l,_,m,h,T){let N=a.kind;switch(N){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(_===is||m===is)return is;_=fm(_,r),m=fm(m,l);let Ut;if(_.flags&528&&m.flags&528&&(Ut=Te(a.kind))!==void 0)return je(T||a,d.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Zs(a.kind),Zs(Ut)),St;{let wn=yZ(r,_,d.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),vn=yZ(l,m,d.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),lr;if(Ul(_,3)&&Ul(m,3)||!(oc(_,2112)||oc(m,2112)))lr=St;else if(F(_,m)){switch(N){case 50:case 73:Yt();break;case 43:case 68:ie<3&&je(T,d.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}lr=Mt}else Yt(F),lr=ot;return wn&&vn&&Ne(lr),lr}case 40:case 65:if(_===is||m===is)return is;!Ul(_,402653316)&&!Ul(m,402653316)&&(_=fm(_,r),m=fm(m,l));let On;return Ul(_,296,!0)&&Ul(m,296,!0)?On=St:Ul(_,2112,!0)&&Ul(m,2112,!0)?On=Mt:Ul(_,402653316,!0)||Ul(m,402653316,!0)?On=Fe:(Ae(_)||Ae(m))&&(On=tt(_)||tt(m)?ot:G),On&&!le(N)?On:On?(N===65&&Ne(On),On):(Yt((vn,lr)=>Ul(vn,402655727)&&Ul(lr,402655727)),G);case 30:case 32:case 33:case 34:return le(N)&&(_=ome(fm(_,r)),m=ome(fm(m,l)),Et((wn,vn)=>{if(Ae(wn)||Ae(vn))return!0;let lr=da(wn,_s),bs=da(vn,_s);return lr&&bs||!lr&&!bs&&CR(wn,vn)})),jr;case 35:case 36:case 37:case 38:if(!(h&&h&64)){if((xJ(r)||xJ(l))&&(!Qn(r)||N===37||N===38)){let wn=N===35||N===37;je(T,d.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,wn?"false":"true")}tr(T,N,r,l),Et((wn,vn)=>Nge(wn,vn)||Nge(vn,wn))}return jr;case 104:return hot(r,l,_,m,h);case 103:return vot(r,l,_,m);case 56:case 77:{let wn=Rp(_,4194304)?Jr([frt(H?_:Ah(m)),m]):_;return N===77&&Ne(m),wn}case 57:case 76:{let wn=Rp(_,8388608)?Jr([Nh(k8e(_)),m],2):_;return N===76&&Ne(m),wn}case 61:case 78:{let wn=Rp(_,262144)?Jr([Nh(_),m],2):_;return N===78&&Ne(m),wn}case 64:let kn=Yn(r.parent)?mc(r.parent):0;return U(kn,m),st(kn)?((!(m.flags&524288)||kn!==2&&kn!==6&&!Ph(m)&&!wme(m)&&!(Ir(m)&1))&&Ne(m),_):(Ne(m),m);case 28:if(!J.allowUnreachableCode&&oj(r)&&!re(r.parent)){let wn=Mn(r),vn=wn.text,lr=ma(vn,r.pos);wn.parseDiagnostics.some(ws=>ws.code!==d.JSX_expressions_must_have_one_parent_element.code?!1:cJ(ws,lr))||je(r,d.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return m;default:return E.fail()}function F(Ut,On){return Ul(Ut,2112)&&Ul(On,2112)}function U(Ut,On){if(Ut===2)for(let kn of My(On)){let wn=Vn(kn);if(wn.symbol&&wn.symbol.flags&32){let vn=kn.escapedName,lr=bc(kn.valueDeclaration,vn,788968,void 0,vn,!1);lr?.declarations&&lr.declarations.some(FC)&&(kd(lr,d.Duplicate_identifier_0,Ci(vn),kn),kd(kn,d.Duplicate_identifier_0,Ci(vn),lr))}}}function re(Ut){return Ut.parent.kind===217&&R_(Ut.left)&&Ut.left.text==="0"&&(Ws(Ut.parent.parent)&&Ut.parent.parent.expression===Ut.parent||Ut.parent.parent.kind===215)&&(ho(Ut.right)||Ie(Ut.right)&&Ut.right.escapedText==="eval")}function le(Ut){let On=sj(_,12288)?r:sj(m,12288)?l:void 0;return On?(je(On,d.The_0_operator_cannot_be_applied_to_type_symbol,Zs(Ut)),!1):!0}function Te(Ut){switch(Ut){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function Ne(Ut){Xh(N)&&n(On);function On(){let kn=_;if(v3(a.kind)&&r.kind===211&&(kn=aZ(r,void 0,!0)),vI(r,d.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,d.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let wn;if(he&&Cr(r)&&oc(Ut,32768)){let vn=q(su(r.expression),r.name.escapedText);EY(Ut,vn)&&(wn=d.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}Uy(Ut,kn,r,l,wn)}}}function st(Ut){var On;switch(Ut){case 2:return!0;case 1:case 5:case 6:case 3:case 4:let kn=lf(r),wn=bx(l);return!!wn&&xa(wn)&&!!((On=kn?.exports)!=null&&On.size);default:return!1}}function Et(Ut){return Ut(_,m)?!1:(Yt(Ut),!0)}function Yt(Ut){let On=!1,kn=T||a;if(Ut){let ws=L0(_),ks=L0(m);On=!(ws===_&&ks===m)&&!!(ws&&ks)&&Ut(ws,ks)}let wn=_,vn=m;!On&&Ut&&([wn,vn]=Eot(_,m,Ut));let[lr,bs]=wy(wn,vn);pn(kn,On,lr,bs)||Hu(kn,On,d.Operator_0_cannot_be_applied_to_types_1_and_2,Zs(a.kind),lr,bs)}function pn(Ut,On,kn,wn){switch(a.kind){case 37:case 35:case 38:case 36:return Hu(Ut,On,d.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,kn,wn);default:return}}function tr(Ut,On,kn,wn){let vn=yn(eo(kn)),lr=yn(eo(wn));if(vn||lr){let bs=je(Ut,d.This_condition_will_always_return_0,Zs(On===37||On===35?97:112));if(vn&&lr)return;let ws=On===38||On===36?Zs(54):"",ks=vn?wn:kn,Xi=eo(ks);ga(bs,vr(ks,d.Did_you_mean_0,`${ws}Number.isNaN(${gc(Xi)?O_(Xi):"..."})`))}}function yn(Ut){if(Ie(Ut)&&Ut.escapedText==="NaN"){let On=ytt();return!!On&&On===sd(Ut)}return!1}}function Eot(r,a,l){let _=r,m=a,h=Ah(r),T=Ah(a);return l(h,T)||(_=h,m=T),[_,m]}function Dot(r){n(Te);let a=yf(r);if(!a)return G;let l=Sl(a);if(!(l&1))return G;let _=(l&2)!==0;r.asteriskToken&&(_&&ie<99&&_l(r,26624),!_&&ie<2&&J.downlevelIteration&&_l(r,256));let m=r4(a);m&&m.flags&1048576&&(m=Hc(m,Ne=>Lge(Ne,l,void 0)));let h=m&&PIe(m,_),T=h&&h.yieldType||G,N=h&&h.nextType||G,F=_?KS(N)||G:N,U=r.expression?$i(r.expression):ce,re=ANe(r,U,F,_);if(m&&re&&Uy(re,T,r.expression||r,r.expression),r.asteriskToken)return Gge(_?19:17,1,U,r.expression)||G;if(m)return t2(2,m,_)||G;let le=gAe(2,a);return le||(le=G,n(()=>{if(se&&!Fne(r)){let Ne=S_(r,void 0);(!Ne||Ae(Ne))&&je(r,d.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),le;function Te(){r.flags&16384||ql(r,d.A_yield_expression_is_only_allowed_in_a_generator_body),zme(r)&&je(r,d.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Pot(r,a){let l=$D(r.condition,a);Uge(r.condition,l,r.whenTrue);let _=$i(r.whenTrue,a),m=$i(r.whenFalse,a);return Jr([_,m],2)}function zNe(r){let a=r.parent;return C_(a)&&zNe(a)||ko(a)&&a.argumentExpression===r}function wot(r){let a=[r.head.text],l=[];for(let m of r.templateSpans){let h=$i(m.expression);sj(h,12288)&&je(m.expression,d.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),a.push(m.literal.text),l.push(da(h,to)?h:Fe)}if(WD(r)||zNe(r)||_m(S_(r,void 0)||ln,Aot))return JS(a,l);let _=r.parent.kind!==215&&WIe(r);return _?ok(b_(_)):Fe}function Aot(r){return!!(r.flags&134217856||r.flags&58982400&&oc(a_(r)||ln,402653316))}function Not(r){return rb(r)&&!W2(r.parent)?r.parent.parent:r}function d4(r,a,l,_){let m=Not(r);VR(m,a,!1),Kit(m,l);let h=$i(r,_|1|(l?2:0));l&&l.intraExpressionInferenceSites&&(l.intraExpressionInferenceSites=void 0);let T=oc(h,2944)&&bZ(h,tZ(a,r,void 0))?c_(h):h;return est(),pI(),T}function Gc(r,a){if(a)return $i(r,a);let l=Hr(r);if(!l.resolvedType){let _=Ee,m=En;Ee=We,En=void 0,l.resolvedType=$i(r,a),En=m,Ee=_}return l.resolvedType}function VNe(r){return r=eo(r,!0),r.kind===216||r.kind===234||a3(r)}function bI(r,a,l){let _=lw(r);if(Qn(r)){let h=cF(r);if(h)return bge(_,h,a)}let m=Oge(_)||(l?d4(_,l,void 0,a||0):Gc(_,a));return ms(r)&&r.name.kind===207&&va(m)&&!m.target.hasRestElement&&A0(m)bZ(r,_))}if(a.flags&58982400){let l=a_(a)||ln;return oc(l,4)&&oc(r,128)||oc(l,8)&&oc(r,256)||oc(l,64)&&oc(r,2048)||oc(l,4096)&&oc(r,8192)||bZ(r,l)}return!!(a.flags&406847616&&oc(r,128)||a.flags&256&&oc(r,256)||a.flags&2048&&oc(r,2048)||a.flags&512&&oc(r,512)||a.flags&8192&&oc(r,8192))}return!1}function WD(r){let a=r.parent;return h2(a)&&eh(a.type)||a3(a)&&eh(pO(a))||vge(r)&&tk(S_(r,0))||(C_(a)||Vu(a)||qd(a))&&WD(a)||(el(a)||sf(a)||e3(a))&&WD(a.parent)}function UD(r,a,l){let _=$i(r,a,l);return WD(r)||ate(r)?c_(_):VNe(r)?_:cme(_,tZ(S_(r,void 0),r,void 0))}function WNe(r,a){return r.name.kind===167&&qg(r.name),UD(r.initializer,a)}function UNe(r,a){g7e(r),r.name.kind===167&&qg(r.name);let l=LNe(r,a);return qNe(r,l,a)}function qNe(r,a,l){if(l&&l&10){let _=mI(a,0,!0),m=mI(a,1,!0),h=_||m;if(h&&h.typeParameters){let T=Sv(r,2);if(T){let N=mI(Nh(T),_?0:1,!1);if(N&&!N.typeParameters){if(l&8)return HNe(r,l),Ht;let F=Kb(r),U=F.signature&&Ua(F.signature),re=U&&eNe(U);if(re&&!re.typeParameters&&!hi(F.inferences,m4)){let le=Mot(F,h.typeParameters),Te=dde(h,le),Ne=Kt(F.inferences,st=>mme(st.typeParameter));if(_me(Te,N,(st,Et)=>{Ih(Ne,st,Et,0,!0)}),ft(Ne,m4)&&(fme(Te,N,(st,Et)=>{Ih(Ne,st,Et)}),!Oot(F.inferences,Ne)))return Lot(F.inferences,Ne),F.inferredTypeParameters=es(F.inferredTypeParameters,le),BS(Te)}return BS(tNe(h,N,F))}}}}return a}function HNe(r,a){if(a&2){let l=Kb(r);l.flags|=4}}function m4(r){return!!(r.candidates||r.contraCandidates)}function Fot(r){return!!(r.candidates||r.contraCandidates||MPe(r.typeParameter))}function Oot(r,a){for(let l=0;ll.symbol.escapedName===a)}function Rot(r,a){let l=a.length;for(;l>1&&a.charCodeAt(l-1)>=48&&a.charCodeAt(l-1)<=57;)l--;let _=a.slice(0,l);for(let m=1;;m++){let h=_+m;if(!Fge(r,h))return h}}function GNe(r){let a=QS(r);if(a&&!a.typeParameters)return Ua(a)}function jot(r){let a=$i(r.expression),l=aI(a,r.expression),_=GNe(a);return _&&RY(_,r,l!==a)}function su(r){let a=Oge(r);if(a)return a;if(r.flags&268435456&&En){let m=En[Va(r)];if(m)return m}let l=nn,_=$i(r,64);if(nn!==l){let m=En||(En=[]);m[Va(r)]=_,Ine(r,r.flags|268435456)}return _}function Oge(r){let a=eo(r,!0);if(a3(a)){let l=pO(a);if(!eh(l))return li(l)}if(a=eo(r),cy(a)){let l=Oge(a.expression);return l?KS(l):void 0}if(Ws(a)&&a.expression.kind!==108&&!T_(a,!0)&&!dNe(a))return p2(a)?jot(a):GNe(_4(a.expression));if(h2(a)&&!eh(a.type))return li(a.type);if(Av(r)||G4(r))return $i(r)}function cj(r){let a=Hr(r);if(a.contextFreeType)return a.contextFreeType;VR(r,G,!1);let l=a.contextFreeType=$i(r,4);return pI(),l}function $i(r,a,l){var _,m;(_=Wn)==null||_.push(Wn.Phase.Check,"checkExpression",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});let h=D;D=r,x=0;let T=zot(r,a,l),N=qNe(r,T,a);return vZ(N)&&Bot(r,N),D=h,(m=Wn)==null||m.pop(),N}function Bot(r,a){r.parent.kind===211&&r.parent.expression===r||r.parent.kind===212&&r.parent.expression===r||(r.kind===80||r.kind===166)&&OZ(r)||r.parent.kind===186&&r.parent.exprName===r||r.parent.kind===281||je(r,d.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),pd(J)&&(E.assert(!!(a.symbol.flags&128)),a.symbol.valueDeclaration.flags&33554432&&!h1(r)&&je(r,d.Cannot_access_ambient_const_enums_when_0_is_enabled,Je))}function Jot(r,a){if(Z_(r)){if(fV(r))return bge(r.expression,pV(r),a);if(a3(r))return yNe(r,a)}return $i(r.expression,a)}function zot(r,a,l){let _=r.kind;if(i)switch(_){case 231:case 218:case 219:i.throwIfCancellationRequested()}switch(_){case 80:return xit(r,a);case 81:return Bst(r);case 110:return JR(r);case 108:return Bme(r);case 106:return qe;case 15:case 11:return bme(r)?Re:ok(b_(r.text));case 9:return dhe(r),ok(wd(+r.text));case 10:return V_t(r),ok(mY({negative:!1,base10Value:FE(r.text)}));case 112:return nr;case 97:return Wt;case 228:return wot(r);case 14:return tc;case 209:return kAe(r,a,l);case 210:return hst(r,a);case 211:return aZ(r,a);case 166:return JAe(r,a);case 212:return tat(r,a);case 213:if(r.expression.kind===102)return Iat(r);case 214:return Nat(r,a);case 215:return Fat(r);case 217:return Jot(r,a);case 231:return Plt(r);case 218:case 219:return LNe(r,a);case 221:return fot(r);case 216:case 234:return Oat(r,a);case 235:return Rat(r);case 233:return bNe(r);case 238:return jat(r);case 236:return Bat(r);case 220:return uot(r);case 222:return pot(r);case 223:return dot(r);case 224:return mot(r);case 225:return got(r);case 226:return be(r,a);case 227:return Pot(r,a);case 230:return _st(r,a);case 232:return ce;case 229:return Dot(r);case 237:return fst(r);case 294:return Ist(r,a);case 284:return Sst(r,a);case 285:return vst(r,a);case 288:return xst(r);case 292:return kst(r,a);case 286:E.fail("Shouldn't ever directly check a JsxOpeningElement")}return ot}function $Ne(r){Gg(r),r.expression&&ql(r.expression,d.Type_expected),pa(r.constraint),pa(r.default);let a=MS(fr(r));a_(a),ket(a)||je(r.default,d.Type_parameter_0_has_a_circular_default,hn(a));let l=Nu(a),_=jS(a);l&&_&&Qu(_,uf(Vi(l,$b(a,_)),_),r.default,d.Type_0_does_not_satisfy_the_constraint_1),_k(r),n(()=>XD(r.name,d.Type_parameter_name_cannot_be_0))}function Vot(r){var a,l;if(Wu(r.parent)||ei(r.parent)||Xp(r.parent)){let _=MS(fr(r)),m=nme(_)&24576;if(m){let h=fr(r.parent);if(Xp(r.parent)&&!(Ir(wo(h))&48))je(r,d.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(m===8192||m===16384){(a=Wn)==null||a.push(Wn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Xu(wo(h)),id:Xu(_)});let T=PR(h,_,m===16384?Pe:A),N=PR(h,_,m===16384?A:Pe),F=_;O=_,Qu(T,N,r,d.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),O=F,(l=Wn)==null||l.pop()}}}}function XNe(r){Gg(r),pj(r);let a=yf(r);Mr(r,31)&&(a.kind===176&&fp(a.body)||je(r,d.A_parameter_property_is_only_allowed_in_a_constructor_implementation),a.kind===176&&Ie(r.name)&&r.name.escapedText==="constructor"&&je(r.name,d.constructor_cannot_be_used_as_a_parameter_property_name)),!r.initializer&&BE(r)&&Ms(r.name)&&a.body&&je(r,d.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),r.name&&Ie(r.name)&&(r.name.escapedText==="this"||r.name.escapedText==="new")&&(a.parameters.indexOf(r)!==0&&je(r,d.A_0_parameter_must_be_the_first_parameter,r.name.escapedText),(a.kind===176||a.kind===180||a.kind===185)&&je(r,d.A_constructor_cannot_have_a_this_parameter),a.kind===219&&je(r,d.An_arrow_function_cannot_have_a_this_parameter),(a.kind===177||a.kind===178)&&je(r,d.get_and_set_accessors_cannot_declare_this_parameters)),r.dotDotDotToken&&!Ms(r.name)&&!da(Dd(Vn(r.symbol)),Ep)&&je(r,d.A_rest_parameter_must_be_of_an_array_type)}function Wot(r){let a=Uot(r);if(!a){je(r,d.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}let l=Lp(a),_=sp(l);if(!_)return;pa(r.type);let{parameterName:m}=r;if(_.kind===0||_.kind===2)gY(m);else if(_.parameterIndex>=0){if(Du(l)&&_.parameterIndex===l.parameters.length-1)je(m,d.A_type_predicate_cannot_reference_a_rest_parameter);else if(_.type){let h=()=>ys(void 0,d.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Qu(_.type,Vn(l.parameters[_.parameterIndex]),r.type,void 0,h)}}else if(m){let h=!1;for(let{name:T}of a.parameters)if(Ms(T)&&QNe(T,m,_.parameterName)){h=!0;break}h||je(r.parameterName,d.Cannot_find_parameter_0,_.parameterName)}}function Uot(r){switch(r.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:let a=r.parent;if(r===a.type)return a}}function QNe(r,a,l){for(let _ of r.elements){if(xl(_))continue;let m=_.name;if(m.kind===80&&m.escapedText===l)return je(a,d.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,l),!0;if((m.kind===207||m.kind===206)&&QNe(m,a,l))return!0}}function SI(r){r.kind===181?g_t(r):(r.kind===184||r.kind===262||r.kind===185||r.kind===179||r.kind===176||r.kind===180)&&JZ(r);let a=Sl(r);a&4||((a&3)===3&&ie<99&&_l(r,6144),(a&3)===2&&ie<4&&_l(r,64),a&3&&ie<2&&_l(r,128)),gj(q0(r)),Clt(r),Qt(r.parameters,XNe),r.type&&pa(r.type),n(l);function l(){Vct(r);let _=yp(r),m=_;if(Qn(r)){let h=a1(r);if(h&&h.typeExpression&&Tp(h.typeExpression.type)){let T=QS(li(h.typeExpression));T&&T.declaration&&(_=yp(T.declaration),m=h.typeExpression.type)}}if(se&&!_)switch(r.kind){case 180:je(r,d.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:je(r,d.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(_&&m){let h=Sl(r);if((h&5)===1){let T=li(_);T===Mi?je(m,d.A_generator_cannot_have_a_void_type_annotation):Lge(T,h,m)}else(h&3)===2&&Sct(r,_,m)}r.kind!==181&&r.kind!==324&&$y(r)}}function Lge(r,a,l){let _=t2(0,r,(a&2)!==0)||G,m=t2(1,r,(a&2)!==0)||_,h=t2(2,r,(a&2)!==0)||ln,T=wNe(_,m,h,!!(a&2));return Qu(T,r,l)}function qot(r){let a=new Map,l=new Map,_=new Map;for(let h of r.members)if(h.kind===176)for(let T of h.parameters)F_(T,h)&&!Ms(T.name)&&m(a,T.name,T.name.escapedText,3);else{let T=zs(h),N=h.name;if(!N)continue;let F=Di(N),U=F&&T?16:0,re=F?_:T?l:a,le=N&&mhe(N);if(le)switch(h.kind){case 177:m(re,N,le,1|U);break;case 178:m(re,N,le,2|U);break;case 172:m(re,N,le,3|U);break;case 174:m(re,N,le,8|U);break}}function m(h,T,N,F){let U=h.get(N);if(U)if((U&16)!==(F&16))je(T,d.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Qc(T));else{let re=!!(U&8),le=!!(F&8);re||le?re!==le&&je(T,d.Duplicate_identifier_0,Qc(T)):U&F&-17?je(T,d.Duplicate_identifier_0,Qc(T)):h.set(N,U|F)}else h.set(N,F)}}function Hot(r){for(let a of r.members){let l=a.name;if(zs(a)&&l){let m=mhe(l);switch(m){case"name":case"length":case"caller":case"arguments":if(ae)break;case"prototype":let h=d.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,T=Zm(fr(r));je(l,h,m,T);break}}}}function YNe(r){let a=new Map;for(let l of r.members)if(l.kind===171){let _,m=l.name;switch(m.kind){case 11:case 9:_=m.text;break;case 80:_=ur(m);break;default:continue}a.get(_)?(je(us(l.symbol.valueDeclaration),d.Duplicate_identifier_0,_),je(l.name,d.Duplicate_identifier_0,_)):a.set(_,!0)}}function Mge(r){if(r.kind===264){let l=fr(r);if(l.declarations&&l.declarations.length>0&&l.declarations[0]!==r)return}let a=HPe(fr(r));if(a?.declarations){let l=new Map;for(let _ of a.declarations)_.parameters.length===1&&_.parameters[0].type&&HS(li(_.parameters[0].type),m=>{let h=l.get(Xu(m));h?h.declarations.push(_):l.set(Xu(m),{type:m,declarations:[_]})});l.forEach(_=>{if(_.declarations.length>1)for(let m of _.declarations)je(m,d.Duplicate_index_signature_for_type_0,hn(_.type))})}}function ZNe(r){!Gg(r)&&!j_t(r)&&zZ(r.name),pj(r),Rge(r),Mr(r,64)&&r.kind===172&&r.initializer&&je(r,d.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,co(r.name))}function Got(r){return Di(r.name)&&je(r,d.Private_identifiers_are_not_allowed_outside_class_bodies),ZNe(r)}function $ot(r){g7e(r)||zZ(r.name),kc(r)&&r.asteriskToken&&Ie(r.name)&&ur(r.name)==="constructor"&&je(r.name,d.Class_constructor_may_not_be_a_generator),_Ie(r),Mr(r,64)&&r.kind===174&&r.body&&je(r,d.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,co(r.name)),Di(r.name)&&!Rl(r)&&je(r,d.Private_identifiers_are_not_allowed_outside_class_bodies),Rge(r)}function Rge(r){if(Di(r.name)&&ie<99){for(let a=Nm(r);a;a=Nm(a))Hr(a).flags|=1048576;if(Bl(r.parent)){let a=Lme(r.parent);a&&(Hr(r.name).flags|=32768,Hr(a).flags|=4096)}}}function Xot(r){Gg(r),vs(r,pa)}function Qot(r){SI(r),M_t(r)||R_t(r),pa(r.body);let a=fr(r),l=Zo(a,r.kind);if(r===l&&TZ(a),dc(r.body))return;n(m);return;function _(h){return ju(h)?!0:h.kind===172&&!zs(h)&&!!h.initializer}function m(){let h=r.parent;if(Vv(h)){Mme(r.parent,h);let T=Rme(h),N=cAe(r.body);if(N){if(T&&je(N,d.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!_e&&(ft(r.parent.members,_)||ft(r.parameters,U=>Mr(U,31))))if(!Yot(N,r.body))je(N,d.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let U;for(let re of r.body.statements){if(Il(re)&&x2(wc(re.expression))){U=re;break}if(KNe(re))break}U===void 0&&je(r,d.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else T||je(r,d.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Yot(r,a){let l=Gh(r.parent);return Il(l)&&l.parent===a}function KNe(r){return r.kind===108||r.kind===110?!0:pte(r)?!1:!!vs(r,KNe)}function eIe(r){Ie(r.name)&&ur(r.name)==="constructor"&&ei(r.parent)&&je(r.name,d.Class_constructor_may_not_be_an_accessor),n(a),pa(r.body),Rge(r);function a(){if(!JZ(r)&&!C_t(r)&&zZ(r.name),uj(r),SI(r),r.kind===177&&!(r.flags&33554432)&&fp(r.body)&&r.flags&512&&(r.flags&1024||je(r.name,d.A_get_accessor_must_return_a_value)),r.name.kind===167&&qg(r.name),t4(r)){let _=fr(r),m=Zo(_,177),h=Zo(_,178);if(m&&h&&!(y4(m)&1)){Hr(m).flags|=1;let T=Ju(m),N=Ju(h);(T&64)!==(N&64)&&(je(m.name,d.Accessors_must_both_be_abstract_or_non_abstract),je(h.name,d.Accessors_must_both_be_abstract_or_non_abstract)),(T&4&&!(N&6)||T&2&&!(N&2))&&(je(m.name,d.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),je(h.name,d.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}let l=ov(fr(r));r.kind===177&&Dge(r,l)}}function Zot(r){uj(r)}function Kot(r,a,l){return r.typeArguments&&l{let _=jge(r);_&&tIe(r,_)});let l=Hr(r).resolvedSymbol;l&&ft(l.declarations,_=>mC(_)&&!!(_.flags&536870912))&&Fg(ej(r),l.declarations,l.escapedName)}}function tct(r){let a=Ur(r.parent,B7);if(!a)return;let l=jge(a);if(!l)return;let _=Nu(l[a.typeArguments.indexOf(r)]);return _&&Vi(_,N_(l,SZ(a,l)))}function nct(r){rwe(r)}function rct(r){Qt(r.members,pa),n(a);function a(){let l=Uwe(r);AZ(l,l.symbol),Mge(r),YNe(r)}}function ict(r){pa(r.elementType)}function sct(r){let a=r.elements,l=!1,_=!1;for(let m of a){let h=Cde(m);if(h&8){let T=li(m.type);if(!F0(T)){je(m,d.A_rest_element_type_must_be_an_array_type);break}(cp(T)||va(T)&&T.target.combinedFlags&4)&&(_=!0)}else if(h&4){if(_){en(m,d.A_rest_element_cannot_follow_another_rest_element);break}_=!0}else if(h&2){if(_){en(m,d.An_optional_element_cannot_follow_a_rest_element);break}l=!0}else if(l){en(m,d.A_required_element_cannot_follow_an_optional_element);break}}Qt(r.elements,pa),li(r)}function act(r){Qt(r.types,pa),li(r)}function rIe(r,a){if(!(r.flags&8388608))return r;let l=r.objectType,_=r.indexType;if(da(_,sg(l,0)))return a.kind===212&&hg(a)&&Ir(l)&32&&ng(l)&1&&je(a,d.Index_signature_in_type_0_only_permits_reading,hn(l)),r;let m=o_(l);if(Ug(m,St)&&Ul(_,296))return r;if(qb(l)){let h=_Y(_,a);if(h){let T=HS(m,N=>Ks(N,h));if(T&&Uf(T)&6)return je(a,d.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Ci(h)),ot}}return je(a,d.Type_0_cannot_be_used_to_index_type_1,hn(_),hn(l)),ot}function oct(r){pa(r.objectType),pa(r.indexType),rIe(jwe(r),r)}function cct(r){lct(r),pa(r.typeParameter),pa(r.nameType),pa(r.type),r.type||yv(r,G);let a=Rde(r),l=P0(a);if(l)Qu(l,Nc,r.nameType);else{let _=Op(a);Qu(_,Nc,wk(r.typeParameter))}}function lct(r){var a;if((a=r.members)!=null&&a.length)return en(r.members[0],d.A_mapped_type_may_not_declare_properties_or_methods)}function uct(r){gY(r)}function _ct(r){D_t(r),pa(r.type)}function fct(r){vs(r,pa)}function pct(r){Fn(r,l=>l.parent&&l.parent.kind===194&&l.parent.extendsType===l)||en(r,d.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),pa(r.typeParameter);let a=fr(r.typeParameter);if(a.declarations&&a.declarations.length>1){let l=Ti(a);if(!l.typeParametersChecked){l.typeParametersChecked=!0;let _=MS(a),m=Lee(a,168);if(!IIe(m,[_],h=>[h])){let h=ci(a);for(let T of m)je(T.name,d.All_declarations_of_0_must_have_identical_constraints,h)}}}$y(r)}function dct(r){for(let a of r.templateSpans){pa(a.type);let l=li(a.type);Qu(l,to,a.type)}li(r)}function mct(r){pa(r.argument),r.attributes&&$C(r.attributes,en),nIe(r)}function gct(r){r.dotDotDotToken&&r.questionToken&&en(r,d.A_tuple_member_cannot_be_both_optional_and_rest),r.type.kind===190&&en(r.type,d.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),r.type.kind===191&&en(r.type,d.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),pa(r.type),li(r)}function lj(r){return(M_(r,2)||ju(r))&&!!(r.flags&33554432)}function xZ(r,a){let l=VZ(r);if(r.parent.kind!==264&&r.parent.kind!==263&&r.parent.kind!==231&&r.flags&33554432){let _=YJ(r);_&&_.flags&128&&!(l&128)&&!(Hd(r.parent)&&Pc(r.parent.parent)&&jd(r.parent.parent))&&(l|=32),l|=128}return l&a}function TZ(r){n(()=>hct(r))}function hct(r){function a(Ut,On){return On!==void 0&&On.parent===Ut[0].parent?On:Ut[0]}function l(Ut,On,kn,wn,vn){if((wn^vn)!==0){let bs=xZ(a(Ut,On),kn);Qt(Ut,ws=>{let ks=xZ(ws,kn)^bs;ks&32?je(us(ws),d.Overload_signatures_must_all_be_exported_or_non_exported):ks&128?je(us(ws),d.Overload_signatures_must_all_be_ambient_or_non_ambient):ks&6?je(us(ws)||ws,d.Overload_signatures_must_all_be_public_private_or_protected):ks&64&&je(us(ws),d.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function _(Ut,On,kn,wn){if(kn!==wn){let vn=xx(a(Ut,On));Qt(Ut,lr=>{xx(lr)!==vn&&je(us(lr),d.Overload_signatures_must_all_be_optional_or_required)})}}let m=230,h=0,T=m,N=!1,F=!0,U=!1,re,le,Te,Ne=r.declarations,st=(r.flags&16384)!==0;function Et(Ut){if(Ut.name&&dc(Ut.name))return;let On=!1,kn=vs(Ut.parent,vn=>{if(On)return vn;On=vn===Ut});if(kn&&kn.pos===Ut.end&&kn.kind===Ut.kind){let vn=kn.name||kn,lr=kn.name;if(Ut.name&&lr&&(Di(Ut.name)&&Di(lr)&&Ut.name.escapedText===lr.escapedText||Na(Ut.name)&&Na(lr)&&Dh(qg(Ut.name),qg(lr))||Jd(Ut.name)&&Jd(lr)&&fE(Ut.name)===fE(lr))){if((Ut.kind===174||Ut.kind===173)&&zs(Ut)!==zs(kn)){let ws=zs(Ut)?d.Function_overload_must_be_static:d.Function_overload_must_not_be_static;je(vn,ws)}return}if(fp(kn.body)){je(vn,d.Function_implementation_name_must_be_0,co(Ut.name));return}}let wn=Ut.name||Ut;st?je(wn,d.Constructor_implementation_is_missing):Mr(Ut,64)?je(wn,d.All_declarations_of_an_abstract_method_must_be_consecutive):je(wn,d.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Yt=!1,pn=!1,tr=!1,yn=[];if(Ne)for(let Ut of Ne){let On=Ut,kn=On.flags&33554432,wn=On.parent&&(On.parent.kind===264||On.parent.kind===187)||kn;if(wn&&(Te=void 0),(On.kind===263||On.kind===231)&&!kn&&(tr=!0),On.kind===262||On.kind===174||On.kind===173||On.kind===176){yn.push(On);let vn=xZ(On,m);h|=vn,T&=vn,N=N||xx(On),F=F&&xx(On);let lr=fp(On.body);lr&&re?st?pn=!0:Yt=!0:Te?.parent===On.parent&&Te.end!==On.pos&&Et(Te),lr?re||(re=On):U=!0,Te=On,wn||(le=On)}if(Qn(Ut)&&As(Ut)&&Ut.jsDoc){for(let vn of Ut.jsDoc)if(vn.tags)for(let lr of vn.tags)IC(lr)&&(U=!0)}}if(pn&&Qt(yn,Ut=>{je(Ut,d.Multiple_constructor_implementations_are_not_allowed)}),Yt&&Qt(yn,Ut=>{je(us(Ut)||Ut,d.Duplicate_function_implementation)}),tr&&!st&&r.flags&16&&Ne){let Ut=Fr(Ne,On=>On.kind===263).map(On=>vr(On,d.Consider_adding_a_declare_modifier_to_this_class));Qt(Ne,On=>{let kn=On.kind===263?d.Class_declaration_cannot_implement_overload_list_for_0:On.kind===262?d.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;kn&&ga(je(us(On)||On,kn,xc(r)),...Ut)})}if(le&&!le.body&&!Mr(le,64)&&!le.questionToken&&Et(le),U&&(Ne&&(l(Ne,re,m,h,T),_(Ne,re,N,F)),re)){let Ut=Wb(r),On=Lp(re);for(let kn of Ut)if(!znt(On,kn)){let wn=kn.declaration&&C1(kn.declaration)?kn.declaration.parent.tagName:kn.declaration;ga(je(wn,d.This_overload_signature_is_not_compatible_with_its_implementation_signature),vr(re,d.The_implementation_signature_is_declared_here));break}}}function xI(r){n(()=>yct(r))}function yct(r){let a=r.localSymbol;if(!a&&(a=fr(r),!a.exportSymbol)||Zo(a,r.kind)!==r)return;let l=0,_=0,m=0;for(let U of a.declarations){let re=F(U),le=xZ(U,2080);le&32?le&2048?m|=re:l|=re:_|=re}let h=l|_,T=l&_,N=m&h;if(T||N)for(let U of a.declarations){let re=F(U),le=us(U);re&N?je(le,d.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,co(le)):re&T&&je(le,d.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,co(le))}function F(U){let re=U;switch(re.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return lu(re)||fh(re)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:let le=re,Te=hc(le)?le.expression:le.right;if(!gc(Te))return 1;re=Te;case 271:case 274:case 273:let Ne=0,st=yl(fr(re));return Qt(st.declarations,Et=>{Ne|=F(Et)}),Ne;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return E.failBadSyntaxKind(re)}}}function qD(r,a,l,..._){let m=TI(r,a);return m&&KS(m,a,l,..._)}function TI(r,a,l){if(Ae(r))return;let _=r;if(_.promisedTypeOfPromise)return _.promisedTypeOfPromise;if(cv(r,yR(!1)))return _.promisedTypeOfPromise=vo(r)[0];if(aj(Ch(r),402915324))return;let m=q(r,"then");if(Ae(m))return;let h=m?Ps(m,0):Ve;if(h.length===0){a&&je(a,d.A_promise_must_have_a_then_method);return}let T,N;for(let re of h){let le=_v(re);le&&le!==Mi&&!um(r,le,Hm)?T=le:N=_n(N,re)}if(!N){E.assertIsDefined(T),l&&(l.value=T),a&&je(a,d.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,hn(r),hn(T));return}let F=jp(Jr(Kt(N,Tge)),2097152);if(Ae(F))return;let U=Ps(F,0);if(U.length===0){a&&je(a,d.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return _.promisedTypeOfPromise=Jr(Kt(U,Tge),2)}function kI(r,a,l,_,...m){return(a?KS(r,l,_,...m):L0(r,l,_,...m))||ot}function iIe(r){if(aj(Ch(r),402915324))return!1;let a=q(r,"then");return!!a&&Ps(jp(a,2097152),0).length>0}function kZ(r){var a;if(r.flags&16777216){let l=kde(!1);return!!l&&r.aliasSymbol===l&&((a=r.aliasTypeArguments)==null?void 0:a.length)===1}return!1}function HD(r){return r.flags&1048576?zo(r,HD):kZ(r)?r.aliasTypeArguments[0]:r}function sIe(r){if(Ae(r)||kZ(r))return!1;if(qb(r)){let a=a_(r);if(a?a.flags&3||Ph(a)||_m(a,iIe):oc(r,8650752))return!0}return!1}function vct(r){let a=kde(!0);if(a)return s4(a,[HD(r)])}function bct(r){if(sIe(r)){let a=vct(r);if(a)return a}return E.assert(kZ(r)||TI(r)===void 0,"type provided should not be a non-generic 'promise'-like."),r}function KS(r,a,l,..._){let m=L0(r,a,l,..._);return m&&bct(m)}function L0(r,a,l,..._){if(Ae(r)||kZ(r))return r;let m=r;if(m.awaitedTypeOfType)return m.awaitedTypeOfType;if(r.flags&1048576){if(em.lastIndexOf(r.id)>=0){a&&je(a,d.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}let N=a?U=>L0(U,a,l,..._):L0;em.push(r.id);let F=zo(r,N);return em.pop(),m.awaitedTypeOfType=F}if(sIe(r))return m.awaitedTypeOfType=r;let h={value:void 0},T=TI(r,void 0,h);if(T){if(r.id===T.id||em.lastIndexOf(T.id)>=0){a&&je(a,d.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}em.push(r.id);let N=L0(T,a,l,..._);return em.pop(),N?m.awaitedTypeOfType=N:void 0}if(iIe(r)){if(a){E.assertIsDefined(l);let N;h.value&&(N=ys(N,d.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,hn(r),hn(h.value))),N=ys(N,l,..._),Ra.add(nh(Mn(a),a,N))}return}return m.awaitedTypeOfType=r}function Sct(r,a,l){let _=li(a);if(ie>=2){if(tt(_))return;let h=yR(!0);if(h!==as&&!cv(_,h)){m(d.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,a,l,hn(L0(_)||Mi));return}}else{if(Tct(a),tt(_))return;let h=sw(a);if(h===void 0){m(d.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,l,hn(_));return}let T=yo(h,111551,!0),N=T?Vn(T):ot;if(tt(N)){h.kind===80&&h.escapedText==="Promise"&&K6(_)===yR(!1)?je(l,d.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):m(d.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,l,O_(h));return}let F=Yet(!0);if(F===Xs){m(d.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,a,l,O_(h));return}let U=d.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Qu(N,F,l,U,()=>a===l?void 0:ys(void 0,d.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;let le=h&&tf(h),Te=P_(r.locals,le.escapedText,111551);if(Te){je(Te.valueDeclaration,d.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,ur(le),O_(h));return}}kI(_,!1,r,d.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function m(h,T,N,F){if(T===N)je(N,h,F);else{let U=je(N,d.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ga(U,vr(T,h,F))}}}function xct(r){let a=p4(r);gZ(a,r);let l=Ua(a);if(l.flags&1)return;let _=Ege(r);if(!_?.resolvedReturnType)return;let m,h=_.resolvedReturnType;switch(r.parent.kind){case 263:case 231:m=d.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!Z){m=d.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:m=d.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:m=d.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return E.failBadSyntaxKind(r.parent)}Qu(l,h,r.expression,m)}function CI(r,a,l,_,m,h=l.length,T=0){let N=I.createFunctionTypeNode(void 0,Ve,I.createKeywordTypeNode(133));return Wg(N,r,a,l,_,m,h,T)}function Jge(r,a,l,_,m,h,T){let N=CI(r,a,l,_,m,h,T);return BS(N)}function aIe(r){return Jge(void 0,void 0,Ve,r)}function oIe(r){let a=Td("value",r);return Jge(void 0,void 0,[a],Mi)}function Tct(r){cIe(r&&sw(r),!1)}function cIe(r,a){if(!r)return;let l=tf(r),_=(r.kind===80?788968:1920)|2097152,m=bc(l,l.escapedText,_,void 0,void 0,!0);if(m&&m.flags&2097152){if(lt&&Ey(m)&&!wI(yl(m))&&!Kf(m))x0(m);else if(a&&pd(J)&&Ql(J)>=5&&!Ey(m)&&!ft(m.declarations,Nv)){let h=je(r,d.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),T=xr(m.declarations||Ve,$1);T&&ga(h,vr(T,d._0_was_imported_here,ur(l)))}}}function g4(r){let a=zge(r);a&&Y_(a)&&cIe(a,!0)}function zge(r){if(r)switch(r.kind){case 193:case 192:return lIe(r.types);case 194:return lIe([r.trueType,r.falseType]);case 196:case 202:return zge(r.type);case 183:return r.typeName}}function lIe(r){let a;for(let l of r){for(;l.kind===196||l.kind===202;)l=l.type;if(l.kind===146||!H&&(l.kind===201&&l.literal.kind===106||l.kind===157))continue;let _=zge(l);if(!_)return;if(a){if(!Ie(a)||!Ie(_)||a.escapedText!==_.escapedText)return}else a=_}return a}function CZ(r){let a=Xl(r);return fg(r)?tz(a):a}function uj(r){if(!G2(r)||!Vf(r)||!r.modifiers||!c5(Z,r,r.parent,r.parent.parent))return;let a=xr(r.modifiers,Zl);if(a){if(Z?(_l(a,8),r.kind===169&&_l(a,32)):ie<99&&(_l(a,8),Zc(r)?r.name?FIe(r)&&_l(a,8388608):_l(a,8388608):Bl(r)||(Di(r.name)&&(kc(r)||G0(r)||u_(r))&&_l(a,8388608),Na(r.name)&&_l(a,16777216))),J.emitDecoratorMetadata)switch(_l(a,16),r.kind){case 263:let l=yg(r);if(l)for(let T of l.parameters)g4(CZ(T));break;case 177:case 178:let _=r.kind===177?178:177,m=Zo(fr(r),_);g4(Xa(r)||m&&Xa(m));break;case 174:for(let T of r.parameters)g4(CZ(T));g4(yp(r));break;case 172:g4(Xl(r));break;case 169:g4(CZ(r));let h=r.parent;for(let T of h.parameters)g4(CZ(T));g4(yp(h));break}for(let l of r.modifiers)Zl(l)&&xct(l)}}function kct(r){n(a);function a(){_Ie(r),uhe(r),GD(r,r.name)}}function Cct(r){r.typeExpression||je(r.name,d.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),r.name&&XD(r.name,d.Type_alias_name_cannot_be_0),pa(r.typeExpression),gj(q0(r))}function Ect(r){pa(r.constraint);for(let a of r.typeParameters)pa(a)}function Dct(r){pa(r.typeExpression)}function Pct(r){pa(r.typeExpression);let a=D2(r);if(a){let l=gJ(a,uO);if(bn(l)>1)for(let _=1;_0),l.length>1&&je(l[1],d.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);let _=uIe(r.class.expression),m=Vv(a);if(m){let h=uIe(m.expression);h&&_.escapedText!==h.escapedText&&je(_,d.JSDoc_0_1_does_not_match_the_extends_2_clause,ur(r.tagName),ur(_),ur(h))}}function Mct(r){let a=Tx(r);a&&ju(a)&&je(r,d.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function uIe(r){switch(r.kind){case 80:return r;case 211:return r.name;default:return}}function _Ie(r){var a;uj(r),SI(r);let l=Sl(r);if(r.name&&r.name.kind===167&&qg(r.name),t4(r)){let h=fr(r),T=r.localSymbol||h,N=(a=T.declarations)==null?void 0:a.find(F=>F.kind===r.kind&&!(F.flags&524288));r===N&&TZ(T),h.parent&&TZ(h)}let _=r.kind===173?void 0:r.body;if(pa(_),Dge(r,r4(r)),n(m),Qn(r)){let h=a1(r);h&&h.typeExpression&&!qme(li(h.typeExpression),r)&&je(h.typeExpression.type,d.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function m(){yp(r)||(dc(_)&&!lj(r)&&yv(r,G),l&1&&fp(_)&&Ua(Lp(r)))}}function $y(r){n(a);function a(){let l=Mn(r),_=d0.get(l.path);_||(_=[],d0.set(l.path,_)),_.push(r)}}function fIe(r,a){for(let l of r)switch(l.kind){case 263:case 231:Rct(l,a),Vge(l,a);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:mIe(l,a);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:l.body&&mIe(l,a),Vge(l,a);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Vge(l,a);break;case 195:jct(l,a);break;default:E.assertNever(l,"Node should not have been registered for unused identifiers check")}}function pIe(r,a,l){let _=us(r)||r,m=mC(r)?d._0_is_declared_but_never_used:d._0_is_declared_but_its_value_is_never_read;l(r,0,vr(_,m,a))}function EI(r){return Ie(r)&&ur(r).charCodeAt(0)===95}function Rct(r,a){for(let l of r.members)switch(l.kind){case 174:case 172:case 177:case 178:if(l.kind===178&&l.symbol.flags&32768)break;let _=fr(l);!_.isReferenced&&(M_(l,2)||Ru(l)&&Di(l.name))&&!(l.flags&33554432)&&a(l,0,vr(l.name,d._0_is_declared_but_its_value_is_never_read,ci(_)));break;case 176:for(let m of l.parameters)!m.symbol.isReferenced&&Mr(m,2)&&a(m,0,vr(m.name,d.Property_0_is_declared_but_its_value_is_never_read,xc(m.symbol)));break;case 181:case 240:case 175:break;default:E.fail("Unexpected class member")}}function jct(r,a){let{typeParameter:l}=r;Wge(l)&&a(r,1,vr(r,d._0_is_declared_but_its_value_is_never_read,ur(l.name)))}function Vge(r,a){let l=fr(r).declarations;if(!l||Pa(l)!==r)return;let _=q0(r),m=new Set;for(let h of _){if(!Wge(h))continue;let T=ur(h.name),{parent:N}=h;if(N.kind!==195&&N.typeParameters.every(Wge)){if(Yy(m,N)){let F=Mn(N),U=hd(N)?aV(N):oV(F,N.typeParameters),le=N.typeParameters.length===1?[d._0_is_declared_but_its_value_is_never_read,T]:[d.All_type_parameters_are_unused];a(h,1,Nl(F,U.pos,U.end-U.pos,...le))}}else a(h,1,vr(h,d._0_is_declared_but_its_value_is_never_read,T))}}function Wge(r){return!(Ba(r.symbol).isReferenced&262144)&&!EI(r.name)}function _j(r,a,l,_){let m=String(_(a)),h=r.get(m);h?h[1].push(l):r.set(m,[a,[l]])}function dIe(r){return Ur(Fm(r),ms)}function Bct(r){return Ma(r)?Gp(r.parent)?!!(r.propertyName&&EI(r.name)):EI(r.name):lu(r)||(Ni(r)&&Ok(r.parent.parent)||gIe(r))&&EI(r.name)}function mIe(r,a){let l=new Map,_=new Map,m=new Map;r.locals.forEach(h=>{if(!(h.flags&262144?!(h.flags&3&&!(h.isReferenced&3)):h.isReferenced||h.exportSymbol)&&h.declarations){for(let T of h.declarations)if(!Bct(T))if(gIe(T))_j(l,zct(T),T,Va);else if(Ma(T)&&Gp(T.parent)){let N=Pa(T.parent.elements);(T===N||!Pa(T.parent.elements).dotDotDotToken)&&_j(_,T.parent,T,Va)}else if(Ni(T)){let N=i2(T)&7,F=us(T);(N!==4&&N!==6||!F||!EI(F))&&_j(m,T.parent,T,Va)}else{let N=h.valueDeclaration&&dIe(h.valueDeclaration),F=h.valueDeclaration&&us(h.valueDeclaration);N&&F?!F_(N,N.parent)&&!qv(N)&&!EI(F)&&(Ma(T)&&j2(T.parent)?_j(_,T.parent,T,Va):a(N,1,vr(F,d._0_is_declared_but_its_value_is_never_read,xc(h)))):pIe(T,xc(h),a)}}}),l.forEach(([h,T])=>{let N=h.parent;if((h.name?1:0)+(h.namedBindings?h.namedBindings.kind===274?1:h.namedBindings.elements.length:0)===T.length)a(N,0,T.length===1?vr(N,d._0_is_declared_but_its_value_is_never_read,ur(Da(T).name)):vr(N,d.All_imports_in_import_declaration_are_unused));else for(let U of T)pIe(U,ur(U.name),a)}),_.forEach(([h,T])=>{let N=dIe(h.parent)?1:0;if(h.elements.length===T.length)T.length===1&&h.parent.kind===260&&h.parent.parent.kind===261?_j(m,h.parent.parent,h.parent,Va):a(h,N,T.length===1?vr(h,d._0_is_declared_but_its_value_is_never_read,fj(Da(T).name)):vr(h,d.All_destructured_elements_are_unused));else for(let F of T)a(F,N,vr(F,d._0_is_declared_but_its_value_is_never_read,fj(F.name)))}),m.forEach(([h,T])=>{if(h.declarations.length===T.length)a(h,0,T.length===1?vr(Da(T).name,d._0_is_declared_but_its_value_is_never_read,fj(Da(T).name)):vr(h.parent.kind===243?h.parent:h,d.All_variables_are_unused));else for(let N of T)a(N,0,vr(N,d._0_is_declared_but_its_value_is_never_read,fj(N.name)))})}function Jct(){var r;for(let a of Cb)if(!((r=fr(a))!=null&&r.isReferenced)){let l=Dk(a);E.assert(Wv(l),"Only parameter declaration should be checked here");let _=vr(a.name,d._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,co(a.name),co(a.propertyName));l.type||ga(_,Nl(Mn(l),l.end,1,d.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,co(a.propertyName))),Ra.add(_)}}function fj(r){switch(r.kind){case 80:return ur(r);case 207:case 206:return fj(Vs(Da(r.elements),Ma).name);default:return E.assertNever(r)}}function gIe(r){return r.kind===273||r.kind===276||r.kind===274}function zct(r){return r.kind===273?r:r.kind===274?r.parent:r.parent.parent}function EZ(r){if(r.kind===241&&Fh(r),CJ(r)){let a=jt;Qt(r.statements,pa),jt=a}else Qt(r.statements,pa);r.locals&&$y(r)}function Vct(r){ie>=2||!FJ(r)||r.flags&33554432||dc(r.body)||Qt(r.parameters,a=>{a.name&&!Ms(a.name)&&a.name.escapedText===at.escapedName&&y0("noEmit",a,d.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function DI(r,a,l){if(a?.escapedText!==l||r.kind===172||r.kind===171||r.kind===174||r.kind===173||r.kind===177||r.kind===178||r.kind===303||r.flags&33554432||(Rm(r)||Kl(r)||E_(r))&&Nv(r))return!1;let _=Fm(r);return!(ms(_)&&dc(_.parent.body))}function Wct(r){Fn(r,a=>y4(a)&4?(r.kind!==80?je(us(r),d.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):je(r,d.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function Uct(r){Fn(r,a=>y4(a)&8?(r.kind!==80?je(us(r),d.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):je(r,d.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function qct(r,a){if(B>=5&&!(B>=100&&Mn(r).impliedNodeFormat===1)||!a||!DI(r,a,"require")&&!DI(r,a,"exports")||Pc(r)&&fh(r)!==1)return;let l=NS(r);l.kind===312&&K_(l)&&y0("noEmit",a,d.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,co(a),co(a))}function Hct(r,a){if(!a||ie>=4||!DI(r,a,"Promise")||Pc(r)&&fh(r)!==1)return;let l=NS(r);l.kind===312&&K_(l)&&l.flags&4096&&y0("noEmit",a,d.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,co(a),co(a))}function Gct(r,a){ie<=8&&(DI(r,a,"WeakMap")||DI(r,a,"WeakSet"))&&V1.push(r)}function $ct(r){let a=Nm(r);y4(a)&1048576&&(E.assert(Ru(r)&&Ie(r.name)&&typeof r.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),y0("noEmit",r,d.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,r.name.escapedText))}function Xct(r,a){a&&ie>=2&&ie<=8&&DI(r,a,"Reflect")&&m0.push(r)}function Qct(r){let a=!1;if(Bl(r)){for(let l of r.members)if(y4(l)&2097152){a=!0;break}}else if(uo(r))y4(r)&2097152&&(a=!0);else{let l=Nm(r);l&&y4(l)&2097152&&(a=!0)}a&&(E.assert(Ru(r)&&Ie(r.name),"The target of a Reflect collision check should be an identifier"),y0("noEmit",r,d.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,co(r.name),"Reflect"))}function GD(r,a){a&&(qct(r,a),Hct(r,a),Gct(r,a),Xct(r,a),ei(r)?(XD(a,d.Class_name_cannot_be_0),r.flags&33554432||klt(a)):T1(r)&&XD(a,d.Enum_name_cannot_be_0))}function Yct(r){if(i2(r)&7||Wv(r))return;let a=fr(r);if(a.flags&1){if(!Ie(r.name))return E.fail();let l=bc(r,r.name.escapedText,3,void 0,void 0,!1);if(l&&l!==a&&l.flags&2&&Kme(l)&7){let _=f1(l.valueDeclaration,261),m=_.parent.kind===243&&_.parent.parent?_.parent.parent:void 0;if(!(m&&(m.kind===241&&As(m.parent)||m.kind===268||m.kind===267||m.kind===312))){let T=ci(l);je(r,d.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,T,T)}}}}function PI(r){return r===vt?G:r===Vc?pc:r}function pj(r){var a;if(uj(r),Ma(r)||pa(r.type),!r.name)return;if(r.name.kind===167&&(qg(r.name),y2(r)&&r.initializer&&Gc(r.initializer)),Ma(r)){if(r.propertyName&&Ie(r.name)&&Wv(r)&&dc(yf(r).body)){Cb.push(r);return}Gp(r.parent)&&r.dotDotDotToken&&ie<5&&_l(r,4),r.propertyName&&r.propertyName.kind===167&&qg(r.propertyName);let m=r.parent.parent,h=r.dotDotDotToken?32:0,T=Nt(m,h),N=r.propertyName||r.name;if(T&&!Ms(N)){let F=N0(N);if(Sp(F)){let U=xp(F),re=Ks(T,U);re&&(XR(re,void 0,!1),tge(r,!!m.initializer&&m.initializer.kind===108,!1,T,re))}}}if(Ms(r.name)&&(r.name.kind===207&&ie<2&&J.downlevelIteration&&_l(r,512),Qt(r.name.elements,pa)),r.initializer&&Wv(r)&&dc(yf(r).body)){je(r,d.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Ms(r.name)){if(Eme(r))return;let m=y2(r)&&r.initializer&&r.parent.parent.kind!==249,h=!ft(r.name.elements,qI(xl));if(m||h){let T=v(r);if(m){let N=Gc(r.initializer);H&&h?BAe(N,r):Uy(N,v(r),r,r.initializer)}h&&(j2(r.name)?M0(65,T,j,r):H&&BAe(T,r))}return}let l=fr(r);if(l.flags&2097152&&(Bv(r)||hte(r))){NZ(r);return}let _=PI(Vn(l));if(r===l.valueDeclaration){let m=y2(r)&&lw(r);if(m&&!(Qn(r)&&xa(m)&&(m.properties.length===0||ny(r.name))&&!!((a=l.exports)!=null&&a.size))&&r.parent.parent.kind!==249){let T=Gc(m);Uy(T,_,r,m,void 0);let N=i2(r)&7;if(N===6){let F=att(!0),U=fwe(!0);if(F!==Xs&&U!==Xs){let re=Jr([F,U,De,j]);Qu(T,re,m,d.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(N===4){let F=fwe(!0);if(F!==Xs){let U=Jr([F,De,j]);Qu(T,U,m,d.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}l.declarations&&l.declarations.length>1&&ft(l.declarations,h=>h!==r&&Uk(h)&&!yIe(h,r))&&je(r.name,d.All_declarations_of_0_must_have_identical_modifiers,co(r.name))}else{let m=PI(v(r));!tt(_)&&!tt(m)&&!Dh(_,m)&&!(l.flags&67108864)&&hIe(l.valueDeclaration,_,r,m),y2(r)&&r.initializer&&Uy(Gc(r.initializer),m,r,r.initializer,void 0),l.valueDeclaration&&!yIe(r,l.valueDeclaration)&&je(r.name,d.All_declarations_of_0_must_have_identical_modifiers,co(r.name))}r.kind!==172&&r.kind!==171&&(xI(r),(r.kind===260||r.kind===208)&&Yct(r),GD(r,r.name))}function hIe(r,a,l,_){let m=us(l),h=l.kind===172||l.kind===171?d.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:d.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,T=co(m),N=je(m,h,T,hn(a),hn(_));r&&ga(N,vr(r,d._0_was_also_declared_here,T))}function yIe(r,a){if(r.kind===169&&a.kind===260||r.kind===260&&a.kind===169)return!0;if(xx(r)!==xx(a))return!1;let l=1358;return Px(r,l)===Px(a,l)}function Zct(r){var a,l;(a=Wn)==null||a.push(Wn.Phase.Check,"checkVariableDeclaration",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath}),I_t(r),pj(r),(l=Wn)==null||l.pop()}function Kct(r){return w_t(r),pj(r)}function DZ(r){let a=Wh(r)&7;(a===4||a===6)&&_l(r,33554432),Qt(r.declarations,pa)}function elt(r){!Gg(r)&&!phe(r.declarationList)&&F_t(r),DZ(r.declarationList)}function tlt(r){Fh(r),$i(r.expression)}function nlt(r){Fh(r);let a=$D(r.expression);Uge(r.expression,a,r.thenStatement),pa(r.thenStatement),r.thenStatement.kind===242&&je(r.thenStatement,d.The_body_of_an_if_statement_cannot_be_the_empty_statement),pa(r.elseStatement)}function Uge(r,a,l){if(!H)return;_(r,l);function _(h,T){for(h=eo(h),m(h,T);Yn(h)&&(h.operatorToken.kind===57||h.operatorToken.kind===61);)h=eo(h.left),m(h,T)}function m(h,T){let N=Lw(h)?eo(h.right):h;if(gg(N))return;if(Lw(N)){_(N,T);return}let F=N===h?a:$D(N),U=Cr(N)&&VNe(N.expression);if(!Rp(F,4194304)||U)return;let re=Ps(F,0),le=!!qD(F);if(re.length===0&&!le)return;let Te=Ie(N)?N:Cr(N)?N.name:void 0,Ne=Te&&ad(Te);if(!Ne&&!le)return;Ne&&Yn(h.parent)&&ilt(h.parent,Ne)||Ne&&T&&rlt(h,T,Te,Ne)||(le?Hu(N,!0,d.This_condition_will_always_return_true_since_this_0_is_always_defined,C0(F)):je(N,d.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function rlt(r,a,l,_){return!!vs(a,function m(h){if(Ie(h)){let T=ad(h);if(T&&T===_){if(Ie(r)||Ie(l)&&Yn(l.parent))return!0;let N=l.parent,F=h.parent;for(;N&&F;){if(Ie(N)&&Ie(F)||N.kind===110&&F.kind===110)return ad(N)===ad(F);if(Cr(N)&&Cr(F)){if(ad(N.name)!==ad(F.name))return!1;F=F.expression,N=N.expression}else if(Ws(N)&&Ws(F))F=F.expression,N=N.expression;else return!1}}}return vs(h,m)})}function ilt(r,a){for(;Yn(r)&&r.operatorToken.kind===56;){if(vs(r.right,function _(m){if(Ie(m)){let h=ad(m);if(h&&h===a)return!0}return vs(m,_)}))return!0;r=r.parent}return!1}function slt(r){Fh(r),pa(r.statement),$D(r.expression)}function alt(r){Fh(r),$D(r.expression),pa(r.statement)}function qge(r,a){return r.flags&16384&&je(a,d.An_expression_of_type_void_cannot_be_tested_for_truthiness),r}function $D(r,a){return qge($i(r,a),r)}function olt(r){Fh(r)||r.initializer&&r.initializer.kind===261&&phe(r.initializer),r.initializer&&(r.initializer.kind===261?DZ(r.initializer):$i(r.initializer)),r.condition&&$D(r.condition),r.incrementor&&$i(r.incrementor),pa(r.statement),r.locals&&$y(r)}function clt(r){m7e(r);let a=r5(r);if(r.awaitModifier?a&&rc(a)?en(r.awaitModifier,d.for_await_loops_cannot_be_used_inside_a_class_static_block):(Sl(a)&6)===2&&ie<99&&_l(r,16384):J.downlevelIteration&&ie<2&&_l(r,256),r.initializer.kind===261)DZ(r.initializer);else{let l=r.initializer,_=dj(r);if(l.kind===209||l.kind===210)ZS(l,_||ot);else{let m=$i(l);vI(l,d.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,d.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),_&&Uy(_,m,l,r.expression)}}pa(r.statement),r.locals&&$y(r)}function llt(r){m7e(r);let a=nge($i(r.expression));if(r.initializer.kind===261){let l=r.initializer.declarations[0];l&&Ms(l.name)&&je(l.name,d.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),DZ(r.initializer)}else{let l=r.initializer,_=$i(l);l.kind===209||l.kind===210?je(l,d.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):da(Htt(a),_)?vI(l,d.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,d.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):je(l,d.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(a===wr||!Ul(a,126091264))&&je(r.expression,d.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,hn(a)),pa(r.statement),r.locals&&$y(r)}function dj(r){let a=r.awaitModifier?15:13;return M0(a,_4(r.expression),j,r.expression)}function M0(r,a,l,_){return Ae(a)?a:Hge(r,a,l,_,!0)||G}function Hge(r,a,l,_,m){let h=(r&2)!==0;if(a===wr){Yge(_,a,h);return}let T=ie>=2,N=!T&&J.downlevelIteration,F=J.noUncheckedIndexedAccess&&!!(r&128);if(T||N||h){let st=wZ(a,r,T?_:void 0);if(m&&st){let Et=r&8?d.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:r&32?d.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:r&64?d.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:r&16?d.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;Et&&Qu(l,st.nextType,_,Et)}if(st||T)return F?_I(st&&st.yieldType):st&&st.yieldType}let U=a,re=!1,le=!1;if(r&4){if(U.flags&1048576){let st=a.types,Et=Fr(st,Yt=>!(Yt.flags&402653316));Et!==st&&(U=Jr(Et,2))}else U.flags&402653316&&(U=wr);if(le=U!==a,le&&(ie<1&&_&&(je(_,d.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),re=!0),U.flags&131072))return F?_I(Fe):Fe}if(!F0(U)){if(_&&!re){let st=!!(r&4)&&!le,[Et,Yt]=Ne(st,N);Hu(_,Yt&&!!qD(U),Et,hn(U))}return le?F?_I(Fe):Fe:void 0}let Te=uv(U,St);if(le&&Te)return Te.flags&402653316&&!J.noUncheckedIndexedAccess?Fe:Jr(F?[Te,Fe,j]:[Te,Fe],2);return r&128?_I(Te):Te;function Ne(st,Et){var Yt;return Et?st?[d.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[d.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Gge(r,0,a,void 0)?[d.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:ult((Yt=a.symbol)==null?void 0:Yt.escapedName)?[d.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:st?[d.Type_0_is_not_an_array_type_or_a_string_type,!0]:[d.Type_0_is_not_an_array_type,!0]}}function ult(r){switch(r){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Gge(r,a,l,_){if(Ae(l))return;let m=wZ(l,r,_);return m&&m[Jbe(a)]}function R0(r=wr,a=wr,l=ln){if(r.flags&67359327&&a.flags&180227&&l.flags&180227){let _=Mp([r,a,l]),m=pi.get(_);return m||(m={yieldType:r,returnType:a,nextType:l},pi.set(_,m)),m}return{yieldType:r,returnType:a,nextType:l}}function vIe(r){let a,l,_;for(let m of r)if(!(m===void 0||m===Dr)){if(m===Ea)return Ea;a=_n(a,m.yieldType),l=_n(l,m.returnType),_=_n(_,m.nextType)}return a||l||_?R0(a&&Jr(a),l&&Jr(l),_&&ya(_)):Dr}function PZ(r,a){return r[a]}function Hg(r,a,l){return r[a]=l}function wZ(r,a,l){var _,m;if(Ae(r))return Ea;if(!(r.flags&1048576)){let U=l?{errors:void 0}:void 0,re=bIe(r,a,l,U);if(re===Dr){if(l){let le=Yge(l,r,!!(a&2));U?.errors&&ga(le,...U.errors)}return}else if((_=U?.errors)!=null&&_.length)for(let le of U.errors)Ra.add(le);return re}let h=a&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",T=PZ(r,h);if(T)return T===Dr?void 0:T;let N;for(let U of r.types){let re=l?{errors:void 0}:void 0,le=bIe(U,a,l,re);if(le===Dr){if(l){let Te=Yge(l,r,!!(a&2));re?.errors&&ga(Te,...re.errors)}Hg(r,h,Dr);return}else if((m=re?.errors)!=null&&m.length)for(let Te of re.errors)Ra.add(Te);N=_n(N,le)}let F=N?vIe(N):Dr;return Hg(r,h,F),F===Dr?void 0:F}function $ge(r,a){if(r===Dr)return Dr;if(r===Ea)return Ea;let{yieldType:l,returnType:_,nextType:m}=r;return a&&kde(!0),R0(KS(l,a)||G,KS(_,a)||G,m)}function bIe(r,a,l,_){if(Ae(r))return Ea;let m=!1;if(a&2){let h=Xge(r,_o)||xIe(r,_o);if(h)if(h===Dr&&l)m=!0;else return a&8?$ge(h,l):h}if(a&1){let h=Xge(r,ul)||xIe(r,ul);if(h)if(h===Dr&&l)m=!0;else if(a&2){if(h!==Dr)return h=$ge(h,l),m?h:Hg(r,"iterationTypesOfAsyncIterable",h)}else return h}if(a&2){let h=Qge(r,_o,l,_,m);if(h!==Dr)return h}if(a&1){let h=Qge(r,ul,l,_,m);if(h!==Dr)return a&2?(h=$ge(h,l),m?h:Hg(r,"iterationTypesOfAsyncIterable",h)):h}return Dr}function Xge(r,a){return PZ(r,a.iterableCacheKey)}function SIe(r,a){let l=Xge(r,a)||Qge(r,a,void 0,void 0,!1);return l===Dr?ll:l}function xIe(r,a){let l;if(cv(r,l=a.getGlobalIterableType(!1))||cv(r,l=a.getGlobalIterableIteratorType(!1))){let[_]=vo(r),{returnType:m,nextType:h}=SIe(l,a);return Hg(r,a.iterableCacheKey,R0(a.resolveIterationType(_,void 0)||_,a.resolveIterationType(m,void 0)||m,h))}if(cv(r,a.getGlobalGeneratorType(!1))){let[_,m,h]=vo(r);return Hg(r,a.iterableCacheKey,R0(a.resolveIterationType(_,void 0)||_,a.resolveIterationType(m,void 0)||m,h))}}function TIe(r){let a=lwe(!1),l=a&&q(Vn(a),Yo(r));return l&&Sp(l)?xp(l):`__@${r}`}function Qge(r,a,l,_,m){let h=Ks(r,TIe(a.iteratorSymbolName)),T=h&&!(h.flags&16777216)?Vn(h):void 0;if(Ae(T))return m?Ea:Hg(r,a.iterableCacheKey,Ea);let N=T?Ps(T,0):void 0;if(!ft(N))return m?Dr:Hg(r,a.iterableCacheKey,Dr);let F=ya(Kt(N,Ua)),U=kIe(F,a,l,_,m)??Dr;return m?U:Hg(r,a.iterableCacheKey,U)}function Yge(r,a,l){let _=l?d.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:d.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,m=!!qD(a)||!l&&y8(r.parent)&&r.parent.expression===r&&uY(!1)!==as&&da(a,uY(!1));return Hu(r,m,_,hn(a))}function _lt(r,a,l,_){return kIe(r,a,l,_,!1)}function kIe(r,a,l,_,m){if(Ae(r))return Ea;let h=CIe(r,a)||flt(r,a);return h===Dr&&l&&(h=void 0,m=!0),h??(h=DIe(r,a,l,_,m)),h===Dr?void 0:h}function CIe(r,a){return PZ(r,a.iteratorCacheKey)}function flt(r,a){let l=a.getGlobalIterableIteratorType(!1);if(cv(r,l)){let[_]=vo(r),m=CIe(l,a)||DIe(l,a,void 0,void 0,!1),{returnType:h,nextType:T}=m===Dr?ll:m;return Hg(r,a.iteratorCacheKey,R0(_,h,T))}if(cv(r,a.getGlobalIteratorType(!1))||cv(r,a.getGlobalGeneratorType(!1))){let[_,m,h]=vo(r);return Hg(r,a.iteratorCacheKey,R0(_,m,h))}}function EIe(r,a){let l=q(r,"done")||Wt;return da(a===0?Wt:nr,l)}function plt(r){return EIe(r,0)}function dlt(r){return EIe(r,1)}function mlt(r){if(Ae(r))return Ea;let a=PZ(r,"iterationTypesOfIteratorResult");if(a)return a;if(cv(r,itt(!1))){let T=vo(r)[0];return Hg(r,"iterationTypesOfIteratorResult",R0(T,void 0,void 0))}if(cv(r,stt(!1))){let T=vo(r)[0];return Hg(r,"iterationTypesOfIteratorResult",R0(void 0,T,void 0))}let l=Hc(r,plt),_=l!==wr?q(l,"value"):void 0,m=Hc(r,dlt),h=m!==wr?q(m,"value"):void 0;return!_&&!h?Hg(r,"iterationTypesOfIteratorResult",Dr):Hg(r,"iterationTypesOfIteratorResult",R0(_,h||Mi,void 0))}function Zge(r,a,l,_,m){var h,T,N,F;let U=Ks(r,l);if(!U&&l!=="next")return;let re=U&&!(l==="next"&&U.flags&16777216)?l==="next"?Vn(U):jp(Vn(U),2097152):void 0;if(Ae(re))return l==="next"?Ea:yc;let le=re?Ps(re,0):Ve;if(le.length===0){if(_){let Ut=l==="next"?a.mustHaveANextMethodDiagnostic:a.mustBeAMethodDiagnostic;m?(m.errors??(m.errors=[]),m.errors.push(vr(_,Ut,l))):je(_,Ut,l)}return l==="next"?Dr:void 0}if(re?.symbol&&le.length===1){let Ut=a.getGlobalGeneratorType(!1),On=a.getGlobalIteratorType(!1),kn=((T=(h=Ut.symbol)==null?void 0:h.members)==null?void 0:T.get(l))===re.symbol,wn=!kn&&((F=(N=On.symbol)==null?void 0:N.members)==null?void 0:F.get(l))===re.symbol;if(kn||wn){let vn=kn?Ut:On,{mapper:lr}=re;return R0(Vy(vn.typeParameters[0],lr),Vy(vn.typeParameters[1],lr),l==="next"?Vy(vn.typeParameters[2],lr):void 0)}}let Te,Ne;for(let Ut of le)l!=="throw"&&ft(Ut.parameters)&&(Te=_n(Te,Nd(Ut,0))),Ne=_n(Ne,Ua(Ut));let st,Et;if(l!=="throw"){let Ut=Te?Jr(Te):ln;if(l==="next")Et=Ut;else if(l==="return"){let On=a.resolveIterationType(Ut,_)||G;st=_n(st,On)}}let Yt,pn=Ne?ya(Ne):wr,tr=a.resolveIterationType(pn,_)||G,yn=mlt(tr);return yn===Dr?(_&&(m?(m.errors??(m.errors=[]),m.errors.push(vr(_,a.mustHaveAValueDiagnostic,l))):je(_,a.mustHaveAValueDiagnostic,l)),Yt=G,st=_n(st,G)):(Yt=yn.yieldType,st=_n(st,yn.returnType)),R0(Yt,Jr(st),Et)}function DIe(r,a,l,_,m){let h=vIe([Zge(r,a,"next",l,_),Zge(r,a,"return",l,_),Zge(r,a,"throw",l,_)]);return m?h:Hg(r,a.iteratorCacheKey,h)}function t2(r,a,l){if(Ae(a))return;let _=PIe(a,l);return _&&_[Jbe(r)]}function PIe(r,a){if(Ae(r))return Ea;let l=a?2:1,_=a?_o:ul;return wZ(r,l,void 0)||_lt(r,_,void 0,void 0)}function glt(r){Fh(r)||P_t(r)}function mj(r,a){let l=!!(a&1),_=!!(a&2);if(l){let m=t2(1,r,_);return m?_?L0(HD(m)):m:ot}return _?L0(r)||ot:r}function wIe(r,a){let l=mj(a,Sl(r));return!!(l&&(oc(l,16384)||l.flags&32769))}function hlt(r){if(Fh(r))return;let a=r5(r);if(a&&rc(a)){ql(r,d.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!a){ql(r,d.A_return_statement_can_only_be_used_within_a_function_body);return}let l=Lp(a),_=Ua(l),m=Sl(a);if(H||r.expression||_.flags&131072){let h=r.expression?Gc(r.expression):j;if(a.kind===178)r.expression&&je(r,d.Setters_cannot_return_a_value);else if(a.kind===176)r.expression&&!Uy(h,_,r,r.expression)&&je(r,d.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(r4(a)){let T=mj(_,m)??_,N=m&2?kI(h,!1,r,d.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):h;T&&Uy(N,T,r,r.expression)}}else a.kind!==176&&J.noImplicitReturns&&!wIe(a,_)&&je(r,d.Not_all_code_paths_return_a_value)}function ylt(r){Fh(r)||r.flags&65536&&ql(r,d.with_statements_are_not_allowed_in_an_async_function_block),$i(r.expression);let a=Mn(r);if(!n2(a)){let l=Im(a,r.pos).start,_=r.statement.pos;r2(a,l,_-l,d.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function vlt(r){Fh(r);let a,l=!1,_=$i(r.expression);Qt(r.caseBlock.clauses,m=>{m.kind===297&&!l&&(a===void 0?a=m:(en(m,d.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),l=!0)),m.kind===296&&n(h(m)),Qt(m.statements,pa),J.noFallthroughCasesInSwitch&&m.fallthroughFlowNode&&jR(m.fallthroughFlowNode)&&je(m,d.Fallthrough_case_in_switch);function h(T){return()=>{let N=$i(T.expression);Nge(_,N)||a8e(N,_,T.expression,void 0)}}}),r.caseBlock.locals&&$y(r.caseBlock)}function blt(r){Fh(r)||Fn(r.parent,a=>As(a)?"quit":a.kind===256&&a.label.escapedText===r.label.escapedText?(en(r.label,d.Duplicate_label_0,Qc(r.label)),!0):!1),pa(r.statement)}function Slt(r){Fh(r)||Ie(r.expression)&&!r.expression.escapedText&&W_t(r,d.Line_break_not_permitted_here),r.expression&&$i(r.expression)}function xlt(r){Fh(r),EZ(r.tryBlock);let a=r.catchClause;if(a){if(a.variableDeclaration){let l=a.variableDeclaration;pj(l);let _=Xl(l);if(_){let m=li(_);m&&!(m.flags&3)&&ql(_,d.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(l.initializer)ql(l.initializer,d.Catch_clause_variable_cannot_have_an_initializer);else{let m=a.block.locals;m&&pg(a.locals,h=>{let T=m.get(h);T?.valueDeclaration&&T.flags&2&&en(T.valueDeclaration,d.Cannot_redeclare_identifier_0_in_catch_clause,Ci(h))})}}EZ(a.block)}r.finallyBlock&&EZ(r.finallyBlock)}function AZ(r,a,l){let _=$u(r);if(_.length===0)return;for(let h of My(r))l&&h.flags&4194304||AIe(r,h,wD(h,8576,!0),Oy(h));let m=a.valueDeclaration;if(m&&ei(m)){for(let h of m.members)if(!zs(h)&&!t4(h)){let T=fr(h);AIe(r,T,su(h.name.expression),Oy(T))}}if(_.length>1)for(let h of _)Tlt(r,h)}function AIe(r,a,l,_){let m=a.valueDeclaration,h=us(m);if(h&&Di(h))return;let T=_de(r,l),N=Ir(r)&2?Zo(r.symbol,264):void 0,F=m&&m.kind===226||h&&h.kind===167?m:void 0,U=v_(a)===r.symbol?m:void 0;for(let re of T){let le=re.declaration&&v_(fr(re.declaration))===r.symbol?re.declaration:void 0,Te=U||le||(N&&!ft(il(r),Ne=>!!lv(Ne,a.escapedName)&&!!uv(Ne,re.keyType))?N:void 0);if(Te&&!da(_,re.type)){let Ne=Ig(Te,d.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,ci(a),hn(_),hn(re.keyType),hn(re.type));F&&Te!==F&&ga(Ne,vr(F,d._0_is_declared_here,ci(a))),Ra.add(Ne)}}}function Tlt(r,a){let l=a.declaration,_=_de(r,a.keyType),m=Ir(r)&2?Zo(r.symbol,264):void 0,h=l&&v_(fr(l))===r.symbol?l:void 0;for(let T of _){if(T===a)continue;let N=T.declaration&&v_(fr(T.declaration))===r.symbol?T.declaration:void 0,F=h||N||(m&&!ft(il(r),U=>!!Ug(U,a.keyType)&&!!uv(U,T.keyType))?m:void 0);F&&!da(a.type,T.type)&&je(F,d._0_index_type_1_is_not_assignable_to_2_index_type_3,hn(a.keyType),hn(a.type),hn(T.keyType),hn(T.type))}}function XD(r,a){switch(r.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":je(r,a,r.escapedText)}}function klt(r){ie>=1&&r.escapedText==="Object"&&(B<5||Mn(r).impliedNodeFormat===1)&&je(r,d.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,N4[B])}function Clt(r){let a=Fr(c1(r),gd);if(!bn(a))return;let l=Qn(r),_=new Set,m=new Set;if(Qt(r.parameters,({name:T},N)=>{Ie(T)&&_.add(T.escapedText),Ms(T)&&m.add(N)}),pde(r)){let T=a.length-1,N=a[T];l&&N&&Ie(N.name)&&N.typeExpression&&N.typeExpression.type&&!_.has(N.name.escapedText)&&!m.has(T)&&!cp(li(N.typeExpression.type))&&je(N.name,d.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,ur(N.name))}else Qt(a,({name:T,isNameFirst:N},F)=>{m.has(F)||Ie(T)&&_.has(T.escapedText)||(k_(T)?l&&je(T,d.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,O_(T),O_(T.left)):N||Yf(l,T,d.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,ur(T)))})}function gj(r){let a=!1;if(r)for(let _=0;_{_.default?(a=!0,Elt(_.default,r,m)):a&&je(_,d.Required_type_parameters_may_not_follow_optional_type_parameters);for(let h=0;h_)return!1;for(let F=0;FYc(l)&&ju(l))&&en(a,d.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!r.name&&!Mr(r,2048)&&ql(r,d.A_class_declaration_without_the_default_modifier_must_have_a_name),OIe(r),Qt(r.members,pa),$y(r)}function OIe(r){p_t(r),uj(r),GD(r,r.name),gj(q0(r)),xI(r);let a=fr(r),l=wo(a),_=uf(l),m=Vn(a);NIe(a),TZ(a),qot(r),!!(r.flags&33554432)||Hot(r);let T=Bd(r);if(T){Qt(T.typeArguments,pa),ie<2&&_l(T.parent,1);let U=Vv(r);U&&U!==T&&$i(U.expression);let re=il(l);re.length&&n(()=>{let le=re[0],Te=rl(l),Ne=o_(Te);if(Ilt(Ne,T),pa(T.expression),ft(T.typeArguments)){Qt(T.typeArguments,pa);for(let Et of Oa(Ne,T.typeArguments,T))if(!tIe(T,Et.typeParameters))break}let st=uf(le,l.thisType);if(Qu(_,st,void 0)?Qu(m,Kwe(Ne),r.name||r,d.Class_static_side_0_incorrectly_extends_base_class_static_side_1):RIe(r,_,st,d.Class_0_incorrectly_extends_base_class_1),Te.flags&8650752&&(Pr(m)?Ps(Te,1).some(Yt=>Yt.flags&4)&&!Mr(r,64)&&je(r.name||r,d.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):je(r.name||r,d.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(Ne.symbol&&Ne.symbol.flags&32)&&!(Te.flags&8650752)){let Et=oo(Ne,T.typeArguments,T);Qt(Et,Yt=>!dm(Yt.declaration)&&!Dh(Ua(Yt),le))&&je(T.expression,d.Base_constructors_must_all_have_the_same_return_type)}Llt(l,le)})}Nlt(r,l,_,m);let N=tC(r);if(N)for(let U of N)(!gc(U.expression)||Tu(U.expression))&&je(U.expression,d.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Bge(U),n(F(U));n(()=>{AZ(l,a),AZ(m,a,!0),Mge(r),jlt(r)});function F(U){return()=>{let re=Dd(li(U));if(!tt(re))if(LS(re)){let le=re.symbol&&re.symbol.flags&32?d.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:d.Class_0_incorrectly_implements_interface_1,Te=uf(re,l.thisType);Qu(_,Te,void 0)||RIe(r,_,Te,le)}else je(U,d.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Nlt(r,a,l,_){let h=Bd(r)&&il(a),T=h?.length?uf(Da(h),a.thisType):void 0,N=rl(a);for(let F of r.members)Oz(F)||(Cc(F)&&Qt(F.parameters,U=>{F_(U,F)&&LIe(r,_,N,T,a,l,U,!0)}),LIe(r,_,N,T,a,l,F,!1))}function LIe(r,a,l,_,m,h,T,N,F=!0){let U=T.name&&ad(T.name)||ad(T);return U?MIe(r,a,l,_,m,h,F5(T),Gv(T),zs(T),N,xc(U),F?T:void 0):0}function MIe(r,a,l,_,m,h,T,N,F,U,re,le){let Te=Qn(r),Ne=!!(r.flags&33554432);if(_&&(T||J.noImplicitOverride)){let st=Yo(re),Et=F?a:h,Yt=F?l:_,pn=Ks(Et,st),tr=Ks(Yt,st),yn=hn(_);if(pn&&!tr&&T){if(le){let Ut=GAe(re,Yt);Ut?je(le,Te?d.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:d.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,yn,ci(Ut)):je(le,Te?d.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:d.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,yn)}return 2}else if(pn&&tr?.declarations&&J.noImplicitOverride&&!Ne){let Ut=ft(tr.declarations,Gv);if(T)return 0;if(Ut){if(N&&Ut)return le&&je(le,d.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,yn),1}else{if(le){let On=U?Te?d.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:d.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Te?d.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:d.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;je(le,On,yn)}return 1}}}else if(T){if(le){let st=hn(m);je(le,Te?d.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:d.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,st)}return 2}return 0}function RIe(r,a,l,_){let m=!1;for(let h of r.members){if(zs(h))continue;let T=h.name&&ad(h.name)||ad(h);if(T){let N=Ks(a,T.escapedName),F=Ks(l,T.escapedName);if(N&&F){let U=()=>ys(void 0,d.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,ci(T),hn(a),hn(l));Qu(Vn(N),Vn(F),h.name||h,void 0,U)||(m=!0)}}}m||Qu(a,l,r.name||r,_)}function Ilt(r,a){let l=Ps(r,1);if(l.length){let _=l[0].declaration;if(_&&M_(_,2)){let m=ah(r.symbol);ihe(a,m)||je(a,d.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,Np(r.symbol))}}}function Flt(r,a,l){if(!a.name)return 0;let _=fr(r),m=wo(_),h=uf(m),T=Vn(_),F=Bd(r)&&il(m),U=F?.length?uf(Da(F),m.thisType):void 0,re=rl(m),le=a.parent?F5(a):Mr(a,16);return MIe(r,T,re,U,m,h,le,Gv(a),zs(a),!1,xc(l))}function h4(r){return lc(r)&1?r.links.target:r}function Olt(r){return Fr(r.declarations,a=>a.kind===263||a.kind===264)}function Llt(r,a){var l,_,m,h;let T=Qa(a),N;e:for(let F of T){let U=h4(F);if(U.flags&4194304)continue;let re=lv(r,U.escapedName);if(!re)continue;let le=h4(re),Te=Uf(U);if(E.assert(!!le,"derived should point to something, even if it is the base class' declaration."),le===U){let Ne=ah(r.symbol);if(Te&64&&(!Ne||!Mr(Ne,64))){for(let st of il(r)){if(st===a)continue;let Et=lv(st,U.escapedName),Yt=Et&&h4(Et);if(Yt&&Yt!==U)continue e}N||(N=je(Ne,d.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,hn(r),hn(a))),Ne.kind===231?ga(N,vr(F.valueDeclaration??(F.declarations&&Da(F.declarations))??Ne,d.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,ci(F),hn(a))):ga(N,vr(F.valueDeclaration??(F.declarations&&Da(F.declarations))??Ne,d.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,hn(r),ci(F),hn(a)))}}else{let Ne=Uf(le);if(Te&2||Ne&2)continue;let st,Et=U.flags&98308,Yt=le.flags&98308;if(Et&&Yt){if((lc(U)&6?(l=U.declarations)!=null&&l.some(yn=>jIe(yn,Te)):(_=U.declarations)!=null&&_.every(yn=>jIe(yn,Te)))||lc(U)&262144||le.valueDeclaration&&Yn(le.valueDeclaration))continue;let pn=Et!==4&&Yt===4;if(pn||Et===4&&Yt!==4){let yn=pn?d._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:d._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;je(us(le.valueDeclaration)||le.valueDeclaration,yn,ci(U),hn(a),hn(r))}else if(ae){let yn=(m=le.declarations)==null?void 0:m.find(Ut=>Ut.kind===172&&!Ut.initializer);if(yn&&!(le.flags&33554432)&&!(Te&64)&&!(Ne&64)&&!((h=le.declarations)!=null&&h.some(Ut=>!!(Ut.flags&33554432)))){let Ut=rd(ah(r.symbol)),On=yn.name;if(yn.exclamationToken||!Ut||!Ie(On)||!H||!JIe(On,r,Ut)){let kn=d.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;je(us(le.valueDeclaration)||le.valueDeclaration,kn,ci(U),hn(a))}}}continue}else if(ege(U)){if(ege(le)||le.flags&4)continue;E.assert(!!(le.flags&98304)),st=d.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else U.flags&98304?st=d.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:st=d.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;je(us(le.valueDeclaration)||le.valueDeclaration,st,hn(a),ci(U),hn(r))}}}function jIe(r,a){return a&64&&(!Is(r)||!r.initializer)||Wu(r.parent)}function Mlt(r,a,l){if(!bn(a))return l;let _=new Map;Qt(l,m=>{_.set(m.escapedName,m)});for(let m of a){let h=Qa(uf(m,r.thisType));for(let T of h){let N=_.get(T.escapedName);N&&T.parent===N.parent&&_.delete(T.escapedName)}}return hs(_.values())}function Rlt(r,a){let l=il(r);if(l.length<2)return!0;let _=new Map;Qt(Hpe(r).declaredProperties,h=>{_.set(h.escapedName,{prop:h,containingType:r})});let m=!0;for(let h of l){let T=Qa(uf(h,r.thisType));for(let N of T){let F=_.get(N.escapedName);if(!F)_.set(N.escapedName,{prop:N,containingType:h});else if(F.containingType!==r&&!Knt(F.prop,N)){m=!1;let re=hn(F.containingType),le=hn(h),Te=ys(void 0,d.Named_property_0_of_types_1_and_2_are_not_identical,ci(N),re,le);Te=ys(Te,d.Interface_0_cannot_simultaneously_extend_types_1_and_2,hn(r),re,le),Ra.add(nh(Mn(a),a,Te))}}}return m}function jlt(r){if(!H||!Se||r.flags&33554432)return;let a=rd(r);for(let l of r.members)if(!(Ju(l)&128)&&!zs(l)&&BIe(l)){let _=l.name;if(Ie(_)||Di(_)||Na(_)){let m=Vn(fr(l));m.flags&3||ND(m)||(!a||!JIe(_,m,a))&&je(l.name,d.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,co(_))}}}function BIe(r){return r.kind===172&&!Gv(r)&&!r.exclamationToken&&!r.initializer}function Blt(r,a,l,_,m){for(let h of l)if(h.pos>=_&&h.pos<=m){let T=I.createPropertyAccessExpression(I.createThis(),r);Ta(T.expression,T),Ta(T,h),T.flowNode=h.returnFlowNode;let N=Gy(T,a,qy(a));if(!ND(N))return!0}return!1}function JIe(r,a,l){let _=Na(r)?I.createElementAccessExpression(I.createThis(),r.expression):I.createPropertyAccessExpression(I.createThis(),r);Ta(_.expression,_),Ta(_,l),_.flowNode=l.returnFlowNode;let m=Gy(_,a,qy(a));return!ND(m)}function Jlt(r){Gg(r)||b_t(r),gj(r.typeParameters),n(()=>{XD(r.name,d.Interface_name_cannot_be_0),xI(r);let a=fr(r);NIe(a);let l=Zo(a,264);if(r===l){let _=wo(a),m=uf(_);if(Rlt(_,r.name)){for(let h of il(_))Qu(m,uf(h,_.thisType),r.name,d.Interface_0_incorrectly_extends_interface_1);AZ(_,a)}}YNe(r)}),Qt(uE(r),a=>{(!gc(a.expression)||Tu(a.expression))&&je(a.expression,d.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Bge(a)}),Qt(r.members,pa),n(()=>{Mge(r),$y(r)})}function zlt(r){Gg(r),XD(r.name,d.Type_alias_name_cannot_be_0),xI(r),gj(r.typeParameters),r.type.kind===141?(!GO.has(r.name.escapedText)||bn(r.typeParameters)!==1)&&je(r.type,d.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(pa(r.type),$y(r))}function zIe(r){let a=Hr(r);if(!(a.flags&1024)){a.flags|=1024;let l=0;for(let _ of r.members){let m=Vlt(_,l);Hr(_).enumMemberValue=m,l=typeof m=="number"?m+1:void 0}}}function Vlt(r,a){if(YP(r.name))je(r.name,d.Computed_property_names_are_not_allowed_in_enums);else{let l=Jk(r.name);Sg(l)&&!RE(l)&&je(r.name,d.An_enum_member_cannot_have_a_numeric_name)}if(r.initializer)return Wlt(r);if(!(r.parent.flags&33554432&&!Mv(r.parent))){if(a!==void 0)return a;je(r.name,d.Enum_member_must_have_initializer)}}function Wlt(r){let a=Mv(r.parent),l=r.initializer,_=QD(l,r);return _!==void 0?a&&typeof _=="number"&&!isFinite(_)&&je(l,isNaN(_)?d.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:d.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):a?je(l,d.const_enum_member_initializers_must_be_constant_expressions):r.parent.flags&33554432?je(l,d.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Qu($i(l),St,l,d.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),_}function QD(r,a){switch(r.kind){case 224:let l=QD(r.operand,a);if(typeof l=="number")switch(r.operator){case 40:return l;case 41:return-l;case 55:return~l}break;case 226:let _=QD(r.left,a),m=QD(r.right,a);if(typeof _=="number"&&typeof m=="number")switch(r.operatorToken.kind){case 52:return _|m;case 51:return _&m;case 49:return _>>m;case 50:return _>>>m;case 48:return _<qlt(r))}function qlt(r){Gg(r),GD(r,r.name),xI(r),r.members.forEach(Hlt),zIe(r);let a=fr(r),l=Zo(a,r.kind);if(r===l){if(a.declarations&&a.declarations.length>1){let m=Mv(r);Qt(a.declarations,h=>{T1(h)&&Mv(h)!==m&&je(us(h),d.Enum_declarations_must_all_be_const_or_non_const)})}let _=!1;Qt(a.declarations,m=>{if(m.kind!==266)return!1;let h=m;if(!h.members.length)return!1;let T=h.members[0];T.initializer||(_?je(T.name,d.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):_=!0)})}}function Hlt(r){Di(r.name)&&je(r,d.An_enum_member_cannot_be_named_with_a_private_identifier),r.initializer&&$i(r.initializer)}function Glt(r){let a=r.declarations;if(a){for(let l of a)if((l.kind===263||l.kind===262&&fp(l.body))&&!(l.flags&33554432))return l}}function $lt(r,a){let l=Nm(r),_=Nm(a);return nm(l)?nm(_):nm(_)?!1:l===_}function Xlt(r){r.body&&(pa(r.body),jd(r)||$y(r)),n(a);function a(){var l,_;let m=jd(r),h=r.flags&33554432;m&&!h&&je(r.name,d.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);let T=lu(r),N=T?d.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:d.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(hj(r,N))return;Gg(r)||!h&&r.name.kind===11&&en(r.name,d.Only_ambient_modules_can_use_quoted_names),Ie(r.name)&&GD(r,r.name),xI(r);let F=fr(r);if(F.flags&512&&!h&&pU(r,F2(J))){if(pd(J)&&!Mn(r).externalModuleIndicator&&je(r.name,d.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,Je),((l=F.declarations)==null?void 0:l.length)>1){let U=Glt(F);U&&(Mn(r)!==Mn(U)?je(r.name,d.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):r.posre.kind===95);U&&je(U,d.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(T)if(Ov(r)){if((m||fr(r).flags&33554432)&&r.body)for(let re of r.body.statements)Kge(re,m)}else nm(r.parent)?m?je(r.name,d.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Al(gp(r.name))&&je(r.name,d.Ambient_module_declaration_cannot_specify_relative_module_name):m?je(r.name,d.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):je(r.name,d.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Kge(r,a){switch(r.kind){case 243:for(let _ of r.declarationList.declarations)Kge(_,a);break;case 277:case 278:ql(r,d.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:ql(r,d.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:let l=r.name;if(Ms(l)){for(let _ of l.elements)Kge(_,a);break}case 263:case 266:case 262:case 264:case 267:case 265:if(a)return;break}}function Qlt(r){switch(r.kind){case 80:return r;case 166:do r=r.left;while(r.kind!==80);return r;case 211:do{if(gg(r.expression)&&!Di(r.name))return r.name;r=r.expression}while(r.kind!==80);return r}}function ehe(r){let a=Qk(r);if(!a||dc(a))return!1;if(!ca(a))return je(a,d.String_literal_expected),!1;let l=r.parent.kind===268&&lu(r.parent.parent);if(r.parent.kind!==312&&!l)return je(a,r.kind===278?d.Export_declarations_are_not_permitted_in_a_namespace:d.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(l&&Al(a.text)&&!YT(r))return je(r,d.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!Kl(r)&&r.attributes){let _=r.attributes.token===118?d.Import_attribute_values_must_be_string_literal_expressions:d.Import_assertion_values_must_be_string_literal_expressions,m=!1;for(let h of r.attributes.elements)ca(h.value)||(m=!0,je(h.value,_));return!m}return!0}function NZ(r){var a,l,_,m;let h=fr(r),T=yl(h);if(T!==gt){if(h=Ba(h.exportSymbol||h),Qn(r)&&!(T.flags&111551)&&!Nv(r)){let U=gx(r)?r.propertyName||r.name:Ru(r)?r.name:r;if(E.assert(r.kind!==280),r.kind===281){let re=je(U,d.Types_cannot_appear_in_export_declarations_in_JavaScript_files),le=(l=(a=Mn(r).symbol)==null?void 0:a.exports)==null?void 0:l.get((r.propertyName||r.name).escapedText);if(le===T){let Te=(_=le.declarations)==null?void 0:_.find(Lk);Te&&ga(re,vr(Te,d._0_is_automatically_exported_here,Ci(le.escapedName)))}}else{E.assert(r.kind!==260);let re=Fn(r,ud(kl,Kl)),le=(re&&((m=Xk(re))==null?void 0:m.text))??"...",Te=Ci(Ie(U)?U.escapedText:h.escapedName);je(U,d._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Te,`import("${le}").${Te}`)}return}let N=mu(T),F=(h.flags&1160127?111551:0)|(h.flags&788968?788968:0)|(h.flags&1920?1920:0);if(N&F){let U=r.kind===281?d.Export_declaration_conflicts_with_exported_declaration_of_0:d.Import_declaration_conflicts_with_local_declaration_of_0;je(r,U,ci(h))}if(pd(J)&&!Nv(r)&&!(r.flags&33554432)){let U=Kf(h),re=!(N&111551);if(re||U)switch(r.kind){case 273:case 276:case 271:{if(J.preserveValueImports||J.verbatimModuleSyntax){E.assertIsDefined(r.name,"An ImportClause with a symbol should have a name");let le=J.verbatimModuleSyntax&&Gk(r)?d.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:re?J.verbatimModuleSyntax?d._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:d._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:J.verbatimModuleSyntax?d._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:d._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,Te=ur(r.kind===276&&r.propertyName||r.name);gh(je(r,le,Te),re?void 0:U,Te)}re&&r.kind===271&&M_(r,32)&&je(r,d.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,Je);break}case 281:if(J.verbatimModuleSyntax||Mn(U)!==Mn(r)){let le=ur(r.propertyName||r.name),Te=re?je(r,d.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,Je):je(r,d._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,le,Je);gh(Te,re?void 0:U,le);break}}J.verbatimModuleSyntax&&r.kind!==271&&!Qn(r)&&(B===1||Mn(r).impliedNodeFormat===1)&&je(r,d.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(E_(r)){let U=the(h,r);v0(U)&&U.declarations&&Fg(r,U.declarations,U.escapedName)}}}function the(r,a){if(!(r.flags&2097152)||v0(r)||!wp(r))return r;let l=yl(r);if(l===gt)return l;for(;r.flags&2097152;){let _=$me(r);if(_){if(_===l)break;if(_.declarations&&bn(_.declarations))if(v0(_)){Fg(a,_.declarations,_.escapedName);break}else{if(r===l)break;r=_}}else break}return l}function IZ(r){GD(r,r.name),NZ(r),r.kind===276&&ur(r.propertyName||r.name)==="default"&&Om(J)&&B!==4&&(B<5||Mn(r).impliedNodeFormat===1)&&_l(r,131072)}function UIe(r){var a;let l=r.attributes;if(l){let _=tq(r),m=$C(l,_?en:void 0),h=r.attributes.token===118;if(_&&m)return;if((B===199&&r.moduleSpecifier&&ns(r.moduleSpecifier))!==99&&B!==99){let N=h?B===199?d.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:d.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:B===199?d.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:d.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext;return en(l,N)}if(kl(r)?(a=r.importClause)!=null&&a.isTypeOnly:r.isTypeOnly)return en(l,h?d.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:d.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(m)return en(l,d.resolution_mode_can_only_be_set_for_type_only_imports)}}function Ylt(r){if(!hj(r,Qn(r)?d.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:d.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Gg(r)&&I5(r)&&ql(r,d.An_import_declaration_cannot_have_modifiers),ehe(r)){let a=r.importClause;a&&!q_t(a)&&(a.name&&IZ(a),a.namedBindings&&(a.namedBindings.kind===274?(IZ(a.namedBindings),B!==4&&(B<5||Mn(r).impliedNodeFormat===1)&&Om(J)&&_l(r,65536)):s_(r,r.moduleSpecifier)&&Qt(a.namedBindings.elements,IZ)))}UIe(r)}}function Zlt(r){if(!hj(r,Qn(r)?d.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:d.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(Gg(r),Gk(r)||ehe(r)))if(IZ(r),Mr(r,32)&&K1(r),r.moduleReference.kind!==283){let a=yl(fr(r));if(a!==gt){let l=mu(a);if(l&111551){let _=tf(r.moduleReference);yo(_,112575).flags&1920||je(_,d.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,co(_))}l&788968&&XD(r.name,d.Import_name_cannot_be_0)}r.isTypeOnly&&en(r,d.An_import_alias_cannot_use_import_type)}else B>=5&&Mn(r).impliedNodeFormat===void 0&&!r.isTypeOnly&&!(r.flags&33554432)&&en(r,d.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function Klt(r){if(!hj(r,Qn(r)?d.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:d.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!Gg(r)&&Wte(r)&&ql(r,d.An_export_declaration_cannot_have_modifiers),r.moduleSpecifier&&r.exportClause&&kp(r.exportClause)&&bn(r.exportClause.elements)&&ie===0&&_l(r,4194304),eut(r),!r.moduleSpecifier||ehe(r))if(r.exportClause&&!jm(r.exportClause)){Qt(r.exportClause.elements,aut);let a=r.parent.kind===268&&lu(r.parent.parent),l=!a&&r.parent.kind===268&&!r.moduleSpecifier&&r.flags&33554432;r.parent.kind!==312&&!a&&!l&&je(r,d.Export_declarations_are_not_permitted_in_a_namespace)}else{let a=s_(r,r.moduleSpecifier);a&&Mb(a)?je(r.moduleSpecifier,d.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,ci(a)):r.exportClause&&NZ(r.exportClause),B!==4&&(B<5||Mn(r).impliedNodeFormat===1)&&(r.exportClause?Om(J)&&_l(r,65536):_l(r,32768))}UIe(r)}}function eut(r){var a;return r.isTypeOnly&&((a=r.exportClause)==null?void 0:a.kind)===279?x7e(r.exportClause):!1}function hj(r,a){let l=r.parent.kind===312||r.parent.kind===268||r.parent.kind===267;return l||ql(r,a),!l}function tut(r){return y5(r,a=>!!fr(a).isReferenced)}function nut(r){return y5(r,a=>!!Ti(fr(a)).constEnumReferenced)}function rut(r){return kl(r)&&r.importClause&&!r.importClause.isTypeOnly&&tut(r.importClause)&&!jZ(r.importClause,!0)&&!nut(r.importClause)}function iut(r){return Kl(r)&&Bm(r.moduleReference)&&!r.isTypeOnly&&fr(r).isReferenced&&!jZ(r,!1)&&!Ti(fr(r)).constEnumReferenced}function sut(r){if(lt)for(let a of r.statements)(rut(a)||iut(a))&&je(a,d.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function aut(r){if(NZ(r),qf(J)&&$6(r.propertyName||r.name,!0),r.parent.parent.moduleSpecifier)Om(J)&&B!==4&&(B<5||Mn(r).impliedNodeFormat===1)&&ur(r.propertyName||r.name)==="default"&&_l(r,131072);else{let a=r.propertyName||r.name,l=bc(a,a.escapedText,2998271,void 0,void 0,!0);if(l&&(l===Oe||l===Qe||l.declarations&&nm(NS(l.declarations[0]))))je(a,d.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,ur(a));else{!r.isTypeOnly&&!r.parent.parent.isTypeOnly&&K1(r);let _=l&&(l.flags&2097152?yl(l):l);(!_||mu(_)&111551)&&Gc(r.propertyName||r.name)}}}function out(r){let a=r.isExportEquals?d.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:d.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(hj(r,a))return;let l=r.parent.kind===312?r.parent:r.parent.parent;if(l.kind===267&&!lu(l)){r.isExportEquals?je(r,d.An_export_assignment_cannot_be_used_in_a_namespace):je(r,d.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!Gg(r)&&I5(r)&&ql(r,d.An_export_assignment_cannot_have_modifiers);let _=Xl(r);_&&Qu(Gc(r.expression),li(_),r.expression);let m=!r.isExportEquals&&!(r.flags&33554432)&&J.verbatimModuleSyntax&&(B===1||Mn(r).impliedNodeFormat===1);if(r.expression.kind===80){let h=r.expression,T=Ip(yo(h,67108863,!0,!0,r));T?(ZY(T,h),mu(T)&111551?(Gc(h),!m&&!(r.flags&33554432)&&J.verbatimModuleSyntax&&Kf(T,111551)&&je(h,r.isExportEquals?d.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:d.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,ur(h))):!m&&!(r.flags&33554432)&&J.verbatimModuleSyntax&&je(h,r.isExportEquals?d.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:d.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,ur(h))):Gc(h),qf(J)&&$6(h,!0)}else Gc(r.expression);m&&je(r,d.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),qIe(l),r.flags&33554432&&!gc(r.expression)&&en(r.expression,d.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),r.isExportEquals&&(B>=5&&(r.flags&33554432&&Mn(r).impliedNodeFormat===99||!(r.flags&33554432)&&Mn(r).impliedNodeFormat!==1)?en(r,d.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):B===4&&!(r.flags&33554432)&&en(r,d.Export_assignment_is_not_supported_when_module_flag_is_system))}function cut(r){return $l(r.exports,(a,l)=>l!=="export=")}function qIe(r){let a=fr(r),l=Ti(a);if(!l.exportsChecked){let _=a.exports.get("export=");if(_&&cut(a)){let h=wp(_)||_.valueDeclaration;h&&!YT(h)&&!Qn(h)&&je(h,d.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}let m=Bg(a);m&&m.forEach(({declarations:h,flags:T},N)=>{if(N==="__export"||T&1920)return;let F=Lh(h,UI(zbe,qI(Wu)));if(!(T&524288&&F<=2)&&F>1&&!FZ(h))for(let U of h)jbe(U)&&Ra.add(vr(U,d.Cannot_redeclare_exported_variable_0,Ci(N)))}),l.exportsChecked=!0}}function FZ(r){return r&&r.length>1&&r.every(a=>Qn(a)&&ho(a)&&(k2(a.expression)||gg(a.expression)))}function pa(r){if(r){let a=D;D=r,x=0,lut(r),D=a}}function lut(r){bw(r)&&Qt(r.jsDoc,({comment:l,tags:_})=>{HIe(l),Qt(_,m=>{HIe(m.comment),Qn(r)&&pa(m)})});let a=r.kind;if(i)switch(a){case 267:case 263:case 264:case 262:i.throwIfCancellationRequested()}switch(a>=243&&a<=259&&vw(r)&&r.flowNode&&!jR(r.flowNode)&&Yf(J.allowUnreachableCode===!1,r,d.Unreachable_code_detected),a){case 168:return $Ne(r);case 169:return XNe(r);case 172:return ZNe(r);case 171:return Got(r);case 185:case 184:case 179:case 180:case 181:return SI(r);case 174:case 173:return $ot(r);case 175:return Xot(r);case 176:return Qot(r);case 177:case 178:return eIe(r);case 183:return Bge(r);case 182:return Wot(r);case 186:return nct(r);case 187:return rct(r);case 188:return ict(r);case 189:return sct(r);case 192:case 193:return act(r);case 196:case 190:case 191:return pa(r.type);case 197:return uct(r);case 198:return _ct(r);case 194:return fct(r);case 195:return pct(r);case 203:return dct(r);case 205:return mct(r);case 202:return gct(r);case 335:return Lct(r);case 336:return Oct(r);case 353:case 345:case 347:return Cct(r);case 352:return Ect(r);case 351:return Dct(r);case 331:case 332:case 333:return wct(r);case 348:return Act(r);case 355:return Nct(r);case 324:Ict(r);case 322:case 321:case 319:case 320:case 329:GIe(r),vs(r,pa);return;case 325:uut(r);return;case 316:return pa(r.type);case 340:case 342:case 341:return Mct(r);case 357:return Pct(r);case 350:return Fct(r);case 199:return oct(r);case 200:return cct(r);case 262:return kct(r);case 241:case 268:return EZ(r);case 243:return elt(r);case 244:return tlt(r);case 245:return nlt(r);case 246:return slt(r);case 247:return alt(r);case 248:return olt(r);case 249:return llt(r);case 250:return clt(r);case 251:case 252:return glt(r);case 253:return hlt(r);case 254:return ylt(r);case 255:return vlt(r);case 256:return blt(r);case 257:return Slt(r);case 258:return xlt(r);case 260:return Zct(r);case 208:return Kct(r);case 263:return Alt(r);case 264:return Jlt(r);case 265:return zlt(r);case 266:return Ult(r);case 267:return Xlt(r);case 272:return Ylt(r);case 271:return Zlt(r);case 278:return Klt(r);case 277:return out(r);case 242:case 259:Fh(r);return;case 282:return Zot(r)}}function HIe(r){ss(r)&&Qt(r,a=>{yx(a)&&pa(a)})}function GIe(r){if(!Qn(r))if(aO(r)||wC(r)){let a=Zs(aO(r)?54:58),l=r.postfix?d._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:d._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,_=r.type,m=li(_);en(r,l,a,hn(wC(r)&&!(m===wr||m===Mi)?Jr(_n([m,j],r.postfix?void 0:De)):m))}else en(r,d.JSDoc_types_can_only_be_used_inside_documentation_comments)}function uut(r){GIe(r),pa(r.type);let{parent:a}=r;if(ms(a)&&AC(a.parent)){Pa(a.parent.parameters)!==a&&je(r,d.A_rest_parameter_must_be_last_in_a_parameter_list);return}q2(a)||je(r,d.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);let l=r.parent.parent;if(!gd(l)){je(r,d.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}let _=Sw(l);if(!_)return;let m=_1(l);(!m||Pa(m.parameters).symbol!==_)&&je(r,d.A_rest_parameter_must_be_last_in_a_parameter_list)}function _ut(r){let a=li(r.type),{parent:l}=r,_=r.parent.parent;if(q2(r.parent)&&gd(_)){let m=_1(_),h=nW(_.parent.parent);if(m||h){let T=qo(h?_.parent.parent.typeExpression.parameters:m.parameters),N=Sw(_);if(!T||N&&T.symbol===N&&fg(T))return hu(a)}}return ms(l)&&AC(l.parent)?hu(a):Ol(a)}function _k(r){let a=Mn(r),l=Hr(a);l.flags&1?E.assert(!l.deferredNodes,"A type-checked file should have no deferred nodes."):(l.deferredNodes||(l.deferredNodes=new Set),l.deferredNodes.add(r))}function fut(r){let a=Hr(r);a.deferredNodes&&a.deferredNodes.forEach(put),a.deferredNodes=void 0}function put(r){var a,l;(a=Wn)==null||a.push(Wn.Phase.Check,"checkDeferredNode",{kind:r.kind,pos:r.pos,end:r.end,path:r.tracingPath});let _=D;switch(D=r,x=0,r.kind){case 213:case 214:case 215:case 170:case 286:XS(r);break;case 218:case 219:case 174:case 173:cot(r);break;case 177:case 178:eIe(r);break;case 231:wlt(r);break;case 168:Vot(r);break;case 285:yst(r);break;case 284:bst(r);break;case 216:case 234:case 217:Lat(r);break;case 222:$i(r.expression);break;case 226:O5(r)&&XS(r);break}D=_,(l=Wn)==null||l.pop()}function dut(r){var a,l;(a=Wn)==null||a.push(Wn.Phase.Check,"checkSourceFile",{path:r.path},!0),Fo("beforeCheck"),mut(r),Fo("afterCheck"),gf("Check","beforeCheck","afterCheck"),(l=Wn)==null||l.pop()}function $Ie(r,a){if(a)return!1;switch(r){case 0:return!!J.noUnusedLocals;case 1:return!!J.noUnusedParameters;default:return E.assertNever(r)}}function XIe(r){return d0.get(r.path)||Ve}function mut(r){let a=Hr(r);if(!(a.flags&1)){if(IE(r,J,e))return;z_t(r),og(Tb),og(kb),og(V1),og(m0),og(Cb),Qt(r.statements,pa),pa(r.endOfFileToken),fut(r),K_(r)&&$y(r),n(()=>{!r.isDeclarationFile&&(J.noUnusedLocals||J.noUnusedParameters)&&fIe(XIe(r),(l,_,m)=>{!jk(l)&&$Ie(_,!!(l.flags&33554432))&&Ra.add(m)}),r.isDeclarationFile||Jct()}),J.importsNotUsedAsValues===2&&!r.isDeclarationFile&&Bc(r)&&sut(r),K_(r)&&qIe(r),Tb.length&&(Qt(Tb,Wct),og(Tb)),kb.length&&(Qt(kb,Uct),og(kb)),V1.length&&(Qt(V1,$ct),og(V1)),m0.length&&(Qt(m0,Qct),og(m0)),a.flags|=1}}function QIe(r,a){try{return i=a,gut(r)}finally{i=void 0}}function nhe(){for(let r of t)r();t=[]}function rhe(r){nhe();let a=n;n=l=>l(),dut(r),n=a}function gut(r){if(r){nhe();let a=Ra.getGlobalDiagnostics(),l=a.length;rhe(r);let _=Ra.getDiagnostics(r.fileName),m=Ra.getGlobalDiagnostics();if(m!==a){let h=tK(a,m,PE);return es(h,_)}else if(l===0&&m.length>0)return es(m,_);return _}return Qt(e.getSourceFiles(),rhe),Ra.getDiagnostics()}function hut(){return nhe(),Ra.getGlobalDiagnostics()}function yut(r,a){if(r.flags&67108864)return[];let l=Gs(),_=!1;return m(),l.delete("this"),fde(l);function m(){for(;r;){switch(Pm(r)&&r.locals&&!nm(r)&&T(r.locals,a),r.kind){case 312:if(!Bc(r))break;case 267:N(fr(r).exports,a&2623475);break;case 266:T(fr(r).exports,a&8);break;case 231:r.name&&h(r.symbol,a);case 263:case 264:_||T(Ly(fr(r)),a&788968);break;case 218:r.name&&h(r.symbol,a);break}cte(r)&&h(at,a),_=zs(r),r=r.parent}T(me,a)}function h(F,U){if(CE(F)&U){let re=F.escapedName;l.has(re)||l.set(re,F)}}function T(F,U){U&&F.forEach(re=>{h(re,U)})}function N(F,U){U&&F.forEach(re=>{!Zo(re,281)&&!Zo(re,280)&&re.escapedName!=="default"&&h(re,U)})}}function vut(r){return r.kind===80&&mC(r.parent)&&us(r.parent)===r}function YIe(r){for(;r.parent.kind===166;)r=r.parent;return r.parent.kind===183}function but(r){for(;r.parent.kind===211;)r=r.parent;return r.parent.kind===233}function ZIe(r,a){let l,_=Rl(r);for(;_&&!(l=a(_));)_=Rl(_);return l}function Sut(r){return!!Fn(r,a=>Cc(a)&&fp(a.body)||Is(a)?!0:ei(a)||To(a)?"quit":!1)}function ihe(r,a){return!!ZIe(r,l=>l===a)}function xut(r){for(;r.parent.kind===166;)r=r.parent;if(r.parent.kind===271)return r.parent.moduleReference===r?r.parent:void 0;if(r.parent.kind===277)return r.parent.expression===r?r.parent:void 0}function OZ(r){return xut(r)!==void 0}function Tut(r){switch(mc(r.parent.parent)){case 1:case 3:return lf(r.parent);case 4:case 2:case 5:return fr(r.parent.parent)}}function kut(r){let a=r.parent;for(;k_(a);)r=a,a=a.parent;if(a&&a.kind===205&&a.qualifier===r)return a}function Cut(r){if(r.expression.kind===110){let a=__(r,!1,!1);if(As(a)){let l=_Ae(a);if(l){let _=Sv(l,void 0),m=pAe(l,_);return m&&!Ae(m)}}}}function KIe(r){if(ih(r))return lf(r.parent);if(Qn(r)&&r.parent.kind===211&&r.parent===r.parent.parent.left&&!Di(r)&&!k1(r)&&!Cut(r.parent)){let a=Tut(r);if(a)return a}if(r.parent.kind===277&&gc(r)){let a=yo(r,2998271,!0);if(a&&a!==gt)return a}else if(Y_(r)&&OZ(r)){let a=f1(r,271);return E.assert(a!==void 0),ES(r,!0)}if(Y_(r)){let a=kut(r);if(a){li(a);let l=Hr(r).resolvedSymbol;return l===gt?void 0:l}}for(;Xte(r);)r=r.parent;if(but(r)){let a=0;r.parent.kind===233?(a=dg(r)?788968:111551,Mw(r.parent)&&(a|=111551)):a=1920,a|=2097152;let l=gc(r)?yo(r,a,!0):void 0;if(l)return l}if(r.parent.kind===348)return Sw(r.parent);if(r.parent.kind===168&&r.parent.parent.kind===352){E.assert(!Qn(r));let a=Ste(r.parent);return a&&a.symbol}if(mg(r)){if(dc(r))return;let a=Fn(r,ud(yx,r3,k1)),l=a?901119:111551;if(r.kind===80){if(Hk(r)&&uk(r)){let m=sZ(r.parent);return m===gt?void 0:m}let _=yo(r,l,!0,!0,_1(r));if(!_&&a){let m=Fn(r,ud(ei,Wu));if(m)return yj(r,!0,fr(m))}if(_&&a){let m=Tx(r);if(m&&sb(m)&&m===_.valueDeclaration)return yo(r,l,!0,!0,Mn(m))||_}return _}else{if(Di(r))return cZ(r);if(r.kind===211||r.kind===166){let _=Hr(r);return _.resolvedSymbol?_.resolvedSymbol:(r.kind===211?(aZ(r,0),_.resolvedSymbol||(_.resolvedSymbol=e7e(Gc(r.expression),N0(r.name)))):JAe(r,0),!_.resolvedSymbol&&a&&k_(r)?yj(r):_.resolvedSymbol)}else if(k1(r))return yj(r)}}else if(YIe(r)){let a=r.parent.kind===183?788968:1920,l=yo(r,a,!1,!0);return l&&l!==gt?l:aY(r)}if(r.parent.kind===182)return yo(r,1)}function e7e(r,a){let l=_de(r,a);if(l.length&&r.members){let _=rY(Ed(r).members);if(l===$u(r))return _;if(_){let m=Ti(_),h=Ri(l,N=>N.declaration),T=Kt(h,Va).join(",");if(m.filteredIndexSymbolCache||(m.filteredIndexSymbolCache=new Map),m.filteredIndexSymbolCache.has(T))return m.filteredIndexSymbolCache.get(T);{let N=ja(131072,"__index");return N.declarations=Ri(l,F=>F.declaration),N.parent=r.aliasSymbol?r.aliasSymbol:r.symbol?r.symbol:ad(N.declarations[0].parent),m.filteredIndexSymbolCache.set(T,N),N}}}}function yj(r,a,l){if(Y_(r)){let T=yo(r,901119,a,!0,_1(r));if(!T&&Ie(r)&&l&&(T=Ba(P_(q_(l),r.escapedText,901119))),T)return T}let _=Ie(r)?l:yj(r.left,a,l),m=Ie(r)?r.escapedText:r.right.escapedText;if(_){let h=_.flags&111551&&Ks(Vn(_),"prototype"),T=h?Vn(h):wo(_);return Ks(T,m)}}function ad(r,a){if(Li(r))return Bc(r)?Ba(r.symbol):void 0;let{parent:l}=r,_=l.parent;if(!(r.flags&67108864)){if(Bbe(r)){let m=fr(l);return gx(r.parent)&&r.parent.propertyName===r?$me(m):m}else if(Tw(r))return fr(l.parent);if(r.kind===80){if(OZ(r))return KIe(r);if(l.kind===208&&_.kind===206&&r===l.propertyName){let m=fk(_),h=Ks(m,r.escapedText);if(h)return h}else if(ZE(l)&&l.name===r)return l.keywordToken===105&&ur(r)==="target"?Sge(l).symbol:l.keywordToken===102&&ur(r)==="meta"?owe().members.get("meta"):void 0}switch(r.kind){case 80:case 81:case 211:case 166:if(!Dx(r))return KIe(r);case 110:let m=__(r,!1,!1);if(As(m)){let N=Lp(m);if(N.thisParameter)return N.thisParameter}if(l5(r))return $i(r).symbol;case 197:return gY(r).symbol;case 108:return $i(r).symbol;case 137:let h=r.parent;return h&&h.kind===176?h.parent.symbol:void 0;case 11:case 15:if(l1(r.parent.parent)&&iE(r.parent.parent)===r||(r.parent.kind===272||r.parent.kind===278)&&r.parent.moduleSpecifier===r||Qn(r)&&Yl(J)!==100&&T_(r.parent,!1)||ef(r.parent)||S1(r.parent)&&K0(r.parent.parent)&&r.parent.parent.argument===r.parent)return s_(r,r,a);if(Ws(l)&&C2(l)&&l.arguments[1]===r)return fr(l);case 9:let T=ko(l)?l.argumentExpression===r?su(l.expression):void 0:S1(l)&&$x(_)?li(_.objectType):void 0;return T&&Ks(T,Yo(r.text));case 90:case 100:case 39:case 86:return lf(r.parent);case 205:return K0(r)?ad(r.argument.literal,a):void 0;case 95:return hc(r.parent)?E.checkDefined(r.parent.symbol):void 0;case 102:case 105:return ZE(r.parent)?xNe(r.parent).symbol:void 0;case 104:if(Yn(r.parent)){let N=su(r.parent.right),F=Age(N);return F?.symbol??N.symbol}return;case 236:return $i(r).symbol;case 295:if(Hk(r)&&uk(r)){let N=sZ(r.parent);return N===gt?void 0:N}default:return}}}function Eut(r){if(Ie(r)&&Cr(r.parent)&&r.parent.name===r){let a=N0(r),l=su(r.parent.expression),_=l.flags&1048576?l.types:[l];return oa(_,m=>Fr($u(m),h=>n4(a,h.keyType)))}}function Dut(r){if(r&&r.kind===304)return yo(r.name,2208703)}function Put(r){return Eu(r)?r.parent.parent.moduleSpecifier?Q1(r.parent.parent,r):yo(r.propertyName||r.name,2998271):yo(r,2998271)}function fk(r){if(Li(r)&&!Bc(r)||r.flags&67108864)return ot;let a=jz(r),l=a&&ip(fr(a.class));if(dg(r)){let _=li(r);return l?uf(_,l.thisType):_}if(mg(r))return t7e(r);if(l&&!a.isImplements){let _=Pl(il(l));return _?uf(_,l.thisType):ot}if(mC(r)){let _=fr(r);return wo(_)}if(vut(r)){let _=ad(r);return _?wo(_):ot}if(Ma(r))return Sh(r,!0,0)||ot;if(ku(r)){let _=fr(r);return _?Vn(_):ot}if(Bbe(r)){let _=ad(r);return _?Vn(_):ot}if(Ms(r))return Sh(r.parent,!0,0)||ot;if(OZ(r)){let _=ad(r);if(_){let m=wo(_);return tt(m)?Vn(_):m}}return ZE(r.parent)&&r.parent.keywordToken===r.kind?xNe(r.parent):ot}function LZ(r){if(E.assert(r.kind===210||r.kind===209),r.parent.kind===250){let m=dj(r.parent);return ZS(r,m||ot)}if(r.parent.kind===226){let m=su(r.parent.right);return ZS(r,m||ot)}if(r.parent.kind===303){let m=Vs(r.parent.parent,xa),h=LZ(m)||ot,T=Bk(m.properties,r.parent);return jNe(m,h,T)}let a=Vs(r.parent,Vu),l=LZ(a)||ot,_=M0(65,l,j,r.parent)||ot;return BNe(a,l,a.elements.indexOf(r),_)}function wut(r){let a=LZ(Vs(r.parent.parent,$4));return a&&Ks(a,r.escapedText)}function t7e(r){return SE(r)&&(r=r.parent),c_(su(r))}function n7e(r){let a=lf(r.parent);return zs(r)?Vn(a):wo(a)}function r7e(r){let a=r.name;switch(a.kind){case 80:return b_(ur(a));case 9:case 11:return b_(a.text);case 167:let l=qg(a);return Ul(l,12288)?l:Fe;default:return E.fail("Unsupported property name.")}}function she(r){r=o_(r);let a=Gs(Qa(r)),l=Ps(r,0).length?Ln:Ps(r,1).length?Gi:void 0;return l&&Qt(Qa(l),_=>{a.has(_.escapedName)||a.set(_.escapedName,_)}),Jb(a)}function MZ(r){return Ps(r,0).length!==0||Ps(r,1).length!==0}function i7e(r){let a=Aut(r);return a?oa(a,i7e):[r]}function Aut(r){if(lc(r)&6)return Ri(Ti(r).containingType.types,a=>Ks(a,r.escapedName));if(r.flags&33554432){let{links:{leftSpread:a,rightSpread:l,syntheticOrigin:_}}=r;return a?[a,l]:_?[_]:c2(Nut(r))}}function Nut(r){let a,l=r;for(;l=Ti(l).target;)a=l;return a}function Iut(r){if(Lo(r))return!1;let a=ls(r,Ie);if(!a)return!1;let l=a.parent;return l?!((Cr(l)||el(l))&&l.name===a)&&NI(a)===at:!1}function Fut(r){let a=s_(r.parent,r);if(!a||Z4(a))return!0;let l=Mb(a);a=cf(a);let _=Ti(a);return _.exportsSomeValue===void 0&&(_.exportsSomeValue=l?!!(a.flags&111551):$l(Bg(a),m)),_.exportsSomeValue;function m(h){return h=Oc(h),h&&!!(mu(h)&111551)}}function Out(r){return VP(r.parent)&&r===r.parent.name}function Lut(r,a){var l;let _=ls(r,Ie);if(_){let m=NI(_,Out(_));if(m){if(m.flags&1048576){let T=Ba(m.exportSymbol);if(!a&&T.flags&944&&!(T.flags&3))return;m=T}let h=v_(m);if(h){if(h.flags&512&&((l=h.valueDeclaration)==null?void 0:l.kind)===312){let T=h.valueDeclaration,N=Mn(_);return T!==N?void 0:T}return Fn(_.parent,T=>VP(T)&&fr(T)===h)}}}}function Mut(r){let a=are(r);if(a)return a;let l=ls(r,Ie);if(l){let _=Xut(l);if(Z1(_,111551)&&!Kf(_,111551))return wp(_)}}function Rut(r){return r.valueDeclaration&&Ma(r.valueDeclaration)&&Dk(r.valueDeclaration).parent.kind===299}function s7e(r){if(r.flags&418&&r.valueDeclaration&&!Li(r.valueDeclaration)){let a=Ti(r);if(a.isDeclarationWithCollidingName===void 0){let l=Nm(r.valueDeclaration);if(zee(l)||Rut(r)){let _=Hr(r.valueDeclaration);if(bc(l.parent,r.escapedName,111551,void 0,void 0,!1))a.isDeclarationWithCollidingName=!0;else if(_.flags&16384){let m=_.flags&32768,h=$0(l,!1),T=l.kind===241&&$0(l.parent,!1);a.isDeclarationWithCollidingName=!$ee(l)&&(!m||!h&&!T)}else a.isDeclarationWithCollidingName=!1}}return a.isDeclarationWithCollidingName}return!1}function jut(r){if(!Lo(r)){let a=ls(r,Ie);if(a){let l=NI(a);if(l&&s7e(l))return l.valueDeclaration}}}function But(r){let a=ls(r,ku);if(a){let l=fr(a);if(l)return s7e(l)}return!1}function a7e(r){switch(E.assert(lt),r.kind){case 271:return RZ(fr(r));case 273:case 274:case 276:case 281:let a=fr(r);return!!a&&RZ(a,!0);case 278:let l=r.exportClause;return!!l&&(jm(l)||ft(l.elements,a7e));case 277:return r.expression&&r.expression.kind===80?RZ(fr(r)):!0}return!1}function Jut(r){let a=ls(r,Kl);return a===void 0||a.parent.kind!==312||!Gk(a)?!1:RZ(fr(a))&&a.moduleReference&&!dc(a.moduleReference)}function RZ(r,a){if(!r)return!1;let l=Ip(yl(r));return l===gt?!a||!Kf(r):!!(mu(r,a,!0)&111551)&&(F2(J)||!wI(l))}function wI(r){return wge(r)||!!r.constEnumOnlyModule}function jZ(r,a){if(E.assert(lt),$1(r)){let l=fr(r),_=l&&Ti(l);if(_?.referenced)return!0;let m=Ti(l).aliasTarget;if(m&&Ju(r)&32&&mu(m)&111551&&(F2(J)||!wI(m)))return!0}return a?!!vs(r,l=>jZ(l,a)):!1}function o7e(r){if(fp(r.body)){if(X0(r)||qh(r))return!1;let a=fr(r),l=Wb(a);return l.length>1||l.length===1&&l[0].declaration!==r}return!1}function c7e(r){return!!H&&!$N(r)&&!gd(r)&&!!r.initializer&&!Mr(r,31)}function zut(r){return H&&$N(r)&&!r.initializer&&Mr(r,31)}function Vut(r){let a=ls(r,al);if(!a)return!1;let l=fr(a);return!l||!(l.flags&16)?!1:!!$l(q_(l),_=>_.flags&111551&&lF(_.valueDeclaration))}function Wut(r){let a=ls(r,al);if(!a)return Ve;let l=fr(a);return l&&Qa(Vn(l))||Ve}function y4(r){var a;let l=r.id||0;return l<0||l>=z1.length?0:((a=z1[l])==null?void 0:a.flags)||0}function AI(r){return zIe(r.parent),Hr(r).enumMemberValue}function l7e(r){switch(r.kind){case 306:case 211:case 212:return!0}return!1}function ahe(r){if(r.kind===306)return AI(r);let a=Hr(r).resolvedSymbol;if(a&&a.flags&8){let l=a.valueDeclaration;if(Mv(l.parent))return AI(l)}}function ohe(r){return!!(r.flags&524288)&&Ps(r,0).length>0}function Uut(r,a){var l;let _=ls(r,Y_);if(!_||a&&(a=ls(a),!a))return 0;let m=!1;if(k_(_)){let U=yo(tf(_),111551,!0,!0,a);m=!!((l=U?.declarations)!=null&&l.every(Nv))}let h=yo(_,111551,!0,!0,a),T=h&&h.flags&2097152?yl(h):h;m||(m=!!(h&&Kf(h,111551)));let N=yo(_,788968,!0,!1,a);if(T&&T===N){let U=xde(!1);if(U&&T===U)return 9;let re=Vn(T);if(re&&gi(re))return m?10:1}if(!N)return m?11:0;let F=wo(N);return tt(F)?m?11:0:F.flags&3?11:Ul(F,245760)?2:Ul(F,528)?6:Ul(F,296)?3:Ul(F,2112)?4:Ul(F,402653316)?5:va(F)?7:Ul(F,12288)?8:ohe(F)?10:cp(F)?7:11}function qut(r,a,l,_,m){let h=ls(r,ste);if(!h)return I.createToken(133);let T=fr(h),N=T&&!(T.flags&133120)?Qb(Vn(T)):ot;return N.flags&8192&&N.symbol===T&&(l|=1048576),m&&(N=qy(N)),mt.typeToTypeNode(N,a,l|1024,_)}function Hut(r,a,l,_){let m=ls(r,As);if(!m)return I.createToken(133);let h=Lp(m);return mt.typeToTypeNode(Ua(h),a,l|1024,_)}function Gut(r,a,l,_){let m=ls(r,ut);if(!m)return I.createToken(133);let h=_f(t7e(m));return mt.typeToTypeNode(h,a,l|1024,_)}function $ut(r){return me.has(Yo(r))}function NI(r,a){let l=Hr(r).resolvedSymbol;if(l)return l;let _=r;if(a){let m=r.parent;ku(m)&&r===m.name&&(_=NS(m))}return bc(_,r.escapedText,3257279,void 0,void 0,!0)}function Xut(r){let a=Hr(r).resolvedSymbol;return a&&a!==gt?a:bc(r,r.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function Qut(r){if(!Lo(r)){let a=ls(r,Ie);if(a){let l=NI(a);if(l)return Ip(l).valueDeclaration}}}function Yut(r){if(!Lo(r)){let a=ls(r,Ie);if(a){let l=NI(a);if(l)return Fr(Ip(l).declarations,_=>{switch(_.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function Zut(r){return Q7(r)||Ni(r)&&WZ(r)?Gb(Vn(fr(r))):!1}function Kut(r,a,l){let _=r.flags&1056?mt.symbolToExpression(r.symbol,111551,a,void 0,l):r===nr?I.createTrue():r===Wt&&I.createFalse();if(_)return _;let m=r.value;return typeof m=="object"?I.createBigIntLiteral(m):typeof m=="number"?I.createNumericLiteral(m):I.createStringLiteral(m)}function e_t(r,a){let l=Vn(fr(r));return Kut(l,r,a)}function u7e(r){return r?(U1(r),Mn(r).localJsxFactory||g0):g0}function che(r){if(r){let a=Mn(r);if(a){if(a.localJsxFragmentFactory)return a.localJsxFragmentFactory;let l=a.pragmas.get("jsxfrag"),_=ss(l)?l[0]:l;if(_)return a.localJsxFragmentFactory=nT(_.arguments.factory,ie),a.localJsxFragmentFactory}}if(J.jsxFragmentFactory)return nT(J.jsxFragmentFactory,ie)}function t_t(){let r=e.getResolvedTypeReferenceDirectives(),a;return r&&(a=new Map,r.forEach(({resolvedTypeReferenceDirective:F},U,re)=>{if(!F?.resolvedFileName)return;let le=e.getSourceFile(F.resolvedFileName);le&&N(le,U,re)})),{getReferencedExportContainer:Lut,getReferencedImportDeclaration:Mut,getReferencedDeclarationWithCollidingName:jut,isDeclarationWithCollidingName:But,isValueAliasDeclaration:F=>{let U=ls(F);return U&<?a7e(U):!0},hasGlobalName:$ut,isReferencedAliasDeclaration:(F,U)=>{let re=ls(F);return re&<?jZ(re,U):!0},getNodeCheckFlags:F=>{let U=ls(F);return U?y4(U):0},isTopLevelValueImportEqualsWithEntityName:Jut,isDeclarationVisible:bh,isImplementationOfOverload:o7e,isRequiredInitializedParameter:c7e,isOptionalUninitializedParameterProperty:zut,isExpandoFunctionDeclaration:Vut,getPropertiesOfContainerFunction:Wut,createTypeOfDeclaration:qut,createReturnTypeOfSignatureDeclaration:Hut,createTypeOfExpression:Gut,createLiteralConstValue:e_t,isSymbolAccessible:hr,isEntityNameVisible:H_,getConstantValue:F=>{let U=ls(F,l7e);return U?ahe(U):void 0},collectLinkedAliases:$6,getReferencedValueDeclaration:Qut,getReferencedValueDeclarations:Yut,getTypeReferenceSerializationKind:Uut,isOptionalParameter:$N,moduleExportsSomeValue:Fut,isArgumentsLocalBinding:Iut,getExternalModuleFileFromDeclaration:F=>{let U=ls(F,Qee);return U&&lhe(U)},getTypeReferenceDirectivesForEntityName:m,getTypeReferenceDirectivesForSymbol:h,isLiteralConstDeclaration:Zut,isLateBound:F=>{let U=ls(F,ku),re=U&&fr(U);return!!(re&&lc(re)&4096)},getJsxFactoryEntity:u7e,getJsxFragmentFactoryEntity:che,getAllAccessorDeclarations(F){F=ls(F,C7);let U=F.kind===178?177:178,re=Zo(fr(F),U),le=re&&re.posjg(F,F,void 0),isBindingCapturedByNode:(F,U)=>{let re=ls(F),le=ls(U);return!!re&&!!le&&(Ni(le)||Ma(le))&&Pit(re,le)},getDeclarationStatementsForSourceFile:(F,U,re,le)=>{let Te=ls(F);E.assert(Te&&Te.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");let Ne=fr(F);return Ne?Ne.exports?mt.symbolTableToDeclarationStatements(Ne.exports,F,U,re,le):[]:F.locals?mt.symbolTableToDeclarationStatements(F.locals,F,U,re,le):[]},isImportRequiredByAugmentation:l,tryFindAmbientModule:F=>{let U=ls(F),re=U&&$a(U)?U.text:void 0;return re!==void 0?eY(re,!0):void 0}};function l(F){let U=Mn(F);if(!U.symbol)return!1;let re=lhe(F);if(!re||re===U)return!1;let le=Bg(U.symbol);for(let Te of hs(le.values()))if(Te.mergeId){let Ne=Ba(Te);if(Ne.declarations){for(let st of Ne.declarations)if(Mn(st)===re)return!0}}return!1}function _(F){return F.parent&&F.parent.kind===233&&F.parent.parent&&F.parent.parent.kind===298}function m(F){if(!a)return;let U;F.parent.kind===167?U=1160127:(U=790504,(F.kind===80&&A2(F)||F.kind===211&&!_(F))&&(U=1160127));let re=yo(F,U,!0);return re&&re!==gt?h(re,U):void 0}function h(F,U){if(!a||!T(F))return;let re;for(let le of F.declarations)if(le.symbol&&le.symbol.flags&U){let Te=Mn(le),Ne=a.get(Te.path);if(Ne)(re||(re=[])).push(Ne);else return}return re}function T(F){if(!F.declarations)return!1;let U=F;for(;;){let re=v_(U);if(re)U=re;else break}if(U.valueDeclaration&&U.valueDeclaration.kind===312&&U.flags&512)return!1;for(let re of F.declarations){let le=Mn(re);if(a.has(le.path))return!0}return!1}function N(F,U,re){if(!a.has(F.path)){a.set(F.path,[U,re]);for(let{fileName:le}of F.referencedFiles){let Te=m9(le,F.fileName),Ne=e.getSourceFile(Te);Ne&&N(Ne,U,re||F.impliedNodeFormat)}}}}function lhe(r){let a=r.kind===267?Ur(r.name,ca):Qk(r),l=jg(a,a,void 0);if(l)return Zo(l,312)}function n_t(){for(let a of e.getSourceFiles())Vie(a,J);ro=new Map;let r;for(let a of e.getSourceFiles())if(!a.redirectInfo){if(!K_(a)){let l=a.locals.get("globalThis");if(l?.declarations)for(let _ of l.declarations)Ra.add(vr(_,d.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));tm(me,a.locals)}a.jsGlobalAugmentations&&tm(me,a.jsGlobalAugmentations),a.patternAmbientModules&&a.patternAmbientModules.length&&(Gf=es(Gf,a.patternAmbientModules)),a.moduleAugmentations.length&&(r||(r=[])).push(a.moduleAugmentations),a.symbol&&a.symbol.globalExports&&a.symbol.globalExports.forEach((_,m)=>{me.has(m)||me.set(m,_)})}if(r)for(let a of r)for(let l of a)jd(l.parent)&&xS(l);if(L6(me,F6,d.Declaration_name_conflicts_with_built_in_global_identifier_0),Ti(Oe).type=ce,Ti(at).type=qc("IArguments",0,!0),Ti(gt).type=ot,Ti(Qe).type=ep(16,Qe),Os=qc("Array",1,!0),ye=qc("Object",0,!0),Tt=qc("Function",0,!0),Ln=oe&&qc("CallableFunction",0,!0)||Tt,Gi=oe&&qc("NewableFunction",0,!0)||Tt,vc=qc("String",0,!0),Ec=qc("Number",0,!0),Go=qc("Boolean",0,!0),tc=qc("RegExp",0,!0),pc=hu(G),Vc=hu(vt),Vc===Xs&&(Vc=ac(void 0,V,Ve,Ve,Ve)),Bs=pwe("ReadonlyArray",1)||Os,Ep=Bs?YN(Bs,[G]):pc,Fc=pwe("ThisType",1),r)for(let a of r)for(let l of a)jd(l.parent)||xS(l);ro.forEach(({firstFile:a,secondFile:l,conflictingSymbols:_})=>{if(_.size<8)_.forEach(({isBlockScoped:m,firstFileLocations:h,secondFileLocations:T},N)=>{let F=m?d.Cannot_redeclare_block_scoped_variable_0:d.Duplicate_identifier_0;for(let U of h)Og(U,F,N,T);for(let U of T)Og(U,F,N,h)});else{let m=hs(_.keys()).join(", ");Ra.add(ga(vr(a,d.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),vr(l,d.Conflicts_are_in_this_file))),Ra.add(ga(vr(l,d.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,m),vr(a,d.Conflicts_are_in_this_file)))}}),ro=void 0}function _l(r,a){if((o&a)!==a&&J.importHelpers){let l=Mn(r);if(vx(l,J)&&!(r.flags&33554432)){let _=i_t(l,r);if(_!==gt){let m=a&~o;for(let h=1;h<=33554432;h<<=1)if(m&h)for(let T of r_t(h)){if(s.has(T))continue;s.add(T);let N=Oc(P_(Bg(_),Yo(T),111551));N?h&524288?ft(Wb(N),F=>ff(F)>3)||je(r,d.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,sy,T,4):h&1048576?ft(Wb(N),F=>ff(F)>4)||je(r,d.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,sy,T,5):h&1024&&(ft(Wb(N),F=>ff(F)>2)||je(r,d.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,sy,T,3)):je(r,d.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,sy,T)}}o|=a}}}function r_t(r){switch(r){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return Z?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return E.fail("Unrecognized helper")}}function i_t(r,a){return c||(c=vh(r,sy,d.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,a)||gt),c}function Gg(r){let a=o_t(r)||s_t(r);if(a!==void 0)return a;if(ms(r)&&qv(r))return ql(r,d.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);let l=uc(r)?r.declarationList.flags&7:0,_,m,h,T,N,F=0,U=!1,re=!1;for(let le of r.modifiers)if(Zl(le)){if(c5(Z,r,r.parent,r.parent.parent)){if(Z&&(r.kind===177||r.kind===178)){let Te=N2(r.parent.members,r);if(Vf(Te.firstAccessor)&&r===Te.secondAccessor)return ql(r,d.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return r.kind===174&&!fp(r.body)?ql(r,d.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):ql(r,d.Decorators_are_not_valid_here);if(F&-34849)return en(le,d.Decorators_are_not_valid_here);if(re&&F&98303){E.assertIsDefined(N);let Te=Mn(le);return n2(Te)?!1:(ga(je(le,d.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),vr(N,d.Decorator_used_before_export_here)),!0)}F|=32768,F&98303?F&32&&(U=!0):re=!0,N??(N=le)}else{if(le.kind!==148){if(r.kind===171||r.kind===173)return en(le,d._0_modifier_cannot_appear_on_a_type_member,Zs(le.kind));if(r.kind===181&&(le.kind!==126||!ei(r.parent)))return en(le,d._0_modifier_cannot_appear_on_an_index_signature,Zs(le.kind))}if(le.kind!==103&&le.kind!==147&&le.kind!==87&&r.kind===168)return en(le,d._0_modifier_cannot_appear_on_a_type_parameter,Zs(le.kind));switch(le.kind){case 87:if(r.kind!==266&&r.kind!==168)return en(r,d.A_class_member_cannot_have_the_0_keyword,Zs(87));let Te=r.parent;if(r.kind===168&&!(To(Te)||ei(Te)||Tg(Te)||XE(Te)||SC(Te)||g8(Te)||xg(Te)))return en(le,d._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Zs(le.kind));break;case 164:if(F&16)return en(le,d._0_modifier_already_seen,"override");if(F&128)return en(le,d._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(F&8)return en(le,d._0_modifier_must_precede_1_modifier,"override","readonly");if(F&512)return en(le,d._0_modifier_must_precede_1_modifier,"override","accessor");if(F&1024)return en(le,d._0_modifier_must_precede_1_modifier,"override","async");F|=16,T=le;break;case 125:case 124:case 123:let Ne=zg(wx(le.kind));if(F&7)return en(le,d.Accessibility_modifier_already_seen);if(F&16)return en(le,d._0_modifier_must_precede_1_modifier,Ne,"override");if(F&256)return en(le,d._0_modifier_must_precede_1_modifier,Ne,"static");if(F&512)return en(le,d._0_modifier_must_precede_1_modifier,Ne,"accessor");if(F&8)return en(le,d._0_modifier_must_precede_1_modifier,Ne,"readonly");if(F&1024)return en(le,d._0_modifier_must_precede_1_modifier,Ne,"async");if(r.parent.kind===268||r.parent.kind===312)return en(le,d._0_modifier_cannot_appear_on_a_module_or_namespace_element,Ne);if(F&64)return le.kind===123?en(le,d._0_modifier_cannot_be_used_with_1_modifier,Ne,"abstract"):en(le,d._0_modifier_must_precede_1_modifier,Ne,"abstract");if(ju(r))return en(le,d.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);F|=wx(le.kind);break;case 126:if(F&256)return en(le,d._0_modifier_already_seen,"static");if(F&8)return en(le,d._0_modifier_must_precede_1_modifier,"static","readonly");if(F&1024)return en(le,d._0_modifier_must_precede_1_modifier,"static","async");if(F&512)return en(le,d._0_modifier_must_precede_1_modifier,"static","accessor");if(r.parent.kind===268||r.parent.kind===312)return en(le,d._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(r.kind===169)return en(le,d._0_modifier_cannot_appear_on_a_parameter,"static");if(F&64)return en(le,d._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(F&16)return en(le,d._0_modifier_must_precede_1_modifier,"static","override");F|=256,_=le;break;case 129:if(F&512)return en(le,d._0_modifier_already_seen,"accessor");if(F&8)return en(le,d._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(F&128)return en(le,d._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(r.kind!==172)return en(le,d.accessor_modifier_can_only_appear_on_a_property_declaration);F|=512;break;case 148:if(F&8)return en(le,d._0_modifier_already_seen,"readonly");if(r.kind!==172&&r.kind!==171&&r.kind!==181&&r.kind!==169)return en(le,d.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(F&512)return en(le,d._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");F|=8;break;case 95:if(J.verbatimModuleSyntax&&!(r.flags&33554432)&&r.kind!==265&&r.kind!==264&&r.kind!==267&&r.parent.kind===312&&(B===1||Mn(r).impliedNodeFormat===1))return en(le,d.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(F&32)return en(le,d._0_modifier_already_seen,"export");if(F&128)return en(le,d._0_modifier_must_precede_1_modifier,"export","declare");if(F&64)return en(le,d._0_modifier_must_precede_1_modifier,"export","abstract");if(F&1024)return en(le,d._0_modifier_must_precede_1_modifier,"export","async");if(ei(r.parent))return en(le,d._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(r.kind===169)return en(le,d._0_modifier_cannot_appear_on_a_parameter,"export");if(l===4)return en(le,d._0_modifier_cannot_appear_on_a_using_declaration,"export");if(l===6)return en(le,d._0_modifier_cannot_appear_on_an_await_using_declaration,"export");F|=32;break;case 90:let st=r.parent.kind===312?r.parent:r.parent.parent;if(st.kind===267&&!lu(st))return en(le,d.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(l===4)return en(le,d._0_modifier_cannot_appear_on_a_using_declaration,"default");if(l===6)return en(le,d._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(F&32){if(U)return en(N,d.Decorators_are_not_valid_here)}else return en(le,d._0_modifier_must_precede_1_modifier,"export","default");F|=2048;break;case 138:if(F&128)return en(le,d._0_modifier_already_seen,"declare");if(F&1024)return en(le,d._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(F&16)return en(le,d._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(ei(r.parent)&&!Is(r))return en(le,d._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(r.kind===169)return en(le,d._0_modifier_cannot_appear_on_a_parameter,"declare");if(l===4)return en(le,d._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(l===6)return en(le,d._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(r.parent.flags&33554432&&r.parent.kind===268)return en(le,d.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ju(r))return en(le,d._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(F&512)return en(le,d._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");F|=128,m=le;break;case 128:if(F&64)return en(le,d._0_modifier_already_seen,"abstract");if(r.kind!==263&&r.kind!==185){if(r.kind!==174&&r.kind!==172&&r.kind!==177&&r.kind!==178)return en(le,d.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(r.parent.kind===263&&Mr(r.parent,64))){let pn=r.kind===172?d.Abstract_properties_can_only_appear_within_an_abstract_class:d.Abstract_methods_can_only_appear_within_an_abstract_class;return en(le,pn)}if(F&256)return en(le,d._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(F&2)return en(le,d._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(F&1024&&h)return en(h,d._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(F&16)return en(le,d._0_modifier_must_precede_1_modifier,"abstract","override");if(F&512)return en(le,d._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(Ru(r)&&r.name.kind===81)return en(le,d._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");F|=64;break;case 134:if(F&1024)return en(le,d._0_modifier_already_seen,"async");if(F&128||r.parent.flags&33554432)return en(le,d._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(r.kind===169)return en(le,d._0_modifier_cannot_appear_on_a_parameter,"async");if(F&64)return en(le,d._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");F|=1024,h=le;break;case 103:case 147:let Et=le.kind===103?8192:16384,Yt=le.kind===103?"in":"out";if(r.kind!==168||!(Wu(r.parent)||ei(r.parent)||Xp(r.parent)))return en(le,d._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Yt);if(F&Et)return en(le,d._0_modifier_already_seen,Yt);if(Et&8192&&F&16384)return en(le,d._0_modifier_must_precede_1_modifier,"in","out");F|=Et;break}}return r.kind===176?F&256?en(_,d._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):F&16?en(T,d._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):F&1024?en(h,d._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(r.kind===272||r.kind===271)&&F&128?en(m,d.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):r.kind===169&&F&31&&Ms(r.name)?en(r,d.A_parameter_property_may_not_be_declared_using_a_binding_pattern):r.kind===169&&F&31&&r.dotDotDotToken?en(r,d.A_parameter_property_cannot_be_declared_using_a_rest_parameter):F&1024?l_t(r,h):!1}function s_t(r){if(!r.modifiers)return!1;let a=a_t(r);return a&&ql(a,d.Modifiers_cannot_appear_here)}function BZ(r,a){let l=xr(r.modifiers,ra);return l&&l.kind!==a?l:void 0}function a_t(r){switch(r.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return xr(r.modifiers,ra);default:if(r.parent.kind===268||r.parent.kind===312)return;switch(r.kind){case 262:return BZ(r,134);case 263:case 185:return BZ(r,128);case 231:case 264:case 265:return xr(r.modifiers,ra);case 243:return r.declarationList.flags&4?BZ(r,135):xr(r.modifiers,ra);case 266:return BZ(r,87);default:E.assertNever(r)}}}function o_t(r){let a=c_t(r);return a&&ql(a,d.Decorators_are_not_valid_here)}function c_t(r){return hW(r)?xr(r.modifiers,Zl):void 0}function l_t(r,a){switch(r.kind){case 174:case 262:case 218:case 219:return!1}return en(a,d._0_modifier_cannot_be_used_here,"async")}function pk(r,a=d.Trailing_comma_not_allowed){return r&&r.hasTrailingComma?r2(r[0],r.end-1,1,a):!1}function _7e(r,a){if(r&&r.length===0){let l=r.pos-1,_=ma(a.text,r.end)+1;return r2(a,l,_-l,d.Type_parameter_list_cannot_be_empty)}return!1}function u_t(r){let a=!1,l=r.length;for(let _=0;_!!a.initializer||Ms(a.name)||fg(a))}function f_t(r){if(ie>=3){let a=r.body&&Ds(r.body)&&pW(r.body.statements);if(a){let l=__t(r.parameters);if(bn(l)){Qt(l,m=>{ga(je(m,d.This_parameter_is_not_allowed_with_use_strict_directive),vr(a,d.use_strict_directive_used_here))});let _=l.map((m,h)=>h===0?vr(m,d.Non_simple_parameter_declared_here):vr(m,d.and_here));return ga(je(a,d.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),..._),!0}}}return!1}function JZ(r){let a=Mn(r);return Gg(r)||_7e(r.typeParameters,a)||u_t(r.parameters)||d_t(r,a)||To(r)&&f_t(r)}function p_t(r){let a=Mn(r);return v_t(r)||_7e(r.typeParameters,a)}function d_t(r,a){if(!Co(r))return!1;r.typeParameters&&!(bn(r.typeParameters)>1||r.typeParameters.hasTrailingComma||r.typeParameters[0].constraint)&&a&&$c(a.fileName,[".mts",".cts"])&&en(r.typeParameters[0],d.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);let{equalsGreaterThanToken:l}=r,_=Ka(a,l.pos).line,m=Ka(a,l.end).line;return _!==m&&en(l,d.Line_terminator_not_permitted_before_arrow)}function m_t(r){let a=r.parameters[0];if(r.parameters.length!==1)return en(a?a.name:r,d.An_index_signature_must_have_exactly_one_parameter);if(pk(r.parameters,d.An_index_signature_cannot_have_a_trailing_comma),a.dotDotDotToken)return en(a.dotDotDotToken,d.An_index_signature_cannot_have_a_rest_parameter);if(I5(a))return en(a.name,d.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(a.questionToken)return en(a.questionToken,d.An_index_signature_parameter_cannot_have_a_question_mark);if(a.initializer)return en(a.name,d.An_index_signature_parameter_cannot_have_an_initializer);if(!a.type)return en(a.name,d.An_index_signature_parameter_must_have_a_type_annotation);let l=li(a.type);return _m(l,_=>!!(_.flags&8576))||AD(l)?en(a.name,d.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Bf(l,iY)?r.type?!1:en(r,d.An_index_signature_must_have_a_type_annotation):en(a.name,d.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function g_t(r){return Gg(r)||m_t(r)}function h_t(r,a){if(a&&a.length===0){let l=Mn(r),_=a.pos-1,m=ma(l.text,a.end)+1;return r2(l,_,m-_,d.Type_argument_list_cannot_be_empty)}return!1}function vj(r,a){return pk(a)||h_t(r,a)}function y_t(r){return r.questionDotToken||r.flags&64?en(r.template,d.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function f7e(r){let a=r.types;if(pk(a))return!0;if(a&&a.length===0){let l=Zs(r.token);return r2(r,a.pos,0,d._0_list_cannot_be_empty,l)}return ft(a,p7e)}function p7e(r){return t0(r)&&$E(r.expression)&&r.typeArguments?en(r,d.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):vj(r,r.typeArguments)}function v_t(r){let a=!1,l=!1;if(!Gg(r)&&r.heritageClauses)for(let _ of r.heritageClauses){if(_.token===96){if(a)return ql(_,d.extends_clause_already_seen);if(l)return ql(_,d.extends_clause_must_precede_implements_clause);if(_.types.length>1)return ql(_.types[1],d.Classes_can_only_extend_a_single_class);a=!0}else{if(E.assert(_.token===119),l)return ql(_,d.implements_clause_already_seen);l=!0}f7e(_)}}function b_t(r){let a=!1;if(r.heritageClauses)for(let l of r.heritageClauses){if(l.token===96){if(a)return ql(l,d.extends_clause_already_seen);a=!0}else return E.assert(l.token===119),ql(l,d.Interface_declaration_cannot_have_implements_clause);f7e(l)}return!1}function zZ(r){if(r.kind!==167)return!1;let a=r;return a.expression.kind===226&&a.expression.operatorToken.kind===28?en(a.expression,d.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function uhe(r){if(r.asteriskToken){if(E.assert(r.kind===262||r.kind===218||r.kind===174),r.flags&33554432)return en(r.asteriskToken,d.Generators_are_not_allowed_in_an_ambient_context);if(!r.body)return en(r.asteriskToken,d.An_overload_signature_cannot_be_declared_as_a_generator)}}function _he(r,a){return!!r&&en(r,a)}function d7e(r,a){return!!r&&en(r,a)}function S_t(r,a){let l=new Map;for(let _ of r.properties){if(_.kind===305){if(a){let T=eo(_.expression);if(Vu(T)||xa(T))return en(_.expression,d.A_rest_element_cannot_contain_a_binding_pattern)}continue}let m=_.name;if(m.kind===167&&zZ(m),_.kind===304&&!a&&_.objectAssignmentInitializer&&en(_.equalsToken,d.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),m.kind===81&&en(m,d.Private_identifiers_are_not_allowed_outside_class_bodies),Yp(_)&&_.modifiers)for(let T of _.modifiers)ra(T)&&(T.kind!==134||_.kind!==174)&&en(T,d._0_modifier_cannot_be_used_here,Qc(T));else if(Hre(_)&&_.modifiers)for(let T of _.modifiers)ra(T)&&en(T,d._0_modifier_cannot_be_used_here,Qc(T));let h;switch(_.kind){case 304:case 303:d7e(_.exclamationToken,d.A_definite_assignment_assertion_is_not_permitted_in_this_context),_he(_.questionToken,d.An_object_member_cannot_be_declared_optional),m.kind===9&&dhe(m),h=4;break;case 174:h=8;break;case 177:h=1;break;case 178:h=2;break;default:E.assertNever(_,"Unexpected syntax kind:"+_.kind)}if(!a){let T=mhe(m);if(T===void 0)continue;let N=l.get(T);if(!N)l.set(T,h);else if(h&8&&N&8)en(m,d.Duplicate_identifier_0,Qc(m));else if(h&4&&N&4)en(m,d.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Qc(m));else if(h&3&&N&3)if(N!==3&&h!==N)l.set(T,h|N);else return en(m,d.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return en(m,d.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function x_t(r){T_t(r.tagName),vj(r,r.typeArguments);let a=new Map;for(let l of r.attributes.properties){if(l.kind===293)continue;let{name:_,initializer:m}=l,h=JE(_);if(!a.get(h))a.set(h,!0);else return en(_,d.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(m&&m.kind===294&&!m.expression)return en(m,d.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function T_t(r){if(Cr(r)&&md(r.expression))return en(r.expression,d.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(md(r)&&$5(J)&&!sC(r.namespace.escapedText))return en(r,d.React_components_cannot_include_JSX_namespace_names)}function k_t(r){if(r.expression&&s3(r.expression))return en(r.expression,d.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function m7e(r){if(Fh(r))return!0;if(r.kind===250&&r.awaitModifier&&!(r.flags&65536)){let a=Mn(r);if(s5(r)){if(!n2(a))switch(vx(a,J)||Ra.add(vr(r.awaitModifier,d.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)),B){case 100:case 199:if(a.impliedNodeFormat===1){Ra.add(vr(r.awaitModifier,d.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(ie>=4)break;default:Ra.add(vr(r.awaitModifier,d.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));break}}else if(!n2(a)){let l=vr(r.awaitModifier,d.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),_=yf(r);if(_&&_.kind!==176){E.assert((Sl(_)&2)===0,"Enclosing function should never be an async function.");let m=vr(_,d.Did_you_mean_to_mark_this_function_as_async);ga(l,m)}return Ra.add(l),!0}return!1}if(y8(r)&&!(r.flags&65536)&&Ie(r.initializer)&&r.initializer.escapedText==="async")return en(r.initializer,d.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(r.initializer.kind===261){let a=r.initializer;if(!phe(a)){let l=a.declarations;if(!l.length)return!1;if(l.length>1){let m=r.kind===249?d.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:d.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return ql(a.declarations[1],m)}let _=l[0];if(_.initializer){let m=r.kind===249?d.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:d.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return en(_.name,m)}if(_.type){let m=r.kind===249?d.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:d.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return en(_,m)}}}return!1}function C_t(r){if(!(r.flags&33554432)&&r.parent.kind!==187&&r.parent.kind!==264){if(ie<1)return en(r.name,d.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(ie<2&&Di(r.name))return en(r.name,d.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.body===void 0&&!Mr(r,64))return r2(r,r.end-1,1,d._0_expected,"{")}if(r.body){if(Mr(r,64))return en(r,d.An_abstract_accessor_cannot_have_an_implementation);if(r.parent.kind===187||r.parent.kind===264)return en(r.body,d.An_implementation_cannot_be_declared_in_ambient_contexts)}if(r.typeParameters)return en(r.name,d.An_accessor_cannot_have_type_parameters);if(!E_t(r))return en(r.name,r.kind===177?d.A_get_accessor_cannot_have_parameters:d.A_set_accessor_must_have_exactly_one_parameter);if(r.kind===178){if(r.type)return en(r.name,d.A_set_accessor_cannot_have_a_return_type_annotation);let a=E.checkDefined(hE(r),"Return value does not match parameter count assertion.");if(a.dotDotDotToken)return en(a.dotDotDotToken,d.A_set_accessor_cannot_have_rest_parameter);if(a.questionToken)return en(a.questionToken,d.A_set_accessor_cannot_have_an_optional_parameter);if(a.initializer)return en(r.name,d.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function E_t(r){return fhe(r)||r.parameters.length===(r.kind===177?0:1)}function fhe(r){if(r.parameters.length===(r.kind===177?1:2))return Uv(r)}function D_t(r){if(r.operator===158){if(r.type.kind!==155)return en(r.type,d._0_expected,Zs(155));let a=xw(r.parent);if(Qn(a)&&q2(a)){let l=Tx(a);l&&(a=Kk(l)||l)}switch(a.kind){case 260:let l=a;if(l.name.kind!==80)return en(r,d.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!eE(l))return en(r,d.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(l.parent.flags&2))return en(a.name,d.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!zs(a)||!yE(a))return en(a.name,d.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Mr(a,8))return en(a.name,d.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return en(r,d.unique_symbol_types_are_not_allowed_here)}}else if(r.operator===148&&r.type.kind!==188&&r.type.kind!==189)return ql(r,d.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Zs(155))}function YD(r,a){if(XKe(r))return en(r,a)}function g7e(r){if(JZ(r))return!0;if(r.kind===174){if(r.parent.kind===210){if(r.modifiers&&!(r.modifiers.length===1&&Da(r.modifiers).kind===134))return ql(r,d.Modifiers_cannot_appear_here);if(_he(r.questionToken,d.An_object_member_cannot_be_declared_optional))return!0;if(d7e(r.exclamationToken,d.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(r.body===void 0)return r2(r,r.end-1,1,d._0_expected,"{")}if(uhe(r))return!0}if(ei(r.parent)){if(ie<2&&Di(r.name))return en(r.name,d.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(r.flags&33554432)return YD(r.name,d.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.kind===174&&!r.body)return YD(r.name,d.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(r.parent.kind===264)return YD(r.name,d.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(r.parent.kind===187)return YD(r.name,d.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function P_t(r){let a=r;for(;a;){if(Nk(a))return en(r,d.Jump_target_cannot_cross_function_boundary);switch(a.kind){case 256:if(r.label&&a.label.escapedText===r.label.escapedText)return r.kind===251&&!$0(a.statement,!0)?en(r,d.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(r.kind===252&&!r.label)return!1;break;default:if($0(a,!1)&&!r.label)return!1;break}a=a.parent}if(r.label){let l=r.kind===252?d.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:d.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return en(r,l)}else{let l=r.kind===252?d.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:d.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return en(r,l)}}function w_t(r){if(r.dotDotDotToken){let a=r.parent.elements;if(r!==Pa(a))return en(r,d.A_rest_element_must_be_last_in_a_destructuring_pattern);if(pk(a,d.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),r.propertyName)return en(r.name,d.A_rest_element_cannot_have_a_property_name)}if(r.dotDotDotToken&&r.initializer)return r2(r,r.initializer.pos-1,1,d.A_rest_element_cannot_have_an_initializer)}function h7e(r){return vf(r)||r.kind===224&&r.operator===41&&r.operand.kind===9}function A_t(r){return r.kind===10||r.kind===224&&r.operator===41&&r.operand.kind===10}function N_t(r){if((Cr(r)||ko(r)&&h7e(r.argumentExpression))&&gc(r.expression))return!!(Gc(r).flags&1056)}function y7e(r){let a=r.initializer;if(a){let l=!(h7e(a)||N_t(a)||a.kind===112||a.kind===97||A_t(a));if((Q7(r)||Ni(r)&&WZ(r))&&!r.type){if(l)return en(a,d.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return en(a,d.Initializers_are_not_allowed_in_ambient_contexts)}}function I_t(r){let a=i2(r),l=a&7;if(Ms(r.name))switch(l){case 6:return en(r,d._0_declarations_may_not_have_binding_patterns,"await using");case 4:return en(r,d._0_declarations_may_not_have_binding_patterns,"using")}if(r.parent.parent.kind!==249&&r.parent.parent.kind!==250){if(a&33554432)y7e(r);else if(!r.initializer){if(Ms(r.name)&&!Ms(r.parent))return en(r,d.A_destructuring_declaration_must_have_an_initializer);switch(l){case 6:return en(r,d._0_declarations_must_be_initialized,"await using");case 4:return en(r,d._0_declarations_must_be_initialized,"using");case 2:return en(r,d._0_declarations_must_be_initialized,"const")}}}if(r.exclamationToken&&(r.parent.parent.kind!==243||!r.type||r.initializer||a&33554432)){let _=r.initializer?d.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?d.A_definite_assignment_assertion_is_not_permitted_in_this_context:d.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return en(r.exclamationToken,_)}return(B<5||Mn(r).impliedNodeFormat===1)&&B!==4&&!(r.parent.parent.flags&33554432)&&Mr(r.parent.parent,32)&&v7e(r.name),!!l&&b7e(r.name)}function v7e(r){if(r.kind===80){if(ur(r)==="__esModule")return L_t("noEmit",r,d.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{let a=r.elements;for(let l of a)if(!xl(l))return v7e(l.name)}return!1}function b7e(r){if(r.kind===80){if(r.escapedText==="let")return en(r,d.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{let a=r.elements;for(let l of a)xl(l)||b7e(l.name)}return!1}function phe(r){let a=r.declarations;if(pk(r.declarations))return!0;if(!r.declarations.length)return r2(r,a.pos,a.end-a.pos,d.Variable_declaration_list_cannot_be_empty);let l=r.flags&7;return(l===4||l===6)&&iO(r.parent)?en(r,l===4?d.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:d.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):l===6?RNe(r):!1}function S7e(r){switch(r.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return S7e(r.parent)}return!0}function F_t(r){if(!S7e(r.parent)){let a=i2(r.declarationList)&7;if(a){let l=a===1?"let":a===2?"const":a===4?"using":a===6?"await using":E.fail("Unknown BlockScope flag");return en(r,d._0_declarations_can_only_be_declared_inside_a_block,l)}}}function O_t(r){let a=r.name.escapedText;switch(r.keywordToken){case 105:if(a!=="target")return en(r.name,d._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ci(r.name.escapedText),Zs(r.keywordToken),"target");break;case 102:if(a!=="meta")return en(r.name,d._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Ci(r.name.escapedText),Zs(r.keywordToken),"meta");break}}function n2(r){return r.parseDiagnostics.length>0}function ql(r,a,...l){let _=Mn(r);if(!n2(_)){let m=Im(_,r.pos);return Ra.add(Nl(_,m.start,m.length,a,...l)),!0}return!1}function r2(r,a,l,_,...m){let h=Mn(r);return n2(h)?!1:(Ra.add(Nl(h,a,l,_,...m)),!0)}function L_t(r,a,l,..._){let m=Mn(a);return n2(m)?!1:(y0(r,a,l,..._),!0)}function en(r,a,...l){let _=Mn(r);return n2(_)?!1:(Ra.add(vr(r,a,...l)),!0)}function M_t(r){let a=Qn(r)?N5(r):void 0,l=r.typeParameters||a&&Pl(a);if(l){let _=l.pos===l.end?l.pos:ma(Mn(r).text,l.pos);return r2(r,_,l.end-_,d.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function R_t(r){let a=r.type||yp(r);if(a)return en(a,d.Type_annotation_cannot_appear_on_a_constructor_declaration)}function j_t(r){if(Na(r.name)&&Yn(r.name.expression)&&r.name.expression.operatorToken.kind===103)return en(r.parent.members[0],d.A_mapped_type_may_not_declare_properties_or_methods);if(ei(r.parent)){if(ca(r.name)&&r.name.text==="constructor")return en(r.name,d.Classes_may_not_have_a_field_named_constructor);if(YD(r.name,d.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(ie<2&&Di(r.name))return en(r.name,d.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ie<2&&u_(r))return en(r.name,d.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(u_(r)&&_he(r.questionToken,d.An_accessor_property_cannot_be_declared_optional))return!0}else if(r.parent.kind===264){if(YD(r.name,d.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(E.assertNode(r,bf),r.initializer)return en(r.initializer,d.An_interface_property_cannot_have_an_initializer)}else if(nf(r.parent)){if(YD(r.name,d.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(E.assertNode(r,bf),r.initializer)return en(r.initializer,d.A_type_literal_property_cannot_have_an_initializer)}if(r.flags&33554432&&y7e(r),Is(r)&&r.exclamationToken&&(!ei(r.parent)||!r.type||r.initializer||r.flags&33554432||zs(r)||Gv(r))){let a=r.initializer?d.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:r.type?d.A_definite_assignment_assertion_is_not_permitted_in_this_context:d.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return en(r.exclamationToken,a)}}function B_t(r){return r.kind===264||r.kind===265||r.kind===272||r.kind===271||r.kind===278||r.kind===277||r.kind===270||Mr(r,2208)?!1:ql(r,d.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function J_t(r){for(let a of r.statements)if((ku(a)||a.kind===243)&&B_t(a))return!0;return!1}function z_t(r){return!!(r.flags&33554432)&&J_t(r)}function Fh(r){if(r.flags&33554432){if(!Hr(r).hasReportedStatementInAmbientContext&&(As(r.parent)||G0(r.parent)))return Hr(r).hasReportedStatementInAmbientContext=ql(r,d.An_implementation_cannot_be_declared_in_ambient_contexts);if(r.parent.kind===241||r.parent.kind===268||r.parent.kind===312){let l=Hr(r.parent);if(!l.hasReportedStatementInAmbientContext)return l.hasReportedStatementInAmbientContext=ql(r,d.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function dhe(r){let a=Qc(r).includes("."),l=r.numericLiteralFlags&16;a||l||+r.text<=9007199254740991||Vl(!1,vr(r,d.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function V_t(r){return!!(!(S1(r.parent)||x1(r.parent)&&S1(r.parent.parent))&&ie<7&&en(r,d.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function W_t(r,a,...l){let _=Mn(r);if(!n2(_)){let m=Im(_,r.pos);return Ra.add(Nl(_,Dc(m),0,a,...l)),!0}return!1}function U_t(){return Au||(Au=[],me.forEach((r,a)=>{mU.test(a)&&Au.push(r)})),Au}function q_t(r){var a;return r.isTypeOnly&&r.name&&r.namedBindings?en(r,d.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):r.isTypeOnly&&((a=r.namedBindings)==null?void 0:a.kind)===275?x7e(r.namedBindings):!1}function x7e(r){return!!Qt(r.elements,a=>{if(a.isTypeOnly)return ql(a,a.kind===276?d.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:d.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function H_t(r){if(J.verbatimModuleSyntax&&B===1)return en(r,d.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(B===5)return en(r,d.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(r.typeArguments)return en(r,d.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);let a=r.arguments;if(B!==99&&B!==199&&B!==100&&(pk(a),a.length>1)){let _=a[1];return en(_,d.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(a.length===0||a.length>2)return en(r,d.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);let l=xr(a,qd);return l?en(l,d.Argument_of_dynamic_import_cannot_be_spread_element):!1}function G_t(r,a){let l=Ir(r);if(l&20&&a.flags&1048576)return xr(a.types,_=>{if(_.flags&524288){let m=l&Ir(_);if(m&4)return r.target===_.target;if(m&16)return!!r.aliasSymbol&&r.aliasSymbol===_.aliasSymbol}return!1})}function $_t(r,a){if(Ir(r)&128&&_m(a,F0))return xr(a.types,l=>!F0(l))}function X_t(r,a){let l=0;if(Ps(r,l).length>0||(l=1,Ps(r,l).length>0))return xr(a.types,m=>Ps(m,l).length>0)}function Q_t(r,a){let l;if(!(r.flags&406978556)){let _=0;for(let m of a.types)if(!(m.flags&406978556)){let h=ya([sg(r),sg(m)]);if(h.flags&4194304)return m;if(Ad(h)||h.flags&1048576){let T=h.flags&1048576?Lh(h.types,Ad):1;T>=_&&(l=m,_=T)}}}return l}function Y_t(r){if(oc(r,67108864)){let a=Hc(r,l=>!(l.flags&402784252));if(!(a.flags&131072))return a}return r}function T7e(r,a,l){if(a.flags&1048576&&r.flags&2621440){let _=J8e(a,r);if(_)return _;let m=Qa(r);if(m){let h=B8e(m,a);if(h){let T=eme(a,Kt(h,N=>[()=>Vn(N),N.escapedName]),l);if(T!==a)return T}}}}function mhe(r){let a=P2(r);return a||(Na(r)?Dme(su(r.expression)):void 0)}function VZ(r){return Un===r||(Un=r,cn=Dv(r)),cn}function i2(r){return Gt===r||(Gt=r,Tn=Wh(r)),Tn}function WZ(r){let a=i2(r)&7;return a===2||a===4||a===6}}function rLe(e){return!G0(e)}function jbe(e){return e.kind!==262&&e.kind!==174||!!e.body}function Bbe(e){switch(e.parent.kind){case 276:case 281:return Ie(e);default:return ih(e)}}function Jbe(e){switch(e){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function Du(e){return!!(e.flags&1)}function dU(e){return!!(e.flags&2)}function iLe(e){return{getCommonSourceDirectory:e.getCommonSourceDirectory?()=>e.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>e.getCurrentDirectory(),getSymlinkCache:Js(e,e.getSymlinkCache),getPackageJsonInfoCache:()=>{var t;return(t=e.getPackageJsonInfoCache)==null?void 0:t.call(e)},useCaseSensitiveFileNames:Js(e,e.useCaseSensitiveFileNames),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:t=>e.getProjectReferenceRedirect(t),isSourceOfProjectReferenceRedirect:t=>e.isSourceOfProjectReferenceRedirect(t),fileExists:t=>e.fileExists(t),getFileIncludeReasons:()=>e.getFileIncludeReasons(),readFile:e.readFile?t=>e.readFile(t):void 0}}var mU,WO,Xie,Qie,Yie,Zie,UO,gU,qO,HO,zbe,GO,Kie,Tf,hU,sLe=ze({"src/compiler/checker.ts"(){"use strict";Rs(),Gie(),u2(),mU=/^".+"$/,WO="(anonymous)",Xie=1,Qie=1,Yie=1,Zie=1,UO=(e=>(e[e.None=0]="None",e[e.TypeofEQString=1]="TypeofEQString",e[e.TypeofEQNumber=2]="TypeofEQNumber",e[e.TypeofEQBigInt=4]="TypeofEQBigInt",e[e.TypeofEQBoolean=8]="TypeofEQBoolean",e[e.TypeofEQSymbol=16]="TypeofEQSymbol",e[e.TypeofEQObject=32]="TypeofEQObject",e[e.TypeofEQFunction=64]="TypeofEQFunction",e[e.TypeofEQHostObject=128]="TypeofEQHostObject",e[e.TypeofNEString=256]="TypeofNEString",e[e.TypeofNENumber=512]="TypeofNENumber",e[e.TypeofNEBigInt=1024]="TypeofNEBigInt",e[e.TypeofNEBoolean=2048]="TypeofNEBoolean",e[e.TypeofNESymbol=4096]="TypeofNESymbol",e[e.TypeofNEObject=8192]="TypeofNEObject",e[e.TypeofNEFunction=16384]="TypeofNEFunction",e[e.TypeofNEHostObject=32768]="TypeofNEHostObject",e[e.EQUndefined=65536]="EQUndefined",e[e.EQNull=131072]="EQNull",e[e.EQUndefinedOrNull=262144]="EQUndefinedOrNull",e[e.NEUndefined=524288]="NEUndefined",e[e.NENull=1048576]="NENull",e[e.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",e[e.Truthy=4194304]="Truthy",e[e.Falsy=8388608]="Falsy",e[e.IsUndefined=16777216]="IsUndefined",e[e.IsNull=33554432]="IsNull",e[e.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",e[e.All=134217727]="All",e[e.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",e[e.BaseStringFacts=12582401]="BaseStringFacts",e[e.StringStrictFacts=16317953]="StringStrictFacts",e[e.StringFacts=16776705]="StringFacts",e[e.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",e[e.EmptyStringFacts=12582401]="EmptyStringFacts",e[e.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",e[e.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",e[e.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",e[e.BaseNumberFacts=12582146]="BaseNumberFacts",e[e.NumberStrictFacts=16317698]="NumberStrictFacts",e[e.NumberFacts=16776450]="NumberFacts",e[e.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",e[e.ZeroNumberFacts=12582146]="ZeroNumberFacts",e[e.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",e[e.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",e[e.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",e[e.BaseBigIntFacts=12581636]="BaseBigIntFacts",e[e.BigIntStrictFacts=16317188]="BigIntStrictFacts",e[e.BigIntFacts=16775940]="BigIntFacts",e[e.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",e[e.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",e[e.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",e[e.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",e[e.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",e[e.BaseBooleanFacts=12580616]="BaseBooleanFacts",e[e.BooleanStrictFacts=16316168]="BooleanStrictFacts",e[e.BooleanFacts=16774920]="BooleanFacts",e[e.FalseStrictFacts=12121864]="FalseStrictFacts",e[e.FalseFacts=12580616]="FalseFacts",e[e.TrueStrictFacts=7927560]="TrueStrictFacts",e[e.TrueFacts=16774920]="TrueFacts",e[e.SymbolStrictFacts=7925520]="SymbolStrictFacts",e[e.SymbolFacts=16772880]="SymbolFacts",e[e.ObjectStrictFacts=7888800]="ObjectStrictFacts",e[e.ObjectFacts=16736160]="ObjectFacts",e[e.FunctionStrictFacts=7880640]="FunctionStrictFacts",e[e.FunctionFacts=16728e3]="FunctionFacts",e[e.VoidFacts=9830144]="VoidFacts",e[e.UndefinedFacts=26607360]="UndefinedFacts",e[e.NullFacts=42917664]="NullFacts",e[e.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",e[e.EmptyObjectFacts=83886079]="EmptyObjectFacts",e[e.UnknownFacts=83886079]="UnknownFacts",e[e.AllTypeofNE=556800]="AllTypeofNE",e[e.OrFactsMask=8256]="OrFactsMask",e[e.AndFactsMask=134209471]="AndFactsMask",e))(UO||{}),gU=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),qO=(e=>(e[e.Normal=0]="Normal",e[e.Contextual=1]="Contextual",e[e.Inferential=2]="Inferential",e[e.SkipContextSensitive=4]="SkipContextSensitive",e[e.SkipGenericFunctions=8]="SkipGenericFunctions",e[e.IsForSignatureHelp=16]="IsForSignatureHelp",e[e.RestBindingElement=32]="RestBindingElement",e[e.TypeOnly=64]="TypeOnly",e))(qO||{}),HO=(e=>(e[e.None=0]="None",e[e.BivariantCallback=1]="BivariantCallback",e[e.StrictCallback=2]="StrictCallback",e[e.IgnoreReturnTypes=4]="IgnoreReturnTypes",e[e.StrictArity=8]="StrictArity",e[e.StrictTopSignature=16]="StrictTopSignature",e[e.Callback=3]="Callback",e))(HO||{}),zbe=UI(jbe,rLe),GO=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),Kie=class{},(e=>{e.JSX="JSX",e.IntrinsicElements="IntrinsicElements",e.ElementClass="ElementClass",e.ElementAttributesPropertyNameContainer="ElementAttributesProperty",e.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",e.Element="Element",e.ElementType="ElementType",e.IntrinsicAttributes="IntrinsicAttributes",e.IntrinsicClassAttributes="IntrinsicClassAttributes",e.LibraryManagedAttributes="LibraryManagedAttributes"})(Tf||(Tf={})),hU=class B7e{constructor(t,n,i){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var s;n instanceof B7e;)n=n.inner;this.inner=n,this.moduleResolverHost=i,this.context=t,this.canTrackSymbol=!!((s=this.inner)!=null&&s.trackSymbol)}trackSymbol(t,n,i){var s,o;if((s=this.inner)!=null&&s.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(t,n,i))return this.onDiagnosticReported(),!0;t.flags&262144||((o=this.context).trackedSymbols??(o.trackedSymbols=[])).push([t,n,i])}return!1}reportInaccessibleThisError(){var t;(t=this.inner)!=null&&t.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(t){var n;(n=this.inner)!=null&&n.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(t))}reportInaccessibleUniqueSymbolError(){var t;(t=this.inner)!=null&&t.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var t;(t=this.inner)!=null&&t.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(t){var n;(n=this.inner)!=null&&n.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(t))}reportTruncationError(){var t;(t=this.inner)!=null&&t.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(t,n){var i;(i=this.inner)!=null&&i.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(t,n))}trackExternalModuleSymbolOfImportTypeNode(t){var n;(n=this.inner)!=null&&n.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(t))}reportNonlocalAugmentation(t,n,i){var s;(s=this.inner)!=null&&s.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(t,n,i))}reportNonSerializableProperty(t){var n;(n=this.inner)!=null&&n.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(t))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function Ge(e,t,n,i){if(e===void 0)return e;let s=t(e),o;if(s!==void 0)return ss(s)?o=(i||uLe)(s):o=s,E.assertNode(o,n),o}function Dn(e,t,n,i,s){if(e===void 0)return e;let o=e.length;(i===void 0||i<0)&&(i=0),(s===void 0||s>o-i)&&(s=o-i);let c,u=-1,f=-1;i>0||so-i)&&(s=o-i),Vbe(e,t,n,i,s)}function Vbe(e,t,n,i,s){let o,c=e.length;(i>0||s=2&&(s=aLe(s,n)),n.setLexicalEnvironmentFlags(1,!1)),n.suspendLexicalEnvironment(),s}function aLe(e,t){let n;for(let i=0;i{let c=iu,addSource:Se,setSourceContent:se,addName:Y,addMapping:Me,appendSourceMap:ke,toJSON:me,toString:()=>JSON.stringify(me())};function Se(Qe){o();let at=px(i,Qe,e.getCurrentDirectory(),e.getCanonicalFileName,!0),ht=g.get(at);return ht===void 0&&(ht=f.length,f.push(at),u.push(Qe),g.set(at,ht)),c(),ht}function se(Qe,at){if(o(),at!==null){for(p||(p=[]);p.lengthat||ae===at&&_e>ht)}function Me(Qe,at,ht,Je,lt,Jt){E.assert(Qe>=ie,"generatedLine cannot backtrack"),E.assert(at>=0,"generatedCharacter cannot be negative"),E.assert(ht===void 0||ht>=0,"sourceIndex cannot be negative"),E.assert(Je===void 0||Je>=0,"sourceLine cannot be negative"),E.assert(lt===void 0||lt>=0,"sourceCharacter cannot be negative"),o(),(ve(Qe,at)||xe(ht,Je,lt))&&(_t(),ie=Qe,B=at,K=!1,oe=!1,H=!0),ht!==void 0&&Je!==void 0&<!==void 0&&(Z=ht,ae=Je,_e=lt,K=!0,Jt!==void 0&&($=Jt,oe=!0)),c()}function ke(Qe,at,ht,Je,lt,Jt){E.assert(Qe>=ie,"generatedLine cannot backtrack"),E.assert(at>=0,"generatedCharacter cannot be negative"),o();let Gt=[],Tn,Un=bU(ht.mappings);for(let cn of Un){if(Jt&&(cn.generatedLine>Jt.line||cn.generatedLine===Jt.line&&cn.generatedCharacter>Jt.character))break;if(lt&&(cn.generatedLine=1024&&mt()}function _t(){if(!(!H||!he())){if(o(),w0&&(C+=String.fromCharCode.apply(void 0,x),x.length=0)}function me(){return _t(),mt(),{version:3,file:t,sourceRoot:n,sources:f,names:y,mappings:C,sourcesContent:p}}function Oe(Qe){Qe<0?Qe=(-Qe<<1)+1:Qe=Qe<<1;do{let at=Qe&31;Qe=Qe>>5,Qe>0&&(at=at|32),be(pLe(at))}while(Qe>0)}}function yU(e,t){return{getLineCount:()=>t.length,getLineText:n=>e.substring(t[n],t[n+1])}}function tse(e){for(let t=e.getLineCount()-1;t>=0;t--){let n=e.getLineText(t),i=XO.exec(n);if(i)return i[1].trimEnd();if(!n.match(QO))break}}function fLe(e){return typeof e=="string"||e===null}function nse(e){return e!==null&&typeof e=="object"&&e.version===3&&typeof e.file=="string"&&typeof e.mappings=="string"&&ss(e.sources)&&hi(e.sources,os)&&(e.sourceRoot===void 0||e.sourceRoot===null||typeof e.sourceRoot=="string")&&(e.sourcesContent===void 0||e.sourcesContent===null||ss(e.sourcesContent)&&hi(e.sourcesContent,fLe))&&(e.names===void 0||e.names===null||ss(e.names)&&hi(e.names,os))}function vU(e){try{let t=JSON.parse(e);if(nse(t))return t}catch{}}function bU(e){let t=!1,n=0,i=0,s=0,o=0,c=0,u=0,f=0,g;return{get pos(){return n},get error(){return g},get state(){return p(!0,!0)},next(){for(;!t&&n=e.length)return S("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;let X=dLe(e.charCodeAt(n));if(X===-1)return S("Invalid character in VLQ"),-1;O=(X&32)!==0,V=V|(X&31)<>1,V=-V):V=V>>1,V}}function Ube(e,t){return e===t||e.generatedLine===t.generatedLine&&e.generatedCharacter===t.generatedCharacter&&e.sourceIndex===t.sourceIndex&&e.sourceLine===t.sourceLine&&e.sourceCharacter===t.sourceCharacter&&e.nameIndex===t.nameIndex}function rse(e){return e.sourceIndex!==void 0&&e.sourceLine!==void 0&&e.sourceCharacter!==void 0}function pLe(e){return e>=0&&e<26?65+e:e>=26&&e<52?97+e-26:e>=52&&e<62?48+e-52:e===62?43:e===63?47:E.fail(`${e}: not a base64 value`)}function dLe(e){return e>=65&&e<=90?e-65:e>=97&&e<=122?e-97+26:e>=48&&e<=57?e-48+52:e===43?62:e===47?63:-1}function qbe(e){return e.sourceIndex!==void 0&&e.sourcePosition!==void 0}function Hbe(e,t){return e.generatedPosition===t.generatedPosition&&e.sourceIndex===t.sourceIndex&&e.sourcePosition===t.sourcePosition}function mLe(e,t){return E.assert(e.sourceIndex===t.sourceIndex),Io(e.sourcePosition,t.sourcePosition)}function gLe(e,t){return Io(e.generatedPosition,t.generatedPosition)}function hLe(e){return e.sourcePosition}function yLe(e){return e.generatedPosition}function ise(e,t,n){let i=Xr(n),s=t.sourceRoot?cs(t.sourceRoot,i):i,o=cs(t.file,i),c=e.getSourceFileLike(o),u=t.sources.map(z=>cs(z,s)),f=new Map(u.map((z,V)=>[e.getCanonicalFileName(z),V])),g,p,y;return{getSourcePosition:O,getGeneratedPosition:D};function S(z){let V=c!==void 0?SP(c,z.generatedLine,z.generatedCharacter,!0):-1,X,J;if(rse(z)){let ie=e.getSourceFileLike(u[z.sourceIndex]);X=t.sources[z.sourceIndex],J=ie!==void 0?SP(ie,z.sourceLine,z.sourceCharacter,!0):-1}return{generatedPosition:V,source:X,sourceIndex:z.sourceIndex,sourcePosition:J,nameIndex:z.nameIndex}}function x(){if(g===void 0){let z=bU(t.mappings),V=hs(z,S);z.error!==void 0?(e.log&&e.log(`Encountered error while decoding sourcemap: ${z.error}`),g=Ve):g=V}return g}function C(z){if(y===void 0){let V=[];for(let X of x()){if(!qbe(X))continue;let J=V[X.sourceIndex];J||(V[X.sourceIndex]=J=[]),J.push(X)}y=V.map(X=>k4(X,mLe,Hbe))}return y[z]}function w(){if(p===void 0){let z=[];for(let V of x())z.push(V);p=k4(z,gLe,Hbe)}return p}function D(z){let V=f.get(e.getCanonicalFileName(z.fileName));if(V===void 0)return z;let X=C(V);if(!ft(X))return z;let J=ax(X,z.pos,hLe,Io);J<0&&(J=~J);let ie=X[J];return ie===void 0||ie.sourceIndex!==V?z:{fileName:o,pos:ie.generatedPosition}}function O(z){let V=w();if(!ft(V))return z;let X=ax(V,z.pos,yLe,Io);X<0&&(X=~X);let J=V[X];return J===void 0||!qbe(J)?z:{fileName:u[J.sourceIndex],pos:J.sourcePosition}}}var SU,XO,QO,YO,vLe=ze({"src/compiler/sourcemap.ts"(){"use strict";Rs(),u2(),SU=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,XO=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,QO=/^\s*(\/\/[@#] .*)?$/,YO={getSourcePosition:No,getGeneratedPosition:No}}});function _u(e){return e=cc(e),e?Va(e):0}function bLe(e){return!e||!lh(e)?!1:ft(e.elements,Gbe)}function Gbe(e){return e.propertyName!==void 0&&e.propertyName.escapedText==="default"}function Zp(e,t){return n;function n(s){return s.kind===312?t(s):i(s)}function i(s){return e.factory.createBundle(Kt(s.sourceFiles,t),s.prepends)}}function sse(e){return!!Yk(e)}function ZO(e){if(Yk(e))return!0;let t=e.importClause&&e.importClause.namedBindings;if(!t||!lh(t))return!1;let n=0;for(let i of t.elements)Gbe(i)&&n++;return n>0&&n!==t.elements.length||!!(t.elements.length-n)&&Sx(e)}function xU(e){return!ZO(e)&&(Sx(e)||!!e.importClause&&lh(e.importClause.namedBindings)&&bLe(e.importClause.namedBindings))}function TU(e,t){let n=e.getEmitResolver(),i=e.getCompilerOptions(),s=[],o=new DU,c=[],u=new Map,f,g=!1,p,y=!1,S=!1,x=!1;for(let D of t.statements)switch(D.kind){case 272:s.push(D),!S&&ZO(D)&&(S=!0),!x&&xU(D)&&(x=!0);break;case 271:D.moduleReference.kind===283&&s.push(D);break;case 278:if(D.moduleSpecifier)if(!D.exportClause)s.push(D),y=!0;else if(s.push(D),kp(D.exportClause))w(D);else{let O=D.exportClause.name;u.get(ur(O))||(y3(c,_u(D),O),u.set(ur(O),!0),f=_n(f,O)),S=!0}else w(D);break;case 277:D.isExportEquals&&!p&&(p=D);break;case 243:if(Mr(D,32))for(let O of D.declarationList.declarations)f=$be(O,u,f,c);break;case 262:if(Mr(D,32))if(Mr(D,2048))g||(y3(c,_u(D),e.factory.getDeclarationName(D)),g=!0);else{let O=D.name;u.get(ur(O))||(y3(c,_u(D),O),u.set(ur(O),!0),f=_n(f,O))}break;case 263:if(Mr(D,32))if(Mr(D,2048))g||(y3(c,_u(D),e.factory.getDeclarationName(D)),g=!0);else{let O=D.name;O&&!u.get(ur(O))&&(y3(c,_u(D),O),u.set(ur(O),!0),f=_n(f,O))}break}let C=dW(e.factory,e.getEmitHelperFactory(),t,i,y,S,x);return C&&s.unshift(C),{externalImports:s,exportSpecifiers:o,exportEquals:p,hasExportStarsToExportValues:y,exportedBindings:c,exportedNames:f,externalHelpersImportDeclaration:C};function w(D){for(let O of Vs(D.exportClause,kp).elements)if(!u.get(ur(O.name))){let z=O.propertyName||O.name;D.moduleSpecifier||o.add(z,O);let V=n.getReferencedImportDeclaration(z)||n.getReferencedValueDeclaration(z);V&&y3(c,_u(V),O.name),u.set(ur(O.name),!0),f=_n(f,O.name)}}}function $be(e,t,n,i){if(Ms(e.name))for(let s of e.name.elements)xl(s)||(n=$be(s,t,n,i));else if(!Lo(e.name)){let s=ur(e.name);t.get(s)||(t.set(s,!0),n=_n(n,e.name),uh(e.name)&&y3(i,_u(e),e.name))}return n}function y3(e,t,n){let i=e[t];return i?i.push(n):e[t]=i=[n],i}function ub(e){return $a(e)||e.kind===9||p_(e.kind)||Ie(e)}function Xd(e){return!Ie(e)&&ub(e)}function v3(e){return e>=65&&e<=79}function b3(e){switch(e){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function KO(e){if(!Il(e))return;let t=eo(e.expression);return x2(t)?t:void 0}function Xbe(e,t,n){for(let i=t;ixLe(i,t,n))}function SLe(e){return TLe(e)||rc(e)}function t9(e){return Fr(e.members,SLe)}function xLe(e,t,n){return Is(e)&&(!!e.initializer||!t)&&Yc(e)===n}function TLe(e){return Is(e)&&Yc(e)}function rA(e){return e.kind===172&&e.initializer!==void 0}function ase(e){return!zs(e)&&(Ik(e)||u_(e))&&Di(e.name)}function ose(e){let t;if(e){let n=e.parameters,i=n.length>0&&qv(n[0]),s=i?1:0,o=i?n.length-1:n.length;for(let c=0;cEU(n.privateEnv,t))}var cT,DU,ELe=ze({"src/compiler/transformers/utilities.ts"(){"use strict";Rs(),cT=class b4{constructor(){this._map=new Map}get size(){return this._map.size}has(t){return this._map.has(b4.toKey(t))}get(t){return this._map.get(b4.toKey(t))}set(t,n){return this._map.set(b4.toKey(t),n),this}delete(t){var n;return((n=this._map)==null?void 0:n.delete(b4.toKey(t)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(t){if(d2(t)||Lo(t)){let n=t.emitNode.autoGenerate;if((n.flags&7)===4){let i=A8(t),s=_g(i)&&i!==t?b4.toKey(i):`(generated@${Va(i)})`;return E1(!1,n.prefix,s,n.suffix,b4.toKey)}else{let i=`(auto@${n.id})`;return E1(!1,n.prefix,i,n.suffix,b4.toKey)}}return Di(t)?ur(t).slice(1):ur(t)}},DU=class extends cT{add(e,t){let n=this.get(e);return n?n.push(t):this.set(e,n=[t]),n}remove(e,t){let n=this.get(e);n&&(o2(n,t),n.length||this.delete(e))}}}});function Q2(e,t,n,i,s,o){let c=e,u;if(Qh(e))for(u=e.right;Yte(e.left)||Jz(e.left);)if(Qh(u))c=e=u,u=e.right;else return E.checkDefined(Ge(u,t,ut));let f,g={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:p,emitBindingOrAssignment:y,createArrayBindingOrAssignmentPattern:S=>OLe(n.factory,S),createObjectBindingOrAssignmentPattern:S=>MLe(n.factory,S),createArrayBindingOrAssignmentElement:jLe,visitor:t};if(u&&(u=Ge(u,t,ut),E.assert(u),Ie(u)&&_se(e,u.escapedText)||fse(e)?u=lT(g,u,!1,c):s?u=lT(g,u,!0,c):Ro(e)&&(c=u)),S3(g,e,u,c,Qh(e)),u&&s){if(!ft(f))return u;f.push(u)}return n.factory.inlineExpressions(f)||n.factory.createOmittedExpression();function p(S){f=_n(f,S)}function y(S,x,C,w){E.assertNode(S,o?Ie:ut);let D=o?o(S,x,C):nt(n.factory.createAssignment(E.checkDefined(Ge(S,t,ut)),x),C);D.original=w,p(D)}}function _se(e,t){let n=uy(e);return jP(n)?DLe(n,t):Ie(n)?n.escapedText===t:!1}function DLe(e,t){let n=MC(e);for(let i of n)if(_se(i,t))return!0;return!1}function fse(e){let t=gO(e);if(t&&Na(t)&&!Av(t.expression))return!0;let n=uy(e);return!!n&&jP(n)&&PLe(n)}function PLe(e){return!!Qt(MC(e),fse)}function _b(e,t,n,i,s,o=!1,c){let u,f=[],g=[],p={context:n,level:i,downlevelIteration:!!n.getCompilerOptions().downlevelIteration,hoistTempVariables:o,emitExpression:y,emitBindingOrAssignment:S,createArrayBindingOrAssignmentPattern:x=>FLe(n.factory,x),createObjectBindingOrAssignmentPattern:x=>LLe(n.factory,x),createArrayBindingOrAssignmentElement:x=>RLe(n.factory,x),visitor:t};if(Ni(e)){let x=P8(e);x&&(Ie(x)&&_se(e,x.escapedText)||fse(e))&&(x=lT(p,E.checkDefined(Ge(x,p.visitor,ut)),!1,x),e=n.factory.updateVariableDeclaration(e,e.name,void 0,void 0,x))}if(S3(p,e,s,e,c),u){let x=n.factory.createTempVariable(void 0);if(o){let C=n.factory.inlineExpressions(u);u=void 0,S(x,C,void 0,void 0)}else{n.hoistVariableDeclaration(x);let C=Pa(f);C.pendingExpressions=_n(C.pendingExpressions,n.factory.createAssignment(x,C.value)),Nr(C.pendingExpressions,u),C.value=x}}for(let{pendingExpressions:x,name:C,value:w,location:D,original:O}of f){let z=n.factory.createVariableDeclaration(C,void 0,void 0,x?n.factory.inlineExpressions(_n(x,w)):w);z.original=O,nt(z,D),g.push(z)}return g;function y(x){u=_n(u,x)}function S(x,C,w,D){E.assertNode(x,m2),u&&(C=n.factory.inlineExpressions(_n(u,C)),u=void 0),f.push({pendingExpressions:u,name:x,value:C,location:w,original:D})}}function S3(e,t,n,i,s){let o=uy(t);if(!s){let c=Ge(P8(t),e.visitor,ut);c?n?(n=NLe(e,n,c,i),!Xd(c)&&jP(o)&&(n=lT(e,n,!0,i))):n=c:n||(n=e.context.factory.createVoidZero())}EJ(o)?wLe(e,t,o,n,i):DJ(o)?ALe(e,t,o,n,i):e.emitBindingOrAssignment(o,n,i,t)}function wLe(e,t,n,i,s){let o=MC(n),c=o.length;if(c!==1){let g=!RP(t)||c!==0;i=lT(e,i,g,s)}let u,f;for(let g=0;g=1&&!(p.transformFlags&98304)&&!(uy(p).transformFlags&98304)&&!Na(y))u=_n(u,Ge(p,e.visitor,vee));else{u&&(e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,s,n),u=void 0);let S=ILe(e,i,y);Na(y)&&(f=_n(f,S.argumentExpression)),S3(e,p,S,p)}}}u&&e.emitBindingOrAssignment(e.createObjectBindingOrAssignmentPattern(u),i,s,n)}function ALe(e,t,n,i,s){let o=MC(n),c=o.length;if(e.level<1&&e.downlevelIteration)i=lT(e,nt(e.context.getEmitHelperFactory().createReadHelper(i,c>0&&mO(o[c-1])?void 0:c),s),!1,s);else if(c!==1&&(e.level<1||c===0)||hi(o,xl)){let g=!RP(t)||c!==0;i=lT(e,i,g,s)}let u,f;for(let g=0;g=1)if(p.transformFlags&65536||e.hasTransformedPriorElement&&!Ybe(p)){e.hasTransformedPriorElement=!0;let y=e.context.factory.createTempVariable(void 0);e.hoistTempVariables&&e.context.hoistVariableDeclaration(y),f=_n(f,[y,p]),u=_n(u,e.createArrayBindingOrAssignmentElement(y))}else u=_n(u,p);else{if(xl(p))continue;if(mO(p)){if(g===c-1){let y=e.context.factory.createArraySliceCall(i,g);S3(e,p,y,p)}}else{let y=e.context.factory.createElementAccessExpression(i,g);S3(e,p,y,p)}}}if(u&&e.emitBindingOrAssignment(e.createArrayBindingOrAssignmentPattern(u),i,s,n),f)for(let[g,p]of f)S3(e,p,g,p)}function Ybe(e){let t=uy(e);if(!t||xl(t))return!0;let n=gO(e);if(n&&!Jd(n))return!1;let i=P8(e);return i&&!Xd(i)?!1:jP(t)?hi(MC(t),Ybe):Ie(t)}function NLe(e,t,n,i){return t=lT(e,t,!0,i),e.context.factory.createConditionalExpression(e.context.factory.createTypeCheck(t,"undefined"),void 0,n,void 0,t)}function ILe(e,t,n){let{factory:i}=e.context;if(Na(n)){let s=lT(e,E.checkDefined(Ge(n.expression,e.visitor,ut)),!1,n);return e.context.factory.createElementAccessExpression(t,s)}else if(vf(n)){let s=i.cloneNode(n);return e.context.factory.createElementAccessExpression(t,s)}else{let s=e.context.factory.createIdentifier(ur(n));return e.context.factory.createPropertyAccessExpression(t,s)}}function lT(e,t,n,i){if(Ie(t)&&n)return t;{let s=e.context.factory.createTempVariable(void 0);return e.hoistTempVariables?(e.context.hoistVariableDeclaration(s),e.emitExpression(nt(e.context.factory.createAssignment(s,t),i))):e.emitBindingOrAssignment(s,t,i,void 0),s}}function FLe(e,t){return E.assertEachNode(t,I7),e.createArrayBindingPattern(t)}function OLe(e,t){return E.assertEachNode(t,JP),e.createArrayLiteralExpression(Kt(t,e.converters.convertToArrayAssignmentElement))}function LLe(e,t){return E.assertEachNode(t,Ma),e.createObjectBindingPattern(t)}function MLe(e,t){return E.assertEachNode(t,BP),e.createObjectLiteralExpression(Kt(t,e.converters.convertToObjectAssignmentElement))}function RLe(e,t){return e.createBindingElement(void 0,void 0,t)}function jLe(e){return e}var PU,BLe=ze({"src/compiler/transformers/destructuring.ts"(){"use strict";Rs(),PU=(e=>(e[e.All=0]="All",e[e.ObjectRest=1]="ObjectRest",e))(PU||{})}});function pse(e,t,n=e.createThis()){let i=e.createAssignment(t,n),s=e.createExpressionStatement(i),o=e.createBlock([s],!1),c=e.createClassStaticBlockDeclaration(o);return uu(c).classThis=t,c}function x3(e){var t;if(!rc(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return Il(n)&&pl(n.expression,!0)&&Ie(n.expression.left)&&((t=e.emitNode)==null?void 0:t.classThis)===n.expression.left&&n.expression.right.kind===110}function wU(e){var t;return!!((t=e.emitNode)!=null&&t.classThis)&&ft(e.members,x3)}function dse(e,t,n,i){if(wU(t))return t;let s=pse(e,n,i);t.name&&Ca(s.body.statements[0],t.name);let o=e.createNodeArray([s,...t.members]);nt(o,t.members);let c=Zc(t)?e.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o):e.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,o);return uu(c).classThis=n,c}var JLe=ze({"src/compiler/transformers/classThis.ts"(){"use strict";Rs()}});function T3(e,t,n){let i=cc(wc(n));return(Zc(i)||al(i))&&!i.name&&Mr(i,2048)?e.createStringLiteral("default"):e.createStringLiteralFromNode(t)}function Zbe(e,t,n){let{factory:i}=e;if(n!==void 0)return{assignedName:i.createStringLiteral(n),name:t};if(Jd(t)||Di(t))return{assignedName:i.createStringLiteralFromNode(t),name:t};if(Jd(t.expression)&&!Ie(t.expression))return{assignedName:i.createStringLiteralFromNode(t.expression),name:t};let s=i.getGeneratedNameForNode(t);e.hoistVariableDeclaration(s);let o=e.getEmitHelperFactory().createPropKeyHelper(t.expression),c=i.createAssignment(s,o),u=i.updateComputedPropertyName(t,c);return{assignedName:s,name:u}}function mse(e,t,n=e.factory.createThis()){let{factory:i}=e,s=e.getEmitHelperFactory().createSetFunctionNameHelper(n,t),o=i.createExpressionStatement(s),c=i.createBlock([o],!1),u=i.createClassStaticBlockDeclaration(c);return uu(u).assignedName=t,u}function uT(e){var t;if(!rc(e)||e.body.statements.length!==1)return!1;let n=e.body.statements[0];return Il(n)&&qE(n.expression,"___setFunctionName")&&n.expression.arguments.length>=2&&n.expression.arguments[1]===((t=e.emitNode)==null?void 0:t.assignedName)}function r9(e){var t;return!!((t=e.emitNode)!=null&&t.assignedName)&&ft(e.members,uT)}function AU(e){return!!e.name||r9(e)}function i9(e,t,n,i){if(r9(t))return t;let{factory:s}=e,o=mse(e,n,i);t.name&&Ca(o.body.statements[0],t.name);let c=Qo(t.members,x3)+1,u=t.members.slice(0,c),f=t.members.slice(c),g=s.createNodeArray([...u,o,...f]);return nt(g,t.members),t=Zc(t)?s.updateClassDeclaration(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g):s.updateClassExpression(t,t.modifiers,t.name,t.typeParameters,t.heritageClauses,g),uu(t).assignedName=n,t}function GC(e,t,n,i){if(i&&ca(n)&&iz(n))return t;let{factory:s}=e,o=wc(t),c=Bl(o)?Vs(i9(e,o,n),Bl):e.getEmitHelperFactory().createSetFunctionNameHelper(o,n);return s.restoreOuterExpressions(t,c)}function zLe(e,t,n,i){let{factory:s}=e,{assignedName:o,name:c}=Zbe(e,t.name,i),u=GC(e,t.initializer,o,n);return s.updatePropertyAssignment(t,c,u)}function VLe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):T3(s,t.name,t.objectAssignmentInitializer),c=GC(e,t.objectAssignmentInitializer,o,n);return s.updateShorthandPropertyAssignment(t,t.name,c)}function WLe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):T3(s,t.name,t.initializer),c=GC(e,t.initializer,o,n);return s.updateVariableDeclaration(t,t.name,t.exclamationToken,t.type,c)}function ULe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):T3(s,t.name,t.initializer),c=GC(e,t.initializer,o,n);return s.updateParameterDeclaration(t,t.modifiers,t.dotDotDotToken,t.name,t.questionToken,t.type,c)}function qLe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):T3(s,t.name,t.initializer),c=GC(e,t.initializer,o,n);return s.updateBindingElement(t,t.dotDotDotToken,t.propertyName,t.name,c)}function HLe(e,t,n,i){let{factory:s}=e,{assignedName:o,name:c}=Zbe(e,t.name,i),u=GC(e,t.initializer,o,n);return s.updatePropertyDeclaration(t,t.modifiers,c,t.questionToken??t.exclamationToken,t.type,u)}function GLe(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):T3(s,t.left,t.right),c=GC(e,t.right,o,n);return s.updateBinaryExpression(t,t.left,t.operatorToken,c)}function $Le(e,t,n,i){let{factory:s}=e,o=i!==void 0?s.createStringLiteral(i):s.createStringLiteral(t.isExportEquals?"":"default"),c=GC(e,t.expression,o,n);return s.updateExportAssignment(t,t.modifiers,c)}function B_(e,t,n,i){switch(t.kind){case 303:return zLe(e,t,n,i);case 304:return VLe(e,t,n,i);case 260:return WLe(e,t,n,i);case 169:return ULe(e,t,n,i);case 208:return qLe(e,t,n,i);case 172:return HLe(e,t,n,i);case 226:return GLe(e,t,n,i);case 277:return $Le(e,t,n,i)}}var XLe=ze({"src/compiler/transformers/namedEvaluation.ts"(){"use strict";Rs()}});function NU(e,t,n,i,s,o){let c=Ge(t.tag,n,ut);E.assert(c);let u=[void 0],f=[],g=[],p=t.template;if(o===0&&!Dz(p))return on(t,n,e);let{factory:y}=e;if(Vx(p))f.push(gse(y,p)),g.push(hse(y,p,i));else{f.push(gse(y,p.head)),g.push(hse(y,p.head,i));for(let x of p.templateSpans)f.push(gse(y,x.literal)),g.push(hse(y,x.literal,i)),u.push(E.checkDefined(Ge(x.expression,n,ut)))}let S=e.getEmitHelperFactory().createTemplateObjectHelper(y.createArrayLiteralExpression(f),y.createArrayLiteralExpression(g));if(Bc(i)){let x=y.createUniqueName("templateObject");s(x),u[0]=y.createLogicalOr(x,y.createAssignment(x,S))}else u[0]=S;return y.createCallExpression(c,void 0,u)}function gse(e,t){return t.templateFlags&26656?e.createVoidZero():e.createStringLiteral(t.text)}function hse(e,t,n){let i=t.rawText;if(i===void 0){E.assertIsDefined(n,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),i=Fv(n,t);let s=t.kind===15||t.kind===18;i=i.substring(1,i.length-(s?1:2))}return i=i.replace(/\r\n?/g,` -`),nt(e.createStringLiteral(i),t)}var IU,QLe=ze({"src/compiler/transformers/taggedTemplate.ts"(){"use strict";Rs(),IU=(e=>(e[e.LiftRestriction=0]="LiftRestriction",e[e.All=1]="All",e))(IU||{})}});function yse(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,u=e.getEmitResolver(),f=e.getCompilerOptions(),g=La(f),p=Ql(f),y=!!f.experimentalDecorators,S=f.emitDecoratorMetadata?bse(e):void 0,x=e.onEmitNode,C=e.onSubstituteNode;e.onEmitNode=td,e.onSubstituteNode=zc,e.enableSubstitution(211),e.enableSubstitution(212);let w,D,O,z,V,X,J,ie;return B;function B(A){return A.kind===313?Z(A):ae(A)}function Z(A){return t.createBundle(A.sourceFiles.map(ae),Ri(A.prepends,Pe=>Pe.kind===315?IV(Pe,"js"):Pe))}function ae(A){if(A.isDeclarationFile)return A;w=A;let Pe=_e(A,Oe);return oh(Pe,e.readEmitHelpers()),w=void 0,Pe}function _e(A,Pe){let He=z,kt=V,gn=X;$(A);let Ar=Pe(A);return z!==He&&(V=kt),z=He,X=gn,Ar}function $(A){switch(A.kind){case 312:case 269:case 268:case 241:z=A,V=void 0;break;case 263:case 262:if(Mr(A,128))break;A.name?ue(A):E.assert(A.kind===263||Mr(A,2048));break}}function H(A){return _e(A,K)}function K(A){return A.transformFlags&1?me(A):A}function oe(A){return _e(A,Se)}function Se(A){switch(A.kind){case 272:case 271:case 277:case 278:return se(A);default:return K(A)}}function se(A){if(ls(A)!==A)return A.transformFlags&1?on(A,H,e):A;switch(A.kind){case 272:return Wt(A);case 271:return ua(A);case 277:return jr(A);case 278:return Br(A);default:E.fail("Unhandled ellided statement")}}function Y(A){return _e(A,ve)}function ve(A){if(!(A.kind===278||A.kind===272||A.kind===273||A.kind===271&&A.moduleReference.kind===283))return A.transformFlags&1||Mr(A,32)?me(A):A}function xe(A){return Pe=>_e(Pe,He=>Me(He,A))}function Me(A,Pe){switch(A.kind){case 176:return Cn(A);case 172:return Sn(A,Pe);case 177:return na(A,Pe);case 178:return Fs(A,Pe);case 174:return Ii(A,Pe);case 175:return on(A,H,e);case 240:return A;case 181:return;default:return E.failBadSyntaxKind(A)}}function ke(A){return Pe=>_e(Pe,He=>he(He,A))}function he(A,Pe){switch(A.kind){case 303:case 304:case 305:return H(A);case 177:return na(A,Pe);case 178:return Fs(A,Pe);case 174:return Ii(A,Pe);default:return E.failBadSyntaxKind(A)}}function be(A){return Zl(A)?void 0:H(A)}function _t(A){return ra(A)?void 0:H(A)}function mt(A){if(!Zl(A)&&!(wx(A.kind)&28895)&&!(D&&A.kind===95))return A}function me(A){if(Ai(A)&&Mr(A,128))return t.createNotEmittedStatement(A);switch(A.kind){case 95:case 90:return D?void 0:A;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return t.createNotEmittedStatement(A);case 270:return;case 264:return t.createNotEmittedStatement(A);case 263:return lt(A);case 231:return Jt(A);case 298:return fn(A);case 233:return An(A);case 210:return Qe(A);case 176:case 172:case 174:case 177:case 178:case 175:return E.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Ce(A);case 218:return Ue(A);case 219:return it(A);case 169:return dt(A);case 217:return Be(A);case 216:case 234:return yt(A);case 238:return vt(A);case 213:return wt(A);case 214:return Re(A);case 215:return ot(A);case 235:return G(A);case 266:return ln(A);case 243:return gt(A);case 260:return we(A);case 267:return Fe(A);case 271:return ua(A);case 285:return Dt(A);case 286:return Zt(A);default:return on(A,H,e)}}function Oe(A){let Pe=bp(f,"alwaysStrict")&&!(Bc(A)&&p>=5)&&!dp(A);return t.updateSourceFile(A,$O(A.statements,oe,e,0,Pe))}function Qe(A){return t.updateObjectLiteralExpression(A,Dn(A.properties,ke(A),th))}function at(A){let Pe=0;ft(kU(A,!0,!0))&&(Pe|=1);let He=Bd(A);return He&&wc(He.expression).kind!==106&&(Pe|=64),Hh(y,A)&&(Pe|=2),rE(y,A)&&(Pe|=4),js(A)?Pe|=8:_s(A)?Pe|=32:Nc(A)&&(Pe|=16),Pe}function ht(A){return!!(A.transformFlags&8192)}function Je(A){return Vf(A)||ft(A.typeParameters)||ft(A.heritageClauses,ht)||ft(A.members,ht)}function lt(A){let Pe=at(A),He=g<=1&&!!(Pe&7);if(!Je(A)&&!Hh(y,A)&&!js(A))return t.updateClassDeclaration(A,Dn(A.modifiers,mt,ra),A.name,void 0,Dn(A.heritageClauses,H,rf),Dn(A.members,xe(A),Ml));He&&e.startLexicalEnvironment();let kt=He||Pe&8,gn=kt?Dn(A.modifiers,_t,Mo):Dn(A.modifiers,H,Mo);Pe&2&&(gn=Tn(gn,A));let Zn=kt&&!A.name||Pe&4||Pe&1?A.name??t.getGeneratedNameForNode(A):A.name,Tr=t.updateClassDeclaration(A,gn,Zn,void 0,Dn(A.heritageClauses,H,rf),Gt(A)),pi=Sa(A);Pe&1&&(pi|=64),$n(Tr,pi);let Dr;if(He){let Ea=[Tr],yc=Vz(ma(w.text,A.members.end),20),ll=t.getInternalName(A),_o=t.createPartiallyEmittedExpression(ll);pC(_o,yc.end),$n(_o,3072);let ul=t.createReturnStatement(_o);OE(ul,yc.pos),$n(ul,3840),Ea.push(ul),Am(Ea,e.endLexicalEnvironment());let ro=t.createImmediatelyInvokedArrowFunction(Ea);c8(ro,1);let Cl=t.createVariableDeclaration(t.getLocalName(A,!1,!1),void 0,void 0,ro);or(Cl,A);let t_=t.createVariableStatement(void 0,t.createVariableDeclarationList([Cl],1));or(t_,A),jc(t_,A),Ca(t_,Zh(A)),Uu(t_),Dr=t_}else Dr=Tr;if(kt){if(Pe&8)return[Dr,to(A)];if(Pe&32)return[Dr,t.createExportDefault(t.getLocalName(A,!1,!0))];if(Pe&16)return[Dr,t.createExternalModuleExport(t.getDeclarationName(A,!1,!0))]}return Dr}function Jt(A){let Pe=Dn(A.modifiers,_t,Mo);return Hh(y,A)&&(Pe=Tn(Pe,A)),t.updateClassExpression(A,Pe,A.name,void 0,Dn(A.heritageClauses,H,rf),Gt(A))}function Gt(A){let Pe=Dn(A.members,xe(A),Ml),He,kt=yg(A),gn=kt&&Fr(kt.parameters,Ar=>F_(Ar,kt));if(gn)for(let Ar of gn){let Zn=t.createPropertyDeclaration(void 0,Ar.name,void 0,void 0,void 0);or(Zn,Ar),He=_n(He,Zn)}return He?(He=Nr(He,Pe),nt(t.createNodeArray(He),A.members)):Pe}function Tn(A,Pe){let He=cn(Pe,Pe);if(ft(He)){let kt=[];Nr(kt,GI(A,w8)),Nr(kt,Fr(A,Zl)),Nr(kt,He),Nr(kt,Fr(hK(A,w8),ra)),A=nt(t.createNodeArray(kt),A)}return A}function Un(A,Pe,He){if(ei(He)&&rz(y,Pe,He)){let kt=cn(Pe,He);if(ft(kt)){let gn=[];Nr(gn,Fr(A,Zl)),Nr(gn,kt),Nr(gn,Fr(A,ra)),A=nt(t.createNodeArray(gn),A)}}return A}function cn(A,Pe){if(y)return Kbe?Ft(A,Pe):zt(A,Pe)}function zt(A,Pe){if(S){let He;if(Lr(A)){let kt=n().createMetadataHelper("design:type",S.serializeTypeOfNode({currentLexicalScope:z,currentNameScope:Pe},A));He=_n(He,t.createDecorator(kt))}if(ii(A)){let kt=n().createMetadataHelper("design:paramtypes",S.serializeParameterTypesOfNode({currentLexicalScope:z,currentNameScope:Pe},A,Pe));He=_n(He,t.createDecorator(kt))}if(ji(A)){let kt=n().createMetadataHelper("design:returntype",S.serializeReturnTypeOfNode({currentLexicalScope:z,currentNameScope:Pe},A));He=_n(He,t.createDecorator(kt))}return He}}function Ft(A,Pe){if(S){let He;if(Lr(A)){let kt=t.createPropertyAssignment("type",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeTypeOfNode({currentLexicalScope:z,currentNameScope:Pe},A)));He=_n(He,kt)}if(ii(A)){let kt=t.createPropertyAssignment("paramTypes",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeParameterTypesOfNode({currentLexicalScope:z,currentNameScope:Pe},A,Pe)));He=_n(He,kt)}if(ji(A)){let kt=t.createPropertyAssignment("returnType",t.createArrowFunction(void 0,void 0,[],void 0,t.createToken(39),S.serializeReturnTypeOfNode({currentLexicalScope:z,currentNameScope:Pe},A)));He=_n(He,kt)}if(He){let kt=n().createMetadataHelper("design:typeinfo",t.createObjectLiteralExpression(He,!0));return[t.createDecorator(kt)]}}}function Lr(A){let Pe=A.kind;return Pe===174||Pe===177||Pe===178||Pe===172}function ji(A){return A.kind===174}function ii(A){switch(A.kind){case 263:case 231:return yg(A)!==void 0;case 174:case 177:case 178:return!0}return!1}function Hi(A,Pe){let He=A.name;return Di(He)?t.createIdentifier(""):Na(He)?Pe&&!Xd(He.expression)?t.getGeneratedNameForNode(He):He.expression:Ie(He)?t.createStringLiteral(ur(He)):t.cloneNode(He)}function Ye(A){let Pe=A.name;if(Na(Pe)&&(!Yc(A)&&X||Vf(A)&&y)){let He=Ge(Pe.expression,H,ut);E.assert(He);let kt=Vp(He);if(!Xd(kt)){let gn=t.getGeneratedNameForNode(Pe);return c(gn),t.updateComputedPropertyName(Pe,t.createAssignment(gn,He))}}return E.checkDefined(Ge(Pe,H,Rc))}function fn(A){if(A.token!==119)return on(A,H,e)}function An(A){return t.updateExpressionWithTypeArguments(A,E.checkDefined(Ge(A.expression,H,x_)),void 0)}function Ot(A){return!dc(A.body)}function Sn(A,Pe){let He=A.flags&33554432||Mr(A,64);if(He&&!(y&&Vf(A)))return;let kt=ei(Pe)?He?Dn(A.modifiers,_t,Mo):Dn(A.modifiers,H,Mo):Dn(A.modifiers,be,Mo);return kt=Un(kt,A,Pe),He?t.updatePropertyDeclaration(A,es(kt,t.createModifiersFromModifierFlags(128)),E.checkDefined(Ge(A.name,H,Rc)),void 0,void 0,void 0):t.updatePropertyDeclaration(A,kt,Ye(A),void 0,void 0,Ge(A.initializer,H,ut))}function Cn(A){if(Ot(A))return t.updateConstructorDeclaration(A,void 0,Ac(A.parameters,H,e),Fi(A.body,A))}function Kn(A,Pe,He,kt,gn,Ar){let Zn=kt[gn],Tr=Pe[Zn];if(Nr(A,Dn(Pe,H,Ai,He,Zn-He)),V2(Tr)){let pi=[];Kn(pi,Tr.tryBlock.statements,0,kt,gn+1,Ar);let Dr=t.createNodeArray(pi);nt(Dr,Tr.tryBlock.statements),A.push(t.updateTryStatement(Tr,t.updateBlock(Tr.tryBlock,pi),Ge(Tr.catchClause,H,ib),Ge(Tr.finallyBlock,H,Ds)))}else Nr(A,Dn(Pe,H,Ai,Zn,1)),Nr(A,Ar);Nr(A,Dn(Pe,H,Ai,Zn+1))}function Fi(A,Pe){let He=Pe&&Fr(Pe.parameters,pi=>F_(pi,Pe));if(!ft(He))return kf(A,H,e);let kt=[];s();let gn=t.copyPrologue(A.statements,kt,!1,H),Ar=e9(A.statements,gn),Zn=Ri(He,Wi);Ar.length?Kn(kt,A.statements,gn,Ar,0,Zn):(Nr(kt,Zn),Nr(kt,Dn(A.statements,H,Ai,gn))),kt=t.mergeLexicalEnvironment(kt,o());let Tr=t.createBlock(nt(t.createNodeArray(kt),A.statements),!0);return nt(Tr,A),or(Tr,A),Tr}function Wi(A){let Pe=A.name;if(!Ie(Pe))return;let He=Ta(nt(t.cloneNode(Pe),Pe),Pe.parent);$n(He,3168);let kt=Ta(nt(t.cloneNode(Pe),Pe),Pe.parent);return $n(kt,3072),Uu(o8(nt(or(t.createExpressionStatement(t.createAssignment(nt(t.createPropertyAccessExpression(t.createThis(),He),A.name),kt)),A),d1(A,-1))))}function Ii(A,Pe){if(!(A.transformFlags&1))return A;if(!Ot(A))return;let He=ei(Pe)?Dn(A.modifiers,H,Mo):Dn(A.modifiers,be,Mo);return He=Un(He,A,Pe),t.updateMethodDeclaration(A,He,A.asteriskToken,Ye(A),void 0,void 0,Ac(A.parameters,H,e),void 0,kf(A.body,H,e))}function Ki(A){return!(dc(A.body)&&Mr(A,64))}function na(A,Pe){if(!(A.transformFlags&1))return A;if(!Ki(A))return;let He=ei(Pe)?Dn(A.modifiers,H,Mo):Dn(A.modifiers,be,Mo);return He=Un(He,A,Pe),t.updateGetAccessorDeclaration(A,He,Ye(A),Ac(A.parameters,H,e),void 0,kf(A.body,H,e)||t.createBlock([]))}function Fs(A,Pe){if(!(A.transformFlags&1))return A;if(!Ki(A))return;let He=ei(Pe)?Dn(A.modifiers,H,Mo):Dn(A.modifiers,be,Mo);return He=Un(He,A,Pe),t.updateSetAccessorDeclaration(A,He,Ye(A),Ac(A.parameters,H,e),kf(A.body,H,e)||t.createBlock([]))}function Ce(A){if(!Ot(A))return t.createNotEmittedStatement(A);let Pe=t.updateFunctionDeclaration(A,Dn(A.modifiers,mt,ra),A.asteriskToken,A.name,void 0,Ac(A.parameters,H,e),void 0,kf(A.body,H,e)||t.createBlock([]));if(js(A)){let He=[Pe];return fc(He,A),He}return Pe}function Ue(A){return Ot(A)?t.updateFunctionExpression(A,Dn(A.modifiers,mt,ra),A.asteriskToken,A.name,void 0,Ac(A.parameters,H,e),void 0,kf(A.body,H,e)||t.createBlock([])):t.createOmittedExpression()}function it(A){return t.updateArrowFunction(A,Dn(A.modifiers,mt,ra),void 0,Ac(A.parameters,H,e),void 0,A.equalsGreaterThanToken,kf(A.body,H,e))}function dt(A){if(qv(A))return;let Pe=t.updateParameterDeclaration(A,Dn(A.modifiers,He=>Zl(He)?H(He):void 0,Mo),A.dotDotDotToken,E.checkDefined(Ge(A.name,H,m2)),void 0,void 0,Ge(A.initializer,H,ut));return Pe!==A&&(jc(Pe,A),nt(Pe,Wd(A)),Ca(Pe,Wd(A)),$n(Pe.name,64)),Pe}function gt(A){if(js(A)){let Pe=kE(A.declarationList);return Pe.length===0?void 0:nt(t.createExpressionStatement(t.inlineExpressions(Kt(Pe,fe))),A)}else return on(A,H,e)}function fe(A){let Pe=A.name;return Ms(Pe)?Q2(A,H,e,0,!1,gl):nt(t.createAssignment(Ho(Pe),E.checkDefined(Ge(A.initializer,H,ut))),A)}function we(A){let Pe=t.updateVariableDeclaration(A,E.checkDefined(Ge(A.name,H,m2)),void 0,void 0,Ge(A.initializer,H,ut));return A.type&&rre(Pe.name,A.type),Pe}function Be(A){let Pe=wc(A.expression,-7);if(h2(Pe)){let He=Ge(A.expression,H,ut);return E.assert(He),t.createPartiallyEmittedExpression(He,A)}return on(A,H,e)}function yt(A){let Pe=Ge(A.expression,H,ut);return E.assert(Pe),t.createPartiallyEmittedExpression(Pe,A)}function G(A){let Pe=Ge(A.expression,H,x_);return E.assert(Pe),t.createPartiallyEmittedExpression(Pe,A)}function vt(A){let Pe=Ge(A.expression,H,ut);return E.assert(Pe),t.createPartiallyEmittedExpression(Pe,A)}function wt(A){return t.updateCallExpression(A,E.checkDefined(Ge(A.expression,H,ut)),void 0,Dn(A.arguments,H,ut))}function Re(A){return t.updateNewExpression(A,E.checkDefined(Ge(A.expression,H,ut)),void 0,Dn(A.arguments,H,ut))}function ot(A){return t.updateTaggedTemplateExpression(A,E.checkDefined(Ge(A.tag,H,ut)),void 0,E.checkDefined(Ge(A.template,H,Fk)))}function Dt(A){return t.updateJsxSelfClosingElement(A,E.checkDefined(Ge(A.tagName,H,X4)),void 0,E.checkDefined(Ge(A.attributes,H,rb)))}function Zt(A){return t.updateJsxOpeningElement(A,E.checkDefined(Ge(A.tagName,H,X4)),void 0,E.checkDefined(Ge(A.attributes,H,rb)))}function tn(A){return!Mv(A)||F2(f)}function ln(A){if(!tn(A))return t.createNotEmittedStatement(A);let Pe=[],He=4,kt=qe(Pe,A);kt&&(p!==4||z!==w)&&(He|=1024);let gn=xs(A),Ar=$s(A),Zn=js(A)?t.getExternalModuleOrNamespaceExportName(O,A,!1,!0):t.getDeclarationName(A,!1,!0),Tr=t.createLogicalOr(Zn,t.createAssignment(Zn,t.createObjectLiteralExpression()));if(js(A)){let Dr=t.getLocalName(A,!1,!0);Tr=t.createAssignment(Dr,Tr)}let pi=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,gn)],void 0,W(A,Ar)),void 0,[Tr]));return or(pi,A),kt&&(v1(pi,void 0),jx(pi,void 0)),nt(pi,A),Mm(pi,He),Pe.push(pi),Pe}function W(A,Pe){let He=O;O=Pe;let kt=[];i();let gn=Kt(A.members,j);return Am(kt,o()),Nr(kt,gn),O=He,t.createBlock(nt(t.createNodeArray(kt),A.members),!0)}function j(A){let Pe=Hi(A,!1),He=ce(A),kt=t.createAssignment(t.createElementAccessExpression(O,Pe),He),gn=He.kind===11?kt:t.createAssignment(t.createElementAccessExpression(O,kt),Pe);return nt(t.createExpressionStatement(nt(gn,A)),A)}function ce(A){let Pe=u.getConstantValue(A);return Pe!==void 0?typeof Pe=="string"?t.createStringLiteral(Pe):t.createNumericLiteral(Pe):(cl(),A.initializer?E.checkDefined(Ge(A.initializer,H,ut)):t.createVoidZero())}function ee(A){let Pe=ls(A,Pc);return Pe?pU(Pe,F2(f)):!0}function ue(A){V||(V=new Map);let Pe=De(A);V.has(Pe)||V.set(Pe,A)}function M(A){if(V){let Pe=De(A);return V.get(Pe)===A}return!0}function De(A){return E.assertNode(A.name,Ie),A.name.escapedText}function qe(A,Pe){let He=t.createVariableDeclaration(t.getLocalName(Pe,!1,!0)),kt=z.kind===312?0:1,gn=t.createVariableStatement(Dn(Pe.modifiers,mt,ra),t.createVariableDeclarationList([He],kt));return or(He,Pe),v1(He,void 0),jx(He,void 0),or(gn,Pe),ue(Pe),M(Pe)?(Pe.kind===266?Ca(gn.declarationList,Pe):Ca(gn,Pe),jc(gn,Pe),Mm(gn,2048),A.push(gn),!0):!1}function Fe(A){if(!ee(A))return t.createNotEmittedStatement(A);E.assertNode(A.name,Ie,"A TypeScript namespace should have an Identifier name."),Do();let Pe=[],He=4,kt=qe(Pe,A);kt&&(p!==4||z!==w)&&(He|=1024);let gn=xs(A),Ar=$s(A),Zn=js(A)?t.getExternalModuleOrNamespaceExportName(O,A,!1,!0):t.getDeclarationName(A,!1,!0),Tr=t.createLogicalOr(Zn,t.createAssignment(Zn,t.createObjectLiteralExpression()));if(js(A)){let Dr=t.getLocalName(A,!1,!0);Tr=t.createAssignment(Dr,Tr)}let pi=t.createExpressionStatement(t.createCallExpression(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,gn)],void 0,St(A,Ar)),void 0,[Tr]));return or(pi,A),kt&&(v1(pi,void 0),jx(pi,void 0)),nt(pi,A),Mm(pi,He),Pe.push(pi),Pe}function St(A,Pe){let He=O,kt=D,gn=V;O=Pe,D=A,V=void 0;let Ar=[];i();let Zn,Tr;if(A.body)if(A.body.kind===268)_e(A.body,Dr=>Nr(Ar,Dn(Dr.statements,Y,Ai))),Zn=A.body.statements,Tr=A.body;else{let Dr=Fe(A.body);Dr&&(ss(Dr)?Nr(Ar,Dr):Ar.push(Dr));let Ea=Mt(A).body;Zn=d1(Ea.statements,-1)}Am(Ar,o()),O=He,D=kt,V=gn;let pi=t.createBlock(nt(t.createNodeArray(Ar),Zn),!0);return nt(pi,Tr),(!A.body||A.body.kind!==268)&&$n(pi,Sa(pi)|3072),pi}function Mt(A){if(A.body.kind===267)return Mt(A.body)||A.body}function Wt(A){if(!A.importClause)return A;if(A.importClause.isTypeOnly)return;let Pe=Ge(A.importClause,Rn,Rm);return Pe||f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2?t.updateImportDeclaration(A,void 0,Pe,A.moduleSpecifier,A.attributes):void 0}function Rn(A){E.assert(!A.isTypeOnly);let Pe=Ic(A)?A.name:void 0,He=Ge(A.namedBindings,nr,NJ);return Pe||He?t.updateImportClause(A,!1,Pe,He):void 0}function nr(A){if(A.kind===274)return Ic(A)?A:void 0;{let Pe=f.verbatimModuleSyntax||f.preserveValueImports&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),He=Dn(A.elements,br,E_);return Pe||ft(He)?t.updateNamedImports(A,He):void 0}}function br(A){return!A.isTypeOnly&&Ic(A)?A:void 0}function jr(A){return f.verbatimModuleSyntax||u.isValueAliasDeclaration(A)?on(A,H,e):void 0}function Br(A){if(A.isTypeOnly)return;if(!A.exportClause||jm(A.exportClause))return A;let Pe=f.verbatimModuleSyntax||!!A.moduleSpecifier&&(f.importsNotUsedAsValues===1||f.importsNotUsedAsValues===2),He=Ge(A.exportClause,kt=>is(kt,Pe),vJ);return He?t.updateExportDeclaration(A,void 0,A.isTypeOnly,He,A.moduleSpecifier,A.attributes):void 0}function Mi(A,Pe){let He=Dn(A.elements,In,Eu);return Pe||ft(He)?t.updateNamedExports(A,He):void 0}function wr(A){return t.updateNamespaceExport(A,E.checkDefined(Ge(A.name,H,Ie)))}function is(A,Pe){return jm(A)?wr(A):Mi(A,Pe)}function In(A){return!A.isTypeOnly&&(f.verbatimModuleSyntax||u.isValueAliasDeclaration(A))?A:void 0}function mi(A){return Ic(A)||!Bc(w)&&u.isTopLevelValueImportEqualsWithEntityName(A)}function ua(A){if(A.isTypeOnly)return;if(l1(A)){let He=Ic(A);return!He&&f.importsNotUsedAsValues===1?or(nt(t.createImportDeclaration(void 0,void 0,A.moduleReference.expression,void 0),A),A):He?on(A,H,e):void 0}if(!mi(A))return;let Pe=k8(t,A.moduleReference);return $n(Pe,7168),Nc(A)||!js(A)?or(nt(t.createVariableStatement(Dn(A.modifiers,mt,ra),t.createVariableDeclarationList([or(t.createVariableDeclaration(A.name,void 0,void 0,Pe),A)])),A),A):or(ec(A.name,Pe,A),A)}function js(A){return D!==void 0&&Mr(A,32)}function Pn(A){return D===void 0&&Mr(A,32)}function Nc(A){return Pn(A)&&!Mr(A,2048)}function _s(A){return Pn(A)&&Mr(A,2048)}function to(A){let Pe=t.createAssignment(t.getExternalModuleOrNamespaceExportName(O,A,!1,!0),t.getLocalName(A));Ca(Pe,Wf(A.name?A.name.pos:A.pos,A.end));let He=t.createExpressionStatement(Pe);return Ca(He,Wf(-1,A.end)),He}function fc(A,Pe){A.push(to(Pe))}function ec(A,Pe,He){return nt(t.createExpressionStatement(t.createAssignment(t.getNamespaceMemberName(O,A,!1,!0),Pe)),He)}function gl(A,Pe,He){return nt(t.createAssignment(Ho(A),Pe),He)}function Ho(A){return t.getNamespaceMemberName(O,A,!1,!0)}function xs(A){let Pe=t.getGeneratedNameForNode(A);return Ca(Pe,A.name),Pe}function $s(A){return t.getGeneratedNameForNode(A)}function cl(){J&8||(J|=8,e.enableSubstitution(80))}function Do(){J&2||(J|=2,e.enableSubstitution(80),e.enableSubstitution(304),e.enableEmitNotification(267))}function Xs(A){return cc(A).kind===267}function Jc(A){return cc(A).kind===266}function td(A,Pe,He){let kt=ie,gn=w;Li(Pe)&&(w=Pe),J&2&&Xs(Pe)&&(ie|=2),J&8&&Jc(Pe)&&(ie|=8),x(A,Pe,He),ie=kt,w=gn}function zc(A,Pe){return Pe=C(A,Pe),A===1?Bo(Pe):sf(Pe)?ic(Pe):Pe}function ic(A){if(J&2){let Pe=A.name,He=Ht(Pe);if(He){if(A.objectAssignmentInitializer){let kt=t.createAssignment(He,A.objectAssignmentInitializer);return nt(t.createPropertyAssignment(Pe,kt),A)}return nt(t.createPropertyAssignment(Pe,He),A)}}return A}function Bo(A){switch(A.kind){case 80:return as(A);case 211:return Jo(A);case 212:return nl(A)}return A}function as(A){return Ht(A)||A}function Ht(A){if(J&ie&&!Lo(A)&&!uh(A)){let Pe=u.getReferencedExportContainer(A,!1);if(Pe&&Pe.kind!==312&&(ie&2&&Pe.kind===267||ie&8&&Pe.kind===266))return nt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(Pe),A),A)}}function Jo(A){return h_(A)}function nl(A){return h_(A)}function qu(A){return A.replace(/\*\//g,"*_/")}function h_(A){let Pe=Po(A);if(Pe!==void 0){tre(A,Pe);let He=typeof Pe=="string"?t.createStringLiteral(Pe):Pe<0?t.createPrefixUnaryExpression(41,t.createNumericLiteral(Math.abs(Pe))):t.createNumericLiteral(Pe);if(!f.removeComments){let kt=cc(A,ho);vF(He,3,` ${qu(Qc(kt))} `)}return He}return A}function Po(A){if(!pd(f))return Cr(A)||ko(A)?u.getConstantValue(A):void 0}function Ic(A){return f.verbatimModuleSyntax||Qn(A)||(f.preserveValueImports?u.isValueAliasDeclaration(A):u.isReferencedAliasDeclaration(A))}}var Kbe,YLe=ze({"src/compiler/transformers/ts.ts"(){"use strict";Rs(),Kbe=!1}});function vse(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i,endLexicalEnvironment:s,startLexicalEnvironment:o,resumeLexicalEnvironment:c,addBlockScopedVariable:u}=e,f=e.getEmitResolver(),g=e.getCompilerOptions(),p=La(g),y=Uw(g),S=!!g.experimentalDecorators,x=!y,C=y&&p<9,w=x||C,D=p<9,O=p<99?-1:y?0:3,z=p<9,V=z&&p>=2,X=w||D||O===-1,J=e.onSubstituteNode;e.onSubstituteNode=nl;let ie=e.onEmitNode;e.onEmitNode=Jo;let B=!1,Z,ae,_e,$,H,K=new Map,oe=new Set,Se,se,Y=!1,ve=!1;return Zp(e,xe);function xe(A){if(A.isDeclarationFile||(H=void 0,B=!!(Wp(A)&32),!X&&!B))return A;let Pe=on(A,ke,e);return oh(Pe,e.readEmitHelpers()),Pe}function Me(A){switch(A.kind){case 129:return Cn()?void 0:A;default:return Ur(A,ra)}}function ke(A){if(!(A.transformFlags&16777216)&&!(A.transformFlags&134234112))return A;switch(A.kind){case 129:return E.fail("Use `modifierVisitor` instead.");case 263:return tn(A);case 231:return W(A);case 175:case 172:return E.fail("Use `classElementVisitor` instead.");case 303:return Je(A);case 243:return lt(A);case 260:return Jt(A);case 169:return Gt(A);case 208:return Tn(A);case 277:return Un(A);case 81:return at(A);case 211:return na(A);case 212:return Fs(A);case 224:case 225:return Ce(A,!1);case 226:return yt(A,!1);case 217:return vt(A,!1);case 213:return gt(A);case 244:return it(A);case 215:return fe(A);case 248:return Ue(A);case 110:return ee(A);case 262:case 218:return ii(void 0,he,A);case 176:case 174:case 177:case 178:return ii(A,he,A);default:return he(A)}}function he(A){return on(A,ke,e)}function be(A){switch(A.kind){case 224:case 225:return Ce(A,!0);case 226:return yt(A,!0);case 361:return G(A,!0);case 217:return vt(A,!0);default:return ke(A)}}function _t(A){switch(A.kind){case 298:return on(A,_t,e);case 233:return Dt(A);default:return ke(A)}}function mt(A){switch(A.kind){case 210:case 209:return Ht(A);default:return ke(A)}}function me(A){switch(A.kind){case 176:return ii(A,Ft,A);case 177:case 178:case 174:return ii(A,ji,A);case 172:return ii(A,Kn,A);case 175:return ii(A,ce,A);case 167:return zt(A);case 240:return A;default:return Mo(A)?Me(A):ke(A)}}function Oe(A){switch(A.kind){case 167:return zt(A);default:return ke(A)}}function Qe(A){switch(A.kind){case 172:return Sn(A);case 177:case 178:return me(A);default:E.assertMissingNode(A,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function at(A){return!D||Ai(A.parent)?A:or(t.createIdentifier(""),A)}function ht(A){let Pe=$s(A.left);if(Pe){let He=Ge(A.right,ke,ut);return or(n().createClassPrivateFieldInHelper(Pe.brandCheckIdentifier,He),A)}return on(A,ke,e)}function Je(A){return L_(A,Be)&&(A=B_(e,A)),on(A,ke,e)}function lt(A){let Pe=$;$=[];let He=on(A,ke,e),kt=ft($)?[He,...$]:He;return $=Pe,kt}function Jt(A){return L_(A,Be)&&(A=B_(e,A)),on(A,ke,e)}function Gt(A){return L_(A,Be)&&(A=B_(e,A)),on(A,ke,e)}function Tn(A){return L_(A,Be)&&(A=B_(e,A)),on(A,ke,e)}function Un(A){return L_(A,Be)&&(A=B_(e,A,!0,A.isExportEquals?"":"default")),on(A,ke,e)}function cn(A){return ft(_e)&&(C_(A)?(_e.push(A.expression),A=t.updateParenthesizedExpression(A,t.inlineExpressions(_e))):(_e.push(A),A=t.inlineExpressions(_e)),_e=void 0),A}function zt(A){let Pe=Ge(A.expression,ke,ut);return t.updateComputedPropertyName(A,cn(Pe))}function Ft(A){return Se?De(A,Se):he(A)}function Lr(A){return!!(D||Yc(A)&&Wp(A)&32)}function ji(A){if(E.assert(!Vf(A)),!ju(A)||!Lr(A))return on(A,me,e);let Pe=$s(A.name);if(E.assert(Pe,"Undeclared private name for property declaration."),!Pe.isValid)return A;let He=Hi(A);He&&js().push(t.createAssignment(He,t.createFunctionExpression(Fr(A.modifiers,kt=>ra(kt)&&!Ux(kt)&&!hre(kt)),A.asteriskToken,He,void 0,Ac(A.parameters,ke,e),void 0,kf(A.body,ke,e))))}function ii(A,Pe,He){if(A!==se){let kt=se;se=A;let gn=Pe(He);return se=kt,gn}return Pe(He)}function Hi(A){E.assert(Di(A.name));let Pe=$s(A.name);if(E.assert(Pe,"Undeclared private name for property declaration."),Pe.kind==="m")return Pe.methodName;if(Pe.kind==="a"){if(X0(A))return Pe.getterName;if(qh(A))return Pe.setterName}}function Ye(){let A=mi(),Pe=A.classThis??A.classConstructor??Se?.name;return E.checkDefined(Pe)}function fn(A){let Pe=Ud(A),He=y1(A),kt=A.name,gn=kt,Ar=kt;if(Na(kt)&&!Xd(kt.expression)){let ll=yO(kt);if(ll)gn=t.updateComputedPropertyName(kt,Ge(kt.expression,ke,ut)),Ar=t.updateComputedPropertyName(kt,ll.left);else{let _o=t.createTempVariable(i);Ca(_o,kt.expression);let ul=Ge(kt.expression,ke,ut),ro=t.createAssignment(_o,ul);Ca(ro,kt.expression),gn=t.updateComputedPropertyName(kt,ro),Ar=t.updateComputedPropertyName(kt,_o)}}let Zn=Dn(A.modifiers,Me,ra),Tr=vW(t,A,Zn,A.initializer);or(Tr,A),$n(Tr,3072),Ca(Tr,He);let pi=zs(A)?Ye():t.createThis(),Dr=eie(t,A,Zn,gn,pi);or(Dr,A),jc(Dr,Pe),Ca(Dr,He);let Ea=t.createModifiersFromModifierFlags(Vd(Zn)),yc=tie(t,A,Ea,Ar,pi);return or(yc,A),$n(yc,3072),Ca(yc,He),tA([Tr,Dr,yc],Qe,Ml)}function An(A){if(Lr(A)){let Pe=$s(A.name);if(E.assert(Pe,"Undeclared private name for property declaration."),!Pe.isValid)return A;if(Pe.isStatic&&!D){let He=Mt(A,t.createThis());if(He)return t.createClassStaticBlockDeclaration(t.createBlock([He],!0))}return}return x&&!zs(A)&&H?.data&&H.data.facts&16?t.updatePropertyDeclaration(A,Dn(A.modifiers,ke,Mo),A.name,void 0,void 0,void 0):(L_(A,Be)&&(A=B_(e,A)),t.updatePropertyDeclaration(A,Dn(A.modifiers,Me,ra),Ge(A.name,Oe,Rc),void 0,void 0,Ge(A.initializer,ke,ut)))}function Ot(A){if(w&&!u_(A)){let Pe=wr(A.name,!!A.initializer||y);if(Pe&&js().push(...nie(Pe)),zs(A)&&!D){let He=Mt(A,t.createThis());if(He){let kt=t.createClassStaticBlockDeclaration(t.createBlock([He]));return or(kt,A),jc(kt,A),jc(He,{pos:-1,end:-1}),v1(He,void 0),jx(He,void 0),kt}}return}return t.updatePropertyDeclaration(A,Dn(A.modifiers,Me,ra),Ge(A.name,Oe,Rc),void 0,void 0,Ge(A.initializer,ke,ut))}function Sn(A){return E.assert(!Vf(A),"Decorators should already have been transformed and elided."),ju(A)?An(A):Ot(A)}function Cn(){return O===-1||O===3&&!!H?.data&&!!(H.data.facts&16)}function Kn(A){return u_(A)&&(Cn()||Yc(A)&&Wp(A)&32)?fn(A):Sn(A)}function Fi(){return!!se&&Yc(se)&&G0(se)&&u_(cc(se))}function Wi(A){if(Fi()){let Pe=wc(A);Pe.kind===110&&oe.add(Pe)}}function Ii(A,Pe){return Pe=Ge(Pe,ke,ut),Wi(Pe),Ki(A,Pe)}function Ki(A,Pe){switch(jc(Pe,d1(Pe,-1)),A.kind){case"a":return n().createClassPrivateFieldGetHelper(Pe,A.brandCheckIdentifier,A.kind,A.getterName);case"m":return n().createClassPrivateFieldGetHelper(Pe,A.brandCheckIdentifier,A.kind,A.methodName);case"f":return n().createClassPrivateFieldGetHelper(Pe,A.brandCheckIdentifier,A.kind,A.isStatic?A.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(A,"Unknown private element type")}}function na(A){if(Di(A.name)){let Pe=$s(A.name);if(Pe)return nt(or(Ii(Pe,A.expression),A),A)}if(V&&se&&f_(A)&&Ie(A.name)&&k3(se)&&H?.data){let{classConstructor:Pe,superClassReference:He,facts:kt}=H.data;if(kt&1)return Mi(A);if(Pe&&He){let gn=t.createReflectGetCall(He,t.createStringLiteralFromNode(A.name),Pe);return or(gn,A.expression),nt(gn,A.expression),gn}}return on(A,ke,e)}function Fs(A){if(V&&se&&f_(A)&&k3(se)&&H?.data){let{classConstructor:Pe,superClassReference:He,facts:kt}=H.data;if(kt&1)return Mi(A);if(Pe&&He){let gn=t.createReflectGetCall(He,Ge(A.argumentExpression,ke,ut),Pe);return or(gn,A.expression),nt(gn,A.expression),gn}}return on(A,ke,e)}function Ce(A,Pe){if(A.operator===46||A.operator===47){let He=eo(A.operand);if(Ak(He)){let kt;if(kt=$s(He.name)){let gn=Ge(He.expression,ke,ut);Wi(gn);let{readExpression:Ar,initializeExpression:Zn}=dt(gn),Tr=Ii(kt,Ar),pi=x1(A)||Pe?void 0:t.createTempVariable(i);return Tr=_O(t,A,Tr,i,pi),Tr=wt(kt,Zn||Ar,Tr,64),or(Tr,A),nt(Tr,A),pi&&(Tr=t.createComma(Tr,pi),nt(Tr,A)),Tr}}else if(V&&se&&f_(He)&&k3(se)&&H?.data){let{classConstructor:kt,superClassReference:gn,facts:Ar}=H.data;if(Ar&1){let Zn=Mi(He);return x1(A)?t.updatePrefixUnaryExpression(A,Zn):t.updatePostfixUnaryExpression(A,Zn)}if(kt&&gn){let Zn,Tr;if(Cr(He)?Ie(He.name)&&(Tr=Zn=t.createStringLiteralFromNode(He.name)):Xd(He.argumentExpression)?Tr=Zn=He.argumentExpression:(Tr=t.createTempVariable(i),Zn=t.createAssignment(Tr,Ge(He.argumentExpression,ke,ut))),Zn&&Tr){let pi=t.createReflectGetCall(gn,Tr,kt);nt(pi,He);let Dr=Pe?void 0:t.createTempVariable(i);return pi=_O(t,A,pi,i,Dr),pi=t.createReflectSetCall(gn,Zn,pi,kt),or(pi,A),nt(pi,A),Dr&&(pi=t.createComma(pi,Dr),nt(pi,A)),pi}}}}return on(A,ke,e)}function Ue(A){return t.updateForStatement(A,Ge(A.initializer,be,zf),Ge(A.condition,ke,ut),Ge(A.incrementor,be,ut),Ku(A.statement,ke,e))}function it(A){return t.updateExpressionStatement(A,Ge(A.expression,be,ut))}function dt(A){let Pe=Ro(A)?A:t.cloneNode(A);if(A.kind===110&&oe.has(A)&&oe.add(Pe),Xd(A))return{readExpression:Pe,initializeExpression:void 0};let He=t.createTempVariable(i),kt=t.createAssignment(He,Pe);return{readExpression:He,initializeExpression:kt}}function gt(A){var Pe;if(Ak(A.expression)&&$s(A.expression.name)){let{thisArg:He,target:kt}=t.createCallBinding(A.expression,i,p);return p2(A)?t.updateCallChain(A,t.createPropertyAccessChain(Ge(kt,ke,ut),A.questionDotToken,"call"),void 0,void 0,[Ge(He,ke,ut),...Dn(A.arguments,ke,ut)]):t.updateCallExpression(A,t.createPropertyAccessExpression(Ge(kt,ke,ut),"call"),void 0,[Ge(He,ke,ut),...Dn(A.arguments,ke,ut)])}if(V&&se&&f_(A.expression)&&k3(se)&&((Pe=H?.data)!=null&&Pe.classConstructor)){let He=t.createFunctionCallCall(Ge(A.expression,ke,ut),H.data.classConstructor,Dn(A.arguments,ke,ut));return or(He,A),nt(He,A),He}return on(A,ke,e)}function fe(A){var Pe;if(Ak(A.tag)&&$s(A.tag.name)){let{thisArg:He,target:kt}=t.createCallBinding(A.tag,i,p);return t.updateTaggedTemplateExpression(A,t.createCallExpression(t.createPropertyAccessExpression(Ge(kt,ke,ut),"bind"),void 0,[Ge(He,ke,ut)]),void 0,Ge(A.template,ke,Fk))}if(V&&se&&f_(A.tag)&&k3(se)&&((Pe=H?.data)!=null&&Pe.classConstructor)){let He=t.createFunctionBindCall(Ge(A.tag,ke,ut),H.data.classConstructor,[]);return or(He,A),nt(He,A),t.updateTaggedTemplateExpression(A,He,void 0,Ge(A.template,ke,Fk))}return on(A,ke,e)}function we(A){if(H&&K.set(cc(A),H),D){if(x3(A)){let kt=Ge(A.body.statements[0].expression,ke,ut);return pl(kt,!0)&&kt.left===kt.right?void 0:kt}if(uT(A))return Ge(A.body.statements[0].expression,ke,ut);o();let Pe=ii(A,kt=>Dn(kt,ke,Ai),A.body.statements);Pe=t.mergeLexicalEnvironment(Pe,s());let He=t.createImmediatelyInvokedArrowFunction(Pe);return or(eo(He.expression),A),Mm(eo(He.expression),4),or(He,A),nt(He,A),He}}function Be(A){if(Bl(A)&&!A.name){let Pe=t9(A);return ft(Pe,uT)?!1:(D||!!Wp(A))&&ft(Pe,kt=>rc(kt)||ju(kt)||w&&rA(kt))}return!1}function yt(A,Pe){if(Qh(A)){let He=_e;_e=void 0,A=t.updateBinaryExpression(A,Ge(A.left,mt,ut),A.operatorToken,Ge(A.right,ke,ut));let kt=ft(_e)?t.inlineExpressions(rP([..._e,A])):A;return _e=He,kt}if(pl(A)){L_(A,Be)&&(A=B_(e,A),E.assertNode(A,pl));let He=wc(A.left,9);if(Ak(He)){let kt=$s(He.name);if(kt)return nt(or(wt(kt,He.expression,A.right,A.operatorToken.kind),A),A)}else if(V&&se&&f_(A.left)&&k3(se)&&H?.data){let{classConstructor:kt,superClassReference:gn,facts:Ar}=H.data;if(Ar&1)return t.updateBinaryExpression(A,Mi(A.left),A.operatorToken,Ge(A.right,ke,ut));if(kt&&gn){let Zn=ko(A.left)?Ge(A.left.argumentExpression,ke,ut):Ie(A.left.name)?t.createStringLiteralFromNode(A.left.name):void 0;if(Zn){let Tr=Ge(A.right,ke,ut);if(v3(A.operatorToken.kind)){let Dr=Zn;Xd(Zn)||(Dr=t.createTempVariable(i),Zn=t.createAssignment(Dr,Zn));let Ea=t.createReflectGetCall(gn,Dr,kt);or(Ea,A.left),nt(Ea,A.left),Tr=t.createBinaryExpression(Ea,b3(A.operatorToken.kind),Tr),nt(Tr,A)}let pi=Pe?void 0:t.createTempVariable(i);return pi&&(Tr=t.createAssignment(pi,Tr),nt(pi,A)),Tr=t.createReflectSetCall(gn,Zn,Tr,kt),or(Tr,A),nt(Tr,A),pi&&(Tr=t.createComma(Tr,pi),nt(Tr,A)),Tr}}}}return nMe(A)?ht(A):on(A,ke,e)}function G(A,Pe){let He=Pe?nA(A.elements,be):nA(A.elements,ke,be);return t.updateCommaListExpression(A,He)}function vt(A,Pe){let He=Pe?be:ke,kt=Ge(A.expression,He,ut);return t.updateParenthesizedExpression(A,kt)}function wt(A,Pe,He,kt){if(Pe=Ge(Pe,ke,ut),He=Ge(He,ke,ut),Wi(Pe),v3(kt)){let{readExpression:gn,initializeExpression:Ar}=dt(Pe);Pe=Ar||gn,He=t.createBinaryExpression(Ki(A,gn),b3(kt),He)}switch(jc(Pe,d1(Pe,-1)),A.kind){case"a":return n().createClassPrivateFieldSetHelper(Pe,A.brandCheckIdentifier,He,A.kind,A.setterName);case"m":return n().createClassPrivateFieldSetHelper(Pe,A.brandCheckIdentifier,He,A.kind,void 0);case"f":return n().createClassPrivateFieldSetHelper(Pe,A.brandCheckIdentifier,He,A.kind,A.isStatic?A.variableName:void 0);case"untransformed":return E.fail("Access helpers should not be created for untransformed private elements");default:E.assertNever(A,"Unknown private element type")}}function Re(A){return Fr(A.members,ase)}function ot(A){var Pe;let He=0,kt=cc(A);Zc(kt)&&Hh(S,kt)&&(He|=1),D&&(wU(A)||r9(A))&&(He|=2);let gn=!1,Ar=!1,Zn=!1,Tr=!1;for(let Dr of A.members)zs(Dr)?((Dr.name&&(Di(Dr.name)||u_(Dr))&&D||u_(Dr)&&O===-1&&!A.name&&!((Pe=A.emitNode)!=null&&Pe.classThis))&&(He|=2),(Is(Dr)||rc(Dr))&&(z&&Dr.transformFlags&16384&&(He|=8,He&1||(He|=2)),V&&Dr.transformFlags&134217728&&(He&1||(He|=6)))):Gv(cc(Dr))||(u_(Dr)?(Tr=!0,Zn||(Zn=ju(Dr))):ju(Dr)?(Zn=!0,f.getNodeCheckFlags(Dr)&262144&&(He|=2)):Is(Dr)&&(gn=!0,Ar||(Ar=!!Dr.initializer)));return(C&&gn||x&&Ar||D&&Zn||D&&Tr&&O===-1)&&(He|=16),He}function Dt(A){var Pe;if((((Pe=H?.data)==null?void 0:Pe.facts)||0)&4){let kt=t.createTempVariable(i,!0);return mi().superClassReference=kt,t.updateExpressionWithTypeArguments(A,t.createAssignment(kt,Ge(A.expression,ke,ut)),void 0)}return on(A,ke,e)}function Zt(A,Pe){var He;let kt=Se,gn=_e,Ar=H;Se=A,_e=void 0,is();let Zn=Wp(A)&32;if(D||Zn){let Dr=us(A);if(Dr&&Ie(Dr))ua().data.className=Dr;else if((He=A.emitNode)!=null&&He.assignedName&&ca(A.emitNode.assignedName)){if(A.emitNode.assignedName.textSourceNode&&Ie(A.emitNode.assignedName.textSourceNode))ua().data.className=A.emitNode.assignedName.textSourceNode;else if(hf(A.emitNode.assignedName.text,p)){let Ea=t.createIdentifier(A.emitNode.assignedName.text);ua().data.className=Ea}}}if(D){let Dr=Re(A);ft(Dr)&&(ua().data.weakSetName=Ho("instances",Dr[0].name))}let Tr=ot(A);Tr&&(mi().facts=Tr),Tr&8&&jr();let pi=Pe(A,Tr);return In(),E.assert(H===Ar),Se=kt,_e=gn,pi}function tn(A){return Zt(A,ln)}function ln(A,Pe){var He,kt;let gn;if(Pe&2)if(D&&((He=A.emitNode)!=null&&He.classThis))mi().classConstructor=A.emitNode.classThis,gn=t.createAssignment(A.emitNode.classThis,t.getInternalName(A));else{let ro=t.createTempVariable(i,!0);mi().classConstructor=t.cloneNode(ro),gn=t.createAssignment(ro,t.getInternalName(A))}(kt=A.emitNode)!=null&&kt.classThis&&(mi().classThis=A.emitNode.classThis);let Ar=f.getNodeCheckFlags(A)&262144,Zn=Mr(A,32),Tr=Mr(A,2048),pi=Dn(A.modifiers,Me,ra),Dr=Dn(A.heritageClauses,_t,rf),{members:Ea,prologue:yc}=ue(A),ll=[];if(gn&&js().unshift(gn),ft(_e)&&ll.push(t.createExpressionStatement(t.inlineExpressions(_e))),x||D||Wp(A)&32){let ro=t9(A);ft(ro)&&St(ll,ro,t.getInternalName(A))}ll.length>0&&Zn&&Tr&&(pi=Dn(pi,ro=>w8(ro)?void 0:ro,ra),ll.push(t.createExportAssignment(void 0,!1,t.getLocalName(A,!1,!0))));let _o=mi().classConstructor;Ar&&_o&&(br(),ae[_u(A)]=_o);let ul=t.updateClassDeclaration(A,pi,A.name,void 0,Dr,Ea);return ll.unshift(ul),yc&&ll.unshift(t.createExpressionStatement(yc)),ll}function W(A){return Zt(A,j)}function j(A,Pe){var He,kt,gn;let Ar=!!(Pe&1),Zn=t9(A),Tr=f.getNodeCheckFlags(A),pi=Tr&262144,Dr;function Ea(){var Au;if(D&&((Au=A.emitNode)!=null&&Au.classThis))return mi().classConstructor=A.emitNode.classThis;let Gf=Tr&32768,tu=t.createTempVariable(Gf?u:i,!0);return mi().classConstructor=t.cloneNode(tu),tu}(He=A.emitNode)!=null&&He.classThis&&(mi().classThis=A.emitNode.classThis),Pe&2&&(Dr??(Dr=Ea()));let yc=Dn(A.modifiers,Me,ra),ll=Dn(A.heritageClauses,_t,rf),{members:_o,prologue:ul}=ue(A),ro=t.updateClassExpression(A,yc,A.name,void 0,ll,_o),Cl=[];if(ul&&Cl.push(ul),(D||Wp(A)&32)&&ft(Zn,Au=>rc(Au)||ju(Au)||w&&rA(Au))||ft(_e))if(Ar)E.assertIsDefined($,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),ft(_e)&&Nr($,Kt(_e,t.createExpressionStatement)),ft(Zn)&&St($,Zn,((kt=A.emitNode)==null?void 0:kt.classThis)??t.getInternalName(A)),Dr?Cl.push(t.createAssignment(Dr,ro)):D&&((gn=A.emitNode)!=null&&gn.classThis)?Cl.push(t.createAssignment(A.emitNode.classThis,ro)):Cl.push(ro);else{if(Dr??(Dr=Ea()),pi){br();let Au=t.cloneNode(Dr);Au.emitNode.autoGenerate.flags&=-9,ae[_u(A)]=Au}Cl.push(t.createAssignment(Dr,ro)),Nr(Cl,_e),Nr(Cl,Wt(Zn,Dr)),Cl.push(t.cloneNode(Dr))}else Cl.push(ro);return Cl.length>1&&(Mm(ro,131072),Cl.forEach(Uu)),t.inlineExpressions(Cl)}function ce(A){if(!D)return on(A,ke,e)}function ee(A){if(z&&se&&rc(se)&&H?.data){let{classThis:Pe,classConstructor:He}=H.data;return Pe??He??A}return A}function ue(A){let Pe=!!(Wp(A)&32);if(D||B){for(let Zn of A.members)if(ju(Zn))if(Lr(Zn))gl(Zn,Zn.name,Pn);else{let Tr=ua();X2(Tr,Zn.name,{kind:"untransformed"})}if(D&&ft(Re(A))&&M(),Cn()){for(let Zn of A.members)if(u_(Zn)){let Tr=t.getGeneratedPrivateNameForNode(Zn.name,void 0,"_accessor_storage");if(D||Pe&&Yc(Zn))gl(Zn,Tr,Nc);else{let pi=ua();X2(pi,Tr,{kind:"untransformed"})}}}}let He=Dn(A.members,me,Ml),kt;ft(He,Cc)||(kt=De(void 0,A));let gn,Ar;if(!D&&ft(_e)){let Zn=t.createExpressionStatement(t.inlineExpressions(_e));if(Zn.transformFlags&134234112){let pi=t.createTempVariable(i),Dr=t.createArrowFunction(void 0,void 0,[],void 0,void 0,t.createBlock([Zn]));gn=t.createAssignment(pi,Dr),Zn=t.createExpressionStatement(t.createCallExpression(pi,void 0,[]))}let Tr=t.createBlock([Zn]);Ar=t.createClassStaticBlockDeclaration(Tr),_e=void 0}if(kt||Ar){let Zn,Tr=xr(He,x3),pi=xr(He,uT);Zn=_n(Zn,Tr),Zn=_n(Zn,pi),Zn=_n(Zn,kt),Zn=_n(Zn,Ar);let Dr=Tr||pi?Fr(He,Ea=>Ea!==Tr&&Ea!==pi):He;Zn=Nr(Zn,Dr),He=nt(t.createNodeArray(Zn),A.members)}return{members:He,prologue:gn}}function M(){let{weakSetName:A}=ua().data;E.assert(A,"weakSetName should be set in private identifier environment"),js().push(t.createAssignment(A,t.createNewExpression(t.createIdentifier("WeakSet"),void 0,[])))}function De(A,Pe){if(A=Ge(A,ke,Cc),!H?.data||!(H.data.facts&16))return A;let He=Bd(Pe),kt=!!(He&&wc(He.expression).kind!==106),gn=Ac(A?A.parameters:void 0,ke,e),Ar=Fe(Pe,A,kt);return Ar?A?(E.assert(gn),t.updateConstructorDeclaration(A,void 0,gn,Ar)):Uu(or(nt(t.createConstructorDeclaration(void 0,gn??[],Ar),A||Pe),A)):A}function qe(A,Pe,He,kt,gn,Ar,Zn){let Tr=kt[gn],pi=Pe[Tr];if(Nr(A,Dn(Pe,ke,Ai,He,Tr-He)),He=Tr+1,V2(pi)){let Dr=[];qe(Dr,pi.tryBlock.statements,0,kt,gn+1,Ar,Zn);let Ea=t.createNodeArray(Dr);nt(Ea,pi.tryBlock.statements),A.push(t.updateTryStatement(pi,t.updateBlock(pi.tryBlock,Dr),Ge(pi.catchClause,ke,ib),Ge(pi.finallyBlock,ke,Ds)))}else{for(Nr(A,Dn(Pe,ke,Ai,Tr,1));He!!_o.initializer||Di(_o.name)||zd(_o)));let Ar=Re(A),Zn=ft(gn)||ft(Ar);if(!Pe&&!Zn)return kf(void 0,ke,e);c();let Tr=!Pe&&He,pi=0,Dr=[],Ea=[],yc=t.createThis();if(Br(Ea,Ar,yc),Pe){let _o=Fr(kt,ro=>F_(cc(ro),Pe)),ul=Fr(gn,ro=>!F_(cc(ro),Pe));St(Ea,_o,yc),St(Ea,ul,yc)}else St(Ea,gn,yc);if(Pe?.body){pi=t.copyPrologue(Pe.body.statements,Dr,!1,ke);let _o=e9(Pe.body.statements,pi);if(_o.length)qe(Dr,Pe.body.statements,pi,_o,0,Ea,Pe);else{for(;pi=Dr.length?Pe.body.multiLine??Dr.length>0:Dr.length>0;return nt(t.createBlock(nt(t.createNodeArray(Dr),Pe?Pe.body.statements:A.members),ll),Pe?Pe.body:void 0)}function St(A,Pe,He){for(let kt of Pe){if(zs(kt)&&!D)continue;let gn=Mt(kt,He);gn&&A.push(gn)}}function Mt(A,Pe){let He=rc(A)?ii(A,we,A):Rn(A,Pe);if(!He)return;let kt=t.createExpressionStatement(He);or(kt,A),Mm(kt,Sa(A)&3072),jc(kt,A);let gn=cc(A);return ms(gn)?(Ca(kt,gn),o8(kt)):Ca(kt,Wd(A)),v1(He,void 0),jx(He,void 0),zd(gn)&&Mm(kt,3072),kt}function Wt(A,Pe){let He=[];for(let kt of A){let gn=rc(kt)?ii(kt,we,kt):ii(kt,()=>Rn(kt,Pe),void 0);gn&&(Uu(gn),or(gn,kt),Mm(gn,Sa(kt)&3072),Ca(gn,Wd(kt)),jc(gn,kt),He.push(gn))}return He}function Rn(A,Pe){var He;let kt=se,gn=nr(A,Pe);return gn&&Yc(A)&&((He=H?.data)!=null&&He.facts)&&(or(gn,A),Mm(gn,4),Ca(gn,y1(A.name)),K.set(cc(A),H)),se=kt,gn}function nr(A,Pe){let He=!y;L_(A,Be)&&(A=B_(e,A));let kt=zd(A)?t.getGeneratedPrivateNameForNode(A.name):Na(A.name)&&!Xd(A.name.expression)?t.updateComputedPropertyName(A.name,t.getGeneratedNameForNode(A.name)):A.name;if(Yc(A)&&(se=A),Di(kt)&&Lr(A)){let Zn=$s(kt);if(Zn)return Zn.kind==="f"?Zn.isStatic?ZLe(t,Zn.variableName,Ge(A.initializer,ke,ut)):KLe(t,Pe,Ge(A.initializer,ke,ut),Zn.brandCheckIdentifier):void 0;E.fail("Undeclared private name for property declaration.")}if((Di(kt)||Yc(A))&&!A.initializer)return;let gn=cc(A);if(Mr(gn,64))return;let Ar=Ge(A.initializer,ke,ut);if(F_(gn,gn.parent)&&Ie(kt)){let Zn=t.cloneNode(kt);Ar?(C_(Ar)&&C8(Ar.expression)&&qE(Ar.expression.left,"___runInitializers")&&Xx(Ar.expression.right)&&R_(Ar.expression.right.expression)&&(Ar=Ar.expression.left),Ar=t.inlineExpressions([Ar,Zn])):Ar=Zn,$n(kt,3168),Ca(Zn,gn.name),$n(Zn,3072)}else Ar??(Ar=t.createVoidZero());if(He||Di(kt)){let Zn=H2(t,Pe,kt,kt);return Mm(Zn,1024),t.createAssignment(Zn,Ar)}else{let Zn=Na(kt)?kt.expression:Ie(kt)?t.createStringLiteral(Ci(kt.escapedText)):kt,Tr=t.createPropertyDescriptor({value:Ar,configurable:!0,writable:!0,enumerable:!0});return t.createObjectDefinePropertyCall(Pe,Zn,Tr)}}function br(){Z&1||(Z|=1,e.enableSubstitution(80),ae=[])}function jr(){Z&2||(Z|=2,e.enableSubstitution(110),e.enableEmitNotification(262),e.enableEmitNotification(218),e.enableEmitNotification(176),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(174),e.enableEmitNotification(172),e.enableEmitNotification(167))}function Br(A,Pe,He){if(!D||!ft(Pe))return;let{weakSetName:kt}=ua().data;E.assert(kt,"weakSetName should be set in private identifier environment"),A.push(t.createExpressionStatement(eMe(t,He,kt)))}function Mi(A){return Cr(A)?t.updatePropertyAccessExpression(A,t.createVoidZero(),A.name):t.updateElementAccessExpression(A,t.createVoidZero(),Ge(A.argumentExpression,ke,ut))}function wr(A,Pe){if(Na(A)){let He=yO(A),kt=Ge(A.expression,ke,ut),gn=Vp(kt),Ar=Xd(gn);if(!(!!He||pl(gn)&&Lo(gn.left))&&!Ar&&Pe){let Tr=t.getGeneratedNameForNode(A);return f.getNodeCheckFlags(A)&32768?u(Tr):i(Tr),t.createAssignment(Tr,kt)}return Ar||Ie(gn)?void 0:kt}}function is(){H={previous:H,data:void 0}}function In(){H=H?.previous}function mi(){return E.assert(H),H.data??(H.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function ua(){return E.assert(H),H.privateEnv??(H.privateEnv=lse({className:void 0,weakSetName:void 0}))}function js(){return _e??(_e=[])}function Pn(A,Pe,He,kt,gn,Ar,Zn){u_(A)?ec(A,Pe,He,kt,gn,Ar,Zn):Is(A)?Nc(A,Pe,He,kt,gn,Ar,Zn):kc(A)?_s(A,Pe,He,kt,gn,Ar,Zn):Sf(A)?to(A,Pe,He,kt,gn,Ar,Zn):j_(A)&&fc(A,Pe,He,kt,gn,Ar,Zn)}function Nc(A,Pe,He,kt,gn,Ar,Zn){if(gn){let Tr=E.checkDefined(He.classThis??He.classConstructor,"classConstructor should be set in private identifier environment"),pi=xs(Pe);X2(kt,Pe,{kind:"f",isStatic:!0,brandCheckIdentifier:Tr,variableName:pi,isValid:Ar})}else{let Tr=xs(Pe);X2(kt,Pe,{kind:"f",isStatic:!1,brandCheckIdentifier:Tr,isValid:Ar}),js().push(t.createAssignment(Tr,t.createNewExpression(t.createIdentifier("WeakMap"),void 0,[])))}}function _s(A,Pe,He,kt,gn,Ar,Zn){let Tr=xs(Pe),pi=gn?E.checkDefined(He.classThis??He.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(kt.data.weakSetName,"weakSetName should be set in private identifier environment");X2(kt,Pe,{kind:"m",methodName:Tr,brandCheckIdentifier:pi,isStatic:gn,isValid:Ar})}function to(A,Pe,He,kt,gn,Ar,Zn){let Tr=xs(Pe,"_get"),pi=gn?E.checkDefined(He.classThis??He.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(kt.data.weakSetName,"weakSetName should be set in private identifier environment");Zn?.kind==="a"&&Zn.isStatic===gn&&!Zn.getterName?Zn.getterName=Tr:X2(kt,Pe,{kind:"a",getterName:Tr,setterName:void 0,brandCheckIdentifier:pi,isStatic:gn,isValid:Ar})}function fc(A,Pe,He,kt,gn,Ar,Zn){let Tr=xs(Pe,"_set"),pi=gn?E.checkDefined(He.classThis??He.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(kt.data.weakSetName,"weakSetName should be set in private identifier environment");Zn?.kind==="a"&&Zn.isStatic===gn&&!Zn.setterName?Zn.setterName=Tr:X2(kt,Pe,{kind:"a",getterName:void 0,setterName:Tr,brandCheckIdentifier:pi,isStatic:gn,isValid:Ar})}function ec(A,Pe,He,kt,gn,Ar,Zn){let Tr=xs(Pe,"_get"),pi=xs(Pe,"_set"),Dr=gn?E.checkDefined(He.classThis??He.classConstructor,"classConstructor should be set in private identifier environment"):E.checkDefined(kt.data.weakSetName,"weakSetName should be set in private identifier environment");X2(kt,Pe,{kind:"a",getterName:Tr,setterName:pi,brandCheckIdentifier:Dr,isStatic:gn,isValid:Ar})}function gl(A,Pe,He){let kt=mi(),gn=ua(),Ar=EU(gn,Pe),Zn=Yc(A),Tr=!tMe(Pe)&&Ar===void 0;He(A,Pe,kt,gn,Zn,Tr,Ar)}function Ho(A,Pe,He){let{className:kt}=ua().data,gn=kt?{prefix:"_",node:kt,suffix:"_"}:"_",Ar=typeof A=="object"?t.getGeneratedNameForNode(A,24,gn,He):typeof A=="string"?t.createUniqueName(A,16,gn,He):t.createTempVariable(void 0,!0,gn,He);return f.getNodeCheckFlags(Pe)&32768?u(Ar):i(Ar),Ar}function xs(A,Pe){let He=K4(A);return Ho(He?.substring(1)??A,A,Pe)}function $s(A){let Pe=use(H,A);return Pe?.kind==="untransformed"?void 0:Pe}function cl(A){let Pe=t.getGeneratedNameForNode(A),He=$s(A.name);if(!He)return on(A,ke,e);let kt=A.expression;return(iw(A)||f_(A)||!ub(A.expression))&&(kt=t.createTempVariable(i,!0),js().push(t.createBinaryExpression(kt,64,Ge(A.expression,ke,ut)))),t.createAssignmentTargetWrapper(Pe,wt(He,kt,Pe,64))}function Do(A){if(xa(A)||Vu(A))return Ht(A);if(Ak(A))return cl(A);if(V&&se&&f_(A)&&k3(se)&&H?.data){let{classConstructor:Pe,superClassReference:He,facts:kt}=H.data;if(kt&1)return Mi(A);if(Pe&&He){let gn=ko(A)?Ge(A.argumentExpression,ke,ut):Ie(A.name)?t.createStringLiteralFromNode(A.name):void 0;if(gn){let Ar=t.createTempVariable(void 0);return t.createAssignmentTargetWrapper(Ar,t.createReflectSetCall(He,gn,Ar,Pe))}}}return on(A,ke,e)}function Xs(A){if(L_(A,Be)&&(A=B_(e,A)),pl(A,!0)){let Pe=Do(A.left),He=Ge(A.right,ke,ut);return t.updateBinaryExpression(A,Pe,A.operatorToken,He)}return Do(A)}function Jc(A){if(x_(A.expression)){let Pe=Do(A.expression);return t.updateSpreadElement(A,Pe)}return on(A,ke,e)}function td(A){if(JP(A)){if(qd(A))return Jc(A);if(!xl(A))return Xs(A)}return on(A,ke,e)}function zc(A){let Pe=Ge(A.name,ke,Rc);if(pl(A.initializer,!0)){let He=Xs(A.initializer);return t.updatePropertyAssignment(A,Pe,He)}if(x_(A.initializer)){let He=Do(A.initializer);return t.updatePropertyAssignment(A,Pe,He)}return on(A,ke,e)}function ic(A){return L_(A,Be)&&(A=B_(e,A)),on(A,ke,e)}function Bo(A){if(x_(A.expression)){let Pe=Do(A.expression);return t.updateSpreadAssignment(A,Pe)}return on(A,ke,e)}function as(A){return E.assertNode(A,BP),n0(A)?Bo(A):sf(A)?ic(A):el(A)?zc(A):on(A,ke,e)}function Ht(A){return Vu(A)?t.updateArrayLiteralExpression(A,Dn(A.elements,td,ut)):t.updateObjectLiteralExpression(A,Dn(A.properties,as,th))}function Jo(A,Pe,He){let kt=cc(Pe),gn=K.get(kt);if(gn){let Ar=H,Zn=ve;H=gn,ve=Y,Y=!rc(kt)||!(Wp(kt)&32),ie(A,Pe,He),Y=ve,ve=Zn,H=Ar;return}switch(Pe.kind){case 218:if(Co(kt)||Sa(Pe)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{let Ar=H,Zn=ve;H=void 0,ve=Y,Y=!1,ie(A,Pe,He),Y=ve,ve=Zn,H=Ar;return}case 167:{let Ar=H,Zn=Y;H=H?.previous,Y=ve,ie(A,Pe,He),Y=Zn,H=Ar;return}}ie(A,Pe,He)}function nl(A,Pe){return Pe=J(A,Pe),A===1?qu(Pe):Pe}function qu(A){switch(A.kind){case 80:return Po(A);case 110:return h_(A)}return A}function h_(A){if(Z&2&&H?.data&&!oe.has(A)){let{facts:Pe,classConstructor:He,classThis:kt}=H.data,gn=Y?kt??He:He;if(gn)return nt(or(t.cloneNode(gn),A),A);if(Pe&1&&S)return t.createParenthesizedExpression(t.createVoidZero())}return A}function Po(A){return Ic(A)||A}function Ic(A){if(Z&1&&f.getNodeCheckFlags(A)&536870912){let Pe=f.getReferencedValueDeclaration(A);if(Pe){let He=ae[Pe.id];if(He){let kt=t.cloneNode(He);return Ca(kt,A),jc(kt,A),kt}}}}}function ZLe(e,t,n){return e.createAssignment(t,e.createObjectLiteralExpression([e.createPropertyAssignment("value",n||e.createVoidZero())]))}function KLe(e,t,n,i){return e.createCallExpression(e.createPropertyAccessExpression(i,"set"),void 0,[t,n||e.createVoidZero()])}function eMe(e,t,n){return e.createCallExpression(e.createPropertyAccessExpression(n,"add"),void 0,[t])}function tMe(e){return!d2(e)&&e.escapedText==="#constructor"}function nMe(e){return Di(e.left)&&e.operatorToken.kind===103}function rMe(e){return Is(e)&&Yc(e)}function k3(e){return rc(e)||rMe(e)}var iMe=ze({"src/compiler/transformers/classFields.ts"(){"use strict";Rs()}});function bse(e){let{factory:t,hoistVariableDeclaration:n}=e,i=e.getEmitResolver(),s=e.getCompilerOptions(),o=La(s),c=bp(s,"strictNullChecks"),u,f;return{serializeTypeNode:(_e,$)=>g(_e,w,$),serializeTypeOfNode:(_e,$)=>g(_e,y,$),serializeParameterTypesOfNode:(_e,$,H)=>g(_e,S,$,H),serializeReturnTypeOfNode:(_e,$)=>g(_e,C,$)};function g(_e,$,H,K){let oe=u,Se=f;u=_e.currentLexicalScope,f=_e.currentNameScope;let se=K===void 0?$(H):$(H,K);return u=oe,f=Se,se}function p(_e){let $=i.getAllAccessorDeclarations(_e);return $.setAccessor&&Lte($.setAccessor)||$.getAccessor&&yp($.getAccessor)}function y(_e){switch(_e.kind){case 172:case 169:return w(_e.type);case 178:case 177:return w(p(_e));case 263:case 231:case 174:return t.createIdentifier("Function");default:return t.createVoidZero()}}function S(_e,$){let H=ei(_e)?yg(_e):As(_e)&&fp(_e.body)?_e:void 0,K=[];if(H){let oe=x(H,$),Se=oe.length;for(let se=0;seoe.parent&&CC(oe.parent)&&(oe.parent.trueType===oe||oe.parent.falseType===oe)))return t.createIdentifier("Object");let H=J(_e.typeName),K=t.createTempVariable(n);return t.createConditionalExpression(t.createTypeCheck(t.createAssignment(K,H),"function"),void 0,K,void 0,t.createIdentifier("Object"));case 1:return ie(_e.typeName);case 2:return t.createVoidZero();case 4:return ae("BigInt",7);case 6:return t.createIdentifier("Boolean");case 3:return t.createIdentifier("Number");case 5:return t.createIdentifier("String");case 7:return t.createIdentifier("Array");case 8:return ae("Symbol",2);case 10:return t.createIdentifier("Function");case 9:return t.createIdentifier("Promise");case 11:return t.createIdentifier("Object");default:return E.assertNever($)}}function X(_e,$){return t.createLogicalAnd(t.createStrictInequality(t.createTypeOfExpression(_e),t.createStringLiteral("undefined")),$)}function J(_e){if(_e.kind===80){let K=ie(_e);return X(K,K)}if(_e.left.kind===80)return X(ie(_e.left),ie(_e));let $=J(_e.left),H=t.createTempVariable(n);return t.createLogicalAnd(t.createLogicalAnd($.left,t.createStrictInequality(t.createAssignment(H,$.right),t.createVoidZero())),t.createPropertyAccessExpression(H,_e.right))}function ie(_e){switch(_e.kind){case 80:let $=Ta(nt(Jm.cloneNode(_e),_e),_e.parent);return $.original=void 0,Ta($,ls(u)),$;case 166:return B(_e)}}function B(_e){return t.createPropertyAccessExpression(ie(_e.left),_e.right)}function Z(_e){return t.createConditionalExpression(t.createTypeCheck(t.createIdentifier(_e),"function"),void 0,t.createIdentifier(_e),void 0,t.createIdentifier("Object"))}function ae(_e,$){return o<$?Z(_e):t.createIdentifier(_e)}}var sMe=ze({"src/compiler/transformers/typeSerializer.ts"(){"use strict";Rs()}});function Sse(e){let{factory:t,getEmitHelperFactory:n,hoistVariableDeclaration:i}=e,s=e.getEmitResolver(),o=e.getCompilerOptions(),c=La(o),u=e.onSubstituteNode;e.onSubstituteNode=Oe;let f;return Zp(e,g);function g(Je){let lt=on(Je,y,e);return oh(lt,e.readEmitHelpers()),lt}function p(Je){return Zl(Je)?void 0:Je}function y(Je){if(!(Je.transformFlags&33554432))return Je;switch(Je.kind){case 170:return;case 263:return S(Je);case 231:return V(Je);case 176:return X(Je);case 174:return ie(Je);case 178:return Z(Je);case 177:return B(Je);case 172:return ae(Je);case 169:return _e(Je);default:return on(Je,y,e)}}function S(Je){if(!(Hh(!0,Je)||rE(!0,Je)))return on(Je,y,e);let lt=Hh(!0,Je)?z(Je,Je.name):O(Je,Je.name);return Sm(lt)}function x(Je){return!!(Je.transformFlags&536870912)}function C(Je){return ft(Je,x)}function w(Je){for(let lt of Je.members){if(!G2(lt))continue;let Jt=n9(lt,Je,!0);if(ft(Jt?.decorators,x)||ft(Jt?.parameters,C))return!0}return!1}function D(Je,lt){let Jt=[];return K(Jt,Je,!1),K(Jt,Je,!0),w(Je)&&(lt=nt(t.createNodeArray([...lt,t.createClassStaticBlockDeclaration(t.createBlock(Jt,!0))]),lt),Jt=void 0),{decorationStatements:Jt,members:lt}}function O(Je,lt){let Jt=Dn(Je.modifiers,p,ra),Gt=Dn(Je.heritageClauses,y,rf),Tn=Dn(Je.members,y,Ml),Un=[];({members:Tn,decorationStatements:Un}=D(Je,Tn));let cn=t.updateClassDeclaration(Je,Jt,lt,void 0,Gt,Tn);return Nr([cn],Un)}function z(Je,lt){let Jt=Mr(Je,32),Gt=Mr(Je,2048),Tn=Dn(Je.modifiers,Cn=>w8(Cn)||Zl(Cn)?void 0:Cn,Mo),Un=Wd(Je),cn=_t(Je),zt=c<2?t.getInternalName(Je,!1,!0):t.getLocalName(Je,!1,!0),Ft=Dn(Je.heritageClauses,y,rf),Lr=Dn(Je.members,y,Ml),ji=[];({members:Lr,decorationStatements:ji}=D(Je,Lr));let ii=c>=9&&!!cn&&ft(Lr,Cn=>Is(Cn)&&Mr(Cn,256)||rc(Cn));ii&&(Lr=nt(t.createNodeArray([t.createClassStaticBlockDeclaration(t.createBlock([t.createExpressionStatement(t.createAssignment(cn,t.createThis()))])),...Lr]),Lr));let Hi=t.createClassExpression(Tn,lt&&Lo(lt)?void 0:lt,void 0,Ft,Lr);or(Hi,Je),nt(Hi,Un);let Ye=cn&&!ii?t.createAssignment(cn,Hi):Hi,fn=t.createVariableDeclaration(zt,void 0,void 0,Ye);or(fn,Je);let An=t.createVariableDeclarationList([fn],1),Ot=t.createVariableStatement(void 0,An);or(Ot,Je),nt(Ot,Un),jc(Ot,Je);let Sn=[Ot];if(Nr(Sn,ji),ve(Sn,Je),Jt)if(Gt){let Cn=t.createExportDefault(zt);Sn.push(Cn)}else{let Cn=t.createExternalModuleExport(t.getDeclarationName(Je));Sn.push(Cn)}return Sn}function V(Je){return t.updateClassExpression(Je,Dn(Je.modifiers,p,ra),Je.name,void 0,Dn(Je.heritageClauses,y,rf),Dn(Je.members,y,Ml))}function X(Je){return t.updateConstructorDeclaration(Je,Dn(Je.modifiers,p,ra),Dn(Je.parameters,y,ms),Ge(Je.body,y,Ds))}function J(Je,lt){return Je!==lt&&(jc(Je,lt),Ca(Je,Wd(lt))),Je}function ie(Je){return J(t.updateMethodDeclaration(Je,Dn(Je.modifiers,p,ra),Je.asteriskToken,E.checkDefined(Ge(Je.name,y,Rc)),void 0,void 0,Dn(Je.parameters,y,ms),void 0,Ge(Je.body,y,Ds)),Je)}function B(Je){return J(t.updateGetAccessorDeclaration(Je,Dn(Je.modifiers,p,ra),E.checkDefined(Ge(Je.name,y,Rc)),Dn(Je.parameters,y,ms),void 0,Ge(Je.body,y,Ds)),Je)}function Z(Je){return J(t.updateSetAccessorDeclaration(Je,Dn(Je.modifiers,p,ra),E.checkDefined(Ge(Je.name,y,Rc)),Dn(Je.parameters,y,ms),Ge(Je.body,y,Ds)),Je)}function ae(Je){if(!(Je.flags&33554432||Mr(Je,128)))return J(t.updatePropertyDeclaration(Je,Dn(Je.modifiers,p,ra),E.checkDefined(Ge(Je.name,y,Rc)),void 0,void 0,Ge(Je.initializer,y,ut)),Je)}function _e(Je){let lt=t.updateParameterDeclaration(Je,Kre(t,Je.modifiers),Je.dotDotDotToken,E.checkDefined(Ge(Je.name,y,m2)),void 0,void 0,Ge(Je.initializer,y,ut));return lt!==Je&&(jc(lt,Je),nt(lt,Wd(Je)),Ca(lt,Wd(Je)),$n(lt.name,64)),lt}function $(Je){return qE(Je.expression,"___metadata")}function H(Je){if(!Je)return;let{false:lt,true:Jt}=aK(Je.decorators,$),Gt=[];return Nr(Gt,Kt(lt,Me)),Nr(Gt,oa(Je.parameters,ke)),Nr(Gt,Kt(Jt,Me)),Gt}function K(Je,lt,Jt){Nr(Je,Kt(se(lt,Jt),Gt=>t.createExpressionStatement(Gt)))}function oe(Je,lt,Jt){return aw(!0,Je,Jt)&<===zs(Je)}function Se(Je,lt){return Fr(Je.members,Jt=>oe(Jt,lt,Je))}function se(Je,lt){let Jt=Se(Je,lt),Gt;for(let Tn of Jt)Gt=_n(Gt,Y(Je,Tn));return Gt}function Y(Je,lt){let Jt=n9(lt,Je,!0),Gt=H(Jt);if(!Gt)return;let Tn=me(Je,lt),Un=he(lt,!Mr(lt,128)),cn=c>0?Is(lt)&&!zd(lt)?t.createVoidZero():t.createNull():void 0,zt=n().createDecorateHelper(Gt,Tn,Un,cn);return $n(zt,3072),Ca(zt,Wd(lt)),zt}function ve(Je,lt){let Jt=xe(lt);Jt&&Je.push(or(t.createExpressionStatement(Jt),lt))}function xe(Je){let lt=CU(Je),Jt=H(lt);if(!Jt)return;let Gt=f&&f[_u(Je)],Tn=c<2?t.getInternalName(Je,!1,!0):t.getDeclarationName(Je,!1,!0),Un=n().createDecorateHelper(Jt,Tn),cn=t.createAssignment(Tn,Gt?t.createAssignment(Gt,Un):Un);return $n(cn,3072),Ca(cn,Wd(Je)),cn}function Me(Je){return E.checkDefined(Ge(Je.expression,y,ut))}function ke(Je,lt){let Jt;if(Je){Jt=[];for(let Gt of Je){let Tn=n().createParamHelper(Me(Gt),lt);nt(Tn,Gt.expression),$n(Tn,3072),Jt.push(Tn)}}return Jt}function he(Je,lt){let Jt=Je.name;return Di(Jt)?t.createIdentifier(""):Na(Jt)?lt&&!Xd(Jt.expression)?t.getGeneratedNameForNode(Jt):Jt.expression:Ie(Jt)?t.createStringLiteral(ur(Jt)):t.cloneNode(Jt)}function be(){f||(e.enableSubstitution(80),f=[])}function _t(Je){if(s.getNodeCheckFlags(Je)&262144){be();let lt=t.createUniqueName(Je.name&&!Lo(Je.name)?ur(Je.name):"default");return f[_u(Je)]=lt,i(lt),lt}}function mt(Je){return t.createPropertyAccessExpression(t.getDeclarationName(Je),"prototype")}function me(Je,lt){return zs(lt)?t.getDeclarationName(Je):mt(Je)}function Oe(Je,lt){return lt=u(Je,lt),Je===1?Qe(lt):lt}function Qe(Je){switch(Je.kind){case 80:return at(Je)}return Je}function at(Je){return ht(Je)??Je}function ht(Je){if(f&&s.getNodeCheckFlags(Je)&536870912){let lt=s.getReferencedValueDeclaration(Je);if(lt){let Jt=f[lt.id];if(Jt){let Gt=t.cloneNode(Jt);return Ca(Gt,Je),jc(Gt,Je),Gt}}}}}var aMe=ze({"src/compiler/transformers/legacyDecorators.ts"(){"use strict";Rs()}});function xse(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=La(e.getCompilerOptions()),u,f,g,p,y,S;return Zp(e,x);function x(j){u=void 0,S=!1;let ce=on(j,Z,e);return oh(ce,e.readEmitHelpers()),S&&(Rx(ce,32),S=!1),ce}function C(){switch(f=void 0,g=void 0,p=void 0,u?.kind){case"class":f=u.classInfo;break;case"class-element":f=u.next.classInfo,g=u.classThis,p=u.classSuper;break;case"name":let j=u.next.next.next;j?.kind==="class-element"&&(f=j.next.classInfo,g=j.classThis,p=j.classSuper);break}}function w(j){u={kind:"class",next:u,classInfo:j,savedPendingExpressions:y},y=void 0,C()}function D(){E.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),y=u.savedPendingExpressions,u=u.next,C()}function O(j){var ce,ee;E.assert(u?.kind==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${u?.kind}' instead.`),u={kind:"class-element",next:u},(rc(j)||Is(j)&&Yc(j))&&(u.classThis=(ce=u.next.classInfo)==null?void 0:ce.classThis,u.classSuper=(ee=u.next.classInfo)==null?void 0:ee.classSuper),C()}function z(){var j;E.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),E.assert(((j=u.next)==null?void 0:j.kind)==="class","Incorrect value for top.next.kind.",()=>{var ce;return`Expected top.next.kind to be 'class' but got '${(ce=u.next)==null?void 0:ce.kind}' instead.`}),u=u.next,C()}function V(){E.assert(u?.kind==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${u?.kind}' instead.`),u={kind:"name",next:u},C()}function X(){E.assert(u?.kind==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${u?.kind}' instead.`),u=u.next,C()}function J(){u?.kind==="other"?(E.assert(!y),u.depth++):(u={kind:"other",next:u,depth:0,savedPendingExpressions:y},y=void 0,C())}function ie(){E.assert(u?.kind==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${u?.kind}' instead.`),u.depth>0?(E.assert(!y),u.depth--):(y=u.savedPendingExpressions,u=u.next,C())}function B(j){return!!(j.transformFlags&33554432)||!!g&&!!(j.transformFlags&16384)||!!g&&!!p&&!!(j.transformFlags&134217728)}function Z(j){if(!B(j))return j;switch(j.kind){case 170:return E.fail("Use `modifierVisitor` instead.");case 263:return xe(j);case 231:return Me(j);case 176:case 172:case 175:return E.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Un(j);case 226:return ji(j,!1);case 303:return Ot(j);case 260:return Sn(j);case 208:return Cn(j);case 277:return it(j);case 110:return Je(j);case 248:return Ft(j);case 244:return Lr(j);case 361:return Hi(j,!1);case 217:return dt(j,!1);case 360:return gt(j,!1);case 213:return lt(j);case 215:return Jt(j);case 224:case 225:return ii(j,!1);case 211:return Gt(j);case 212:return Tn(j);case 167:return An(j);case 174:case 178:case 177:case 218:case 262:{J();let ce=on(j,ae,e);return ie(),ce}default:return on(j,ae,e)}}function ae(j){switch(j.kind){case 170:return;default:return Z(j)}}function _e(j){switch(j.kind){case 170:return;default:return j}}function $(j){switch(j.kind){case 176:return be(j);case 174:return me(j);case 177:return Oe(j);case 178:return Qe(j);case 172:return ht(j);case 175:return at(j);default:return Z(j)}}function H(j){switch(j.kind){case 224:case 225:return ii(j,!0);case 226:return ji(j,!0);case 361:return Hi(j,!0);case 217:return dt(j,!0);default:return Z(j)}}function K(j){let ce=j.name&&Ie(j.name)&&!Lo(j.name)?ur(j.name):j.name&&Di(j.name)&&!Lo(j.name)?ur(j.name).slice(1):j.name&&ca(j.name)&&hf(j.name.text,99)?j.name.text:ei(j)?"class":"member";return X0(j)&&(ce=`get_${ce}`),qh(j)&&(ce=`set_${ce}`),j.name&&Di(j.name)&&(ce=`private_${ce}`),zs(j)&&(ce=`static_${ce}`),"_"+ce}function oe(j,ce){return t.createUniqueName(`${K(j)}_${ce}`,24)}function Se(j,ce){return t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(j,void 0,void 0,ce)],1))}function se(j){let ce=t.createUniqueName("_metadata",48),ee,ue,M=!1,De=!1,qe=!1;for(let Fe of j.members)if(hee(Fe)&&aw(!1,Fe,j)&&(Yc(Fe)?ue??(ue=t.createUniqueName("_staticExtraInitializers",48)):ee??(ee=t.createUniqueName("_instanceExtraInitializers",48))),rc(Fe)?uT(Fe)||(M=!0):Is(Fe)&&(Yc(Fe)?M||(M=!!Fe.initializer||Vf(Fe)):De||(De=!GJ(Fe))),(ju(Fe)||u_(Fe))&&Yc(Fe)&&(qe=!0),ue&&ee&&M&&De&&qe)break;return{class:j,metadataReference:ce,instanceExtraInitializersName:ee,staticExtraInitializersName:ue,hasStaticInitializers:M,hasNonAmbientInstanceFields:De,hasStaticPrivateClassElements:qe}}function Y(j){i(),!AU(j)&&Hh(!1,j)&&(j=i9(e,j,t.createStringLiteral("")));let ce=t.getLocalName(j,!1,!1,!0),ee=se(j),ue=[],M,De,qe,Fe,St=!1,Mt=we(CU(j));if(Mt){ee.classDecoratorsName=t.createUniqueName("_classDecorators",48),ee.classDescriptorName=t.createUniqueName("_classDescriptor",48),ee.classExtraInitializersName=t.createUniqueName("_classExtraInitializers",48);let In=ft(j.members,mi=>(ju(mi)||u_(mi))&&Yc(mi));ee.classThis=t.createUniqueName("_classThis",In?24:48),ue.push(Se(ee.classDecoratorsName,t.createArrayLiteralExpression(Mt)),Se(ee.classDescriptorName),Se(ee.classExtraInitializersName,t.createArrayLiteralExpression()),Se(ee.classThis)),ee.hasStaticPrivateClassElements&&(St=!0,S=!0)}let Wt=Cw(j.heritageClauses,96),Rn=Wt&&Pl(Wt.types),nr=Rn&&Ge(Rn.expression,Z,ut);if(nr){ee.classSuper=t.createUniqueName("_classSuper",48);let In=wc(nr),mi=Bl(In)&&!In.name||uo(In)&&!In.name||Co(In)?t.createComma(t.createNumericLiteral(0),nr):nr;ue.push(Se(ee.classSuper,mi));let ua=t.updateExpressionWithTypeArguments(Rn,ee.classSuper,void 0),js=t.updateHeritageClause(Wt,[ua]);Fe=t.createNodeArray([js])}let br=ee.classThis??t.createThis();w(ee),M=_n(M,tn(ee.metadataReference,ee.classSuper));let jr=Dn(j.members,$,Ml);if(y){let In;for(let mi of y){mi=Ge(mi,function js(Pn){if(!(Pn.transformFlags&16384))return Pn;switch(Pn.kind){case 110:return In||(In=t.createUniqueName("_outerThis",16),ue.unshift(Se(In,t.createThis()))),In;default:return on(Pn,js,e)}},ut);let ua=t.createExpressionStatement(mi);M=_n(M,ua)}y=void 0}if(D(),ee.instanceExtraInitializersName&&!yg(j)){let In=ke(j,ee);if(In){let mi=Bd(j),ua=!!(mi&&wc(mi.expression).kind!==106),js=[];if(ua){let Nc=t.createSpreadElement(t.createIdentifier("arguments")),_s=t.createCallExpression(t.createSuper(),void 0,[Nc]);js.push(t.createExpressionStatement(_s))}Nr(js,In);let Pn=t.createBlock(js,!0);qe=t.createConstructorDeclaration(void 0,[],Pn)}}if(ee.staticExtraInitializersName&&ue.push(Se(ee.staticExtraInitializersName,t.createArrayLiteralExpression())),ee.instanceExtraInitializersName&&ue.push(Se(ee.instanceExtraInitializersName,t.createArrayLiteralExpression())),ee.memberInfos&&$l(ee.memberInfos,(In,mi)=>{zs(mi)&&(ue.push(Se(In.memberDecoratorsName)),In.memberInitializersName&&ue.push(Se(In.memberInitializersName,t.createArrayLiteralExpression())),In.memberDescriptorName&&ue.push(Se(In.memberDescriptorName)))}),ee.memberInfos&&$l(ee.memberInfos,(In,mi)=>{zs(mi)||(ue.push(Se(In.memberDecoratorsName)),In.memberInitializersName&&ue.push(Se(In.memberInitializersName,t.createArrayLiteralExpression())),In.memberDescriptorName&&ue.push(Se(In.memberDescriptorName)))}),M=Nr(M,ee.staticNonFieldDecorationStatements),M=Nr(M,ee.nonStaticNonFieldDecorationStatements),M=Nr(M,ee.staticFieldDecorationStatements),M=Nr(M,ee.nonStaticFieldDecorationStatements),ee.classDescriptorName&&ee.classDecoratorsName&&ee.classExtraInitializersName&&ee.classThis){M??(M=[]);let In=t.createPropertyAssignment("value",br),mi=t.createObjectLiteralExpression([In]),ua=t.createAssignment(ee.classDescriptorName,mi),js=t.createPropertyAccessExpression(br,"name"),Pn=n().createESDecorateHelper(t.createNull(),ua,ee.classDecoratorsName,{kind:"class",name:js,metadata:ee.metadataReference},t.createNull(),ee.classExtraInitializersName),Nc=t.createExpressionStatement(Pn);Ca(Nc,Zh(j)),M.push(Nc);let _s=t.createPropertyAccessExpression(ee.classDescriptorName,"value"),to=t.createAssignment(ee.classThis,_s),fc=t.createAssignment(ce,to);M.push(t.createExpressionStatement(fc))}if(M.push(ln(br,ee.metadataReference)),ee.staticExtraInitializersName){let In=n().createRunInitializersHelper(br,ee.staticExtraInitializersName),mi=t.createExpressionStatement(In);Ca(mi,j.name??Zh(j)),M=_n(M,mi)}if(ee.classExtraInitializersName){let In=n().createRunInitializersHelper(br,ee.classExtraInitializersName),mi=t.createExpressionStatement(In);Ca(mi,j.name??Zh(j)),De=_n(De,mi)}M&&De&&!ee.hasStaticInitializers&&(Nr(M,De),De=void 0);let Br=M&&t.createClassStaticBlockDeclaration(t.createBlock(M,!0));Br&&St&&c8(Br,32);let Mi=De&&t.createClassStaticBlockDeclaration(t.createBlock(De,!0));if(Br||qe||Mi){let In=[],mi=jr.findIndex(uT);Br?(Nr(In,jr,0,mi+1),In.push(Br),Nr(In,jr,mi+1)):Nr(In,jr),qe&&In.push(qe),Mi&&In.push(Mi),jr=nt(t.createNodeArray(In),jr)}let wr=s(),is;if(Mt){is=t.createClassExpression(void 0,void 0,void 0,Fe,jr),ee.classThis&&(is=dse(t,is,ee.classThis));let In=t.createVariableDeclaration(ce,void 0,void 0,is),mi=t.createVariableDeclarationList([In]),ua=ee.classThis?t.createAssignment(ce,ee.classThis):ce;ue.push(t.createVariableStatement(void 0,mi),t.createReturnStatement(ua))}else is=t.createClassExpression(void 0,j.name,void 0,Fe,jr),ue.push(t.createReturnStatement(is));if(St){Rx(is,32);for(let In of is.members)(ju(In)||u_(In))&&Yc(In)&&Rx(In,32)}return or(is,j),t.createImmediatelyInvokedArrowFunction(t.mergeLexicalEnvironment(ue,wr))}function ve(j){return Hh(!1,j)||rE(!1,j)}function xe(j){if(ve(j)){let ce=[],ee=cc(j,ei)??j,ue=ee.name?t.createStringLiteralFromNode(ee.name):t.createStringLiteral("default"),M=Mr(j,32),De=Mr(j,2048);if(j.name||(j=i9(e,j,ue)),M&&De){let qe=Y(j);if(j.name){let Fe=t.createVariableDeclaration(t.getLocalName(j),void 0,void 0,qe);or(Fe,j);let St=t.createVariableDeclarationList([Fe],1),Mt=t.createVariableStatement(void 0,St);ce.push(Mt);let Wt=t.createExportDefault(t.getDeclarationName(j));or(Wt,j),jc(Wt,Ud(j)),Ca(Wt,Zh(j)),ce.push(Wt)}else{let Fe=t.createExportDefault(qe);or(Fe,j),jc(Fe,Ud(j)),Ca(Fe,Zh(j)),ce.push(Fe)}}else{E.assertIsDefined(j.name,"A class declaration that is not a default export must have a name.");let qe=Y(j),Fe=M?br=>Wx(br)?void 0:_e(br):_e,St=Dn(j.modifiers,Fe,ra),Mt=t.getLocalName(j,!1,!0),Wt=t.createVariableDeclaration(Mt,void 0,void 0,qe);or(Wt,j);let Rn=t.createVariableDeclarationList([Wt],1),nr=t.createVariableStatement(St,Rn);if(or(nr,j),jc(nr,Ud(j)),ce.push(nr),M){let br=t.createExternalModuleExport(Mt);or(br,j),ce.push(br)}}return Sm(ce)}else{let ce=Dn(j.modifiers,_e,ra),ee=Dn(j.heritageClauses,Z,rf);w(void 0);let ue=Dn(j.members,$,Ml);return D(),t.updateClassDeclaration(j,ce,j.name,void 0,ee,ue)}}function Me(j){if(ve(j)){let ce=Y(j);return or(ce,j),ce}else{let ce=Dn(j.modifiers,_e,ra),ee=Dn(j.heritageClauses,Z,rf);w(void 0);let ue=Dn(j.members,$,Ml);return D(),t.updateClassExpression(j,ce,j.name,void 0,ee,ue)}}function ke(j,ce){if(ce.instanceExtraInitializersName&&!ce.hasNonAmbientInstanceFields){let ee=[];return ee.push(t.createExpressionStatement(n().createRunInitializersHelper(t.createThis(),ce.instanceExtraInitializersName))),ee}}function he(j,ce,ee,ue,M,De){let qe=ue[M],Fe=ce[qe];if(Nr(j,Dn(ce,Z,Ai,ee,qe-ee)),V2(Fe)){let St=[];he(St,Fe.tryBlock.statements,0,ue,M+1,De);let Mt=t.createNodeArray(St);nt(Mt,Fe.tryBlock.statements),j.push(t.updateTryStatement(Fe,t.updateBlock(Fe.tryBlock,St),Ge(Fe.catchClause,Z,ib),Ge(Fe.finallyBlock,Z,Ds)))}else Nr(j,Dn(ce,Z,Ai,qe,1)),Nr(j,De);Nr(j,Dn(ce,Z,Ai,qe+1))}function be(j){O(j);let ce=Dn(j.modifiers,_e,ra),ee=Dn(j.parameters,Z,ms),ue;if(j.body&&f){let M=ke(f.class,f);if(M){let De=[],qe=t.copyPrologue(j.body.statements,De,!1,Z),Fe=e9(j.body.statements,qe);Fe.length>0?he(De,j.body.statements,qe,Fe,0,M):(Nr(De,M),Nr(De,Dn(j.body.statements,Z,Ai))),ue=t.createBlock(De,!0),or(ue,j.body),nt(ue,j.body)}}return ue??(ue=Ge(j.body,Z,Ds)),z(),t.updateConstructorDeclaration(j,ce,ee,ue)}function _t(j,ce){return j!==ce&&(jc(j,ce),Ca(j,Zh(ce))),j}function mt(j,ce,ee){let ue,M,De,qe,Fe;if(!ce){let Wt=Dn(j.modifiers,_e,ra);return V(),M=fn(j.name),X(),{modifiers:Wt,referencedName:ue,name:M,initializersName:De,descriptorName:Fe,thisArg:qe}}let St=we(n9(j,ce.class,!1)),Mt=Dn(j.modifiers,_e,ra);if(St){let Wt=oe(j,"decorators"),Rn=t.createArrayLiteralExpression(St),nr=t.createAssignment(Wt,Rn),br={memberDecoratorsName:Wt};ce.memberInfos??(ce.memberInfos=new Map),ce.memberInfos.set(j,br),y??(y=[]),y.push(nr);let jr=Ik(j)||u_(j)?zs(j)?ce.staticNonFieldDecorationStatements??(ce.staticNonFieldDecorationStatements=[]):ce.nonStaticNonFieldDecorationStatements??(ce.nonStaticNonFieldDecorationStatements=[]):Is(j)&&!u_(j)?zs(j)?ce.staticFieldDecorationStatements??(ce.staticFieldDecorationStatements=[]):ce.nonStaticFieldDecorationStatements??(ce.nonStaticFieldDecorationStatements=[]):E.fail(),Br=Sf(j)?"getter":j_(j)?"setter":kc(j)?"method":u_(j)?"accessor":Is(j)?"field":E.fail(),Mi;if(Ie(j.name)||Di(j.name))Mi={computed:!1,name:j.name};else if(Jd(j.name))Mi={computed:!0,name:t.createStringLiteralFromNode(j.name)};else{let In=j.name.expression;Jd(In)&&!Ie(In)?Mi={computed:!0,name:t.createStringLiteralFromNode(In)}:(V(),{referencedName:ue,name:M}=Ye(j.name),Mi={computed:!0,name:ue},X())}let wr={kind:Br,name:Mi,static:zs(j),private:Di(j.name),access:{get:Is(j)||Sf(j)||kc(j),set:Is(j)||j_(j)},metadata:ce.metadataReference},is=zs(j)?ce.staticExtraInitializersName??(ce.staticExtraInitializersName=t.createUniqueName("_staticExtraInitializers",48)):ce.instanceExtraInitializersName??(ce.instanceExtraInitializersName=t.createUniqueName("_instanceExtraInitializers",48));if(Ik(j)){let In;ju(j)&&ee&&(In=ee(j,Dn(Mt,js=>Ur(js,HE),ra)),br.memberDescriptorName=Fe=oe(j,"descriptor"),In=t.createAssignment(Fe,In));let mi=n().createESDecorateHelper(t.createThis(),In??t.createNull(),Wt,wr,t.createNull(),is),ua=t.createExpressionStatement(mi);Ca(ua,Zh(j)),jr.push(ua)}else if(Is(j)){De=br.memberInitializersName??(br.memberInitializersName=oe(j,"initializers")),zs(j)&&(qe=ce.classThis);let In;ju(j)&&zd(j)&&ee&&(In=ee(j,void 0),br.memberDescriptorName=Fe=oe(j,"descriptor"),In=t.createAssignment(Fe,In));let mi=n().createESDecorateHelper(u_(j)?t.createThis():t.createNull(),In??t.createNull(),Wt,wr,De,is),ua=t.createExpressionStatement(mi);Ca(ua,Zh(j)),jr.push(ua)}}return M===void 0&&(V(),M=fn(j.name),X()),!ft(Mt)&&(kc(j)||Is(j))&&$n(M,1024),{modifiers:Mt,referencedName:ue,name:M,initializersName:De,descriptorName:Fe,thisArg:qe}}function me(j){O(j);let{modifiers:ce,name:ee,descriptorName:ue}=mt(j,f,G);if(ue)return z(),_t(ot(ce,ee,ue),j);{let M=Dn(j.parameters,Z,ms),De=Ge(j.body,Z,Ds);return z(),_t(t.updateMethodDeclaration(j,ce,j.asteriskToken,ee,void 0,void 0,M,void 0,De),j)}}function Oe(j){O(j);let{modifiers:ce,name:ee,descriptorName:ue}=mt(j,f,vt);if(ue)return z(),_t(Dt(ce,ee,ue),j);{let M=Dn(j.parameters,Z,ms),De=Ge(j.body,Z,Ds);return z(),_t(t.updateGetAccessorDeclaration(j,ce,ee,M,void 0,De),j)}}function Qe(j){O(j);let{modifiers:ce,name:ee,descriptorName:ue}=mt(j,f,wt);if(ue)return z(),_t(Zt(ce,ee,ue),j);{let M=Dn(j.parameters,Z,ms),De=Ge(j.body,Z,Ds);return z(),_t(t.updateSetAccessorDeclaration(j,ce,ee,M,De),j)}}function at(j){O(j);let ce;if(uT(j))ce=on(j,Z,e);else if(x3(j)){let ee=g;g=void 0,ce=on(j,Z,e),g=ee}else f&&(f.hasStaticInitializers=!0),ce=on(j,Z,e);return z(),ce}function ht(j){L_(j,cn)&&(j=B_(e,j,zt(j.initializer))),O(j),E.assert(!GJ(j),"Not yet implemented.");let{modifiers:ce,name:ee,initializersName:ue,descriptorName:M,thisArg:De}=mt(j,f,zd(j)?Re:void 0);i();let qe=Ge(j.initializer,Z,ut);ue&&(qe=n().createRunInitializersHelper(De??t.createThis(),ue,qe??t.createVoidZero())),!zs(j)&&f?.instanceExtraInitializersName&&!f?.hasInjectedInstanceInitializers&&(f.hasInjectedInstanceInitializers=!0,qe??(qe=t.createVoidZero()),qe=t.createParenthesizedExpression(t.createComma(n().createRunInitializersHelper(t.createThis(),f.instanceExtraInitializersName),qe))),zs(j)&&f&&qe&&(f.hasStaticInitializers=!0);let Fe=s();if(ft(Fe)&&(qe=t.createImmediatelyInvokedArrowFunction([...Fe,t.createReturnStatement(qe)])),z(),zd(j)&&M){let St=Ud(j),Mt=y1(j),Wt=j.name,Rn=Wt,nr=Wt;if(Na(Wt)&&!Xd(Wt.expression)){let wr=yO(Wt);if(wr)Rn=t.updateComputedPropertyName(Wt,Ge(Wt.expression,Z,ut)),nr=t.updateComputedPropertyName(Wt,wr.left);else{let is=t.createTempVariable(o);Ca(is,Wt.expression);let In=Ge(Wt.expression,Z,ut),mi=t.createAssignment(is,In);Ca(mi,Wt.expression),Rn=t.updateComputedPropertyName(Wt,mi),nr=t.updateComputedPropertyName(Wt,is)}}let br=Dn(ce,wr=>wr.kind!==129?wr:void 0,ra),jr=vW(t,j,br,qe);or(jr,j),$n(jr,3072),Ca(jr,Mt),Ca(jr.name,j.name);let Br=Dt(br,Rn,M);or(Br,j),jc(Br,St),Ca(Br,Mt);let Mi=Zt(br,nr,M);return or(Mi,j),$n(Mi,3072),Ca(Mi,Mt),[jr,Br,Mi]}return _t(t.updatePropertyDeclaration(j,ce,ee,void 0,void 0,qe),j)}function Je(j){return g??j}function lt(j){if(f_(j.expression)&&g){let ce=Ge(j.expression,Z,ut),ee=Dn(j.arguments,Z,ut),ue=t.createFunctionCallCall(ce,g,ee);return or(ue,j),nt(ue,j),ue}return on(j,Z,e)}function Jt(j){if(f_(j.tag)&&g){let ce=Ge(j.tag,Z,ut),ee=t.createFunctionBindCall(ce,g,[]);or(ee,j),nt(ee,j);let ue=Ge(j.template,Z,Fk);return t.updateTaggedTemplateExpression(j,ee,void 0,ue)}return on(j,Z,e)}function Gt(j){if(f_(j)&&Ie(j.name)&&g&&p){let ce=t.createStringLiteralFromNode(j.name),ee=t.createReflectGetCall(p,ce,g);return or(ee,j.expression),nt(ee,j.expression),ee}return on(j,Z,e)}function Tn(j){if(f_(j)&&g&&p){let ce=Ge(j.argumentExpression,Z,ut),ee=t.createReflectGetCall(p,ce,g);return or(ee,j.expression),nt(ee,j.expression),ee}return on(j,Z,e)}function Un(j){L_(j,cn)&&(j=B_(e,j,zt(j.initializer)));let ce=t.updateParameterDeclaration(j,void 0,j.dotDotDotToken,Ge(j.name,Z,m2),void 0,void 0,Ge(j.initializer,Z,ut));return ce!==j&&(jc(ce,j),nt(ce,Wd(j)),Ca(ce,Wd(j)),$n(ce.name,64)),ce}function cn(j){return Bl(j)&&!j.name&&ve(j)}function zt(j){let ce=wc(j);return Bl(ce)&&!ce.name&&!Hh(!1,ce)}function Ft(j){return t.updateForStatement(j,Ge(j.initializer,H,zf),Ge(j.condition,Z,ut),Ge(j.incrementor,H,ut),Ku(j.statement,Z,e))}function Lr(j){return on(j,H,e)}function ji(j,ce){if(Qh(j)){let ee=Ue(j.left),ue=Ge(j.right,Z,ut);return t.updateBinaryExpression(j,ee,j.operatorToken,ue)}if(pl(j)){if(L_(j,cn))return j=B_(e,j,zt(j.right)),on(j,Z,e);if(f_(j.left)&&g&&p){let ee=ko(j.left)?Ge(j.left.argumentExpression,Z,ut):Ie(j.left.name)?t.createStringLiteralFromNode(j.left.name):void 0;if(ee){let ue=Ge(j.right,Z,ut);if(v3(j.operatorToken.kind)){let De=ee;Xd(ee)||(De=t.createTempVariable(o),ee=t.createAssignment(De,ee));let qe=t.createReflectGetCall(p,De,g);or(qe,j.left),nt(qe,j.left),ue=t.createBinaryExpression(qe,b3(j.operatorToken.kind),ue),nt(ue,j)}let M=ce?void 0:t.createTempVariable(o);return M&&(ue=t.createAssignment(M,ue),nt(M,j)),ue=t.createReflectSetCall(p,ee,ue,g),or(ue,j),nt(ue,j),M&&(ue=t.createComma(ue,M),nt(ue,j)),ue}}}if(j.operatorToken.kind===28){let ee=Ge(j.left,H,ut),ue=Ge(j.right,ce?H:Z,ut);return t.updateBinaryExpression(j,ee,j.operatorToken,ue)}return on(j,Z,e)}function ii(j,ce){if(j.operator===46||j.operator===47){let ee=eo(j.operand);if(f_(ee)&&g&&p){let ue=ko(ee)?Ge(ee.argumentExpression,Z,ut):Ie(ee.name)?t.createStringLiteralFromNode(ee.name):void 0;if(ue){let M=ue;Xd(ue)||(M=t.createTempVariable(o),ue=t.createAssignment(M,ue));let De=t.createReflectGetCall(p,M,g);or(De,j),nt(De,j);let qe=ce?void 0:t.createTempVariable(o);return De=_O(t,j,De,o,qe),De=t.createReflectSetCall(p,ue,De,g),or(De,j),nt(De,j),qe&&(De=t.createComma(De,qe),nt(De,j)),De}}}return on(j,Z,e)}function Hi(j,ce){let ee=ce?nA(j.elements,H):nA(j.elements,Z,H);return t.updateCommaListExpression(j,ee)}function Ye(j){if(Jd(j)||Di(j)){let De=t.createStringLiteralFromNode(j),qe=Ge(j,Z,Rc);return{referencedName:De,name:qe}}if(Jd(j.expression)&&!Ie(j.expression)){let De=t.createStringLiteralFromNode(j.expression),qe=Ge(j,Z,Rc);return{referencedName:De,name:qe}}let ce=t.getGeneratedNameForNode(j);o(ce);let ee=n().createPropKeyHelper(Ge(j.expression,Z,ut)),ue=t.createAssignment(ce,ee),M=t.updateComputedPropertyName(j,fe(ue));return{referencedName:ce,name:M}}function fn(j){return Na(j)?An(j):Ge(j,Z,Rc)}function An(j){let ce=Ge(j.expression,Z,ut);return Xd(ce)||(ce=fe(ce)),t.updateComputedPropertyName(j,ce)}function Ot(j){return L_(j,cn)&&(j=B_(e,j,zt(j.initializer))),on(j,Z,e)}function Sn(j){return L_(j,cn)&&(j=B_(e,j,zt(j.initializer))),on(j,Z,e)}function Cn(j){return L_(j,cn)&&(j=B_(e,j,zt(j.initializer))),on(j,Z,e)}function Kn(j){if(xa(j)||Vu(j))return Ue(j);if(f_(j)&&g&&p){let ce=ko(j)?Ge(j.argumentExpression,Z,ut):Ie(j.name)?t.createStringLiteralFromNode(j.name):void 0;if(ce){let ee=t.createTempVariable(void 0),ue=t.createAssignmentTargetWrapper(ee,t.createReflectSetCall(p,ce,ee,g));return or(ue,j),nt(ue,j),ue}}return on(j,Z,e)}function Fi(j){if(pl(j,!0)){L_(j,cn)&&(j=B_(e,j,zt(j.right)));let ce=Kn(j.left),ee=Ge(j.right,Z,ut);return t.updateBinaryExpression(j,ce,j.operatorToken,ee)}else return Kn(j)}function Wi(j){if(x_(j.expression)){let ce=Kn(j.expression);return t.updateSpreadElement(j,ce)}return on(j,Z,e)}function Ii(j){return E.assertNode(j,JP),qd(j)?Wi(j):xl(j)?on(j,Z,e):Fi(j)}function Ki(j){let ce=Ge(j.name,Z,Rc);if(pl(j.initializer,!0)){let ee=Fi(j.initializer);return t.updatePropertyAssignment(j,ce,ee)}if(x_(j.initializer)){let ee=Kn(j.initializer);return t.updatePropertyAssignment(j,ce,ee)}return on(j,Z,e)}function na(j){return L_(j,cn)&&(j=B_(e,j,zt(j.objectAssignmentInitializer))),on(j,Z,e)}function Fs(j){if(x_(j.expression)){let ce=Kn(j.expression);return t.updateSpreadAssignment(j,ce)}return on(j,Z,e)}function Ce(j){return E.assertNode(j,BP),n0(j)?Fs(j):sf(j)?na(j):el(j)?Ki(j):on(j,Z,e)}function Ue(j){if(Vu(j)){let ce=Dn(j.elements,Ii,ut);return t.updateArrayLiteralExpression(j,ce)}else{let ce=Dn(j.properties,Ce,th);return t.updateObjectLiteralExpression(j,ce)}}function it(j){return L_(j,cn)&&(j=B_(e,j,zt(j.expression))),on(j,Z,e)}function dt(j,ce){let ee=ce?H:Z,ue=Ge(j.expression,ee,ut);return t.updateParenthesizedExpression(j,ue)}function gt(j,ce){let ee=ce?H:Z,ue=Ge(j.expression,ee,ut);return t.updatePartiallyEmittedExpression(j,ue)}function fe(j){return ft(y)&&(C_(j)?(y.push(j.expression),j=t.updateParenthesizedExpression(j,t.inlineExpressions(y))):(y.push(j),j=t.inlineExpressions(y)),y=void 0),j}function we(j){if(!j)return;let ce=[];return Nr(ce,Kt(j.decorators,Be)),ce}function Be(j){let ce=Ge(j.expression,Z,ut);$n(ce,3072);let ee=wc(ce);if(ho(ee)){let{target:ue,thisArg:M}=t.createCallBinding(ce,o,c,!0);return t.restoreOuterExpressions(ce,t.createFunctionBindCall(ue,M,[]))}return ce}function yt(j,ce,ee,ue,M,De,qe){let Fe=t.createFunctionExpression(ee,ue,void 0,void 0,De,void 0,qe??t.createBlock([]));or(Fe,j),Ca(Fe,Zh(j)),$n(Fe,3072);let St=M==="get"||M==="set"?M:void 0,Mt=t.createStringLiteralFromNode(ce,void 0),Wt=n().createSetFunctionNameHelper(Fe,Mt,St),Rn=t.createPropertyAssignment(t.createIdentifier(M),Wt);return or(Rn,j),Ca(Rn,Zh(j)),$n(Rn,3072),Rn}function G(j,ce){return t.createObjectLiteralExpression([yt(j,j.name,ce,j.asteriskToken,"value",Dn(j.parameters,Z,ms),Ge(j.body,Z,Ds))])}function vt(j,ce){return t.createObjectLiteralExpression([yt(j,j.name,ce,void 0,"get",[],Ge(j.body,Z,Ds))])}function wt(j,ce){return t.createObjectLiteralExpression([yt(j,j.name,ce,void 0,"set",Dn(j.parameters,Z,ms),Ge(j.body,Z,Ds))])}function Re(j,ce){return t.createObjectLiteralExpression([yt(j,j.name,ce,void 0,"get",[],t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(j.name)))])),yt(j,j.name,ce,void 0,"set",[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(t.createThis(),t.getGeneratedPrivateNameForNode(j.name)),t.createIdentifier("value")))]))])}function ot(j,ce,ee){return j=Dn(j,ue=>Ux(ue)?ue:void 0,ra),t.createGetAccessorDeclaration(j,ce,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(ee,t.createIdentifier("value")))]))}function Dt(j,ce,ee){return j=Dn(j,ue=>Ux(ue)?ue:void 0,ra),t.createGetAccessorDeclaration(j,ce,[],void 0,t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(ee,t.createIdentifier("get")),t.createThis(),[]))]))}function Zt(j,ce,ee){return j=Dn(j,ue=>Ux(ue)?ue:void 0,ra),t.createSetAccessorDeclaration(j,ce,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createReturnStatement(t.createFunctionCallCall(t.createPropertyAccessExpression(ee,t.createIdentifier("set")),t.createThis(),[t.createIdentifier("value")]))]))}function tn(j,ce){let ee=t.createVariableDeclaration(j,void 0,void 0,t.createConditionalExpression(t.createLogicalAnd(t.createTypeCheck(t.createIdentifier("Symbol"),"function"),t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),t.createToken(58),t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[ce?W(ce):t.createNull()]),t.createToken(59),t.createVoidZero()));return t.createVariableStatement(void 0,t.createVariableDeclarationList([ee],2))}function ln(j,ce){let ee=t.createObjectDefinePropertyCall(j,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata"),t.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:ce},!0));return $n(t.createIfStatement(ce,t.createExpressionStatement(ee)),1)}function W(j){return t.createBinaryExpression(t.createElementAccessExpression(j,t.createPropertyAccessExpression(t.createIdentifier("Symbol"),"metadata")),61,t.createNull())}}var oMe=ze({"src/compiler/transformers/esDecorators.ts"(){"use strict";Rs()}});function Tse(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),f=La(u),g,p=0,y,S,x,C=[],w=0,D=e.onEmitNode,O=e.onSubstituteNode;return e.onEmitNode=Un,e.onSubstituteNode=cn,Zp(e,z);function z(Ye){if(Ye.isDeclarationFile)return Ye;V(1,!1),V(2,!HJ(Ye,u));let fn=on(Ye,ae,e);return oh(fn,e.readEmitHelpers()),fn}function V(Ye,fn){w=fn?w|Ye:w&~Ye}function X(Ye){return(w&Ye)!==0}function J(){return!X(1)}function ie(){return X(2)}function B(Ye,fn,An){let Ot=Ye&~w;if(Ot){V(Ot,!0);let Sn=fn(An);return V(Ot,!1),Sn}return fn(An)}function Z(Ye){return on(Ye,ae,e)}function ae(Ye){if(!(Ye.transformFlags&256))return Ye;switch(Ye.kind){case 134:return;case 223:return se(Ye);case 174:return B(3,ve,Ye);case 262:return B(3,ke,Ye);case 218:return B(3,he,Ye);case 219:return B(1,be,Ye);case 211:return S&&Cr(Ye)&&Ye.expression.kind===108&&S.add(Ye.name.escapedText),on(Ye,ae,e);case 212:return S&&Ye.expression.kind===108&&(x=!0),on(Ye,ae,e);case 177:return B(3,xe,Ye);case 178:return B(3,Me,Ye);case 176:return B(3,Y,Ye);case 263:case 231:return B(3,Z,Ye);default:return on(Ye,ae,e)}}function _e(Ye){if(Tte(Ye))switch(Ye.kind){case 243:return H(Ye);case 248:return Se(Ye);case 249:return K(Ye);case 250:return oe(Ye);case 299:return $(Ye);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return on(Ye,_e,e);default:return E.assertNever(Ye,"Unhandled node.")}return ae(Ye)}function $(Ye){let fn=new Set;_t(Ye.variableDeclaration,fn);let An;if(fn.forEach((Ot,Sn)=>{y.has(Sn)&&(An||(An=new Set(y)),An.delete(Sn))}),An){let Ot=y;y=An;let Sn=on(Ye,_e,e);return y=Ot,Sn}else return on(Ye,_e,e)}function H(Ye){if(mt(Ye.declarationList)){let fn=me(Ye.declarationList,!1);return fn?t.createExpressionStatement(fn):void 0}return on(Ye,ae,e)}function K(Ye){return t.updateForInStatement(Ye,mt(Ye.initializer)?me(Ye.initializer,!0):E.checkDefined(Ge(Ye.initializer,ae,zf)),E.checkDefined(Ge(Ye.expression,ae,ut)),Ku(Ye.statement,_e,e))}function oe(Ye){return t.updateForOfStatement(Ye,Ge(Ye.awaitModifier,ae,GV),mt(Ye.initializer)?me(Ye.initializer,!0):E.checkDefined(Ge(Ye.initializer,ae,zf)),E.checkDefined(Ge(Ye.expression,ae,ut)),Ku(Ye.statement,_e,e))}function Se(Ye){let fn=Ye.initializer;return t.updateForStatement(Ye,mt(fn)?me(fn,!1):Ge(Ye.initializer,ae,zf),Ge(Ye.condition,ae,ut),Ge(Ye.incrementor,ae,ut),Ku(Ye.statement,_e,e))}function se(Ye){return J()?on(Ye,ae,e):or(nt(t.createYieldExpression(void 0,Ge(Ye.expression,ae,ut)),Ye),Ye)}function Y(Ye){return t.updateConstructorDeclaration(Ye,Dn(Ye.modifiers,ae,ra),Ac(Ye.parameters,ae,e),Je(Ye))}function ve(Ye){return t.updateMethodDeclaration(Ye,Dn(Ye.modifiers,ae,Mo),Ye.asteriskToken,Ye.name,void 0,void 0,Ac(Ye.parameters,ae,e),void 0,Sl(Ye)&2?lt(Ye):Je(Ye))}function xe(Ye){return t.updateGetAccessorDeclaration(Ye,Dn(Ye.modifiers,ae,Mo),Ye.name,Ac(Ye.parameters,ae,e),void 0,Je(Ye))}function Me(Ye){return t.updateSetAccessorDeclaration(Ye,Dn(Ye.modifiers,ae,Mo),Ye.name,Ac(Ye.parameters,ae,e),Je(Ye))}function ke(Ye){return t.updateFunctionDeclaration(Ye,Dn(Ye.modifiers,ae,Mo),Ye.asteriskToken,Ye.name,void 0,Ac(Ye.parameters,ae,e),void 0,Sl(Ye)&2?lt(Ye):kf(Ye.body,ae,e))}function he(Ye){return t.updateFunctionExpression(Ye,Dn(Ye.modifiers,ae,ra),Ye.asteriskToken,Ye.name,void 0,Ac(Ye.parameters,ae,e),void 0,Sl(Ye)&2?lt(Ye):kf(Ye.body,ae,e))}function be(Ye){return t.updateArrowFunction(Ye,Dn(Ye.modifiers,ae,ra),void 0,Ac(Ye.parameters,ae,e),void 0,Ye.equalsGreaterThanToken,Sl(Ye)&2?lt(Ye):kf(Ye.body,ae,e))}function _t({name:Ye},fn){if(Ie(Ye))fn.add(Ye.escapedText);else for(let An of Ye.elements)xl(An)||_t(An,fn)}function mt(Ye){return!!Ye&&Tl(Ye)&&!(Ye.flags&7)&&Ye.declarations.some(ht)}function me(Ye,fn){Oe(Ye);let An=kE(Ye);return An.length===0?fn?Ge(t.converters.convertToAssignmentElementTarget(Ye.declarations[0].name),ae,ut):void 0:t.inlineExpressions(Kt(An,at))}function Oe(Ye){Qt(Ye.declarations,Qe)}function Qe({name:Ye}){if(Ie(Ye))o(Ye);else for(let fn of Ye.elements)xl(fn)||Qe(fn)}function at(Ye){let fn=Ca(t.createAssignment(t.converters.convertToAssignmentElementTarget(Ye.name),Ye.initializer),Ye);return E.checkDefined(Ge(fn,ae,ut))}function ht({name:Ye}){if(Ie(Ye))return y.has(Ye.escapedText);for(let fn of Ye.elements)if(!xl(fn)&&ht(fn))return!0;return!1}function Je(Ye){E.assertIsDefined(Ye.body);let fn=S,An=x;S=new Set,x=!1;let Ot=kf(Ye.body,ae,e),Sn=cc(Ye,To);if(f>=2&&c.getNodeCheckFlags(Ye)&384&&(Sl(Sn)&3)!==3){if(Tn(),S.size){let Kn=s9(t,c,Ye,S);C[Va(Kn)]=!0;let Fi=Ot.statements.slice();Am(Fi,[Kn]),Ot=t.updateBlock(Ot,Fi)}x&&(c.getNodeCheckFlags(Ye)&256?Bx(Ot,p8):c.getNodeCheckFlags(Ye)&128&&Bx(Ot,f8))}return S=fn,x=An,Ot}function lt(Ye){i();let An=cc(Ye,As).type,Ot=f<2?Gt(An):void 0,Sn=Ye.kind===219,Cn=(c.getNodeCheckFlags(Ye)&512)!==0,Kn=y;y=new Set;for(let Ki of Ye.parameters)_t(Ki,y);let Fi=S,Wi=x;Sn||(S=new Set,x=!1);let Ii;if(Sn){let Ki=n().createAwaiterHelper(ie(),Cn,Ot,Jt(Ye.body)),na=s();if(ft(na)){let Fs=t.converters.convertToFunctionBlock(Ki);Ii=t.updateBlock(Fs,nt(t.createNodeArray(es(na,Fs.statements)),Fs.statements))}else Ii=Ki}else{let Ki=[],na=t.copyPrologue(Ye.body.statements,Ki,!1,ae);Ki.push(t.createReturnStatement(n().createAwaiterHelper(ie(),Cn,Ot,Jt(Ye.body,na)))),Am(Ki,s());let Fs=f>=2&&c.getNodeCheckFlags(Ye)&384;if(Fs&&(Tn(),S.size)){let Ue=s9(t,c,Ye,S);C[Va(Ue)]=!0,Am(Ki,[Ue])}let Ce=t.createBlock(Ki,!0);nt(Ce,Ye.body),Fs&&x&&(c.getNodeCheckFlags(Ye)&256?Bx(Ce,p8):c.getNodeCheckFlags(Ye)&128&&Bx(Ce,f8)),Ii=Ce}return y=Kn,Sn||(S=Fi,x=Wi),Ii}function Jt(Ye,fn){return Ds(Ye)?t.updateBlock(Ye,Dn(Ye.statements,_e,Ai,fn)):t.converters.convertToFunctionBlock(E.checkDefined(Ge(Ye,_e,O7)))}function Gt(Ye){let fn=Ye&&sw(Ye);if(fn&&Y_(fn)){let An=c.getTypeReferenceSerializationKind(fn);if(An===1||An===0)return fn}}function Tn(){g&1||(g|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function Un(Ye,fn,An){if(g&1&&ii(fn)){let Ot=c.getNodeCheckFlags(fn)&384;if(Ot!==p){let Sn=p;p=Ot,D(Ye,fn,An),p=Sn;return}}else if(g&&C[Va(fn)]){let Ot=p;p=0,D(Ye,fn,An),p=Ot;return}D(Ye,fn,An)}function cn(Ye,fn){return fn=O(Ye,fn),Ye===1&&p?zt(fn):fn}function zt(Ye){switch(Ye.kind){case 211:return Ft(Ye);case 212:return Lr(Ye);case 213:return ji(Ye)}return Ye}function Ft(Ye){return Ye.expression.kind===108?nt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),Ye.name),Ye):Ye}function Lr(Ye){return Ye.expression.kind===108?Hi(Ye.argumentExpression,Ye):Ye}function ji(Ye){let fn=Ye.expression;if(f_(fn)){let An=Cr(fn)?Ft(fn):Lr(fn);return t.createCallExpression(t.createPropertyAccessExpression(An,"call"),void 0,[t.createThis(),...Ye.arguments])}return Ye}function ii(Ye){let fn=Ye.kind;return fn===263||fn===176||fn===174||fn===177||fn===178}function Hi(Ye,fn){return p&256?nt(t.createPropertyAccessExpression(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),"value"),fn):nt(t.createCallExpression(t.createUniqueName("_superIndex",48),void 0,[Ye]),fn)}}function s9(e,t,n,i){let s=(t.getNodeCheckFlags(n)&256)!==0,o=[];return i.forEach((c,u)=>{let f=Ci(u),g=[];g.push(e.createPropertyAssignment("get",e.createArrowFunction(void 0,void 0,[],void 0,void 0,$n(e.createPropertyAccessExpression($n(e.createSuper(),8),f),8)))),s&&g.push(e.createPropertyAssignment("set",e.createArrowFunction(void 0,void 0,[e.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,e.createAssignment($n(e.createPropertyAccessExpression($n(e.createSuper(),8),f),8),e.createIdentifier("v"))))),o.push(e.createPropertyAssignment(f,e.createObjectLiteralExpression(g)))}),e.createVariableStatement(void 0,e.createVariableDeclarationList([e.createVariableDeclaration(e.createUniqueName("_super",48),void 0,void 0,e.createCallExpression(e.createPropertyAccessExpression(e.createIdentifier("Object"),"create"),void 0,[e.createNull(),e.createObjectLiteralExpression(o,!0)]))],2))}var cMe=ze({"src/compiler/transformers/es2017.ts"(){"use strict";Rs()}});function kse(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistVariableDeclaration:o}=e,c=e.getEmitResolver(),u=e.getCompilerOptions(),f=La(u),g=e.onEmitNode;e.onEmitNode=Ki;let p=e.onSubstituteNode;e.onSubstituteNode=na;let y=!1,S,x,C,w=0,D=0,O,z,V,X,J=[];return Zp(e,_e);function ie(fe,we){return D!==(D&~fe|we)}function B(fe,we){let Be=D;return D=(D&~fe|we)&3,Be}function Z(fe){D=fe}function ae(fe){z=_n(z,t.createVariableDeclaration(fe))}function _e(fe){if(fe.isDeclarationFile)return fe;O=fe;let we=mt(fe);return oh(we,e.readEmitHelpers()),O=void 0,z=void 0,we}function $(fe){return se(fe,!1)}function H(fe){return se(fe,!0)}function K(fe){if(fe.kind!==134)return fe}function oe(fe,we,Be,yt){if(ie(Be,yt)){let G=B(Be,yt),vt=fe(we);return Z(G),vt}return fe(we)}function Se(fe){return on(fe,$,e)}function se(fe,we){if(!(fe.transformFlags&128))return fe;switch(fe.kind){case 223:return Y(fe);case 229:return ve(fe);case 253:return xe(fe);case 256:return Me(fe);case 210:return he(fe);case 226:return Oe(fe,we);case 361:return Qe(fe,we);case 299:return at(fe);case 243:return ht(fe);case 260:return Je(fe);case 246:case 247:case 249:return oe(Se,fe,0,2);case 250:return Tn(fe,void 0);case 248:return oe(Jt,fe,0,2);case 222:return Gt(fe);case 176:return oe(Hi,fe,2,1);case 174:return oe(An,fe,2,1);case 177:return oe(Ye,fe,2,1);case 178:return oe(fn,fe,2,1);case 262:return oe(Ot,fe,2,1);case 218:return oe(Cn,fe,2,1);case 219:return oe(Sn,fe,2,0);case 169:return ji(fe);case 244:return be(fe);case 217:return _t(fe,we);case 215:return me(fe);case 211:return V&&Cr(fe)&&fe.expression.kind===108&&V.add(fe.name.escapedText),on(fe,$,e);case 212:return V&&fe.expression.kind===108&&(X=!0),on(fe,$,e);case 263:case 231:return oe(Se,fe,2,1);default:return on(fe,$,e)}}function Y(fe){return x&2&&x&1?or(nt(t.createYieldExpression(void 0,n().createAwaitHelper(Ge(fe.expression,$,ut))),fe),fe):on(fe,$,e)}function ve(fe){if(x&2&&x&1){if(fe.asteriskToken){let we=Ge(E.checkDefined(fe.expression),$,ut);return or(nt(t.createYieldExpression(void 0,n().createAwaitHelper(t.updateYieldExpression(fe,fe.asteriskToken,nt(n().createAsyncDelegatorHelper(nt(n().createAsyncValuesHelper(we),we)),we)))),fe),fe)}return or(nt(t.createYieldExpression(void 0,zt(fe.expression?Ge(fe.expression,$,ut):t.createVoidZero())),fe),fe)}return on(fe,$,e)}function xe(fe){return x&2&&x&1?t.updateReturnStatement(fe,zt(fe.expression?Ge(fe.expression,$,ut):t.createVoidZero())):on(fe,$,e)}function Me(fe){if(x&2){let we=nz(fe);return we.kind===250&&we.awaitModifier?Tn(we,fe):t.restoreEnclosingLabel(Ge(we,$,Ai,t.liftToBlock),fe)}return on(fe,$,e)}function ke(fe){let we,Be=[];for(let yt of fe)if(yt.kind===305){we&&(Be.push(t.createObjectLiteralExpression(we)),we=void 0);let G=yt.expression;Be.push(Ge(G,$,ut))}else we=_n(we,yt.kind===303?t.createPropertyAssignment(yt.name,Ge(yt.initializer,$,ut)):Ge(yt,$,th));return we&&Be.push(t.createObjectLiteralExpression(we)),Be}function he(fe){if(fe.transformFlags&65536){let we=ke(fe.properties);we.length&&we[0].kind!==210&&we.unshift(t.createObjectLiteralExpression());let Be=we[0];if(we.length>1){for(let yt=1;yt=2&&c.getNodeCheckFlags(fe)&384;if(wt){Ii();let ot=s9(t,c,fe,V);J[Va(ot)]=!0,Am(we,[ot])}we.push(vt),Am(we,s());let Re=t.updateBlock(fe.body,we);return wt&&X&&(c.getNodeCheckFlags(fe)&256?Bx(Re,p8):c.getNodeCheckFlags(fe)&128&&Bx(Re,f8)),V=yt,X=G,Re}function Fi(fe){i();let we=0,Be=[],yt=Ge(fe.body,$,O7)??t.createBlock([]);Ds(yt)&&(we=t.copyPrologue(yt.statements,Be,!1,$)),Nr(Be,Wi(void 0,fe));let G=s();if(we>0||ft(Be)||ft(G)){let vt=t.converters.convertToFunctionBlock(yt,!0);return Am(Be,G),Nr(Be,vt.statements.slice(we)),t.updateBlock(vt,nt(t.createNodeArray(Be),vt.statements))}return yt}function Wi(fe,we){let Be=!1;for(let yt of we.parameters)if(Be){if(Ms(yt.name)){if(yt.name.elements.length>0){let G=_b(yt,$,e,0,t.getGeneratedNameForNode(yt));if(ft(G)){let vt=t.createVariableDeclarationList(G),wt=t.createVariableStatement(void 0,vt);$n(wt,2097152),fe=_n(fe,wt)}}else if(yt.initializer){let G=t.getGeneratedNameForNode(yt),vt=Ge(yt.initializer,$,ut),wt=t.createAssignment(G,vt),Re=t.createExpressionStatement(wt);$n(Re,2097152),fe=_n(fe,Re)}}else if(yt.initializer){let G=t.cloneNode(yt.name);nt(G,yt.name),$n(G,96);let vt=Ge(yt.initializer,$,ut);Mm(vt,3168);let wt=t.createAssignment(G,vt);nt(wt,yt),$n(wt,3072);let Re=t.createBlock([t.createExpressionStatement(wt)]);nt(Re,yt),$n(Re,3905);let ot=t.createTypeCheck(t.cloneNode(yt.name),"undefined"),Dt=t.createIfStatement(ot,Re);Uu(Dt),nt(Dt,yt),$n(Dt,2101056),fe=_n(fe,Dt)}}else if(yt.transformFlags&65536){Be=!0;let G=_b(yt,$,e,1,t.getGeneratedNameForNode(yt),!1,!0);if(ft(G)){let vt=t.createVariableDeclarationList(G),wt=t.createVariableStatement(void 0,vt);$n(wt,2097152),fe=_n(fe,wt)}}return fe}function Ii(){S&1||(S|=1,e.enableSubstitution(213),e.enableSubstitution(211),e.enableSubstitution(212),e.enableEmitNotification(263),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(176),e.enableEmitNotification(243))}function Ki(fe,we,Be){if(S&1&&dt(we)){let yt=c.getNodeCheckFlags(we)&384;if(yt!==w){let G=w;w=yt,g(fe,we,Be),w=G;return}}else if(S&&J[Va(we)]){let yt=w;w=0,g(fe,we,Be),w=yt;return}g(fe,we,Be)}function na(fe,we){return we=p(fe,we),fe===1&&w?Fs(we):we}function Fs(fe){switch(fe.kind){case 211:return Ce(fe);case 212:return Ue(fe);case 213:return it(fe)}return fe}function Ce(fe){return fe.expression.kind===108?nt(t.createPropertyAccessExpression(t.createUniqueName("_super",48),fe.name),fe):fe}function Ue(fe){return fe.expression.kind===108?gt(fe.argumentExpression,fe):fe}function it(fe){let we=fe.expression;if(f_(we)){let Be=Cr(we)?Ce(we):Ue(we);return t.createCallExpression(t.createPropertyAccessExpression(Be,"call"),void 0,[t.createThis(),...fe.arguments])}return fe}function dt(fe){let we=fe.kind;return we===263||we===176||we===174||we===177||we===178}function gt(fe,we){return w&256?nt(t.createPropertyAccessExpression(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[fe]),"value"),we):nt(t.createCallExpression(t.createIdentifier("_superIndex"),void 0,[fe]),we)}}var lMe=ze({"src/compiler/transformers/es2018.ts"(){"use strict";Rs()}});function Cse(e){let t=e.factory;return Zp(e,n);function n(o){return o.isDeclarationFile?o:on(o,i,e)}function i(o){if(!(o.transformFlags&64))return o;switch(o.kind){case 299:return s(o);default:return on(o,i,e)}}function s(o){return o.variableDeclaration?on(o,i,e):t.updateCatchClause(o,t.createVariableDeclaration(t.createTempVariable(void 0)),Ge(o.block,i,Ds))}}var uMe=ze({"src/compiler/transformers/es2019.ts"(){"use strict";Rs()}});function Ese(e){let{factory:t,hoistVariableDeclaration:n}=e;return Zp(e,i);function i(C){return C.isDeclarationFile?C:on(C,s,e)}function s(C){if(!(C.transformFlags&32))return C;switch(C.kind){case 213:{let w=f(C,!1);return E.assertNotNode(w,Yx),w}case 211:case 212:if(Tu(C)){let w=p(C,!1,!1);return E.assertNotNode(w,Yx),w}return on(C,s,e);case 226:return C.operatorToken.kind===61?S(C):on(C,s,e);case 220:return x(C);default:return on(C,s,e)}}function o(C){E.assertNotNode(C,P7);let w=[C];for(;!C.questionDotToken&&!B2(C);)C=Vs(Vp(C.expression),Tu),E.assertNotNode(C,P7),w.unshift(C);return{expression:C.expression,chain:w}}function c(C,w,D){let O=g(C.expression,w,D);return Yx(O)?t.createSyntheticReferenceExpression(t.updateParenthesizedExpression(C,O.expression),O.thisArg):t.updateParenthesizedExpression(C,O)}function u(C,w,D){if(Tu(C))return p(C,w,D);let O=Ge(C.expression,s,ut);E.assertNotNode(O,Yx);let z;return w&&(ub(O)?z=O:(z=t.createTempVariable(n),O=t.createAssignment(z,O))),O=C.kind===211?t.updatePropertyAccessExpression(C,O,Ge(C.name,s,Ie)):t.updateElementAccessExpression(C,O,Ge(C.argumentExpression,s,ut)),z?t.createSyntheticReferenceExpression(O,z):O}function f(C,w){if(Tu(C))return p(C,w,!1);if(C_(C.expression)&&Tu(eo(C.expression))){let D=c(C.expression,!0,!1),O=Dn(C.arguments,s,ut);return Yx(D)?nt(t.createFunctionCallCall(D.expression,D.thisArg,O),C):t.updateCallExpression(C,D,void 0,O)}return on(C,s,e)}function g(C,w,D){switch(C.kind){case 217:return c(C,w,D);case 211:case 212:return u(C,w,D);case 213:return f(C,w);default:return Ge(C,s,ut)}}function p(C,w,D){let{expression:O,chain:z}=o(C),V=g(Vp(O),p2(z[0]),!1),X=Yx(V)?V.thisArg:void 0,J=Yx(V)?V.expression:V,ie=t.restoreOuterExpressions(O,J,8);ub(J)||(J=t.createTempVariable(n),ie=t.createAssignment(J,ie));let B=J,Z;for(let _e=0;_ese&&Nr(Y,Dn(oe.statements,y,Ai,se,ve-se));break}ve++}E.assert(veD(Y,se))))],se,Se===2)}return on(oe,y,e)}function z(oe,Se,se,Y,ve){let xe=[];for(let he=Se;het&&(t=i)}return t}function dMe(e){let t=0;for(let n of e){let i=FU(n.statements);if(i===2)return 2;i>t&&(t=i)}return t}var mMe=ze({"src/compiler/transformers/esnext.ts"(){"use strict";Rs()}});function Ise(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getCompilerOptions(),s,o;return Zp(e,y);function c(){if(o.filenameDeclaration)return o.filenameDeclaration.name;let me=t.createVariableDeclaration(t.createUniqueName("_jsxFileName",48),void 0,void 0,t.createStringLiteral(s.fileName));return o.filenameDeclaration=me,o.filenameDeclaration.name}function u(me){return i.jsx===5?"jsxDEV":me?"jsxs":"jsx"}function f(me){let Oe=u(me);return p(Oe)}function g(){return p("Fragment")}function p(me){var Oe,Qe;let at=me==="createElement"?o.importSpecifier:Q5(o.importSpecifier,i),ht=(Qe=(Oe=o.utilizedImplicitRuntimeImports)==null?void 0:Oe.get(at))==null?void 0:Qe.get(me);if(ht)return ht.name;o.utilizedImplicitRuntimeImports||(o.utilizedImplicitRuntimeImports=new Map);let Je=o.utilizedImplicitRuntimeImports.get(at);Je||(Je=new Map,o.utilizedImplicitRuntimeImports.set(at,Je));let lt=t.createUniqueName(`_${me}`,112),Jt=t.createImportSpecifier(!1,t.createIdentifier(me),lt);return sre(lt,Jt),Je.set(me,Jt),lt}function y(me){if(me.isDeclarationFile)return me;s=me,o={},o.importSpecifier=X5(i,me);let Oe=on(me,S,e);oh(Oe,e.readEmitHelpers());let Qe=Oe.statements;if(o.filenameDeclaration&&(Qe=v2(Qe.slice(),t.createVariableStatement(void 0,t.createVariableDeclarationList([o.filenameDeclaration],2)))),o.utilizedImplicitRuntimeImports){for(let[at,ht]of hs(o.utilizedImplicitRuntimeImports.entries()))if(Bc(me)){let Je=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports(hs(ht.values()))),t.createStringLiteral(at),void 0);iy(Je,!1),Qe=v2(Qe.slice(),Je)}else if(K_(me)){let Je=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createObjectBindingPattern(hs(ht.values(),lt=>t.createBindingElement(void 0,lt.propertyName,lt.name))),void 0,void 0,t.createCallExpression(t.createIdentifier("require"),void 0,[t.createStringLiteral(at)]))],2));iy(Je,!1),Qe=v2(Qe.slice(),Je)}}return Qe!==Oe.statements&&(Oe=t.updateSourceFile(Oe,Qe)),o=void 0,Oe}function S(me){return me.transformFlags&2?x(me):me}function x(me){switch(me.kind){case 284:return z(me,!1);case 285:return V(me,!1);case 288:return X(me,!1);case 294:return mt(me);default:return on(me,S,e)}}function C(me){switch(me.kind){case 12:return ve(me);case 294:return mt(me);case 284:return z(me,!0);case 285:return V(me,!0);case 288:return X(me,!0);default:return E.failBadSyntaxKind(me)}}function w(me){return me.properties.some(Oe=>el(Oe)&&(Ie(Oe.name)&&ur(Oe.name)==="__proto__"||ca(Oe.name)&&Oe.name.text==="__proto__"))}function D(me){let Oe=!1;for(let Qe of me.attributes.properties)if(Kx(Qe)&&(!xa(Qe.expression)||Qe.expression.properties.some(n0)))Oe=!0;else if(Oe&&$d(Qe)&&Ie(Qe.name)&&Qe.name.escapedText==="key")return!0;return!1}function O(me){return o.importSpecifier===void 0||D(me)}function z(me,Oe){return(O(me.openingElement)?ae:B)(me.openingElement,me.children,Oe,me)}function V(me,Oe){return(O(me)?ae:B)(me,void 0,Oe,me)}function X(me,Oe){return(o.importSpecifier===void 0?$:_e)(me.openingFragment,me.children,Oe,me)}function J(me){let Oe=ie(me);return Oe&&t.createObjectLiteralExpression([Oe])}function ie(me){let Oe=rC(me);if(bn(Oe)===1&&!Oe[0].dotDotDotToken){let at=C(Oe[0]);return at&&t.createPropertyAssignment("children",at)}let Qe=Ri(me,C);return bn(Qe)?t.createPropertyAssignment("children",t.createArrayLiteralExpression(Qe)):void 0}function B(me,Oe,Qe,at){let ht=be(me),Je=Oe&&Oe.length?ie(Oe):void 0,lt=xr(me.attributes.properties,Tn=>!!Tn.name&&Ie(Tn.name)&&Tn.name.escapedText==="key"),Jt=lt?Fr(me.attributes.properties,Tn=>Tn!==lt):me.attributes.properties,Gt=bn(Jt)?K(Jt,Je):t.createObjectLiteralExpression(Je?[Je]:Ve);return Z(ht,Gt,lt,Oe||Ve,Qe,at)}function Z(me,Oe,Qe,at,ht,Je){var lt;let Jt=rC(at),Gt=bn(Jt)>1||!!((lt=Jt[0])!=null&<.dotDotDotToken),Tn=[me,Oe];if(Qe&&Tn.push(Y(Qe.initializer)),i.jsx===5){let cn=cc(s);if(cn&&Li(cn)){Qe===void 0&&Tn.push(t.createVoidZero()),Tn.push(Gt?t.createTrue():t.createFalse());let zt=Ka(cn,Je.pos);Tn.push(t.createObjectLiteralExpression([t.createPropertyAssignment("fileName",c()),t.createPropertyAssignment("lineNumber",t.createNumericLiteral(zt.line+1)),t.createPropertyAssignment("columnNumber",t.createNumericLiteral(zt.character+1))])),Tn.push(t.createThis())}}let Un=nt(t.createCallExpression(f(Gt),void 0,Tn),Je);return ht&&Uu(Un),Un}function ae(me,Oe,Qe,at){let ht=be(me),Je=me.attributes.properties,lt=bn(Je)?K(Je):t.createNull(),Jt=o.importSpecifier===void 0?lW(t,e.getEmitResolver().getJsxFactoryEntity(s),i.reactNamespace,me):p("createElement"),Gt=jre(t,Jt,ht,lt,Ri(Oe,C),at);return Qe&&Uu(Gt),Gt}function _e(me,Oe,Qe,at){let ht;if(Oe&&Oe.length){let Je=J(Oe);Je&&(ht=Je)}return Z(g(),ht||t.createObjectLiteralExpression([]),void 0,Oe,Qe,at)}function $(me,Oe,Qe,at){let ht=Bre(t,e.getEmitResolver().getJsxFactoryEntity(s),e.getEmitResolver().getJsxFragmentFactoryEntity(s),i.reactNamespace,Ri(Oe,C),me,at);return Qe&&Uu(ht),ht}function H(me){return xa(me.expression)&&!w(me.expression)?sl(me.expression.properties,Oe=>E.checkDefined(Ge(Oe,S,th))):t.createSpreadAssignment(E.checkDefined(Ge(me.expression,S,ut)))}function K(me,Oe){let Qe=La(i);return Qe&&Qe>=5?t.createObjectLiteralExpression(oe(me,Oe)):Se(me,Oe)}function oe(me,Oe){let Qe=Jp(Cj(me,Kx,(at,ht)=>Jp(Kt(at,Je=>ht?H(Je):se(Je)))));return Oe&&Qe.push(Oe),Qe}function Se(me,Oe){let Qe=[],at=[];for(let Je of me){if(Kx(Je)){if(xa(Je.expression)&&!w(Je.expression)){for(let lt of Je.expression.properties){if(n0(lt)){ht(),Qe.push(E.checkDefined(Ge(lt.expression,S,ut)));continue}at.push(E.checkDefined(Ge(lt,S)))}continue}ht(),Qe.push(E.checkDefined(Ge(Je.expression,S,ut)));continue}at.push(se(Je))}return Oe&&at.push(Oe),ht(),Qe.length&&!xa(Qe[0])&&Qe.unshift(t.createObjectLiteralExpression()),bm(Qe)||n().createAssignHelper(Qe);function ht(){at.length&&(Qe.push(t.createObjectLiteralExpression(at)),at=[])}}function se(me){let Oe=_t(me),Qe=Y(me.initializer);return t.createPropertyAssignment(Oe,Qe)}function Y(me){if(me===void 0)return t.createTrue();if(me.kind===11){let Oe=me.singleQuote!==void 0?me.singleQuote:!d5(me,s),Qe=t.createStringLiteral(he(me.text)||me.text,Oe);return nt(Qe,me)}return me.kind===294?me.expression===void 0?t.createTrue():E.checkDefined(Ge(me.expression,S,ut)):kg(me)?z(me,!1):W2(me)?V(me,!1):nb(me)?X(me,!1):E.failBadSyntaxKind(me)}function ve(me){let Oe=xe(me.text);return Oe===void 0?void 0:t.createStringLiteral(Oe)}function xe(me){let Oe,Qe=0,at=-1;for(let ht=0;ht{if(Je)return Ck(parseInt(Je,10));if(lt)return Ck(parseInt(lt,16));{let Gt=t2e.get(Jt);return Gt?Ck(Gt):Oe}})}function he(me){let Oe=ke(me);return Oe===me?void 0:Oe}function be(me){if(me.kind===284)return be(me.openingElement);{let Oe=me.tagName;return Ie(Oe)&&sC(Oe.escapedText)?t.createStringLiteral(ur(Oe)):md(Oe)?t.createStringLiteral(ur(Oe.namespace)+":"+ur(Oe.name)):k8(t,Oe)}}function _t(me){let Oe=me.name;if(Ie(Oe)){let Qe=ur(Oe);return/^[A-Za-z_]\w*$/.test(Qe)?Oe:t.createStringLiteral(Qe)}return t.createStringLiteral(ur(Oe.namespace)+":"+ur(Oe.name))}function mt(me){let Oe=Ge(me.expression,S,ut);return me.dotDotDotToken?t.createSpreadElement(Oe):Oe}}var t2e,gMe=ze({"src/compiler/transformers/jsx.ts"(){"use strict";Rs(),t2e=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function Fse(e){let{factory:t,hoistVariableDeclaration:n}=e;return Zp(e,i);function i(f){return f.isDeclarationFile?f:on(f,s,e)}function s(f){if(!(f.transformFlags&512))return f;switch(f.kind){case 226:return o(f);default:return on(f,s,e)}}function o(f){switch(f.operatorToken.kind){case 68:return c(f);case 43:return u(f);default:return on(f,s,e)}}function c(f){let g,p,y=Ge(f.left,s,ut),S=Ge(f.right,s,ut);if(ko(y)){let x=t.createTempVariable(n),C=t.createTempVariable(n);g=nt(t.createElementAccessExpression(nt(t.createAssignment(x,y.expression),y.expression),nt(t.createAssignment(C,y.argumentExpression),y.argumentExpression)),y),p=nt(t.createElementAccessExpression(x,C),y)}else if(Cr(y)){let x=t.createTempVariable(n);g=nt(t.createPropertyAccessExpression(nt(t.createAssignment(x,y.expression),y.expression),y.name),y),p=nt(t.createPropertyAccessExpression(x,y.name),y)}else g=y,p=y;return nt(t.createAssignment(g,nt(t.createGlobalMethodCall("Math","pow",[p,S]),f)),f)}function u(f){let g=Ge(f.left,s,ut),p=Ge(f.right,s,ut);return nt(t.createGlobalMethodCall("Math","pow",[g,p]),f)}}var hMe=ze({"src/compiler/transformers/es2016.ts"(){"use strict";Rs()}});function n2e(e,t){return{kind:e,expression:t}}function Ose(e){let{factory:t,getEmitHelperFactory:n,startLexicalEnvironment:i,resumeLexicalEnvironment:s,endLexicalEnvironment:o,hoistVariableDeclaration:c}=e,u=e.getCompilerOptions(),f=e.getEmitResolver(),g=e.onSubstituteNode,p=e.onEmitNode;e.onEmitNode=Ep,e.onSubstituteNode=$f;let y,S,x,C;function w(Q){C=_n(C,t.createVariableDeclaration(Q))}let D,O;return Zp(e,z);function z(Q){if(Q.isDeclarationFile)return Q;y=Q,S=Q.text;let Ze=K(Q);return oh(Ze,e.readEmitHelpers()),y=void 0,S=void 0,C=void 0,x=0,Ze}function V(Q,Ze){let Pt=x;return x=(x&~Q|Ze)&32767,Pt}function X(Q,Ze,Pt){x=(x&~Ze|Pt)&-32768|Q}function J(Q){return(x&8192)!==0&&Q.kind===253&&!Q.expression}function ie(Q){return Q.transformFlags&4194304&&($p(Q)||J2(Q)||kre(Q)||v8(Q)||t3(Q)||PC(Q)||S8(Q)||V2(Q)||ib(Q)||eb(Q)||$0(Q,!1)||Ds(Q))}function B(Q){return(Q.transformFlags&1024)!==0||D!==void 0||x&8192&&ie(Q)||$0(Q,!1)&&xs(Q)||(Wp(Q)&1)!==0}function Z(Q){return B(Q)?H(Q,!1):Q}function ae(Q){return B(Q)?H(Q,!0):Q}function _e(Q){if(B(Q)){let Ze=cc(Q);if(Is(Ze)&&Yc(Ze)){let Pt=V(32670,16449),At=H(Q,!1);return X(Pt,229376,0),At}return H(Q,!1)}return Q}function $(Q){return Q.kind===108?pc(Q,!0):Z(Q)}function H(Q,Ze){switch(Q.kind){case 126:return;case 263:return be(Q);case 231:return _t(Q);case 169:return Fs(Q);case 262:return tn(Q);case 219:return Dt(Q);case 218:return Zt(Q);case 260:return Rn(Q);case 80:return ke(Q);case 261:return Fe(Q);case 255:return oe(Q);case 269:return Se(Q);case 241:return j(Q,!1);case 252:case 251:return he(Q);case 256:return jr(Q);case 246:case 247:return wr(Q,void 0);case 248:return is(Q,void 0);case 249:return mi(Q,void 0);case 250:return ua(Q,void 0);case 244:return ce(Q);case 210:return to(Q);case 299:return pi(Q);case 304:return ll(Q);case 167:return _o(Q);case 209:return ro(Q);case 213:return Cl(Q);case 214:return Gf(Q);case 217:return ee(Q,Ze);case 226:return ue(Q,Ze);case 361:return M(Q,Ze);case 15:case 16:case 17:case 18:return Bs(Q);case 11:return vc(Q);case 9:return Ec(Q);case 215:return Go(Q);case 228:return tc(Q);case 229:return ul(Q);case 230:return Os(Q);case 108:return pc(Q,!1);case 110:return xe(Q);case 236:return Vc(Q);case 174:return Ea(Q);case 177:case 178:return yc(Q);case 243:return qe(Q);case 253:return ve(Q);case 222:return Me(Q);default:return on(Q,Z,e)}}function K(Q){let Ze=V(8064,64),Pt=[],At=[];i();let L=t.copyPrologue(Q.statements,Pt,!1,Z);return Nr(At,Dn(Q.statements,Z,Ai,L)),C&&At.push(t.createVariableStatement(void 0,t.createVariableDeclarationList(C))),t.mergeLexicalEnvironment(Pt,o()),we(Pt,Q),X(Ze,0,0),t.updateSourceFile(Q,nt(t.createNodeArray(es(Pt,At)),Q.statements))}function oe(Q){if(D!==void 0){let Ze=D.allowedNonLabeledJumps;D.allowedNonLabeledJumps|=2;let Pt=on(Q,Z,e);return D.allowedNonLabeledJumps=Ze,Pt}return on(Q,Z,e)}function Se(Q){let Ze=V(7104,0),Pt=on(Q,Z,e);return X(Ze,0,0),Pt}function se(Q){return or(t.createReturnStatement(Y()),Q)}function Y(){return t.createUniqueName("_this",48)}function ve(Q){return D?(D.nonLocalJumps|=8,J(Q)&&(Q=se(Q)),t.createReturnStatement(t.createObjectLiteralExpression([t.createPropertyAssignment(t.createIdentifier("value"),Q.expression?E.checkDefined(Ge(Q.expression,Z,ut)):t.createVoidZero())]))):J(Q)?se(Q):on(Q,Z,e)}function xe(Q){return x|=65536,x&2&&!(x&16384)&&(x|=131072),D?x&2?(D.containsLexicalThis=!0,Q):D.thisName||(D.thisName=t.createUniqueName("this")):Q}function Me(Q){return on(Q,ae,e)}function ke(Q){return D&&f.isArgumentsLocalBinding(Q)?D.argumentsName||(D.argumentsName=t.createUniqueName("arguments")):Q.flags&256?or(nt(t.createIdentifier(Ci(Q.escapedText)),Q),Q):Q}function he(Q){if(D){let Ze=Q.kind===252?2:4;if(!(Q.label&&D.labels&&D.labels.get(ur(Q.label))||!Q.label&&D.allowedNonLabeledJumps&Ze)){let At,L=Q.label;L?Q.kind===252?(At=`break-${L.escapedText}`,Pe(D,!0,ur(L),At)):(At=`continue-${L.escapedText}`,Pe(D,!1,ur(L),At)):Q.kind===252?(D.nonLocalJumps|=2,At="break"):(D.nonLocalJumps|=4,At="continue");let pe=t.createStringLiteral(At);if(D.loopOutParameters.length){let Ke=D.loopOutParameters,It;for(let jn=0;jnIe(Ze.name)&&!Ze.initializer)}function lt(Q){if(x2(Q))return!0;if(!(Q.transformFlags&134217728))return!1;switch(Q.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{let Ze=Q;return Na(Ze.name)?!!vs(Ze.name,lt):!1}}return!!vs(Q,lt)}function Jt(Q,Ze,Pt,At){let L=!!Pt&&wc(Pt.expression).kind!==106;if(!Q)return ht(Ze,L);let pe=[],Ke=[];s();let It=t.copyStandardPrologue(Q.body.statements,pe,0);(At||lt(Q.body))&&(x|=8192),Nr(Ke,Dn(Q.body.statements,Z,Ai,It));let jn=L||x&8192;Ue(pe,Q),fe(pe,Q,At),yt(pe,Q),jn?Be(pe,Q,Ki()):we(pe,Q),t.mergeLexicalEnvironment(pe,o()),jn&&!Ii(Q.body)&&Ke.push(t.createReturnStatement(Y()));let zr=t.createBlock(nt(t.createNodeArray([...pe,...Ke]),Q.body.statements),!0);return nt(zr,Q.body),Wi(zr,Q.body,At)}function Gt(Q){return Lo(Q)&&ur(Q)==="_this"}function Tn(Q){return Lo(Q)&&ur(Q)==="_super"}function Un(Q){return uc(Q)&&Q.declarationList.declarations.length===1&&cn(Q.declarationList.declarations[0])}function cn(Q){return Ni(Q)&&Gt(Q.name)&&!!Q.initializer}function zt(Q){return pl(Q,!0)&&Gt(Q.left)}function Ft(Q){return Ws(Q)&&Cr(Q.expression)&&Tn(Q.expression.expression)&&Ie(Q.expression.name)&&(ur(Q.expression.name)==="call"||ur(Q.expression.name)==="apply")&&Q.arguments.length>=1&&Q.arguments[0].kind===110}function Lr(Q){return Yn(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&Ft(Q.left)}function ji(Q){return Yn(Q)&&Q.operatorToken.kind===56&&Yn(Q.left)&&Q.left.operatorToken.kind===38&&Tn(Q.left.left)&&Q.left.right.kind===106&&Ft(Q.right)&&ur(Q.right.expression.name)==="apply"}function ii(Q){return Yn(Q)&&Q.operatorToken.kind===57&&Q.right.kind===110&&ji(Q.left)}function Hi(Q){return zt(Q)&&Lr(Q.right)}function Ye(Q){return zt(Q)&&ii(Q.right)}function fn(Q){return Ft(Q)||Lr(Q)||Hi(Q)||ji(Q)||ii(Q)||Ye(Q)}function An(Q){for(let Ze=0;Ze0;At--){let L=Q.statements[At];if($p(L)&&L.expression&&Gt(L.expression)){let pe=Q.statements[At-1],Ke;if(Il(pe)&&Hi(wc(pe.expression)))Ke=pe.expression;else if(Pt&&Un(pe)){let zr=pe.declarationList.declarations[0];fn(wc(zr.initializer))&&(Ke=t.createAssignment(Y(),zr.initializer))}if(!Ke)break;let It=t.createReturnStatement(Ke);or(It,pe),nt(It,pe);let jn=t.createNodeArray([...Q.statements.slice(0,At-1),It,...Q.statements.slice(At+1)]);return nt(jn,Q.statements),t.updateBlock(Q,jn)}}return Q}function Sn(Q){if(Un(Q)){if(Q.declarationList.declarations[0].initializer.kind===110)return}else if(zt(Q))return t.createPartiallyEmittedExpression(Q.right,Q);switch(Q.kind){case 219:case 218:case 262:case 176:case 175:return Q;case 177:case 178:case 174:case 172:{let Ze=Q;return Na(Ze.name)?t.replacePropertyName(Ze,on(Ze.name,Sn,yd)):Q}}return on(Q,Sn,yd)}function Cn(Q,Ze){if(Ze.transformFlags&16384||x&65536||x&131072)return Q;for(let Pt of Ze.statements)if(Pt.transformFlags&134217728&&!KO(Pt))return Q;return t.updateBlock(Q,Dn(Q.statements,Sn,Ai))}function Kn(Q){if(Ft(Q)&&Q.arguments.length===2&&Ie(Q.arguments[1])&&ur(Q.arguments[1])==="arguments")return t.createLogicalAnd(t.createStrictInequality(Fc(),t.createNull()),Q);switch(Q.kind){case 219:case 218:case 262:case 176:case 175:return Q;case 177:case 178:case 174:case 172:{let Ze=Q;return Na(Ze.name)?t.replacePropertyName(Ze,on(Ze.name,Kn,yd)):Q}}return on(Q,Kn,yd)}function Fi(Q){return t.updateBlock(Q,Dn(Q.statements,Kn,Ai))}function Wi(Q,Ze,Pt){let At=Q;return Q=An(Q),Q=Ot(Q,Ze),Q!==At&&(Q=Cn(Q,Ze)),Pt&&(Q=Fi(Q)),Q}function Ii(Q){if(Q.kind===253)return!0;if(Q.kind===245){let Ze=Q;if(Ze.elseStatement)return Ii(Ze.thenStatement)&&Ii(Ze.elseStatement)}else if(Q.kind===241){let Ze=qo(Q.statements);if(Ze&&Ii(Ze))return!0}return!1}function Ki(){return $n(t.createThis(),8)}function na(){return t.createLogicalOr(t.createLogicalAnd(t.createStrictInequality(Fc(),t.createNull()),t.createFunctionApplyCall(Fc(),Ki(),t.createIdentifier("arguments"))),Ki())}function Fs(Q){if(!Q.dotDotDotToken)return Ms(Q.name)?or(nt(t.createParameterDeclaration(void 0,void 0,t.getGeneratedNameForNode(Q),void 0,void 0,void 0),Q),Q):Q.initializer?or(nt(t.createParameterDeclaration(void 0,void 0,Q.name,void 0,void 0,void 0),Q),Q):Q}function Ce(Q){return Q.initializer!==void 0||Ms(Q.name)}function Ue(Q,Ze){if(!ft(Ze.parameters,Ce))return!1;let Pt=!1;for(let At of Ze.parameters){let{name:L,initializer:pe,dotDotDotToken:Ke}=At;Ke||(Ms(L)?Pt=it(Q,At,L,pe)||Pt:pe&&(dt(Q,At,L,pe),Pt=!0))}return Pt}function it(Q,Ze,Pt,At){return Pt.elements.length>0?(v2(Q,$n(t.createVariableStatement(void 0,t.createVariableDeclarationList(_b(Ze,Z,e,0,t.getGeneratedNameForNode(Ze)))),2097152)),!0):At?(v2(Q,$n(t.createExpressionStatement(t.createAssignment(t.getGeneratedNameForNode(Ze),E.checkDefined(Ge(At,Z,ut)))),2097152)),!0):!1}function dt(Q,Ze,Pt,At){At=E.checkDefined(Ge(At,Z,ut));let L=t.createIfStatement(t.createTypeCheck(t.cloneNode(Pt),"undefined"),$n(nt(t.createBlock([t.createExpressionStatement($n(nt(t.createAssignment($n(Ta(nt(t.cloneNode(Pt),Pt),Pt.parent),96),$n(At,96|Sa(At)|3072)),Ze),3072))]),Ze),3905));Uu(L),nt(L,Ze),$n(L,2101056),v2(Q,L)}function gt(Q,Ze){return!!(Q&&Q.dotDotDotToken&&!Ze)}function fe(Q,Ze,Pt){let At=[],L=qo(Ze.parameters);if(!gt(L,Pt))return!1;let pe=L.name.kind===80?Ta(nt(t.cloneNode(L.name),L.name),L.name.parent):t.createTempVariable(void 0);$n(pe,96);let Ke=L.name.kind===80?t.cloneNode(L.name):pe,It=Ze.parameters.length-1,jn=t.createLoopVariable();At.push($n(nt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(pe,void 0,void 0,t.createArrayLiteralExpression([]))])),L),2097152));let zr=t.createForStatement(nt(t.createVariableDeclarationList([t.createVariableDeclaration(jn,void 0,void 0,t.createNumericLiteral(It))]),L),nt(t.createLessThan(jn,t.createPropertyAccessExpression(t.createIdentifier("arguments"),"length")),L),nt(t.createPostfixIncrement(jn),L),t.createBlock([Uu(nt(t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(Ke,It===0?jn:t.createSubtract(jn,t.createNumericLiteral(It))),t.createElementAccessExpression(t.createIdentifier("arguments"),jn))),L))]));return $n(zr,2097152),Uu(zr),At.push(zr),L.name.kind!==80&&At.push($n(nt(t.createVariableStatement(void 0,t.createVariableDeclarationList(_b(L,Z,e,0,Ke))),L),2097152)),jJ(Q,At),!0}function we(Q,Ze){return x&131072&&Ze.kind!==219?(Be(Q,Ze,t.createThis()),!0):!1}function Be(Q,Ze,Pt){n_();let At=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(Y(),void 0,void 0,Pt)]));$n(At,2100224),Ca(At,Ze),v2(Q,At)}function yt(Q,Ze){if(x&32768){let Pt;switch(Ze.kind){case 219:return Q;case 174:case 177:case 178:Pt=t.createVoidZero();break;case 176:Pt=t.createPropertyAccessExpression($n(t.createThis(),8),"constructor");break;case 262:case 218:Pt=t.createConditionalExpression(t.createLogicalAnd($n(t.createThis(),8),t.createBinaryExpression($n(t.createThis(),8),104,t.getLocalName(Ze))),void 0,t.createPropertyAccessExpression($n(t.createThis(),8),"constructor"),void 0,t.createVoidZero());break;default:return E.failBadSyntaxKind(Ze)}let At=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_newTarget",48),void 0,void 0,Pt)]));$n(At,2100224),v2(Q,At)}return Q}function G(Q,Ze){for(let Pt of Ze.members)switch(Pt.kind){case 240:Q.push(vt(Pt));break;case 174:Q.push(wt(Xf(Ze,Pt),Pt,Ze));break;case 177:case 178:let At=N2(Ze.members,Pt);Pt===At.firstAccessor&&Q.push(Re(Xf(Ze,Pt),At,Ze));break;case 176:case 175:break;default:E.failBadSyntaxKind(Pt,y&&y.fileName);break}}function vt(Q){return nt(t.createEmptyStatement(),Q)}function wt(Q,Ze,Pt){let At=Ud(Ze),L=y1(Ze),pe=ln(Ze,Ze,void 0,Pt),Ke=Ge(Ze.name,Z,Rc);E.assert(Ke);let It;if(!Di(Ke)&&Uw(e.getCompilerOptions())){let zr=Na(Ke)?Ke.expression:Ie(Ke)?t.createStringLiteral(Ci(Ke.escapedText)):Ke;It=t.createObjectDefinePropertyCall(Q,zr,t.createPropertyDescriptor({value:pe,enumerable:!1,writable:!0,configurable:!0}))}else{let zr=H2(t,Q,Ke,Ze.name);It=t.createAssignment(zr,pe)}$n(pe,3072),Ca(pe,L);let jn=nt(t.createExpressionStatement(It),Ze);return or(jn,Ze),jc(jn,At),$n(jn,96),jn}function Re(Q,Ze,Pt){let At=t.createExpressionStatement(ot(Q,Ze,Pt,!1));return $n(At,3072),Ca(At,y1(Ze.firstAccessor)),At}function ot(Q,{firstAccessor:Ze,getAccessor:Pt,setAccessor:At},L,pe){let Ke=Ta(nt(t.cloneNode(Q),Q),Q.parent);$n(Ke,3136),Ca(Ke,Ze.name);let It=Ge(Ze.name,Z,Rc);if(E.assert(It),Di(It))return E.failBadSyntaxKind(It,"Encountered unhandled private identifier while transforming ES2015.");let jn=_W(t,It);$n(jn,3104),Ca(jn,Ze.name);let zr=[];if(Pt){let Bi=ln(Pt,void 0,void 0,L);Ca(Bi,y1(Pt)),$n(Bi,1024);let _a=t.createPropertyAssignment("get",Bi);jc(_a,Ud(Pt)),zr.push(_a)}if(At){let Bi=ln(At,void 0,void 0,L);Ca(Bi,y1(At)),$n(Bi,1024);let _a=t.createPropertyAssignment("set",Bi);jc(_a,Ud(At)),zr.push(_a)}zr.push(t.createPropertyAssignment("enumerable",Pt||At?t.createFalse():t.createTrue()),t.createPropertyAssignment("configurable",t.createTrue()));let Vr=t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"defineProperty"),void 0,[Ke,jn,t.createObjectLiteralExpression(zr,!0)]);return pe&&Uu(Vr),Vr}function Dt(Q){Q.transformFlags&16384&&!(x&16384)&&(x|=131072);let Ze=D;D=void 0;let Pt=V(15232,66),At=t.createFunctionExpression(void 0,void 0,void 0,void 0,Ac(Q.parameters,Z,e),void 0,W(Q));return nt(At,Q),or(At,Q),$n(At,16),X(Pt,0,0),D=Ze,At}function Zt(Q){let Ze=Sa(Q)&524288?V(32662,69):V(32670,65),Pt=D;D=void 0;let At=Ac(Q.parameters,Z,e),L=W(Q),pe=x&32768?t.getLocalName(Q):Q.name;return X(Ze,229376,0),D=Pt,t.updateFunctionExpression(Q,void 0,Q.asteriskToken,pe,void 0,At,void 0,L)}function tn(Q){let Ze=D;D=void 0;let Pt=V(32670,65),At=Ac(Q.parameters,Z,e),L=W(Q),pe=x&32768?t.getLocalName(Q):Q.name;return X(Pt,229376,0),D=Ze,t.updateFunctionDeclaration(Q,Dn(Q.modifiers,Z,ra),Q.asteriskToken,pe,void 0,At,void 0,L)}function ln(Q,Ze,Pt,At){let L=D;D=void 0;let pe=At&&ei(At)&&!zs(Q)?V(32670,73):V(32670,65),Ke=Ac(Q.parameters,Z,e),It=W(Q);return x&32768&&!Pt&&(Q.kind===262||Q.kind===218)&&(Pt=t.getGeneratedNameForNode(Q)),X(pe,229376,0),D=L,or(nt(t.createFunctionExpression(void 0,Q.asteriskToken,Pt,void 0,Ke,void 0,It),Ze),Q)}function W(Q){let Ze=!1,Pt=!1,At,L,pe=[],Ke=[],It=Q.body,jn;if(s(),Ds(It)&&(jn=t.copyStandardPrologue(It.statements,pe,0,!1),jn=t.copyCustomPrologue(It.statements,Ke,jn,Z,Z7),jn=t.copyCustomPrologue(It.statements,Ke,jn,Z,K7)),Ze=Ue(Ke,Q)||Ze,Ze=fe(Ke,Q,!1)||Ze,Ds(It))jn=t.copyCustomPrologue(It.statements,Ke,jn,Z),At=It.statements,Nr(Ke,Dn(It.statements,Z,Ai,jn)),!Ze&&It.multiLine&&(Ze=!0);else{E.assert(Q.kind===219),At=M5(It,-1);let Vr=Q.equalsGreaterThanToken;!Ro(Vr)&&!Ro(It)&&(Bw(Vr,It,y)?Pt=!0:Ze=!0);let Bi=Ge(It,Z,ut),_a=t.createReturnStatement(Bi);nt(_a,It),Kne(_a,It),$n(_a,2880),Ke.push(_a),L=It}if(t.mergeLexicalEnvironment(pe,o()),yt(pe,Q),we(pe,Q),ft(pe)&&(Ze=!0),Ke.unshift(...pe),Ds(It)&&cd(Ke,It.statements))return It;let zr=t.createBlock(nt(t.createNodeArray(Ke),At),Ze);return nt(zr,Q.body),!Ze&&Pt&&$n(zr,1),L&&Zne(zr,20,L),or(zr,Q.body),zr}function j(Q,Ze){if(Ze)return on(Q,Z,e);let Pt=x&256?V(7104,512):V(6976,128),At=on(Q,Z,e);return X(Pt,0,0),At}function ce(Q){return on(Q,ae,e)}function ee(Q,Ze){return on(Q,Ze?ae:Z,e)}function ue(Q,Ze){return Qh(Q)?Q2(Q,Z,e,0,!Ze):Q.operatorToken.kind===28?t.updateBinaryExpression(Q,E.checkDefined(Ge(Q.left,ae,ut)),Q.operatorToken,E.checkDefined(Ge(Q.right,Ze?ae:Z,ut))):on(Q,Z,e)}function M(Q,Ze){if(Ze)return on(Q,ae,e);let Pt;for(let L=0;Ljn.name)),It=At?t.createYieldExpression(t.createToken(42),$n(Ke,8388608)):Ke;if(pe)L.push(t.createExpressionStatement(It)),Po(Ze.loopOutParameters,1,0,L);else{let jn=t.createUniqueName("state"),zr=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(jn,void 0,void 0,It)]));if(L.push(zr),Po(Ze.loopOutParameters,1,0,L),Ze.nonLocalJumps&8){let Vr;Pt?(Pt.nonLocalJumps|=8,Vr=t.createReturnStatement(jn)):Vr=t.createReturnStatement(t.createPropertyAccessExpression(jn,"value")),L.push(t.createIfStatement(t.createTypeCheck(jn,"object"),Vr))}if(Ze.nonLocalJumps&2&&L.push(t.createIfStatement(t.createStrictEquality(jn,t.createStringLiteral("break")),t.createBreakStatement())),Ze.labeledNonLocalBreaks||Ze.labeledNonLocalContinues){let Vr=[];He(Ze.labeledNonLocalBreaks,!0,jn,Pt,Vr),He(Ze.labeledNonLocalContinues,!1,jn,Pt,Vr),L.push(t.createSwitchStatement(jn,t.createCaseBlock(Vr)))}}return L}function Pe(Q,Ze,Pt,At){Ze?(Q.labeledNonLocalBreaks||(Q.labeledNonLocalBreaks=new Map),Q.labeledNonLocalBreaks.set(Pt,At)):(Q.labeledNonLocalContinues||(Q.labeledNonLocalContinues=new Map),Q.labeledNonLocalContinues.set(Pt,At))}function He(Q,Ze,Pt,At,L){Q&&Q.forEach((pe,Ke)=>{let It=[];if(!At||At.labels&&At.labels.get(Ke)){let jn=t.createIdentifier(Ke);It.push(Ze?t.createBreakStatement(jn):t.createContinueStatement(jn))}else Pe(At,Ze,Ke,pe),It.push(t.createReturnStatement(Pt));L.push(t.createCaseClause(t.createStringLiteral(pe),It))})}function kt(Q,Ze,Pt,At,L){let pe=Ze.name;if(Ms(pe))for(let Ke of pe.elements)xl(Ke)||kt(Q,Ke,Pt,At,L);else{Pt.push(t.createParameterDeclaration(void 0,void 0,pe));let Ke=f.getNodeCheckFlags(Ze);if(Ke&65536||L){let It=t.createUniqueName("out_"+ur(pe)),jn=0;Ke&65536&&(jn|=1),z2(Q)&&(Q.initializer&&f.isBindingCapturedByNode(Q.initializer,Ze)&&(jn|=2),(Q.condition&&f.isBindingCapturedByNode(Q.condition,Ze)||Q.incrementor&&f.isBindingCapturedByNode(Q.incrementor,Ze))&&(jn|=1)),At.push({flags:jn,originalName:pe,outParamName:It})}}}function gn(Q,Ze,Pt,At){let L=Ze.properties,pe=L.length;for(let Ke=At;Keuc(ha)&&!!Da(ha.declarationList.declarations).initializer,At=D;D=void 0;let L=Dn(Ze.statements,_e,Ai);D=At;let pe=Fr(L,Pt),Ke=Fr(L,ha=>!Pt(ha)),jn=Vs(Da(pe),uc).declarationList.declarations[0],zr=wc(jn.initializer),Vr=Ur(zr,pl);!Vr&&Yn(zr)&&zr.operatorToken.kind===28&&(Vr=Ur(zr.left,pl));let Bi=Vs(Vr?wc(Vr.right):zr,Ws),_a=Vs(wc(Bi.expression),uo),fa=_a.body.statements,sc=0,nu=-1,hl=[];if(Vr){let ha=Ur(fa[sc],Il);ha&&(hl.push(ha),sc++),hl.push(fa[sc]),sc++,hl.push(t.createExpressionStatement(t.createAssignment(Vr.left,Vs(jn.name,Ie))))}for(;!$p(Jh(fa,nu));)nu--;Nr(hl,fa,sc,nu),nu<-1&&Nr(hl,fa,nu+1);let If=Ur(Jh(fa,nu),$p);for(let ha of Ke)$p(ha)&&If?.expression&&!Ie(If.expression)?hl.push(If):hl.push(ha);return Nr(hl,pe,1),t.restoreOuterExpressions(Q.expression,t.restoreOuterExpressions(jn.initializer,t.restoreOuterExpressions(Vr&&Vr.right,t.updateCallExpression(Bi,t.restoreOuterExpressions(Bi.expression,t.updateFunctionExpression(_a,void 0,void 0,void 0,void 0,_a.parameters,void 0,t.updateBlock(_a.body,hl))),void 0,Bi.arguments))))}function Au(Q,Ze){if(Q.transformFlags&32768||Q.expression.kind===108||f_(wc(Q.expression))){let{target:Pt,thisArg:At}=t.createCallBinding(Q.expression,c);Q.expression.kind===108&&$n(At,8);let L;if(Q.transformFlags&32768?L=t.createFunctionApplyCall(E.checkDefined(Ge(Pt,$,ut)),Q.expression.kind===108?At:E.checkDefined(Ge(At,Z,ut)),tu(Q.arguments,!0,!1,!1)):L=nt(t.createFunctionCallCall(E.checkDefined(Ge(Pt,$,ut)),Q.expression.kind===108?At:E.checkDefined(Ge(At,Z,ut)),Dn(Q.arguments,Z,ut)),Q),Q.expression.kind===108){let pe=t.createLogicalOr(L,Ki());L=Ze?t.createAssignment(Y(),pe):pe}return or(L,Q)}return x2(Q)&&(x|=131072),on(Q,Z,e)}function Gf(Q){if(ft(Q.arguments,qd)){let{target:Ze,thisArg:Pt}=t.createCallBinding(t.createPropertyAccessExpression(Q.expression,"bind"),c);return t.createNewExpression(t.createFunctionApplyCall(E.checkDefined(Ge(Ze,Z,ut)),Pt,tu(t.createNodeArray([t.createVoidZero(),...Q.arguments]),!0,!1,!1)),void 0,[])}return on(Q,Z,e)}function tu(Q,Ze,Pt,At){let L=Q.length,pe=Jp(Cj(Q,ye,(zr,Vr,Bi,_a)=>Vr(zr,Pt,At&&_a===L)));if(pe.length===1){let zr=pe[0];if(Ze&&!u.downlevelIteration||lV(zr.expression)||qE(zr.expression,"___spreadArray"))return zr.expression}let Ke=n(),It=pe[0].kind!==0,jn=It?t.createArrayLiteralExpression():pe[0].expression;for(let zr=It?0:1;zr0&&At.push(t.createStringLiteral(Pt.literal.text)),Ze=t.createCallExpression(t.createPropertyAccessExpression(Ze,"concat"),void 0,At)}return nt(Ze,Q)}function Fc(){return t.createUniqueName("_super",48)}function pc(Q,Ze){let Pt=x&8&&!Ze?t.createPropertyAccessExpression(or(Fc(),Q),"prototype"):Fc();return or(Pt,Q),jc(Pt,Q),Ca(Pt,Q),Pt}function Vc(Q){return Q.keywordToken===105&&Q.name.escapedText==="target"?(x|=32768,t.createUniqueName("_newTarget",48)):Q}function Ep(Q,Ze,Pt){if(O&1&&As(Ze)){let At=V(32670,Sa(Ze)&16?81:65);p(Q,Ze,Pt),X(At,0,0);return}p(Q,Ze,Pt)}function Nf(){O&2||(O|=2,e.enableSubstitution(80))}function n_(){O&1||(O|=1,e.enableSubstitution(110),e.enableEmitNotification(176),e.enableEmitNotification(174),e.enableEmitNotification(177),e.enableEmitNotification(178),e.enableEmitNotification(219),e.enableEmitNotification(218),e.enableEmitNotification(262))}function $f(Q,Ze){return Ze=g(Q,Ze),Q===1?p0(Ze):Ie(Ze)?wg(Ze):Ze}function wg(Q){if(O&2&&!fW(Q)){let Ze=ls(Q,Ie);if(Ze&&Um(Ze))return nt(t.getGeneratedNameForNode(Ze),Q)}return Q}function Um(Q){switch(Q.parent.kind){case 208:case 263:case 266:case 260:return Q.parent.name===Q&&f.isDeclarationWithCollidingName(Q.parent)}return!1}function p0(Q){switch(Q.kind){case 80:return du(Q);case 110:return V_(Q)}return Q}function du(Q){if(O&2&&!fW(Q)){let Ze=f.getReferencedDeclarationWithCollidingName(Q);if(Ze&&!(ei(Ze)&&Ag(Ze,Q)))return nt(t.getGeneratedNameForNode(us(Ze)),Q)}return Q}function Ag(Q,Ze){let Pt=ls(Ze);if(!Pt||Pt===Q||Pt.end<=Q.pos||Pt.pos>=Q.end)return!1;let At=Nm(Q);for(;Pt;){if(Pt===At||Pt===Q)return!1;if(Ml(Pt)&&Pt.parent===Q)return!0;Pt=Pt.parent}return!1}function V_(Q){return O&1&&x&16?nt(Y(),Q):Q}function Xf(Q,Ze){return zs(Ze)?t.getInternalName(Q):t.createPropertyAccessExpression(t.getInternalName(Q),"prototype")}function r_(Q,Ze){if(!Q||!Ze||ft(Q.parameters))return!1;let Pt=Pl(Q.body.statements);if(!Pt||!Ro(Pt)||Pt.kind!==244)return!1;let At=Pt.expression;if(!Ro(At)||At.kind!==213)return!1;let L=At.expression;if(!Ro(L)||L.kind!==108)return!1;let pe=bm(At.arguments);if(!pe||!Ro(pe)||pe.kind!==230)return!1;let Ke=pe.expression;return Ie(Ke)&&Ke.escapedText==="arguments"}}var yMe=ze({"src/compiler/transformers/es2015.ts"(){"use strict";Rs()}});function Lse(e){let{factory:t}=e,n=e.getCompilerOptions(),i,s;(n.jsx===1||n.jsx===3)&&(i=e.onEmitNode,e.onEmitNode=u,e.enableEmitNotification(286),e.enableEmitNotification(287),e.enableEmitNotification(285),s=[]);let o=e.onSubstituteNode;return e.onSubstituteNode=f,e.enableSubstitution(211),e.enableSubstitution(303),Zp(e,c);function c(S){return S}function u(S,x,C){switch(x.kind){case 286:case 287:case 285:let w=x.tagName;s[_u(w)]=!0;break}i(S,x,C)}function f(S,x){return x.id&&s&&s[x.id]?o(S,x):(x=o(S,x),Cr(x)?g(x):el(x)?p(x):x)}function g(S){if(Di(S.name))return S;let x=y(S.name);return x?nt(t.createElementAccessExpression(S.expression,x),S):S}function p(S){let x=Ie(S.name)&&y(S.name);return x?t.updatePropertyAssignment(S,x,S.initializer):S}function y(S){let x=s1(S);if(x!==void 0&&x>=83&&x<=118)return nt(t.createStringLiteralFromNode(S),S)}}var vMe=ze({"src/compiler/transformers/es5.ts"(){"use strict";Rs()}});function bMe(e){switch(e){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function Mse(e){let{factory:t,getEmitHelperFactory:n,resumeLexicalEnvironment:i,endLexicalEnvironment:s,hoistFunctionDeclaration:o,hoistVariableDeclaration:c}=e,u=e.getCompilerOptions(),f=La(u),g=e.getEmitResolver(),p=e.onSubstituteNode;e.onSubstituteNode=ce;let y,S,x,C,w,D,O,z,V,X,J=1,ie,B,Z,ae,_e=0,$=0,H,K,oe,Se,se,Y,ve,xe;return Zp(e,Me);function Me(ye){if(ye.isDeclarationFile||!(ye.transformFlags&2048))return ye;let Tt=on(ye,ke,e);return oh(Tt,e.readEmitHelpers()),Tt}function ke(ye){let Tt=ye.transformFlags;return C?he(ye):x?be(ye):To(ye)&&ye.asteriskToken?mt(ye):Tt&2048?on(ye,ke,e):ye}function he(ye){switch(ye.kind){case 246:return na(ye);case 247:return Ce(ye);case 255:return ot(ye);case 256:return Zt(ye);default:return be(ye)}}function be(ye){switch(ye.kind){case 262:return me(ye);case 218:return Oe(ye);case 177:case 178:return Qe(ye);case 243:return ht(ye);case 248:return it(ye);case 249:return gt(ye);case 252:return yt(ye);case 251:return we(ye);case 253:return vt(ye);default:return ye.transformFlags&1048576?_t(ye):ye.transformFlags&4196352?on(ye,ke,e):ye}}function _t(ye){switch(ye.kind){case 226:return Je(ye);case 361:return Tn(ye);case 227:return cn(ye);case 229:return zt(ye);case 209:return Ft(ye);case 210:return ji(ye);case 212:return ii(ye);case 213:return Hi(ye);case 214:return Ye(ye);default:return on(ye,ke,e)}}function mt(ye){switch(ye.kind){case 262:return me(ye);case 218:return Oe(ye);default:return E.failBadSyntaxKind(ye)}}function me(ye){if(ye.asteriskToken)ye=or(nt(t.createFunctionDeclaration(ye.modifiers,void 0,ye.name,void 0,Ac(ye.parameters,ke,e),void 0,at(ye.body)),ye),ye);else{let Tt=x,Ln=C;x=!1,C=!1,ye=on(ye,ke,e),x=Tt,C=Ln}if(x){o(ye);return}else return ye}function Oe(ye){if(ye.asteriskToken)ye=or(nt(t.createFunctionExpression(void 0,void 0,ye.name,void 0,Ac(ye.parameters,ke,e),void 0,at(ye.body)),ye),ye);else{let Tt=x,Ln=C;x=!1,C=!1,ye=on(ye,ke,e),x=Tt,C=Ln}return ye}function Qe(ye){let Tt=x,Ln=C;return x=!1,C=!1,ye=on(ye,ke,e),x=Tt,C=Ln,ye}function at(ye){let Tt=[],Ln=x,Gi=C,Os=w,Bs=D,vc=O,Ec=z,Go=V,tc=X,Fc=J,pc=ie,Vc=B,Ep=Z,Nf=ae;x=!0,C=!1,w=void 0,D=void 0,O=void 0,z=void 0,V=void 0,X=void 0,J=1,ie=void 0,B=void 0,Z=void 0,ae=t.createTempVariable(void 0),i();let n_=t.copyPrologue(ye.statements,Tt,!1,ke);fn(ye.statements,n_);let $f=Pe();return Am(Tt,s()),Tt.push(t.createReturnStatement($f)),x=Ln,C=Gi,w=Os,D=Bs,O=vc,z=Ec,V=Go,X=tc,J=Fc,ie=pc,B=Vc,Z=Ep,ae=Nf,nt(t.createBlock(Tt,ye.multiLine),ye)}function ht(ye){if(ye.transformFlags&1048576){Fi(ye.declarationList);return}else{if(Sa(ye)&2097152)return ye;for(let Ln of ye.declarationList.declarations)c(Ln.name);let Tt=kE(ye.declarationList);return Tt.length===0?void 0:Ca(t.createExpressionStatement(t.inlineExpressions(Kt(Tt,Wi))),ye)}}function Je(ye){let Tt=kz(ye);switch(Tt){case 0:return Jt(ye);case 1:return lt(ye);default:return E.assertNever(Tt)}}function lt(ye){let{left:Tt,right:Ln}=ye;if(W(Ln)){let Gi;switch(Tt.kind){case 211:Gi=t.updatePropertyAccessExpression(Tt,M(E.checkDefined(Ge(Tt.expression,ke,x_))),Tt.name);break;case 212:Gi=t.updateElementAccessExpression(Tt,M(E.checkDefined(Ge(Tt.expression,ke,x_))),M(E.checkDefined(Ge(Tt.argumentExpression,ke,ut))));break;default:Gi=E.checkDefined(Ge(Tt,ke,ut));break}let Os=ye.operatorToken.kind;return v3(Os)?nt(t.createAssignment(Gi,nt(t.createBinaryExpression(M(Gi),b3(Os),E.checkDefined(Ge(Ln,ke,ut))),ye)),ye):t.updateBinaryExpression(ye,Gi,ye.operatorToken,E.checkDefined(Ge(Ln,ke,ut)))}return on(ye,ke,e)}function Jt(ye){return W(ye.right)?$te(ye.operatorToken.kind)?Un(ye):ye.operatorToken.kind===28?Gt(ye):t.updateBinaryExpression(ye,M(E.checkDefined(Ge(ye.left,ke,ut))),ye.operatorToken,E.checkDefined(Ge(ye.right,ke,ut))):on(ye,ke,e)}function Gt(ye){let Tt=[];return Ln(ye.left),Ln(ye.right),t.inlineExpressions(Tt);function Ln(Gi){Yn(Gi)&&Gi.operatorToken.kind===28?(Ln(Gi.left),Ln(Gi.right)):(W(Gi)&&Tt.length>0&&(A(1,[t.createExpressionStatement(t.inlineExpressions(Tt))]),Tt=[]),Tt.push(E.checkDefined(Ge(Gi,ke,ut))))}}function Tn(ye){let Tt=[];for(let Ln of ye.elements)Yn(Ln)&&Ln.operatorToken.kind===28?Tt.push(Gt(Ln)):(W(Ln)&&Tt.length>0&&(A(1,[t.createExpressionStatement(t.inlineExpressions(Tt))]),Tt=[]),Tt.push(E.checkDefined(Ge(Ln,ke,ut))));return t.inlineExpressions(Tt)}function Un(ye){let Tt=qe(),Ln=De();return Bo(Ln,E.checkDefined(Ge(ye.left,ke,ut)),ye.left),ye.operatorToken.kind===56?Jo(Tt,Ln,ye.left):Ht(Tt,Ln,ye.left),Bo(Ln,E.checkDefined(Ge(ye.right,ke,ut)),ye.right),Fe(Tt),Ln}function cn(ye){if(W(ye.whenTrue)||W(ye.whenFalse)){let Tt=qe(),Ln=qe(),Gi=De();return Jo(Tt,E.checkDefined(Ge(ye.condition,ke,ut)),ye.condition),Bo(Gi,E.checkDefined(Ge(ye.whenTrue,ke,ut)),ye.whenTrue),as(Ln),Fe(Tt),Bo(Gi,E.checkDefined(Ge(ye.whenFalse,ke,ut)),ye.whenFalse),Fe(Ln),Gi}return on(ye,ke,e)}function zt(ye){let Tt=qe(),Ln=Ge(ye.expression,ke,ut);if(ye.asteriskToken){let Gi=Sa(ye.expression)&8388608?Ln:nt(n().createValuesHelper(Ln),ye);nl(Gi,ye)}else qu(Ln,ye);return Fe(Tt),td(ye)}function Ft(ye){return Lr(ye.elements,void 0,void 0,ye.multiLine)}function Lr(ye,Tt,Ln,Gi){let Os=j(ye),Bs;if(Os>0){Bs=De();let Go=Dn(ye,ke,ut,0,Os);Bo(Bs,t.createArrayLiteralExpression(Tt?[Tt,...Go]:Go)),Tt=void 0}let vc=Fu(ye,Ec,[],Os);return Bs?t.createArrayConcatCall(Bs,[t.createArrayLiteralExpression(vc,Gi)]):nt(t.createArrayLiteralExpression(Tt?[Tt,...vc]:vc,Gi),Ln);function Ec(Go,tc){if(W(tc)&&Go.length>0){let Fc=Bs!==void 0;Bs||(Bs=De()),Bo(Bs,Fc?t.createArrayConcatCall(Bs,[t.createArrayLiteralExpression(Go,Gi)]):t.createArrayLiteralExpression(Tt?[Tt,...Go]:Go,Gi)),Tt=void 0,Go=[]}return Go.push(E.checkDefined(Ge(tc,ke,ut))),Go}}function ji(ye){let Tt=ye.properties,Ln=ye.multiLine,Gi=j(Tt),Os=De();Bo(Os,t.createObjectLiteralExpression(Dn(Tt,ke,th,0,Gi),Ln));let Bs=Fu(Tt,vc,[],Gi);return Bs.push(Ln?Uu(Ta(nt(t.cloneNode(Os),Os),Os.parent)):Os),t.inlineExpressions(Bs);function vc(Ec,Go){W(Go)&&Ec.length>0&&(ic(t.createExpressionStatement(t.inlineExpressions(Ec))),Ec=[]);let tc=Jre(t,ye,Go,Os),Fc=Ge(tc,ke,ut);return Fc&&(Ln&&Uu(Fc),Ec.push(Fc)),Ec}}function ii(ye){return W(ye.argumentExpression)?t.updateElementAccessExpression(ye,M(E.checkDefined(Ge(ye.expression,ke,x_))),E.checkDefined(Ge(ye.argumentExpression,ke,ut))):on(ye,ke,e)}function Hi(ye){if(!ef(ye)&&Qt(ye.arguments,W)){let{target:Tt,thisArg:Ln}=t.createCallBinding(ye.expression,c,f,!0);return or(nt(t.createFunctionApplyCall(M(E.checkDefined(Ge(Tt,ke,x_))),Ln,Lr(ye.arguments)),ye),ye)}return on(ye,ke,e)}function Ye(ye){if(Qt(ye.arguments,W)){let{target:Tt,thisArg:Ln}=t.createCallBinding(t.createPropertyAccessExpression(ye.expression,"bind"),c);return or(nt(t.createNewExpression(t.createFunctionApplyCall(M(E.checkDefined(Ge(Tt,ke,ut))),Ln,Lr(ye.arguments,t.createVoidZero())),void 0,[]),ye),ye)}return on(ye,ke,e)}function fn(ye,Tt=0){let Ln=ye.length;for(let Gi=Tt;Gi0)break;Os.push(Wi(vc))}Os.length&&(ic(t.createExpressionStatement(t.inlineExpressions(Os))),Gi+=Os.length,Os=[])}}function Wi(ye){return Ca(t.createAssignment(Ca(t.cloneNode(ye.name),ye.name),E.checkDefined(Ge(ye.initializer,ke,ut))),ye)}function Ii(ye){if(W(ye))if(W(ye.thenStatement)||W(ye.elseStatement)){let Tt=qe(),Ln=ye.elseStatement?qe():void 0;Jo(ye.elseStatement?Ln:Tt,E.checkDefined(Ge(ye.expression,ke,ut)),ye.expression),An(ye.thenStatement),ye.elseStatement&&(as(Tt),Fe(Ln),An(ye.elseStatement)),Fe(Tt)}else ic(Ge(ye,ke,Ai));else ic(Ge(ye,ke,Ai))}function Ki(ye){if(W(ye)){let Tt=qe(),Ln=qe();In(Tt),Fe(Ln),An(ye.statement),Fe(Tt),Ht(Ln,E.checkDefined(Ge(ye.expression,ke,ut))),mi()}else ic(Ge(ye,ke,Ai))}function na(ye){return C?(is(),ye=on(ye,ke,e),mi(),ye):on(ye,ke,e)}function Fs(ye){if(W(ye)){let Tt=qe(),Ln=In(Tt);Fe(Tt),Jo(Ln,E.checkDefined(Ge(ye.expression,ke,ut))),An(ye.statement),as(Tt),mi()}else ic(Ge(ye,ke,Ai))}function Ce(ye){return C?(is(),ye=on(ye,ke,e),mi(),ye):on(ye,ke,e)}function Ue(ye){if(W(ye)){let Tt=qe(),Ln=qe(),Gi=In(Ln);if(ye.initializer){let Os=ye.initializer;Tl(Os)?Fi(Os):ic(nt(t.createExpressionStatement(E.checkDefined(Ge(Os,ke,ut))),Os))}Fe(Tt),ye.condition&&Jo(Gi,E.checkDefined(Ge(ye.condition,ke,ut))),An(ye.statement),Fe(Ln),ye.incrementor&&ic(nt(t.createExpressionStatement(E.checkDefined(Ge(ye.incrementor,ke,ut))),ye.incrementor)),as(Tt),mi()}else ic(Ge(ye,ke,Ai))}function it(ye){C&&is();let Tt=ye.initializer;if(Tt&&Tl(Tt)){for(let Gi of Tt.declarations)c(Gi.name);let Ln=kE(Tt);ye=t.updateForStatement(ye,Ln.length>0?t.inlineExpressions(Kt(Ln,Wi)):void 0,Ge(ye.condition,ke,ut),Ge(ye.incrementor,ke,ut),Ku(ye.statement,ke,e))}else ye=on(ye,ke,e);return C&&mi(),ye}function dt(ye){if(W(ye)){let Tt=De(),Ln=De(),Gi=De(),Os=t.createLoopVariable(),Bs=ye.initializer;c(Os),Bo(Tt,E.checkDefined(Ge(ye.expression,ke,ut))),Bo(Ln,t.createArrayLiteralExpression()),ic(t.createForInStatement(Gi,Tt,t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(Ln,"push"),void 0,[Gi])))),Bo(Os,t.createNumericLiteral(0));let vc=qe(),Ec=qe(),Go=In(Ec);Fe(vc),Jo(Go,t.createLessThan(Os,t.createPropertyAccessExpression(Ln,"length"))),Bo(Gi,t.createElementAccessExpression(Ln,Os)),Jo(Ec,t.createBinaryExpression(Gi,103,Tt));let tc;if(Tl(Bs)){for(let Fc of Bs.declarations)c(Fc.name);tc=t.cloneNode(Bs.declarations[0].name)}else tc=E.checkDefined(Ge(Bs,ke,ut)),E.assert(x_(tc));Bo(tc,Gi),An(ye.statement),Fe(Ec),ic(t.createExpressionStatement(t.createPostfixIncrement(Os))),as(vc),mi()}else ic(Ge(ye,ke,Ai))}function gt(ye){C&&is();let Tt=ye.initializer;if(Tl(Tt)){for(let Ln of Tt.declarations)c(Ln.name);ye=t.updateForInStatement(ye,Tt.declarations[0].name,E.checkDefined(Ge(ye.expression,ke,ut)),E.checkDefined(Ge(ye.statement,ke,Ai,t.liftToBlock)))}else ye=on(ye,ke,e);return C&&mi(),ye}function fe(ye){let Tt=$s(ye.label?ur(ye.label):void 0);Tt>0?as(Tt,ye):ic(ye)}function we(ye){if(C){let Tt=$s(ye.label&&ur(ye.label));if(Tt>0)return Xs(Tt,ye)}return on(ye,ke,e)}function Be(ye){let Tt=xs(ye.label?ur(ye.label):void 0);Tt>0?as(Tt,ye):ic(ye)}function yt(ye){if(C){let Tt=xs(ye.label&&ur(ye.label));if(Tt>0)return Xs(Tt,ye)}return on(ye,ke,e)}function G(ye){h_(Ge(ye.expression,ke,ut),ye)}function vt(ye){return Jc(Ge(ye.expression,ke,ut),ye)}function wt(ye){W(ye)?(nr(M(E.checkDefined(Ge(ye.expression,ke,ut)))),An(ye.statement),br()):ic(Ge(ye,ke,Ai))}function Re(ye){if(W(ye.caseBlock)){let Tt=ye.caseBlock,Ln=Tt.clauses.length,Gi=js(),Os=M(E.checkDefined(Ge(ye.expression,ke,ut))),Bs=[],vc=-1;for(let tc=0;tc0)break;Go.push(t.createCaseClause(E.checkDefined(Ge(pc.expression,ke,ut)),[Xs(Bs[Fc],pc.expression)]))}else tc++}Go.length&&(ic(t.createSwitchStatement(Os,t.createCaseBlock(Go))),Ec+=Go.length,Go=[]),tc>0&&(Ec+=tc,tc=0)}vc>=0?as(Bs[vc]):as(Gi);for(let tc=0;tc=0;Ln--){let Gi=z[Ln];if(ec(Gi)){if(Gi.labelText===ye)return!0}else break}return!1}function xs(ye){if(z)if(ye)for(let Tt=z.length-1;Tt>=0;Tt--){let Ln=z[Tt];if(ec(Ln)&&Ln.labelText===ye)return Ln.breakLabel;if(fc(Ln)&&Ho(ye,Tt-1))return Ln.breakLabel}else for(let Tt=z.length-1;Tt>=0;Tt--){let Ln=z[Tt];if(fc(Ln))return Ln.breakLabel}return 0}function $s(ye){if(z)if(ye)for(let Tt=z.length-1;Tt>=0;Tt--){let Ln=z[Tt];if(gl(Ln)&&Ho(ye,Tt-1))return Ln.continueLabel}else for(let Tt=z.length-1;Tt>=0;Tt--){let Ln=z[Tt];if(gl(Ln))return Ln.continueLabel}return 0}function cl(ye){if(ye!==void 0&&ye>0){X===void 0&&(X=[]);let Tt=t.createNumericLiteral(-1);return X[ye]===void 0?X[ye]=[Tt]:X[ye].push(Tt),Tt}return t.createOmittedExpression()}function Do(ye){let Tt=t.createNumericLiteral(ye);return vF(Tt,3,bMe(ye)),Tt}function Xs(ye,Tt){return E.assertLessThan(0,ye,"Invalid label"),nt(t.createReturnStatement(t.createArrayLiteralExpression([Do(3),cl(ye)])),Tt)}function Jc(ye,Tt){return nt(t.createReturnStatement(t.createArrayLiteralExpression(ye?[Do(2),ye]:[Do(2)])),Tt)}function td(ye){return nt(t.createCallExpression(t.createPropertyAccessExpression(ae,"sent"),void 0,[]),ye)}function zc(){A(0)}function ic(ye){ye?A(1,[ye]):zc()}function Bo(ye,Tt,Ln){A(2,[ye,Tt],Ln)}function as(ye,Tt){A(3,[ye],Tt)}function Ht(ye,Tt,Ln){A(4,[ye,Tt],Ln)}function Jo(ye,Tt,Ln){A(5,[ye,Tt],Ln)}function nl(ye,Tt){A(7,[ye],Tt)}function qu(ye,Tt){A(6,[ye],Tt)}function h_(ye,Tt){A(8,[ye],Tt)}function Po(ye,Tt){A(9,[ye],Tt)}function Ic(){A(10)}function A(ye,Tt,Ln){ie===void 0&&(ie=[],B=[],Z=[]),V===void 0&&Fe(qe());let Gi=ie.length;ie[Gi]=ye,B[Gi]=Tt,Z[Gi]=Ln}function Pe(){_e=0,$=0,H=void 0,K=!1,oe=!1,Se=void 0,se=void 0,Y=void 0,ve=void 0,xe=void 0;let ye=He();return n().createGeneratorHelper($n(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,ae)],void 0,t.createBlock(ye,ye.length>0)),1048576))}function He(){if(ie){for(let ye=0;ye=0;Tt--){let Ln=xe[Tt];se=[t.createWithStatement(Ln.expression,t.createBlock(se))]}if(ve){let{startLabel:Tt,catchLabel:Ln,finallyLabel:Gi,endLabel:Os}=ve;se.unshift(t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createPropertyAccessExpression(ae,"trys"),"push"),void 0,[t.createArrayLiteralExpression([cl(Tt),cl(Ln),cl(Gi),cl(Os)])]))),ve=void 0}ye&&se.push(t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(ae,"label"),t.createNumericLiteral($+1))))}Se.push(t.createCaseClause(t.createNumericLiteral($),se||[])),se=void 0}function Tr(ye){if(V)for(let Tt=0;Ttn.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(ur(Fe))),qe),n.createVoidZero())));_n(j,Ge(D.externalHelpersImportDeclaration,H,Ai)),Nr(j,Dn(W.statements,H,Ai,ee)),$(j,!1),Am(j,o());let ue=n.updateSourceFile(W,nt(n.createNodeArray(j),W.statements));return oh(ue,e.readEmitHelpers()),ue}function ie(W){let j=n.createIdentifier("define"),ce=D8(n,W,g,u),ee=dp(W)&&W,{aliasedModuleNames:ue,unaliasedModuleNames:M,importAliasNames:De}=Z(W,!0),qe=n.updateSourceFile(W,nt(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(j,void 0,[...ce?[ce]:[],n.createArrayLiteralExpression(ee?Ve:[n.createStringLiteral("require"),n.createStringLiteral("exports"),...ue,...M]),ee?ee.statements.length?ee.statements[0].expression:n.createObjectLiteralExpression():n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...De],void 0,_e(W))]))]),W.statements));return oh(qe,e.readEmitHelpers()),qe}function B(W){let{aliasedModuleNames:j,unaliasedModuleNames:ce,importAliasNames:ee}=Z(W,!1),ue=D8(n,W,g,u),M=n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"factory")],void 0,nt(n.createBlock([n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("module"),"object"),n.createTypeCheck(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),"object")),n.createBlock([n.createVariableStatement(void 0,[n.createVariableDeclaration("v",void 0,void 0,n.createCallExpression(n.createIdentifier("factory"),void 0,[n.createIdentifier("require"),n.createIdentifier("exports")]))]),$n(n.createIfStatement(n.createStrictInequality(n.createIdentifier("v"),n.createIdentifier("undefined")),n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),n.createIdentifier("v")))),1)]),n.createIfStatement(n.createLogicalAnd(n.createTypeCheck(n.createIdentifier("define"),"function"),n.createPropertyAccessExpression(n.createIdentifier("define"),"amd")),n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("define"),void 0,[...ue?[ue]:[],n.createArrayLiteralExpression([n.createStringLiteral("require"),n.createStringLiteral("exports"),...j,...ce]),n.createIdentifier("factory")]))])))],!0),void 0)),De=n.updateSourceFile(W,nt(n.createNodeArray([n.createExpressionStatement(n.createCallExpression(M,void 0,[n.createFunctionExpression(void 0,void 0,void 0,void 0,[n.createParameterDeclaration(void 0,void 0,"require"),n.createParameterDeclaration(void 0,void 0,"exports"),...ee],void 0,_e(W))]))]),W.statements));return oh(De,e.readEmitHelpers()),De}function Z(W,j){let ce=[],ee=[],ue=[];for(let M of W.amdDependencies)M.name?(ce.push(n.createStringLiteral(M.path)),ue.push(n.createParameterDeclaration(void 0,void 0,M.name))):ee.push(n.createStringLiteral(M.path));for(let M of D.externalImports){let De=tT(n,M,w,g,f,u),qe=LC(n,M,w);De&&(j&&qe?($n(qe,8),ce.push(De),ue.push(n.createParameterDeclaration(void 0,void 0,qe))):ee.push(De))}return{aliasedModuleNames:ce,unaliasedModuleNames:ee,importAliasNames:ue}}function ae(W){if(Kl(W)||Kc(W)||!tT(n,W,w,g,f,u))return;let j=LC(n,W,w),ce=Hi(W,j);if(ce!==j)return n.createExpressionStatement(n.createAssignment(j,ce))}function _e(W){s();let j=[],ce=n.copyPrologue(W.statements,j,!u.noImplicitUseStrict,H);X()&&_n(j,fe()),bn(D.exportedNames)&&_n(j,n.createExpressionStatement(Fu(D.exportedNames,(ue,M)=>n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.createIdentifier(ur(M))),ue),n.createVoidZero()))),_n(j,Ge(D.externalHelpersImportDeclaration,H,Ai)),y===2&&Nr(j,Ri(D.externalImports,ae)),Nr(j,Dn(W.statements,H,Ai,ce)),$(j,!0),Am(j,o());let ee=n.createBlock(j,!0);return z&&Bx(ee,r2e),ee}function $(W,j){if(D.exportEquals){let ce=Ge(D.exportEquals.expression,Se,ut);if(ce)if(j){let ee=n.createReturnStatement(ce);nt(ee,D.exportEquals),$n(ee,3840),W.push(ee)}else{let ee=n.createExpressionStatement(n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("module"),"exports"),ce));nt(ee,D.exportEquals),$n(ee,3072),W.push(ee)}}}function H(W){switch(W.kind){case 272:return Ye(W);case 271:return An(W);case 278:return Ot(W);case 277:return Sn(W);default:return K(W)}}function K(W){switch(W.kind){case 243:return Fi(W);case 262:return Cn(W);case 263:return Kn(W);case 248:return xe(W,!0);case 249:return Me(W);case 250:return ke(W);case 246:return he(W);case 247:return be(W);case 256:return _t(W);case 254:return mt(W);case 245:return me(W);case 255:return Oe(W);case 269:return Qe(W);case 296:return at(W);case 297:return ht(W);case 258:return Je(W);case 299:return lt(W);case 241:return Jt(W);default:return Se(W)}}function oe(W,j){if(!(W.transformFlags&276828160))return W;switch(W.kind){case 248:return xe(W,!1);case 244:return Gt(W);case 217:return Tn(W,j);case 360:return Un(W,j);case 213:if(ef(W)&&w.impliedNodeFormat===void 0)return zt(W);break;case 226:if(Qh(W))return ve(W,j);break;case 224:case 225:return cn(W,j)}return on(W,Se,e)}function Se(W){return oe(W,!1)}function se(W){return oe(W,!0)}function Y(W){if(xa(W))for(let j of W.properties)switch(j.kind){case 303:if(Y(j.initializer))return!0;break;case 304:if(Y(j.name))return!0;break;case 305:if(Y(j.expression))return!0;break;case 174:case 177:case 178:return!1;default:E.assertNever(j,"Unhandled object member kind")}else if(Vu(W)){for(let j of W.elements)if(qd(j)){if(Y(j.expression))return!0}else if(Y(j))return!0}else if(Ie(W))return bn(ln(W))>(fO(W)?1:0);return!1}function ve(W,j){return Y(W.left)?Q2(W,Se,e,0,!j,Wi):on(W,Se,e)}function xe(W,j){if(j&&W.initializer&&Tl(W.initializer)&&!(W.initializer.flags&7)){let ce=Ce(void 0,W.initializer,!1);if(ce){let ee=[],ue=Ge(W.initializer,se,Tl),M=n.createVariableStatement(void 0,ue);ee.push(M),Nr(ee,ce);let De=Ge(W.condition,Se,ut),qe=Ge(W.incrementor,se,ut),Fe=Ku(W.statement,j?K:Se,e);return ee.push(n.updateForStatement(W,void 0,De,qe,Fe)),ee}}return n.updateForStatement(W,Ge(W.initializer,se,zf),Ge(W.condition,Se,ut),Ge(W.incrementor,se,ut),Ku(W.statement,j?K:Se,e))}function Me(W){if(Tl(W.initializer)&&!(W.initializer.flags&7)){let j=Ce(void 0,W.initializer,!0);if(ft(j)){let ce=Ge(W.initializer,se,zf),ee=Ge(W.expression,Se,ut),ue=Ku(W.statement,K,e),M=Ds(ue)?n.updateBlock(ue,[...j,...ue.statements]):n.createBlock([...j,ue],!0);return n.updateForInStatement(W,ce,ee,M)}}return n.updateForInStatement(W,Ge(W.initializer,se,zf),Ge(W.expression,Se,ut),Ku(W.statement,K,e))}function ke(W){if(Tl(W.initializer)&&!(W.initializer.flags&7)){let j=Ce(void 0,W.initializer,!0),ce=Ge(W.initializer,se,zf),ee=Ge(W.expression,Se,ut),ue=Ku(W.statement,K,e);return ft(j)&&(ue=Ds(ue)?n.updateBlock(ue,[...j,...ue.statements]):n.createBlock([...j,ue],!0)),n.updateForOfStatement(W,W.awaitModifier,ce,ee,ue)}return n.updateForOfStatement(W,W.awaitModifier,Ge(W.initializer,se,zf),Ge(W.expression,Se,ut),Ku(W.statement,K,e))}function he(W){return n.updateDoStatement(W,Ku(W.statement,K,e),Ge(W.expression,Se,ut))}function be(W){return n.updateWhileStatement(W,Ge(W.expression,Se,ut),Ku(W.statement,K,e))}function _t(W){return n.updateLabeledStatement(W,W.label,E.checkDefined(Ge(W.statement,K,Ai,n.liftToBlock)))}function mt(W){return n.updateWithStatement(W,Ge(W.expression,Se,ut),E.checkDefined(Ge(W.statement,K,Ai,n.liftToBlock)))}function me(W){return n.updateIfStatement(W,Ge(W.expression,Se,ut),E.checkDefined(Ge(W.thenStatement,K,Ai,n.liftToBlock)),Ge(W.elseStatement,K,Ai,n.liftToBlock))}function Oe(W){return n.updateSwitchStatement(W,Ge(W.expression,Se,ut),E.checkDefined(Ge(W.caseBlock,K,t3)))}function Qe(W){return n.updateCaseBlock(W,Dn(W.clauses,K,M7))}function at(W){return n.updateCaseClause(W,Ge(W.expression,Se,ut),Dn(W.statements,K,Ai))}function ht(W){return on(W,K,e)}function Je(W){return on(W,K,e)}function lt(W){return n.updateCatchClause(W,W.variableDeclaration,E.checkDefined(Ge(W.block,K,Ds)))}function Jt(W){return W=on(W,K,e),W}function Gt(W){return n.updateExpressionStatement(W,Ge(W.expression,se,ut))}function Tn(W,j){return n.updateParenthesizedExpression(W,Ge(W.expression,j?se:Se,ut))}function Un(W,j){return n.updatePartiallyEmittedExpression(W,Ge(W.expression,j?se:Se,ut))}function cn(W,j){if((W.operator===46||W.operator===47)&&Ie(W.operand)&&!Lo(W.operand)&&!uh(W.operand)&&!Uz(W.operand)){let ce=ln(W.operand);if(ce){let ee,ue=Ge(W.operand,Se,ut);x1(W)?ue=n.updatePrefixUnaryExpression(W,ue):(ue=n.updatePostfixUnaryExpression(W,ue),j||(ee=n.createTempVariable(c),ue=n.createAssignment(ee,ue),nt(ue,W)),ue=n.createComma(ue,n.cloneNode(W.operand)),nt(ue,W));for(let M of ce)O[Va(ue)]=!0,ue=Be(M,ue),nt(ue,W);return ee&&(O[Va(ue)]=!0,ue=n.createComma(ue,ee),nt(ue,W)),ue}}return on(W,Se,e)}function zt(W){if(y===0&&p>=7)return on(W,Se,e);let j=tT(n,W,w,g,f,u),ce=Ge(Pl(W.arguments),Se,ut),ee=j&&(!ce||!ca(ce)||ce.text!==j.text)?j:ce,ue=!!(W.transformFlags&16384);switch(u.module){case 2:return Lr(ee,ue);case 3:return Ft(ee??n.createVoidZero(),ue);case 1:default:return ji(ee)}}function Ft(W,j){if(z=!0,ub(W)){let ce=Lo(W)?W:ca(W)?n.createStringLiteralFromNode(W):$n(nt(n.cloneNode(W),W),3072);return n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,ji(W),void 0,Lr(ce,j))}else{let ce=n.createTempVariable(c);return n.createComma(n.createAssignment(ce,W),n.createConditionalExpression(n.createIdentifier("__syncRequire"),void 0,ji(ce,!0),void 0,Lr(ce,j)))}}function Lr(W,j){let ce=n.createUniqueName("resolve"),ee=n.createUniqueName("reject"),ue=[n.createParameterDeclaration(void 0,void 0,ce),n.createParameterDeclaration(void 0,void 0,ee)],M=n.createBlock([n.createExpressionStatement(n.createCallExpression(n.createIdentifier("require"),void 0,[n.createArrayLiteralExpression([W||n.createOmittedExpression()]),ce,ee]))]),De;p>=2?De=n.createArrowFunction(void 0,void 0,ue,void 0,void 0,M):(De=n.createFunctionExpression(void 0,void 0,void 0,void 0,ue,void 0,M),j&&$n(De,16));let qe=n.createNewExpression(n.createIdentifier("Promise"),void 0,[De]);return Om(u)?n.createCallExpression(n.createPropertyAccessExpression(qe,n.createIdentifier("then")),void 0,[i().createImportStarCallbackHelper()]):qe}function ji(W,j){let ce=W&&!Xd(W)&&!j,ee=n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Promise"),"resolve"),void 0,ce?p>=2?[n.createTemplateExpression(n.createTemplateHead(""),[n.createTemplateSpan(W,n.createTemplateTail(""))])]:[n.createCallExpression(n.createPropertyAccessExpression(n.createStringLiteral(""),"concat"),void 0,[W])]:[]),ue=n.createCallExpression(n.createIdentifier("require"),void 0,ce?[n.createIdentifier("s")]:W?[W]:[]);Om(u)&&(ue=i().createImportStarHelper(ue));let M=ce?[n.createParameterDeclaration(void 0,void 0,"s")]:[],De;return p>=2?De=n.createArrowFunction(void 0,void 0,M,void 0,void 0,ue):De=n.createFunctionExpression(void 0,void 0,void 0,void 0,M,void 0,n.createBlock([n.createReturnStatement(ue)])),n.createCallExpression(n.createPropertyAccessExpression(ee,"then"),void 0,[De])}function ii(W,j){return!Om(u)||Wp(W)&2?j:sse(W)?i().createImportStarHelper(j):j}function Hi(W,j){return!Om(u)||Wp(W)&2?j:ZO(W)?i().createImportStarHelper(j):xU(W)?i().createImportDefaultHelper(j):j}function Ye(W){let j,ce=Yk(W);if(y!==2)if(W.importClause){let ee=[];ce&&!Sx(W)?ee.push(n.createVariableDeclaration(n.cloneNode(ce.name),void 0,void 0,Hi(W,fn(W)))):(ee.push(n.createVariableDeclaration(n.getGeneratedNameForNode(W),void 0,void 0,Hi(W,fn(W)))),ce&&Sx(W)&&ee.push(n.createVariableDeclaration(n.cloneNode(ce.name),void 0,void 0,n.getGeneratedNameForNode(W)))),j=_n(j,or(nt(n.createVariableStatement(void 0,n.createVariableDeclarationList(ee,p>=2?2:0)),W),W))}else return or(nt(n.createExpressionStatement(fn(W)),W),W);else ce&&Sx(W)&&(j=_n(j,n.createVariableStatement(void 0,n.createVariableDeclarationList([or(nt(n.createVariableDeclaration(n.cloneNode(ce.name),void 0,void 0,n.getGeneratedNameForNode(W)),W),W)],p>=2?2:0))));return j=Ki(j,W),Sm(j)}function fn(W){let j=tT(n,W,w,g,f,u),ce=[];return j&&ce.push(j),n.createCallExpression(n.createIdentifier("require"),void 0,ce)}function An(W){E.assert(l1(W),"import= for internal module references should be handled in an earlier transformer.");let j;return y!==2?Mr(W,32)?j=_n(j,or(nt(n.createExpressionStatement(Be(W.name,fn(W))),W),W)):j=_n(j,or(nt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(n.cloneNode(W.name),void 0,void 0,fn(W))],p>=2?2:0)),W),W)):Mr(W,32)&&(j=_n(j,or(nt(n.createExpressionStatement(Be(n.getExportName(W),n.getLocalName(W))),W),W))),j=na(j,W),Sm(j)}function Ot(W){if(!W.moduleSpecifier)return;let j=n.getGeneratedNameForNode(W);if(W.exportClause&&kp(W.exportClause)){let ce=[];y!==2&&ce.push(or(nt(n.createVariableStatement(void 0,n.createVariableDeclarationList([n.createVariableDeclaration(j,void 0,void 0,fn(W))])),W),W));for(let ee of W.exportClause.elements)if(p===0)ce.push(or(nt(n.createExpressionStatement(i().createCreateBindingHelper(j,n.createStringLiteralFromNode(ee.propertyName||ee.name),ee.propertyName?n.createStringLiteralFromNode(ee.name):void 0)),ee),ee));else{let ue=!!Om(u)&&!(Wp(W)&2)&&ur(ee.propertyName||ee.name)==="default",M=n.createPropertyAccessExpression(ue?i().createImportDefaultHelper(j):j,ee.propertyName||ee.name);ce.push(or(nt(n.createExpressionStatement(Be(n.getExportName(ee),M,void 0,!0)),ee),ee))}return Sm(ce)}else if(W.exportClause){let ce=[];return ce.push(or(nt(n.createExpressionStatement(Be(n.cloneNode(W.exportClause.name),ii(W,y!==2?fn(W):H7(W)?j:n.createIdentifier(ur(W.exportClause.name))))),W),W)),Sm(ce)}else return or(nt(n.createExpressionStatement(i().createExportStarHelper(y!==2?fn(W):j)),W),W)}function Sn(W){if(!W.isExportEquals)return we(n.createIdentifier("default"),Ge(W.expression,Se,ut),W,!0)}function Cn(W){let j;return Mr(W,32)?j=_n(j,or(nt(n.createFunctionDeclaration(Dn(W.modifiers,yt,ra),W.asteriskToken,n.getDeclarationName(W,!0,!0),void 0,Dn(W.parameters,Se,ms),void 0,on(W.body,Se,e)),W),W)):j=_n(j,on(W,Se,e)),j=it(j,W),Sm(j)}function Kn(W){let j;return Mr(W,32)?j=_n(j,or(nt(n.createClassDeclaration(Dn(W.modifiers,yt,Mo),n.getDeclarationName(W,!0,!0),void 0,Dn(W.heritageClauses,Se,rf),Dn(W.members,Se,Ml)),W),W)):j=_n(j,on(W,Se,e)),j=it(j,W),Sm(j)}function Fi(W){let j,ce,ee;if(Mr(W,32)){let ue,M=!1;for(let De of W.declarationList.declarations)if(Ie(De.name)&&uh(De.name))if(ue||(ue=Dn(W.modifiers,yt,ra)),De.initializer){let qe=n.updateVariableDeclaration(De,De.name,void 0,void 0,Be(De.name,Ge(De.initializer,Se,ut)));ce=_n(ce,qe)}else ce=_n(ce,De);else if(De.initializer)if(!Ms(De.name)&&(Co(De.initializer)||uo(De.initializer)||Bl(De.initializer))){let qe=n.createAssignment(nt(n.createPropertyAccessExpression(n.createIdentifier("exports"),De.name),De.name),n.createIdentifier(gp(De.name))),Fe=n.createVariableDeclaration(De.name,De.exclamationToken,De.type,Ge(De.initializer,Se,ut));ce=_n(ce,Fe),ee=_n(ee,qe),M=!0}else ee=_n(ee,Ii(De));if(ce&&(j=_n(j,n.updateVariableStatement(W,ue,n.updateVariableDeclarationList(W.declarationList,ce)))),ee){let De=or(nt(n.createExpressionStatement(n.inlineExpressions(ee)),W),W);M&&o8(De),j=_n(j,De)}}else j=_n(j,on(W,Se,e));return j=Fs(j,W),Sm(j)}function Wi(W,j,ce){let ee=ln(W);if(ee){let ue=fO(W)?j:n.createAssignment(W,j);for(let M of ee)$n(ue,8),ue=Be(M,ue,ce);return ue}return n.createAssignment(W,j)}function Ii(W){return Ms(W.name)?Q2(Ge(W,Se,Jw),Se,e,0,!1,Wi):n.createAssignment(nt(n.createPropertyAccessExpression(n.createIdentifier("exports"),W.name),W.name),W.initializer?Ge(W.initializer,Se,ut):n.createVoidZero())}function Ki(W,j){if(D.exportEquals)return W;let ce=j.importClause;if(!ce)return W;let ee=new cT;ce.name&&(W=dt(W,ee,ce));let ue=ce.namedBindings;if(ue)switch(ue.kind){case 274:W=dt(W,ee,ue);break;case 275:for(let M of ue.elements)W=dt(W,ee,M,!0);break}return W}function na(W,j){return D.exportEquals?W:dt(W,new cT,j)}function Fs(W,j){return Ce(W,j.declarationList,!1)}function Ce(W,j,ce){if(D.exportEquals)return W;for(let ee of j.declarations)W=Ue(W,ee,ce);return W}function Ue(W,j,ce){if(D.exportEquals)return W;if(Ms(j.name))for(let ee of j.name.elements)xl(ee)||(W=Ue(W,ee,ce));else!Lo(j.name)&&(!Ni(j)||j.initializer||ce)&&(W=dt(W,new cT,j));return W}function it(W,j){if(D.exportEquals)return W;let ce=new cT;if(Mr(j,32)){let ee=Mr(j,2048)?n.createIdentifier("default"):n.getDeclarationName(j);W=gt(W,ce,ee,n.getLocalName(j),j)}return j.name&&(W=dt(W,ce,j)),W}function dt(W,j,ce,ee){let ue=n.getDeclarationName(ce),M=D.exportSpecifiers.get(ue);if(M)for(let De of M)W=gt(W,j,De.name,ue,De.name,void 0,ee);return W}function gt(W,j,ce,ee,ue,M,De){return j.has(ce)||(j.set(ce,!0),W=_n(W,we(ce,ee,ue,M,De))),W}function fe(){let W;return p===0?W=n.createExpressionStatement(Be(n.createIdentifier("__esModule"),n.createTrue())):W=n.createExpressionStatement(n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteral("__esModule"),n.createObjectLiteralExpression([n.createPropertyAssignment("value",n.createTrue())])])),$n(W,2097152),W}function we(W,j,ce,ee,ue){let M=nt(n.createExpressionStatement(Be(W,j,void 0,ue)),ce);return Uu(M),ee||$n(M,3072),M}function Be(W,j,ce,ee){return nt(ee&&p!==0?n.createCallExpression(n.createPropertyAccessExpression(n.createIdentifier("Object"),"defineProperty"),void 0,[n.createIdentifier("exports"),n.createStringLiteralFromNode(W),n.createObjectLiteralExpression([n.createPropertyAssignment("enumerable",n.createTrue()),n.createPropertyAssignment("get",n.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,n.createBlock([n.createReturnStatement(j)])))])]):n.createAssignment(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(W)),j),ce)}function yt(W){switch(W.kind){case 95:case 90:return}return W}function G(W,j,ce){j.kind===312?(w=j,D=C[_u(w)],x(W,j,ce),w=void 0,D=void 0):x(W,j,ce)}function vt(W,j){return j=S(W,j),j.id&&O[j.id]?j:W===1?Re(j):sf(j)?wt(j):j}function wt(W){let j=W.name,ce=Zt(j);if(ce!==j){if(W.objectAssignmentInitializer){let ee=n.createAssignment(ce,W.objectAssignmentInitializer);return nt(n.createPropertyAssignment(j,ee),W)}return nt(n.createPropertyAssignment(j,ce),W)}return W}function Re(W){switch(W.kind){case 80:return Zt(W);case 213:return ot(W);case 215:return Dt(W);case 226:return tn(W)}return W}function ot(W){if(Ie(W.expression)){let j=Zt(W.expression);if(O[Va(j)]=!0,!Ie(j)&&!(Sa(W.expression)&8192))return Rx(n.updateCallExpression(W,j,void 0,W.arguments),16)}return W}function Dt(W){if(Ie(W.tag)){let j=Zt(W.tag);if(O[Va(j)]=!0,!Ie(j)&&!(Sa(W.tag)&8192))return Rx(n.updateTaggedTemplateExpression(W,j,void 0,W.template),16)}return W}function Zt(W){var j,ce;if(Sa(W)&8192){let ee=E8(w);return ee?n.createPropertyAccessExpression(ee,W):W}else if(!(Lo(W)&&!(W.emitNode.autoGenerate.flags&64))&&!uh(W)){let ee=f.getReferencedExportContainer(W,fO(W));if(ee&&ee.kind===312)return nt(n.createPropertyAccessExpression(n.createIdentifier("exports"),n.cloneNode(W)),W);let ue=f.getReferencedImportDeclaration(W);if(ue){if(Rm(ue))return nt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(ue.parent),n.createIdentifier("default")),W);if(E_(ue)){let M=ue.propertyName||ue.name;return nt(n.createPropertyAccessExpression(n.getGeneratedNameForNode(((ce=(j=ue.parent)==null?void 0:j.parent)==null?void 0:ce.parent)||ue),n.cloneNode(M)),W)}}}return W}function tn(W){if(Xh(W.operatorToken.kind)&&Ie(W.left)&&(!Lo(W.left)||MP(W.left))&&!uh(W.left)){let j=ln(W.left);if(j){let ce=W;for(let ee of j)O[Va(ce)]=!0,ce=Be(ee,ce,W);return ce}}return W}function ln(W){if(Lo(W)){if(MP(W)){let j=D?.exportSpecifiers.get(W);if(j){let ce=[];for(let ee of j)ce.push(ee.name);return ce}}}else{let j=f.getReferencedImportDeclaration(W);if(j)return D?.exportedBindings[_u(j)];let ce=new Set,ee=f.getReferencedValueDeclarations(W);if(ee){for(let ue of ee){let M=D?.exportedBindings[_u(ue)];if(M)for(let De of M)ce.add(De)}if(ce.size)return hs(ce)}}}}var r2e,xMe=ze({"src/compiler/transformers/module/module.ts"(){"use strict";Rs(),r2e={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function Rse(e){let{factory:t,startLexicalEnvironment:n,endLexicalEnvironment:i,hoistVariableDeclaration:s}=e,o=e.getCompilerOptions(),c=e.getEmitResolver(),u=e.getEmitHost(),f=e.onSubstituteNode,g=e.onEmitNode;e.onSubstituteNode=Be,e.onEmitNode=we,e.enableSubstitution(80),e.enableSubstitution(304),e.enableSubstitution(226),e.enableSubstitution(236),e.enableEmitNotification(312);let p=[],y=[],S=[],x=[],C,w,D,O,z,V,X;return Zp(e,J);function J(W){if(W.isDeclarationFile||!(vx(W,o)||W.transformFlags&8388608))return W;let j=_u(W);C=W,V=W,w=p[j]=TU(e,W),D=t.createUniqueName("exports"),y[j]=D,O=x[j]=t.createUniqueName("context");let ce=ie(w.externalImports),ee=B(W,ce),ue=t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,D),t.createParameterDeclaration(void 0,void 0,O)],void 0,ee),M=D8(t,W,u,o),De=t.createArrayLiteralExpression(Kt(ce,Fe=>Fe.name)),qe=$n(t.updateSourceFile(W,nt(t.createNodeArray([t.createExpressionStatement(t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("System"),"register"),void 0,M?[M,De,ue]:[De,ue]))]),W.statements)),2048);return lo(o)||nre(qe,ee,Fe=>!Fe.scoped),X&&(S[j]=X,X=void 0),C=void 0,w=void 0,D=void 0,O=void 0,z=void 0,V=void 0,qe}function ie(W){let j=new Map,ce=[];for(let ee of W){let ue=tT(t,ee,C,u,c,o);if(ue){let M=ue.text,De=j.get(M);De!==void 0?ce[De].externalImports.push(ee):(j.set(M,ce.length),ce.push({name:ue,externalImports:[ee]}))}}return ce}function B(W,j){let ce=[];n();let ee=bp(o,"alwaysStrict")||!o.noImplicitUseStrict&&Bc(C),ue=t.copyPrologue(W.statements,ce,ee,$);ce.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration("__moduleName",void 0,void 0,t.createLogicalAnd(O,t.createPropertyAccessExpression(O,"id")))]))),Ge(w.externalHelpersImportDeclaration,$,Ai);let M=Dn(W.statements,$,Ai,ue);Nr(ce,z),Am(ce,i());let De=Z(ce),qe=W.transformFlags&2097152?t.createModifiersFromModifierFlags(1024):void 0,Fe=t.createObjectLiteralExpression([t.createPropertyAssignment("setters",_e(De,j)),t.createPropertyAssignment("execute",t.createFunctionExpression(qe,void 0,void 0,void 0,[],void 0,t.createBlock(M,!0)))],!0);return ce.push(t.createReturnStatement(Fe)),t.createBlock(ce,!0)}function Z(W){if(!w.hasExportStarsToExportValues)return;if(!w.exportedNames&&w.exportSpecifiers.size===0){let ue=!1;for(let M of w.externalImports)if(M.kind===278&&M.exportClause){ue=!0;break}if(!ue){let M=ae(void 0);return W.push(M),M.name}}let j=[];if(w.exportedNames)for(let ue of w.exportedNames)ue.escapedText!=="default"&&j.push(t.createPropertyAssignment(t.createStringLiteralFromNode(ue),t.createTrue()));let ce=t.createUniqueName("exportedNames");W.push(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ce,void 0,void 0,t.createObjectLiteralExpression(j,!0))])));let ee=ae(ce);return W.push(ee),ee.name}function ae(W){let j=t.createUniqueName("exportStar"),ce=t.createIdentifier("m"),ee=t.createIdentifier("n"),ue=t.createIdentifier("exports"),M=t.createStrictInequality(ee,t.createStringLiteral("default"));return W&&(M=t.createLogicalAnd(M,t.createLogicalNot(t.createCallExpression(t.createPropertyAccessExpression(W,"hasOwnProperty"),void 0,[ee])))),t.createFunctionDeclaration(void 0,void 0,j,void 0,[t.createParameterDeclaration(void 0,void 0,ce)],void 0,t.createBlock([t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(ue,void 0,void 0,t.createObjectLiteralExpression([]))])),t.createForInStatement(t.createVariableDeclarationList([t.createVariableDeclaration(ee)]),ce,t.createBlock([$n(t.createIfStatement(M,t.createExpressionStatement(t.createAssignment(t.createElementAccessExpression(ue,ee),t.createElementAccessExpression(ce,ee)))),1)])),t.createExpressionStatement(t.createCallExpression(D,void 0,[ue]))],!0))}function _e(W,j){let ce=[];for(let ee of j){let ue=Qt(ee.externalImports,qe=>LC(t,qe,C)),M=ue?t.getGeneratedNameForNode(ue):t.createUniqueName(""),De=[];for(let qe of ee.externalImports){let Fe=LC(t,qe,C);switch(qe.kind){case 272:if(!qe.importClause)break;case 271:E.assert(Fe!==void 0),De.push(t.createExpressionStatement(t.createAssignment(Fe,M))),Mr(qe,32)&&De.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(ur(Fe)),M])));break;case 278:if(E.assert(Fe!==void 0),qe.exportClause)if(kp(qe.exportClause)){let St=[];for(let Mt of qe.exportClause.elements)St.push(t.createPropertyAssignment(t.createStringLiteral(ur(Mt.name)),t.createElementAccessExpression(M,t.createStringLiteral(ur(Mt.propertyName||Mt.name)))));De.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createObjectLiteralExpression(St,!0)])))}else De.push(t.createExpressionStatement(t.createCallExpression(D,void 0,[t.createStringLiteral(ur(qe.exportClause.name)),M])));else De.push(t.createExpressionStatement(t.createCallExpression(W,void 0,[M])));break}}ce.push(t.createFunctionExpression(void 0,void 0,void 0,void 0,[t.createParameterDeclaration(void 0,void 0,M)],void 0,t.createBlock(De,!0)))}return t.createArrayLiteralExpression(ce,!0)}function $(W){switch(W.kind){case 272:return H(W);case 271:return oe(W);case 278:return K(W);case 277:return Se(W);default:return Gt(W)}}function H(W){let j;return W.importClause&&s(LC(t,W,C)),Sm(mt(j,W))}function K(W){E.assertIsDefined(W)}function oe(W){E.assert(l1(W),"import= for internal module references should be handled in an earlier transformer.");let j;return s(LC(t,W,C)),Sm(me(j,W))}function Se(W){if(W.isExportEquals)return;let j=Ge(W.expression,Ii,ut);return lt(t.createIdentifier("default"),j,!0)}function se(W){Mr(W,32)?z=_n(z,t.updateFunctionDeclaration(W,Dn(W.modifiers,fe,Mo),W.asteriskToken,t.getDeclarationName(W,!0,!0),void 0,Dn(W.parameters,Ii,ms),void 0,Ge(W.body,Ii,Ds))):z=_n(z,on(W,Ii,e)),z=at(z,W)}function Y(W){let j,ce=t.getLocalName(W);return s(ce),j=_n(j,nt(t.createExpressionStatement(t.createAssignment(ce,nt(t.createClassExpression(Dn(W.modifiers,fe,Mo),W.name,void 0,Dn(W.heritageClauses,Ii,rf),Dn(W.members,Ii,Ml)),W))),W)),j=at(j,W),Sm(j)}function ve(W){if(!Me(W.declarationList))return Ge(W,Ii,Ai);let j;if(ew(W.declarationList)||KP(W.declarationList)){let ce=Dn(W.modifiers,fe,Mo),ee=[];for(let M of W.declarationList.declarations)ee.push(t.updateVariableDeclaration(M,t.getGeneratedNameForNode(M.name),void 0,void 0,ke(M,!1)));let ue=t.updateVariableDeclarationList(W.declarationList,ee);j=_n(j,t.updateVariableStatement(W,ce,ue))}else{let ce,ee=Mr(W,32);for(let ue of W.declarationList.declarations)ue.initializer?ce=_n(ce,ke(ue,ee)):xe(ue);ce&&(j=_n(j,nt(t.createExpressionStatement(t.inlineExpressions(ce)),W)))}return j=Oe(j,W,!1),Sm(j)}function xe(W){if(Ms(W.name))for(let j of W.name.elements)xl(j)||xe(j);else s(t.cloneNode(W.name))}function Me(W){return(Sa(W)&4194304)===0&&(V.kind===312||(cc(W).flags&7)===0)}function ke(W,j){let ce=j?he:be;return Ms(W.name)?Q2(W,Ii,e,0,!1,ce):W.initializer?ce(W.name,Ge(W.initializer,Ii,ut)):W.name}function he(W,j,ce){return _t(W,j,ce,!0)}function be(W,j,ce){return _t(W,j,ce,!1)}function _t(W,j,ce,ee){return s(t.cloneNode(W)),ee?Jt(W,tn(nt(t.createAssignment(W,j),ce))):tn(nt(t.createAssignment(W,j),ce))}function mt(W,j){if(w.exportEquals)return W;let ce=j.importClause;if(!ce)return W;ce.name&&(W=ht(W,ce));let ee=ce.namedBindings;if(ee)switch(ee.kind){case 274:W=ht(W,ee);break;case 275:for(let ue of ee.elements)W=ht(W,ue);break}return W}function me(W,j){return w.exportEquals?W:ht(W,j)}function Oe(W,j,ce){if(w.exportEquals)return W;for(let ee of j.declarationList.declarations)(ee.initializer||ce)&&(W=Qe(W,ee,ce));return W}function Qe(W,j,ce){if(w.exportEquals)return W;if(Ms(j.name))for(let ee of j.name.elements)xl(ee)||(W=Qe(W,ee,ce));else if(!Lo(j.name)){let ee;ce&&(W=Je(W,j.name,t.getLocalName(j)),ee=ur(j.name)),W=ht(W,j,ee)}return W}function at(W,j){if(w.exportEquals)return W;let ce;if(Mr(j,32)){let ee=Mr(j,2048)?t.createStringLiteral("default"):j.name;W=Je(W,ee,t.getLocalName(j)),ce=gp(ee)}return j.name&&(W=ht(W,j,ce)),W}function ht(W,j,ce){if(w.exportEquals)return W;let ee=t.getDeclarationName(j),ue=w.exportSpecifiers.get(ee);if(ue)for(let M of ue)M.name.escapedText!==ce&&(W=Je(W,M.name,ee));return W}function Je(W,j,ce,ee){return W=_n(W,lt(j,ce,ee)),W}function lt(W,j,ce){let ee=t.createExpressionStatement(Jt(W,j));return Uu(ee),ce||$n(ee,3072),ee}function Jt(W,j){let ce=Ie(W)?t.createStringLiteralFromNode(W):W;return $n(j,Sa(j)|3072),jc(t.createCallExpression(D,void 0,[ce,j]),j)}function Gt(W){switch(W.kind){case 243:return ve(W);case 262:return se(W);case 263:return Y(W);case 248:return Tn(W,!0);case 249:return Un(W);case 250:return cn(W);case 246:return Lr(W);case 247:return ji(W);case 256:return ii(W);case 254:return Hi(W);case 245:return Ye(W);case 255:return fn(W);case 269:return An(W);case 296:return Ot(W);case 297:return Sn(W);case 258:return Cn(W);case 299:return Kn(W);case 241:return Fi(W);default:return Ii(W)}}function Tn(W,j){let ce=V;return V=W,W=t.updateForStatement(W,Ge(W.initializer,j?Ft:Ki,zf),Ge(W.condition,Ii,ut),Ge(W.incrementor,Ki,ut),Ku(W.statement,j?Gt:Ii,e)),V=ce,W}function Un(W){let j=V;return V=W,W=t.updateForInStatement(W,Ft(W.initializer),Ge(W.expression,Ii,ut),Ku(W.statement,Gt,e)),V=j,W}function cn(W){let j=V;return V=W,W=t.updateForOfStatement(W,W.awaitModifier,Ft(W.initializer),Ge(W.expression,Ii,ut),Ku(W.statement,Gt,e)),V=j,W}function zt(W){return Tl(W)&&Me(W)}function Ft(W){if(zt(W)){let j;for(let ce of W.declarations)j=_n(j,ke(ce,!1)),ce.initializer||xe(ce);return j?t.inlineExpressions(j):t.createOmittedExpression()}else return Ge(W,Ki,zf)}function Lr(W){return t.updateDoStatement(W,Ku(W.statement,Gt,e),Ge(W.expression,Ii,ut))}function ji(W){return t.updateWhileStatement(W,Ge(W.expression,Ii,ut),Ku(W.statement,Gt,e))}function ii(W){return t.updateLabeledStatement(W,W.label,E.checkDefined(Ge(W.statement,Gt,Ai,t.liftToBlock)))}function Hi(W){return t.updateWithStatement(W,Ge(W.expression,Ii,ut),E.checkDefined(Ge(W.statement,Gt,Ai,t.liftToBlock)))}function Ye(W){return t.updateIfStatement(W,Ge(W.expression,Ii,ut),E.checkDefined(Ge(W.thenStatement,Gt,Ai,t.liftToBlock)),Ge(W.elseStatement,Gt,Ai,t.liftToBlock))}function fn(W){return t.updateSwitchStatement(W,Ge(W.expression,Ii,ut),E.checkDefined(Ge(W.caseBlock,Gt,t3)))}function An(W){let j=V;return V=W,W=t.updateCaseBlock(W,Dn(W.clauses,Gt,M7)),V=j,W}function Ot(W){return t.updateCaseClause(W,Ge(W.expression,Ii,ut),Dn(W.statements,Gt,Ai))}function Sn(W){return on(W,Gt,e)}function Cn(W){return on(W,Gt,e)}function Kn(W){let j=V;return V=W,W=t.updateCatchClause(W,W.variableDeclaration,E.checkDefined(Ge(W.block,Gt,Ds))),V=j,W}function Fi(W){let j=V;return V=W,W=on(W,Gt,e),V=j,W}function Wi(W,j){if(!(W.transformFlags&276828160))return W;switch(W.kind){case 248:return Tn(W,!1);case 244:return na(W);case 217:return Fs(W,j);case 360:return Ce(W,j);case 226:if(Qh(W))return it(W,j);break;case 213:if(ef(W))return Ue(W);break;case 224:case 225:return gt(W,j)}return on(W,Ii,e)}function Ii(W){return Wi(W,!1)}function Ki(W){return Wi(W,!0)}function na(W){return t.updateExpressionStatement(W,Ge(W.expression,Ki,ut))}function Fs(W,j){return t.updateParenthesizedExpression(W,Ge(W.expression,j?Ki:Ii,ut))}function Ce(W,j){return t.updatePartiallyEmittedExpression(W,Ge(W.expression,j?Ki:Ii,ut))}function Ue(W){let j=tT(t,W,C,u,c,o),ce=Ge(Pl(W.arguments),Ii,ut),ee=j&&(!ce||!ca(ce)||ce.text!==j.text)?j:ce;return t.createCallExpression(t.createPropertyAccessExpression(O,t.createIdentifier("import")),void 0,ee?[ee]:[])}function it(W,j){return dt(W.left)?Q2(W,Ii,e,0,!j):on(W,Ii,e)}function dt(W){if(pl(W,!0))return dt(W.left);if(qd(W))return dt(W.expression);if(xa(W))return ft(W.properties,dt);if(Vu(W))return ft(W.elements,dt);if(sf(W))return dt(W.name);if(el(W))return dt(W.initializer);if(Ie(W)){let j=c.getReferencedExportContainer(W);return j!==void 0&&j.kind===312}else return!1}function gt(W,j){if((W.operator===46||W.operator===47)&&Ie(W.operand)&&!Lo(W.operand)&&!uh(W.operand)&&!Uz(W.operand)){let ce=Dt(W.operand);if(ce){let ee,ue=Ge(W.operand,Ii,ut);x1(W)?ue=t.updatePrefixUnaryExpression(W,ue):(ue=t.updatePostfixUnaryExpression(W,ue),j||(ee=t.createTempVariable(s),ue=t.createAssignment(ee,ue),nt(ue,W)),ue=t.createComma(ue,t.cloneNode(W.operand)),nt(ue,W));for(let M of ce)ue=Jt(M,tn(ue));return ee&&(ue=t.createComma(ue,ee),nt(ue,W)),ue}}return on(W,Ii,e)}function fe(W){switch(W.kind){case 95:case 90:return}return W}function we(W,j,ce){if(j.kind===312){let ee=_u(j);C=j,w=p[ee],D=y[ee],X=S[ee],O=x[ee],X&&delete S[ee],g(W,j,ce),C=void 0,w=void 0,D=void 0,O=void 0,X=void 0}else g(W,j,ce)}function Be(W,j){return j=f(W,j),ln(j)?j:W===1?vt(j):W===4?yt(j):j}function yt(W){switch(W.kind){case 304:return G(W)}return W}function G(W){var j,ce;let ee=W.name;if(!Lo(ee)&&!uh(ee)){let ue=c.getReferencedImportDeclaration(ee);if(ue){if(Rm(ue))return nt(t.createPropertyAssignment(t.cloneNode(ee),t.createPropertyAccessExpression(t.getGeneratedNameForNode(ue.parent),t.createIdentifier("default"))),W);if(E_(ue))return nt(t.createPropertyAssignment(t.cloneNode(ee),t.createPropertyAccessExpression(t.getGeneratedNameForNode(((ce=(j=ue.parent)==null?void 0:j.parent)==null?void 0:ce.parent)||ue),t.cloneNode(ue.propertyName||ue.name))),W)}}return W}function vt(W){switch(W.kind){case 80:return wt(W);case 226:return Re(W);case 236:return ot(W)}return W}function wt(W){var j,ce;if(Sa(W)&8192){let ee=E8(C);return ee?t.createPropertyAccessExpression(ee,W):W}if(!Lo(W)&&!uh(W)){let ee=c.getReferencedImportDeclaration(W);if(ee){if(Rm(ee))return nt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(ee.parent),t.createIdentifier("default")),W);if(E_(ee))return nt(t.createPropertyAccessExpression(t.getGeneratedNameForNode(((ce=(j=ee.parent)==null?void 0:j.parent)==null?void 0:ce.parent)||ee),t.cloneNode(ee.propertyName||ee.name)),W)}}return W}function Re(W){if(Xh(W.operatorToken.kind)&&Ie(W.left)&&(!Lo(W.left)||MP(W.left))&&!uh(W.left)){let j=Dt(W.left);if(j){let ce=W;for(let ee of j)ce=Jt(ee,tn(ce));return ce}}return W}function ot(W){return Wk(W)?t.createPropertyAccessExpression(O,t.createIdentifier("meta")):W}function Dt(W){let j,ce=Zt(W);if(ce){let ee=c.getReferencedExportContainer(W,!1);ee&&ee.kind===312&&(j=_n(j,t.getDeclarationName(ce))),j=Nr(j,w?.exportedBindings[_u(ce)])}else if(Lo(W)&&MP(W)){let ee=w?.exportSpecifiers.get(W);if(ee){let ue=[];for(let M of ee)ue.push(M.name);return ue}}return j}function Zt(W){if(!Lo(W)){let j=c.getReferencedImportDeclaration(W);if(j)return j;let ce=c.getReferencedValueDeclaration(W);if(ce&&w?.exportedBindings[_u(ce)])return ce;let ee=c.getReferencedValueDeclarations(W);if(ee){for(let ue of ee)if(ue!==ce&&w?.exportedBindings[_u(ue)])return ue}return ce}}function tn(W){return X===void 0&&(X=[]),X[Va(W)]=!0,W}function ln(W){return X&&W.id&&X[W.id]}}var TMe=ze({"src/compiler/transformers/module/system.ts"(){"use strict";Rs()}});function LU(e){let{factory:t,getEmitHelperFactory:n}=e,i=e.getEmitHost(),s=e.getEmitResolver(),o=e.getCompilerOptions(),c=La(o),u=e.onEmitNode,f=e.onSubstituteNode;e.onEmitNode=X,e.onSubstituteNode=J,e.enableEmitNotification(312),e.enableSubstitution(80);let g,p,y;return Zp(e,S);function S(B){if(B.isDeclarationFile)return B;if(Bc(B)||pd(o)){p=B,y=void 0;let Z=x(B);return p=void 0,y&&(Z=t.updateSourceFile(Z,nt(t.createNodeArray(jJ(Z.statements.slice(),y)),Z.statements))),!Bc(B)||ft(Z.statements,zP)?Z:t.updateSourceFile(Z,nt(t.createNodeArray([...Z.statements,T8(t)]),Z.statements))}return B}function x(B){let Z=dW(t,n(),B,o);if(Z){let ae=[],_e=t.copyPrologue(B.statements,ae);return _n(ae,Z),Nr(ae,Dn(B.statements,C,Ai,_e)),t.updateSourceFile(B,nt(t.createNodeArray(ae),B.statements))}else return on(B,C,e)}function C(B){switch(B.kind){case 271:return Ql(o)>=100?D(B):void 0;case 277:return z(B);case 278:return V(B)}return B}function w(B){let Z=tT(t,B,E.checkDefined(p),i,s,o),ae=[];if(Z&&ae.push(Z),!y){let $=t.createUniqueName("_createRequire",48),H=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamedImports([t.createImportSpecifier(!1,t.createIdentifier("createRequire"),$)])),t.createStringLiteral("module"),void 0),K=t.createUniqueName("__require",48),oe=t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(K,void 0,void 0,t.createCallExpression(t.cloneNode($),void 0,[t.createPropertyAccessExpression(t.createMetaProperty(102,t.createIdentifier("meta")),t.createIdentifier("url"))]))],c>=2?2:0));y=[H,oe]}let _e=y[1].declarationList.declarations[0].name;return E.assertNode(_e,Ie),t.createCallExpression(t.cloneNode(_e),void 0,ae)}function D(B){E.assert(l1(B),"import= for internal module references should be handled in an earlier transformer.");let Z;return Z=_n(Z,or(nt(t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.cloneNode(B.name),void 0,void 0,w(B))],c>=2?2:0)),B),B)),Z=O(Z,B),Sm(Z)}function O(B,Z){return Mr(Z,32)&&(B=_n(B,t.createExportDeclaration(void 0,Z.isTypeOnly,t.createNamedExports([t.createExportSpecifier(!1,void 0,ur(Z.name))])))),B}function z(B){return B.isExportEquals?void 0:B}function V(B){if(o.module!==void 0&&o.module>5||!B.exportClause||!jm(B.exportClause)||!B.moduleSpecifier)return B;let Z=B.exportClause.name,ae=t.getGeneratedNameForNode(Z),_e=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,t.createNamespaceImport(ae)),B.moduleSpecifier,B.attributes);or(_e,B.exportClause);let $=H7(B)?t.createExportDefault(ae):t.createExportDeclaration(void 0,!1,t.createNamedExports([t.createExportSpecifier(!1,ae,Z)]));return or($,B),[_e,$]}function X(B,Z,ae){Li(Z)?((Bc(Z)||pd(o))&&o.importHelpers&&(g=new Map),u(B,Z,ae),g=void 0):u(B,Z,ae)}function J(B,Z){return Z=f(B,Z),g&&Ie(Z)&&Sa(Z)&8192?ie(Z):Z}function ie(B){let Z=ur(B),ae=g.get(Z);return ae||g.set(Z,ae=t.createUniqueName(Z,48)),ae}}var kMe=ze({"src/compiler/transformers/module/esnextAnd2015.ts"(){"use strict";Rs()}});function jse(e){let t=e.onSubstituteNode,n=e.onEmitNode,i=LU(e),s=e.onSubstituteNode,o=e.onEmitNode;e.onSubstituteNode=t,e.onEmitNode=n;let c=OU(e),u=e.onSubstituteNode,f=e.onEmitNode;e.onSubstituteNode=p,e.onEmitNode=y,e.enableSubstitution(312),e.enableEmitNotification(312);let g;return C;function p(D,O){return Li(O)?(g=O,t(D,O)):g?g.impliedNodeFormat===99?s(D,O):u(D,O):t(D,O)}function y(D,O,z){return Li(O)&&(g=O),g?g.impliedNodeFormat===99?o(D,O,z):f(D,O,z):n(D,O,z)}function S(D){return D.impliedNodeFormat===99?i:c}function x(D){if(D.isDeclarationFile)return D;g=D;let O=S(D)(D);return g=void 0,E.assert(Li(O)),O}function C(D){return D.kind===312?x(D):w(D)}function w(D){return e.factory.createBundle(Kt(D.sourceFiles,x),D.prepends)}}var CMe=ze({"src/compiler/transformers/module/node.ts"(){"use strict";Rs()}});function a9(e){return Ni(e)||Is(e)||bf(e)||Ma(e)||qh(e)||X0(e)||g8(e)||SC(e)||kc(e)||xg(e)||al(e)||ms(e)||Ko(e)||t0(e)||Kl(e)||Xp(e)||Cc(e)||R2(e)||Cr(e)||ko(e)||Yn(e)||mp(e)}function Bse(e){if(qh(e)||X0(e))return t;return xg(e)||kc(e)?i:r0(e);function t(o){let c=n(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function n(o){return zs(e)?o.errorModuleName?o.accessibility===2?d.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:d.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?d.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:d.Public_property_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?d.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:d.Property_0_of_exported_interface_has_or_is_using_private_name_1}function i(o){let c=s(o);return c!==void 0?{diagnosticMessage:c,errorNode:e,typeName:e.name}:void 0}function s(o){return zs(e)?o.errorModuleName?o.accessibility===2?d.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:d.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263?o.errorModuleName?o.accessibility===2?d.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:d.Public_method_0_of_exported_class_has_or_is_using_private_name_1:o.errorModuleName?d.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:d.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function r0(e){if(Ni(e)||Is(e)||bf(e)||Cr(e)||ko(e)||Yn(e)||Ma(e)||Cc(e))return n;return qh(e)||X0(e)?i:g8(e)||SC(e)||kc(e)||xg(e)||al(e)||R2(e)?s:ms(e)?F_(e,e.parent)&&Mr(e.parent,2)?n:o:Ko(e)?u:t0(e)?f:Kl(e)?g:Xp(e)||mp(e)?p:E.assertNever(e,`Attempted to set a declaration diagnostic context for unhandled node kind: ${E.formatSyntaxKind(e.kind)}`);function t(y){if(e.kind===260||e.kind===208)return y.errorModuleName?y.accessibility===2?d.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:d.Exported_variable_0_has_or_is_using_private_name_1;if(e.kind===172||e.kind===211||e.kind===212||e.kind===226||e.kind===171||e.kind===169&&Mr(e.parent,2))return zs(e)?y.errorModuleName?y.accessibility===2?d.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:d.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:e.parent.kind===263||e.kind===169?y.errorModuleName?y.accessibility===2?d.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:d.Public_property_0_of_exported_class_has_or_is_using_private_name_1:y.errorModuleName?d.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:d.Property_0_of_exported_interface_has_or_is_using_private_name_1}function n(y){let S=t(y);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function i(y){let S;return e.kind===178?zs(e)?S=y.errorModuleName?d.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:d.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:S=y.errorModuleName?d.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:d.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:zs(e)?S=y.errorModuleName?y.accessibility===2?d.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:d.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:S=y.errorModuleName?y.accessibility===2?d.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:d.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:S,errorNode:e.name,typeName:e.name}}function s(y){let S;switch(e.kind){case 180:S=y.errorModuleName?d.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:d.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:S=y.errorModuleName?d.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:d.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:S=y.errorModuleName?d.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:d.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:zs(e)?S=y.errorModuleName?y.accessibility===2?d.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:d.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:d.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:e.parent.kind===263?S=y.errorModuleName?y.accessibility===2?d.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:d.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:d.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:S=y.errorModuleName?d.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:d.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:S=y.errorModuleName?y.accessibility===2?d.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:d.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:d.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return E.fail("This is unknown kind for signature: "+e.kind)}return{diagnosticMessage:S,errorNode:e.name||e}}function o(y){let S=c(y);return S!==void 0?{diagnosticMessage:S,errorNode:e,typeName:e.name}:void 0}function c(y){switch(e.parent.kind){case 176:return y.errorModuleName?y.accessibility===2?d.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:d.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return y.errorModuleName?d.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:d.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return y.errorModuleName?d.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:d.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return y.errorModuleName?d.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:d.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return zs(e.parent)?y.errorModuleName?y.accessibility===2?d.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:d.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y.errorModuleName?y.accessibility===2?d.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:d.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y.errorModuleName?d.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:d.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return y.errorModuleName?y.accessibility===2?d.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:d.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return y.errorModuleName?y.accessibility===2?d.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:d.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:d.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return E.fail(`Unknown parent for parameter: ${E.formatSyntaxKind(e.parent.kind)}`)}}function u(){let y;switch(e.parent.kind){case 263:y=d.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:y=d.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:y=d.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:y=d.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:y=d.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:zs(e.parent)?y=d.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:e.parent.parent.kind===263?y=d.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:y=d.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:y=d.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:y=d.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:y=d.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return E.fail("This is unknown parent for type parameter: "+e.parent.kind)}return{diagnosticMessage:y,errorNode:e,typeName:e.name}}function f(){let y;return Zc(e.parent.parent)?y=rf(e.parent)&&e.parent.token===119?d.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:e.parent.parent.name?d.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:d.extends_clause_of_exported_class_has_or_is_using_private_name_0:y=d.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:y,errorNode:e,typeName:us(e.parent.parent)}}function g(){return{diagnosticMessage:d.Import_declaration_0_is_using_private_name_1,errorNode:e,typeName:e.name}}function p(y){return{diagnosticMessage:y.errorModuleName?d.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:d.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:mp(e)?E.checkDefined(e.typeExpression):e.type,typeName:mp(e)?us(e):e.name}}}var EMe=ze({"src/compiler/transformers/declarations/diagnostics.ts"(){"use strict";Rs()}});function Jse(e,t,n){let i=e.getCompilerOptions();return sA(t,e,I,i,n?[n]:Fr(e.getSourceFiles(),az),[RU],!1).diagnostics}function i2e(e,t){return t.text.substring(e.pos,e.end).includes("@internal")}function MU(e,t){let n=ls(e);if(n&&n.kind===169){let s=n.parent.parameters.indexOf(n),o=s>0?n.parent.parameters[s-1]:void 0,c=t.text,u=o?es(n1(c,ma(c,o.end+1,!1,!0)),lg(c,e.pos)):n1(c,ma(c,e.pos,!1,!0));return u&&u.length&&i2e(Pa(u),t)}let i=n&&KJ(n,t);return!!Qt(i,s=>i2e(s,t))}function RU(e){let t=()=>E.fail("Diagnostic emitted without context"),n=t,i=!0,s=!1,o=!1,c=!1,u=!1,f,g,p,y,S,x,{factory:C}=e,w=e.getEmitHost(),D={trackSymbol:se,reportInaccessibleThisError:ke,reportInaccessibleUniqueSymbolError:xe,reportCyclicStructureError:Me,reportPrivateInBaseOfClassExpression:Y,reportLikelyUnsafeImportRequiredError:he,reportTruncationError:be,moduleResolverHost:w,trackReferencedAmbientModule:H,trackExternalModuleSymbolOfImportTypeNode:Se,reportNonlocalAugmentation:_t,reportNonSerializableProperty:mt},O,z,V,X,J,ie,B=e.getEmitResolver(),Z=e.getCompilerOptions(),{noResolve:ae,stripInternal:_e}=Z;return Oe;function $(G){if(G){g=g||new Set;for(let vt of G)g.add(vt)}}function H(G,vt){let wt=B.getTypeReferenceDirectivesForSymbol(vt,67108863);if(bn(wt))return $(wt);let Re=Mn(G);X.set(_u(Re),Re)}function K(G){let vt=Xk(G),wt=vt&&B.tryFindAmbientModule(vt);if(wt?.declarations)for(let Re of wt.declarations)lu(Re)&&Mn(Re)!==V&&H(Re,wt)}function oe(G){if(G.accessibility===0){if(G&&G.aliasesToMakeVisible)if(!p)p=G.aliasesToMakeVisible;else for(let vt of G.aliasesToMakeVisible)lp(p,vt)}else{let vt=n(G);if(vt)return vt.typeName?e.addDiagnostic(vr(G.errorNode||vt.errorNode,vt.diagnosticMessage,Qc(vt.typeName),G.errorSymbolName,G.errorModuleName)):e.addDiagnostic(vr(G.errorNode||vt.errorNode,vt.diagnosticMessage,G.errorSymbolName,G.errorModuleName)),!0}return!1}function Se(G){s||(x||(x=[])).push(G)}function se(G,vt,wt){if(G.flags&262144)return!1;let Re=oe(B.isSymbolAccessible(G,vt,wt,!0));return $(B.getTypeReferenceDirectivesForSymbol(G,wt)),Re}function Y(G){(O||z)&&e.addDiagnostic(vr(O||z,d.Property_0_of_exported_class_expression_may_not_be_private_or_protected,G))}function ve(){return O?co(O):z&&us(z)?co(us(z)):z&&hc(z)?z.isExportEquals?"export=":"default":"(Missing)"}function xe(){(O||z)&&e.addDiagnostic(vr(O||z,d.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"unique symbol"))}function Me(){(O||z)&&e.addDiagnostic(vr(O||z,d.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,ve()))}function ke(){(O||z)&&e.addDiagnostic(vr(O||z,d.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,ve(),"this"))}function he(G){(O||z)&&e.addDiagnostic(vr(O||z,d.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,ve(),G))}function be(){(O||z)&&e.addDiagnostic(vr(O||z,d.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function _t(G,vt,wt){var Re;let ot=(Re=vt.declarations)==null?void 0:Re.find(Zt=>Mn(Zt)===G),Dt=Fr(wt.declarations,Zt=>Mn(Zt)!==G);if(ot&&Dt)for(let Zt of Dt)e.addDiagnostic(ga(vr(Zt,d.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),vr(ot,d.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function mt(G){(O||z)&&e.addDiagnostic(vr(O||z,d.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,G))}function me(G,vt){let wt=n;n=ot=>ot.errorNode&&a9(ot.errorNode)?r0(ot.errorNode)(ot):{diagnosticMessage:ot.errorModuleName?d.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:d.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:ot.errorNode||G};let Re=B.getDeclarationStatementsForSourceFile(G,Y2,D,vt);return n=wt,Re}function Oe(G){if(G.kind===312&&G.isDeclarationFile)return G;if(G.kind===313){s=!0,X=new Map,J=new Map;let j=!1,ce=C.createBundle(Kt(G.sourceFiles,M=>{if(M.isDeclarationFile)return;if(j=j||M.hasNoDefaultLib,V=M,f=M,p=void 0,S=!1,y=new Map,n=t,c=!1,u=!1,Qe(M,X),at(M,J),K_(M)||dp(M)){o=!1,i=!1;let qe=Bu(M)?C.createNodeArray(me(M,!0)):Dn(M.statements,Fi,Ai);return C.updateSourceFile(M,[C.createModuleDeclaration([C.createModifier(138)],C.createStringLiteral(E5(e.getEmitHost(),M)),C.createModuleBlock(nt(C.createNodeArray(Sn(qe)),M.statements)))],!0,[],[],!1,[])}i=!0;let De=Bu(M)?C.createNodeArray(me(M)):Dn(M.statements,Fi,Ai);return C.updateSourceFile(M,Sn(De),!0,[],[],!1,[])}),Ri(G.prepends,M=>{if(M.kind===315){let De=IV(M,"dts",_e);return j=j||!!De.hasNoDefaultLib,Qe(De,X),$(Kt(De.typeReferenceDirectives,qe=>[qe.fileName,qe.resolutionMode])),at(De,J),De}return M}));ce.syntheticFileReferences=[],ce.syntheticTypeReferences=tn(),ce.syntheticLibReferences=Zt(),ce.hasNoDefaultLib=j;let ee=Xr(Su(D3(G,w,!0).declarationFilePath)),ue=W(ce.syntheticFileReferences,ee);return X.forEach(ue),ce}i=!0,c=!1,u=!1,f=G,V=G,n=t,s=!1,o=!1,S=!1,p=void 0,y=new Map,g=void 0,X=Qe(V,new Map),J=at(V,new Map);let vt=[],wt=Xr(Su(D3(G,w,!0).declarationFilePath)),Re=W(vt,wt),ot;if(Bu(V))ot=C.createNodeArray(me(G)),X.forEach(Re),ie=Fr(ot,S2);else{let j=Dn(G.statements,Fi,Ai);ot=nt(C.createNodeArray(Sn(j)),G.statements),X.forEach(Re),ie=Fr(ot,S2),Bc(G)&&(!o||c&&!u)&&(ot=nt(C.createNodeArray([...ot,T8(C)]),ot))}let Dt=C.updateSourceFile(G,ot,!0,vt,tn(),G.hasNoDefaultLib,Zt());return Dt.exportedModulesFromDeclarationEmit=x,Dt;function Zt(){return hs(J.keys(),j=>({fileName:j,pos:-1,end:-1}))}function tn(){return g?Ri(hs(g.keys()),ln):[]}function ln([j,ce]){if(ie){for(let ee of ie)if(Kl(ee)&&Bm(ee.moduleReference)){let ue=ee.moduleReference.expression;if($a(ue)&&ue.text===j)return}else if(kl(ee)&&ca(ee.moduleSpecifier)&&ee.moduleSpecifier.text===j)return}return{fileName:j,pos:-1,end:-1,...ce?{resolutionMode:ce}:void 0}}function W(j,ce){return ee=>{let ue;if(ee.isDeclarationFile)ue=ee.fileName;else{if(s&&gs(G.sourceFiles,ee))return;let M=D3(ee,w,!0);ue=M.declarationFilePath||M.jsFilePath||ee.fileName}if(ue){let M=zO(Z,V,xo(ce,w.getCurrentDirectory(),w.getCanonicalFileName),xo(ue,w.getCurrentDirectory(),w.getCanonicalFileName),w);if(!Q_(M)){$([[M,void 0]]);return}let De=px(ce,ue,w.getCurrentDirectory(),w.getCanonicalFileName,!1);if(ts(De,"./")&&fx(De)&&(De=De.substring(2)),ts(De,"node_modules/")||aT(De))return;j.push({pos:-1,end:-1,fileName:De})}}}}function Qe(G,vt){return ae||!U2(G)&&Bu(G)||Qt(G.referencedFiles,wt=>{let Re=w.getSourceFileFromReference(G,wt);Re&&vt.set(_u(Re),Re)}),vt}function at(G,vt){return Qt(G.libReferenceDirectives,wt=>{w.getLibFileFromReference(wt)&&vt.set(Od(wt.fileName),!0)}),vt}function ht(G){if(G.kind===80)return G;return G.kind===207?C.updateArrayBindingPattern(G,Dn(G.elements,vt,I7)):C.updateObjectBindingPattern(G,Dn(G.elements,vt,Ma));function vt(wt){return wt.kind===232?wt:(wt.propertyName&&Na(wt.propertyName)&&gc(wt.propertyName.expression)&&ii(wt.propertyName.expression,f),wt.propertyName&&Ie(wt.propertyName)&&Ie(wt.name)&&!wt.symbol.isReferenced&&!x5(wt.propertyName)?C.updateBindingElement(wt,wt.dotDotDotToken,void 0,wt.propertyName,lt(wt)?wt.initializer:void 0):C.updateBindingElement(wt,wt.dotDotDotToken,wt.propertyName,ht(wt.name),lt(wt)?wt.initializer:void 0))}}function Je(G,vt,wt){let Re;S||(Re=n,n=r0(G));let ot=C.updateParameterDeclaration(G,PMe(C,G,vt),G.dotDotDotToken,ht(G.name),B.isOptionalParameter(G)?G.questionToken||C.createToken(58):void 0,Gt(G,wt||G.type,!0),Jt(G));return S||(n=Re),ot}function lt(G){return wMe(G)&&B.isLiteralConstDeclaration(ls(G))}function Jt(G){if(lt(G))return B.createLiteralConstValue(ls(G),D)}function Gt(G,vt,wt){if(!wt&&M_(G,2)||lt(G))return;let Re=G.kind===169&&(B.isRequiredInitializedParameter(G)||B.isOptionalUninitializedParameterProperty(G));if(vt&&!Re)return Ge(vt,Cn,Ei);if(!ls(G))return vt?Ge(vt,Cn,Ei):C.createKeywordTypeNode(133);if(G.kind===178)return C.createKeywordTypeNode(133);O=G.name;let ot;if(S||(ot=n,n=r0(G)),G.kind===260||G.kind===208)return Dt(B.createTypeOfDeclaration(G,f,Y2,D));if(G.kind===169||G.kind===172||G.kind===171)return bf(G)||!G.initializer?Dt(B.createTypeOfDeclaration(G,f,Y2,D,Re)):Dt(B.createTypeOfDeclaration(G,f,Y2,D,Re)||B.createTypeOfExpression(G.initializer,f,Y2,D));return Dt(B.createReturnTypeOfSignatureDeclaration(G,f,Y2,D));function Dt(Zt){return O=void 0,S||(n=ot),Zt||C.createKeywordTypeNode(133)}}function Tn(G){switch(G=ls(G),G.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!B.isDeclarationVisible(G);case 260:return!cn(G);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Un(G){var vt;if(G.body)return!0;let wt=(vt=G.symbol.declarations)==null?void 0:vt.filter(Re=>al(Re)&&!Re.body);return!wt||wt.indexOf(G)===wt.length-1}function cn(G){return xl(G)?!1:Ms(G.name)?ft(G.name.elements,cn):B.isDeclarationVisible(G)}function zt(G,vt,wt){if(M_(G,2))return C.createNodeArray();let Re=Kt(vt,ot=>Je(ot,wt));return Re?C.createNodeArray(Re,vt.hasTrailingComma):C.createNodeArray()}function Ft(G,vt){let wt;if(!vt){let Re=Uv(G);Re&&(wt=[Je(Re)])}if(j_(G)){let Re;if(!vt){let ot=hE(G);if(ot){let Dt=Be(G,B.getAllAccessorDeclarations(G));Re=Je(ot,void 0,Dt)}}Re||(Re=C.createParameterDeclaration(void 0,void 0,"value")),wt=_n(wt,Re)}return C.createNodeArray(wt||Ve)}function Lr(G,vt){return M_(G,2)?void 0:Dn(vt,Cn,Ko)}function ji(G){return Li(G)||Xp(G)||Pc(G)||Zc(G)||Wu(G)||As(G)||R2(G)||YE(G)}function ii(G,vt){let wt=B.isEntityNameVisible(G,vt);oe(wt),$(B.getTypeReferenceDirectivesForEntityName(G))}function Hi(G,vt){return Z_(G)&&Z_(vt)&&(G.jsDoc=vt.jsDoc),jc(G,Ud(vt))}function Ye(G,vt){if(vt){if(o=o||G.kind!==267&&G.kind!==205,$a(vt))if(s){let wt=Nte(e.getEmitHost(),B,G);if(wt)return C.createStringLiteral(wt)}else{let wt=B.getSymbolOfExternalModuleSpecifier(vt);wt&&(x||(x=[])).push(wt)}return vt}}function fn(G){if(B.isDeclarationVisible(G))if(G.moduleReference.kind===283){let vt=iE(G);return C.updateImportEqualsDeclaration(G,G.modifiers,G.isTypeOnly,G.name,C.updateExternalModuleReference(G.moduleReference,Ye(G,vt)))}else{let vt=n;return n=r0(G),ii(G.moduleReference,f),n=vt,G}}function An(G){if(!G.importClause)return C.updateImportDeclaration(G,G.modifiers,G.importClause,Ye(G,G.moduleSpecifier),Ot(G.attributes));let vt=G.importClause&&G.importClause.name&&B.isDeclarationVisible(G.importClause)?G.importClause.name:void 0;if(!G.importClause.namedBindings)return vt&&C.updateImportDeclaration(G,G.modifiers,C.updateImportClause(G.importClause,G.importClause.isTypeOnly,vt,void 0),Ye(G,G.moduleSpecifier),Ot(G.attributes));if(G.importClause.namedBindings.kind===274){let Re=B.isDeclarationVisible(G.importClause.namedBindings)?G.importClause.namedBindings:void 0;return vt||Re?C.updateImportDeclaration(G,G.modifiers,C.updateImportClause(G.importClause,G.importClause.isTypeOnly,vt,Re),Ye(G,G.moduleSpecifier),Ot(G.attributes)):void 0}let wt=Ri(G.importClause.namedBindings.elements,Re=>B.isDeclarationVisible(Re)?Re:void 0);if(wt&&wt.length||vt)return C.updateImportDeclaration(G,G.modifiers,C.updateImportClause(G.importClause,G.importClause.isTypeOnly,vt,wt&&wt.length?C.updateNamedImports(G.importClause.namedBindings,wt):void 0),Ye(G,G.moduleSpecifier),Ot(G.attributes));if(B.isImportRequiredByAugmentation(G))return C.updateImportDeclaration(G,G.modifiers,void 0,Ye(G,G.moduleSpecifier),Ot(G.attributes))}function Ot(G){let vt=$C(G);return G&&vt!==void 0?G:void 0}function Sn(G){for(;bn(p);){let wt=p.shift();if(!$7(wt))return E.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${E.formatSyntaxKind(wt.kind)}`);let Re=i;i=wt.parent&&Li(wt.parent)&&!(Bc(wt.parent)&&s);let ot=Ki(wt);i=Re,y.set(_u(wt),ot)}return Dn(G,vt,Ai);function vt(wt){if($7(wt)){let Re=_u(wt);if(y.has(Re)){let ot=y.get(Re);return y.delete(Re),ot&&((ss(ot)?ft(ot,F7):F7(ot))&&(c=!0),Li(wt.parent)&&(ss(ot)?ft(ot,zP):zP(ot))&&(o=!0)),ot}}return wt}}function Cn(G){if(it(G)||ku(G)&&(Tn(G)||ey(G)&&!B.isLateBound(ls(G)))||As(G)&&B.isImplementationOfOverload(G)||Tre(G))return;let vt;ji(G)&&(vt=f,f=G);let wt=n,Re=a9(G),ot=S,Dt=(G.kind===187||G.kind===200)&&G.parent.kind!==265;if((kc(G)||xg(G))&&M_(G,2))return G.symbol&&G.symbol.declarations&&G.symbol.declarations[0]!==G?void 0:Zt(C.createPropertyDeclaration(fe(G),G.name,void 0,void 0,void 0));if(Re&&!S&&(n=r0(G)),xC(G)&&ii(G.exprName,f),Dt&&(S=!0),NMe(G))switch(G.kind){case 233:{(Y_(G.expression)||gc(G.expression))&&ii(G.expression,f);let tn=on(G,Cn,e);return Zt(C.updateExpressionWithTypeArguments(tn,tn.expression,tn.typeArguments))}case 183:{ii(G.typeName,f);let tn=on(G,Cn,e);return Zt(C.updateTypeReferenceNode(tn,tn.typeName,tn.typeArguments))}case 180:return Zt(C.updateConstructSignature(G,Lr(G,G.typeParameters),zt(G,G.parameters),Gt(G,G.type)));case 176:{let tn=C.createConstructorDeclaration(fe(G),zt(G,G.parameters,0),void 0);return Zt(tn)}case 174:{if(Di(G.name))return Zt(void 0);let tn=C.createMethodDeclaration(fe(G),void 0,G.name,G.questionToken,Lr(G,G.typeParameters),zt(G,G.parameters),Gt(G,G.type),void 0);return Zt(tn)}case 177:{if(Di(G.name))return Zt(void 0);let tn=Be(G,B.getAllAccessorDeclarations(G));return Zt(C.updateGetAccessorDeclaration(G,fe(G),G.name,Ft(G,M_(G,2)),Gt(G,tn),void 0))}case 178:return Di(G.name)?Zt(void 0):Zt(C.updateSetAccessorDeclaration(G,fe(G),G.name,Ft(G,M_(G,2)),void 0));case 172:return Di(G.name)?Zt(void 0):Zt(C.updatePropertyDeclaration(G,fe(G),G.name,G.questionToken,Gt(G,G.type),Jt(G)));case 171:return Di(G.name)?Zt(void 0):Zt(C.updatePropertySignature(G,fe(G),G.name,G.questionToken,Gt(G,G.type)));case 173:return Di(G.name)?Zt(void 0):Zt(C.updateMethodSignature(G,fe(G),G.name,G.questionToken,Lr(G,G.typeParameters),zt(G,G.parameters),Gt(G,G.type)));case 179:return Zt(C.updateCallSignature(G,Lr(G,G.typeParameters),zt(G,G.parameters),Gt(G,G.type)));case 181:return Zt(C.updateIndexSignature(G,fe(G),zt(G,G.parameters),Ge(G.type,Cn,Ei)||C.createKeywordTypeNode(133)));case 260:return Ms(G.name)?Fs(G.name):(Dt=!0,S=!0,Zt(C.updateVariableDeclaration(G,G.name,void 0,Gt(G,G.type),Jt(G))));case 168:return Kn(G)&&(G.default||G.constraint)?Zt(C.updateTypeParameterDeclaration(G,G.modifiers,G.name,void 0,void 0)):Zt(on(G,Cn,e));case 194:{let tn=Ge(G.checkType,Cn,Ei),ln=Ge(G.extendsType,Cn,Ei),W=f;f=G.trueType;let j=Ge(G.trueType,Cn,Ei);f=W;let ce=Ge(G.falseType,Cn,Ei);return E.assert(tn),E.assert(ln),E.assert(j),E.assert(ce),Zt(C.updateConditionalTypeNode(G,tn,ln,j,ce))}case 184:return Zt(C.updateFunctionTypeNode(G,Dn(G.typeParameters,Cn,Ko),zt(G,G.parameters),E.checkDefined(Ge(G.type,Cn,Ei))));case 185:return Zt(C.updateConstructorTypeNode(G,fe(G),Dn(G.typeParameters,Cn,Ko),zt(G,G.parameters),E.checkDefined(Ge(G.type,Cn,Ei))));case 205:return K0(G)?(K(G),Zt(C.updateImportTypeNode(G,C.updateLiteralTypeNode(G.argument,Ye(G,G.argument.literal)),G.attributes,G.qualifier,Dn(G.typeArguments,Cn,Ei),G.isTypeOf))):Zt(G);default:E.assertNever(G,`Attempted to process unhandled node kind: ${E.formatSyntaxKind(G.kind)}`)}return TC(G)&&Ka(V,G.pos).line===Ka(V,G.end).line&&$n(G,1),Zt(on(G,Cn,e));function Zt(tn){return tn&&Re&&ey(G)&&Ue(G),ji(G)&&(f=vt),Re&&!S&&(n=wt),Dt&&(S=ot),tn===G?tn:tn&&or(Hi(tn,G),G)}}function Kn(G){return G.parent.kind===174&&M_(G.parent,2)}function Fi(G){if(!AMe(G)||it(G))return;switch(G.kind){case 278:return Li(G.parent)&&(o=!0),u=!0,K(G),C.updateExportDeclaration(G,G.modifiers,G.isTypeOnly,G.exportClause,Ye(G,G.moduleSpecifier),Ot(G.attributes));case 277:{if(Li(G.parent)&&(o=!0),u=!0,G.expression.kind===80)return G;{let wt=C.createUniqueName("_default",16);n=()=>({diagnosticMessage:d.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:G}),z=G;let Re=C.createVariableDeclaration(wt,void 0,B.createTypeOfExpression(G.expression,G,Y2,D),void 0);z=void 0;let ot=C.createVariableStatement(i?[C.createModifier(138)]:[],C.createVariableDeclarationList([Re],2));return Hi(ot,G),o8(G),[ot,C.updateExportAssignment(G,G.modifiers,wt)]}}}let vt=Ki(G);return y.set(_u(G),vt),G}function Wi(G){if(Kl(G)||M_(G,2048)||!Yp(G))return G;let vt=C.createModifiersFromModifierFlags(Ju(G)&131039);return C.replaceModifiers(G,vt)}function Ii(G,vt,wt,Re){let ot=C.updateModuleDeclaration(G,vt,wt,Re);if(lu(ot)||ot.flags&32)return ot;let Dt=C.createModuleDeclaration(ot.modifiers,ot.name,ot.body,ot.flags|32);return or(Dt,ot),nt(Dt,ot),Dt}function Ki(G){if(p)for(;aP(p,G););if(it(G))return;switch(G.kind){case 271:{let Zt=fn(G);return Zt&&K(G),Zt}case 272:{let Zt=An(G);return Zt&&K(G),Zt}}if(ku(G)&&Tn(G)||As(G)&&B.isImplementationOfOverload(G))return;let vt;ji(G)&&(vt=f,f=G);let wt=a9(G),Re=n;wt&&(n=r0(G));let ot=i;switch(G.kind){case 265:{i=!1;let Zt=Dt(C.updateTypeAliasDeclaration(G,fe(G),G.name,Dn(G.typeParameters,Cn,Ko),E.checkDefined(Ge(G.type,Cn,Ei))));return i=ot,Zt}case 264:return Dt(C.updateInterfaceDeclaration(G,fe(G),G.name,Lr(G,G.typeParameters),yt(G.heritageClauses),Dn(G.members,Cn,g2)));case 262:{let Zt=Dt(C.updateFunctionDeclaration(G,fe(G),void 0,G.name,Lr(G,G.typeParameters),zt(G,G.parameters),Gt(G,G.type),void 0));if(Zt&&B.isExpandoFunctionDeclaration(G)&&Un(G)){let tn=B.getPropertiesOfContainerFunction(G),ln=Jm.createModuleDeclaration(void 0,Zt.name||C.createIdentifier("_default"),C.createModuleBlock([]),32);Ta(ln,f),ln.locals=Gs(tn),ln.symbol=tn[0].parent;let W=[],j=Ri(tn,qe=>{if(!lF(qe.valueDeclaration))return;let Fe=Ci(qe.escapedName);if(!hf(Fe,99))return;n=r0(qe.valueDeclaration);let St=B.createTypeOfDeclaration(qe.valueDeclaration,ln,Y2,D);n=Re;let Mt=Cx(Fe),Wt=Mt?C.getGeneratedNameForNode(qe.valueDeclaration):C.createIdentifier(Fe);Mt&&W.push([Wt,Fe]);let Rn=C.createVariableDeclaration(Wt,void 0,St,void 0);return C.createVariableStatement(Mt?void 0:[C.createToken(95)],C.createVariableDeclarationList([Rn]))});W.length?j.push(C.createExportDeclaration(void 0,!1,C.createNamedExports(Kt(W,([qe,Fe])=>C.createExportSpecifier(!1,qe,Fe))))):j=Ri(j,qe=>C.replaceModifiers(qe,0));let ce=C.createModuleDeclaration(fe(G),G.name,C.createModuleBlock(j),32);if(!M_(Zt,2048))return[Zt,ce];let ee=C.createModifiersFromModifierFlags(Ju(Zt)&-2081|128),ue=C.updateFunctionDeclaration(Zt,ee,void 0,Zt.name,Zt.typeParameters,Zt.parameters,Zt.type,void 0),M=C.updateModuleDeclaration(ce,ee,ce.name,ce.body),De=C.createExportAssignment(void 0,!1,ce.name);return Li(G.parent)&&(o=!0),u=!0,[ue,M,De]}else return Zt}case 267:{i=!1;let Zt=G.body;if(Zt&&Zt.kind===268){let tn=c,ln=u;u=!1,c=!1;let W=Dn(Zt.statements,Fi,Ai),j=Sn(W);G.flags&33554432&&(c=!1),!jd(G)&&!gt(j)&&!u&&(c?j=C.createNodeArray([...j,T8(C)]):j=Dn(j,Wi,Ai));let ce=C.updateModuleBlock(Zt,j);i=ot,c=tn,u=ln;let ee=fe(G);return Dt(Ii(G,ee,Ov(G)?Ye(G,G.name):G.name,ce))}else{i=ot;let tn=fe(G);i=!1,Ge(Zt,Fi);let ln=_u(Zt),W=y.get(ln);return y.delete(ln),Dt(Ii(G,tn,G.name,W))}}case 263:{O=G.name,z=G;let Zt=C.createNodeArray(fe(G)),tn=Lr(G,G.typeParameters),ln=yg(G),W;if(ln){let De=n;W=rP(oa(ln.parameters,qe=>{if(!Mr(qe,31)||it(qe))return;if(n=r0(qe),qe.name.kind===80)return Hi(C.createPropertyDeclaration(fe(qe),qe.name,qe.questionToken,Gt(qe,qe.type),Jt(qe)),qe);return Fe(qe.name);function Fe(St){let Mt;for(let Wt of St.elements)xl(Wt)||(Ms(Wt.name)&&(Mt=es(Mt,Fe(Wt.name))),Mt=Mt||[],Mt.push(C.createPropertyDeclaration(fe(qe),Wt.name,void 0,Gt(Wt,void 0),void 0)));return Mt}})),n=De}let ce=ft(G.members,De=>!!De.name&&Di(De.name))?[C.createPropertyDeclaration(void 0,C.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,ee=es(es(ce,W),Dn(G.members,Cn,Ml)),ue=C.createNodeArray(ee),M=Bd(G);if(M&&!gc(M.expression)&&M.expression.kind!==106){let De=G.name?Ci(G.name.escapedText):"default",qe=C.createUniqueName(`${De}_base`,16);n=()=>({diagnosticMessage:d.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:M,typeName:G.name});let Fe=C.createVariableDeclaration(qe,void 0,B.createTypeOfExpression(M.expression,G,Y2,D),void 0),St=C.createVariableStatement(i?[C.createModifier(138)]:[],C.createVariableDeclarationList([Fe],2)),Mt=C.createNodeArray(Kt(G.heritageClauses,Wt=>{if(Wt.token===96){let Rn=n;n=r0(Wt.types[0]);let nr=C.updateHeritageClause(Wt,Kt(Wt.types,br=>C.updateExpressionWithTypeArguments(br,qe,Dn(br.typeArguments,Cn,Ei))));return n=Rn,nr}return C.updateHeritageClause(Wt,Dn(C.createNodeArray(Fr(Wt.types,Rn=>gc(Rn.expression)||Rn.expression.kind===106)),Cn,t0))}));return[St,Dt(C.updateClassDeclaration(G,Zt,G.name,tn,Mt,ue))]}else{let De=yt(G.heritageClauses);return Dt(C.updateClassDeclaration(G,Zt,G.name,tn,De,ue))}}case 243:return Dt(na(G));case 266:return Dt(C.updateEnumDeclaration(G,C.createNodeArray(fe(G)),G.name,C.createNodeArray(Ri(G.members,Zt=>{if(it(Zt))return;let tn=B.getConstantValue(Zt);return Hi(C.updateEnumMember(Zt,Zt.name,tn!==void 0?typeof tn=="string"?C.createStringLiteral(tn):C.createNumericLiteral(tn):void 0),Zt)}))))}return E.assertNever(G,`Unhandled top-level node in declaration emit: ${E.formatSyntaxKind(G.kind)}`);function Dt(Zt){return ji(G)&&(f=vt),wt&&(n=Re),G.kind===267&&(i=ot),Zt===G?Zt:(z=void 0,O=void 0,Zt&&or(Hi(Zt,G),G))}}function na(G){if(!Qt(G.declarationList.declarations,cn))return;let vt=Dn(G.declarationList.declarations,Cn,Ni);if(!bn(vt))return;let wt=C.createNodeArray(fe(G)),Re;return ew(G.declarationList)||KP(G.declarationList)?(Re=C.createVariableDeclarationList(vt,2),or(Re,G.declarationList),nt(Re,G.declarationList),jc(Re,G.declarationList)):Re=C.updateVariableDeclarationList(G.declarationList,vt),C.updateVariableStatement(G,wt,Re)}function Fs(G){return Jp(Ri(G.elements,vt=>Ce(vt)))}function Ce(G){if(G.kind!==232&&G.name)return cn(G)?Ms(G.name)?Fs(G.name):C.createVariableDeclaration(G.name,void 0,Gt(G,void 0),void 0):void 0}function Ue(G){let vt;S||(vt=n,n=Bse(G)),O=G.name,E.assert(B.isLateBound(ls(G)));let Re=G.name.expression;ii(Re,f),S||(n=vt),O=void 0}function it(G){return!!_e&&!!G&&MU(G,V)}function dt(G){return hc(G)||Kc(G)}function gt(G){return ft(G,dt)}function fe(G){let vt=Ju(G),wt=we(G);return vt===wt?tA(G.modifiers,Re=>Ur(Re,ra),ra):C.createModifiersFromModifierFlags(wt)}function we(G){let vt=130030,wt=i&&!DMe(G)?128:0,Re=G.parent.kind===312;return(!Re||s&&Re&&Bc(G.parent))&&(vt^=128,wt=0),s2e(G,vt,wt)}function Be(G,vt){let wt=zse(G);return!wt&&G!==vt.firstAccessor&&(wt=zse(vt.firstAccessor),n=r0(vt.firstAccessor)),!wt&&vt.secondAccessor&&G!==vt.secondAccessor&&(wt=zse(vt.secondAccessor),n=r0(vt.secondAccessor)),wt}function yt(G){return C.createNodeArray(Fr(Kt(G,vt=>C.updateHeritageClause(vt,Dn(C.createNodeArray(Fr(vt.types,wt=>gc(wt.expression)||vt.token===96&&wt.expression.kind===106)),Cn,t0))),vt=>vt.types&&!!vt.types.length))}}function DMe(e){return e.kind===264}function PMe(e,t,n,i){return e.createModifiersFromModifierFlags(s2e(t,n,i))}function s2e(e,t=131070,n=0){let i=Ju(e)&t|n;return i&2048&&!(i&32)&&(i^=32),i&2048&&i&128&&(i^=128),i}function zse(e){if(e)return e.kind===177?e.type:e.parameters.length>0?e.parameters[0].type:void 0}function wMe(e){switch(e.kind){case 172:case 171:return!M_(e,2);case 169:case 260:return!0}return!1}function AMe(e){switch(e.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function NMe(e){switch(e.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var Y2,IMe=ze({"src/compiler/transformers/declarations.ts"(){"use strict";Rs(),Gie(),Y2=531469}});function FMe(e){switch(e){case 99:case 7:case 6:case 5:return LU;case 4:return Rse;case 100:case 199:return jse;default:return OU}}function jU(e,t,n){return{scriptTransformers:OMe(e,t,n),declarationTransformers:LMe(t)}}function OMe(e,t,n){if(n)return Ve;let i=La(e),s=Ql(e),o=Uw(e),c=[];return Nr(c,t&&Kt(t.before,o2e)),c.push(yse),e.experimentalDecorators&&c.push(Sse),$5(e)&&c.push(Ise),i<99&&c.push(Pse),!e.experimentalDecorators&&(i<99||!o)&&c.push(xse),c.push(vse),i<8&&c.push(Dse),i<7&&c.push(Ese),i<6&&c.push(Cse),i<5&&c.push(kse),i<4&&c.push(Tse),i<3&&c.push(Fse),i<2&&(c.push(Ose),c.push(Mse)),c.push(FMe(s)),i<1&&c.push(Lse),Nr(c,t&&Kt(t.after,o2e)),c}function LMe(e){let t=[];return t.push(RU),Nr(t,e&&Kt(e.afterDeclarations,RMe)),t}function MMe(e){return t=>eW(t)?e.transformBundle(t):e.transformSourceFile(t)}function a2e(e,t){return n=>{let i=e(n);return typeof i=="function"?t(n,i):MMe(i)}}function o2e(e){return a2e(e,Zp)}function RMe(e){return a2e(e,(t,n)=>n)}function C3(e,t){return t}function iA(e,t,n){n(e,t)}function sA(e,t,n,i,s,o,c){var u,f;let g=new Array(363),p,y,S,x=0,C=[],w=[],D=[],O=[],z=0,V=!1,X=[],J=0,ie,B,Z=C3,ae=iA,_e=0,$=[],H={factory:n,getCompilerOptions:()=>i,getEmitResolver:()=>e,getEmitHost:()=>t,getEmitHelperFactory:Yu(()=>ore(H)),startLexicalEnvironment:me,suspendLexicalEnvironment:Oe,resumeLexicalEnvironment:Qe,endLexicalEnvironment:at,setLexicalEnvironmentFlags:ht,getLexicalEnvironmentFlags:Je,hoistVariableDeclaration:be,hoistFunctionDeclaration:_t,addInitializationStatement:mt,startBlockScope:lt,endBlockScope:Jt,addBlockScopedVariable:Gt,requestEmitHelper:Tn,readEmitHelpers:Un,enableSubstitution:Y,enableEmitNotification:Me,isSubstitutionEnabled:ve,isEmitNotificationEnabled:ke,get onSubstituteNode(){return Z},set onSubstituteNode(zt){E.assert(_e<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(zt!==void 0,"Value must not be 'undefined'"),Z=zt},get onEmitNode(){return ae},set onEmitNode(zt){E.assert(_e<1,"Cannot modify transformation hooks after initialization has completed."),E.assert(zt!==void 0,"Value must not be 'undefined'"),ae=zt},addDiagnostic(zt){$.push(zt)}};for(let zt of s)MV(Mn(ls(zt)));Fo("beforeTransform");let K=o.map(zt=>zt(H)),oe=zt=>{for(let Ft of K)zt=Ft(zt);return zt};_e=1;let Se=[];for(let zt of s)(u=Wn)==null||u.push(Wn.Phase.Emit,"transformNodes",zt.kind===312?{path:zt.path}:{kind:zt.kind,pos:zt.pos,end:zt.end}),Se.push((c?oe:se)(zt)),(f=Wn)==null||f.pop();return _e=2,Fo("afterTransform"),gf("transformTime","beforeTransform","afterTransform"),{transformed:Se,substituteNode:xe,emitNodeWithNotification:he,isEmitNotificationEnabled:ke,dispose:cn,diagnostics:$};function se(zt){return zt&&(!Li(zt)||!zt.isDeclarationFile)?oe(zt):zt}function Y(zt){E.assert(_e<2,"Cannot modify the transformation context after transformation has completed."),g[zt]|=1}function ve(zt){return(g[zt.kind]&1)!==0&&(Sa(zt)&8)===0}function xe(zt,Ft){return E.assert(_e<3,"Cannot substitute a node after the result is disposed."),Ft&&ve(Ft)&&Z(zt,Ft)||Ft}function Me(zt){E.assert(_e<2,"Cannot modify the transformation context after transformation has completed."),g[zt]|=2}function ke(zt){return(g[zt.kind]&2)!==0||(Sa(zt)&4)!==0}function he(zt,Ft,Lr){E.assert(_e<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Ft&&(ke(Ft)?ae(zt,Ft,Lr):Lr(zt,Ft))}function be(zt){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed.");let Ft=$n(n.createVariableDeclaration(zt),128);p?p.push(Ft):p=[Ft],x&1&&(x|=2)}function _t(zt){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),$n(zt,2097152),y?y.push(zt):y=[zt]}function mt(zt){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),$n(zt,2097152),S?S.push(zt):S=[zt]}function me(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!V,"Lexical environment is suspended."),C[z]=p,w[z]=y,D[z]=S,O[z]=x,z++,p=void 0,y=void 0,S=void 0,x=0}function Oe(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!V,"Lexical environment is already suspended."),V=!0}function Qe(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(V,"Lexical environment is not suspended."),V=!1}function at(){E.assert(_e>0,"Cannot modify the lexical environment during initialization."),E.assert(_e<2,"Cannot modify the lexical environment after transformation has completed."),E.assert(!V,"Lexical environment is suspended.");let zt;if(p||y||S){if(y&&(zt=[...y]),p){let Ft=n.createVariableStatement(void 0,n.createVariableDeclarationList(p));$n(Ft,2097152),zt?zt.push(Ft):zt=[Ft]}S&&(zt?zt=[...zt,...S]:zt=[...S])}return z--,p=C[z],y=w[z],S=D[z],x=O[z],z===0&&(C=[],w=[],D=[],O=[]),zt}function ht(zt,Ft){x=Ft?x|zt:x&~zt}function Je(){return x}function lt(){E.assert(_e>0,"Cannot start a block scope during initialization."),E.assert(_e<2,"Cannot start a block scope after transformation has completed."),X[J]=ie,J++,ie=void 0}function Jt(){E.assert(_e>0,"Cannot end a block scope during initialization."),E.assert(_e<2,"Cannot end a block scope after transformation has completed.");let zt=ft(ie)?[n.createVariableStatement(void 0,n.createVariableDeclarationList(ie.map(Ft=>n.createVariableDeclaration(Ft)),1))]:void 0;return J--,ie=X[J],J===0&&(X=[]),zt}function Gt(zt){E.assert(J>0,"Cannot add a block scoped variable outside of an iteration body."),(ie||(ie=[])).push(zt)}function Tn(zt){if(E.assert(_e>0,"Cannot modify the transformation context during initialization."),E.assert(_e<2,"Cannot modify the transformation context after transformation has completed."),E.assert(!zt.scoped,"Cannot request a scoped emit helper."),zt.dependencies)for(let Ft of zt.dependencies)Tn(Ft);B=_n(B,zt)}function Un(){E.assert(_e>0,"Cannot modify the transformation context during initialization."),E.assert(_e<2,"Cannot modify the transformation context after transformation has completed.");let zt=B;return B=void 0,zt}function cn(){if(_e<3){for(let zt of s)MV(Mn(ls(zt)));p=void 0,C=void 0,y=void 0,w=void 0,Z=void 0,ae=void 0,B=void 0,_e=3}}}var BU,yd,jMe=ze({"src/compiler/transformer.ts"(){"use strict";Rs(),u2(),BU={scriptTransformers:Ve,declarationTransformers:Ve},yd={factory:I,getCompilerOptions:()=>({}),getEmitResolver:Ts,getEmitHost:Ts,getEmitHelperFactory:Ts,startLexicalEnvironment:Fa,resumeLexicalEnvironment:Fa,suspendLexicalEnvironment:Fa,endLexicalEnvironment:Zy,setLexicalEnvironmentFlags:Fa,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Fa,hoistFunctionDeclaration:Fa,addInitializationStatement:Fa,startBlockScope:Fa,endBlockScope:Zy,addBlockScopedVariable:Fa,requestEmitHelper:Fa,readEmitHelpers:Ts,enableSubstitution:Fa,enableEmitNotification:Fa,isSubstitutionEnabled:Ts,isEmitNotificationEnabled:Ts,onSubstituteNode:C3,onEmitNode:iA,addDiagnostic:Fa}}});function Vse(e){return nc(e,".tsbuildinfo")}function JU(e,t,n,i=!1,s,o){let c=ss(n)?n:Nz(e,n,i),u=e.getCompilerOptions();if(lo(u)){let f=e.getPrependNodes();if(c.length||f.length){let g=I.createBundle(c,f),p=t(D3(g,e,i),g);if(p)return p}}else{if(!s)for(let f of c){let g=t(D3(f,e,i),f);if(g)return g}if(o){let f=i0(u);if(f)return t({buildInfoPath:f},void 0)}}}function i0(e){let t=e.configFilePath;if(!Ww(e))return;if(e.tsBuildInfoFile)return e.tsBuildInfoFile;let n=lo(e),i;if(n)i=zu(n);else{if(!t)return;let s=zu(t);i=e.outDir?e.rootDir?V0(e.outDir,Em(e.rootDir,s,!0)):Qr(e.outDir,Mc(s)):s}return i+".tsbuildinfo"}function E3(e,t){let n=lo(e),i=e.emitDeclarationOnly?void 0:n,s=i&&c2e(i,e),o=t||qf(e)?zu(n)+".d.ts":void 0,c=o&&q5(e)?o+".map":void 0,u=i0(e);return{jsFilePath:i,sourceMapFilePath:s,declarationFilePath:o,declarationMapPath:c,buildInfoPath:u}}function D3(e,t,n){let i=t.getCompilerOptions();if(e.kind===313)return E3(i,n);{let s=Ite(e.fileName,t,o9(e.fileName,i)),o=dp(e),c=o&&t1(e.fileName,s,t.getCurrentDirectory(),!t.useCaseSensitiveFileNames())===0,u=i.emitDeclarationOnly||c?void 0:s,f=!u||dp(e)?void 0:c2e(u,i),g=n||qf(i)&&!o?Fte(e.fileName,t):void 0,p=g&&q5(i)?g+".map":void 0;return{jsFilePath:u,sourceMapFilePath:f,declarationFilePath:g,declarationMapPath:p,buildInfoPath:void 0}}}function c2e(e,t){return t.sourceMap&&!t.inlineSourceMap?e+".map":void 0}function o9(e,t){return nc(e,".json")?".json":t.jsx===1&&$c(e,[".jsx",".tsx"])?".jsx":$c(e,[".mts",".mjs"])?".mjs":$c(e,[".cts",".cjs"])?".cjs":".js"}function l2e(e,t,n,i,s){return i?V0(i,Em(s?s():A3(t,n),e,n)):e}function P3(e,t,n,i){return g1(l2e(e,t,n,t.options.declarationDir||t.options.outDir,i),Fw(e))}function u2e(e,t,n,i){if(t.options.emitDeclarationOnly)return;let s=nc(e,".json"),o=g1(l2e(e,t,n,t.options.outDir,i),o9(e,t.options));return!s||t1(e,o,E.checkDefined(t.options.configFilePath),n)!==0?o:void 0}function _2e(){let e;return{addOutput:t,getOutputs:n};function t(i){i&&(e||(e=[])).push(i)}function n(){return e||Ve}}function f2e(e,t){let{jsFilePath:n,sourceMapFilePath:i,declarationFilePath:s,declarationMapPath:o,buildInfoPath:c}=E3(e.options,!1);t(n),t(i),t(s),t(o),t(c)}function p2e(e,t,n,i,s){if(Jl(t))return;let o=u2e(t,e,n,s);if(i(o),!nc(t,".json")&&(o&&e.options.sourceMap&&i(`${o}.map`),qf(e.options))){let c=P3(t,e,n,s);i(c),e.options.declarationMap&&i(`${c}.map`)}}function w3(e,t,n,i,s){let o;return e.rootDir?(o=cs(e.rootDir,n),s?.(e.rootDir)):e.composite&&e.configFilePath?(o=Xr(Su(e.configFilePath)),s?.(o)):o=$se(t(),n,i),o&&o[o.length-1]!==Oo&&(o+=Oo),o}function A3({options:e,fileNames:t},n){return w3(e,()=>Fr(t,i=>!(e.noEmitForJsFiles&&$c(i,hC))&&!Jl(i)),Xr(Su(E.checkDefined(e.configFilePath))),cu(!n))}function c9(e,t){let{addOutput:n,getOutputs:i}=_2e();if(lo(e.options))f2e(e,n);else{let s=Yu(()=>A3(e,t));for(let o of e.fileNames)p2e(e,o,t,n,s);n(i0(e.options))}return i()}function d2e(e,t,n){t=Ys(t),E.assert(gs(e.fileNames,t),"Expected fileName to be present in command line");let{addOutput:i,getOutputs:s}=_2e();return lo(e.options)?f2e(e,i):p2e(e,t,n,i),s()}function zU(e,t){if(lo(e.options)){let{jsFilePath:s,declarationFilePath:o}=E3(e.options,!1);return E.checkDefined(s||o,`project ${e.options.configFilePath} expected to have at least one output`)}let n=Yu(()=>A3(e,t));for(let s of e.fileNames){if(Jl(s))continue;let o=u2e(s,e,t,n);if(o)return o;if(!nc(s,".json")&&qf(e.options))return P3(s,e,t,n)}let i=i0(e.options);return i||E.fail(`project ${e.options.configFilePath} expected to have at least one output`)}function l9(e,t,n,{scriptTransformers:i,declarationTransformers:s},o,c,u){var f=t.getCompilerOptions(),g=f.sourceMap||f.inlineSourceMap||q5(f)?[]:void 0,p=f.listEmittedFiles?[]:void 0,y=iC(),S=Yh(f),x=Nw(S),{enter:C,exit:w}=$j("printTime","beforePrint","afterPrint"),D,O=!1;return C(),JU(t,z,Nz(t,n,u),u,c,!n),w(),{emitSkipped:O,diagnostics:y.getDiagnostics(),emittedFiles:p,sourceMaps:g};function z({jsFilePath:H,sourceMapFilePath:K,declarationFilePath:oe,declarationMapPath:Se,buildInfoPath:se},Y){var ve,xe,Me,ke,he,be;let _t;se&&Y&&eW(Y)&&(_t=Xr(cs(se,t.getCurrentDirectory())),D={commonSourceDirectory:mt(t.getCommonSourceDirectory()),sourceFiles:Y.sourceFiles.map(me=>mt(cs(me.fileName,t.getCurrentDirectory())))}),(ve=Wn)==null||ve.push(Wn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:H}),X(Y,H,K,mt),(xe=Wn)==null||xe.pop(),(Me=Wn)==null||Me.push(Wn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:oe}),J(Y,oe,Se,mt),(ke=Wn)==null||ke.pop(),(he=Wn)==null||he.push(Wn.Phase.Emit,"emitBuildInfo",{buildInfoPath:se}),V(D,se),(be=Wn)==null||be.pop(),!O&&p&&(o||(H&&p.push(H),K&&p.push(K),se&&p.push(se)),o!==0&&(oe&&p.push(oe),Se&&p.push(Se)));function mt(me){return Cv(Em(_t,me,t.getCanonicalFileName))}}function V(H,K){if(!K||n||O)return;if(t.isEmitBlocked(K)){O=!0;return}let oe=t.getBuildInfo(H)||aA(void 0,H);mE(t,y,K,Wse(oe),!1,void 0,{buildInfo:oe})}function X(H,K,oe,Se){if(!H||o||!K)return;if(t.isEmitBlocked(K)||f.noEmit){O=!0;return}let se=sA(e,t,I,f,[H],i,!1),Y={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:f.noEmitHelpers,module:f.module,target:f.target,sourceMap:f.sourceMap,inlineSourceMap:f.inlineSourceMap,inlineSources:f.inlineSources,extendedDiagnostics:f.extendedDiagnostics,writeBundleFileInfo:!!D,relativeToBuildInfo:Se},ve=N1(Y,{hasGlobalName:e.hasGlobalName,onEmitNode:se.emitNodeWithNotification,isEmitNotificationEnabled:se.isEmitNotificationEnabled,substituteNode:se.substituteNode});E.assert(se.transformed.length===1,"Should only see one output from the transform"),B(K,oe,se,ve,f),se.dispose(),D&&(D.js=ve.bundleFileInfo)}function J(H,K,oe,Se){if(!H||o===0)return;if(!K){(o||f.emitDeclarationOnly)&&(O=!0);return}let se=Li(H)?[H]:H.sourceFiles,Y=u?se:Fr(se,az),ve=lo(f)?[I.createBundle(Y,Li(H)?void 0:H.prepends)]:Y;o&&!qf(f)&&Y.forEach(ie);let xe=sA(e,t,I,f,ve,s,!1);if(bn(xe.diagnostics))for(let be of xe.diagnostics)y.add(be);let Me={removeComments:f.removeComments,newLine:f.newLine,noEmitHelpers:!0,module:f.module,target:f.target,sourceMap:!u&&f.declarationMap,inlineSourceMap:f.inlineSourceMap,extendedDiagnostics:f.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!D,recordInternalSection:!!D,relativeToBuildInfo:Se},ke=N1(Me,{hasGlobalName:e.hasGlobalName,onEmitNode:xe.emitNodeWithNotification,isEmitNotificationEnabled:xe.isEmitNotificationEnabled,substituteNode:xe.substituteNode}),he=!!xe.diagnostics&&!!xe.diagnostics.length||!!t.isEmitBlocked(K)||!!f.noEmit;O=O||he,(!he||u)&&(E.assert(xe.transformed.length===1,"Should only see one output from the decl transform"),B(K,oe,xe,ke,{sourceMap:Me.sourceMap,sourceRoot:f.sourceRoot,mapRoot:f.mapRoot,extendedDiagnostics:f.extendedDiagnostics})),xe.dispose(),D&&(D.dts=ke.bundleFileInfo)}function ie(H){if(hc(H)){H.expression.kind===80&&e.collectLinkedAliases(H.expression,!0);return}else if(Eu(H)){e.collectLinkedAliases(H.propertyName||H.name,!0);return}vs(H,ie)}function B(H,K,oe,Se,se){let Y=oe.transformed[0],ve=Y.kind===313?Y:void 0,xe=Y.kind===312?Y:void 0,Me=ve?ve.sourceFiles:[xe],ke;Z(se,Y)&&(ke=ese(t,Mc(Su(H)),ae(se),_e(se,H,xe),se)),ve?Se.writeBundle(ve,x,ke):Se.writeFile(xe,x,ke);let he;if(ke){g&&g.push({inputSourceFileNames:ke.getSources(),sourceMap:ke.toJSON()});let _t=$(se,ke,H,K,xe);if(_t&&(x.isAtStartOfLine()||x.rawWrite(S),he=x.getTextPos(),x.writeComment(`//# sourceMappingURL=${_t}`)),K){let mt=ke.toString();mE(t,y,K,mt,!1,Me),Se.bundleFileInfo&&(Se.bundleFileInfo.mapHash=K2(mt,t))}}else x.writeLine();let be=x.getText();mE(t,y,H,be,!!f.emitBOM,Me,{sourceMapUrlPos:he,diagnostics:oe.diagnostics}),Se.bundleFileInfo&&(Se.bundleFileInfo.hash=K2(be,t)),x.clear()}function Z(H,K){return(H.sourceMap||H.inlineSourceMap)&&(K.kind!==312||!nc(K.fileName,".json"))}function ae(H){let K=Su(H.sourceRoot||"");return K&&wl(K)}function _e(H,K,oe){if(H.sourceRoot)return t.getCommonSourceDirectory();if(H.mapRoot){let Se=Su(H.mapRoot);return oe&&(Se=Xr(w5(oe.fileName,t,Se))),km(Se)===0&&(Se=Qr(t.getCommonSourceDirectory(),Se)),Se}return Xr(Ys(K))}function $(H,K,oe,Se,se){if(H.inlineSourceMap){let ve=K.toString();return`data:application/json;base64,${Kte(Hl,ve)}`}let Y=Mc(Su(E.checkDefined(Se)));if(H.mapRoot){let ve=Su(H.mapRoot);return se&&(ve=Xr(w5(se.fileName,t,ve))),km(ve)===0?(ve=Qr(t.getCommonSourceDirectory(),ve),encodeURI(px(Xr(Ys(oe)),Qr(ve,Y),t.getCurrentDirectory(),t.getCanonicalFileName,!0))):encodeURI(Qr(ve,Y))}return encodeURI(Y)}}function aA(e,t){return{bundle:t,program:e,version:ps}}function Wse(e){return JSON.stringify(e)}function u9(e,t){return zz(e,t)}function BMe(e,t,n){var i;let s=E.checkDefined(e.js),o=((i=s.sources)==null?void 0:i.prologues)&&jh(s.sources.prologues,c=>c.file);return e.sourceFiles.map((c,u)=>{let f=o?.get(u),g=f?.directives.map(S=>{let x=nt(I.createStringLiteral(S.expression.text),S.expression),C=nt(I.createExpressionStatement(x),S);return Ta(x,C),C}),p=I.createToken(1),y=I.createSourceFile(g??[],p,0);return y.fileName=Em(n.getCurrentDirectory(),cs(c,t),!n.useCaseSensitiveFileNames()),y.text=f?.text??"",LE(y,0,f?.text.length??0),dC(y.statements,y),LE(p,y.end,0),Ta(p,y),y})}function Use(e,t,n,i){var s,o;(s=Wn)==null||s.push(Wn.Phase.Emit,"emitUsingBuildInfo",{},!0),Fo("beforeEmit");let c=JMe(e,t,n,i);return Fo("afterEmit"),gf("Emit","beforeEmit","afterEmit"),(o=Wn)==null||o.pop(),c}function JMe(e,t,n,i){let{buildInfoPath:s,jsFilePath:o,sourceMapFilePath:c,declarationFilePath:u,declarationMapPath:f}=E3(e.options,!1),g=t.getBuildInfo(s,e.options.configFilePath);if(!g||!g.bundle||!g.bundle.js||u&&!g.bundle.dts)return s;let p=t.readFile(E.checkDefined(o));if(!p||K2(p,t)!==g.bundle.js.hash)return o;let y=c&&t.readFile(c);if(c&&!y||e.options.inlineSourceMap)return c||"inline sourcemap decoding";if(c&&K2(y,t)!==g.bundle.js.mapHash)return c;let S=u&&t.readFile(u);if(u&&!S||u&&K2(S,t)!==g.bundle.dts.hash)return u;let x=f&&t.readFile(f);if(f&&!x||e.options.inlineSourceMap)return f||"inline sourcemap decoding";if(f&&K2(x,t)!==g.bundle.dts.mapHash)return f;let C=Xr(cs(s,t.getCurrentDirectory())),w=OV(o,p,c,y,u,S,f,x,s,g,!0),D=[],O=cq(e.projectReferences,n,ie=>t.readFile(ie),t),z=BMe(g.bundle,C,t),V,X,J={getPrependNodes:Yu(()=>[...O,w]),getCanonicalFileName:t.getCanonicalFileName,getCommonSourceDirectory:()=>cs(g.bundle.commonSourceDirectory,C),getCompilerOptions:()=>e.options,getCurrentDirectory:()=>t.getCurrentDirectory(),getSourceFile:Zy,getSourceFileByPath:Zy,getSourceFiles:()=>z,getLibFileFromReference:Ts,isSourceFileFromExternalLibrary:ld,getResolvedProjectReferenceToRedirect:Zy,getProjectReferenceRedirect:Zy,isSourceOfProjectReferenceRedirect:ld,writeFile:(ie,B,Z,ae,_e,$)=>{switch(ie){case o:if(p===B)return;break;case c:if(y===B)return;break;case s:break;case u:if(S===B)return;V=B,X=$;break;case f:if(x===B)return;break;default:E.fail(`Unexpected path: ${ie}`)}D.push({name:ie,text:B,writeByteOrderMark:Z,data:$})},isEmitBlocked:ld,readFile:ie=>t.readFile(ie),fileExists:ie=>t.fileExists(ie),useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames(),getBuildInfo:ie=>{let B=g.program;B&&V!==void 0&&e.options.composite&&(B.outSignature=K2(V,t,X));let{js:Z,dts:ae,sourceFiles:_e}=g.bundle;return ie.js.sources=Z.sources,ae&&(ie.dts.sources=ae.sources),ie.sourceFiles=_e,aA(B,ie)},getSourceFileFromReference:Zy,redirectTargetsMap:mf(),getFileIncludeReasons:Ts,createHash:Js(t,t.createHash)};return l9(_9,J,void 0,jU(e.options,i)),D}function N1(e={},t={}){var{hasGlobalName:n,onEmitNode:i=iA,isEmitNotificationEnabled:s,substituteNode:o=C3,onBeforeEmitNode:c,onAfterEmitNode:u,onBeforeEmitNodeArray:f,onAfterEmitNodeArray:g,onBeforeEmitToken:p,onAfterEmitToken:y}=t,S=!!e.extendedDiagnostics,x=!!e.omitBraceSourceMapPositions,C=Yh(e),w=Ql(e),D=new Map,O,z,V,X,J,ie,B,Z,ae,_e,$,H,K,oe,Se,se=e.preserveSourceNewlines,Y,ve,xe,Me=dD,ke,he=e.writeBundleFileInfo?{sections:[]}:void 0,be=he?E.checkDefined(e.relativeToBuildInfo):void 0,_t=e.recordInternalSection,mt=0,me="text",Oe=!0,Qe,at,ht=-1,Je,lt=-1,Jt=-1,Gt=-1,Tn=-1,Un,cn,zt=!1,Ft=!!e.removeComments,Lr,ji,{enter:ii,exit:Hi}=qhe(S,"commentTime","beforeComment","afterComment"),Ye=I.parenthesizer,fn={select:k=>k===0?Ye.parenthesizeLeadingTypeArgument:void 0},An=Ag();return vt(),{printNode:Ot,printList:Sn,printFile:Kn,printBundle:Cn,writeNode:Wi,writeList:Ii,writeFile:gt,writeBundle:it,bundleFileInfo:he};function Ot(k,te,ct){switch(k){case 0:E.assert(Li(te),"Expected a SourceFile node.");break;case 2:E.assert(Ie(te),"Expected an Identifier node.");break;case 1:E.assert(ut(te),"Expected an Expression node.");break}switch(te.kind){case 312:return Kn(te);case 313:return Cn(te);case 314:return Fi(te)}return Wi(k,te,ct,fe()),we()}function Sn(k,te,ct){return Ii(k,te,ct,fe()),we()}function Cn(k){return it(k,fe(),void 0),we()}function Kn(k){return gt(k,fe(),void 0),we()}function Fi(k){return dt(k,fe()),we()}function Wi(k,te,ct,$t){let hr=ve;G($t,void 0),Be(k,te,ct),vt(),ve=hr}function Ii(k,te,ct,$t){let hr=ve;G($t,void 0),ct&&yt(ct),fo(void 0,te,k),vt(),ve=hr}function Ki(){return ve.getTextPosWithWriteLine?ve.getTextPosWithWriteLine():ve.getTextPos()}function na(k,te,ct){let $t=qo(he.sections);$t&&$t.kind===ct?$t.end=te:he.sections.push({pos:k,end:te,kind:ct})}function Fs(k){if(_t&&he&&O&&(ku(k)||uc(k))&&MU(k,O)&&me!=="internal"){let te=me;return Ue(ve.getTextPos()),mt=Ki(),me="internal",te}}function Ce(k){k&&(Ue(ve.getTextPos()),mt=Ki(),me=k)}function Ue(k){return mtE.assert(lne(Ls))),he.sections.push({pos:xi,end:ve.getTextPos(),kind:"prepend",data:be(hr.fileName),texts:zi}))}}mt=Ki();for(let hr of k.sourceFiles)Be(0,hr,hr);if(he&&k.sourceFiles.length){let hr=ve.getTextPos();if(Ue(hr)){let xi=R6(k);xi&&(he.sources||(he.sources={}),he.sources.prologues=xi);let ai=Mt(k);ai&&(he.sources||(he.sources={}),he.sources.helpers=ai)}}vt(),ve=$t}function dt(k,te){let ct=ve;G(te,void 0),Be(4,k,void 0),vt(),ve=ct}function gt(k,te,ct){ke=!0;let $t=ve;G(te,ct),wb(k),b0(k),Be(0,k,k),vt(),ve=$t}function fe(){return xe||(xe=Nw(C))}function we(){let k=xe.getText();return xe.clear(),k}function Be(k,te,ct){ct&&yt(ct),W(k,te,void 0)}function yt(k){O=k,Un=void 0,cn=void 0,k&&iv(k)}function G(k,te){k&&e.omitTrailingSemicolon&&(k=wz(k)),ve=k,Qe=te,Oe=!ve||!Qe}function vt(){z=[],V=[],X=[],J=new Set,ie=[],B=new Map,Z=[],ae=0,_e=[],$=0,H=[],K=void 0,oe=[],Se=void 0,O=void 0,Un=void 0,cn=void 0,G(void 0,void 0)}function wt(){return Un||(Un=Zg(E.checkDefined(O)))}function Re(k,te){if(k===void 0)return;let ct=Fs(k);W(4,k,te),Ce(ct)}function ot(k){k!==void 0&&W(2,k,void 0)}function Dt(k,te){k!==void 0&&W(1,k,te)}function Zt(k){W(ca(k)?6:4,k)}function tn(k){se&&Wp(k)&4&&(se=!1)}function ln(k){se=k}function W(k,te,ct){ji=ct,ee(0,k,te)(k,te),ji=void 0}function j(k){return!Ft&&!Li(k)}function ce(k){return!Oe&&!Li(k)&&!_5(k)&&!U2(k)&&!Pre(k)}function ee(k,te,ct){switch(k){case 0:if(i!==iA&&(!s||s(ct)))return M;case 1:if(o!==C3&&(Lr=o(te,ct)||ct)!==ct)return ji&&(Lr=ji(Lr)),St;case 2:if(j(ct))return qT;case 3:if(ce(ct))return PS;case 4:return De;default:return E.assertNever(k)}}function ue(k,te,ct){return ee(k+1,te,ct)}function M(k,te){let ct=ue(0,k,te);i(k,te,ct)}function De(k,te){if(c?.(te),se){let ct=se;tn(te),qe(k,te),ln(ct)}else qe(k,te);u?.(te),ji=void 0}function qe(k,te,ct=!0){if(ct){let $t=RV(te);if($t)return is(k,te,$t)}if(k===0)return SS(Vs(te,Li));if(k===2)return ua(Vs(te,Ie));if(k===6)return br(Vs(te,ca),!0);if(k===3)return Fe(Vs(te,Ko));if(k===5)return E.assertNode(te,YV),Bi(!0);if(k===4){switch(te.kind){case 16:case 17:case 18:return br(te,!1);case 80:return ua(te);case 81:return js(te);case 166:return Pn(te);case 167:return _s(te);case 168:return to(te);case 169:return fc(te);case 170:return ec(te);case 171:return gl(te);case 172:return Ho(te);case 173:return xs(te);case 174:return $s(te);case 175:return cl(te);case 176:return Do(te);case 177:case 178:return Xs(te);case 179:return Jc(te);case 180:return td(te);case 181:return zc(te);case 182:return as(te);case 183:return Ht(te);case 184:return Jo(te);case 185:return Ic(te);case 186:return A(te);case 187:return Pe(te);case 188:return He(te);case 189:return gn(te);case 190:return Zn(te);case 192:return Tr(te);case 193:return pi(te);case 194:return Dr(te);case 195:return Ea(te);case 196:return yc(te);case 233:return Pt(te);case 197:return ll();case 198:return _o(te);case 199:return ul(te);case 200:return ro(te);case 201:return Cl(te);case 202:return Ar(te);case 203:return t_(te);case 204:return ic(te);case 205:return Au(te);case 206:return Gf(te);case 207:return tu(te);case 208:return ye(te);case 239:return It(te);case 240:return Bo();case 241:return jn(te);case 243:return Vr(te);case 242:return Bi(!1);case 244:return _a(te);case 245:return fa(te);case 246:return nu(te);case 247:return hl(te);case 248:return If(te);case 249:return ha(te);case 250:return Dp(te);case 251:return Ng(te);case 252:return qm(te);case 253:return d0(te);case 254:return Ee(te);case 255:return We(te);case 256:return xt(te);case 257:return jt(te);case 258:return nn(te);case 259:return Bn(te);case 260:return sn(te);case 261:return En(te);case 262:return oi(te);case 263:return J1(te);case 264:return mh(te);case 265:return vy(te);case 266:return _S(te);case 267:return xb(te);case 268:return fS(te);case 269:return pS(te);case 270:return mS(te);case 271:return _D(te);case 272:return w6(te);case 273:return z1(te);case 274:return NT(te);case 280:return Tb(te);case 275:return IT(te);case 276:return A6(te);case 277:return dS(te);case 278:return N6(te);case 279:return kb(te);case 281:return V1(te);case 300:return FT(te);case 301:return OT(te);case 282:return;case 283:return em(te);case 12:return g0(te);case 286:case 289:return by(te);case 287:case 290:return Hm(te);case 291:return U_(te);case 292:return Qf(te);case 293:return i_(te);case 294:return LT(te);case 295:return hS(te);case 296:return U1(te);case 297:return yS(te);case 298:return Fl(te);case 299:return h0(te);case 303:return y0(te);case 304:return Ig(te);case 305:return je(te);case 306:return Vl(te);case 307:return Br(te);case 314:case 308:return jr(te);case 309:case 310:return Mi(te);case 311:return wr(te);case 312:return SS(te);case 313:return E.fail("Bundles should be printed using printBundle");case 315:return E.fail("InputFiles should not be printed");case 316:return Og(te);case 317:return v0(te);case 319:return rr("*");case 320:return rr("?");case 321:return qu(te);case 322:return h_(te);case 323:return Po(te);case 324:return nl(te);case 191:case 325:return kt(te);case 326:return;case 327:return Yf(te);case 329:return bS(te);case 330:return Db(te);case 334:case 339:case 344:return vS(te);case 335:case 336:return H1(te);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return ja(te);case 346:return Td(te);case 348:case 355:return Pb(te);case 347:case 349:case 350:case 351:case 356:case 357:return Hu(te);case 352:return Fg(te);case 353:return fD(te);case 354:return O6(te);case 359:return}if(ut(te)&&(k=1,o!==C3)){let $t=o(k,te)||te;$t!==te&&(te=$t,ji&&(te=ji(te)))}}if(k===1)switch(te.kind){case 9:case 10:return nr(te);case 11:case 14:case 15:return br(te,!1);case 80:return ua(te);case 81:return js(te);case 209:return Tt(te);case 210:return Ln(te);case 211:return Gi(te);case 212:return Bs(te);case 213:return vc(te);case 214:return Ec(te);case 215:return Go(te);case 216:return tc(te);case 217:return Fc(te);case 218:return pc(te);case 219:return Vc(te);case 220:return Nf(te);case 221:return n_(te);case 222:return $f(te);case 223:return wg(te);case 224:return Um(te);case 225:return du(te);case 226:return An(te);case 227:return V_(te);case 228:return Xf(te);case 229:return r_(te);case 230:return Q(te);case 231:return Ze(te);case 232:return;case 234:return At(te);case 235:return L(te);case 233:return Pt(te);case 238:return pe(te);case 236:return Ke(te);case 237:return E.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Ra(te);case 285:return gS(te);case 288:return I6(te);case 358:return E.fail("SyntaxList should not be printed");case 359:return;case 360:return Hr(te);case 361:return nm(te);case 362:return E.fail("SyntheticReferenceExpression should not be printed")}if(p_(te.kind))return JT(te,ns);if(SJ(te.kind))return JT(te,rr);E.fail(`Unhandled SyntaxKind: ${E.formatSyntaxKind(te.kind)}.`)}function Fe(k){Re(k.name),Hn(),ns("in"),Hn(),Re(k.constraint)}function St(k,te){let ct=ue(1,k,te);E.assertIsDefined(Lr),te=Lr,Lr=void 0,ct(k,te)}function Mt(k){let te;if(w===0||e.noEmitHelpers)return;let ct=new Map;for(let $t of k.sourceFiles){let hr=E8($t)!==void 0,xi=Rn($t);if(xi)for(let ai of xi)!ai.scoped&&!hr&&!ct.get(ai.name)&&(ct.set(ai.name,!0),(te||(te=[])).push(ai.name))}return te}function Wt(k){let te=!1,ct=k.kind===313?k:void 0;if(ct&&w===0)return;let $t=ct?ct.prepends.length:0,hr=ct?ct.sourceFiles.length+$t:1;for(let xi=0;xi"),Hn(),Re(k.type),w_(k)}function nl(k){ns("function"),S0(k,k.parameters),rr(":"),Re(k.type)}function qu(k){rr("?"),Re(k.type)}function h_(k){rr("!"),Re(k.type)}function Po(k){Re(k.type),rr("=")}function Ic(k){mu(k),gh(k,k.modifiers),ns("new"),Hn(),Xm(k,k.typeParameters),S0(k,k.parameters),Hn(),rr("=>"),Hn(),Re(k.type),w_(k)}function A(k){ns("typeof"),Hn(),Re(k.exprName),rm(k,k.typeArguments)}function Pe(k){Kf(0,void 0),rr("{");let te=Sa(k)&1?768:32897;fo(k,k.members,te|524288),rr("}"),K1()}function He(k){Re(k.elementType,Ye.parenthesizeNonArrayTypeOfPostfixType),rr("["),rr("]")}function kt(k){rr("..."),Re(k.type)}function gn(k){wi(23,k.pos,rr,k);let te=Sa(k)&1?528:657;fo(k,k.elements,te|524288,Ye.parenthesizeElementTypeOfTupleType),wi(24,k.elements.end,rr,k)}function Ar(k){Re(k.dotDotDotToken),Re(k.name),Re(k.questionToken),wi(59,k.name.end,rr,k),Hn(),Re(k.type)}function Zn(k){Re(k.type,Ye.parenthesizeTypeOfOptionalType),rr("?")}function Tr(k){fo(k,k.types,516,Ye.parenthesizeConstituentTypeOfUnionType)}function pi(k){fo(k,k.types,520,Ye.parenthesizeConstituentTypeOfIntersectionType)}function Dr(k){Re(k.checkType,Ye.parenthesizeCheckTypeOfConditionalType),Hn(),ns("extends"),Hn(),Re(k.extendsType,Ye.parenthesizeExtendsTypeOfConditionalType),Hn(),rr("?"),Hn(),Re(k.trueType),Hn(),rr(":"),Hn(),Re(k.falseType)}function Ea(k){ns("infer"),Hn(),Re(k.typeParameter)}function yc(k){rr("("),Re(k.type),rr(")")}function ll(){ns("this")}function _o(k){hh(k.operator,ns),Hn();let te=k.operator===148?Ye.parenthesizeOperandOfReadonlyTypeOperator:Ye.parenthesizeOperandOfTypeOperator;Re(k.type,te)}function ul(k){Re(k.objectType,Ye.parenthesizeNonArrayTypeOfPostfixType),rr("["),Re(k.indexType),rr("]")}function ro(k){let te=Sa(k);rr("{"),te&1?Hn():(El(),sm()),k.readonlyToken&&(Re(k.readonlyToken),k.readonlyToken.kind!==148&&ns("readonly"),Hn()),rr("["),W(3,k.typeParameter),k.nameType&&(Hn(),ns("as"),Hn(),Re(k.nameType)),rr("]"),k.questionToken&&(Re(k.questionToken),k.questionToken.kind!==58&&rr("?")),rr(":"),Hn(),Re(k.type),ru(),te&1?Hn():(El(),am()),fo(k,k.members,2),rr("}")}function Cl(k){Dt(k.literal)}function t_(k){Re(k.head),fo(k,k.templateSpans,262144)}function Au(k){if(k.isTypeOf&&(ns("typeof"),Hn()),ns("import"),rr("("),Re(k.argument),k.attributes){rr(","),Hn(),rr("{"),Hn(),ns(k.attributes.token===132?"assert":"with"),rr(":"),Hn();let te=k.attributes.elements;fo(k.attributes,te,526226),Hn(),rr("}")}rr(")"),k.qualifier&&(rr("."),Re(k.qualifier)),rm(k,k.typeArguments)}function Gf(k){rr("{"),fo(k,k.elements,525136),rr("}")}function tu(k){rr("["),fo(k,k.elements,524880),rr("]")}function ye(k){Re(k.dotDotDotToken),k.propertyName&&(Re(k.propertyName),rr(":"),Hn()),Re(k.name),Lg(k.initializer,k.name.end,k,Ye.parenthesizeExpressionForDisallowedComma)}function Tt(k){let te=k.elements,ct=k.multiLine?65536:0;Ab(k,te,8914|ct,Ye.parenthesizeExpressionForDisallowedComma)}function Ln(k){Kf(0,void 0),Qt(k.properties,ES);let te=Sa(k)&131072;te&&sm();let ct=k.multiLine?65536:0,$t=O&&O.languageVersion>=1&&!dp(O)?64:0;fo(k,k.properties,526226|$t|ct),te&&am(),K1()}function Gi(k){Dt(k.expression,Ye.parenthesizeLeftSideOfAccess);let te=k.questionDotToken||Lm(I.createToken(25),k.expression.end,k.name.pos),ct=Zf(k,k.expression,te),$t=Zf(k,te,k.name);Rg(ct,!1),te.kind!==29&&Os(k.expression)&&!ve.hasTrailingComment()&&!ve.hasTrailingWhitespace()&&rr("."),k.questionDotToken?Re(te):wi(te.kind,k.expression.end,rr,k),Rg($t,!1),Re(k.name),Qm(ct,$t)}function Os(k){if(k=Vp(k),R_(k)){let te=VT(k,!0,!1);return!(k.numericLiteralFlags&448)&&!te.includes(Zs(25))&&!te.includes("E")&&!te.includes("e")}else if(ho(k)){let te=ere(k);return typeof te=="number"&&isFinite(te)&&te>=0&&Math.floor(te)===te}}function Bs(k){Dt(k.expression,Ye.parenthesizeLeftSideOfAccess),Re(k.questionDotToken),wi(23,k.expression.end,rr,k),Dt(k.argumentExpression),wi(24,k.argumentExpression.end,rr,k)}function vc(k){let te=Wp(k)&16;te&&(rr("("),$1("0"),rr(","),Hn()),Dt(k.expression,Ye.parenthesizeLeftSideOfAccess),te&&rr(")"),Re(k.questionDotToken),rm(k,k.typeArguments),Ab(k,k.arguments,2576,Ye.parenthesizeExpressionForDisallowedComma)}function Ec(k){wi(105,k.pos,ns,k),Hn(),Dt(k.expression,Ye.parenthesizeExpressionOfNew),rm(k,k.typeArguments),Ab(k,k.arguments,18960,Ye.parenthesizeExpressionForDisallowedComma)}function Go(k){let te=Wp(k)&16;te&&(rr("("),$1("0"),rr(","),Hn()),Dt(k.tag,Ye.parenthesizeLeftSideOfAccess),te&&rr(")"),rm(k,k.typeArguments),Hn(),Dt(k.template)}function tc(k){rr("<"),Re(k.type),rr(">"),Dt(k.expression,Ye.parenthesizeOperandOfPrefixUnary)}function Fc(k){let te=wi(21,k.pos,rr,k),ct=zT(k.expression,k);Dt(k.expression,void 0),CS(k.expression,k),Qm(ct),wi(22,k.expression?k.expression.end:te,rr,k)}function pc(k){Np(k.name),mr(k)}function Vc(k){gh(k,k.modifiers),gr(k,Ep)}function Ep(k){Xm(k,k.typeParameters),MT(k,k.parameters),Gm(k.type),Hn(),Re(k.equalsGreaterThanToken)}function Nf(k){wi(91,k.pos,ns,k),Hn(),Dt(k.expression,Ye.parenthesizeOperandOfPrefixUnary)}function n_(k){wi(114,k.pos,ns,k),Hn(),Dt(k.expression,Ye.parenthesizeOperandOfPrefixUnary)}function $f(k){wi(116,k.pos,ns,k),Hn(),Dt(k.expression,Ye.parenthesizeOperandOfPrefixUnary)}function wg(k){wi(135,k.pos,ns,k),Hn(),Dt(k.expression,Ye.parenthesizeOperandOfPrefixUnary)}function Um(k){hh(k.operator,y_),p0(k)&&Hn(),Dt(k.operand,Ye.parenthesizeOperandOfPrefixUnary)}function p0(k){let te=k.operand;return te.kind===224&&(k.operator===40&&(te.operator===40||te.operator===46)||k.operator===41&&(te.operator===41||te.operator===47))}function du(k){Dt(k.operand,Ye.parenthesizeOperandOfPostfixUnary),hh(k.operator,y_)}function Ag(){return hO(k,te,ct,$t,hr,void 0);function k(ai,zi){if(zi){zi.stackIndex++,zi.preserveSourceNewlinesStack[zi.stackIndex]=se,zi.containerPosStack[zi.stackIndex]=Jt,zi.containerEndStack[zi.stackIndex]=Gt,zi.declarationListContainerEndStack[zi.stackIndex]=Tn;let Ls=zi.shouldEmitCommentsStack[zi.stackIndex]=j(ai),A_=zi.shouldEmitSourceMapsStack[zi.stackIndex]=ce(ai);c?.(ai),Ls&&HT(ai),A_&&q6(ai),tn(ai)}else zi={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return zi}function te(ai,zi,Ls){return xi(ai,Ls,"left")}function ct(ai,zi,Ls){let A_=ai.kind!==28,H_=Zf(Ls,Ls.left,ai),ci=Zf(Ls,ai,Ls.right);Rg(H_,A_),Lf(ai.pos),JT(ai,ai.kind===103?ns:y_),rd(ai.end,!0),Rg(ci,!0)}function $t(ai,zi,Ls){return xi(ai,Ls,"right")}function hr(ai,zi){let Ls=Zf(ai,ai.left,ai.operatorToken),A_=Zf(ai,ai.operatorToken,ai.right);if(Qm(Ls,A_),zi.stackIndex>0){let H_=zi.preserveSourceNewlinesStack[zi.stackIndex],ci=zi.containerPosStack[zi.stackIndex],cm=zi.containerEndStack[zi.stackIndex],hn=zi.declarationListContainerEndStack[zi.stackIndex],wy=zi.shouldEmitCommentsStack[zi.stackIndex],C0=zi.shouldEmitSourceMapsStack[zi.stackIndex];ln(H_),C0&&tp(ai),wy&>(ai,ci,cm,hn),u?.(ai),zi.stackIndex--}}function xi(ai,zi,Ls){let A_=Ls==="left"?Ye.getParenthesizeLeftSideOfBinaryForOperator(zi.operatorToken.kind):Ye.getParenthesizeRightSideOfBinaryForOperator(zi.operatorToken.kind),H_=ee(0,1,ai);if(H_===St&&(E.assertIsDefined(Lr),ai=A_(Vs(Lr,ut)),H_=ue(1,1,ai),Lr=void 0),(H_===qT||H_===PS||H_===De)&&Yn(ai))return ai;ji=A_,H_(1,ai)}}function V_(k){let te=Zf(k,k.condition,k.questionToken),ct=Zf(k,k.questionToken,k.whenTrue),$t=Zf(k,k.whenTrue,k.colonToken),hr=Zf(k,k.colonToken,k.whenFalse);Dt(k.condition,Ye.parenthesizeConditionOfConditionalExpression),Rg(te,!0),Re(k.questionToken),Rg(ct,!0),Dt(k.whenTrue,Ye.parenthesizeBranchOfConditionalExpression),Qm(te,ct),Rg($t,!0),Re(k.colonToken),Rg(hr,!0),Dt(k.whenFalse,Ye.parenthesizeBranchOfConditionalExpression),Qm($t,hr)}function Xf(k){Re(k.head),fo(k,k.templateSpans,262144)}function r_(k){wi(127,k.pos,ns,k),Re(k.asteriskToken),Mg(k.expression&&xd(k.expression),Sb)}function Q(k){wi(26,k.pos,rr,k),Dt(k.expression,Ye.parenthesizeExpressionForDisallowedComma)}function Ze(k){Np(k.name),yy(k)}function Pt(k){Dt(k.expression,Ye.parenthesizeLeftSideOfAccess),rm(k,k.typeArguments)}function At(k){Dt(k.expression,void 0),k.type&&(Hn(),ns("as"),Hn(),Re(k.type))}function L(k){Dt(k.expression,Ye.parenthesizeLeftSideOfAccess),y_("!")}function pe(k){Dt(k.expression,void 0),k.type&&(Hn(),ns("satisfies"),Hn(),Re(k.type))}function Ke(k){Sy(k.keywordToken,k.pos,rr),rr("."),Re(k.name)}function It(k){Dt(k.expression),Re(k.literal)}function jn(k){zr(k,!k.multiLine&&Z1(k))}function zr(k,te){wi(19,k.pos,rr,k);let ct=te||Sa(k)&1?768:129;fo(k,k.statements,ct),wi(20,k.statements.end,rr,k,!!(ct&1))}function Vr(k){Gu(k,k.modifiers,!1),Re(k.declarationList),ru()}function Bi(k){k?rr(";"):ru()}function _a(k){Dt(k.expression,Ye.parenthesizeExpressionOfExpressionStatement),(!O||!dp(O)||Ro(k.expression))&&ru()}function fa(k){let te=wi(101,k.pos,ns,k);Hn(),wi(21,te,rr,k),Dt(k.expression),wi(22,k.expression.end,rr,k),$m(k,k.thenStatement),k.elseStatement&&(Q1(k,k.thenStatement,k.elseStatement),wi(93,k.thenStatement.end,ns,k),k.elseStatement.kind===245?(Hn(),Re(k.elseStatement)):$m(k,k.elseStatement))}function sc(k,te){let ct=wi(117,te,ns,k);Hn(),wi(21,ct,rr,k),Dt(k.expression),wi(22,k.expression.end,rr,k)}function nu(k){wi(92,k.pos,ns,k),$m(k,k.statement),Ds(k.statement)&&!se?Hn():Q1(k,k.statement,k.expression),sc(k,k.statement.end),ru()}function hl(k){sc(k,k.pos),$m(k,k.statement)}function If(k){let te=wi(99,k.pos,ns,k);Hn();let ct=wi(21,te,rr,k);Ff(k.initializer),ct=wi(27,k.initializer?k.initializer.end:ct,rr,k),Mg(k.condition),ct=wi(27,k.condition?k.condition.end:ct,rr,k),Mg(k.incrementor),wi(22,k.incrementor?k.incrementor.end:ct,rr,k),$m(k,k.statement)}function ha(k){let te=wi(99,k.pos,ns,k);Hn(),wi(21,te,rr,k),Ff(k.initializer),Hn(),wi(103,k.initializer.end,ns,k),Hn(),Dt(k.expression),wi(22,k.expression.end,rr,k),$m(k,k.statement)}function Dp(k){let te=wi(99,k.pos,ns,k);Hn(),j6(k.awaitModifier),wi(21,te,rr,k),Ff(k.initializer),Hn(),wi(165,k.initializer.end,ns,k),Hn(),Dt(k.expression),wi(22,k.expression.end,rr,k),$m(k,k.statement)}function Ff(k){k!==void 0&&(k.kind===261?Re(k):Dt(k))}function Ng(k){wi(88,k.pos,ns,k),G1(k.label),ru()}function qm(k){wi(83,k.pos,ns,k),G1(k.label),ru()}function wi(k,te,ct,$t,hr){let xi=ls($t),ai=xi&&xi.kind===$t.kind,zi=te;if(ai&&O&&(te=ma(O.text,te)),ai&&$t.pos!==zi){let Ls=hr&&O&&!vp(zi,te,O);Ls&&sm(),Lf(zi),Ls&&am()}if(!x&&(k===19||k===20)?te=Sy(k,te,ct,$t):te=hh(k,ct,te),ai&&$t.end!==te){let Ls=$t.kind===294;rd(te,!Ls,Ls)}return te}function gy(k){return k.kind===2||!!k.hasTrailingNewLine}function hy(k){return O?ft(lg(O.text,k.pos),gy)||ft(yC(k),gy)?!0:rO(k)?k.pos!==k.expression.pos&&ft(n1(O.text,k.expression.pos),gy)?!0:hy(k.expression):!1:!1}function xd(k){if(!Ft&&rO(k)&&hy(k)){let te=ls(k);if(te&&C_(te)){let ct=I.createParenthesizedExpression(k.expression);return or(ct,k),nt(ct,te),ct}return I.createParenthesizedExpression(k)}return k}function Sb(k){return xd(Ye.parenthesizeExpressionForDisallowedComma(k))}function d0(k){wi(107,k.pos,ns,k),Mg(k.expression&&xd(k.expression),xd),ru()}function Ee(k){let te=wi(118,k.pos,ns,k);Hn(),wi(21,te,rr,k),Dt(k.expression),wi(22,k.expression.end,rr,k),$m(k,k.statement)}function We(k){let te=wi(109,k.pos,ns,k);Hn(),wi(21,te,rr,k),Dt(k.expression),wi(22,k.expression.end,rr,k),Hn(),Re(k.caseBlock)}function xt(k){Re(k.label),wi(59,k.label.end,rr,k),Hn(),Re(k.statement)}function jt(k){wi(111,k.pos,ns,k),Mg(xd(k.expression),xd),ru()}function nn(k){wi(113,k.pos,ns,k),Hn(),Re(k.tryBlock),k.catchClause&&(Q1(k,k.tryBlock,k.catchClause),Re(k.catchClause)),k.finallyBlock&&(Q1(k,k.catchClause||k.tryBlock,k.finallyBlock),wi(98,(k.catchClause||k.tryBlock).end,ns,k),Hn(),Re(k.finallyBlock))}function Bn(k){Sy(89,k.pos,ns),ru()}function sn(k){var te,ct,$t;Re(k.name),Re(k.exclamationToken),Gm(k.type),Lg(k.initializer,((te=k.type)==null?void 0:te.end)??(($t=(ct=k.name.emitNode)==null?void 0:ct.typeNode)==null?void 0:$t.end)??k.name.end,k,Ye.parenthesizeExpressionForDisallowedComma)}function En(k){if(KP(k))ns("await"),Hn(),ns("using");else{let te=Y7(k)?"let":Vk(k)?"const":ew(k)?"using":"var";ns(te)}Hn(),fo(k,k.declarations,528)}function oi(k){mr(k)}function mr(k){Gu(k,k.modifiers,!1),ns("function"),Re(k.asteriskToken),Hn(),ot(k.name),gr(k,_r)}function gr(k,te){let ct=k.body;if(ct)if(Ds(ct)){let $t=Sa(k)&131072;$t&&sm(),mu(k),Qt(k.parameters,Wl),Wl(k.body),te(k),io(ct),w_(k),$t&&am()}else te(k),Hn(),Dt(ct,Ye.parenthesizeConciseBodyOfArrowFunction);else te(k),ru()}function _r(k){Xm(k,k.typeParameters),S0(k,k.parameters),Gm(k.type)}function Oi(k){if(Sa(k)&1)return!0;if(k.multiLine||!Ro(k)&&O&&!I2(k,O)||kS(k,Pl(k.statements),2)||xy(k,qo(k.statements),2,k.statements))return!1;let te;for(let ct of k.statements){if(yh(te,ct,2)>0)return!1;te=ct}return!0}function io(k){c?.(k),Hn(),rr("{"),sm();let te=Oi(k)?Za:W_;fr(k,k.statements,te),am(),Sy(20,k.statements.end,rr,k),u?.(k)}function Za(k){W_(k,!0)}function W_(k,te){let ct=P_(k.statements),$t=ve.getTextPos();Wt(k),ct===0&&$t===ve.getTextPos()&&te?(am(),fo(k,k.statements,768),sm()):fo(k,k.statements,1,void 0,ct)}function J1(k){yy(k)}function yy(k){Kf(0,void 0),Qt(k.members,ES),Gu(k,k.modifiers,!0),wi(86,Wd(k).pos,ns,k),k.name&&(Hn(),ot(k.name));let te=Sa(k)&131072;te&&sm(),Xm(k,k.typeParameters),fo(k,k.heritageClauses,0),Hn(),rr("{"),fo(k,k.members,129),rr("}"),te&&am(),K1()}function mh(k){Kf(0,void 0),Gu(k,k.modifiers,!1),ns("interface"),Hn(),Re(k.name),Xm(k,k.typeParameters),fo(k,k.heritageClauses,512),Hn(),rr("{"),fo(k,k.members,129),rr("}"),K1()}function vy(k){Gu(k,k.modifiers,!1),ns("type"),Hn(),Re(k.name),Xm(k,k.typeParameters),Hn(),rr("="),Hn(),Re(k.type),ru()}function _S(k){Gu(k,k.modifiers,!1),ns("enum"),Hn(),Re(k.name),Hn(),rr("{"),fo(k,k.members,145),rr("}")}function xb(k){Gu(k,k.modifiers,!1),~k.flags&2048&&(ns(k.flags&32?"namespace":"module"),Hn()),Re(k.name);let te=k.body;if(!te)return ru();for(;te&&Pc(te);)rr("."),Re(te.name),te=te.body;Hn(),Re(te)}function fS(k){mu(k),Qt(k.statements,Wl),zr(k,Z1(k)),w_(k)}function pS(k){wi(19,k.pos,rr,k),fo(k,k.clauses,129),wi(20,k.clauses.end,rr,k,!0)}function _D(k){Gu(k,k.modifiers,!1),wi(102,k.modifiers?k.modifiers.end:k.pos,ns,k),Hn(),k.isTypeOnly&&(wi(156,k.pos,ns,k),Hn()),Re(k.name),Hn(),wi(64,k.name.end,rr,k),Hn(),AT(k.moduleReference),ru()}function AT(k){k.kind===80?Dt(k):Re(k)}function w6(k){Gu(k,k.modifiers,!1),wi(102,k.modifiers?k.modifiers.end:k.pos,ns,k),Hn(),k.importClause&&(Re(k.importClause),Hn(),wi(161,k.importClause.end,ns,k),Hn()),Dt(k.moduleSpecifier),k.attributes&&G1(k.attributes),ru()}function z1(k){k.isTypeOnly&&(wi(156,k.pos,ns,k),Hn()),Re(k.name),k.name&&k.namedBindings&&(wi(28,k.name.end,rr,k),Hn()),Re(k.namedBindings)}function NT(k){let te=wi(42,k.pos,rr,k);Hn(),wi(130,te,ns,k),Hn(),Re(k.name)}function IT(k){m0(k)}function A6(k){Cb(k)}function dS(k){let te=wi(95,k.pos,ns,k);Hn(),k.isExportEquals?wi(64,te,y_,k):wi(90,te,ns,k),Hn(),Dt(k.expression,k.isExportEquals?Ye.getParenthesizeRightSideOfBinaryForOperator(64):Ye.parenthesizeExpressionOfExportDefault),ru()}function N6(k){Gu(k,k.modifiers,!1);let te=wi(95,k.pos,ns,k);if(Hn(),k.isTypeOnly&&(te=wi(156,te,ns,k),Hn()),k.exportClause?Re(k.exportClause):te=wi(42,te,rr,k),k.moduleSpecifier){Hn();let ct=k.exportClause?k.exportClause.end:te;wi(161,ct,ns,k),Hn(),Dt(k.moduleSpecifier)}k.attributes&&G1(k.attributes),ru()}function FT(k){wi(k.token,k.pos,ns,k),Hn();let te=k.elements;fo(k,te,526226)}function OT(k){Re(k.name),rr(":"),Hn();let te=k.value;if(!(Sa(te)&1024)){let ct=Ud(te);rd(ct.pos)}Re(te)}function mS(k){let te=wi(95,k.pos,ns,k);Hn(),te=wi(130,te,ns,k),Hn(),te=wi(145,te,ns,k),Hn(),Re(k.name),ru()}function Tb(k){let te=wi(42,k.pos,rr,k);Hn(),wi(130,te,ns,k),Hn(),Re(k.name)}function kb(k){m0(k)}function V1(k){Cb(k)}function m0(k){rr("{"),fo(k,k.elements,525136),rr("}")}function Cb(k){k.isTypeOnly&&(ns("type"),Hn()),k.propertyName&&(Re(k.propertyName),Hn(),wi(130,k.propertyName.end,ns,k),Hn()),Re(k.name)}function em(k){ns("require"),rr("("),Dt(k.expression),rr(")")}function Ra(k){Re(k.openingElement),fo(k,k.children,262144),Re(k.closingElement)}function gS(k){rr("<"),Eb(k.tagName),rm(k,k.typeArguments),Hn(),Re(k.attributes),rr("/>")}function I6(k){Re(k.openingFragment),fo(k,k.children,262144),Re(k.closingFragment)}function by(k){if(rr("<"),Gd(k)){let te=zT(k.tagName,k);Eb(k.tagName),rm(k,k.typeArguments),k.attributes.properties&&k.attributes.properties.length>0&&Hn(),Re(k.attributes),CS(k.attributes,k),Qm(te)}rr(">")}function g0(k){ve.writeLiteral(k.text)}function Hm(k){rr("")}function Qf(k){fo(k,k.properties,262656)}function U_(k){Re(k.name),nd("=",rr,k.initializer,Zt)}function i_(k){rr("{..."),Dt(k.expression),rr("}")}function of(k){let te=!1;return kP(O?.text||"",k+1,()=>te=!0),te}function W1(k){let te=!1;return TP(O?.text||"",k+1,()=>te=!0),te}function F6(k){return of(k)||W1(k)}function LT(k){var te;if(k.expression||!Ft&&!Ro(k)&&F6(k.pos)){let ct=O&&!Ro(k)&&Ka(O,k.pos).line!==Ka(O,k.end).line;ct&&ve.increaseIndent();let $t=wi(19,k.pos,rr,k);Re(k.dotDotDotToken),Dt(k.expression),wi(20,((te=k.expression)==null?void 0:te.end)||$t,rr,k),ct&&ve.decreaseIndent()}}function hS(k){ot(k.namespace),rr(":"),ot(k.name)}function Eb(k){k.kind===80?Dt(k):Re(k)}function U1(k){wi(84,k.pos,ns,k),Hn(),Dt(k.expression,Ye.parenthesizeExpressionForDisallowedComma),q1(k,k.statements,k.expression.end)}function yS(k){let te=wi(90,k.pos,ns,k);q1(k,k.statements,te)}function q1(k,te,ct){let $t=te.length===1&&(!O||Ro(k)||Ro(te[0])||R5(k,te[0],O)),hr=163969;$t?(Sy(59,ct,rr,k),Hn(),hr&=-130):wi(59,ct,rr,k),fo(k,te,hr)}function Fl(k){Hn(),hh(k.token,ns),Hn(),fo(k,k.types,528)}function h0(k){let te=wi(85,k.pos,ns,k);Hn(),k.variableDeclaration&&(wi(21,te,rr,k),Re(k.variableDeclaration),wi(22,k.variableDeclaration.end,rr,k),Hn()),Re(k.block)}function y0(k){Re(k.name),rr(":"),Hn();let te=k.initializer;if(!(Sa(te)&1024)){let ct=Ud(te);rd(ct.pos)}Dt(te,Ye.parenthesizeExpressionForDisallowedComma)}function Ig(k){Re(k.name),k.objectAssignmentInitializer&&(Hn(),rr("="),Hn(),Dt(k.objectAssignmentInitializer,Ye.parenthesizeExpressionForDisallowedComma))}function je(k){k.expression&&(wi(26,k.pos,rr,k),Dt(k.expression,Ye.parenthesizeExpressionForDisallowedComma))}function Vl(k){Re(k.name),Lg(k.initializer,k.name.end,k,Ye.parenthesizeExpressionForDisallowedComma)}function Yf(k){if(Me("/**"),k.comment){let te=FP(k.comment);if(te){let ct=te.split(/\r\n?|\n/g);for(let $t of ct)El(),Hn(),rr("*"),Hn(),Me($t)}}k.tags&&(k.tags.length===1&&k.tags[0].kind===351&&!k.comment?(Hn(),Re(k.tags[0])):fo(k,k.tags,33)),Hn(),Me("*/")}function Hu(k){Pp(k.tagName),Og(k.typeExpression),kd(k.comment)}function O6(k){Pp(k.tagName),Re(k.name),kd(k.comment)}function v0(k){Hn(),rr("{"),Re(k.name),rr("}")}function H1(k){Pp(k.tagName),Hn(),rr("{"),Re(k.class),rr("}"),kd(k.comment)}function Fg(k){Pp(k.tagName),Og(k.constraint),Hn(),fo(k,k.typeParameters,528),kd(k.comment)}function fD(k){Pp(k.tagName),k.typeExpression&&(k.typeExpression.kind===316?Og(k.typeExpression):(Hn(),rr("{"),Me("Object"),k.typeExpression.isArrayType&&(rr("["),rr("]")),rr("}"))),k.fullName&&(Hn(),Re(k.fullName)),kd(k.comment),k.typeExpression&&k.typeExpression.kind===329&&bS(k.typeExpression)}function ja(k){Pp(k.tagName),k.name&&(Hn(),Re(k.name)),kd(k.comment),Db(k.typeExpression)}function Td(k){kd(k.comment),Db(k.typeExpression)}function vS(k){Pp(k.tagName),kd(k.comment)}function bS(k){fo(k,I.createNodeArray(k.jsDocPropertyTags),33)}function Db(k){k.typeParameters&&fo(k,I.createNodeArray(k.typeParameters),33),k.parameters&&fo(k,I.createNodeArray(k.parameters),33),k.type&&(El(),Hn(),rr("*"),Hn(),Re(k.type))}function Pb(k){Pp(k.tagName),Og(k.typeExpression),Hn(),k.isBracketed&&rr("["),Re(k.name),k.isBracketed&&rr("]"),kd(k.comment)}function Pp(k){rr("@"),Re(k)}function kd(k){let te=FP(k);te&&(Hn(),Me(te))}function Og(k){k&&(Hn(),rr("{"),Re(k.type),rr("}"))}function SS(k){El();let te=k.statements;if(te.length===0||!Up(te[0])||Ro(te[0])){fr(k,te,Ti);return}Ti(k)}function tm(k){L6(!!k.hasNoDefaultLib,k.syntheticFileReferences||[],k.syntheticTypeReferences||[],k.syntheticLibReferences||[]);for(let te of k.prepends)if(U2(te)&&te.syntheticReferences)for(let ct of te.syntheticReferences)Re(ct),El()}function xS(k){k.isDeclarationFile&&L6(k.hasNoDefaultLib,k.referencedFiles,k.typeReferenceDirectives,k.libReferenceDirectives)}function L6(k,te,ct,$t){if(k){let hr=ve.getTextPos();Ap('/// '),he&&he.sections.push({pos:hr,end:ve.getTextPos(),kind:"no-default-lib"}),El()}if(O&&O.moduleName&&(Ap(`/// `),El()),O&&O.amdDependencies)for(let hr of O.amdDependencies)hr.name?Ap(`/// `):Ap(`/// `),El();for(let hr of te){let xi=ve.getTextPos();Ap(`/// `),he&&he.sections.push({pos:xi,end:ve.getTextPos(),kind:"reference",data:hr.fileName}),El()}for(let hr of ct){let xi=ve.getTextPos(),ai=hr.resolutionMode&&hr.resolutionMode!==O?.impliedNodeFormat?`resolution-mode="${hr.resolutionMode===99?"import":"require"}"`:"";Ap(`/// `),he&&he.sections.push({pos:xi,end:ve.getTextPos(),kind:hr.resolutionMode?hr.resolutionMode===99?"type-import":"type-require":"type",data:hr.fileName}),El()}for(let hr of $t){let xi=ve.getTextPos();Ap(`/// `),he&&he.sections.push({pos:xi,end:ve.getTextPos(),kind:"lib",data:hr.fileName}),El()}}function Ti(k){let te=k.statements;mu(k),Qt(k.statements,Wl),Wt(k);let ct=Qo(te,$t=>!Up($t));xS(k),fo(k,te,1,void 0,ct===-1?te.length:ct),w_(k)}function Hr(k){let te=Sa(k);!(te&1024)&&k.pos!==k.expression.pos&&rd(k.expression.pos),Dt(k.expression),!(te&2048)&&k.end!==k.expression.end&&Lf(k.expression.end)}function nm(k){Ab(k,k.elements,528,void 0)}function P_(k,te,ct,$t){let hr=!!te;for(let xi=0;xi=ct.length||ai===0;if(Ls&&$t&32768){f?.(ct),g?.(ct);return}$t&15360&&(rr(VMe($t)),Ls&&ct&&rd(ct.pos,!0)),f?.(ct),Ls?$t&1&&!(se&&(!te||O&&I2(te,O)))?El():$t&256&&!($t&524288)&&Hn():wp(k,te,ct,$t,hr,xi,ai,ct.hasTrailingComma,ct),g?.(ct),$t&15360&&(Ls&&ct&&Lf(ct.end),rr(WMe($t)))}function wp(k,te,ct,$t,hr,xi,ai,zi,Ls){let A_=($t&262144)===0,H_=A_,ci=kS(te,ct[xi],$t);ci?(El(ci),H_=!1):$t&256&&Hn(),$t&128&&sm();let cm=GMe(k,hr),hn,wy,C0=!1;for(let Ym=0;Ym0){if($t&131||(sm(),C0=!0),H_&&$t&60&&!dd(E0.pos)){let G6=Ud(E0);rd(G6.pos,!!($t&512),!0)}El(zg),H_=!1}else hn&&$t&512&&Hn()}if(wy=Fs(E0),H_){let zg=Ud(E0);rd(zg.pos)}else H_=A_;Y=E0.pos,cm(E0,k,hr,Ym),C0&&(am(),C0=!1),hn=E0}let wS=hn?Sa(hn):0,sv=Ft||!!(wS&2048),QT=zi&&$t&64&&$t&16;QT&&(hn&&!sv?wi(28,hn.end,rr,hn):rr(",")),hn&&(te?te.end:-1)!==hn.end&&$t&60&&!sv&&Lf(QT&&Ls?.end?Ls.end:hn.end),$t&128&&am(),Ce(wy);let AS=xy(te,ct[xi+ai-1],$t,Ls);AS?El(AS):$t&2097408&&Hn()}function $1(k){ve.writeLiteral(k)}function BT(k){ve.writeStringLiteral(k)}function dD(k){ve.write(k)}function TS(k,te){ve.writeSymbol(k,te)}function rr(k){ve.writePunctuation(k)}function ru(){ve.writeTrailingSemicolon(";")}function ns(k){ve.writeKeyword(k)}function y_(k){ve.writeOperator(k)}function im(k){ve.writeParameter(k)}function Ap(k){ve.writeComment(k)}function Hn(){ve.writeSpace(" ")}function Nb(k){ve.writeProperty(k)}function X1(k){ve.nonEscapingWrite?ve.nonEscapingWrite(k):ve.write(k)}function El(k=1){for(let te=0;te0)}function sm(){ve.increaseIndent()}function am(){ve.decreaseIndent()}function Sy(k,te,ct,$t){return Oe?hh(k,ct,te):Jg($t,k,ct,te,hh)}function JT(k,te){p&&p(k),te(Zs(k.kind)),y&&y(k)}function hh(k,te,ct){let $t=Zs(k);return te($t),ct<0?ct:ct+$t.length}function Q1(k,te,ct){if(Sa(k)&1)Hn();else if(se){let $t=Zf(k,te,ct);$t?El($t):Hn()}else El()}function Y1(k){let te=k.split(/\r\n?|\n/g),ct=Fee(te);for(let $t of te){let hr=ct?$t.slice(ct):$t;hr.length&&(El(),Me(hr))}}function Rg(k,te){k?(sm(),El(k)):te&&Hn()}function Qm(k,te){k&&am(),te&&am()}function kS(k,te,ct){if(ct&2||se){if(ct&65536)return 1;if(te===void 0)return!k||O&&I2(k,O)?0:1;if(te.pos===Y||te.kind===12)return 0;if(O&&k&&!dd(k.pos)&&!Ro(te)&&(!te.parent||cc(te.parent)===cc(k)))return se?Ib($t=>ine(te.pos,k.pos,O,$t)):R5(k,te,O)?0:1;if(Fb(te,ct))return 1}return ct&1?1:0}function yh(k,te,ct){if(ct&2||se){if(k===void 0||te===void 0||te.kind===12)return 0;if(O&&!Ro(k)&&!Ro(te))return se&&v_(k,te)?Ib($t=>Wz(k,te,O,$t)):!se&&lf(k,te)?Bw(k,te,O)?0:1:ct&65536?1:0;if(Fb(k,ct)||Fb(te,ct))return 1}else if(WE(te))return 1;return ct&1?1:0}function xy(k,te,ct,$t){if(ct&2||se){if(ct&65536)return 1;if(te===void 0)return!k||O&&I2(k,O)?0:1;if(O&&k&&!dd(k.pos)&&!Ro(te)&&(!te.parent||te.parent===k)){if(se){let hr=$t&&!dd($t.end)?$t.end:te.end;return Ib(xi=>sne(hr,k.end,O,xi))}return tne(k,te,O)?0:1}if(Fb(te,ct))return 1}return ct&1&&!(ct&131072)?1:0}function Ib(k){E.assert(!!se);let te=k(!0);return te===0?k(!1):te}function zT(k,te){let ct=se&&kS(te,k,0);return ct&&Rg(ct,!1),!!ct}function CS(k,te){let ct=se&&xy(te,k,0,void 0);ct&&El(ct)}function Fb(k,te){if(Ro(k)){let ct=WE(k);return ct===void 0?(te&65536)!==0:ct}return(te&65536)!==0}function Zf(k,te,ct){return Sa(k)&262144?0:(k=Oc(k),te=Oc(te),ct=Oc(ct),WE(ct)?1:O&&!Ro(k)&&!Ro(te)&&!Ro(ct)?se?Ib($t=>Wz(te,ct,O,$t)):Bw(te,ct,O)?0:1:0)}function Z1(k){return k.statements.length===0&&(!O||Bw(k,k,O))}function Oc(k){for(;k.kind===217&&Ro(k);)k=k.expression;return k}function yl(k,te){if(Lo(k)||d2(k))return Ty(k);if(ca(k)&&k.textSourceNode)return yl(k.textSourceNode,te);let ct=O,$t=!!ct&&!!k.parent&&!Ro(k);if(_g(k)){if(!$t||Mn(k)!==cc(ct))return ur(k)}else if(md(k)){if(!$t||Mn(k)!==cc(ct))return zE(k)}else if(E.assertNode(k,Av),!$t)return k.text;return Fv(ct,k,te)}function VT(k,te,ct){if(k.kind===11&&k.textSourceNode){let hr=k.textSourceNode;if(Ie(hr)||Di(hr)||R_(hr)||md(hr)){let xi=R_(hr)?hr.text:yl(hr);return ct?`"${Pz(xi)}"`:te||Sa(k)&16777216?`"${p1(xi)}"`:`"${Aw(xi)}"`}else return VT(hr,te,ct)}let $t=(te?1:0)|(ct?2:0)|(e.terminateUnterminatedLiterals?4:0)|(e.target&&e.target===99?8:0);return Uee(k,O,$t)}function mu(k){k&&Sa(k)&1048576||(_e.push($),$=0,ie.push(B),B=void 0,H.push(K))}function w_(k){k&&Sa(k)&1048576||($=_e.pop(),B=ie.pop(),K=H.pop())}function Ob(k){(!K||K===qo(H))&&(K=new Set),K.add(k)}function Kf(k,te){Z.push(ae),ae=k,oe.push(K),Se=te}function K1(){ae=Z.pop(),Se=oe.pop()}function x0(k){(!Se||Se===qo(oe))&&(Se=new Set),Se.add(k)}function Wl(k){if(k)switch(k.kind){case 241:Qt(k.statements,Wl);break;case 256:case 254:case 246:case 247:Wl(k.statement);break;case 245:Wl(k.thenStatement),Wl(k.elseStatement);break;case 248:case 250:case 249:Wl(k.initializer),Wl(k.statement);break;case 255:Wl(k.caseBlock);break;case 269:Qt(k.clauses,Wl);break;case 296:case 297:Qt(k.statements,Wl);break;case 258:Wl(k.tryBlock),Wl(k.catchClause),Wl(k.finallyBlock);break;case 299:Wl(k.variableDeclaration),Wl(k.block);break;case 243:Wl(k.declarationList);break;case 261:Qt(k.declarations,Wl);break;case 260:case 169:case 208:case 263:Np(k.name);break;case 262:Np(k.name),Sa(k)&1048576&&(Qt(k.parameters,Wl),Wl(k.body));break;case 206:case 207:Qt(k.elements,Wl);break;case 272:Wl(k.importClause);break;case 273:Np(k.name),Wl(k.namedBindings);break;case 274:Np(k.name);break;case 280:Np(k.name);break;case 275:Qt(k.elements,Wl);break;case 276:Np(k.propertyName||k.name);break}}function ES(k){if(k)switch(k.kind){case 303:case 304:case 172:case 174:case 177:case 178:Np(k.name);break}}function Np(k){k&&(Lo(k)||d2(k)?Ty(k):Ms(k)&&Wl(k))}function Ty(k){let te=k.emitNode.autoGenerate;if((te.flags&7)===4)return z6(A8(k),Di(k),te.flags,te.prefix,te.suffix);{let ct=te.id;return X[ct]||(X[ct]=mD(k))}}function z6(k,te,ct,$t,hr){let xi=Va(k),ai=te?V:z;return ai[xi]||(ai[xi]=T0(k,te,ct??0,RC($t,Ty),RC(hr)))}function yo(k,te){return DS(k,te)&&!V6(k,te)&&!J.has(k)}function V6(k,te){return te?!!Se?.has(k):!!K?.has(k)}function DS(k,te){return O?U7(O,k,n):!0}function ev(k,te){for(let ct=te;ct&&zv(ct,te);ct=ct.nextContainer)if(Pm(ct)&&ct.locals){let $t=ct.locals.get(Yo(k));if($t&&$t.flags&3257279)return!1}return!0}function WT(k){switch(k){case"":return $;case"#":return ae;default:return B?.get(k)??0}}function s_(k,te){switch(k){case"":$=te;break;case"#":ae=te;break;default:B??(B=new Map),B.set(k,te);break}}function jg(k,te,ct,$t,hr){$t.length>0&&$t.charCodeAt(0)===35&&($t=$t.slice(1));let xi=E1(ct,$t,"",hr),ai=WT(xi);if(k&&!(ai&k)){let Ls=E1(ct,$t,k===268435456?"_i":"_n",hr);if(yo(Ls,ct))return ai|=k,ct?x0(Ls):te&&Ob(Ls),s_(xi,ai),Ls}for(;;){let zi=ai&268435455;if(ai++,zi!==8&&zi!==13){let Ls=zi<26?"_"+String.fromCharCode(97+zi):"_"+(zi-26),A_=E1(ct,$t,Ls,hr);if(yo(A_,ct))return ct?x0(A_):te&&Ob(A_),s_(xi,ai),A_}}}function vh(k,te=yo,ct,$t,hr,xi,ai){if(k.length>0&&k.charCodeAt(0)===35&&(k=k.slice(1)),xi.length>0&&xi.charCodeAt(0)===35&&(xi=xi.slice(1)),ct){let Ls=E1(hr,xi,k,ai);if(te(Ls,hr))return hr?x0(Ls):$t?Ob(Ls):J.add(Ls),Ls}k.charCodeAt(k.length-1)!==95&&(k+="_");let zi=1;for(;;){let Ls=E1(hr,xi,k+zi,ai);if(te(Ls,hr))return hr?x0(Ls):$t?Ob(Ls):J.add(Ls),Ls;zi++}}function Lb(k){return vh(k,DS,!0,!1,!1,"","")}function cf(k){let te=yl(k.name);return ev(te,Ur(k,Pm))?te:vh(te,yo,!1,!1,!1,"","")}function UT(k){let te=Qk(k),ct=ca(te)?Hee(te.text):"module";return vh(ct,yo,!1,!1,!1,"","")}function ky(){return vh("default",yo,!1,!1,!1,"","")}function Of(){return vh("class",yo,!1,!1,!1,"","")}function Mb(k,te,ct,$t){return Ie(k.name)?z6(k.name,te):jg(0,!1,te,ct,$t)}function T0(k,te,ct,$t,hr){switch(k.kind){case 80:case 81:return vh(yl(k),yo,!!(ct&16),!!(ct&8),te,$t,hr);case 267:case 266:return E.assert(!$t&&!hr&&!te),cf(k);case 272:case 278:return E.assert(!$t&&!hr&&!te),UT(k);case 262:case 263:{E.assert(!$t&&!hr&&!te);let xi=k.name;return xi&&!Lo(xi)?T0(xi,!1,ct,$t,hr):ky()}case 277:return E.assert(!$t&&!hr&&!te),ky();case 231:return E.assert(!$t&&!hr&&!te),Of();case 174:case 177:case 178:return Mb(k,te,$t,hr);case 167:return jg(0,!0,te,$t,hr);default:return jg(0,!1,te,$t,hr)}}function mD(k){let te=k.emitNode.autoGenerate,ct=RC(te.prefix,Ty),$t=RC(te.suffix);switch(te.flags&7){case 1:return jg(0,!!(te.flags&8),Di(k),ct,$t);case 2:return E.assertNode(k,Ie),jg(268435456,!!(te.flags&8),!1,ct,$t);case 3:return vh(ur(k),te.flags&32?DS:yo,!!(te.flags&16),!!(te.flags&8),Di(k),ct,$t)}return E.fail(`Unsupported GeneratedIdentifierKind: ${E.formatEnum(te.flags&7,e7,!0)}.`)}function qT(k,te){let ct=ue(2,k,te),$t=Jt,hr=Gt,xi=Tn;HT(te),ct(k,te),GT(te,$t,hr,xi)}function HT(k){let te=Sa(k),ct=Ud(k);tv(k,te,ct.pos,ct.end),te&4096&&(Ft=!0)}function GT(k,te,ct,$t){let hr=Sa(k),xi=Ud(k);hr&4096&&(Ft=!1),q_(k,hr,xi.pos,xi.end,te,ct,$t);let ai=ire(k);ai&&q_(k,hr,ai.pos,ai.end,te,ct,$t)}function tv(k,te,ct,$t){ii(),zt=!1;let hr=ct<0||(te&1024)!==0||k.kind===12,xi=$t<0||(te&2048)!==0||k.kind===12;(ct>0||$t>0)&&ct!==$t&&(hr||Rb(ct,k.kind!==359),(!hr||ct>=0&&te&1024)&&(Jt=ct),(!xi||$t>=0&&te&2048)&&(Gt=$t,k.kind===261&&(Tn=$t))),Qt(yC(k),Bg),Hi()}function q_(k,te,ct,$t,hr,xi,ai){ii();let zi=$t<0||(te&2048)!==0||k.kind===12;Qt(l8(k),$T),(ct>0||$t>0)&&ct!==$t&&(Jt=hr,Gt=xi,Tn=ai,!zi&&k.kind!==359&&Ip($t)),Hi()}function Bg(k){(k.hasLeadingNewline||k.kind===2)&&ve.writeLine(),XT(k),k.hasTrailingNewLine||k.kind===2?ve.writeLine():ve.writeSpace(" ")}function $T(k){ve.isAtStartOfLine()||ve.writeSpace(" "),XT(k),k.hasTrailingNewLine&&ve.writeLine()}function XT(k){let te=Ba(k),ct=k.kind===3?dx(te):void 0;oC(te,ct,ve,0,te.length,C)}function Ba(k){return k.kind===3?`/*${k.text}*/`:`//${k.text}`}function fr(k,te,ct){ii();let{pos:$t,end:hr}=te,xi=Sa(k),ai=$t<0||(xi&1024)!==0,zi=Ft||hr<0||(xi&2048)!==0;ai||U6(te),Hi(),xi&4096&&!Ft?(Ft=!0,ct(k),Ft=!1):ct(k),ii(),zi||(Rb(te.end,!0),zt&&!ve.isAtStartOfLine()&&ve.writeLine()),Hi()}function lf(k,te){return k=cc(k),k.parent&&k.parent===cc(te).parent}function v_(k,te){if(te.pos-1&&$t.indexOf(te)===hr+1}function Rb(k,te){zt=!1,te?k===0&&O?.isDeclarationFile?Bb(k,nv):Bb(k,Cy):k===0&&Bb(k,W6)}function W6(k,te,ct,$t,hr){rv(k,te)&&Cy(k,te,ct,$t,hr)}function nv(k,te,ct,$t,hr){rv(k,te)||Cy(k,te,ct,$t,hr)}function jb(k,te){return e.onlyPrintJsDocStyle?SW(k,te)||q7(k,te):!0}function Cy(k,te,ct,$t,hr){!O||!jb(O.text,k)||(zt||(Jte(wt(),ve,hr,k),zt=!0),om(k),oC(O.text,wt(),ve,k,te,C),om(te),$t?ve.writeLine():ct===3&&ve.writeSpace(" "))}function Lf(k){Ft||k===-1||Rb(k,!0)}function Ip(k){Wc(k,Ey)}function Ey(k,te,ct,$t){!O||!jb(O.text,k)||(ve.isAtStartOfLine()||ve.writeSpace(" "),om(k),oC(O.text,wt(),ve,k,te,C),om(te),$t&&ve.writeLine())}function rd(k,te,ct){Ft||(ii(),Wc(k,te?Ey:ct?Fp:k0),Hi())}function Fp(k,te,ct){O&&(om(k),oC(O.text,wt(),ve,k,te,C),om(te),ct===2&&ve.writeLine())}function k0(k,te,ct,$t){O&&(om(k),oC(O.text,wt(),ve,k,te,C),om(te),$t?ve.writeLine():ve.writeSpace(" "))}function Bb(k,te){O&&(Jt===-1||k!==Jt)&&(gD(k)?ep(te):TP(O.text,k,te,k))}function Wc(k,te){O&&(Gt===-1||k!==Gt&&k!==Tn)&&kP(O.text,k,te)}function gD(k){return cn!==void 0&&Pa(cn).nodePos===k}function ep(k){if(!O)return;let te=Pa(cn).detachedCommentEndPos;cn.length-1?cn.pop():cn=void 0,TP(O.text,te,k,te)}function U6(k){let te=O&&Vte(O.text,wt(),ve,gu,k,C,Ft);te&&(cn?cn.push(te):cn=[te])}function gu(k,te,ct,$t,hr,xi){!O||!jb(O.text,$t)||(om($t),oC(k,te,ct,$t,hr,xi),om(hr))}function rv(k,te){return!!O&&BJ(O.text,k,te)}function Jb(k){return k.parsedSourceMap===void 0&&k.sourceMapText!==void 0&&(k.parsedSourceMap=vU(k.sourceMapText)||!1),k.parsedSourceMap||void 0}function PS(k,te){let ct=ue(3,k,te);q6(te),ct(k,te),tp(te)}function q6(k){let te=Sa(k),ct=y1(k);if(bJ(k)){E.assertIsDefined(k.parent,"UnparsedNodes must have parent pointers");let $t=Jb(k.parent);$t&&Qe&&Qe.appendSourceMap(ve.getLine(),ve.getColumn(),$t,k.parent.sourceMapPath,k.parent.getLineAndCharacterOfPosition(k.pos),k.parent.getLineAndCharacterOfPosition(k.end))}else{let $t=ct.source||at;k.kind!==359&&!(te&32)&&ct.pos>=0&&Dy(ct.source||at,ac($t,ct.pos)),te&128&&(Oe=!0)}}function tp(k){let te=Sa(k),ct=y1(k);bJ(k)||(te&128&&(Oe=!1),k.kind!==359&&!(te&64)&&ct.end>=0&&Dy(ct.source||at,ct.end))}function ac(k,te){return k.skipTrivia?k.skipTrivia(te):ma(k.text,te)}function om(k){if(Oe||dd(k)||Py(at))return;let{line:te,character:ct}=Ka(at,k);Qe.addMapping(ve.getLine(),ve.getColumn(),ht,te,ct,void 0)}function Dy(k,te){if(k!==at){let ct=at,$t=ht;iv(k),om(te),H6(ct,$t)}else om(te)}function Jg(k,te,ct,$t,hr){if(Oe||k&&_5(k))return hr(te,ct,$t);let xi=k&&k.emitNode,ai=xi&&xi.flags||0,zi=xi&&xi.tokenSourceMapRanges&&xi.tokenSourceMapRanges[te],Ls=zi&&zi.source||at;return $t=ac(Ls,zi?zi.pos:$t),!(ai&256)&&$t>=0&&Dy(Ls,$t),$t=hr(te,ct,$t),zi&&($t=zi.end),!(ai&512)&&$t>=0&&Dy(Ls,$t),$t}function iv(k){if(!Oe){if(at=k,k===Je){ht=lt;return}Py(k)||(ht=Qe.addSource(k.fileName),e.inlineSources&&Qe.setSourceContent(ht,k.text),Je=k,lt=ht)}}function H6(k,te){at=k,ht=te}function Py(k){return nc(k.fileName,".json")}}function zMe(){let e=[];return e[1024]=["{","}"],e[2048]=["(",")"],e[4096]=["<",">"],e[8192]=["[","]"],e}function VMe(e){return qse[e&15360][0]}function WMe(e){return qse[e&15360][1]}function UMe(e,t,n,i){t(e)}function qMe(e,t,n,i){t(e,n.select(i))}function HMe(e,t,n,i){t(e,n)}function GMe(e,t){return e.length===1?UMe:typeof t=="object"?qMe:HMe}var qse,_9,VU,fb,WU,oA,$Me=ze({"src/compiler/emitter.ts"(){"use strict";Rs(),Rs(),u2(),qse=zMe(),_9={hasGlobalName:Ts,getReferencedExportContainer:Ts,getReferencedImportDeclaration:Ts,getReferencedDeclarationWithCollidingName:Ts,isDeclarationWithCollidingName:Ts,isValueAliasDeclaration:Ts,isReferencedAliasDeclaration:Ts,isTopLevelValueImportEqualsWithEntityName:Ts,getNodeCheckFlags:Ts,isDeclarationVisible:Ts,isLateBound:e=>!1,collectLinkedAliases:Ts,isImplementationOfOverload:Ts,isRequiredInitializedParameter:Ts,isOptionalUninitializedParameterProperty:Ts,isExpandoFunctionDeclaration:Ts,getPropertiesOfContainerFunction:Ts,createTypeOfDeclaration:Ts,createReturnTypeOfSignatureDeclaration:Ts,createTypeOfExpression:Ts,createLiteralConstValue:Ts,isSymbolAccessible:Ts,isEntityNameVisible:Ts,getConstantValue:Ts,getReferencedValueDeclaration:Ts,getReferencedValueDeclarations:Ts,getTypeReferenceSerializationKind:Ts,isOptionalParameter:Ts,moduleExportsSomeValue:Ts,isArgumentsLocalBinding:Ts,getExternalModuleFileFromDeclaration:Ts,getTypeReferenceDirectivesForEntityName:Ts,getTypeReferenceDirectivesForSymbol:Ts,isLiteralConstDeclaration:Ts,getJsxFactoryEntity:Ts,getJsxFragmentFactoryEntity:Ts,getAllAccessorDeclarations:Ts,getSymbolOfExternalModuleSpecifier:Ts,isBindingCapturedByNode:Ts,getDeclarationStatementsForSourceFile:Ts,isImportRequiredByAugmentation:Ts,tryFindAmbientModule:Ts},VU=Yu(()=>N1({})),fb=Yu(()=>N1({removeComments:!0})),WU=Yu(()=>N1({removeComments:!0,neverAsciiEscape:!0})),oA=Yu(()=>N1({removeComments:!0,omitTrailingSemicolon:!0}))}});function f9(e,t,n){if(!e.getDirectories||!e.readDirectory)return;let i=new Map,s=cu(n);return{useCaseSensitiveFileNames:n,fileExists:x,readFile:(B,Z)=>e.readFile(B,Z),directoryExists:e.directoryExists&&C,getDirectories:D,readDirectory:O,createDirectory:e.createDirectory&&w,writeFile:e.writeFile&&S,addOrDeleteFileOrDirectory:V,addOrDeleteFile:X,clearCache:ie,realpath:e.realpath&&z};function o(B){return xo(B,t,s)}function c(B){return i.get(wl(B))}function u(B){let Z=c(Xr(B));return Z&&(Z.sortedAndCanonicalizedFiles||(Z.sortedAndCanonicalizedFiles=Z.files.map(s).sort(),Z.sortedAndCanonicalizedDirectories=Z.directories.map(s).sort()),Z)}function f(B){return Mc(Ys(B))}function g(B,Z){var ae;if(!e.realpath||wl(o(e.realpath(B)))===Z){let _e={files:Kt(e.readDirectory(B,void 0,void 0,["*.*"]),f)||[],directories:e.getDirectories(B)||[]};return i.set(wl(Z),_e),_e}if((ae=e.directoryExists)!=null&&ae.call(e,B))return i.set(Z,!1),!1}function p(B,Z){Z=wl(Z);let ae=c(Z);if(ae)return ae;try{return g(B,Z)}catch{E.assert(!i.has(wl(Z)));return}}function y(B,Z){return Rh(B,Z,No,Ou)>=0}function S(B,Z,ae){let _e=o(B),$=u(_e);return $&&J($,f(B),!0),e.writeFile(B,Z,ae)}function x(B){let Z=o(B),ae=u(Z);return ae&&y(ae.sortedAndCanonicalizedFiles,s(f(B)))||e.fileExists(B)}function C(B){let Z=o(B);return i.has(wl(Z))||e.directoryExists(B)}function w(B){let Z=o(B),ae=u(Z);if(ae){let _e=f(B),$=s(_e),H=ae.sortedAndCanonicalizedDirectories;j0(H,$,Ou)&&ae.directories.push(_e)}e.createDirectory(B)}function D(B){let Z=o(B),ae=p(B,Z);return ae?ae.directories.slice():e.getDirectories(B)}function O(B,Z,ae,_e,$){let H=o(B),K=p(B,H),oe;if(K!==void 0)return nV(B,Z,ae,_e,n,t,$,Se,z);return e.readDirectory(B,Z,ae,_e,$);function Se(Y){let ve=o(Y);if(ve===H)return K||se(Y,ve);let xe=p(Y,ve);return xe!==void 0?xe||se(Y,ve):mF}function se(Y,ve){if(oe&&ve===H)return oe;let xe={files:Kt(e.readDirectory(Y,void 0,void 0,["*.*"]),f)||Ve,directories:e.getDirectories(Y)||Ve};return ve===H&&(oe=xe),xe}}function z(B){return e.realpath?e.realpath(B):B}function V(B,Z){if(c(Z)!==void 0){ie();return}let _e=u(Z);if(!_e)return;if(!e.directoryExists){ie();return}let $=f(B),H={fileExists:e.fileExists(Z),directoryExists:e.directoryExists(Z)};return H.directoryExists||y(_e.sortedAndCanonicalizedDirectories,s($))?ie():J(_e,$,H.fileExists),H}function X(B,Z,ae){if(ae===1)return;let _e=u(Z);_e&&J(_e,f(B),ae===0)}function J(B,Z,ae){let _e=B.sortedAndCanonicalizedFiles,$=s(Z);if(ae)j0(_e,$,Ou)&&B.files.push(Z);else{let H=Rh(_e,$,No,Ou);if(H>=0){_e.splice(H,1);let K=B.files.findIndex(oe=>s(oe)===$);B.files.splice(K,1)}}}function ie(){i.clear()}}function p9(e,t,n,i,s){var o;let c=jh(((o=t?.configFile)==null?void 0:o.extendedSourceFiles)||Ve,s);n.forEach((u,f)=>{c.has(f)||(u.projects.delete(e),u.close())}),c.forEach((u,f)=>{let g=n.get(f);g?g.projects.add(e):n.set(f,{projects:new Set([e]),watcher:i(u,f),close:()=>{let p=n.get(f);!p||p.projects.size!==0||(p.watcher.close(),n.delete(f))}})})}function UU(e,t){t.forEach(n=>{n.projects.delete(e)&&n.close()})}function d9(e,t,n){e.delete(t)&&e.forEach(({extendedResult:i},s)=>{var o;(o=i.extendedSourceFiles)!=null&&o.some(c=>n(c)===t)&&d9(e,s,n)})}function m2e(e,t,n){let i=new Map(e);lC(t,i,{createNewValue:n,onDeleteValue:fd})}function qU(e,t,n){let i=e.getMissingFilePaths(),s=jh(i,No,Yg);lC(t,s,{createNewValue:n,onDeleteValue:fd})}function cA(e,t,n){lC(e,t,{createNewValue:i,onDeleteValue:Cf,onExistingValue:s});function i(o,c){return{watcher:n(o,c),flags:c}}function s(o,c,u){o.flags!==c&&(o.watcher.close(),e.set(u,i(u,c)))}}function lA({watchedDirPath:e,fileOrDirectory:t,fileOrDirectoryPath:n,configFileName:i,options:s,program:o,extraFileExtensions:c,currentDirectory:u,useCaseSensitiveFileNames:f,writeLog:g,toPath:p,getScriptKind:y}){let S=P9(n);if(!S)return g(`Project: ${i} Detected ignored path: ${t}`),!0;if(n=S,n===e)return!1;if(fx(n)&&!(Ene(t,s,c)||O()))return g(`Project: ${i} Detected file add/remove of non supported extension: ${t}`),!0;if(fie(t,s.configFile.configFileSpecs,cs(Xr(i),u),f,u))return g(`Project: ${i} Detected excluded file: ${t}`),!0;if(!o||lo(s)||s.outDir)return!1;if(Jl(n)){if(s.declarationDir)return!1}else if(!$c(n,hC))return!1;let x=zu(n),C=ss(o)?void 0:XMe(o)?o.getProgramOrUndefined():o,w=!C&&!ss(o)?o:void 0;if(D(x+".ts")||D(x+".tsx"))return g(`Project: ${i} Detected output file: ${t}`),!0;return!1;function D(z){return C?!!C.getSourceFileByPath(z):w?w.getState().fileInfos.has(z):!!xr(o,V=>p(V)===z)}function O(){if(!y)return!1;switch(y(t)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return m1(s);case 6:return $v(s);case 0:return!1}}}function XMe(e){return!!e.getState}function Hse(e,t){return e?e.isEmittedFile(t):!1}function HU(e,t,n,i){AK(t===2?n:Fa);let s={watchFile:(w,D,O,z)=>e.watchFile(w,D,O,z),watchDirectory:(w,D,O,z)=>e.watchDirectory(w,D,(O&1)!==0,z)},o=t!==0?{watchFile:x("watchFile"),watchDirectory:x("watchDirectory")}:void 0,c=t===2?{watchFile:y,watchDirectory:S}:o||s,u=t===2?p:t6;return{watchFile:f("watchFile"),watchDirectory:f("watchDirectory")};function f(w){return(D,O,z,V,X,J)=>{var ie;return TO(D,w==="watchFile"?V?.excludeFiles:V?.excludeDirectories,g(),((ie=e.getCurrentDirectory)==null?void 0:ie.call(e))||"")?u(D,z,V,X,J):c[w].call(void 0,D,O,z,V,X,J)}}function g(){return typeof e.useCaseSensitiveFileNames=="boolean"?e.useCaseSensitiveFileNames:e.useCaseSensitiveFileNames()}function p(w,D,O,z,V){return n(`ExcludeWatcher:: Added:: ${C(w,D,O,z,V,i)}`),{close:()=>n(`ExcludeWatcher:: Close:: ${C(w,D,O,z,V,i)}`)}}function y(w,D,O,z,V,X){n(`FileWatcher:: Added:: ${C(w,O,z,V,X,i)}`);let J=o.watchFile(w,D,O,z,V,X);return{close:()=>{n(`FileWatcher:: Close:: ${C(w,O,z,V,X,i)}`),J.close()}}}function S(w,D,O,z,V,X){let J=`DirectoryWatcher:: Added:: ${C(w,O,z,V,X,i)}`;n(J);let ie=So(),B=o.watchDirectory(w,D,O,z,V,X),Z=So()-ie;return n(`Elapsed:: ${Z}ms ${J}`),{close:()=>{let ae=`DirectoryWatcher:: Close:: ${C(w,O,z,V,X,i)}`;n(ae);let _e=So();B.close();let $=So()-_e;n(`Elapsed:: ${$}ms ${ae}`)}}}function x(w){return(D,O,z,V,X,J)=>s[w].call(void 0,D,(...ie)=>{let B=`${w==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${ie[0]} ${ie[1]!==void 0?ie[1]:""}:: ${C(D,z,V,X,J,i)}`;n(B);let Z=So();O.call(void 0,...ie);let ae=So()-Z;n(`Elapsed:: ${ae}ms ${B}`)},z,V,X,J)}function C(w,D,O,z,V,X){return`WatchInfo: ${w} ${D} ${JSON.stringify(O)} ${X?X(z,V):V===void 0?z:`${z} ${V}`}`}}function uA(e){let t=e?.fallbackPolling;return{watchFile:t!==void 0?t:1}}function Cf(e){e.watcher.close()}var GU,$U,QMe=ze({"src/compiler/watchUtilities.ts"(){"use strict";Rs(),GU=(e=>(e[e.Update=0]="Update",e[e.RootNamesAndUpdate=1]="RootNamesAndUpdate",e[e.Full=2]="Full",e))(GU||{}),$U=(e=>(e[e.None=0]="None",e[e.TriggerOnly=1]="TriggerOnly",e[e.Verbose=2]="Verbose",e))($U||{})}});function Gse(e,t,n="tsconfig.json"){return Ld(e,i=>{let s=Qr(i,n);return t(s)?s:void 0})}function m9(e,t){let n=Xr(t),i=I_(e)?e:Qr(n,e);return Ys(i)}function $se(e,t,n){let i;return Qt(e,o=>{let c=gP(o,t);if(c.pop(),!i){i=c;return}let u=Math.min(i.length,c.length);for(let f=0;f{let c;try{Fo("beforeIORead"),c=e(i,t().charset),Fo("afterIORead"),gf("I/O Read","beforeIORead","afterIORead")}catch(u){o&&o(u.message),c=""}return c!==void 0?F8(i,c,s,n):void 0}}function QU(e,t,n){return(i,s,o,c)=>{try{Fo("beforeIOWrite"),Iz(i,s,o,e,t,n),Fo("afterIOWrite"),gf("I/O Write","beforeIOWrite","afterIOWrite")}catch(u){c&&c(u.message)}}}function YU(e,t,n=Hl){let i=new Map,s=cu(n.useCaseSensitiveFileNames);function o(p){return i.has(p)?!0:(g.directoryExists||n.directoryExists)(p)?(i.set(p,!0),!0):!1}function c(){return Xr(Ys(n.getExecutingFilePath()))}let u=Yh(e),f=n.realpath&&(p=>n.realpath(p)),g={getSourceFile:XU(p=>g.readFile(p),()=>e,t),getDefaultLibLocation:c,getDefaultLibFileName:p=>Qr(c(),EP(p)),writeFile:QU((p,y,S)=>n.writeFile(p,y,S),p=>(g.createDirectory||n.createDirectory)(p),p=>o(p)),getCurrentDirectory:Yu(()=>n.getCurrentDirectory()),useCaseSensitiveFileNames:()=>n.useCaseSensitiveFileNames,getCanonicalFileName:s,getNewLine:()=>u,fileExists:p=>n.fileExists(p),readFile:p=>n.readFile(p),trace:p=>n.write(p+u),directoryExists:p=>n.directoryExists(p),getEnvironmentVariable:p=>n.getEnvironmentVariable?n.getEnvironmentVariable(p):"",getDirectories:p=>n.getDirectories(p),realpath:f,readDirectory:(p,y,S,x,C)=>n.readDirectory(p,y,S,x,C),createDirectory:p=>n.createDirectory(p),createHash:Js(n,n.createHash)};return g}function _A(e,t,n){let i=e.readFile,s=e.fileExists,o=e.directoryExists,c=e.createDirectory,u=e.writeFile,f=new Map,g=new Map,p=new Map,y=new Map,S=w=>{let D=t(w),O=f.get(D);return O!==void 0?O!==!1?O:void 0:x(D,w)},x=(w,D)=>{let O=i.call(e,D);return f.set(w,O!==void 0?O:!1),O};e.readFile=w=>{let D=t(w),O=f.get(D);return O!==void 0?O!==!1?O:void 0:!nc(w,".json")&&!Vse(w)?i.call(e,w):x(D,w)};let C=n?(w,D,O,z)=>{let V=t(w),X=typeof D=="object"?D.impliedNodeFormat:void 0,J=y.get(X),ie=J?.get(V);if(ie)return ie;let B=n(w,D,O,z);return B&&(Jl(w)||nc(w,".json"))&&y.set(X,(J||new Map).set(V,B)),B}:void 0;return e.fileExists=w=>{let D=t(w),O=g.get(D);if(O!==void 0)return O;let z=s.call(e,w);return g.set(D,!!z),z},u&&(e.writeFile=(w,D,...O)=>{let z=t(w);g.delete(z);let V=f.get(z);V!==void 0&&V!==D?(f.delete(z),y.forEach(X=>X.delete(z))):C&&y.forEach(X=>{let J=X.get(z);J&&J.text!==D&&X.delete(z)}),u.call(e,w,D,...O)}),o&&(e.directoryExists=w=>{let D=t(w),O=p.get(D);if(O!==void 0)return O;let z=o.call(e,w);return p.set(D,!!z),z},c&&(e.createDirectory=w=>{let D=t(w);p.delete(D),c.call(e,w)})),{originalReadFile:i,originalFileExists:s,originalDirectoryExists:o,originalCreateDirectory:c,originalWriteFile:u,getSourceFileWithCache:C,readFileWithCache:S}}function g2e(e,t,n){let i;return i=Nr(i,e.getConfigFileParsingDiagnostics()),i=Nr(i,e.getOptionsDiagnostics(n)),i=Nr(i,e.getSyntacticDiagnostics(t,n)),i=Nr(i,e.getGlobalDiagnostics(n)),i=Nr(i,e.getSemanticDiagnostics(t,n)),qf(e.getCompilerOptions())&&(i=Nr(i,e.getDeclarationDiagnostics(t,n))),Ek(i||Ve)}function h2e(e,t){let n="";for(let i of e)n+=ZU(i,t);return n}function ZU(e,t){let n=`${_2(e)} TS${e.code}: ${Qd(e.messageText,t.getNewLine())}${t.getNewLine()}`;if(e.file){let{line:i,character:s}=Ka(e.file,e.start),o=e.file.fileName;return`${L4(o,t.getCurrentDirectory(),u=>t.getCanonicalFileName(u))}(${i+1},${s+1}): `+n}return n}function y2e(e){switch(e){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return E.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function pb(e,t){return t+e+Kse}function v2e(e,t,n,i,s,o){let{line:c,character:u}=Ka(e,t),{line:f,character:g}=Ka(e,t+n),p=Ka(e,e.text.length).line,y=f-c>=4,S=(f+1+"").length;y&&(S=Math.max(eae.length,S));let x="";for(let C=c;C<=f;C++){x+=o.getNewLine(),y&&c+1n.getCanonicalFileName(f)):e.fileName,u="";return u+=i(c,"\x1B[96m"),u+=":",u+=i(`${s+1}`,"\x1B[93m"),u+=":",u+=i(`${o+1}`,"\x1B[93m"),u}function Qse(e,t){let n="";for(let i of e){if(i.file){let{file:s,start:o}=i;n+=KU(s,o,t),n+=" - "}if(n+=pb(_2(i),y2e(i.category)),n+=pb(` TS${i.code}: `,"\x1B[90m"),n+=Qd(i.messageText,t.getNewLine()),i.file&&i.code!==d.File_appears_to_be_binary.code&&(n+=t.getNewLine(),n+=v2e(i.file,i.start,i.length,"",y2e(i.category),t)),i.relatedInformation){n+=t.getNewLine();for(let{file:s,start:o,length:c,messageText:u}of i.relatedInformation)s&&(n+=t.getNewLine(),n+=x2e+KU(s,o,t),n+=v2e(s,o,c,tae,"\x1B[96m",t)),n+=t.getNewLine(),n+=tae+Qd(u,t.getNewLine())}n+=t.getNewLine()}return n}function Qd(e,t,n=0){if(os(e))return e;if(e===void 0)return"";let i="";if(n){i+=t;for(let s=0;sWC(o,e,n,i,s,t,c)}}function Zse(e){return os(e)?e:Od(e.fileName)}function h9(e,t,n,i,s){return{nameAndMode:k9,resolve:(o,c)=>Eie(o,e,n,i,t,s,c)}}function fA(e,t,n,i,s,o,c,u){if(e.length===0)return Ve;let f=[],g=new Map,p=u(t,n,i,o,c);for(let y of e){let S=p.nameAndMode.getName(y),x=p.nameAndMode.getMode(y,s),C=g3(S,x),w=g.get(C);w||g.set(C,w=p.resolve(S,x)),f.push(w)}return f}function rq(e,t){return y9(void 0,e,(n,i)=>n&&t(n,i))}function y9(e,t,n,i){let s;return o(e,t,void 0);function o(c,u,f){if(i){let g=i(c,f);if(g)return g}return Qt(u,(g,p)=>{if(g&&s?.has(g.sourceFile.path))return;let y=n(g,f,p);return y||!g?y:((s||(s=new Set)).add(g.sourceFile.path),o(g.commandLine.projectReferences,g.references,g))})}}function v9(e,t,n){let i=e.configFilePath?Xr(e.configFilePath):t;return Qr(i,`__lib_node_modules_lookup_${n}__.ts`)}function iq(e){let t=e.split("."),n=t[1],i=2;for(;t[i]&&t[i]!=="d";)n+=(i===2?"/":"-")+t[i],i++;return"@typescript/lib-"+n}function b2e(e){let t=Od(e.fileName),n=kO.get(t);return{libName:t,libFileName:n}}function I1(e){switch(e?.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function XC(e){return e.pos!==void 0}function N3(e,t){var n,i,s,o;let c=E.checkDefined(e.getSourceFileByPath(t.file)),{kind:u,index:f}=t,g,p,y,S;switch(u){case 3:let x=T9(c,f);if(y=(i=(n=e.getResolvedModule(c,x.text,eq(c,f)))==null?void 0:n.resolvedModule)==null?void 0:i.packageId,x.pos===-1)return{file:c,packageId:y,text:x.text};g=ma(c.text,x.pos),p=x.end;break;case 4:({pos:g,end:p}=c.referencedFiles[f]);break;case 5:({pos:g,end:p,resolutionMode:S}=c.typeReferenceDirectives[f]),y=(o=(s=e.getResolvedTypeReferenceDirective(c,Od(c.typeReferenceDirectives[f].fileName),S||c.impliedNodeFormat))==null?void 0:s.resolvedTypeReferenceDirective)==null?void 0:o.packageId;break;case 7:({pos:g,end:p}=c.libReferenceDirectives[f]);break;default:return E.assertNever(u)}return{file:c,pos:g,end:p,packageId:y}}function sq(e,t,n,i,s,o,c,u,f,g){if(!e||u?.()||!cd(e.getRootFileNames(),t))return!1;let p;if(!cd(e.getProjectReferences(),g,C)||e.getSourceFiles().some(S)||e.getMissingFilePaths().some(s))return!1;let y=e.getCompilerOptions();if(!qz(y,n)||e.resolvedLibReferences&&$l(e.resolvedLibReferences,(D,O)=>c(O)))return!1;if(y.configFile&&n.configFile)return y.configFile.text===n.configFile.text;return!0;function S(D){return!x(D)||o(D.path)}function x(D){return D.version===i(D.resolvedPath,D.fileName)}function C(D,O,z){return LJ(D,O)&&w(e.getResolvedProjectReferences()[z],D)}function w(D,O){if(D){if(gs(p,D))return!0;let V=QC(O),X=f(V);return!X||D.commandLine.options.configFile!==X.options.configFile||!cd(D.commandLine.fileNames,X.fileNames)?!1:((p||(p=[])).push(D),!Qt(D.references,(J,ie)=>!w(J,D.commandLine.projectReferences[ie])))}let z=QC(O);return!f(z)}}function Z2(e){return e.options.configFile?[...e.options.configFile.parseDiagnostics,...e.errors]:e.errors}function pA(e,t,n,i){let s=aq(e,t,n,i);return typeof s=="object"?s.impliedNodeFormat:s}function aq(e,t,n,i){switch(Yl(i)){case 3:case 99:return $c(e,[".d.mts",".mts",".mjs"])?99:$c(e,[".d.cts",".cts",".cjs"])?1:$c(e,[".d.ts",".ts",".tsx",".js",".jsx"])?s():void 0;default:return}function s(){let o=X8(t,n,i),c=[];o.failedLookupLocations=c,o.affectingLocations=c;let u=Q8(e,o);return{impliedNodeFormat:u?.contents.packageJsonContent.type==="module"?99:1,packageJsonLocations:c,packageJsonScope:u}}}function YMe(e,t){return e?Rk(e.getCompilerOptions(),t,EO):!1}function ZMe(e,t,n,i,s,o){return{rootNames:e,options:t,host:n,oldProgram:i,configFileParsingDiagnostics:s,typeScriptVersion:o}}function b9(e,t,n,i,s){var o,c,u,f,g,p,y,S,x,C,w,D,O,z,V,X;let J=ss(e)?ZMe(e,t,n,i,s):e,{rootNames:ie,options:B,configFileParsingDiagnostics:Z,projectReferences:ae,typeScriptVersion:_e}=J,{oldProgram:$}=J,H=Yu(()=>Dp("ignoreDeprecations",d.Invalid_value_for_ignoreDeprecations)),K,oe,Se,se,Y,ve,xe,Me=new Map,ke=mf(),he={},be={},_t=sT(),mt,me,Oe,Qe,at,ht,Je,lt,Jt,Gt,Tn=typeof B.maxNodeModuleJsDepth=="number"?B.maxNodeModuleJsDepth:0,Un=0,cn=new Map,zt=new Map;(o=Wn)==null||o.push(Wn.Phase.Program,"createProgram",{configFilePath:B.configFilePath,rootDir:B.rootDir},!0),Fo("beforeProgram");let Ft=J.host||Xse(B),Lr=x9(Ft),ji=B.noLib,ii=Yu(()=>Ft.getDefaultLibFileName(B)),Hi=Ft.getDefaultLibLocation?Ft.getDefaultLibLocation():Xr(ii()),Ye=iC(),fn=Ft.getCurrentDirectory(),An=AE(B),Ot=qw(B,An),Sn=new Map,Cn,Kn,Fi,Wi=Ft.hasInvalidatedResolutions||ld;Ft.resolveModuleNameLiterals?(Fi=Ft.resolveModuleNameLiterals.bind(Ft),Kn=(c=Ft.getModuleResolutionCache)==null?void 0:c.call(Ft)):Ft.resolveModuleNames?(Fi=(Ee,We,xt,jt,nn,Bn)=>Ft.resolveModuleNames(Ee.map(Yse),We,Bn?.map(Yse),xt,jt,nn).map(sn=>sn?sn.extension!==void 0?{resolvedModule:sn}:{resolvedModule:{...sn,extension:Lx(sn.resolvedFileName)}}:nae),Kn=(u=Ft.getModuleResolutionCache)==null?void 0:u.call(Ft)):(Kn=VC(fn,Xf,B),Fi=(Ee,We,xt,jt,nn)=>fA(Ee,We,xt,jt,nn,Ft,Kn,nq));let Ii;if(Ft.resolveTypeReferenceDirectiveReferences)Ii=Ft.resolveTypeReferenceDirectiveReferences.bind(Ft);else if(Ft.resolveTypeReferenceDirectives)Ii=(Ee,We,xt,jt,nn)=>Ft.resolveTypeReferenceDirectives(Ee.map(Zse),We,xt,jt,nn?.impliedNodeFormat).map(Bn=>({resolvedTypeReferenceDirective:Bn}));else{let Ee=OO(fn,Xf,void 0,Kn?.getPackageJsonInfoCache(),Kn?.optionsToRedirectsKey);Ii=(We,xt,jt,nn,Bn)=>fA(We,xt,jt,nn,Bn,Ft,Ee,h9)}let Ki=Ft.hasInvalidatedLibResolutions||ld,na;if(Ft.resolveLibrary)na=Ft.resolveLibrary.bind(Ft);else{let Ee=VC(fn,Xf,B,Kn?.getPackageJsonInfoCache());na=(We,xt,jt)=>LO(We,xt,jt,Ft,Ee)}let Fs=new Map,Ce=new Map,Ue=mf(),it=!1,dt=new Map,gt,fe=Ft.useCaseSensitiveFileNames()?new Map:void 0,we,Be,yt,G,vt=!!((f=Ft.useSourceOfProjectReferenceRedirect)!=null&&f.call(Ft))&&!B.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:wt,fileExists:Re,directoryExists:ot}=KMe({compilerHost:Ft,getSymlinkCache:d0,useSourceOfProjectReferenceRedirect:vt,toPath:Br,getResolvedProjectReferences:_s,getSourceOfProjectReferenceRedirect:Ep,forEachResolvedProjectReference:Vc}),Dt=Ft.readFile.bind(Ft);(g=Wn)==null||g.push(Wn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!$});let Zt=YMe($,B);(p=Wn)==null||p.pop();let tn;if((y=Wn)==null||y.push(Wn.Phase.Program,"tryReuseStructureFromOldProgram",{}),tn=ua(),(S=Wn)==null||S.pop(),tn!==2){if(K=[],oe=[],ae&&(we||(we=ae.map(Ze)),ie.length&&we?.forEach((Ee,We)=>{if(!Ee)return;let xt=lo(Ee.commandLine.options);if(vt){if(xt||Ql(Ee.commandLine.options)===0)for(let jt of Ee.commandLine.fileNames)ye(jt,{kind:1,index:We})}else if(xt)ye(g1(xt,".d.ts"),{kind:2,index:We});else if(Ql(Ee.commandLine.options)===0){let jt=Yu(()=>A3(Ee.commandLine,!Ft.useCaseSensitiveFileNames()));for(let nn of Ee.commandLine.fileNames)!Jl(nn)&&!nc(nn,".json")&&ye(P3(nn,Ee.commandLine,!Ft.useCaseSensitiveFileNames(),jt),{kind:2,index:We})}})),(x=Wn)==null||x.push(Wn.Phase.Program,"processRootFiles",{count:ie.length}),Qt(ie,(Ee,We)=>ll(Ee,!1,!1,{kind:0,index:We})),(C=Wn)==null||C.pop(),me??(me=ie.length?FO(B,Ft):Ve),Oe=sT(),me.length){(w=Wn)==null||w.push(Wn.Phase.Program,"processTypeReferences",{count:me.length});let Ee=B.configFilePath?Xr(B.configFilePath):fn,We=Qr(Ee,YC),xt=In(me,We);for(let jt=0;jt{ll(du(We),!0,!1,{kind:6,index:xt})})}gt=hs(gk(dt.entries(),([Ee,We])=>We===void 0?Ee:void 0)),Se=Mh(K,br).concat(oe),K=void 0,oe=void 0}if(E.assert(!!gt),$&&Ft.onReleaseOldSourceFile){let Ee=$.getSourceFiles();for(let We of Ee){let xt=Xs(We.resolvedPath);(Zt||!xt||xt.impliedNodeFormat!==We.impliedNodeFormat||We.resolvedPath===We.path&&xt.resolvedPath!==We.path)&&Ft.onReleaseOldSourceFile(We,$.getCompilerOptions(),!!Xs(We.path))}Ft.getParsedCommandLine||$.forEachResolvedProjectReference(We=>{n_(We.sourceFile.path)||Ft.onReleaseOldSourceFile(We.sourceFile,$.getCompilerOptions(),!1)})}$&&Ft.onReleaseParsedCommandLine&&y9($.getProjectReferences(),$.getResolvedProjectReferences(),(Ee,We,xt)=>{let jt=We?.commandLine.projectReferences[xt]||$.getProjectReferences()[xt],nn=QC(jt);Be?.has(Br(nn))||Ft.onReleaseParsedCommandLine(nn,Ee,$.getCompilerOptions())}),$=void 0,at=void 0,Je=void 0,Jt=void 0;let ln={getRootFileNames:()=>ie,getSourceFile:Do,getSourceFileByPath:Xs,getSourceFiles:()=>Se,getMissingFilePaths:()=>gt,getModuleResolutionCache:()=>Kn,getFilesByNameMap:()=>dt,getCompilerOptions:()=>B,getSyntacticDiagnostics:td,getOptionsDiagnostics:pi,getGlobalDiagnostics:Ea,getSemanticDiagnostics:zc,getCachedSemanticDiagnostics:ic,getSuggestionDiagnostics:Pe,getDeclarationDiagnostics:Ht,getBindAndCheckDiagnostics:Bo,getProgramDiagnostics:as,getTypeChecker:Ho,getClassifiableNames:wr,getCommonSourceDirectory:Mi,emit:xs,getCurrentDirectory:()=>fn,getNodeCount:()=>Ho().getNodeCount(),getIdentifierCount:()=>Ho().getIdentifierCount(),getSymbolCount:()=>Ho().getSymbolCount(),getTypeCount:()=>Ho().getTypeCount(),getInstantiationCount:()=>Ho().getInstantiationCount(),getRelationCacheSizes:()=>Ho().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>mt,getResolvedTypeReferenceDirectives:()=>_t,getAutomaticTypeDirectiveNames:()=>me,getAutomaticTypeDirectiveResolutions:()=>Oe,isSourceFileFromExternalLibrary:ec,isSourceFileDefaultLibrary:gl,getSourceFileFromReference:Au,getLibFileFromReference:t_,sourceFileToPackageName:Ce,redirectTargetsMap:Ue,usesUriStyleNodeCoreModules:it,resolvedModules:ht,resolvedTypeReferenceDirectiveNames:lt,resolvedLibReferences:Qe,getResolvedModule:W,getResolvedTypeReferenceDirective:j,forEachResolvedModule:ce,forEachResolvedTypeReferenceDirective:ee,getCurrentPackagesMap:()=>Gt,typesPackageExists:De,packageBundlesTypes:qe,isEmittedFile:xd,getConfigFileParsingDiagnostics:yc,getProjectReferences:to,getResolvedProjectReferences:_s,getProjectReferenceRedirect:Go,getResolvedProjectReferenceToRedirect:pc,getResolvedProjectReferenceByPath:n_,forEachResolvedProjectReference:Vc,isSourceOfProjectReferenceRedirect:Nf,emitBuildInfo:Nc,fileExists:Re,readFile:Dt,directoryExists:ot,getSymlinkCache:d0,realpath:(V=Ft.realpath)==null?void 0:V.bind(Ft),useCaseSensitiveFileNames:()=>Ft.useCaseSensitiveFileNames(),getCanonicalFileName:Xf,getFileIncludeReasons:()=>ke,structureIsReused:tn,writeFile:Pn};return wt(),mt?.forEach(Ee=>{switch(Ee.kind){case 1:return Ye.add(It(Ee.file&&Xs(Ee.file),Ee.fileProcessingReason,Ee.diagnostic,Ee.args||Ve));case 0:let{file:We,pos:xt,end:jt}=N3(ln,Ee.reason);return Ye.add(Nl(We,E.checkDefined(xt),E.checkDefined(jt)-xt,Ee.diagnostic,...Ee.args||Ve));case 2:return Ee.diagnostics.forEach(nn=>Ye.add(nn));default:E.assertNever(Ee)}}),Pt(),Fo("afterProgram"),gf("Program","beforeProgram","afterProgram"),(X=Wn)==null||X.pop(),ln;function W(Ee,We,xt){var jt;return(jt=ht?.get(Ee.path))==null?void 0:jt.get(We,xt)}function j(Ee,We,xt){var jt;return(jt=lt?.get(Ee.path))==null?void 0:jt.get(We,xt)}function ce(Ee,We){ue(ht,Ee,We)}function ee(Ee,We){ue(lt,Ee,We)}function ue(Ee,We,xt){var jt;xt?(jt=Ee?.get(xt.path))==null||jt.forEach((nn,Bn,sn)=>We(nn,Bn,sn,xt.path)):Ee?.forEach((nn,Bn)=>nn.forEach((sn,En,oi)=>We(sn,En,oi,Bn)))}function M(){return Gt||(Gt=new Map,ce(({resolvedModule:Ee})=>{Ee?.packageId&&Gt.set(Ee.packageId.name,Ee.extension===".d.ts"||!!Gt.get(Ee.packageId.name))}),Gt)}function De(Ee){return M().has(BO(Ee))}function qe(Ee){return!!M().get(Ee)}function Fe(Ee){var We;(We=Ee.resolutionDiagnostics)!=null&&We.length&&(mt??(mt=[])).push({kind:2,diagnostics:Ee.resolutionDiagnostics})}function St(Ee,We,xt,jt){if(Ft.resolveModuleNameLiterals||!Ft.resolveModuleNames)return Fe(xt);if(!Kn||Al(We))return;let nn=cs(Ee.originalFileName,fn),Bn=Xr(nn),sn=Rn(Ee),En=Kn.getFromNonRelativeNameCache(We,jt,Bn,sn);En&&Fe(En)}function Mt(Ee,We,xt){var jt,nn;if(!Ee.length)return Ve;let Bn=cs(We.originalFileName,fn),sn=Rn(We);(jt=Wn)==null||jt.push(Wn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Bn}),Fo("beforeResolveModule");let En=Fi(Ee,Bn,sn,B,We,xt);return Fo("afterResolveModule"),gf("ResolveModule","beforeResolveModule","afterResolveModule"),(nn=Wn)==null||nn.pop(),En}function Wt(Ee,We,xt){var jt,nn;if(!Ee.length)return[];let Bn=os(We)?void 0:We,sn=os(We)?We:cs(We.originalFileName,fn),En=Bn&&Rn(Bn);(jt=Wn)==null||jt.push(Wn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:sn}),Fo("beforeResolveTypeReference");let oi=Ii(Ee,sn,En,B,Bn,xt);return Fo("afterResolveTypeReference"),gf("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(nn=Wn)==null||nn.pop(),oi}function Rn(Ee){let We=pc(Ee.originalFileName);if(We||!Jl(Ee.originalFileName))return We;let xt=nr(Ee.path);if(xt)return xt;if(!Ft.realpath||!B.preserveSymlinks||!Ee.originalFileName.includes(zm))return;let jt=Br(Ft.realpath(Ee.originalFileName));return jt===Ee.path?void 0:nr(jt)}function nr(Ee){let We=Ep(Ee);if(os(We))return pc(We);if(We)return Vc(xt=>{let jt=lo(xt.commandLine.options);if(jt)return Br(jt)===Ee?xt:void 0})}function br(Ee,We){return Io(jr(Ee),jr(We))}function jr(Ee){if(Cm(Hi,Ee.fileName,!1)){let We=Mc(Ee.fileName);if(We==="lib.d.ts"||We==="lib.es6.d.ts")return 0;let xt=yk(w4(We,"lib."),".d.ts"),jt=z8.indexOf(xt);if(jt!==-1)return jt+1}return z8.length+2}function Br(Ee){return xo(Ee,fn,Xf)}function Mi(){if(Y===void 0){let Ee=Fr(Se,We=>Ex(We,ln));Y=w3(B,()=>Ri(Ee,We=>We.isDeclarationFile?void 0:We.fileName),fn,Xf,We=>Q(Ee,We))}return Y}function wr(){var Ee;if(!xe){Ho(),xe=new Set;for(let We of Se)(Ee=We.classifiableNames)==null||Ee.forEach(xt=>xe.add(xt))}return xe}function is(Ee,We){if(tn===0&&!We.ambientModuleNames.length)return Mt(Ee,We,void 0);let xt,jt,nn,Bn=nae,sn=$&&$.getSourceFile(We.fileName);for(let gr=0;gr{let jt=(We?We.commandLine.projectReferences:ae)[xt],nn=Ze(jt);return Ee?!nn||nn.sourceFile!==Ee.sourceFile||!cd(Ee.commandLine.fileNames,nn.commandLine.fileNames):nn!==void 0},(Ee,We)=>{let xt=We?n_(We.sourceFile.path).commandLine.projectReferences:ae;return!cd(Ee,xt,LJ)})}function ua(){var Ee;if(!$)return 0;let We=$.getCompilerOptions();if(J7(We,B))return 0;let xt=$.getRootFileNames();if(!cd(xt,ie)||!mi())return 0;ae&&(we=ae.map(Ze));let jt=[],nn=[];if(tn=2,$.getMissingFilePaths().some(mr=>Ft.fileExists(mr)))return 0;let Bn=$.getSourceFiles(),sn;(mr=>{mr[mr.Exists=0]="Exists",mr[mr.Modified=1]="Modified"})(sn||(sn={}));let En=new Map;for(let mr of Bn){let gr=Os(mr.fileName,Kn,Ft,B),_r=Ft.getSourceFileByPath?Ft.getSourceFileByPath(mr.fileName,mr.resolvedPath,gr,void 0,Zt):Ft.getSourceFile(mr.fileName,gr,void 0,Zt);if(!_r)return 0;_r.packageJsonLocations=(Ee=gr.packageJsonLocations)!=null&&Ee.length?gr.packageJsonLocations:void 0,_r.packageJsonScope=gr.packageJsonScope,E.assert(!_r.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let Oi;if(mr.redirectInfo){if(_r!==mr.redirectInfo.unredirected)return 0;Oi=!1,_r=mr}else if($.redirectTargetsMap.has(mr.path)){if(_r!==mr)return 0;Oi=!1}else Oi=_r!==mr;_r.path=mr.path,_r.originalFileName=mr.originalFileName,_r.resolvedPath=mr.resolvedPath,_r.fileName=mr.fileName;let io=$.sourceFileToPackageName.get(mr.path);if(io!==void 0){let Za=En.get(io),W_=Oi?1:0;if(Za!==void 0&&W_===1||Za===1)return 0;En.set(io,W_)}if(Oi)mr.impliedNodeFormat!==_r.impliedNodeFormat?tn=1:cd(mr.libReferenceDirectives,_r.libReferenceDirectives,_o)?mr.hasNoDefaultLib!==_r.hasNoDefaultLib?tn=1:cd(mr.referencedFiles,_r.referencedFiles,_o)?(Cl(_r),cd(mr.imports,_r.imports,ul)&&cd(mr.moduleAugmentations,_r.moduleAugmentations,ul)?(mr.flags&12582912)!==(_r.flags&12582912)?tn=1:cd(mr.typeReferenceDirectives,_r.typeReferenceDirectives,_o)||(tn=1):tn=1):tn=1:tn=1,nn.push(_r);else if(Wi(mr.path))tn=1,nn.push(_r);else for(let Za of mr.ambientModuleNames)Me.set(Za,mr.fileName);jt.push(_r)}if(tn!==2)return tn;for(let mr of nn){let gr=S2e(mr),_r=is(gr,mr);(Je??(Je=new Map)).set(mr.path,_r),RJ(gr,mr,_r,(J1,yy)=>$.getResolvedModule(mr,J1,yy),Bee,dA)&&(tn=1);let io=mr.typeReferenceDirectives,Za=In(io,mr);(Jt??(Jt=new Map)).set(mr.path,Za),RJ(io,mr,Za,(J1,yy)=>$?.getResolvedTypeReferenceDirective(mr,J1,yy),Jee,k9)&&(tn=1)}if(tn!==2)return tn;if(Ree(We,B)||$.resolvedLibReferences&&$l($.resolvedLibReferences,(mr,gr)=>Ag(gr).actual!==mr.actual))return 1;if(Ft.hasChangedAutomaticTypeDirectiveNames){if(Ft.hasChangedAutomaticTypeDirectiveNames())return 1}else if(me=FO(B,Ft),!cd($.getAutomaticTypeDirectiveNames(),me))return 1;gt=$.getMissingFilePaths(),E.assert(jt.length===$.getSourceFiles().length);for(let mr of jt)dt.set(mr.path,mr);return $.getFilesByNameMap().forEach((mr,gr)=>{if(!mr){dt.set(gr,mr);return}if(mr.path===gr){$.isSourceFileFromExternalLibrary(mr)&&zt.set(mr.path,!0);return}dt.set(gr,dt.get(mr.path))}),Se=jt,ke=$.getFileIncludeReasons(),mt=$.getFileProcessingDiagnostics(),_t=$.getResolvedTypeReferenceDirectives(),me=$.getAutomaticTypeDirectiveNames(),Oe=$.getAutomaticTypeDirectiveResolutions(),Ce=$.sourceFileToPackageName,Ue=$.redirectTargetsMap,it=$.usesUriStyleNodeCoreModules,ht=$.resolvedModules,lt=$.resolvedTypeReferenceDirectiveNames,Qe=$.resolvedLibReferences,Gt=$.getCurrentPackagesMap(),2}function js(Ee){return{getPrependNodes:fc,getCanonicalFileName:Xf,getCommonSourceDirectory:ln.getCommonSourceDirectory,getCompilerOptions:ln.getCompilerOptions,getCurrentDirectory:()=>fn,getSourceFile:ln.getSourceFile,getSourceFileByPath:ln.getSourceFileByPath,getSourceFiles:ln.getSourceFiles,getLibFileFromReference:ln.getLibFileFromReference,isSourceFileFromExternalLibrary:ec,getResolvedProjectReferenceToRedirect:pc,getProjectReferenceRedirect:Go,isSourceOfProjectReferenceRedirect:Nf,getSymlinkCache:d0,writeFile:Ee||Pn,isEmitBlocked:$s,readFile:We=>Ft.readFile(We),fileExists:We=>{let xt=Br(We);return Xs(xt)?!0:gs(gt,xt)?!1:Ft.fileExists(We)},useCaseSensitiveFileNames:()=>Ft.useCaseSensitiveFileNames(),getBuildInfo:We=>{var xt;return(xt=ln.getBuildInfo)==null?void 0:xt.call(ln,We)},getSourceFileFromReference:(We,xt)=>ln.getSourceFileFromReference(We,xt),redirectTargetsMap:Ue,getFileIncludeReasons:ln.getFileIncludeReasons,createHash:Js(Ft,Ft.createHash)}}function Pn(Ee,We,xt,jt,nn,Bn){Ft.writeFile(Ee,We,xt,jt,nn,Bn)}function Nc(Ee){var We,xt;E.assert(!lo(B)),(We=Wn)==null||We.push(Wn.Phase.Emit,"emitBuildInfo",{},!0),Fo("beforeEmit");let jt=l9(_9,js(Ee),void 0,BU,!1,!0);return Fo("afterEmit"),gf("Emit","beforeEmit","afterEmit"),(xt=Wn)==null||xt.pop(),jt}function _s(){return we}function to(){return ae}function fc(){return cq(ae,(Ee,We)=>{var xt;return(xt=we[We])==null?void 0:xt.commandLine},Ee=>{let We=Br(Ee),xt=Xs(We);return xt?xt.text:dt.has(We)?void 0:Ft.readFile(We)},Ft)}function ec(Ee){return!!zt.get(Ee.path)}function gl(Ee){if(!Ee.isDeclarationFile)return!1;if(Ee.hasNoDefaultLib)return!0;if(!B.noLib)return!1;let We=Ft.useCaseSensitiveFileNames()?ux:lx;return B.lib?ft(B.lib,xt=>We(Ee.fileName,Qe.get(xt).actual)):We(Ee.fileName,ii())}function Ho(){return ve||(ve=$ie(ln))}function xs(Ee,We,xt,jt,nn,Bn){var sn,En;(sn=Wn)==null||sn.push(Wn.Phase.Emit,"emit",{path:Ee?.path},!0);let oi=nl(()=>cl(ln,Ee,We,xt,jt,nn,Bn));return(En=Wn)==null||En.pop(),oi}function $s(Ee){return Sn.has(Br(Ee))}function cl(Ee,We,xt,jt,nn,Bn,sn){if(!sn){let mr=oq(Ee,We,xt,jt);if(mr)return mr}let En=Ho().getEmitResolver(lo(B)?void 0:We,jt);Fo("beforeEmit");let oi=l9(En,js(xt),We,jU(B,Bn,nn),nn,!1,sn);return Fo("afterEmit"),gf("Emit","beforeEmit","afterEmit"),oi}function Do(Ee){return Xs(Br(Ee))}function Xs(Ee){return dt.get(Ee)||void 0}function Jc(Ee,We,xt){return Ek(Ee?We(Ee,xt):oa(ln.getSourceFiles(),jt=>(xt&&xt.throwIfCancellationRequested(),We(jt,xt))))}function td(Ee,We){return Jc(Ee,Jo,We)}function zc(Ee,We){return Jc(Ee,qu,We)}function ic(Ee){var We;return Ee?(We=he.perFile)==null?void 0:We.get(Ee.path):he.allDiagnostics}function Bo(Ee,We){return h_(Ee,We)}function as(Ee){var We;if(IE(Ee,B,ln))return Ve;let xt=Ye.getDiagnostics(Ee.fileName);return(We=Ee.commentDirectives)!=null&&We.length?A(Ee,Ee.commentDirectives,xt).diagnostics:xt}function Ht(Ee,We){let xt=ln.getCompilerOptions();return!Ee||lo(xt)?gn(Ee,We):Jc(Ee,Tr,We)}function Jo(Ee){return Bu(Ee)?(Ee.additionalSyntacticDiagnostics||(Ee.additionalSyntacticDiagnostics=kt(Ee)),es(Ee.additionalSyntacticDiagnostics,Ee.parseDiagnostics)):Ee.parseDiagnostics}function nl(Ee){try{return Ee()}catch(We){throw We instanceof xk&&(ve=void 0),We}}function qu(Ee,We){return es(S9(h_(Ee,We),B),as(Ee))}function h_(Ee,We){return Zn(Ee,We,he,Po)}function Po(Ee,We){return nl(()=>{if(IE(Ee,B,ln))return Ve;let xt=Ho();E.assert(!!Ee.bindDiagnostics);let nn=(Ee.scriptKind===1||Ee.scriptKind===2)&&$w(Ee,B),Bn=GP(Ee,B.checkJs),En=!(!!Ee.checkJsDirective&&Ee.checkJsDirective.enabled===!1)&&(Ee.scriptKind===3||Ee.scriptKind===4||Ee.scriptKind===5||Bn||nn||Ee.scriptKind===7),oi=En?Ee.bindDiagnostics:Ve,mr=En?xt.getDiagnostics(Ee,We):Ve;return Bn&&(oi=Fr(oi,gr=>C9.has(gr.code)),mr=Fr(mr,gr=>C9.has(gr.code))),Ic(Ee,En&&!Bn,oi,mr,nn?Ee.jsDocDiagnostics:void 0)})}function Ic(Ee,We,...xt){var jt;let nn=Jp(xt);if(!We||!((jt=Ee.commentDirectives)!=null&&jt.length))return nn;let{diagnostics:Bn,directives:sn}=A(Ee,Ee.commentDirectives,nn);for(let En of sn.getUnusedExpectations())Bn.push(tte(Ee,En.range,d.Unused_ts_expect_error_directive));return Bn}function A(Ee,We,xt){let jt=Wee(Ee,We);return{diagnostics:xt.filter(Bn=>He(Bn,jt)===-1),directives:jt}}function Pe(Ee,We){return nl(()=>Ho().getSuggestionDiagnostics(Ee,We))}function He(Ee,We){let{file:xt,start:jt}=Ee;if(!xt)return-1;let nn=Zg(xt),Bn=kk(nn,jt).line-1;for(;Bn>=0;){if(We.markUsed(Bn))return Bn;let sn=xt.text.slice(nn[Bn],nn[Bn+1]).trim();if(sn!==""&&!/^(\s*)\/\/(.*)$/.test(sn))return-1;Bn--}return-1}function kt(Ee){return nl(()=>{let We=[];return xt(Ee,Ee),l3(Ee,xt,jt),We;function xt(En,oi){switch(oi.kind){case 169:case 172:case 174:if(oi.questionToken===En)return We.push(sn(En,d.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(oi.type===En)return We.push(sn(En,d.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(En.kind){case 273:if(En.isTypeOnly)return We.push(sn(oi,d._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(En.isTypeOnly)return We.push(sn(En,d._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(En.isTypeOnly)return We.push(sn(En,d._0_declarations_can_only_be_used_in_TypeScript_files,E_(En)?"import...type":"export...type")),"skip";break;case 271:return We.push(sn(En,d.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(En.isExportEquals)return We.push(sn(En,d.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(En.token===119)return We.push(sn(En,d.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:let gr=Zs(120);return E.assertIsDefined(gr),We.push(sn(En,d._0_declarations_can_only_be_used_in_TypeScript_files,gr)),"skip";case 267:let _r=En.flags&32?Zs(145):Zs(144);return E.assertIsDefined(_r),We.push(sn(En,d._0_declarations_can_only_be_used_in_TypeScript_files,_r)),"skip";case 265:return We.push(sn(En,d.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return En.body?void 0:(We.push(sn(En,d.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:let Oi=E.checkDefined(Zs(94));return We.push(sn(En,d._0_declarations_can_only_be_used_in_TypeScript_files,Oi)),"skip";case 235:return We.push(sn(En,d.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return We.push(sn(En.type,d.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return We.push(sn(En.type,d.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:E.fail()}}function jt(En,oi){if(hW(oi)){let mr=xr(oi.modifiers,Zl);mr&&We.push(sn(mr,d.Decorators_are_not_valid_here))}else if(G2(oi)&&oi.modifiers){let mr=Qo(oi.modifiers,Zl);if(mr>=0){if(ms(oi)&&!B.experimentalDecorators)We.push(sn(oi.modifiers[mr],d.Decorators_are_not_valid_here));else if(Zc(oi)){let gr=Qo(oi.modifiers,Wx);if(gr>=0){let _r=Qo(oi.modifiers,YF);if(mr>gr&&_r>=0&&mr<_r)We.push(sn(oi.modifiers[mr],d.Decorators_are_not_valid_here));else if(gr>=0&&mr=0&&We.push(ga(sn(oi.modifiers[Oi],d.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),sn(oi.modifiers[mr],d.Decorator_used_before_export_here)))}}}}}switch(oi.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(En===oi.typeParameters)return We.push(Bn(En,d.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(En===oi.modifiers)return nn(oi.modifiers,oi.kind===243),"skip";break;case 172:if(En===oi.modifiers){for(let mr of En)ra(mr)&&mr.kind!==126&&mr.kind!==129&&We.push(sn(mr,d.The_0_modifier_can_only_be_used_in_TypeScript_files,Zs(mr.kind)));return"skip"}break;case 169:if(En===oi.modifiers&&ft(En,ra))return We.push(Bn(En,d.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(En===oi.typeArguments)return We.push(Bn(En,d.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function nn(En,oi){for(let mr of En)switch(mr.kind){case 87:if(oi)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:We.push(sn(mr,d.The_0_modifier_can_only_be_used_in_TypeScript_files,Zs(mr.kind)));break;case 126:case 95:case 90:case 129:}}function Bn(En,oi,...mr){let gr=En.pos;return Nl(Ee,gr,En.end-gr,oi,...mr)}function sn(En,oi,...mr){return pp(Ee,En,oi,...mr)}})}function gn(Ee,We){return Zn(Ee,We,be,Ar)}function Ar(Ee,We){return nl(()=>{let xt=Ho().getEmitResolver(Ee,We);return Jse(js(Fa),xt,Ee)||Ve})}function Zn(Ee,We,xt,jt){var nn;let Bn=Ee?(nn=xt.perFile)==null?void 0:nn.get(Ee.path):xt.allDiagnostics;if(Bn)return Bn;let sn=jt(Ee,We);return Ee?(xt.perFile||(xt.perFile=new Map)).set(Ee.path,sn):xt.allDiagnostics=sn,sn}function Tr(Ee,We){return Ee.isDeclarationFile?[]:gn(Ee,We)}function pi(){return Ek(es(Ye.getGlobalDiagnostics(),Dr()))}function Dr(){if(!B.configFile)return Ve;let Ee=Ye.getDiagnostics(B.configFile.fileName);return Vc(We=>{Ee=es(Ee,Ye.getDiagnostics(We.sourceFile.fileName))}),Ee}function Ea(){return ie.length?Ek(Ho().getGlobalDiagnostics().slice()):Ve}function yc(){return Z||Ve}function ll(Ee,We,xt,jt){tu(Ys(Ee),We,xt,void 0,jt)}function _o(Ee,We){return Ee.fileName===We.fileName}function ul(Ee,We){return Ee.kind===80?We.kind===80&&Ee.escapedText===We.escapedText:We.kind===11&&Ee.text===We.text}function ro(Ee,We){let xt=I.createStringLiteral(Ee),jt=I.createImportDeclaration(void 0,void 0,xt,void 0);return Rx(jt,2),Ta(xt,jt),Ta(jt,We),xt.flags&=-17,jt.flags&=-17,xt}function Cl(Ee){if(Ee.imports)return;let We=Bu(Ee),xt=Bc(Ee),jt,nn,Bn;if((pd(B)||xt)&&!Ee.isDeclarationFile){B.importHelpers&&(jt=[ro(sy,Ee)]);let gr=Q5(X5(B,Ee),B);gr&&(jt||(jt=[])).push(ro(gr,Ee))}for(let gr of Ee.statements)En(gr,!1);let sn=We&&H5(B);(Ee.flags&4194304||sn)&&oi(Ee),Ee.imports=jt||Ve,Ee.moduleAugmentations=nn||Ve,Ee.ambientModuleNames=Bn||Ve;return;function En(gr,_r){if(QP(gr)){let Oi=Qk(gr);Oi&&ca(Oi)&&Oi.text&&(!_r||!Al(Oi.text))&&(iy(gr,!1),jt=_n(jt,Oi),!it&&Un===0&&!Ee.isDeclarationFile&&(it=ts(Oi.text,"node:")))}else if(Pc(gr)&&lu(gr)&&(_r||Mr(gr,128)||Ee.isDeclarationFile)){gr.name.parent=gr;let Oi=gp(gr.name);if(xt||_r&&!Al(Oi))(nn||(nn=[])).push(gr.name);else if(!_r){Ee.isDeclarationFile&&(Bn||(Bn=[])).push(Oi);let io=gr.body;if(io)for(let Za of io.statements)En(Za,!0)}}}function oi(gr){let _r=/import|require/g;for(;_r.exec(gr.text)!==null;){let Oi=mr(gr,_r.lastIndex);sn&&T_(Oi,!0)||ef(Oi)&&Oi.arguments.length>=1&&$a(Oi.arguments[0])?(iy(Oi,!1),jt=_n(jt,Oi.arguments[0])):K0(Oi)&&(iy(Oi,!1),jt=_n(jt,Oi.argument.literal))}}function mr(gr,_r){let Oi=gr,io=Za=>{if(Za.pos<=_r&&(_rnc(nn,sn))){xt&&(Xv(nn)?xt(d.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Ee):xt(d.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Ee,"'"+Jp(An).join("', '")+"'"));return}let Bn=We(Ee);if(xt)if(Bn)I1(jt)&&nn===Ft.getCanonicalFileName(Xs(jt.file).fileName)&&xt(d.A_file_cannot_have_a_reference_to_itself);else{let sn=Go(Ee);sn?xt(d.Output_file_0_has_not_been_built_from_source_file_1,sn,Ee):xt(d.File_0_not_found,Ee)}return Bn}else{let nn=B.allowNonTsExtensions&&We(Ee);if(nn)return nn;if(xt&&B.allowNonTsExtensions){xt(d.File_0_not_found,Ee);return}let Bn=Qt(An[0],sn=>We(Ee+sn));return xt&&!Bn&&xt(d.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Ee,"'"+Jp(An).join("', '")+"'"),Bn}}function tu(Ee,We,xt,jt,nn){Gf(Ee,Bn=>Gi(Bn,We,xt,nn,jt),(Bn,...sn)=>jn(void 0,nn,Bn,sn),nn)}function ye(Ee,We){return tu(Ee,!1,!1,void 0,We)}function Tt(Ee,We,xt){!I1(xt)&&ft(ke.get(We.path),I1)?jn(We,xt,d.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[We.fileName,Ee]):jn(We,xt,d.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Ee,We.fileName])}function Ln(Ee,We,xt,jt,nn,Bn,sn){var En;let oi=Jm.createRedirectedSourceFile({redirectTarget:Ee,unredirected:We});return oi.fileName=xt,oi.path=jt,oi.resolvedPath=nn,oi.originalFileName=Bn,oi.packageJsonLocations=(En=sn.packageJsonLocations)!=null&&En.length?sn.packageJsonLocations:void 0,oi.packageJsonScope=sn.packageJsonScope,zt.set(jt,Un>0),oi}function Gi(Ee,We,xt,jt,nn){var Bn,sn;(Bn=Wn)==null||Bn.push(Wn.Phase.Program,"findSourceFile",{fileName:Ee,isDefaultLib:We||void 0,fileIncludeKind:t7[jt.kind]});let En=Bs(Ee,We,xt,jt,nn);return(sn=Wn)==null||sn.pop(),En}function Os(Ee,We,xt,jt){let nn=aq(cs(Ee,fn),We?.getPackageJsonInfoCache(),xt,jt),Bn=La(jt),sn=Vw(jt);return typeof nn=="object"?{...nn,languageVersion:Bn,setExternalModuleIndicator:sn,jsDocParsingMode:xt.jsDocParsingMode}:{languageVersion:Bn,impliedNodeFormat:nn,setExternalModuleIndicator:sn,jsDocParsingMode:xt.jsDocParsingMode}}function Bs(Ee,We,xt,jt,nn){var Bn;let sn=Br(Ee);if(vt){let _r=Ep(sn);if(!_r&&Ft.realpath&&B.preserveSymlinks&&Jl(Ee)&&Ee.includes(zm)){let Oi=Br(Ft.realpath(Ee));Oi!==sn&&(_r=Ep(Oi))}if(_r){let Oi=os(_r)?Gi(_r,We,xt,jt,nn):void 0;return Oi&&Ec(Oi,sn,void 0),Oi}}let En=Ee;if(dt.has(sn)){let _r=dt.get(sn);if(vc(_r||void 0,jt),_r&&B.forceConsistentCasingInFileNames!==!1){let Oi=_r.fileName;Br(Oi)!==Br(Ee)&&(Ee=Go(Ee)||Ee);let Za=tJ(Oi,fn),W_=tJ(Ee,fn);Za!==W_&&Tt(Ee,_r,jt)}return _r&&zt.get(_r.path)&&Un===0?(zt.set(_r.path,!1),B.noResolve||($f(_r,We),wg(_r)),B.noLib||V_(_r),cn.set(_r.path,!1),r_(_r)):_r&&cn.get(_r.path)&&Unjn(void 0,jt,d.Cannot_read_file_0_Colon_1,[Ee,_r]),Zt);if(nn){let _r=Y0(nn),Oi=Fs.get(_r);if(Oi){let io=Ln(Oi,gr,Ee,sn,Br(Ee),En,mr);return Ue.add(Oi.path,Ee),Ec(io,sn,oi),vc(io,jt),Ce.set(sn,V7(nn)),oe.push(io),io}else gr&&(Fs.set(_r,gr),Ce.set(sn,V7(nn)))}if(Ec(gr,sn,oi),gr){if(zt.set(sn,Un>0),gr.fileName=Ee,gr.path=sn,gr.resolvedPath=Br(Ee),gr.originalFileName=En,gr.packageJsonLocations=(Bn=mr.packageJsonLocations)!=null&&Bn.length?mr.packageJsonLocations:void 0,gr.packageJsonScope=mr.packageJsonScope,vc(gr,jt),Ft.useCaseSensitiveFileNames()){let _r=Od(sn),Oi=fe.get(_r);Oi?Tt(Ee,Oi,jt):fe.set(_r,gr)}ji=ji||gr.hasNoDefaultLib&&!xt,B.noResolve||($f(gr,We),wg(gr)),B.noLib||V_(gr),r_(gr),We?K.push(gr):oe.push(gr)}return gr}function vc(Ee,We){Ee&&ke.add(Ee.path,We)}function Ec(Ee,We,xt){xt?(dt.set(xt,Ee),dt.set(We,Ee||!1)):dt.set(We,Ee)}function Go(Ee){let We=tc(Ee);return We&&Fc(We,Ee)}function tc(Ee){if(!(!we||!we.length||Jl(Ee)||nc(Ee,".json")))return pc(Ee)}function Fc(Ee,We){let xt=lo(Ee.commandLine.options);return xt?g1(xt,".d.ts"):P3(We,Ee.commandLine,!Ft.useCaseSensitiveFileNames())}function pc(Ee){yt===void 0&&(yt=new Map,Vc(xt=>{Br(B.configFilePath)!==xt.sourceFile.path&&xt.commandLine.fileNames.forEach(jt=>yt.set(Br(jt),xt.sourceFile.path))}));let We=yt.get(Br(Ee));return We&&n_(We)}function Vc(Ee){return rq(we,Ee)}function Ep(Ee){if(Jl(Ee))return G===void 0&&(G=new Map,Vc(We=>{let xt=lo(We.commandLine.options);if(xt){let jt=g1(xt,".d.ts");G.set(Br(jt),!0)}else{let jt=Yu(()=>A3(We.commandLine,!Ft.useCaseSensitiveFileNames()));Qt(We.commandLine.fileNames,nn=>{if(!Jl(nn)&&!nc(nn,".json")){let Bn=P3(nn,We.commandLine,!Ft.useCaseSensitiveFileNames(),jt);G.set(Br(Bn),nn)}})}})),G.get(Ee)}function Nf(Ee){return vt&&!!pc(Ee)}function n_(Ee){if(Be)return Be.get(Ee)||void 0}function $f(Ee,We){Qt(Ee.referencedFiles,(xt,jt)=>{tu(m9(xt.fileName,Ee.fileName),We,!1,void 0,{kind:4,file:Ee.path,index:jt})})}function wg(Ee){let We=Ee.typeReferenceDirectives;if(!We.length)return;let xt=Jt?.get(Ee.path)||In(We,Ee),jt=sT();(lt??(lt=new Map)).set(Ee.path,jt);for(let nn=0;nn{let{libName:jt,libFileName:nn}=b2e(We);if(nn)ll(du(nn),!0,!0,{kind:7,file:Ee.path,index:xt});else{let Bn=yk(w4(jt,"lib."),".d.ts"),sn=P4(Bn,z8,No),En=sn?d.Cannot_find_lib_definition_for_0_Did_you_mean_1:d.Cannot_find_lib_definition_for_0,oi=sn?[jt,sn]:[jt];(mt||(mt=[])).push({kind:0,reason:{kind:7,file:Ee.path,index:xt},diagnostic:En,args:oi})}})}function Xf(Ee){return Ft.getCanonicalFileName(Ee)}function r_(Ee){var We;if(Cl(Ee),Ee.imports.length||Ee.moduleAugmentations.length){let xt=S2e(Ee),jt=Je?.get(Ee.path)||is(xt,Ee);E.assert(jt.length===xt.length);let nn=(vt?(We=Rn(Ee))==null?void 0:We.commandLine.options:void 0)||B,Bn=sT();(ht??(ht=new Map)).set(Ee.path,Bn);for(let sn=0;snTn,W_=io&&!lq(nn,En,Ee)&&!nn.noResolve&&snBc(sn)&&!sn.isDeclarationFile);if(B.isolatedModules||B.verbatimModuleSyntax)B.module===0&&We<2&&B.isolatedModules&&ha(d.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),B.preserveConstEnums===!1&&ha(d.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,B.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(xt&&We<2&&B.module===0){let sn=Lv(xt,typeof xt.externalModuleIndicator=="boolean"?xt:xt.externalModuleIndicator);Ye.add(Nl(xt,sn.start,sn.length,d.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Ee&&!B.emitDeclarationOnly){if(B.module&&!(B.module===2||B.module===4))ha(d.Only_amd_and_system_modules_are_supported_alongside_0,B.out?"out":"outFile","module");else if(B.module===void 0&&xt){let sn=Lv(xt,typeof xt.externalModuleIndicator=="boolean"?xt:xt.externalModuleIndicator);Ye.add(Nl(xt,sn.start,sn.length,d.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,B.out?"out":"outFile"))}}if($v(B)&&(Yl(B)===1?ha(d.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):U5(B)||ha(d.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),B.outDir||B.rootDir||B.sourceRoot||B.mapRoot){let sn=Mi();B.outDir&&sn===""&&Se.some(En=>km(En.fileName)>1)&&ha(d.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}B.useDefineForClassFields&&We===0&&ha(d.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),B.checkJs&&!m1(B)&&Ye.add(Tc(d.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),B.emitDeclarationOnly&&(qf(B)||ha(d.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),B.noEmit&&ha(d.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),B.emitDecoratorMetadata&&!B.experimentalDecorators&&ha(d.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),B.jsxFactory?(B.reactNamespace&&ha(d.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(B.jsx===4||B.jsx===5)&&ha(d.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",p3.get(""+B.jsx)),nT(B.jsxFactory,We)||Dp("jsxFactory",d.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,B.jsxFactory)):B.reactNamespace&&!hf(B.reactNamespace,We)&&Dp("reactNamespace",d.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,B.reactNamespace),B.jsxFragmentFactory&&(B.jsxFactory||ha(d.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(B.jsx===4||B.jsx===5)&&ha(d.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",p3.get(""+B.jsx)),nT(B.jsxFragmentFactory,We)||Dp("jsxFragmentFactory",d.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,B.jsxFragmentFactory)),B.reactNamespace&&(B.jsx===4||B.jsx===5)&&ha(d.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",p3.get(""+B.jsx)),B.jsxImportSource&&B.jsx===2&&ha(d.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",p3.get(""+B.jsx)),B.preserveValueImports&&Ql(B)<5&&ha(d.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");let jt=Ql(B);B.verbatimModuleSyntax&&((jt===2||jt===3||jt===4)&&ha(d.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),B.preserveValueImports&&gy("preserveValueImports","verbatimModuleSyntax"),B.importsNotUsedAsValues&&gy("importsNotUsedAsValues","verbatimModuleSyntax")),B.allowImportingTsExtensions&&!(B.noEmit||B.emitDeclarationOnly)&&Dp("allowImportingTsExtensions",d.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);let nn=Yl(B);if(B.resolvePackageJsonExports&&!Ox(nn)&&ha(d.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),B.resolvePackageJsonImports&&!Ox(nn)&&ha(d.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),B.customConditions&&!Ox(nn)&&ha(d.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),nn===100&&!W5(jt)&&Dp("moduleResolution",d.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),N4[jt]&&100<=jt&&jt<=199&&!(3<=nn&&nn<=99)){let sn=N4[jt];Dp("moduleResolution",d.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,sn,sn)}else if(Tk[nn]&&3<=nn&&nn<=99&&!(100<=jt&&jt<=199)){let sn=Tk[nn];Dp("module",d.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,sn,sn)}if(!B.noEmit&&!B.suppressOutputPathCheck){let sn=js(),En=new Set;JU(sn,oi=>{B.emitDeclarationOnly||Bn(oi.jsFilePath,En),Bn(oi.declarationFilePath,En)})}function Bn(sn,En){if(sn){let oi=Br(sn);if(dt.has(oi)){let gr;B.configFilePath||(gr=ys(void 0,d.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)),gr=ys(gr,d.Cannot_write_file_0_because_it_would_overwrite_input_file,sn),hy(sn,z5(gr))}let mr=Ft.useCaseSensitiveFileNames()?oi:Od(oi);En.has(mr)?hy(sn,Tc(d.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,sn)):En.add(mr)}}}function At(){let Ee=B.ignoreDeprecations;if(Ee){if(Ee==="5.0")return new zp(Ee);H()}return zp.zero}function L(Ee,We,xt,jt){let nn=new zp(Ee),Bn=new zp(We),sn=new zp(_e||Qi),En=At(),oi=Bn.compareTo(sn)!==1,mr=!oi&&En.compareTo(nn)===-1;(oi||mr)&&jt((gr,_r,Oi)=>{oi?_r===void 0?xt(gr,_r,Oi,d.Option_0_has_been_removed_Please_remove_it_from_your_configuration,gr):xt(gr,_r,Oi,d.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,gr,_r):_r===void 0?xt(gr,_r,Oi,d.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,gr,We,Ee):xt(gr,_r,Oi,d.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,gr,_r,We,Ee)})}function pe(){function Ee(We,xt,jt,nn,...Bn){if(jt){let sn=ys(void 0,d.Use_0_instead,jt),En=ys(sn,nn,...Bn);Ng(!xt,We,void 0,En)}else Ng(!xt,We,void 0,nn,...Bn)}L("5.0","5.5",Ee,We=>{B.target===0&&We("target","ES3"),B.noImplicitUseStrict&&We("noImplicitUseStrict"),B.keyofStringsOnly&&We("keyofStringsOnly"),B.suppressExcessPropertyErrors&&We("suppressExcessPropertyErrors"),B.suppressImplicitAnyIndexErrors&&We("suppressImplicitAnyIndexErrors"),B.noStrictGenericChecks&&We("noStrictGenericChecks"),B.charset&&We("charset"),B.out&&We("out",void 0,"outFile"),B.importsNotUsedAsValues&&We("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),B.preserveValueImports&&We("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Ke(Ee,We,xt){function jt(nn,Bn,sn,En,...oi){Ff(We,xt,En,...oi)}L("5.0","5.5",jt,nn=>{Ee.prepend&&nn("prepend")})}function It(Ee,We,xt,jt){var nn;let Bn,sn,En=I1(We)?We:void 0;Ee&&((nn=ke.get(Ee.path))==null||nn.forEach(Oi)),We&&Oi(We),En&&Bn?.length===1&&(Bn=void 0);let oi=En&&N3(ln,En),mr=Bn&&ys(Bn,d.The_file_is_in_the_program_because_Colon),gr=Ee&&Eq(Ee),_r=ys(gr?mr?[mr,...gr]:gr:mr,xt,...jt||Ve);return oi&&XC(oi)?X7(oi.file,oi.pos,oi.end-oi.pos,_r,sn):z5(_r,sn);function Oi(io){(Bn||(Bn=[])).push(wq(ln,io)),!En&&I1(io)?En=io:En!==io&&(sn=_n(sn,Vr(io))),io===We&&(We=void 0)}}function jn(Ee,We,xt,jt){(mt||(mt=[])).push({kind:1,file:Ee&&Ee.path,fileProcessingReason:We,diagnostic:xt,args:jt})}function zr(Ee,We,xt){Ye.add(It(Ee,void 0,We,xt))}function Vr(Ee){if(I1(Ee)){let jt=N3(ln,Ee),nn;switch(Ee.kind){case 3:nn=d.File_is_included_via_import_here;break;case 4:nn=d.File_is_included_via_reference_here;break;case 5:nn=d.File_is_included_via_type_library_reference_here;break;case 7:nn=d.File_is_included_via_library_reference_here;break;default:E.assertNever(Ee)}return XC(jt)?Nl(jt.file,jt.pos,jt.end-jt.pos,nn):void 0}if(!B.configFile)return;let We,xt;switch(Ee.kind){case 0:if(!B.configFile.configFileSpecs)return;let jt=cs(ie[Ee.index],fn),nn=Dq(ln,jt);if(nn){We=n5(B.configFile,"files",nn),xt=d.File_is_matched_by_files_list_specified_here;break}let Bn=Pq(ln,jt);if(!Bn||!os(Bn))return;We=n5(B.configFile,"include",Bn),xt=d.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:let sn=E.checkDefined(we?.[Ee.index]),En=y9(ae,we,(Oi,io,Za)=>Oi===sn?{sourceFile:io?.sourceFile||B.configFile,index:Za}:void 0);if(!En)return;let{sourceFile:oi,index:mr}=En,gr=nw(oi,"references",Oi=>Vu(Oi.initializer)?Oi.initializer:void 0);return gr&&gr.elements.length>mr?pp(oi,gr.elements[mr],Ee.kind===2?d.File_is_output_from_referenced_project_specified_here:d.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!B.types)return;We=If("types",Ee.typeReference),xt=d.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Ee.index!==void 0){We=If("lib",B.lib[Ee.index]),xt=d.File_is_library_specified_here;break}let _r=$l(W8.type,(Oi,io)=>Oi===La(B)?io:void 0);We=_r?hl("target",_r):void 0,xt=d.File_is_default_library_for_target_specified_here;break;default:E.assertNever(Ee)}return We&&pp(B.configFile,We,xt)}function Bi(){let Ee=B.suppressOutputPathCheck?void 0:i0(B);y9(ae,we,(We,xt,jt)=>{let nn=(xt?xt.commandLine.projectReferences:ae)[jt],Bn=xt&&xt.sourceFile;if(Ke(nn,Bn,jt),!We){Ff(Bn,jt,d.File_0_not_found,nn.path);return}let sn=We.commandLine.options;if((!sn.composite||sn.noEmit)&&(xt?xt.commandLine.fileNames:ie).length&&(sn.composite||Ff(Bn,jt,d.Referenced_project_0_must_have_setting_composite_Colon_true,nn.path),sn.noEmit&&Ff(Bn,jt,d.Referenced_project_0_may_not_disable_emit,nn.path)),nn.prepend){let En=lo(sn);En?Ft.fileExists(En)||Ff(Bn,jt,d.Output_file_0_from_project_1_does_not_exist,En,nn.path):Ff(Bn,jt,d.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,nn.path)}!xt&&Ee&&Ee===i0(sn)&&(Ff(Bn,jt,d.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Ee,nn.path),Sn.set(Br(Ee),!0))})}function _a(Ee,We,xt,...jt){let nn=!0;nu(Bn=>{xa(Bn.initializer)&&qk(Bn.initializer,Ee,sn=>{let En=sn.initializer;Vu(En)&&En.elements.length>We&&(Ye.add(pp(B.configFile,En.elements[We],xt,...jt)),nn=!1)})}),nn&&Ye.add(Tc(xt,...jt))}function fa(Ee,We,xt,...jt){let nn=!0;nu(Bn=>{xa(Bn.initializer)&&wi(Bn.initializer,Ee,We,void 0,xt,...jt)&&(nn=!1)}),nn&&Ye.add(Tc(xt,...jt))}function sc(Ee,We){return qk(qm(),Ee,We)}function nu(Ee){return sc("paths",Ee)}function hl(Ee,We){return sc(Ee,xt=>ca(xt.initializer)&&xt.initializer.text===We?xt.initializer:void 0)}function If(Ee,We){let xt=qm();return xt&&ute(xt,Ee,We)}function ha(Ee,We,xt,jt){Ng(!0,We,xt,Ee,We,xt,jt)}function Dp(Ee,We,...xt){Ng(!1,Ee,void 0,We,...xt)}function Ff(Ee,We,xt,...jt){let nn=nw(Ee||B.configFile,"references",Bn=>Vu(Bn.initializer)?Bn.initializer:void 0);nn&&nn.elements.length>We?Ye.add(pp(Ee||B.configFile,nn.elements[We],xt,...jt)):Ye.add(Tc(xt,...jt))}function Ng(Ee,We,xt,jt,...nn){let Bn=qm();(!Bn||!wi(Bn,Ee,We,xt,jt,...nn))&&("messageText"in jt?Ye.add(z5(jt)):Ye.add(Tc(jt,...nn)))}function qm(){return Cn===void 0&&(Cn=qk(tE(B.configFile),"compilerOptions",Ee=>xa(Ee.initializer)?Ee.initializer:void 0)||!1),Cn||void 0}function wi(Ee,We,xt,jt,nn,...Bn){let sn=!1;return qk(Ee,xt,En=>{"messageText"in nn?Ye.add(nh(B.configFile,We?En.name:En.initializer,nn)):Ye.add(pp(B.configFile,We?En.name:En.initializer,nn,...Bn)),sn=!0},jt),sn}function gy(Ee,We){let xt=qm();xt?wi(xt,!0,Ee,void 0,d.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ee,We):ha(d.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Ee,We)}function hy(Ee,We){Sn.set(Br(Ee),!0),Ye.add(We)}function xd(Ee){if(B.noEmit)return!1;let We=Br(Ee);if(Xs(We))return!1;let xt=lo(B);if(xt)return Sb(We,xt)||Sb(We,zu(xt)+".d.ts");if(B.declarationDir&&Cm(B.declarationDir,We,fn,!Ft.useCaseSensitiveFileNames()))return!0;if(B.outDir)return Cm(B.outDir,We,fn,!Ft.useCaseSensitiveFileNames());if($c(We,hC)||Jl(We)){let jt=zu(We);return!!Xs(jt+".ts")||!!Xs(jt+".tsx")}return!1}function Sb(Ee,We){return t1(Ee,We,fn,!Ft.useCaseSensitiveFileNames())===0}function d0(){return Ft.getSymlinkCache?Ft.getSymlinkCache():(se||(se=Zz(fn,Xf)),Se&&!se.hasProcessedResolutions()&&se.setSymlinksFromResolutions(ce,ee,Oe),se)}}function KMe(e){let t,n=e.compilerHost.fileExists,i=e.compilerHost.directoryExists,s=e.compilerHost.getDirectories,o=e.compilerHost.realpath;if(!e.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Fa,fileExists:f};e.compilerHost.fileExists=f;let c;return i&&(c=e.compilerHost.directoryExists=x=>i.call(e.compilerHost,x)?(y(x),!0):e.getResolvedProjectReferences()?(t||(t=new Set,e.forEachResolvedProjectReference(C=>{let w=lo(C.commandLine.options);if(w)t.add(Xr(e.toPath(w)));else{let D=C.commandLine.options.declarationDir||C.commandLine.options.outDir;D&&t.add(e.toPath(D))}})),S(x,!1)):!1),s&&(e.compilerHost.getDirectories=x=>!e.getResolvedProjectReferences()||i&&i.call(e.compilerHost,x)?s.call(e.compilerHost,x):[]),o&&(e.compilerHost.realpath=x=>{var C;return((C=e.getSymlinkCache().getSymlinkedFiles())==null?void 0:C.get(e.toPath(x)))||o.call(e.compilerHost,x)}),{onProgramCreateComplete:u,fileExists:f,directoryExists:c};function u(){e.compilerHost.fileExists=n,e.compilerHost.directoryExists=i,e.compilerHost.getDirectories=s}function f(x){return n.call(e.compilerHost,x)?!0:!e.getResolvedProjectReferences()||!Jl(x)?!1:S(x,!0)}function g(x){let C=e.getSourceOfProjectReferenceRedirect(e.toPath(x));return C!==void 0?os(C)?n.call(e.compilerHost,C):!0:void 0}function p(x){let C=e.toPath(x),w=`${C}${Oo}`;return pg(t,D=>C===D||ts(D,w)||ts(C,`${D}/`))}function y(x){var C;if(!e.getResolvedProjectReferences()||ME(x)||!o||!x.includes(zm))return;let w=e.getSymlinkCache(),D=wl(e.toPath(x));if((C=w.getSymlinkedDirectories())!=null&&C.has(D))return;let O=Ys(o.call(e.compilerHost,x)),z;if(O===x||(z=wl(e.toPath(O)))===D){w.setSymlinkedDirectory(D,!1);return}w.setSymlinkedDirectory(x,{real:wl(O),realPath:z})}function S(x,C){var w;let D=C?J=>g(J):J=>p(J),O=D(x);if(O!==void 0)return O;let z=e.getSymlinkCache(),V=z.getSymlinkedDirectories();if(!V)return!1;let X=e.toPath(x);return X.includes(zm)?C&&((w=z.getSymlinkedFiles())!=null&&w.has(X))?!0:df(V.entries(),([J,ie])=>{if(!ie||!ts(X,J))return;let B=D(X.replace(J,ie.realPath));if(C&&B){let Z=cs(x,e.compilerHost.getCurrentDirectory());z.setSymlinkedFile(X,`${ie.real}${Z.replace(new RegExp(J,"i"),"")}`)}return B})||!1:!1}}function oq(e,t,n,i){let s=e.getCompilerOptions();if(s.noEmit)return e.getSemanticDiagnostics(t,i),t||lo(s)?E9:e.emitBuildInfo(n,i);if(!s.noEmitOnError)return;let o=[...e.getOptionsDiagnostics(i),...e.getSyntacticDiagnostics(t,i),...e.getGlobalDiagnostics(i),...e.getSemanticDiagnostics(t,i)];if(o.length===0&&qf(e.getCompilerOptions())&&(o=e.getDeclarationDiagnostics(void 0,i)),!o.length)return;let c;if(!t&&!lo(s)){let u=e.emitBuildInfo(n,i);u.diagnostics&&(o=[...o,...u.diagnostics]),c=u.emittedFiles}return{diagnostics:o,sourceMaps:void 0,emittedFiles:c,emitSkipped:!0}}function S9(e,t){return Fr(e,n=>!n.skippedOn||!t[n.skippedOn])}function x9(e,t=e){return{fileExists:n=>t.fileExists(n),readDirectory(n,i,s,o,c){return E.assertIsDefined(t.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(n,i,s,o,c)},readFile:n=>t.readFile(n),directoryExists:Js(t,t.directoryExists),getDirectories:Js(t,t.getDirectories),realpath:Js(t,t.realpath),useCaseSensitiveFileNames:e.useCaseSensitiveFileNames(),getCurrentDirectory:()=>e.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:e.onUnRecoverableConfigFileDiagnostic||Zy,trace:e.trace?n=>e.trace(n):void 0}}function cq(e,t,n,i){if(!e)return Ve;let s;for(let o=0;oi);for(let i of t)i.kind===11&&n.push(i);return n}function T9({imports:e,moduleAugmentations:t},n){if(n(e.Grey="\x1B[90m",e.Red="\x1B[91m",e.Yellow="\x1B[93m",e.Blue="\x1B[94m",e.Cyan="\x1B[96m",e))(uq||{}),_q="\x1B[7m",fq=" ",Kse="\x1B[0m",eae="...",x2e=" ",tae=" ",nae={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},dA={getName:Yse,getMode:(e,t)=>vd(t,e)},k9={getName:Zse,getMode:(e,t)=>g9(e,t?.impliedNodeFormat)},YC="__inferred type names__.ts",C9=new Set([d.Cannot_redeclare_block_scoped_variable_0.code,d.A_module_cannot_have_multiple_default_exports.code,d.Another_export_default_is_here.code,d.The_first_export_default_is_here.code,d.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,d.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,d.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,d.constructor_is_a_reserved_word.code,d.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,d.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,d.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,d.Invalid_use_of_0_in_strict_mode.code,d.A_label_is_not_allowed_here.code,d.with_statements_are_not_allowed_in_strict_mode.code,d.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,d.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,d.A_class_declaration_without_the_default_modifier_must_have_a_name.code,d.A_class_member_cannot_have_the_0_keyword.code,d.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,d.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,d.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,d.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,d.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,d.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,d.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,d.A_destructuring_declaration_must_have_an_initializer.code,d.A_get_accessor_cannot_have_parameters.code,d.A_rest_element_cannot_contain_a_binding_pattern.code,d.A_rest_element_cannot_have_a_property_name.code,d.A_rest_element_cannot_have_an_initializer.code,d.A_rest_element_must_be_last_in_a_destructuring_pattern.code,d.A_rest_parameter_cannot_have_an_initializer.code,d.A_rest_parameter_must_be_last_in_a_parameter_list.code,d.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,d.A_return_statement_cannot_be_used_inside_a_class_static_block.code,d.A_set_accessor_cannot_have_rest_parameter.code,d.A_set_accessor_must_have_exactly_one_parameter.code,d.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,d.An_export_declaration_cannot_have_modifiers.code,d.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,d.An_import_declaration_cannot_have_modifiers.code,d.An_object_member_cannot_be_declared_optional.code,d.Argument_of_dynamic_import_cannot_be_spread_element.code,d.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,d.Cannot_redeclare_identifier_0_in_catch_clause.code,d.Catch_clause_variable_cannot_have_an_initializer.code,d.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,d.Classes_can_only_extend_a_single_class.code,d.Classes_may_not_have_a_field_named_constructor.code,d.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,d.Duplicate_label_0.code,d.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,d.for_await_loops_cannot_be_used_inside_a_class_static_block.code,d.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,d.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,d.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,d.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,d.Jump_target_cannot_cross_function_boundary.code,d.Line_terminator_not_permitted_before_arrow.code,d.Modifiers_cannot_appear_here.code,d.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,d.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,d.Private_identifiers_are_not_allowed_outside_class_bodies.code,d.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,d.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,d.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,d.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,d.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,d.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,d.Trailing_comma_not_allowed.code,d.Variable_declaration_list_cannot_be_empty.code,d._0_and_1_operations_cannot_be_mixed_without_parentheses.code,d._0_expected.code,d._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,d._0_list_cannot_be_empty.code,d._0_modifier_already_seen.code,d._0_modifier_cannot_appear_on_a_constructor_declaration.code,d._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,d._0_modifier_cannot_appear_on_a_parameter.code,d._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,d._0_modifier_cannot_be_used_here.code,d._0_modifier_must_precede_1_modifier.code,d._0_declarations_can_only_be_declared_inside_a_block.code,d._0_declarations_must_be_initialized.code,d.extends_clause_already_seen.code,d.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,d.Class_constructor_may_not_be_a_generator.code,d.Class_constructor_may_not_be_an_accessor.code,d.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,d.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,d.Private_field_0_must_be_declared_in_an_enclosing_class.code,d.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),E9={diagnostics:Ve,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),tRe=ze({"src/compiler/builderStatePublic.ts"(){"use strict"}});function rae(e,t,n,i,s,o){let c=[],{emitSkipped:u,diagnostics:f}=e.emit(t,g,i,n,s,o);return{outputFiles:c,emitSkipped:u,diagnostics:f};function g(p,y,S){c.push({name:p,writeByteOrderMark:S,text:y})}}var Kp,nRe=ze({"src/compiler/builderState.ts"(){"use strict";Rs(),(e=>{function t(){function $(H,K,oe){let Se={getKeys:se=>K.get(se),getValues:se=>H.get(se),keys:()=>H.keys(),deleteKey:se=>{(oe||(oe=new Set)).add(se);let Y=H.get(se);return Y?(Y.forEach(ve=>i(K,ve,se)),H.delete(se),!0):!1},set:(se,Y)=>{oe?.delete(se);let ve=H.get(se);return H.set(se,Y),ve?.forEach(xe=>{Y.has(xe)||i(K,xe,se)}),Y.forEach(xe=>{ve?.has(xe)||n(K,xe,se)}),Se}};return Se}return $(new Map,new Map,void 0)}e.createManyToManyPathMap=t;function n($,H,K){let oe=$.get(H);oe||(oe=new Set,$.set(H,oe)),oe.add(K)}function i($,H,K){let oe=$.get(H);return oe?.delete(K)?(oe.size||$.delete(H),!0):!1}function s($){return Ri($.declarations,H=>{var K;return(K=Mn(H))==null?void 0:K.resolvedPath})}function o($,H){let K=$.getSymbolAtLocation(H);return K&&s(K)}function c($,H,K,oe){return xo($.getProjectReferenceRedirect(H)||H,K,oe)}function u($,H,K){let oe;if(H.imports&&H.imports.length>0){let ve=$.getTypeChecker();for(let xe of H.imports){let Me=o(ve,xe);Me?.forEach(Y)}}let Se=Xr(H.resolvedPath);if(H.referencedFiles&&H.referencedFiles.length>0)for(let ve of H.referencedFiles){let xe=c($,ve.fileName,Se,K);Y(xe)}if($.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:ve})=>{if(!ve)return;let xe=ve.resolvedFileName,Me=c($,xe,Se,K);Y(Me)},H),H.moduleAugmentations.length){let ve=$.getTypeChecker();for(let xe of H.moduleAugmentations){if(!ca(xe))continue;let Me=ve.getSymbolAtLocation(xe);Me&&se(Me)}}for(let ve of $.getTypeChecker().getAmbientModules())ve.declarations&&ve.declarations.length>1&&se(ve);return oe;function se(ve){if(ve.declarations)for(let xe of ve.declarations){let Me=Mn(xe);Me&&Me!==H&&Y(Me.resolvedPath)}}function Y(ve){(oe||(oe=new Set)).add(ve)}}function f($,H){return H&&!H.referencedMap==!$}e.canReuseOldState=f;function g($,H,K){var oe,Se,se;let Y=new Map,ve=$.getCompilerOptions(),xe=lo(ve),Me=ve.module!==0&&!xe?t():void 0,ke=Me?t():void 0,he=f(Me,H);$.getTypeChecker();for(let be of $.getSourceFiles()){let _t=E.checkDefined(be.version,"Program intended to be used with Builder should have source files with versions set"),mt=he?(oe=H.oldSignatures)==null?void 0:oe.get(be.resolvedPath):void 0,me=mt===void 0?he?(Se=H.fileInfos.get(be.resolvedPath))==null?void 0:Se.signature:void 0:mt||void 0;if(Me){let Oe=u($,be,$.getCanonicalFileName);if(Oe&&Me.set(be.resolvedPath,Oe),he){let Qe=(se=H.oldExportedModulesMap)==null?void 0:se.get(be.resolvedPath),at=Qe===void 0?H.exportedModulesMap.getValues(be.resolvedPath):Qe||void 0;at&&ke.set(be.resolvedPath,at)}}Y.set(be.resolvedPath,{version:_t,signature:me,affectsGlobalScope:xe?void 0:B(be)||void 0,impliedFormat:be.impliedNodeFormat})}return{fileInfos:Y,referencedMap:Me,exportedModulesMap:ke,useFileVersionAsSignature:!K&&!he}}e.create=g;function p($){$.allFilesExcludingDefaultLibraryFile=void 0,$.allFileNames=void 0}e.releaseCache=p;function y($,H,K,oe,Se){var se,Y;let ve=S($,H,K,oe,Se);return(se=$.oldSignatures)==null||se.clear(),(Y=$.oldExportedModulesMap)==null||Y.clear(),ve}e.getFilesAffectedBy=y;function S($,H,K,oe,Se){let se=H.getSourceFileByPath(K);return se?w($,H,se,oe,Se)?($.referencedMap?_e:ae)($,H,se,oe,Se):[se]:Ve}e.getFilesAffectedByWithOldState=S;function x($,H,K){$.fileInfos.get(K).signature=H,($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(K)}e.updateSignatureOfFile=x;function C($,H,K,oe,Se){$.emit(H,(se,Y,ve,xe,Me,ke)=>{E.assert(Jl(se),`File extension for signature expected to be dts: Got:: ${se}`),Se(dq($,H,Y,oe,ke),Me)},K,!0,void 0,!0)}e.computeDtsSignature=C;function w($,H,K,oe,Se,se=$.useFileVersionAsSignature){var Y;if((Y=$.hasCalledUpdateShapeSignature)!=null&&Y.has(K.resolvedPath))return!1;let ve=$.fileInfos.get(K.resolvedPath),xe=ve.signature,Me;if(!K.isDeclarationFile&&!se&&C(H,K,oe,Se,(ke,he)=>{Me=ke,Me!==xe&&D($,K,he[0].exportedModulesFromDeclarationEmit)}),Me===void 0&&(Me=K.version,$.exportedModulesMap&&Me!==xe)){($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(K.resolvedPath,$.exportedModulesMap.getValues(K.resolvedPath)||!1);let ke=$.referencedMap?$.referencedMap.getValues(K.resolvedPath):void 0;ke?$.exportedModulesMap.set(K.resolvedPath,ke):$.exportedModulesMap.deleteKey(K.resolvedPath)}return($.oldSignatures||($.oldSignatures=new Map)).set(K.resolvedPath,xe||!1),($.hasCalledUpdateShapeSignature||($.hasCalledUpdateShapeSignature=new Set)).add(K.resolvedPath),ve.signature=Me,Me!==xe}e.updateShapeSignature=w;function D($,H,K){if(!$.exportedModulesMap)return;($.oldExportedModulesMap||($.oldExportedModulesMap=new Map)).set(H.resolvedPath,$.exportedModulesMap.getValues(H.resolvedPath)||!1);let oe=O(K);oe?$.exportedModulesMap.set(H.resolvedPath,oe):$.exportedModulesMap.deleteKey(H.resolvedPath)}e.updateExportedModules=D;function O($){let H;return $?.forEach(K=>s(K).forEach(oe=>(H??(H=new Set)).add(oe))),H}e.getExportedModules=O;function z($,H,K){let oe=H.getCompilerOptions();if(lo(oe)||!$.referencedMap||B(K))return V($,H);let Se=new Set,se=[K.resolvedPath];for(;se.length;){let Y=se.pop();if(!Se.has(Y)){Se.add(Y);let ve=$.referencedMap.getValues(Y);if(ve)for(let xe of ve.keys())se.push(xe)}}return hs(gk(Se.keys(),Y=>{var ve;return((ve=H.getSourceFileByPath(Y))==null?void 0:ve.fileName)??Y}))}e.getAllDependencies=z;function V($,H){if(!$.allFileNames){let K=H.getSourceFiles();$.allFileNames=K===Ve?Ve:K.map(oe=>oe.fileName)}return $.allFileNames}function X($,H){let K=$.referencedMap.getKeys(H);return K?hs(K.keys()):[]}e.getReferencedByPaths=X;function J($){for(let H of $.statements)if(!G7(H))return!1;return!0}function ie($){return ft($.moduleAugmentations,H=>jd(H.parent))}function B($){return ie($)||!K_($)&&!dp($)&&!J($)}function Z($,H,K){if($.allFilesExcludingDefaultLibraryFile)return $.allFilesExcludingDefaultLibraryFile;let oe;K&&Se(K);for(let se of H.getSourceFiles())se!==K&&Se(se);return $.allFilesExcludingDefaultLibraryFile=oe||Ve,$.allFilesExcludingDefaultLibraryFile;function Se(se){H.isSourceFileDefaultLibrary(se)||(oe||(oe=[])).push(se)}}e.getAllFilesExcludingDefaultLibraryFile=Z;function ae($,H,K){let oe=H.getCompilerOptions();return oe&&lo(oe)?[K]:Z($,H,K)}function _e($,H,K,oe,Se){if(B(K))return Z($,H,K);let se=H.getCompilerOptions();if(se&&(pd(se)||lo(se)))return[K];let Y=new Map;Y.set(K.resolvedPath,K);let ve=X($,K.resolvedPath);for(;ve.length>0;){let xe=ve.pop();if(!Y.has(xe)){let Me=H.getSourceFileByPath(xe);Y.set(xe,Me),Me&&w($,H,Me,oe,Se)&&ve.push(...X($,Me.resolvedPath))}}return hs(gk(Y.values(),xe=>xe))}})(Kp||(Kp={}))}});function _y(e){let t=1;return e.sourceMap&&(t=t|2),e.inlineSourceMap&&(t=t|4),qf(e)&&(t=t|8),e.declarationMap&&(t=t|16),e.emitDeclarationOnly&&(t=t&24),t}function ZC(e,t){let n=t&&(Bh(t)?t:_y(t)),i=Bh(e)?e:_y(e);if(n===i)return 0;if(!n||!i)return i;let s=n^i,o=0;return s&7&&(o=i&7),s&24&&(o=o|i&24),o}function rRe(e,t){return e===t||e!==void 0&&t!==void 0&&e.size===t.size&&!pg(e,n=>!t.has(n))}function iRe(e,t){var n,i;let s=Kp.create(e,t,!1);s.program=e;let o=e.getCompilerOptions();s.compilerOptions=o;let c=lo(o);c?o.composite&&t?.outSignature&&c===lo(t?.compilerOptions)&&(s.outSignature=t.outSignature&&k2e(o,t.compilerOptions,t.outSignature)):s.semanticDiagnosticsPerFile=new Map,s.changedFilesSet=new Set,s.latestChangedDtsFile=o.composite?t?.latestChangedDtsFile:void 0;let u=Kp.canReuseOldState(s.referencedMap,t),f=u?t.compilerOptions:void 0,g=u&&t.semanticDiagnosticsPerFile&&!!s.semanticDiagnosticsPerFile&&!Sne(o,f),p=o.composite&&t?.emitSignatures&&!c&&!Tne(o,t.compilerOptions);u?((n=t.changedFilesSet)==null||n.forEach(w=>s.changedFilesSet.add(w)),!c&&((i=t.affectedFilesPendingEmit)!=null&&i.size)&&(s.affectedFilesPendingEmit=new Map(t.affectedFilesPendingEmit),s.seenAffectedFiles=new Set),s.programEmitPending=t.programEmitPending):s.buildInfoEmitPending=!0;let y=s.referencedMap,S=u?t.referencedMap:void 0,x=g&&!o.skipLibCheck==!f.skipLibCheck,C=x&&!o.skipDefaultLibCheck==!f.skipDefaultLibCheck;if(s.fileInfos.forEach((w,D)=>{let O,z;if(!u||!(O=t.fileInfos.get(D))||O.version!==w.version||O.impliedFormat!==w.impliedFormat||!rRe(z=y&&y.getValues(D),S&&S.getValues(D))||z&&pg(z,V=>!s.fileInfos.has(V)&&t.fileInfos.has(V)))T2e(s,D);else if(g){let V=e.getSourceFileByPath(D);if(V.isDeclarationFile&&!x||V.hasNoDefaultLib&&!C)return;let X=t.semanticDiagnosticsPerFile.get(D);X&&(s.semanticDiagnosticsPerFile.set(D,t.hasReusableDiagnostic?aRe(X,e):sRe(X,e)),s.semanticDiagnosticsFromOldState||(s.semanticDiagnosticsFromOldState=new Set),s.semanticDiagnosticsFromOldState.add(D))}if(p){let V=t.emitSignatures.get(D);V&&(s.emitSignatures??(s.emitSignatures=new Map)).set(D,k2e(o,t.compilerOptions,V))}}),u&&$l(t.fileInfos,(w,D)=>s.fileInfos.has(D)?!1:c||w.affectsGlobalScope?!0:(s.buildInfoEmitPending=!0,!1)))Kp.getAllFilesExcludingDefaultLibraryFile(s,e,void 0).forEach(w=>T2e(s,w.resolvedPath));else if(f){let w=xne(o,f)?_y(o):ZC(o,f);w!==0&&(c?s.programEmitPending=s.programEmitPending?s.programEmitPending|w:w:(e.getSourceFiles().forEach(D=>{s.changedFilesSet.has(D.resolvedPath)||uae(s,D.resolvedPath,w)}),E.assert(!s.seenAffectedFiles||!s.seenAffectedFiles.size),s.seenAffectedFiles=s.seenAffectedFiles||new Set,s.buildInfoEmitPending=!0))}return c&&!s.changedFilesSet.size&&(u&&(s.bundle=t.bundle),ft(e.getProjectReferences(),w=>!!w.prepend)&&(s.programEmitPending=_y(o))),s}function T2e(e,t){e.changedFilesSet.add(t),e.buildInfoEmitPending=!0,e.programEmitPending=void 0}function k2e(e,t,n){return!!e.declarationMap==!!t.declarationMap?n:os(n)?[n]:n[0]}function sRe(e,t){return e.length?sl(e,n=>{if(os(n.messageText))return n;let i=iae(n.messageText,n.file,t,s=>{var o;return(o=s.repopulateInfo)==null?void 0:o.call(s)});return i===n.messageText?n:{...n,messageText:i}}):e}function iae(e,t,n,i){let s=i(e);if(s)return{...MJ(t,n,s.moduleReference,s.mode,s.packageName||s.moduleReference),next:C2e(e.next,t,n,i)};let o=C2e(e.next,t,n,i);return o===e.next?e:{...e,next:o}}function C2e(e,t,n,i){return sl(e,s=>iae(s,t,n,i))}function aRe(e,t){if(!e.length)return Ve;let n;return e.map(s=>{let o=E2e(s,t,i);o.reportsUnnecessary=s.reportsUnnecessary,o.reportsDeprecated=s.reportDeprecated,o.source=s.source,o.skippedOn=s.skippedOn;let{relatedInformation:c}=s;return o.relatedInformation=c?c.length?c.map(u=>E2e(u,t,i)):[]:void 0,o});function i(s){return n??(n=Xr(cs(i0(t.getCompilerOptions()),t.getCurrentDirectory()))),xo(s,n,t.getCanonicalFileName)}}function E2e(e,t,n){let{file:i}=e,s=i?t.getSourceFileByPath(n(i)):void 0;return{...e,file:s,messageText:os(e.messageText)?e.messageText:iae(e.messageText,s,t,o=>o.info)}}function oRe(e){Kp.releaseCache(e),e.program=void 0}function cRe(e){let t=lo(e.compilerOptions);return E.assert(!e.changedFilesSet.size||t),{affectedFilesPendingEmit:e.affectedFilesPendingEmit&&new Map(e.affectedFilesPendingEmit),seenEmittedFiles:e.seenEmittedFiles&&new Map(e.seenEmittedFiles),programEmitPending:e.programEmitPending,emitSignatures:e.emitSignatures&&new Map(e.emitSignatures),outSignature:e.outSignature,latestChangedDtsFile:e.latestChangedDtsFile,hasChangedEmitSignature:e.hasChangedEmitSignature,changedFilesSet:t?new Set(e.changedFilesSet):void 0}}function lRe(e,t){e.affectedFilesPendingEmit=t.affectedFilesPendingEmit,e.seenEmittedFiles=t.seenEmittedFiles,e.programEmitPending=t.programEmitPending,e.emitSignatures=t.emitSignatures,e.outSignature=t.outSignature,e.latestChangedDtsFile=t.latestChangedDtsFile,e.hasChangedEmitSignature=t.hasChangedEmitSignature,t.changedFilesSet&&(e.changedFilesSet=t.changedFilesSet)}function D2e(e,t){E.assert(!t||!e.affectedFiles||e.affectedFiles[e.affectedFilesIndex-1]!==t||!e.semanticDiagnosticsPerFile.has(t.resolvedPath))}function P2e(e,t,n){for(var i,s;;){let{affectedFiles:o}=e;if(o){let g=e.seenAffectedFiles,p=e.affectedFilesIndex;for(;p{let o=i&7;o?e.affectedFilesPendingEmit.set(s,o):e.affectedFilesPendingEmit.delete(s)})}}function _Re(e,t){var n;if((n=e.affectedFilesPendingEmit)!=null&&n.size)return $l(e.affectedFilesPendingEmit,(i,s)=>{var o;let c=e.program.getSourceFileByPath(s);if(!c||!Ex(c,e.program)){e.affectedFilesPendingEmit.delete(s);return}let u=(o=e.seenEmittedFiles)==null?void 0:o.get(c.resolvedPath),f=ZC(i,u);if(t&&(f=f&24),f)return{affectedFile:c,emitKind:f}})}function w2e(e){if(!e.cleanedDiagnosticsOfLibFiles){e.cleanedDiagnosticsOfLibFiles=!0;let t=E.checkDefined(e.program),n=t.getCompilerOptions();Qt(t.getSourceFiles(),i=>t.isSourceFileDefaultLibrary(i)&&!IE(i,n,t)&&sae(e,i.resolvedPath))}}function fRe(e,t,n,i){if(sae(e,t.resolvedPath),e.allFilesExcludingDefaultLibraryFile===e.affectedFiles){w2e(e),Kp.updateShapeSignature(e,E.checkDefined(e.program),t,n,i);return}e.compilerOptions.assumeChangesOnlyAffectDirectDependencies||pRe(e,t,n,i)}function pq(e,t,n,i){if(sae(e,t),!e.changedFilesSet.has(t)){let s=E.checkDefined(e.program),o=s.getSourceFileByPath(t);o&&(Kp.updateShapeSignature(e,s,o,n,i,!0),qf(e.compilerOptions)&&uae(e,t,e.compilerOptions.declarationMap?24:8))}}function sae(e,t){return e.semanticDiagnosticsFromOldState?(e.semanticDiagnosticsFromOldState.delete(t),e.semanticDiagnosticsPerFile.delete(t),!e.semanticDiagnosticsFromOldState.size):!0}function A2e(e,t){let n=E.checkDefined(e.oldSignatures).get(t)||void 0;return E.checkDefined(e.fileInfos.get(t)).signature!==n}function aae(e,t,n,i){var s;return(s=e.fileInfos.get(t))!=null&&s.affectsGlobalScope?(Kp.getAllFilesExcludingDefaultLibraryFile(e,e.program,void 0).forEach(o=>pq(e,o.resolvedPath,n,i)),w2e(e),!0):!1}function pRe(e,t,n,i){var s;if(!e.exportedModulesMap||!e.changedFilesSet.has(t.resolvedPath)||!A2e(e,t.resolvedPath))return;if(pd(e.compilerOptions)){let c=new Map;c.set(t.resolvedPath,!0);let u=Kp.getReferencedByPaths(e,t.resolvedPath);for(;u.length>0;){let f=u.pop();if(!c.has(f)){if(c.set(f,!0),aae(e,f,n,i))return;if(pq(e,f,n,i),A2e(e,f)){let g=E.checkDefined(e.program).getSourceFileByPath(f);u.push(...Kp.getReferencedByPaths(e,g.resolvedPath))}}}}let o=new Set;(s=e.exportedModulesMap.getKeys(t.resolvedPath))==null||s.forEach(c=>{if(aae(e,c,n,i))return!0;let u=e.referencedMap.getKeys(c);return u&&pg(u,f=>N2e(e,f,o,n,i))})}function N2e(e,t,n,i,s){var o,c;if(Yy(n,t)){if(aae(e,t,i,s))return!0;pq(e,t,i,s),(o=e.exportedModulesMap.getKeys(t))==null||o.forEach(u=>N2e(e,u,n,i,s)),(c=e.referencedMap.getKeys(t))==null||c.forEach(u=>!n.has(u)&&pq(e,u,i,s))}}function oae(e,t,n){return es(dRe(e,t,n),E.checkDefined(e.program).getProgramDiagnostics(t))}function dRe(e,t,n){let i=t.resolvedPath;if(e.semanticDiagnosticsPerFile){let o=e.semanticDiagnosticsPerFile.get(i);if(o)return S9(o,e.compilerOptions)}let s=E.checkDefined(e.program).getBindAndCheckDiagnostics(t,n);return e.semanticDiagnosticsPerFile&&e.semanticDiagnosticsPerFile.set(i,s),S9(s,e.compilerOptions)}function cae(e){return!!lo(e.options||{})}function mRe(e,t){var n,i,s;let o=E.checkDefined(e.program).getCurrentDirectory(),c=Xr(cs(i0(e.compilerOptions),o)),u=e.latestChangedDtsFile?J(e.latestChangedDtsFile):void 0,f=[],g=new Map,p=[];if(lo(e.compilerOptions)){let $=hs(e.fileInfos.entries(),([Y,ve])=>{let xe=B(Y);return ae(Y,xe),ve.impliedFormat?{version:ve.version,impliedFormat:ve.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:ve.version}),H={fileNames:f,fileInfos:$,root:p,options:_e(e.compilerOptions),outSignature:e.outSignature,latestChangedDtsFile:u,pendingEmit:e.programEmitPending?e.programEmitPending===_y(e.compilerOptions)?!1:e.programEmitPending:void 0},{js:K,dts:oe,commonSourceDirectory:Se,sourceFiles:se}=t;return e.bundle=t={commonSourceDirectory:Se,sourceFiles:se,js:K||(e.compilerOptions.emitDeclarationOnly||(n=e.bundle)==null?void 0:n.js),dts:oe||(qf(e.compilerOptions)?(i=e.bundle)==null?void 0:i.dts:void 0)},aA(H,t)}let y,S,x,C=hs(e.fileInfos.entries(),([$,H])=>{var K,oe;let Se=B($);ae($,Se),E.assert(f[Se-1]===ie($));let se=(K=e.oldSignatures)==null?void 0:K.get($),Y=se!==void 0?se||void 0:H.signature;if(e.compilerOptions.composite){let ve=e.program.getSourceFileByPath($);if(!dp(ve)&&Ex(ve,e.program)){let xe=(oe=e.emitSignatures)==null?void 0:oe.get($);xe!==Y&&(x||(x=[])).push(xe===void 0?Se:[Se,!os(xe)&&xe[0]===Y?Ve:xe])}}return H.version===Y?H.affectsGlobalScope||H.impliedFormat?{version:H.version,signature:void 0,affectsGlobalScope:H.affectsGlobalScope,impliedFormat:H.impliedFormat}:H.version:Y!==void 0?se===void 0?H:{version:H.version,signature:Y,affectsGlobalScope:H.affectsGlobalScope,impliedFormat:H.impliedFormat}:{version:H.version,signature:!1,affectsGlobalScope:H.affectsGlobalScope,impliedFormat:H.impliedFormat}}),w;e.referencedMap&&(w=hs(e.referencedMap.keys()).sort(Ou).map($=>[B($),Z(e.referencedMap.getValues($))]));let D;e.exportedModulesMap&&(D=Ri(hs(e.exportedModulesMap.keys()).sort(Ou),$=>{var H;let K=(H=e.oldExportedModulesMap)==null?void 0:H.get($);if(K===void 0)return[B($),Z(e.exportedModulesMap.getValues($))];if(K)return[B($),Z(K)]}));let O;if(e.semanticDiagnosticsPerFile)for(let $ of hs(e.semanticDiagnosticsPerFile.keys()).sort(Ou)){let H=e.semanticDiagnosticsPerFile.get($);(O||(O=[])).push(H.length?[B($),hRe(H,ie)]:B($))}let z;if((s=e.affectedFilesPendingEmit)!=null&&s.size){let $=_y(e.compilerOptions),H=new Set;for(let K of hs(e.affectedFilesPendingEmit.keys()).sort(Ou))if(Yy(H,K)){let oe=e.program.getSourceFileByPath(K);if(!oe||!Ex(oe,e.program))continue;let Se=B(K),se=e.affectedFilesPendingEmit.get(K);(z||(z=[])).push(se===$?Se:se===8?[Se]:[Se,se])}}let V;if(e.changedFilesSet.size)for(let $ of hs(e.changedFilesSet.keys()).sort(Ou))(V||(V=[])).push(B($));let X={fileNames:f,fileInfos:C,root:p,options:_e(e.compilerOptions),fileIdsList:y,referencedMap:w,exportedModulesMap:D,semanticDiagnosticsPerFile:O,affectedFilesPendingEmit:z,changeFileSet:V,emitSignatures:x,latestChangedDtsFile:u};return aA(X,t);function J($){return ie(cs($,o))}function ie($){return Cv(Em(c,$,e.program.getCanonicalFileName))}function B($){let H=g.get($);return H===void 0&&(f.push(ie($)),g.set($,H=f.length)),H}function Z($){let H=hs($.keys(),B).sort(Io),K=H.join(),oe=S?.get(K);return oe===void 0&&((y||(y=[])).push(H),(S||(S=new Map)).set(K,oe=y.length)),oe}function ae($,H){let K=e.program.getSourceFile($);if(!e.program.getFileIncludeReasons().get(K.path).some(Y=>Y.kind===0))return;if(!p.length)return p.push(H);let oe=p[p.length-1],Se=ss(oe);if(Se&&oe[1]===H-1)return oe[1]=H;if(Se||p.length===1||oe!==H-1)return p.push(H);let se=p[p.length-2];return!Bh(se)||se!==oe-1?p.push(H):(p[p.length-2]=[se,H],p.length=p.length-1)}function _e($){let H,{optionsNameMap:K}=BC();for(let oe of Qg($).sort(Ou)){let Se=K.get(oe.toLowerCase());Se?.affectsBuildInfo&&((H||(H={}))[oe]=gRe(Se,$[oe],J))}return H}}function gRe(e,t,n){if(e){if(E.assert(e.type!=="listOrElement"),e.type==="list"){let i=t;if(e.element.isFilePath&&i.length)return i.map(n)}else if(e.isFilePath)return n(t)}return t}function hRe(e,t){return E.assert(!!e.length),e.map(n=>{let i=I2e(n,t);i.reportsUnnecessary=n.reportsUnnecessary,i.reportDeprecated=n.reportsDeprecated,i.source=n.source,i.skippedOn=n.skippedOn;let{relatedInformation:s}=n;return i.relatedInformation=s?s.length?s.map(o=>I2e(o,t)):[]:void 0,i})}function I2e(e,t){let{file:n}=e;return{...e,file:n?t(n.resolvedPath):void 0,messageText:os(e.messageText)?e.messageText:lae(e.messageText)}}function lae(e){if(e.repopulateInfo)return{info:e.repopulateInfo(),next:F2e(e.next)};let t=F2e(e.next);return t===e.next?e:{...e,next:t}}function F2e(e){return e&&(Qt(e,(t,n)=>{let i=lae(t);if(t===i)return;let s=n>0?e.slice(0,n-1):[];s.push(i);for(let o=n+1;o`${f(g)}${_P[g.category]}${g.code}: ${u(g.messageText)}`).join(` -`)),(i.createHash??I4)(n);function u(g){return os(g)?g:g===void 0?"":g.next?g.messageText+g.next.map(u).join(` -`):g.messageText}function f(g){return g.file.resolvedPath===t.resolvedPath?`(${g.start},${g.length})`:(c===void 0&&(c=Xr(t.resolvedPath)),`${Cv(Em(c,g.file.resolvedPath,e.getCanonicalFileName))}(${g.start},${g.length})`)}}function K2(e,t,n){return(t.createHash??I4)(O2e(e,n))}function mq(e,{newProgram:t,host:n,oldProgram:i,configFileParsingDiagnostics:s}){let o=i&&i.getState();if(o&&t===o.program&&s===t.getConfigFileParsingDiagnostics())return t=void 0,o=void 0,i;let c=iRe(t,o);t.getBuildInfo=w=>mRe(c,w),t=void 0,i=void 0,o=void 0;let u=()=>c,f=hq(u,s);return f.getState=u,f.saveEmitState=()=>cRe(c),f.restoreEmitState=w=>lRe(c,w),f.hasChangedEmitSignature=()=>!!c.hasChangedEmitSignature,f.getAllDependencies=w=>Kp.getAllDependencies(c,E.checkDefined(c.program),w),f.getSemanticDiagnostics=C,f.emit=S,f.releaseProgram=()=>oRe(c),e===0?f.getSemanticDiagnosticsOfNextAffectedFile=x:e===1?(f.getSemanticDiagnosticsOfNextAffectedFile=x,f.emitNextAffectedFile=p,f.emitBuildInfo=g):Ts(),f;function g(w,D){if(c.buildInfoEmitPending){let O=E.checkDefined(c.program).emitBuildInfo(w||Js(n,n.writeFile),D);return c.buildInfoEmitPending=!1,O}return E9}function p(w,D,O,z){var V,X,J;let ie=P2e(c,D,n),B=_y(c.compilerOptions),Z=O?B&24:B;if(!ie)if(lo(c.compilerOptions)){if(!c.programEmitPending||(Z=c.programEmitPending,O&&(Z=Z&24),!Z))return;ie=c.program}else{let $=_Re(c,O);if(!$){if(!c.buildInfoEmitPending)return;let H=c.program,K=H.emitBuildInfo(w||Js(n,n.writeFile),D);return c.buildInfoEmitPending=!1,{result:K,affected:H}}({affectedFile:ie,emitKind:Z}=$)}let ae;Z&7&&(ae=0),Z&24&&(ae=ae===void 0?1:void 0),ie===c.program&&(c.programEmitPending=c.changedFilesSet.size?ZC(B,Z):c.programEmitPending?ZC(c.programEmitPending,Z):void 0);let _e=c.program.emit(ie===c.program?void 0:ie,y(w,z),D,ae,z);if(ie!==c.program){let $=ie;c.seenAffectedFiles.add($.resolvedPath),c.affectedFilesIndex!==void 0&&c.affectedFilesIndex++,c.buildInfoEmitPending=!0;let H=((V=c.seenEmittedFiles)==null?void 0:V.get($.resolvedPath))||0;(c.seenEmittedFiles??(c.seenEmittedFiles=new Map)).set($.resolvedPath,Z|H);let K=((X=c.affectedFilesPendingEmit)==null?void 0:X.get($.resolvedPath))||B,oe=ZC(K,Z|H);oe?(c.affectedFilesPendingEmit??(c.affectedFilesPendingEmit=new Map)).set($.resolvedPath,oe):(J=c.affectedFilesPendingEmit)==null||J.delete($.resolvedPath)}else c.changedFilesSet.clear();return{result:_e,affected:ie}}function y(w,D){return qf(c.compilerOptions)?(O,z,V,X,J,ie)=>{var B,Z,ae,_e;if(Jl(O))if(lo(c.compilerOptions)){if(c.compilerOptions.composite){let H=$(c.outSignature,void 0);if(!H)return;c.outSignature=H}}else{E.assert(J?.length===1);let H;if(!D){let K=J[0],oe=c.fileInfos.get(K.resolvedPath);if(oe.signature===K.version){let Se=dq(c.program,K,z,n,ie);(B=ie?.diagnostics)!=null&&B.length||(H=Se),Se!==K.version&&(n.storeFilesChangingSignatureDuringEmit&&(c.filesChangingSignature??(c.filesChangingSignature=new Set)).add(K.resolvedPath),c.exportedModulesMap&&Kp.updateExportedModules(c,K,K.exportedModulesFromDeclarationEmit),c.affectedFiles?(((Z=c.oldSignatures)==null?void 0:Z.get(K.resolvedPath))===void 0&&(c.oldSignatures??(c.oldSignatures=new Map)).set(K.resolvedPath,oe.signature||!1),oe.signature=Se):(oe.signature=Se,(ae=c.oldExportedModulesMap)==null||ae.clear()))}}if(c.compilerOptions.composite){let K=J[0].resolvedPath;if(H=$((_e=c.emitSignatures)==null?void 0:_e.get(K),H),!H)return;(c.emitSignatures??(c.emitSignatures=new Map)).set(K,H)}}w?w(O,z,V,X,J,ie):n.writeFile?n.writeFile(O,z,V,X,J,ie):c.program.writeFile(O,z,V,X,J,ie);function $(H,K){let oe=!H||os(H)?H:H[0];if(K??(K=K2(z,n,ie)),K===oe){if(H===oe)return;ie?ie.differsOnlyInMap=!0:ie={differsOnlyInMap:!0}}else c.hasChangedEmitSignature=!0,c.latestChangedDtsFile=O;return K}}:w||Js(n,n.writeFile)}function S(w,D,O,z,V){e===1&&D2e(c,w);let X=oq(f,w,D,O);if(X)return X;if(!w)if(e===1){let J=[],ie=!1,B,Z=[],ae;for(;ae=p(D,O,z,V);)ie=ie||ae.result.emitSkipped,B=Nr(B,ae.result.diagnostics),Z=Nr(Z,ae.result.emittedFiles),J=Nr(J,ae.result.sourceMaps);return{emitSkipped:ie,diagnostics:B||Ve,emittedFiles:Z,sourceMaps:J}}else uRe(c,z);return E.checkDefined(c.program).emit(w,y(D,V),O,z,V)}function x(w,D){for(;;){let O=P2e(c,w,n),z;if(O)if(O!==c.program){let V=O;if((!D||!D(V))&&(z=oae(c,V,w)),c.seenAffectedFiles.add(V.resolvedPath),c.affectedFilesIndex++,c.buildInfoEmitPending=!0,!z)continue}else z=c.program.getSemanticDiagnostics(void 0,w),c.changedFilesSet.clear(),c.programEmitPending=_y(c.compilerOptions);else return;return{result:z,affected:O}}}function C(w,D){D2e(c,w);let O=E.checkDefined(c.program).getCompilerOptions();if(lo(O))return E.assert(!c.semanticDiagnosticsPerFile),E.checkDefined(c.program).getSemanticDiagnostics(w,D);if(w)return oae(c,w,D);for(;x(D););let z;for(let V of E.checkDefined(c.program).getSourceFiles())z=Nr(z,oae(c,V,D));return z||Ve}}function uae(e,t,n){var i;let s=((i=e.affectedFilesPendingEmit)==null?void 0:i.get(t))||0;(e.affectedFilesPendingEmit??(e.affectedFilesPendingEmit=new Map)).set(t,s|n)}function _ae(e){return os(e)?{version:e,signature:e,affectsGlobalScope:void 0,impliedFormat:void 0}:os(e.signature)?e:{version:e.version,signature:e.signature===!1?void 0:e.version,affectsGlobalScope:e.affectsGlobalScope,impliedFormat:e.impliedFormat}}function fae(e,t){return Bh(e)?t:e[1]||8}function pae(e,t){return e||_y(t||{})}function dae(e,t,n){var i,s,o,c;let u=e.program,f=Xr(cs(t,n.getCurrentDirectory())),g=cu(n.useCaseSensitiveFileNames()),p,y=(i=u.fileNames)==null?void 0:i.map(C),S,x=u.latestChangedDtsFile?w(u.latestChangedDtsFile):void 0;if(cae(u)){let V=new Map;u.fileInfos.forEach((X,J)=>{let ie=D(J+1);V.set(ie,os(X)?{version:X,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:X)}),p={fileInfos:V,compilerOptions:u.options?MW(u.options,w):{},latestChangedDtsFile:x,outSignature:u.outSignature,programEmitPending:u.pendingEmit===void 0?void 0:pae(u.pendingEmit,u.options),bundle:e.bundle}}else{S=(s=u.fileIdsList)==null?void 0:s.map(ie=>new Set(ie.map(D)));let V=new Map,X=(o=u.options)!=null&&o.composite&&!lo(u.options)?new Map:void 0;u.fileInfos.forEach((ie,B)=>{let Z=D(B+1),ae=_ae(ie);V.set(Z,ae),X&&ae.signature&&X.set(Z,ae.signature)}),(c=u.emitSignatures)==null||c.forEach(ie=>{if(Bh(ie))X.delete(D(ie));else{let B=D(ie[0]);X.set(B,!os(ie[1])&&!ie[1].length?[X.get(B)]:ie[1])}});let J=u.affectedFilesPendingEmit?_y(u.options||{}):void 0;p={fileInfos:V,compilerOptions:u.options?MW(u.options,w):{},referencedMap:z(u.referencedMap),exportedModulesMap:z(u.exportedModulesMap),semanticDiagnosticsPerFile:u.semanticDiagnosticsPerFile&&jh(u.semanticDiagnosticsPerFile,ie=>D(Bh(ie)?ie:ie[0]),ie=>Bh(ie)?Ve:ie[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:u.affectedFilesPendingEmit&&jh(u.affectedFilesPendingEmit,ie=>D(Bh(ie)?ie:ie[0]),ie=>fae(ie,J)),changedFilesSet:new Set(Kt(u.changeFileSet,D)),latestChangedDtsFile:x,emitSignatures:X?.size?X:void 0}}return{getState:()=>p,saveEmitState:Fa,restoreEmitState:Fa,getProgram:Ts,getProgramOrUndefined:Zy,releaseProgram:Fa,getCompilerOptions:()=>p.compilerOptions,getSourceFile:Ts,getSourceFiles:Ts,getOptionsDiagnostics:Ts,getGlobalDiagnostics:Ts,getConfigFileParsingDiagnostics:Ts,getSyntacticDiagnostics:Ts,getDeclarationDiagnostics:Ts,getSemanticDiagnostics:Ts,emit:Ts,getAllDependencies:Ts,getCurrentDirectory:Ts,emitNextAffectedFile:Ts,getSemanticDiagnosticsOfNextAffectedFile:Ts,emitBuildInfo:Ts,close:Fa,hasChangedEmitSignature:ld};function C(V){return xo(V,f,g)}function w(V){return cs(V,f)}function D(V){return y[V-1]}function O(V){return S[V-1]}function z(V){if(!V)return;let X=Kp.createManyToManyPathMap();return V.forEach(([J,ie])=>X.set(D(J),O(ie))),X}}function gq(e,t,n){let i=Xr(cs(t,n.getCurrentDirectory())),s=cu(n.useCaseSensitiveFileNames()),o=new Map,c=0,u=[];return e.fileInfos.forEach((f,g)=>{let p=xo(e.fileNames[g],i,s),y=os(f)?f:f.version;if(o.set(p,y),ce().program,releaseProgram:()=>e().program=void 0,getCompilerOptions:()=>e().compilerOptions,getSourceFile:i=>n().getSourceFile(i),getSourceFiles:()=>n().getSourceFiles(),getOptionsDiagnostics:i=>n().getOptionsDiagnostics(i),getGlobalDiagnostics:i=>n().getGlobalDiagnostics(i),getConfigFileParsingDiagnostics:()=>t,getSyntacticDiagnostics:(i,s)=>n().getSyntacticDiagnostics(i,s),getDeclarationDiagnostics:(i,s)=>n().getDeclarationDiagnostics(i,s),getSemanticDiagnostics:(i,s)=>n().getSemanticDiagnostics(i,s),emit:(i,s,o,c,u)=>n().emit(i,s,o,c,u),emitBuildInfo:(i,s)=>n().emitBuildInfo(i,s),getAllDependencies:Ts,getCurrentDirectory:()=>n().getCurrentDirectory(),close:Fa};function n(){return E.checkDefined(e().program)}}var yq,vq,yRe=ze({"src/compiler/builder.ts"(){"use strict";Rs(),yq=(e=>(e[e.None=0]="None",e[e.Js=1]="Js",e[e.JsMap=2]="JsMap",e[e.JsInlineMap=4]="JsInlineMap",e[e.Dts=8]="Dts",e[e.DtsMap=16]="DtsMap",e[e.AllJs=7]="AllJs",e[e.AllDts=24]="AllDts",e[e.All=31]="All",e))(yq||{}),vq=(e=>(e[e.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",e[e.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",e))(vq||{})}});function L2e(e,t,n,i,s,o){return mq(0,D9(e,t,n,i,s,o))}function bq(e,t,n,i,s,o){return mq(1,D9(e,t,n,i,s,o))}function M2e(e,t,n,i,s,o){let{newProgram:c,configFileParsingDiagnostics:u}=D9(e,t,n,i,s,o);return hq(()=>({program:c,compilerOptions:c.getCompilerOptions()}),u)}var vRe=ze({"src/compiler/builderPublic.ts"(){"use strict";Rs()}});function P9(e){return Sc(e,"/node_modules/.staging")?yk(e,"/.staging"):ft(mP,t=>e.includes(t))?void 0:e}function mae(e,t){if(t<=1)return 1;let n=1,i=e[0].search(/[a-zA-Z]:/)===0;if(e[0]!==Oo&&!i&&e[1].search(/[a-zA-Z]\$$/)===0){if(t===2)return 2;n=2,i=!0}return i&&!e[n].match(/^users$/i)?n:e[n].match(/^workspaces$/i)?n+1:n+2}function w9(e,t){if(t===void 0&&(t=e.length),t<=2)return!1;let n=mae(e,t);return t>n+1}function gae(e){return j2e(Xr(e))}function R2e(e,t){if(t.lengths.length+1?yae(u,c,Math.max(s.length+1,f+1)):{dir:n,dirPath:i,nonRecursive:!0}:B2e(u,c,c.length-1,f,g,s)}function B2e(e,t,n,i,s,o){if(s!==-1)return yae(e,t,s+1);let c=!0,u=n;for(let f=0;fbRe(i,s,o,e,n,t,c)}}function bRe(e,t,n,i,s,o,c){let u=A9(e),f=WC(n,i,s,u,t,o,c);if(!e.getGlobalCache)return f;let g=e.getGlobalCache();if(g!==void 0&&!Al(n)&&!(f.resolvedModule&&nF(f.resolvedModule.extension))){let{resolvedModule:p,failedLookupLocations:y,affectingLocations:S,resolutionDiagnostics:x}=Bie(E.checkDefined(e.globalCacheResolutionModuleName)(n),e.projectName,s,u,g,t);if(p)return f.resolvedModule=p,f.failedLookupLocations=zC(f.failedLookupLocations,y),f.affectingLocations=zC(f.affectingLocations,S),f.resolutionDiagnostics=zC(f.resolutionDiagnostics,x),f}return f}function xq(e,t,n){let i,s,o,c=mf(),u=new Set,f=new Set,g=new Map,p=new Map,y=!1,S,x,C,w,D,O=!1,z=Yu(()=>e.getCurrentDirectory()),V=e.getCachedDirectoryStructureHost(),X=new Map,J=VC(z(),e.getCanonicalFileName,e.getCompilationSettings()),ie=new Map,B=OO(z(),e.getCanonicalFileName,e.getCompilationSettings(),J.getPackageJsonInfoCache(),J.optionsToRedirectsKey),Z=new Map,ae=VC(z(),e.getCanonicalFileName,ZW(e.getCompilationSettings()),J.getPackageJsonInfoCache()),_e=new Map,$=new Map,H=bae(t,z),K=e.toPath(H),oe=bl(K),Se=new Map;return{rootDirForResolution:t,resolvedModuleNames:X,resolvedTypeReferenceDirectives:ie,resolvedLibraries:Z,resolvedFileToResolution:g,resolutionsWithFailedLookups:u,resolutionsWithOnlyAffectingLocations:f,directoryWatchesOfFailedLookups:_e,fileWatchesOfAffectingLocations:$,watchFailedLookupLocationsOfExternalModuleResolutions:Tn,getModuleResolutionCache:()=>J,startRecordingFilesWithChangedResolutions:Me,finishRecordingFilesWithChangedResolutions:ke,startCachingPerDirectoryResolution:_t,finishCachingPerDirectoryResolution:me,resolveModuleNameLiterals:Je,resolveTypeReferenceDirectiveReferences:ht,resolveLibrary:lt,resolveSingleModuleNameWithoutWatching:Jt,removeResolutionsFromProjectReferenceRedirects:Sn,removeResolutionsOfFile:Cn,hasChangedAutomaticTypeDirectiveNames:()=>y,invalidateResolutionOfFile:Fi,invalidateResolutionsOfFailedLookupLocations:na,setFilesWithInvalidatedNonRelativeUnresolvedImports:Wi,createHasInvalidatedResolutions:be,isFileWithInvalidatedNonRelativeUnresolvedImports:he,updateTypeRootsWatch:gt,closeTypeRootsWatch:it,clear:ve,onChangesAffectModuleResolution:xe};function se(we){return we.resolvedModule}function Y(we){return we.resolvedTypeReferenceDirective}function ve(){d_(_e,Cf),d_($,Cf),c.clear(),it(),X.clear(),ie.clear(),g.clear(),u.clear(),f.clear(),C=void 0,w=void 0,D=void 0,x=void 0,S=void 0,O=!1,J.clear(),B.clear(),J.update(e.getCompilationSettings()),B.update(e.getCompilationSettings()),ae.clear(),p.clear(),Z.clear(),y=!1}function xe(){O=!0,J.clearAllExceptPackageJsonInfoCache(),B.clearAllExceptPackageJsonInfoCache(),J.update(e.getCompilationSettings()),B.update(e.getCompilationSettings())}function Me(){i=[]}function ke(){let we=i;return i=void 0,we}function he(we){if(!o)return!1;let Be=o.get(we);return!!Be&&!!Be.length}function be(we,Be){na();let yt=s;return s=void 0,{hasInvalidatedResolutions:G=>we(G)||O||!!yt?.has(G)||he(G),hasInvalidatedLibResolutions:G=>{var vt;return Be(G)||!!((vt=Z?.get(G))!=null&&vt.isInvalidated)}}}function _t(){J.isReadonly=void 0,B.isReadonly=void 0,ae.isReadonly=void 0,J.getPackageJsonInfoCache().isReadonly=void 0,J.clearAllExceptPackageJsonInfoCache(),B.clearAllExceptPackageJsonInfoCache(),ae.clearAllExceptPackageJsonInfoCache(),c.forEach(ji),c.clear()}function mt(we){Z.forEach((Be,yt)=>{var G;(G=we?.resolvedLibReferences)!=null&&G.has(yt)||(Ye(Be,e.toPath(v9(e.getCompilationSettings(),z(),yt)),se),Z.delete(yt))})}function me(we,Be){o=void 0,O=!1,c.forEach(ji),c.clear(),we!==Be&&(mt(we),we?.getSourceFiles().forEach(yt=>{var G;let vt=K_(yt)?((G=yt.packageJsonLocations)==null?void 0:G.length)??0:0,wt=p.get(yt.path)??Ve;for(let Re=wt.length;Revt)for(let Re=vt;Re{we?.getSourceFileByPath(G)||(yt.forEach(vt=>$.get(vt).files--),p.delete(G))})),_e.forEach(Oe),$.forEach(Qe),y=!1,J.isReadonly=!0,B.isReadonly=!0,ae.isReadonly=!0,J.getPackageJsonInfoCache().isReadonly=!0}function Oe(we,Be){we.refCount===0&&(_e.delete(Be),we.watcher.close())}function Qe(we,Be){var yt;we.files===0&&we.resolutions===0&&!((yt=we.symlinks)!=null&&yt.size)&&($.delete(Be),we.watcher.close())}function at({entries:we,containingFile:Be,containingSourceFile:yt,redirectedReference:G,options:vt,perFileCache:wt,reusedNames:Re,loader:ot,getResolutionWithResolvedFileName:Dt,deferWatchingNonRelativeResolution:Zt,shouldRetryResolution:tn,logChanges:ln}){let W=e.toPath(Be),j=wt.get(W)||wt.set(W,sT()).get(W),ce=[],ee=ln&&he(W),ue=e.getCurrentProgram(),M=ue&&ue.getResolvedProjectReferenceToRedirect(Be),De=M?!G||G.sourceFile.path!==M.sourceFile.path:!!G,qe=sT();for(let St of we){let Mt=ot.nameAndMode.getName(St),Wt=ot.nameAndMode.getMode(St,yt),Rn=j.get(Mt,Wt);if(!qe.has(Mt,Wt)&&(O||De||!Rn||Rn.isInvalidated||ee&&!Al(Mt)&&tn(Rn))){let nr=Rn;Rn=ot.resolve(Mt,Wt),e.onDiscoveredSymlink&&SRe(Rn)&&e.onDiscoveredSymlink(),j.set(Mt,Wt,Rn),Rn!==nr&&(Tn(Mt,Rn,W,Dt,Zt),nr&&Ye(nr,W,Dt)),ln&&i&&!Fe(nr,Rn)&&(i.push(W),ln=!1)}else{let nr=A9(e);if(_h(vt,nr)&&!qe.has(Mt,Wt)){let br=Dt(Rn);Zi(nr,wt===X?br?.resolvedFileName?br.packageId?d.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:d.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:d.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:br?.resolvedFileName?br.packageId?d.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:d.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:d.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Mt,Be,br?.resolvedFileName,br?.packageId&&Y0(br.packageId))}}E.assert(Rn!==void 0&&!Rn.isInvalidated),qe.set(Mt,Wt,!0),ce.push(Rn)}return Re?.forEach(St=>qe.set(ot.nameAndMode.getName(St),ot.nameAndMode.getMode(St,yt),!0)),j.size()!==qe.size()&&j.forEach((St,Mt,Wt)=>{qe.has(Mt,Wt)||(Ye(St,W,Dt),j.delete(Mt,Wt))}),ce;function Fe(St,Mt){if(St===Mt)return!0;if(!St||!Mt)return!1;let Wt=Dt(St),Rn=Dt(Mt);return Wt===Rn?!0:!Wt||!Rn?!1:Wt.resolvedFileName===Rn.resolvedFileName}}function ht(we,Be,yt,G,vt,wt){return at({entries:we,containingFile:Be,containingSourceFile:vt,redirectedReference:yt,options:G,reusedNames:wt,perFileCache:ie,loader:h9(Be,yt,G,A9(e),B),getResolutionWithResolvedFileName:Y,shouldRetryResolution:Re=>Re.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function Je(we,Be,yt,G,vt,wt){return at({entries:we,containingFile:Be,containingSourceFile:vt,redirectedReference:yt,options:G,reusedNames:wt,perFileCache:X,loader:Sae(Be,yt,G,e,J),getResolutionWithResolvedFileName:se,shouldRetryResolution:Re=>!Re.resolvedModule||!NE(Re.resolvedModule.extension),logChanges:n,deferWatchingNonRelativeResolution:!0})}function lt(we,Be,yt,G){let vt=A9(e),wt=Z?.get(G);if(!wt||wt.isInvalidated){let Re=wt;wt=LO(we,Be,yt,vt,ae);let ot=e.toPath(Be);Tn(we,wt,ot,se,!1),Z.set(G,wt),Re&&Ye(Re,ot,se)}else if(_h(yt,vt)){let Re=se(wt);Zi(vt,Re?.resolvedFileName?Re.packageId?d.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:d.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:d.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,we,Be,Re?.resolvedFileName,Re?.packageId&&Y0(Re.packageId))}return wt}function Jt(we,Be){var yt,G;let vt=e.toPath(Be),wt=X.get(vt),Re=wt?.get(we,void 0);if(Re&&!Re.isInvalidated)return Re;let ot=(yt=e.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:yt.call(e,J),Dt=A9(e),Zt=WC(we,Be,e.getCompilationSettings(),Dt,J);return(G=e.afterResolveSingleModuleNameWithoutWatching)==null||G.call(e,J,we,Be,Zt,ot),Zt}function Gt(we){return Sc(we,"/node_modules/@types")}function Tn(we,Be,yt,G,vt){var wt;if(Be.refCount)Be.refCount++,E.assertIsDefined(Be.files);else{Be.refCount=1,E.assert(!((wt=Be.files)!=null&&wt.size)),!vt||Al(we)?cn(Be):c.add(we,Be);let Re=G(Be);if(Re&&Re.resolvedFileName){let ot=e.toPath(Re.resolvedFileName),Dt=g.get(ot);Dt||g.set(ot,Dt=new Set),Dt.add(Be)}}(Be.files??(Be.files=new Set)).add(yt)}function Un(we,Be){let yt=e.toPath(we),G=Sq(we,yt,H,K,oe,z);if(G){let{dir:vt,dirPath:wt,nonRecursive:Re}=G;wt===K?(E.assert(Re),Be=!0):ii(vt,wt,Re)}return Be}function cn(we){E.assert(!!we.refCount);let{failedLookupLocations:Be,affectingLocations:yt,node10Result:G}=we;if(!Be?.length&&!yt?.length&&!G)return;(Be?.length||G)&&u.add(we);let vt=!1;if(Be)for(let wt of Be)vt=Un(wt,vt);G&&(vt=Un(G,vt)),vt&&ii(H,K,!0),zt(we,!Be?.length&&!G)}function zt(we,Be){E.assert(!!we.refCount);let{affectingLocations:yt}=we;if(yt?.length){Be&&f.add(we);for(let G of yt)Ft(G,!0)}}function Ft(we,Be){let yt=$.get(we);if(yt){Be?yt.resolutions++:yt.files++;return}let G=we,vt=!1,wt;e.realpath&&(G=e.realpath(we),we!==G&&(vt=!0,wt=$.get(G)));let Re=Be?1:0,ot=Be?0:1;if(!vt||!wt){let Dt={watcher:hae(e.toPath(G))?e.watchAffectingFileLocation(G,(Zt,tn)=>{V?.addOrDeleteFile(Zt,e.toPath(G),tn),Lr(G,J.getPackageJsonInfoCache().getInternalMap()),e.scheduleInvalidateResolutionsOfFailedLookupLocations()}):e6,resolutions:vt?0:Re,files:vt?0:ot,symlinks:void 0};$.set(G,Dt),vt&&(wt=Dt)}if(vt){E.assert(!!wt);let Dt={watcher:{close:()=>{var Zt;let tn=$.get(G);(Zt=tn?.symlinks)!=null&&Zt.delete(we)&&!tn.symlinks.size&&!tn.resolutions&&!tn.files&&($.delete(G),tn.watcher.close())}},resolutions:Re,files:ot,symlinks:void 0};$.set(we,Dt),(wt.symlinks??(wt.symlinks=new Set)).add(we)}}function Lr(we,Be){var yt;let G=$.get(we);G?.resolutions&&(x??(x=new Set)).add(we),G?.files&&(S??(S=new Set)).add(we),(yt=G?.symlinks)==null||yt.forEach(vt=>Lr(vt,Be)),Be?.delete(e.toPath(we))}function ji(we,Be){let yt=e.getCurrentProgram();!yt||!yt.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Be)?we.forEach(cn):we.forEach(G=>zt(G,!0))}function ii(we,Be,yt){let G=_e.get(Be);G?(E.assert(!!yt==!!G.nonRecursive),G.refCount++):_e.set(Be,{watcher:An(we,Be,yt),refCount:1,nonRecursive:yt})}function Hi(we,Be,yt){let G=e.toPath(we),vt=Sq(we,G,H,K,oe,z);if(vt){let{dirPath:wt}=vt;wt===K?Be=!0:fn(wt,yt)}return Be}function Ye(we,Be,yt,G){if(E.checkDefined(we.files).delete(Be),we.refCount--,we.refCount)return;let vt=yt(we);if(vt&&vt.resolvedFileName){let Dt=e.toPath(vt.resolvedFileName),Zt=g.get(Dt);Zt?.delete(we)&&!Zt.size&&g.delete(Dt)}let{failedLookupLocations:wt,affectingLocations:Re,node10Result:ot}=we;if(u.delete(we)){let Dt=!1;if(wt)for(let Zt of wt)Dt=Hi(Zt,Dt,G);ot&&(Dt=Hi(ot,Dt,G)),Dt&&fn(K,G)}else Re?.length&&f.delete(we);if(Re)for(let Dt of Re){let Zt=$.get(Dt);Zt.resolutions--,G&&Qe(Zt,Dt)}}function fn(we,Be){let yt=_e.get(we);yt.refCount--,Be&&Oe(yt,we)}function An(we,Be,yt){return e.watchDirectoryOfFailedLookupLocation(we,G=>{let vt=e.toPath(G);V&&V.addOrDeleteFileOrDirectory(G,vt),Ii(vt,Be===vt)},yt?0:1)}function Ot(we,Be,yt,G){let vt=we.get(Be);vt&&(vt.forEach(wt=>Ye(wt,Be,yt,G)),we.delete(Be))}function Sn(we){if(!nc(we,".json"))return;let Be=e.getCurrentProgram();if(!Be)return;let yt=Be.getResolvedProjectReferenceByPath(we);yt&&yt.commandLine.fileNames.forEach(G=>Cn(e.toPath(G)))}function Cn(we,Be){Ot(X,we,se,Be),Ot(ie,we,Y,Be)}function Kn(we,Be){if(!we)return!1;let yt=!1;return we.forEach(G=>{if(!(G.isInvalidated||!Be(G))){G.isInvalidated=yt=!0;for(let vt of E.checkDefined(G.files))(s??(s=new Set)).add(vt),y=y||Sc(vt,YC)}}),yt}function Fi(we){Cn(we);let Be=y;Kn(g.get(we),Yg)&&y&&!Be&&e.onChangedAutomaticTypeDirectiveNames()}function Wi(we){E.assert(o===we||o===void 0),o=we}function Ii(we,Be){if(Be)(D||(D=new Set)).add(we);else{let yt=P9(we);if(!yt||(we=yt,e.fileIsOpen(we)))return!1;let G=Xr(we);if(Gt(we)||m7(we)||Gt(G)||m7(G))(C||(C=new Set)).add(we),(w||(w=new Set)).add(we);else{if(Hse(e.getCurrentProgram(),we)||nc(we,".map"))return!1;(C||(C=new Set)).add(we);let vt=$8(we,!0);vt&&(w||(w=new Set)).add(vt)}}e.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ki(){let we=J.getPackageJsonInfoCache().getInternalMap();we&&(C||w||D)&&we.forEach((Be,yt)=>Ce(yt)?we.delete(yt):void 0)}function na(){var we;if(O)return S=void 0,Ki(),(C||w||D||x)&&Kn(Z,Fs),C=void 0,w=void 0,D=void 0,x=void 0,!0;let Be=!1;return S&&((we=e.getCurrentProgram())==null||we.getSourceFiles().forEach(yt=>{ft(yt.packageJsonLocations,G=>S.has(G))&&((s??(s=new Set)).add(yt.path),Be=!0)}),S=void 0),!C&&!w&&!D&&!x||(Be=Kn(u,Fs)||Be,Ki(),C=void 0,w=void 0,D=void 0,Be=Kn(f,Ue)||Be,x=void 0),Be}function Fs(we){var Be;return Ue(we)?!0:!C&&!w&&!D?!1:((Be=we.failedLookupLocations)==null?void 0:Be.some(yt=>Ce(e.toPath(yt))))||!!we.node10Result&&Ce(e.toPath(we.node10Result))}function Ce(we){return C?.has(we)||df(w?.keys()||[],Be=>ts(we,Be)?!0:void 0)||df(D?.keys()||[],Be=>we.length>Be.length&&ts(we,Be)&&(KB(Be)||we[Be.length]===Oo)?!0:void 0)}function Ue(we){var Be;return!!x&&((Be=we.affectingLocations)==null?void 0:Be.some(yt=>x.has(yt)))}function it(){d_(Se,fd)}function dt(we,Be){return fe(we)?e.watchTypeRootsDirectory(Be,yt=>{let G=e.toPath(yt);V&&V.addOrDeleteFileOrDirectory(yt,G),y=!0,e.onChangedAutomaticTypeDirectiveNames();let vt=vae(Be,we,K,oe,z,wt=>_e.has(wt));vt&&Ii(G,vt===G)},1):e6}function gt(){let we=e.getCompilationSettings();if(we.types){it();return}let Be=m3(we,{getCurrentDirectory:z});Be?lC(Se,jh(Be,yt=>e.toPath(yt)),{createNewValue:dt,onDeleteValue:fd}):it()}function fe(we){return e.getCompilationSettings().typeRoots?!0:gae(e.toPath(we))}}function SRe(e){var t,n;return!!((t=e.resolvedModule)!=null&&t.originalPath||(n=e.resolvedTypeReferenceDirective)!=null&&n.originalPath)}var xRe=ze({"src/compiler/resolutionCache.ts"(){"use strict";Rs()}});function mA(e,t){let n=e===Hl&&Pae?Pae:{getCurrentDirectory:()=>e.getCurrentDirectory(),getNewLine:()=>e.newLine,getCanonicalFileName:cu(e.useCaseSensitiveFileNames)};if(!t)return s=>e.write(ZU(s,n));let i=new Array(1);return s=>{i[0]=s,e.write(Qse(i,n)+n.getNewLine()),i[0]=void 0}}function z2e(e,t,n){return e.clearScreen&&!n.preserveWatchOutput&&!n.extendedDiagnostics&&!n.diagnostics&&gs(M9,t.code)?(e.clearScreen(),!0):!1}function TRe(e,t){return gs(M9,e.code)?t+t:t}function gA(e){return e.now?e.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace("\u202F"," "):new Date().toLocaleTimeString()}function xae(e,t){return t?(n,i,s)=>{z2e(e,n,s);let o=`[${pb(gA(e),"\x1B[90m")}] `;o+=`${Qd(n.messageText,e.newLine)}${i+i}`,e.write(o)}:(n,i,s)=>{let o="";z2e(e,n,s)||(o+=i),o+=`${gA(e)} - `,o+=`${Qd(n.messageText,e.newLine)}${TRe(n,i)}`,e.write(o)}}function V2e(e,t,n,i,s,o){let c=s;c.onUnRecoverableConfigFileDiagnostic=f=>q2e(s,o,f);let u=L8(e,t,c,n,i);return c.onUnRecoverableConfigFileDiagnostic=void 0,u}function N9(e){return Lh(e,t=>t.category===1)}function I9(e){return Fr(e,n=>n.category===1).map(n=>{if(n.file!==void 0)return`${n.file.fileName}`}).map(n=>{if(n===void 0)return;let i=xr(e,s=>s.file!==void 0&&s.file.fileName===n);if(i!==void 0){let{line:s}=Ka(i.file,i.start);return{fileName:n,line:s+1}}})}function Tq(e){return e===1?d.Found_1_error_Watching_for_file_changes:d.Found_0_errors_Watching_for_file_changes}function W2e(e,t){let n=pb(":"+e.line,"\x1B[90m");return F4(e.fileName)&&F4(t)?Em(t,e.fileName,!1)+n:e.fileName+n}function Tae(e,t,n,i){if(e===0)return"";let s=t.filter(p=>p!==void 0),o=s.map(p=>`${p.fileName}:${p.line}`).filter((p,y,S)=>S.indexOf(p)===y),c=s[0]&&W2e(s[0],i.getCurrentDirectory()),u;e===1?u=t[0]!==void 0?[d.Found_1_error_in_0,c]:[d.Found_1_error]:u=o.length===0?[d.Found_0_errors,e]:o.length===1?[d.Found_0_errors_in_the_same_file_starting_at_Colon_1,e,c]:[d.Found_0_errors_in_1_files,e,o.length];let f=Tc(...u),g=o.length>1?kRe(s,i):"";return`${n}${Qd(f.messageText,n)}${n}${n}${g}`}function kRe(e,t){let n=e.filter((y,S,x)=>S===x.findIndex(C=>C?.fileName===y?.fileName));if(n.length===0)return"";let i=y=>Math.log(y)*Math.LOG10E+1,s=n.map(y=>[y,Lh(e,S=>S.fileName===y.fileName)]),o=s.reduce((y,S)=>Math.max(y,S[1]||0),0),c=d.Errors_Files.message,u=c.split(" ")[0].length,f=Math.max(u,i(o)),g=Math.max(i(o)-u,0),p="";return p+=" ".repeat(g)+c+` -`,s.forEach(y=>{let[S,x]=y,C=Math.log(x)*Math.LOG10E+1|0,w=C{t(i.fileName)})}function Cq(e,t){var n,i;let s=e.getFileIncludeReasons(),o=c=>L4(c,e.getCurrentDirectory(),e.getCanonicalFileName);for(let c of e.getSourceFiles())t(`${KC(c,o)}`),(n=s.get(c.path))==null||n.forEach(u=>t(` ${wq(e,u,o).messageText}`)),(i=Eq(c,o))==null||i.forEach(u=>t(` ${u.messageText}`))}function Eq(e,t){var n;let i;if(e.path!==e.resolvedPath&&(i??(i=[])).push(ys(void 0,d.File_is_output_of_project_reference_source_0,KC(e.originalFileName,t))),e.redirectInfo&&(i??(i=[])).push(ys(void 0,d.File_redirects_to_file_0,KC(e.redirectInfo.redirectTarget,t))),K_(e))switch(e.impliedNodeFormat){case 99:e.packageJsonScope&&(i??(i=[])).push(ys(void 0,d.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,KC(Pa(e.packageJsonLocations),t)));break;case 1:e.packageJsonScope?(i??(i=[])).push(ys(void 0,e.packageJsonScope.contents.packageJsonContent.type?d.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:d.File_is_CommonJS_module_because_0_does_not_have_field_type,KC(Pa(e.packageJsonLocations),t))):(n=e.packageJsonLocations)!=null&&n.length&&(i??(i=[])).push(ys(void 0,d.File_is_CommonJS_module_because_package_json_was_not_found));break}return i}function Dq(e,t){var n;let i=e.getCompilerOptions().configFile;if(!((n=i?.configFileSpecs)!=null&&n.validatedFilesSpec))return;let s=e.getCanonicalFileName(t),o=Xr(cs(i.fileName,e.getCurrentDirectory()));return xr(i.configFileSpecs.validatedFilesSpec,c=>e.getCanonicalFileName(cs(c,o))===s)}function Pq(e,t){var n,i;let s=e.getCompilerOptions().configFile;if(!((n=s?.configFileSpecs)!=null&&n.validatedIncludeSpecs))return;if(s.configFileSpecs.isDefaultIncludeSpec)return!0;let o=nc(t,".json"),c=Xr(cs(s.fileName,e.getCurrentDirectory())),u=e.useCaseSensitiveFileNames();return xr((i=s?.configFileSpecs)==null?void 0:i.validatedIncludeSpecs,f=>{if(o&&!Sc(f,".json"))return!1;let g=tV(f,c,"files");return!!g&&ry(`(${g})$`,u).test(t)})}function wq(e,t,n){var i,s;let o=e.getCompilerOptions();if(I1(t)){let c=N3(e,t),u=XC(c)?c.file.text.substring(c.pos,c.end):`"${c.text}"`,f;switch(E.assert(XC(c)||t.kind===3,"Only synthetic references are imports"),t.kind){case 3:XC(c)?f=c.packageId?d.Imported_via_0_from_file_1_with_packageId_2:d.Imported_via_0_from_file_1:c.text===sy?f=c.packageId?d.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:d.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:f=c.packageId?d.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:d.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:E.assert(!c.packageId),f=d.Referenced_via_0_from_file_1;break;case 5:f=c.packageId?d.Type_library_referenced_via_0_from_file_1_with_packageId_2:d.Type_library_referenced_via_0_from_file_1;break;case 7:E.assert(!c.packageId),f=d.Library_referenced_via_0_from_file_1;break;default:E.assertNever(t)}return ys(void 0,f,u,KC(c.file,n),c.packageId&&Y0(c.packageId))}switch(t.kind){case 0:if(!((i=o.configFile)!=null&&i.configFileSpecs))return ys(void 0,d.Root_file_specified_for_compilation);let c=cs(e.getRootFileNames()[t.index],e.getCurrentDirectory());if(Dq(e,c))return ys(void 0,d.Part_of_files_list_in_tsconfig_json);let f=Pq(e,c);return os(f)?ys(void 0,d.Matched_by_include_pattern_0_in_1,f,KC(o.configFile,n)):ys(void 0,f?d.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:d.Root_file_specified_for_compilation);case 1:case 2:let g=t.kind===2,p=E.checkDefined((s=e.getResolvedProjectReferences())==null?void 0:s[t.index]);return ys(void 0,lo(o)?g?d.Output_from_referenced_project_0_included_because_1_specified:d.Source_from_referenced_project_0_included_because_1_specified:g?d.Output_from_referenced_project_0_included_because_module_is_specified_as_none:d.Source_from_referenced_project_0_included_because_module_is_specified_as_none,KC(p.sourceFile.fileName,n),o.outFile?"--outFile":"--out");case 8:{let y=o.types?t.packageId?[d.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,t.typeReference,Y0(t.packageId)]:[d.Entry_point_of_type_library_0_specified_in_compilerOptions,t.typeReference]:t.packageId?[d.Entry_point_for_implicit_type_library_0_with_packageId_1,t.typeReference,Y0(t.packageId)]:[d.Entry_point_for_implicit_type_library_0,t.typeReference];return ys(void 0,...y)}case 6:{if(t.index!==void 0)return ys(void 0,d.Library_0_specified_in_compilerOptions,o.lib[t.index]);let y=$l(W8.type,(x,C)=>x===La(o)?C:void 0),S=y?[d.Default_library_for_target_0,y]:[d.Default_library];return ys(void 0,...S)}default:E.assertNever(t)}}function KC(e,t){let n=os(e)?e:e.fileName;return t?t(n):n}function F9(e,t,n,i,s,o,c,u){let f=!!e.getCompilerOptions().listFilesOnly,g=e.getConfigFileParsingDiagnostics().slice(),p=g.length;Nr(g,e.getSyntacticDiagnostics(void 0,o)),g.length===p&&(Nr(g,e.getOptionsDiagnostics(o)),f||(Nr(g,e.getGlobalDiagnostics(o)),g.length===p&&Nr(g,e.getSemanticDiagnostics(void 0,o))));let y=f?{emitSkipped:!0,diagnostics:Ve}:e.emit(void 0,s,o,c,u),{emittedFiles:S,diagnostics:x}=y;Nr(g,x);let C=Ek(g);if(C.forEach(t),n){let w=e.getCurrentDirectory();Qt(S,D=>{let O=cs(D,w);n(`TSFILE: ${O}`)}),kq(e,n)}return i&&i(N9(C),I9(C)),{emitResult:y,diagnostics:C}}function Cae(e,t,n,i,s,o,c,u){let{emitResult:f,diagnostics:g}=F9(e,t,n,i,s,o,c,u);return f.emitSkipped&&g.length>0?1:g.length>0?2:0}function Aq(e=Hl,t){return{onWatchStatusChange:t||xae(e),watchFile:Js(e,e.watchFile)||t6,watchDirectory:Js(e,e.watchDirectory)||t6,setTimeout:Js(e,e.setTimeout)||Fa,clearTimeout:Js(e,e.clearTimeout)||Fa}}function Nq(e,t){let n=e.trace?t.extendedDiagnostics?2:t.diagnostics?1:0:0,i=n!==0?o=>e.trace(o):Fa,s=HU(e,n,i);return s.writeLog=i,s}function Iq(e,t,n=e){let i=e.useCaseSensitiveFileNames(),s={getSourceFile:XU((o,c)=>c?e.readFile(o,c):s.readFile(o),t,void 0),getDefaultLibLocation:Js(e,e.getDefaultLibLocation),getDefaultLibFileName:o=>e.getDefaultLibFileName(o),writeFile:QU((o,c,u)=>e.writeFile(o,c,u),o=>e.createDirectory(o),o=>e.directoryExists(o)),getCurrentDirectory:Yu(()=>e.getCurrentDirectory()),useCaseSensitiveFileNames:()=>i,getCanonicalFileName:cu(i),getNewLine:()=>Yh(t()),fileExists:o=>e.fileExists(o),readFile:o=>e.readFile(o),trace:Js(e,e.trace),directoryExists:Js(n,n.directoryExists),getDirectories:Js(n,n.getDirectories),realpath:Js(e,e.realpath),getEnvironmentVariable:Js(e,e.getEnvironmentVariable)||(()=>""),createHash:Js(e,e.createHash),readDirectory:Js(e,e.readDirectory),storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:e.jsDocParsingMode};return s}function O9(e,t){if(t.match(SU)){let n=t.length,i=n;for(let s=n-1;s>=0;s--){let o=t.charCodeAt(s);switch(o){case 10:s&&t.charCodeAt(s-1)===13&&s--;case 13:break;default:if(o<127||!xu(o)){i=s;continue}break}let c=t.substring(i,n);if(c.match(XO)){t=t.substring(0,i);break}else if(!c.match(QO))break;n=i}}return(e.createHash||I4)(t)}function L9(e){let t=e.getSourceFile;e.getSourceFile=(...n)=>{let i=t.call(e,...n);return i&&(i.version=O9(e,i.text)),i}}function Fq(e,t){let n=Yu(()=>Xr(Ys(e.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>e.useCaseSensitiveFileNames,getNewLine:()=>e.newLine,getCurrentDirectory:Yu(()=>e.getCurrentDirectory()),getDefaultLibLocation:n,getDefaultLibFileName:i=>Qr(n(),EP(i)),fileExists:i=>e.fileExists(i),readFile:(i,s)=>e.readFile(i,s),directoryExists:i=>e.directoryExists(i),getDirectories:i=>e.getDirectories(i),readDirectory:(i,s,o,c,u)=>e.readDirectory(i,s,o,c,u),realpath:Js(e,e.realpath),getEnvironmentVariable:Js(e,e.getEnvironmentVariable),trace:i=>e.write(i+e.newLine),createDirectory:i=>e.createDirectory(i),writeFile:(i,s,o)=>e.writeFile(i,s,o),createHash:Js(e,e.createHash),createProgram:t||bq,storeFilesChangingSignatureDuringEmit:e.storeFilesChangingSignatureDuringEmit,now:Js(e,e.now)}}function U2e(e=Hl,t,n,i){let s=c=>e.write(c+e.newLine),o=Fq(e,t);return Oj(o,Aq(e,i)),o.afterProgramCreate=c=>{let u=c.getCompilerOptions(),f=Yh(u);F9(c,n,s,g=>o.onWatchStatusChange(Tc(Tq(g),g),f,u,g))},o}function q2e(e,t,n){t(n),e.exit(1)}function Eae({configFileName:e,optionsToExtend:t,watchOptionsToExtend:n,extraFileExtensions:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:u}){let f=c||mA(s),g=U2e(s,o,f,u);return g.onUnRecoverableConfigFileDiagnostic=p=>q2e(s,f,p),g.configFileName=e,g.optionsToExtend=t,g.watchOptionsToExtend=n,g.extraFileExtensions=i,g}function Dae({rootFiles:e,options:t,watchOptions:n,projectReferences:i,system:s,createProgram:o,reportDiagnostic:c,reportWatchStatus:u}){let f=U2e(s,o,c||mA(s),u);return f.rootFiles=e,f.options=t,f.watchOptions=n,f.projectReferences=i,f}function H2e(e){let t=e.system||Hl,n=e.host||(e.host=Oq(e.options,t)),i=wae(e),s=Cae(i,e.reportDiagnostic||mA(t),o=>n.trace&&n.trace(o),e.reportErrorSummary||e.options.pretty?(o,c)=>t.write(Tae(o,c,t.newLine,n)):void 0);return e.afterProgramEmitAndDiagnostics&&e.afterProgramEmitAndDiagnostics(i),s}var Pae,M9,e6,t6,dl,CRe=ze({"src/compiler/watch.ts"(){"use strict";Rs(),Pae=Hl?{getCurrentDirectory:()=>Hl.getCurrentDirectory(),getNewLine:()=>Hl.newLine,getCanonicalFileName:cu(Hl.useCaseSensitiveFileNames)}:void 0,M9=[d.Starting_compilation_in_watch_mode.code,d.File_change_detected_Starting_incremental_compilation.code],e6={close:Fa},t6=()=>e6,dl={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function R9(e,t){let n=i0(e);if(!n)return;let i;if(t.getBuildInfo)i=t.getBuildInfo(n,e.configFilePath);else{let s=t.readFile(n);if(!s)return;i=u9(n,s)}if(!(!i||i.version!==ps||!i.program))return dae(i,n,t)}function Oq(e,t=Hl){let n=YU(e,void 0,t);return n.createHash=Js(t,t.createHash),n.storeFilesChangingSignatureDuringEmit=t.storeFilesChangingSignatureDuringEmit,L9(n),_A(n,i=>xo(i,n.getCurrentDirectory(),n.getCanonicalFileName)),n}function wae({rootNames:e,options:t,configFileParsingDiagnostics:n,projectReferences:i,host:s,createProgram:o}){s=s||Oq(t),o=o||bq;let c=R9(t,s);return o(e,t,s,c,n,i)}function G2e(e,t,n,i,s,o,c,u){return ss(e)?Dae({rootFiles:e,options:t,watchOptions:u,projectReferences:c,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o}):Eae({configFileName:e,optionsToExtend:t,watchOptionsToExtend:c,extraFileExtensions:u,system:n,createProgram:i,reportDiagnostic:s,reportWatchStatus:o})}function $2e(e){let t,n,i,s,o,c,u,f,g=e.extendedConfigCache,p=!1,y=new Map,S,x=!1,C=e.useCaseSensitiveFileNames(),w=e.getCurrentDirectory(),{configFileName:D,optionsToExtend:O={},watchOptionsToExtend:z,extraFileExtensions:V,createProgram:X}=e,{rootFiles:J,options:ie,watchOptions:B,projectReferences:Z}=e,ae,_e,$=!1,H=!1,K=D===void 0?void 0:f9(e,w,C),oe=K||e,Se=x9(e,oe),se=Tn();D&&e.configFileParsingResult&&(Fs(e.configFileParsingResult),se=Tn()),Ye(d.Starting_compilation_in_watch_mode),D&&!e.configFileParsingResult&&(se=Yh(O),E.assert(!J),na(),se=Tn()),E.assert(ie),E.assert(J);let{watchFile:Y,watchDirectory:ve,writeLog:xe}=Nq(e,ie),Me=cu(C);xe(`Current directory: ${w} CaseSensitiveFileNames: ${C}`);let ke;D&&(ke=Y(D,Kn,2e3,B,dl.ConfigFile));let he=Iq(e,()=>ie,oe);L9(he);let be=he.getSourceFile;he.getSourceFile=(Re,...ot)=>Lr(Re,Un(Re),...ot),he.getSourceFileByPath=Lr,he.getNewLine=()=>se,he.fileExists=Ft,he.onReleaseOldSourceFile=Hi,he.onReleaseParsedCommandLine=it,he.toPath=Un,he.getCompilationSettings=()=>ie,he.useSourceOfProjectReferenceRedirect=Js(e,e.useSourceOfProjectReferenceRedirect),he.watchDirectoryOfFailedLookupLocation=(Re,ot,Dt)=>ve(Re,ot,Dt,B,dl.FailedLookupLocations),he.watchAffectingFileLocation=(Re,ot)=>Y(Re,ot,2e3,B,dl.AffectingFileLocation),he.watchTypeRootsDirectory=(Re,ot,Dt)=>ve(Re,ot,Dt,B,dl.TypeRoots),he.getCachedDirectoryStructureHost=()=>K,he.scheduleInvalidateResolutionsOfFailedLookupLocations=Ot,he.onInvalidatedResolution=Cn,he.onChangedAutomaticTypeDirectiveNames=Cn,he.fileIsOpen=ld,he.getCurrentProgram=Je,he.writeLog=xe,he.getParsedCommandLine=Ce;let _t=xq(he,D?Xr(cs(D,w)):w,!1);he.resolveModuleNameLiterals=Js(e,e.resolveModuleNameLiterals),he.resolveModuleNames=Js(e,e.resolveModuleNames),!he.resolveModuleNameLiterals&&!he.resolveModuleNames&&(he.resolveModuleNameLiterals=_t.resolveModuleNameLiterals.bind(_t)),he.resolveTypeReferenceDirectiveReferences=Js(e,e.resolveTypeReferenceDirectiveReferences),he.resolveTypeReferenceDirectives=Js(e,e.resolveTypeReferenceDirectives),!he.resolveTypeReferenceDirectiveReferences&&!he.resolveTypeReferenceDirectives&&(he.resolveTypeReferenceDirectiveReferences=_t.resolveTypeReferenceDirectiveReferences.bind(_t)),he.resolveLibrary=e.resolveLibrary?e.resolveLibrary.bind(e):_t.resolveLibrary.bind(_t),he.getModuleResolutionCache=e.resolveModuleNameLiterals||e.resolveModuleNames?Js(e,e.getModuleResolutionCache):()=>_t.getModuleResolutionCache();let me=!!e.resolveModuleNameLiterals||!!e.resolveTypeReferenceDirectiveReferences||!!e.resolveModuleNames||!!e.resolveTypeReferenceDirectives?Js(e,e.hasInvalidatedResolutions)||Yg:ld,Oe=e.resolveLibrary?Js(e,e.hasInvalidatedLibResolutions)||Yg:ld;return t=R9(ie,he),lt(),yt(),D&&vt(Un(D),ie,B,dl.ExtendedConfigFile),D?{getCurrentProgram:ht,getProgram:Wi,close:Qe,getResolutionCache:at}:{getCurrentProgram:ht,getProgram:Wi,updateRootFileNames:Gt,close:Qe,getResolutionCache:at};function Qe(){An(),_t.clear(),d_(y,Re=>{Re&&Re.fileWatcher&&(Re.fileWatcher.close(),Re.fileWatcher=void 0)}),ke&&(ke.close(),ke=void 0),g?.clear(),g=void 0,f&&(d_(f,Cf),f=void 0),s&&(d_(s,Cf),s=void 0),i&&(d_(i,fd),i=void 0),u&&(d_(u,Re=>{var ot;(ot=Re.watcher)==null||ot.close(),Re.watcher=void 0,Re.watchedDirectories&&d_(Re.watchedDirectories,Cf),Re.watchedDirectories=void 0}),u=void 0)}function at(){return _t}function ht(){return t}function Je(){return t&&t.getProgramOrUndefined()}function lt(){xe("Synchronizing program"),E.assert(ie),E.assert(J),An();let Re=ht();x&&(se=Tn(),Re&&J7(Re.getCompilerOptions(),ie)&&_t.onChangesAffectModuleResolution());let{hasInvalidatedResolutions:ot,hasInvalidatedLibResolutions:Dt}=_t.createHasInvalidatedResolutions(me,Oe),{originalReadFile:Zt,originalFileExists:tn,originalDirectoryExists:ln,originalCreateDirectory:W,originalWriteFile:j,readFileWithCache:ce}=_A(he,Un);return sq(Je(),J,ie,ee=>ii(ee,ce),ee=>he.fileExists(ee),ot,Dt,fn,Ce,Z)?H&&(p&&Ye(d.File_change_detected_Starting_incremental_compilation),t=X(void 0,void 0,he,t,_e,Z),H=!1):(p&&Ye(d.File_change_detected_Starting_incremental_compilation),Jt(ot,Dt)),p=!1,e.afterProgramCreate&&Re!==t&&e.afterProgramCreate(t),he.readFile=Zt,he.fileExists=tn,he.directoryExists=ln,he.createDirectory=W,he.writeFile=j,t}function Jt(Re,ot){xe("CreatingProgramWith::"),xe(` roots: ${JSON.stringify(J)}`),xe(` options: ${JSON.stringify(ie)}`),Z&&xe(` projectReferences: ${JSON.stringify(Z)}`);let Dt=x||!Je();x=!1,H=!1,_t.startCachingPerDirectoryResolution(),he.hasInvalidatedResolutions=Re,he.hasInvalidatedLibResolutions=ot,he.hasChangedAutomaticTypeDirectiveNames=fn;let Zt=Je();if(t=X(J,ie,he,t,_e,Z),_t.finishCachingPerDirectoryResolution(t.getProgram(),Zt),qU(t.getProgram(),i||(i=new Map),we),Dt&&_t.updateTypeRootsWatch(),S){for(let tn of S)i.has(tn)||y.delete(tn);S=void 0}}function Gt(Re){E.assert(!D,"Cannot update root file names with config file watch mode"),J=Re,Cn()}function Tn(){return Yh(ie||O)}function Un(Re){return xo(Re,w,Me)}function cn(Re){return typeof Re=="boolean"}function zt(Re){return typeof Re.version=="boolean"}function Ft(Re){let ot=Un(Re);return cn(y.get(ot))?!1:oe.fileExists(Re)}function Lr(Re,ot,Dt,Zt,tn){let ln=y.get(ot);if(cn(ln))return;let W=typeof Dt=="object"?Dt.impliedNodeFormat:void 0;if(ln===void 0||tn||zt(ln)||ln.sourceFile.impliedNodeFormat!==W){let j=be(Re,Dt,Zt);if(ln)j?(ln.sourceFile=j,ln.version=j.version,ln.fileWatcher||(ln.fileWatcher=dt(ot,Re,gt,250,B,dl.SourceFile))):(ln.fileWatcher&&ln.fileWatcher.close(),y.set(ot,!1));else if(j){let ce=dt(ot,Re,gt,250,B,dl.SourceFile);y.set(ot,{sourceFile:j,version:j.version,fileWatcher:ce})}else y.set(ot,!1);return j}return ln.sourceFile}function ji(Re){let ot=y.get(Re);ot!==void 0&&(cn(ot)?y.set(Re,{version:!1}):ot.version=!1)}function ii(Re,ot){let Dt=y.get(Re);if(!Dt)return;if(Dt.version)return Dt.version;let Zt=ot(Re);return Zt!==void 0?O9(he,Zt):void 0}function Hi(Re,ot,Dt){let Zt=y.get(Re.resolvedPath);Zt!==void 0&&(cn(Zt)?(S||(S=[])).push(Re.path):Zt.sourceFile===Re&&(Zt.fileWatcher&&Zt.fileWatcher.close(),y.delete(Re.resolvedPath),Dt||_t.removeResolutionsOfFile(Re.path)))}function Ye(Re){e.onWatchStatusChange&&e.onWatchStatusChange(Tc(Re),se,ie||O)}function fn(){return _t.hasChangedAutomaticTypeDirectiveNames()}function An(){return c?(e.clearTimeout(c),c=void 0,!0):!1}function Ot(){if(!e.setTimeout||!e.clearTimeout)return _t.invalidateResolutionsOfFailedLookupLocations();let Re=An();xe(`Scheduling invalidateFailedLookup${Re?", Cancelled earlier one":""}`),c=e.setTimeout(Sn,250,"timerToInvalidateFailedLookupResolutions")}function Sn(){c=void 0,_t.invalidateResolutionsOfFailedLookupLocations()&&Cn()}function Cn(){!e.setTimeout||!e.clearTimeout||(o&&e.clearTimeout(o),xe("Scheduling update"),o=e.setTimeout(Fi,250,"timerToUpdateProgram"))}function Kn(){E.assert(!!D),n=2,Cn()}function Fi(){o=void 0,p=!0,Wi()}function Wi(){var Re,ot,Dt,Zt;switch(n){case 1:(Re=Lu)==null||Re.logStartUpdateProgram("PartialConfigReload"),Ii();break;case 2:(ot=Lu)==null||ot.logStartUpdateProgram("FullConfigReload"),Ki();break;default:(Dt=Lu)==null||Dt.logStartUpdateProgram("SynchronizeProgram"),lt();break}return(Zt=Lu)==null||Zt.logStopUpdateProgram("Done"),ht()}function Ii(){xe("Reloading new file names and options"),E.assert(ie),E.assert(D),n=0,J=f3(ie.configFile.configFileSpecs,cs(Xr(D),w),ie,Se,V),xO(J,cs(D,w),ie.configFile.configFileSpecs,_e,$)&&(H=!0),lt()}function Ki(){E.assert(D),xe(`Reloading config file: ${D}`),n=0,K&&K.clearCache(),na(),x=!0,lt(),yt(),vt(Un(D),ie,B,dl.ExtendedConfigFile)}function na(){E.assert(D),Fs(L8(D,O,Se,g||(g=new Map),z,V))}function Fs(Re){J=Re.fileNames,ie=Re.options,B=Re.watchOptions,Z=Re.projectReferences,ae=Re.wildcardDirectories,_e=Z2(Re).slice(),$=_3(Re.raw),H=!0}function Ce(Re){let ot=Un(Re),Dt=u?.get(ot);if(Dt){if(!Dt.updateLevel)return Dt.parsedCommandLine;if(Dt.parsedCommandLine&&Dt.updateLevel===1&&!e.getParsedCommandLine){xe("Reloading new file names and options"),E.assert(ie);let tn=f3(Dt.parsedCommandLine.options.configFile.configFileSpecs,cs(Xr(Re),w),ie,Se);return Dt.parsedCommandLine={...Dt.parsedCommandLine,fileNames:tn},Dt.updateLevel=void 0,Dt.parsedCommandLine}}xe(`Loading config file: ${Re}`);let Zt=e.getParsedCommandLine?e.getParsedCommandLine(Re):Ue(Re);return Dt?(Dt.parsedCommandLine=Zt,Dt.updateLevel=void 0):(u||(u=new Map)).set(ot,Dt={parsedCommandLine:Zt}),wt(Re,ot,Dt),Zt}function Ue(Re){let ot=Se.onUnRecoverableConfigFileDiagnostic;Se.onUnRecoverableConfigFileDiagnostic=Fa;let Dt=L8(Re,void 0,Se,g||(g=new Map),z);return Se.onUnRecoverableConfigFileDiagnostic=ot,Dt}function it(Re){var ot;let Dt=Un(Re),Zt=u?.get(Dt);Zt&&(u.delete(Dt),Zt.watchedDirectories&&d_(Zt.watchedDirectories,Cf),(ot=Zt.watcher)==null||ot.close(),UU(Dt,f))}function dt(Re,ot,Dt,Zt,tn,ln){return Y(ot,(W,j)=>Dt(W,j,Re),Zt,tn,ln)}function gt(Re,ot,Dt){fe(Re,Dt,ot),ot===2&&y.has(Dt)&&_t.invalidateResolutionOfFile(Dt),ji(Dt),Cn()}function fe(Re,ot,Dt){K&&K.addOrDeleteFile(Re,ot,Dt)}function we(Re){return u?.has(Re)?e6:dt(Re,Re,Be,500,B,dl.MissingFile)}function Be(Re,ot,Dt){fe(Re,Dt,ot),ot===0&&i.has(Dt)&&(i.get(Dt).close(),i.delete(Dt),ji(Dt),Cn())}function yt(){ae?cA(s||(s=new Map),new Map(Object.entries(ae)),G):s&&d_(s,Cf)}function G(Re,ot){return ve(Re,Dt=>{E.assert(D),E.assert(ie);let Zt=Un(Dt);K&&K.addOrDeleteFileOrDirectory(Dt,Zt),ji(Zt),!lA({watchedDirPath:Un(Re),fileOrDirectory:Dt,fileOrDirectoryPath:Zt,configFileName:D,extraFileExtensions:V,options:ie,program:ht()||J,currentDirectory:w,useCaseSensitiveFileNames:C,writeLog:xe,toPath:Un})&&n!==2&&(n=1,Cn())},ot,B,dl.WildcardDirectory)}function vt(Re,ot,Dt,Zt){p9(Re,ot,f||(f=new Map),(tn,ln)=>Y(tn,(W,j)=>{var ce;fe(tn,ln,j),g&&d9(g,ln,Un);let ee=(ce=f.get(ln))==null?void 0:ce.projects;ee?.size&&ee.forEach(ue=>{if(D&&Un(D)===ue)n=2;else{let M=u?.get(ue);M&&(M.updateLevel=2),_t.removeResolutionsFromProjectReferenceRedirects(ue)}Cn()})},2e3,Dt,Zt),Un)}function wt(Re,ot,Dt){var Zt,tn,ln,W,j;Dt.watcher||(Dt.watcher=Y(Re,(ce,ee)=>{fe(Re,ot,ee);let ue=u?.get(ot);ue&&(ue.updateLevel=2),_t.removeResolutionsFromProjectReferenceRedirects(ot),Cn()},2e3,((Zt=Dt.parsedCommandLine)==null?void 0:Zt.watchOptions)||B,dl.ConfigFileOfReferencedProject)),(tn=Dt.parsedCommandLine)!=null&&tn.wildcardDirectories?cA(Dt.watchedDirectories||(Dt.watchedDirectories=new Map),new Map(Object.entries((ln=Dt.parsedCommandLine)==null?void 0:ln.wildcardDirectories)),(ce,ee)=>{var ue;return ve(ce,M=>{let De=Un(M);K&&K.addOrDeleteFileOrDirectory(M,De),ji(De);let qe=u?.get(ot);qe?.parsedCommandLine&&(lA({watchedDirPath:Un(ce),fileOrDirectory:M,fileOrDirectoryPath:De,configFileName:Re,options:qe.parsedCommandLine.options,program:qe.parsedCommandLine.fileNames,currentDirectory:w,useCaseSensitiveFileNames:C,writeLog:xe,toPath:Un})||qe.updateLevel!==2&&(qe.updateLevel=1,Cn()))},ee,((ue=Dt.parsedCommandLine)==null?void 0:ue.watchOptions)||B,dl.WildcardDirectoryOfReferencedProject)}):Dt.watchedDirectories&&(d_(Dt.watchedDirectories,Cf),Dt.watchedDirectories=void 0),vt(ot,(W=Dt.parsedCommandLine)==null?void 0:W.options,((j=Dt.parsedCommandLine)==null?void 0:j.watchOptions)||B,dl.ExtendedConfigOfReferencedProject)}}var ERe=ze({"src/compiler/watchPublic.ts"(){"use strict";Rs()}});function Lq(e){return nc(e,".json")?e:Qr(e,"tsconfig.json")}var Mq,DRe=ze({"src/compiler/tsbuild.ts"(){"use strict";Rs(),Mq=(e=>(e[e.Unbuildable=0]="Unbuildable",e[e.UpToDate=1]="UpToDate",e[e.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",e[e.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",e[e.OutputMissing=4]="OutputMissing",e[e.ErrorReadingFile=5]="ErrorReadingFile",e[e.OutOfDateWithSelf=6]="OutOfDateWithSelf",e[e.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",e[e.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",e[e.OutOfDateOptions=9]="OutOfDateOptions",e[e.OutOfDateRoots=10]="OutOfDateRoots",e[e.UpstreamOutOfDate=11]="UpstreamOutOfDate",e[e.UpstreamBlocked=12]="UpstreamBlocked",e[e.ComputingUpstream=13]="ComputingUpstream",e[e.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",e[e.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",e[e.ContainerOnly=16]="ContainerOnly",e[e.ForceBuild=17]="ForceBuild",e))(Mq||{})}});function PRe(e,t,n){let i=e.get(t),s;return i||(s=n(),e.set(t,s)),i||s}function Aae(e,t){return PRe(e,t,()=>new Map)}function hA(e){return e.now?e.now():new Date}function _T(e){return!!e&&!!e.buildOrder}function j9(e){return _T(e)?e.buildOrder:e}function Nae(e,t){return n=>{let i=t?`[${pb(gA(e),"\x1B[90m")}] `:`${gA(e)} - `;i+=`${Qd(n.messageText,e.newLine)}${e.newLine+e.newLine}`,e.write(i)}}function X2e(e,t,n,i){let s=Fq(e,t);return s.getModifiedTime=e.getModifiedTime?o=>e.getModifiedTime(o):Zy,s.setModifiedTime=e.setModifiedTime?(o,c)=>e.setModifiedTime(o,c):Fa,s.deleteFile=e.deleteFile?o=>e.deleteFile(o):Fa,s.reportDiagnostic=n||mA(e),s.reportSolutionBuilderStatus=i||Nae(e),s.now=Js(e,e.now),s}function Q2e(e=Hl,t,n,i,s){let o=X2e(e,t,n,i);return o.reportErrorSummary=s,o}function Y2e(e=Hl,t,n,i,s){let o=X2e(e,t,n,i),c=Aq(e,s);return Oj(o,c),o}function wRe(e){let t={};return V8.forEach(n=>{so(e,n.name)&&(t[n.name]=e[n.name])}),t}function Z2e(e,t,n){return xSe(!1,e,t,n)}function K2e(e,t,n,i){return xSe(!0,e,t,n,i)}function ARe(e,t,n,i,s){let o=t,c=t,u=wRe(i),f=Iq(o,()=>w.projectCompilerOptions);L9(f),f.getParsedCommandLine=D=>fT(w,D,Yd(w,D)),f.resolveModuleNameLiterals=Js(o,o.resolveModuleNameLiterals),f.resolveTypeReferenceDirectiveReferences=Js(o,o.resolveTypeReferenceDirectiveReferences),f.resolveLibrary=Js(o,o.resolveLibrary),f.resolveModuleNames=Js(o,o.resolveModuleNames),f.resolveTypeReferenceDirectives=Js(o,o.resolveTypeReferenceDirectives),f.getModuleResolutionCache=Js(o,o.getModuleResolutionCache);let g,p;!f.resolveModuleNameLiterals&&!f.resolveModuleNames&&(g=VC(f.getCurrentDirectory(),f.getCanonicalFileName),f.resolveModuleNameLiterals=(D,O,z,V,X)=>fA(D,O,z,V,X,o,g,nq),f.getModuleResolutionCache=()=>g),!f.resolveTypeReferenceDirectiveReferences&&!f.resolveTypeReferenceDirectives&&(p=OO(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache(),g?.optionsToRedirectsKey),f.resolveTypeReferenceDirectiveReferences=(D,O,z,V,X)=>fA(D,O,z,V,X,o,p,h9));let y;f.resolveLibrary||(y=VC(f.getCurrentDirectory(),f.getCanonicalFileName,void 0,g?.getPackageJsonInfoCache()),f.resolveLibrary=(D,O,z)=>LO(D,O,z,o,y)),f.getBuildInfo=(D,O)=>pSe(w,D,Yd(w,O),void 0);let{watchFile:S,watchDirectory:x,writeLog:C}=Nq(c,i),w={host:o,hostWithWatch:c,parseConfigFileHost:x9(o),write:Js(o,o.trace),options:i,baseCompilerOptions:u,rootNames:n,baseWatchOptions:s,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:f,moduleResolutionCache:g,typeReferenceDirectiveResolutionCache:p,libraryResolutionCache:y,buildOrder:void 0,readFileWithCache:D=>o.readFile(D),projectCompilerOptions:u,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:e,watch:e,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:S,watchDirectory:x,writeLog:C};return w}function af(e,t){return xo(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function Yd(e,t){let{resolvedConfigFilePaths:n}=e,i=n.get(t);if(i!==void 0)return i;let s=af(e,t);return n.set(t,s),s}function eSe(e){return!!e.options}function NRe(e,t){let n=e.configFileCache.get(t);return n&&eSe(n)?n:void 0}function fT(e,t,n){let{configFileCache:i}=e,s=i.get(n);if(s)return eSe(s)?s:void 0;Fo("SolutionBuilder::beforeConfigFileParsing");let o,{parseConfigFileHost:c,baseCompilerOptions:u,baseWatchOptions:f,extendedConfigCache:g,host:p}=e,y;return p.getParsedCommandLine?(y=p.getParsedCommandLine(t),y||(o=Tc(d.File_0_not_found,t))):(c.onUnRecoverableConfigFileDiagnostic=S=>o=S,y=L8(t,u,c,g,f),c.onUnRecoverableConfigFileDiagnostic=Fa),i.set(n,y||o),Fo("SolutionBuilder::afterConfigFileParsing"),gf("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),y}function I3(e,t){return Lq(V0(e.compilerHost.getCurrentDirectory(),t))}function tSe(e,t){let n=new Map,i=new Map,s=[],o,c;for(let f of t)u(f);return c?{buildOrder:o||Ve,circularDiagnostics:c}:o||Ve;function u(f,g){let p=Yd(e,f);if(i.has(p))return;if(n.has(p)){g||(c||(c=[])).push(Tc(d.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,s.join(`\r -`)));return}n.set(p,!0),s.push(f);let y=fT(e,f,p);if(y&&y.projectReferences)for(let S of y.projectReferences){let x=I3(e,S.path);u(x,g||S.circular)}s.pop(),i.set(p,!0),(o||(o=[])).push(f)}}function B9(e){return e.buildOrder||IRe(e)}function IRe(e){let t=tSe(e,e.rootNames.map(s=>I3(e,s)));e.resolvedConfigFilePaths.clear();let n=new Map(j9(t).map(s=>[Yd(e,s),!0])),i={onDeleteValue:Fa};return sh(e.configFileCache,n,i),sh(e.projectStatus,n,i),sh(e.builderPrograms,n,i),sh(e.diagnostics,n,i),sh(e.projectPendingBuild,n,i),sh(e.projectErrorsReported,n,i),sh(e.buildInfoCache,n,i),sh(e.outputTimeStamps,n,i),e.watch&&(sh(e.allWatchedConfigFiles,n,{onDeleteValue:fd}),e.allWatchedExtendedConfigFiles.forEach(s=>{s.projects.forEach(o=>{n.has(o)||s.projects.delete(o)}),s.close()}),sh(e.allWatchedWildcardDirectories,n,{onDeleteValue:s=>s.forEach(Cf)}),sh(e.allWatchedInputFiles,n,{onDeleteValue:s=>s.forEach(fd)}),sh(e.allWatchedPackageJsonFiles,n,{onDeleteValue:s=>s.forEach(fd)})),e.buildOrder=t}function nSe(e,t,n){let i=t&&I3(e,t),s=B9(e);if(_T(s))return s;if(i){let c=Yd(e,i);if(Qo(s,f=>Yd(e,f)===c)===-1)return}let o=i?tSe(e,[i]):s;return E.assert(!_T(o)),E.assert(!n||i!==void 0),E.assert(!n||o[o.length-1]===i),n?o.slice(0,o.length-1):o}function rSe(e){e.cache&&Iae(e);let{compilerHost:t,host:n}=e,i=e.readFileWithCache,s=t.getSourceFile,{originalReadFile:o,originalFileExists:c,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,getSourceFileWithCache:p,readFileWithCache:y}=_A(n,S=>af(e,S),(...S)=>s.call(t,...S));e.readFileWithCache=y,t.getSourceFile=p,e.cache={originalReadFile:o,originalFileExists:c,originalDirectoryExists:u,originalCreateDirectory:f,originalWriteFile:g,originalReadFileWithCache:i,originalGetSourceFile:s}}function Iae(e){if(!e.cache)return;let{cache:t,host:n,compilerHost:i,extendedConfigCache:s,moduleResolutionCache:o,typeReferenceDirectiveResolutionCache:c,libraryResolutionCache:u}=e;n.readFile=t.originalReadFile,n.fileExists=t.originalFileExists,n.directoryExists=t.originalDirectoryExists,n.createDirectory=t.originalCreateDirectory,n.writeFile=t.originalWriteFile,i.getSourceFile=t.originalGetSourceFile,e.readFileWithCache=t.originalReadFileWithCache,s.clear(),o?.clear(),c?.clear(),u?.clear(),e.cache=void 0}function iSe(e,t){e.projectStatus.delete(t),e.diagnostics.delete(t)}function sSe({projectPendingBuild:e},t,n){let i=e.get(t);(i===void 0||ie.projectPendingBuild.set(Yd(e,i),0)),t&&t.throwIfCancellationRequested()}function oSe(e,t){return e.projectPendingBuild.delete(t),e.diagnostics.has(t)?1:0}function FRe(e,t,n,i,s){let o=!0;return{kind:2,project:t,projectPath:n,buildOrder:s,getCompilerOptions:()=>i.options,getCurrentDirectory:()=>e.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{mSe(e,i,n),o=!1},done:()=>(o&&mSe(e,i,n),Fo("SolutionBuilder::Timestamps only updates"),oSe(e,n))}}function cSe(e,t,n,i,s,o,c){let u=e===0?0:4,f,g,p;return e===0?{kind:e,project:n,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>S(No),getProgram:()=>S(B=>B.getProgramOrUndefined()),getSourceFile:B=>S(Z=>Z.getSourceFile(B)),getSourceFiles:()=>x(B=>B.getSourceFiles()),getOptionsDiagnostics:B=>x(Z=>Z.getOptionsDiagnostics(B)),getGlobalDiagnostics:B=>x(Z=>Z.getGlobalDiagnostics(B)),getConfigFileParsingDiagnostics:()=>x(B=>B.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(B,Z)=>x(ae=>ae.getSyntacticDiagnostics(B,Z)),getAllDependencies:B=>x(Z=>Z.getAllDependencies(B)),getSemanticDiagnostics:(B,Z)=>x(ae=>ae.getSemanticDiagnostics(B,Z)),getSemanticDiagnosticsOfNextAffectedFile:(B,Z)=>S(ae=>ae.getSemanticDiagnosticsOfNextAffectedFile&&ae.getSemanticDiagnosticsOfNextAffectedFile(B,Z)),emit:(B,Z,ae,_e,$)=>{if(B||_e)return S(H=>{var K,oe;return H.emit(B,Z,ae,_e,$||((oe=(K=t.host).getCustomTransformers)==null?void 0:oe.call(K,n)))});if(ie(2,ae),u===5)return V(Z,ae);if(u===3)return z(Z,ae,$)},done:y}:{kind:e,project:n,projectPath:i,buildOrder:c,getCompilerOptions:()=>o.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),emit:(B,Z)=>u!==4?p:J(B,Z),done:y};function y(B,Z,ae){return ie(8,B,Z,ae),Fo(e===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),oSe(t,i)}function S(B){return ie(0),f&&B(f)}function x(B){return S(B)||Ve}function C(){var B,Z;if(E.assert(f===void 0),t.options.dry){e_(t,d.A_non_dry_build_would_build_project_0,n),g=1,u=7;return}if(t.options.verbose&&e_(t,d.Building_project_0,n),o.fileNames.length===0){F3(t,i,Z2(o)),g=0,u=7;return}let{host:ae,compilerHost:_e}=t;t.projectCompilerOptions=o.options,(B=t.moduleResolutionCache)==null||B.update(o.options),(Z=t.typeReferenceDirectiveResolutionCache)==null||Z.update(o.options),f=ae.createProgram(o.fileNames,o.options,_e,LRe(t,i,o),Z2(o),o.projectReferences),t.watch&&(t.lastCachedPackageJsonLookups.set(i,t.moduleResolutionCache&&Kt(t.moduleResolutionCache.getPackageJsonInfoCache().entries(),([$,H])=>[t.host.realpath&&H?af(t,t.host.realpath($)):$,H])),t.builderPrograms.set(i,f)),u++}function w(B,Z,ae){B.length?{buildResult:g,step:u}=Lae(t,i,f,o,B,Z,ae):u++}function D(B){E.assertIsDefined(f),w([...f.getConfigFileParsingDiagnostics(),...f.getOptionsDiagnostics(B),...f.getGlobalDiagnostics(B),...f.getSyntacticDiagnostics(void 0,B)],8,"Syntactic")}function O(B){w(E.checkDefined(f).getSemanticDiagnostics(void 0,B),16,"Semantic")}function z(B,Z,ae){var _e,$,H;E.assertIsDefined(f),E.assert(u===3);let K=f.saveEmitState(),oe,Se=Oe=>(oe||(oe=[])).push(Oe),se=[],{emitResult:Y}=F9(f,Se,void 0,void 0,(Oe,Qe,at,ht,Je,lt)=>se.push({name:Oe,text:Qe,writeByteOrderMark:at,data:lt}),Z,!1,ae||(($=(_e=t.host).getCustomTransformers)==null?void 0:$.call(_e,n)));if(oe)return f.restoreEmitState(K),{buildResult:g,step:u}=Lae(t,i,f,o,oe,32,"Declaration file"),{emitSkipped:!0,diagnostics:Y.diagnostics};let{host:ve,compilerHost:xe}=t,Me=(H=f.hasChangedEmitSignature)!=null&&H.call(f)?0:2,ke=iC(),he=new Map,be=f.getCompilerOptions(),_t=Ww(be),mt,me;return se.forEach(({name:Oe,text:Qe,writeByteOrderMark:at,data:ht})=>{let Je=af(t,Oe);he.set(af(t,Oe),Oe),ht?.buildInfo&&Rae(t,ht.buildInfo,i,be,Me);let lt=ht?.differsOnlyInMap?_x(t.host,Oe):void 0;mE(B?{writeFile:B}:xe,ke,Oe,Qe,at),ht?.differsOnlyInMap?t.host.setModifiedTime(Oe,lt):!_t&&t.watch&&(mt||(mt=Mae(t,i))).set(Je,me||(me=hA(t.host)))}),X(ke,he,se.length?se[0].name:zU(o,!ve.useCaseSensitiveFileNames()),Me),Y}function V(B,Z){E.assertIsDefined(f),E.assert(u===5);let ae=f.emitBuildInfo((_e,$,H,K,oe,Se)=>{Se?.buildInfo&&Rae(t,Se.buildInfo,i,f.getCompilerOptions(),2),B?B(_e,$,H,K,oe,Se):t.compilerHost.writeFile(_e,$,H,K,oe,Se)},Z);return ae.diagnostics.length&&(z9(t,ae.diagnostics),t.diagnostics.set(i,[...t.diagnostics.get(i),...ae.diagnostics]),g=64&g),ae.emittedFiles&&t.write&&ae.emittedFiles.forEach(_e=>_Se(t,o,_e)),Oae(t,f,o),u=7,ae}function X(B,Z,ae,_e){let $=B.getDiagnostics();return $.length?({buildResult:g,step:u}=Lae(t,i,f,o,$,64,"Emit"),$):(t.write&&Z.forEach(H=>_Se(t,o,H)),dSe(t,o,i,d.Updating_unchanged_output_timestamps_of_project_0,Z),t.diagnostics.delete(i),t.projectStatus.set(i,{type:1,oldestOutputFileName:ae}),Oae(t,f,o),u=7,g=_e,$)}function J(B,Z){var ae,_e,$,H;if(E.assert(e===1),t.options.dry){e_(t,d.A_non_dry_build_would_update_output_of_project_0,n),g=1,u=7;return}t.options.verbose&&e_(t,d.Updating_output_of_project_0,n);let{compilerHost:K}=t;t.projectCompilerOptions=o.options,(_e=(ae=t.host).beforeEmitBundle)==null||_e.call(ae,o);let oe=Use(o,K,Me=>{let ke=I3(t,Me.path);return fT(t,ke,Yd(t,ke))},Z||((H=($=t.host).getCustomTransformers)==null?void 0:H.call($,n)));if(os(oe))return e_(t,d.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,n,zl(t,oe)),u=6,p=cSe(0,t,n,i,s,o,c);E.assert(!!oe.length);let Se=iC(),se=new Map,Y=2,ve=t.buildInfoCache.get(i).buildInfo||void 0;return oe.forEach(({name:Me,text:ke,writeByteOrderMark:he,data:be})=>{var _t,mt;se.set(af(t,Me),Me),be?.buildInfo&&(((_t=be.buildInfo.program)==null?void 0:_t.outSignature)!==((mt=ve?.program)==null?void 0:mt.outSignature)&&(Y&=-3),Rae(t,be.buildInfo,i,o.options,Y)),mE(B?{writeFile:B}:K,Se,Me,ke,he)}),{emitSkipped:!1,diagnostics:X(Se,se,oe[0].name,Y)}}function ie(B,Z,ae,_e){for(;u<=B&&u<8;){let $=u;switch(u){case 0:C();break;case 1:D(Z);break;case 2:O(Z);break;case 3:z(ae,Z,_e);break;case 5:V(ae,Z);break;case 4:J(ae,_e);break;case 6:E.checkDefined(p).done(Z,ae,_e),u=8;break;case 7:BRe(t,n,i,s,o,c,E.checkDefined(g)),u++;break;case 8:default:}E.assert(u>$)}}}function ORe({options:e},t,n){return t.type!==3||e.force?!0:n.fileNames.length===0||!!Z2(n).length||!Ww(n.options)}function lSe(e,t,n){if(!e.projectPendingBuild.size||_T(t))return;let{options:i,projectPendingBuild:s}=e;for(let o=0;o{let x=E.checkDefined(e.filesWatched.get(u));E.assert(Rq(x)),x.modifiedTime=S,x.callbacks.forEach(C=>C(p,y,S))},i,s,o,c);e.filesWatched.set(u,{callbacks:[n],watcher:g,modifiedTime:f})}return{close:()=>{let g=E.checkDefined(e.filesWatched.get(u));E.assert(Rq(g)),g.callbacks.length===1?(e.filesWatched.delete(u),Cf(g)):o2(g.callbacks,n)}}}function Mae(e,t){if(!e.watch)return;let n=e.outputTimeStamps.get(t);return n||e.outputTimeStamps.set(t,n=new Map),n}function Rae(e,t,n,i,s){let o=i0(i),c=jae(e,o,n),u=hA(e.host);c?(c.buildInfo=t,c.modifiedTime=u,s&2||(c.latestChangedDtsTime=u)):e.buildInfoCache.set(n,{path:af(e,o),buildInfo:t,modifiedTime:u,latestChangedDtsTime:s&2?void 0:u})}function jae(e,t,n){let i=af(e,t),s=e.buildInfoCache.get(n);return s?.path===i?s:void 0}function pSe(e,t,n,i){let s=af(e,t),o=e.buildInfoCache.get(n);if(o!==void 0&&o.path===s)return o.buildInfo||void 0;let c=e.readFileWithCache(t),u=c?u9(t,c):void 0;return e.buildInfoCache.set(n,{path:s,buildInfo:u||!1,modifiedTime:i||cg}),u}function Bae(e,t,n,i){let s=fSe(e,t);if(nw&&(C=ae,w=_e),S&&O.add(af(e,ae))}if(S){x||(x=gq(S,f,u));for(let ae of x.roots)if(!O.has(ae))return{type:10,buildInfoFile:f,inputFile:ae}}if(!f){let ae=c9(t,!u.useCaseSensitiveFileNames()),_e=Mae(e,n);for(let $ of ae){let H=af(e,$),K=_e?.get(H);if(K||(K=_x(e.host,$),_e?.set(H,K)),K===cg)return{type:4,missingOutputFileName:$};if(KBae(e,ae,p,g));if(B)return B;let Z=Qt(e.lastCachedPackageJsonLookups.get(n)||Ve,([ae])=>Bae(e,ae,p,g));return Z||(X&&V?{type:3,outOfDateOutputFileName:g,newerProjectName:J}:{type:V?2:D?15:1,newestInputFileTime:w,newestInputFileName:C,oldestOutputFileName:g})}function RRe(e,t,n){return e.buildInfoCache.get(n).path===t.path}function Jae(e,t,n){if(t===void 0)return{type:0,reason:"File deleted mid-build"};let i=e.projectStatus.get(n);if(i!==void 0)return i;Fo("SolutionBuilder::beforeUpToDateCheck");let s=MRe(e,t,n);return Fo("SolutionBuilder::afterUpToDateCheck"),gf("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),e.projectStatus.set(n,s),s}function dSe(e,t,n,i,s){if(t.options.noEmit)return;let o,c=i0(t.options);if(c){s?.has(af(e,c))||(e.options.verbose&&e_(e,i,t.options.configFilePath),e.host.setModifiedTime(c,o=hA(e.host)),jae(e,c,n).modifiedTime=o),e.outputTimeStamps.delete(n);return}let{host:u}=e,f=c9(t,!u.useCaseSensitiveFileNames()),g=Mae(e,n),p=g?new Set:void 0;if(!s||f.length!==s.size){let y=!!e.options.verbose;for(let S of f){let x=af(e,S);s?.has(x)||(y&&(y=!1,e_(e,i,t.options.configFilePath)),u.setModifiedTime(S,o||(o=hA(e.host))),g&&(g.set(x,o),p.add(x)))}}g?.forEach((y,S)=>{!s?.has(S)&&!p.has(S)&&g.delete(S)})}function jRe(e,t,n){if(!t.composite)return;let i=E.checkDefined(e.buildInfoCache.get(n));if(i.latestChangedDtsTime!==void 0)return i.latestChangedDtsTime||void 0;let s=i.buildInfo&&i.buildInfo.program&&i.buildInfo.program.latestChangedDtsFile?e.host.getModifiedTime(cs(i.buildInfo.program.latestChangedDtsFile,Xr(i.path))):void 0;return i.latestChangedDtsTime=s||!1,s}function mSe(e,t,n){if(e.options.dry)return e_(e,d.A_non_dry_build_would_update_timestamps_for_output_of_project_0,t.options.configFilePath);dSe(e,t,n,d.Updating_output_timestamps_of_project_0),e.projectStatus.set(n,{type:1,oldestOutputFileName:zU(t,!e.host.useCaseSensitiveFileNames())})}function BRe(e,t,n,i,s,o,c){if(!(c&124)&&s.options.composite)for(let u=i+1;ue.diagnostics.has(Yd(e,g)))?f?2:1:0}function hSe(e,t,n){Fo("SolutionBuilder::beforeClean");let i=zRe(e,t,n);return Fo("SolutionBuilder::afterClean"),gf("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),i}function zRe(e,t,n){let i=nSe(e,t,n);if(!i)return 3;if(_T(i))return z9(e,i.circularDiagnostics),4;let{options:s,host:o}=e,c=s.dry?[]:void 0;for(let u of i){let f=Yd(e,u),g=fT(e,u,f);if(g===void 0){TSe(e,f);continue}let p=c9(g,!o.useCaseSensitiveFileNames());if(!p.length)continue;let y=new Set(g.fileNames.map(S=>af(e,S)));for(let S of p)y.has(af(e,S))||o.fileExists(S)&&(c?c.push(S):(o.deleteFile(S),zae(e,f,0)))}return c&&e_(e,d.A_non_dry_build_would_delete_the_following_files_Colon_0,c.map(u=>`\r - * ${u}`).join("")),0}function zae(e,t,n){e.host.getParsedCommandLine&&n===1&&(n=2),n===2&&(e.configFileCache.delete(t),e.buildOrder=void 0),e.needsSummary=!0,iSe(e,t),sSe(e,t,n),rSe(e)}function J9(e,t,n){e.reportFileChangeDetected=!0,zae(e,t,n),ySe(e,250,!0)}function ySe(e,t,n){let{hostWithWatch:i}=e;!i.setTimeout||!i.clearTimeout||(e.timerToBuildInvalidatedProject&&i.clearTimeout(e.timerToBuildInvalidatedProject),e.timerToBuildInvalidatedProject=i.setTimeout(VRe,t,"timerToBuildInvalidatedProject",e,n))}function VRe(e,t,n){Fo("SolutionBuilder::beforeBuild");let i=WRe(t,n);Fo("SolutionBuilder::afterBuild"),gf("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),i&&kSe(t,i)}function WRe(e,t){e.timerToBuildInvalidatedProject=void 0,e.reportFileChangeDetected&&(e.reportFileChangeDetected=!1,e.projectErrorsReported.clear(),Uae(e,d.File_change_detected_Starting_incremental_compilation));let n=0,i=B9(e),s=Fae(e,i,!1);if(s)for(s.done(),n++;e.projectPendingBuild.size;){if(e.timerToBuildInvalidatedProject)return;let o=lSe(e,i,!1);if(!o)break;if(o.kind!==2&&(t||n===5)){ySe(e,100,!1);return}uSe(e,o,i).done(),o.kind!==2&&n++}return Iae(e),i}function vSe(e,t,n,i){!e.watch||e.allWatchedConfigFiles.has(n)||e.allWatchedConfigFiles.set(n,jq(e,t,()=>J9(e,n,2),2e3,i?.watchOptions,dl.ConfigFile,t))}function bSe(e,t,n){p9(t,n?.options,e.allWatchedExtendedConfigFiles,(i,s)=>jq(e,i,()=>{var o;return(o=e.allWatchedExtendedConfigFiles.get(s))==null?void 0:o.projects.forEach(c=>J9(e,c,2))},2e3,n?.watchOptions,dl.ExtendedConfigFile),i=>af(e,i))}function SSe(e,t,n,i){e.watch&&cA(Aae(e.allWatchedWildcardDirectories,n),new Map(Object.entries(i.wildcardDirectories)),(s,o)=>e.watchDirectory(s,c=>{var u;lA({watchedDirPath:af(e,s),fileOrDirectory:c,fileOrDirectoryPath:af(e,c),configFileName:t,currentDirectory:e.compilerHost.getCurrentDirectory(),options:i.options,program:e.builderPrograms.get(n)||((u=NRe(e,n))==null?void 0:u.fileNames),useCaseSensitiveFileNames:e.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:f=>e.writeLog(f),toPath:f=>af(e,f)})||J9(e,n,1)},o,i?.watchOptions,dl.WildcardDirectory,t))}function Vae(e,t,n,i){e.watch&&lC(Aae(e.allWatchedInputFiles,n),jh(i.fileNames,s=>af(e,s)),{createNewValue:(s,o)=>jq(e,o,()=>J9(e,n,0),250,i?.watchOptions,dl.SourceFile,t),onDeleteValue:fd})}function Wae(e,t,n,i){!e.watch||!e.lastCachedPackageJsonLookups||lC(Aae(e.allWatchedPackageJsonFiles,n),new Map(e.lastCachedPackageJsonLookups.get(n)),{createNewValue:(s,o)=>jq(e,s,()=>J9(e,n,0),2e3,i?.watchOptions,dl.PackageJson,t),onDeleteValue:fd})}function URe(e,t){if(e.watchAllProjectsPending){Fo("SolutionBuilder::beforeWatcherCreation"),e.watchAllProjectsPending=!1;for(let n of j9(t)){let i=Yd(e,n),s=fT(e,n,i);vSe(e,n,i,s),bSe(e,i,s),s&&(SSe(e,n,i,s),Vae(e,n,i,s),Wae(e,n,i,s))}Fo("SolutionBuilder::afterWatcherCreation"),gf("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function qRe(e){d_(e.allWatchedConfigFiles,fd),d_(e.allWatchedExtendedConfigFiles,Cf),d_(e.allWatchedWildcardDirectories,t=>d_(t,Cf)),d_(e.allWatchedInputFiles,t=>d_(t,fd)),d_(e.allWatchedPackageJsonFiles,t=>d_(t,fd))}function xSe(e,t,n,i,s){let o=ARe(e,t,n,i,s);return{build:(c,u,f,g)=>gSe(o,c,u,f,g),clean:c=>hSe(o,c),buildReferences:(c,u,f,g)=>gSe(o,c,u,f,g,!0),cleanReferences:c=>hSe(o,c,!0),getNextInvalidatedProject:c=>(aSe(o,c),Fae(o,B9(o),!1)),getBuildOrder:()=>B9(o),getUpToDateStatusOfProject:c=>{let u=I3(o,c),f=Yd(o,u);return Jae(o,fT(o,u,f),f)},invalidateProject:(c,u)=>zae(o,c,u||0),close:()=>qRe(o)}}function zl(e,t){return L4(t,e.compilerHost.getCurrentDirectory(),e.compilerHost.getCanonicalFileName)}function e_(e,t,...n){e.host.reportSolutionBuilderStatus(Tc(t,...n))}function Uae(e,t,...n){var i,s;(s=(i=e.hostWithWatch).onWatchStatusChange)==null||s.call(i,Tc(t,...n),e.host.getNewLine(),e.baseCompilerOptions)}function z9({host:e},t){t.forEach(n=>e.reportDiagnostic(n))}function F3(e,t,n){z9(e,n),e.projectErrorsReported.set(t,!0),n.length&&e.diagnostics.set(t,n)}function TSe(e,t){F3(e,t,[e.configFileCache.get(t)])}function kSe(e,t){if(!e.needsSummary)return;e.needsSummary=!1;let n=e.watch||!!e.host.reportErrorSummary,{diagnostics:i}=e,s=0,o=[];_T(t)?(CSe(e,t.buildOrder),z9(e,t.circularDiagnostics),n&&(s+=N9(t.circularDiagnostics)),n&&(o=[...o,...I9(t.circularDiagnostics)])):(t.forEach(c=>{let u=Yd(e,c);e.projectErrorsReported.has(u)||z9(e,i.get(u)||Ve)}),n&&i.forEach(c=>s+=N9(c)),n&&i.forEach(c=>[...o,...I9(c)])),e.watch?Uae(e,Tq(s),s):e.host.reportErrorSummary&&e.host.reportErrorSummary(s,o)}function CSe(e,t){e.options.verbose&&e_(e,d.Projects_in_this_build_Colon_0,t.map(n=>`\r - * `+zl(e,n)).join(""))}function HRe(e,t,n){switch(n.type){case 6:return e_(e,d.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,zl(e,t),zl(e,n.outOfDateOutputFileName),zl(e,n.newerInputFileName));case 7:return e_(e,d.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,zl(e,t),zl(e,n.outOfDateOutputFileName),zl(e,n.newerProjectName));case 4:return e_(e,d.Project_0_is_out_of_date_because_output_file_1_does_not_exist,zl(e,t),zl(e,n.missingOutputFileName));case 5:return e_(e,d.Project_0_is_out_of_date_because_there_was_error_reading_file_1,zl(e,t),zl(e,n.fileName));case 8:return e_(e,d.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,zl(e,t),zl(e,n.buildInfoFile));case 9:return e_(e,d.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,zl(e,t),zl(e,n.buildInfoFile));case 10:return e_(e,d.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,zl(e,t),zl(e,n.buildInfoFile),zl(e,n.inputFile));case 1:if(n.newestInputFileTime!==void 0)return e_(e,d.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,zl(e,t),zl(e,n.newestInputFileName||""),zl(e,n.oldestOutputFileName||""));break;case 3:return e_(e,d.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,zl(e,t),zl(e,n.newerProjectName));case 2:return e_(e,d.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,zl(e,t));case 15:return e_(e,d.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,zl(e,t));case 11:return e_(e,d.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,zl(e,t),zl(e,n.upstreamProjectName));case 12:return e_(e,n.upstreamProjectBlocked?d.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:d.Project_0_can_t_be_built_because_its_dependency_1_has_errors,zl(e,t),zl(e,n.upstreamProjectName));case 0:return e_(e,d.Failed_to_parse_file_0_Colon_1,zl(e,t),n.reason);case 14:return e_(e,d.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,zl(e,t),n.version,ps);case 17:return e_(e,d.Project_0_is_being_forcibly_rebuilt,zl(e,t));case 16:case 13:break;default:}}function Bq(e,t,n){e.options.verbose&&HRe(e,t,n)}var ESe,DSe,Jq,GRe=ze({"src/compiler/tsbuildPublic.ts"(){"use strict";Rs(),u2(),ESe=new Date(-864e13),DSe=new Date(864e13),Jq=(e=>(e[e.Build=0]="Build",e[e.UpdateBundle=1]="UpdateBundle",e[e.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",e))(Jq||{})}}),Rs=ze({"src/compiler/_namespaces/ts.ts"(){"use strict";bo(),t5e(),n5e(),f5e(),m5e(),g5e(),D5e(),Hhe(),M5e(),z5e(),V5e(),G5e(),K5e(),YFe(),ZFe(),KFe(),eOe(),lOe(),uOe(),_Oe(),fOe(),BOe(),JOe(),QOe(),d9e(),z9e(),G9e(),$9e(),sLe(),_Le(),vLe(),ELe(),BLe(),JLe(),XLe(),QLe(),YLe(),iMe(),sMe(),aMe(),oMe(),cMe(),lMe(),uMe(),_Me(),fMe(),mMe(),gMe(),hMe(),yMe(),vMe(),SMe(),xMe(),TMe(),kMe(),CMe(),EMe(),IMe(),jMe(),$Me(),QMe(),eRe(),tRe(),nRe(),yRe(),vRe(),xRe(),CRe(),ERe(),DRe(),GRe(),Gie(),u2()}});function PSe(e){return Hl.args.includes(e)}function wSe(e){let t=Hl.args.indexOf(e);return t>=0&&t{e.GlobalCacheLocation="--globalTypingsCacheLocation",e.LogFile="--logFile",e.EnableTelemetry="--enableTelemetry",e.TypingSafeListLocation="--typingSafeListLocation",e.TypesMapLocation="--typesMapLocation",e.NpmLocation="--npmLocation",e.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(Wq||(Wq={})),$ae=` - `}}),XRe=ze({"src/jsTyping/types.ts"(){"use strict"}}),U9=ze({"src/jsTyping/_namespaces/ts.server.ts"(){"use strict";$Re(),XRe()}});function NSe(e,t){return new zp(jI(t,`ts${Qi}`)||jI(t,"latest")).compareTo(e.version)<=0}function ISe(e){return Kae.has(e)?"node":e}function QRe(e,t){let n=M8(t,i=>e.readFile(i));return new Map(Object.entries(n.config))}function YRe(e,t){var n;let i=M8(t,s=>e.readFile(s));if((n=i.config)!=null&&n.simpleMap)return new Map(Object.entries(i.config.simpleMap))}function ZRe(e,t,n,i,s,o,c,u,f,g){if(!c||!c.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};let p=new Map;n=Ri(n,X=>{let J=Ys(X);if(Xv(J))return J});let y=[];c.include&&O(c.include,"Explicitly included types");let S=c.exclude||[];if(!g.types){let X=new Set(n.map(Xr));X.add(i),X.forEach(J=>{z(J,"bower.json","bower_components",y),z(J,"package.json","node_modules",y)})}if(c.disableFilenameBasedTypeAcquisition||V(n),u){let X=ix(u.map(ISe),ux,Ou);O(X,"Inferred typings from unresolved imports")}for(let X of S)p.delete(X)&&t&&t(`Typing for ${X} is in exclude list, will be ignored.`);o.forEach((X,J)=>{let ie=f.get(J);p.get(J)===!1&&ie!==void 0&&NSe(X,ie)&&p.set(J,X.typingLocation)});let x=[],C=[];p.forEach((X,J)=>{X?C.push(X):x.push(J)});let w={cachedTypingPaths:C,newTypingNames:x,filesToWatch:y};return t&&t(`Finished typings discovery:${n6(w)}`),w;function D(X){p.has(X)||p.set(X,!1)}function O(X,J){t&&t(`${J}: ${JSON.stringify(X)}`),Qt(X,D)}function z(X,J,ie,B){let Z=Qr(X,J),ae,_e;e.fileExists(Z)&&(B.push(Z),ae=M8(Z,oe=>e.readFile(oe)).config,_e=oa([ae.dependencies,ae.devDependencies,ae.optionalDependencies,ae.peerDependencies],Qg),O(_e,`Typing names in '${Z}' dependencies`));let $=Qr(X,ie);if(B.push($),!e.directoryExists($))return;let H=[],K=_e?_e.map(oe=>Qr($,oe,J)):e.readDirectory($,[".json"],void 0,void 0,3).filter(oe=>{if(Mc(oe)!==J)return!1;let Se=bl(Ys(oe)),se=Se[Se.length-3][0]==="@";return se&&Od(Se[Se.length-4])===ie||!se&&Od(Se[Se.length-3])===ie});t&&t(`Searching for typing names in ${$}; all files: ${JSON.stringify(K)}`);for(let oe of K){let Se=Ys(oe),Y=M8(Se,xe=>e.readFile(xe)).config;if(!Y.name)continue;let ve=Y.types||Y.typings;if(ve){let xe=cs(ve,Xr(Se));e.fileExists(xe)?(t&&t(` Package '${Y.name}' provides its own types.`),p.set(Y.name,xe)):t&&t(` Package '${Y.name}' provides its own types but they are missing.`)}else H.push(Y.name)}O(H," Found package names")}function V(X){let J=Ri(X,B=>{if(!Xv(B))return;let Z=zu(Od(Mc(B))),ae=Rj(Z);return s.get(ae)});J.length&&O(J,"Inferred typings from file names"),ft(X,B=>nc(B,".jsx"))&&(t&&t("Inferred 'react' typings due to presence of '.jsx' extension"),D("react"))}}function KRe(e){return Xae(e,!0)}function Xae(e,t){if(!e)return 1;if(e.length>toe)return 2;if(e.charCodeAt(0)===46)return 3;if(e.charCodeAt(0)===95)return 4;if(t){let n=/^@([^/]+)\/([^/]+)$/.exec(e);if(n){let i=Xae(n[1],!1);if(i!==0)return{name:n[1],isScopeName:!0,result:i};let s=Xae(n[2],!1);return s!==0?{name:n[2],isScopeName:!1,result:s}:0}}return encodeURIComponent(e)!==e?5:0}function eje(e,t){return typeof e=="object"?FSe(t,e.result,e.name,e.isScopeName):FSe(t,e,t,!1)}function FSe(e,t,n,i){let s=i?"Scope":"Package";switch(t){case 1:return`'${e}':: ${s} name '${n}' cannot be empty`;case 2:return`'${e}':: ${s} name '${n}' should be less than ${toe} characters`;case 3:return`'${e}':: ${s} name '${n}' cannot start with '.'`;case 4:return`'${e}':: ${s} name '${n}' cannot start with '_'`;case 5:return`'${e}':: ${s} name '${n}' contains non URI safe characters`;case 0:return E.fail();default:E.assertNever(t)}}var Qae,Yae,Zae,Kae,eoe,toe,tje=ze({"src/jsTyping/jsTyping.ts"(){"use strict";vA(),U9(),Qae=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],Yae=Qae.map(e=>`node:${e}`),Zae=[...Qae,...Yae],Kae=new Set(Zae),eoe=(e=>(e[e.Ok=0]="Ok",e[e.EmptyName=1]="EmptyName",e[e.NameTooLong=2]="NameTooLong",e[e.NameStartsWithDot=3]="NameStartsWithDot",e[e.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",e[e.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",e))(eoe||{}),toe=214}}),Eg={};Jn(Eg,{NameValidationResult:()=>eoe,discoverTypings:()=>ZRe,isTypingUpToDate:()=>NSe,loadSafeList:()=>QRe,loadTypesMap:()=>YRe,nodeCoreModuleList:()=>Zae,nodeCoreModules:()=>Kae,nonRelativeModuleNameForTypingCache:()=>ISe,prefixedNodeCoreModuleList:()=>Yae,renderPackageNameValidationFailure:()=>eje,validatePackageName:()=>KRe});var nje=ze({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){"use strict";tje()}}),vA=ze({"src/jsTyping/_namespaces/ts.ts"(){"use strict";Rs(),nje(),U9()}});function q9(e){return{indentSize:4,tabSize:4,newLineCharacter:e||` -`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var H9,Uq,qq,Hq,Hf,Gq,$q,Xq,Qq,Yq,Zq,Kq,noe,bA,eH,tH,nH,rH,iH,sH,aH,oH,cH,rje=ze({"src/services/types.ts"(){"use strict";(e=>{class t{constructor(s){this.text=s}getText(s,o){return s===0&&o===this.text.length?this.text:this.text.substring(s,o)}getLength(){return this.text.length}getChangeRange(){}}function n(i){return new t(i)}e.fromString=n})(H9||(H9={})),Uq=(e=>(e[e.Dependencies=1]="Dependencies",e[e.DevDependencies=2]="DevDependencies",e[e.PeerDependencies=4]="PeerDependencies",e[e.OptionalDependencies=8]="OptionalDependencies",e[e.All=15]="All",e))(Uq||{}),qq=(e=>(e[e.Off=0]="Off",e[e.On=1]="On",e[e.Auto=2]="Auto",e))(qq||{}),Hq=(e=>(e[e.Semantic=0]="Semantic",e[e.PartialSemantic=1]="PartialSemantic",e[e.Syntactic=2]="Syntactic",e))(Hq||{}),Hf={},Gq=(e=>(e.Original="original",e.TwentyTwenty="2020",e))(Gq||{}),$q=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))($q||{}),Xq=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(Xq||{}),Qq=(e=>(e.Type="Type",e.Parameter="Parameter",e.Enum="Enum",e))(Qq||{}),Yq=(e=>(e.none="none",e.definition="definition",e.reference="reference",e.writtenReference="writtenReference",e))(Yq||{}),Zq=(e=>(e[e.None=0]="None",e[e.Block=1]="Block",e[e.Smart=2]="Smart",e))(Zq||{}),Kq=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(Kq||{}),noe=q9(` -`),bA=(e=>(e[e.aliasName=0]="aliasName",e[e.className=1]="className",e[e.enumName=2]="enumName",e[e.fieldName=3]="fieldName",e[e.interfaceName=4]="interfaceName",e[e.keyword=5]="keyword",e[e.lineBreak=6]="lineBreak",e[e.numericLiteral=7]="numericLiteral",e[e.stringLiteral=8]="stringLiteral",e[e.localName=9]="localName",e[e.methodName=10]="methodName",e[e.moduleName=11]="moduleName",e[e.operator=12]="operator",e[e.parameterName=13]="parameterName",e[e.propertyName=14]="propertyName",e[e.punctuation=15]="punctuation",e[e.space=16]="space",e[e.text=17]="text",e[e.typeParameterName=18]="typeParameterName",e[e.enumMemberName=19]="enumMemberName",e[e.functionName=20]="functionName",e[e.regularExpressionLiteral=21]="regularExpressionLiteral",e[e.link=22]="link",e[e.linkName=23]="linkName",e[e.linkText=24]="linkText",e))(bA||{}),eH=(e=>(e[e.None=0]="None",e[e.MayIncludeAutoImports=1]="MayIncludeAutoImports",e[e.IsImportStatementCompletion=2]="IsImportStatementCompletion",e[e.IsContinuation=4]="IsContinuation",e[e.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",e[e.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",e[e.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",e))(eH||{}),tH=(e=>(e.Comment="comment",e.Region="region",e.Code="code",e.Imports="imports",e))(tH||{}),nH=(e=>(e[e.JavaScript=0]="JavaScript",e[e.SourceMap=1]="SourceMap",e[e.Declaration=2]="Declaration",e))(nH||{}),rH=(e=>(e[e.None=0]="None",e[e.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",e[e.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",e[e.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",e[e.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",e[e.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",e[e.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",e))(rH||{}),iH=(e=>(e[e.Punctuation=0]="Punctuation",e[e.Keyword=1]="Keyword",e[e.Operator=2]="Operator",e[e.Comment=3]="Comment",e[e.Whitespace=4]="Whitespace",e[e.Identifier=5]="Identifier",e[e.NumberLiteral=6]="NumberLiteral",e[e.BigIntLiteral=7]="BigIntLiteral",e[e.StringLiteral=8]="StringLiteral",e[e.RegExpLiteral=9]="RegExpLiteral",e))(iH||{}),sH=(e=>(e.unknown="",e.warning="warning",e.keyword="keyword",e.scriptElement="script",e.moduleElement="module",e.classElement="class",e.localClassElement="local class",e.interfaceElement="interface",e.typeElement="type",e.enumElement="enum",e.enumMemberElement="enum member",e.variableElement="var",e.localVariableElement="local var",e.variableUsingElement="using",e.variableAwaitUsingElement="await using",e.functionElement="function",e.localFunctionElement="local function",e.memberFunctionElement="method",e.memberGetAccessorElement="getter",e.memberSetAccessorElement="setter",e.memberVariableElement="property",e.memberAccessorVariableElement="accessor",e.constructorImplementationElement="constructor",e.callSignatureElement="call",e.indexSignatureElement="index",e.constructSignatureElement="construct",e.parameterElement="parameter",e.typeParameterElement="type parameter",e.primitiveType="primitive type",e.label="label",e.alias="alias",e.constElement="const",e.letElement="let",e.directory="directory",e.externalModuleName="external module name",e.jsxAttribute="JSX attribute",e.string="string",e.link="link",e.linkName="link name",e.linkText="link text",e))(sH||{}),aH=(e=>(e.none="",e.publicMemberModifier="public",e.privateMemberModifier="private",e.protectedMemberModifier="protected",e.exportedModifier="export",e.ambientModifier="declare",e.staticModifier="static",e.abstractModifier="abstract",e.optionalModifier="optional",e.deprecatedModifier="deprecated",e.dtsModifier=".d.ts",e.tsModifier=".ts",e.tsxModifier=".tsx",e.jsModifier=".js",e.jsxModifier=".jsx",e.jsonModifier=".json",e.dmtsModifier=".d.mts",e.mtsModifier=".mts",e.mjsModifier=".mjs",e.dctsModifier=".d.cts",e.ctsModifier=".cts",e.cjsModifier=".cjs",e))(aH||{}),oH=(e=>(e.comment="comment",e.identifier="identifier",e.keyword="keyword",e.numericLiteral="number",e.bigintLiteral="bigint",e.operator="operator",e.stringLiteral="string",e.whiteSpace="whitespace",e.text="text",e.punctuation="punctuation",e.className="class name",e.enumName="enum name",e.interfaceName="interface name",e.moduleName="module name",e.typeParameterName="type parameter name",e.typeAliasName="type alias name",e.parameterName="parameter name",e.docCommentTagName="doc comment tag name",e.jsxOpenTagName="jsx open tag name",e.jsxCloseTagName="jsx close tag name",e.jsxSelfClosingTagName="jsx self closing tag name",e.jsxAttribute="jsx attribute",e.jsxText="jsx text",e.jsxAttributeStringLiteralValue="jsx attribute string literal value",e))(oH||{}),cH=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(cH||{})}});function SA(e){switch(e.kind){case 260:return Qn(e)&&dJ(e)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return e.name===void 0?3:2;case 306:case 263:return 3;case 267:return lu(e)||fh(e)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function eS(e){e=SH(e);let t=e.parent;return e.kind===312?1:hc(t)||Eu(t)||Bm(t)||E_(t)||Rm(t)||Kl(t)&&e===t.name?7:G9(e)?ije(e):ih(e)?SA(t):Y_(e)&&Fn(e,ud(r3,yx,k1))?7:cje(e)?2:sje(e)?4:Ko(t)?(E.assert(hd(t.parent)),2):S1(t)?3:1}function ije(e){let t=e.kind===166?e:k_(e.parent)&&e.parent.right===e?e.parent:void 0;return t&&t.parent.kind===271?7:4}function G9(e){for(;e.parent.kind===166;)e=e.parent;return Gk(e.parent)&&e.parent.moduleReference===e}function sje(e){return aje(e)||oje(e)}function aje(e){let t=e,n=!0;if(t.parent.kind===166){for(;t.parent&&t.parent.kind===166;)t=t.parent;n=t.right===e}return t.parent.kind===183&&!n}function oje(e){let t=e,n=!0;if(t.parent.kind===211){for(;t.parent&&t.parent.kind===211;)t=t.parent;n=t.name===e}if(!n&&t.parent.kind===233&&t.parent.parent.kind===298){let i=t.parent.parent.parent;return i.kind===263&&t.parent.parent.token===119||i.kind===264&&t.parent.parent.token===96}return!1}function cje(e){switch(SE(e)&&(e=e.parent),e.kind){case 110:return!mg(e);case 197:return!0}switch(e.parent.kind){case 183:return!0;case 205:return!e.parent.isTypeOf;case 233:return dg(e.parent)}return!1}function lH(e,t=!1,n=!1){return xA(e,Ws,_H,t,n)}function L3(e,t=!1,n=!1){return xA(e,Kv,_H,t,n)}function uH(e,t=!1,n=!1){return xA(e,Dm,_H,t,n)}function roe(e,t=!1,n=!1){return xA(e,B2,lje,t,n)}function ioe(e,t=!1,n=!1){return xA(e,Zl,_H,t,n)}function soe(e,t=!1,n=!1){return xA(e,Zu,uje,t,n)}function _H(e){return e.expression}function lje(e){return e.tag}function uje(e){return e.tagName}function xA(e,t,n,i,s){let o=i?aoe(e):$9(e);return s&&(o=wc(o)),!!o&&!!o.parent&&t(o.parent)&&n(o.parent)===o}function $9(e){return r6(e)?e.parent:e}function aoe(e){return r6(e)||mH(e)?e.parent:e}function X9(e,t){for(;e;){if(e.kind===256&&e.label.escapedText===t)return e.label;e=e.parent}}function TA(e,t){return Cr(e.expression)?e.expression.name.text===t:!1}function kA(e){var t;return Ie(e)&&((t=Ur(e.parent,U4))==null?void 0:t.label)===e}function fH(e){var t;return Ie(e)&&((t=Ur(e.parent,eb))==null?void 0:t.label)===e}function pH(e){return fH(e)||kA(e)}function dH(e){var t;return((t=Ur(e.parent,Mk))==null?void 0:t.tagName)===e}function ooe(e){var t;return((t=Ur(e.parent,k_))==null?void 0:t.right)===e}function r6(e){var t;return((t=Ur(e.parent,Cr))==null?void 0:t.name)===e}function mH(e){var t;return((t=Ur(e.parent,ko))==null?void 0:t.argumentExpression)===e}function gH(e){var t;return((t=Ur(e.parent,Pc))==null?void 0:t.name)===e}function hH(e){var t;return Ie(e)&&((t=Ur(e.parent,As))==null?void 0:t.name)===e}function Q9(e){switch(e.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return us(e.parent)===e;case 212:return e.parent.argumentExpression===e;case 167:return!0;case 201:return e.parent.parent.kind===199;default:return!1}}function coe(e){return l1(e.parent.parent)&&iE(e.parent.parent)===e}function tS(e){for(mp(e)&&(e=e.parent.parent);;){if(e=e.parent,!e)return;switch(e.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return e}}}function db(e){switch(e.kind){case 312:return Bc(e)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return t(e);case 208:return t(Fm(e));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:let{initializer:n}=e;return As(n)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Mr(e,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:let i=mc(e),{right:s}=e;switch(i){case 7:case 8:case 9:case 0:return"";case 1:case 2:let c=db(s);return c===""?"const":c;case 3:return uo(s)?"method":"property";case 4:return"property";case 5:return uo(s)?"method":"property";case 6:return"local class";default:return""}case 80:return Rm(e.parent)?"alias":"";case 277:let o=db(e.expression);return o===""?"const":o;default:return""}function t(n){return Vk(n)?"const":Y7(n)?"let":"var"}}function i6(e){switch(e.kind){case 110:return!0;case 80:return Fz(e)&&e.parent.kind===169;default:return!1}}function Cp(e,t){let n=Zg(t),i=t.getLineAndCharacterOfPosition(e).line;return n[i]}function Ef(e,t){return yH(e.pos,e.end,t)}function loe(e,t){return EA(e,t.pos)&&EA(e,t.end)}function CA(e,t){return e.pos<=t&&t<=e.end}function EA(e,t){return e.pos=n.end}function DA(e,t,n){return e.pos<=t&&e.end>=n}function M3(e,t,n){return Z9(e.pos,e.end,t,n)}function Y9(e,t,n,i){return Z9(e.getStart(t),e.end,n,i)}function Z9(e,t,n,i){let s=Math.max(e,n),o=Math.min(t,i);return si.kind===t)}function K9(e){let t=xr(e.parent.getChildren(),n=>OC(n)&&Ef(n,e));return E.assert(!t||gs(t.getChildren(),e)),t}function OSe(e){return e.kind===90}function _je(e){return e.kind===86}function fje(e){return e.kind===100}function pje(e){if(Ru(e))return e.name;if(Zc(e)){let t=e.modifiers&&xr(e.modifiers,OSe);if(t)return t}if(Bl(e)){let t=xr(e.getChildren(),_je);if(t)return t}}function dje(e){if(Ru(e))return e.name;if(al(e)){let t=xr(e.modifiers,OSe);if(t)return t}if(uo(e)){let t=xr(e.getChildren(),fje);if(t)return t}}function mje(e){let t;return Fn(e,n=>(Ei(n)&&(t=n),!k_(n.parent)&&!Ei(n.parent)&&!g2(n.parent))),t}function eL(e,t){if(e.flags&16777216)return;let n=bL(e,t);if(n)return n;let i=mje(e);return i&&t.getTypeAtLocation(i)}function gje(e,t){if(!t)switch(e.kind){case 263:case 231:return pje(e);case 262:case 218:return dje(e);case 176:return e}if(Ru(e))return e.name}function LSe(e,t){if(e.importClause){if(e.importClause.name&&e.importClause.namedBindings)return;if(e.importClause.name)return e.importClause.name;if(e.importClause.namedBindings){if(lh(e.importClause.namedBindings)){let n=bm(e.importClause.namedBindings.elements);return n?n.name:void 0}else if(ly(e.importClause.namedBindings))return e.importClause.namedBindings.name}}if(!t)return e.moduleSpecifier}function MSe(e,t){if(e.exportClause){if(kp(e.exportClause))return bm(e.exportClause.elements)?e.exportClause.elements[0].name:void 0;if(jm(e.exportClause))return e.exportClause.name}if(!t)return e.moduleSpecifier}function hje(e){if(e.types.length===1)return e.types[0].expression}function RSe(e,t){let{parent:n}=e;if(ra(e)&&(t||e.kind!==90)?Yp(n)&&gs(n.modifiers,e):e.kind===86?Zc(n)||Bl(e):e.kind===100?al(n)||uo(e):e.kind===120?Wu(n):e.kind===94?T1(n):e.kind===156?Xp(n):e.kind===145||e.kind===144?Pc(n):e.kind===102?Kl(n):e.kind===139?Sf(n):e.kind===153&&j_(n)){let i=gje(n,t);if(i)return i}if((e.kind===115||e.kind===87||e.kind===121)&&Tl(n)&&n.declarations.length===1){let i=n.declarations[0];if(Ie(i.name))return i.name}if(e.kind===156){if(Rm(n)&&n.isTypeOnly){let i=LSe(n.parent,t);if(i)return i}if(Kc(n)&&n.isTypeOnly){let i=MSe(n,t);if(i)return i}}if(e.kind===130){if(E_(n)&&n.propertyName||Eu(n)&&n.propertyName||ly(n)||jm(n))return n.name;if(Kc(n)&&n.exportClause&&jm(n.exportClause))return n.exportClause.name}if(e.kind===102&&kl(n)){let i=LSe(n,t);if(i)return i}if(e.kind===95){if(Kc(n)){let i=MSe(n,t);if(i)return i}if(hc(n))return wc(n.expression)}if(e.kind===149&&Bm(n))return n.expression;if(e.kind===161&&(kl(n)||Kc(n))&&n.moduleSpecifier)return n.moduleSpecifier;if((e.kind===96||e.kind===119)&&rf(n)&&n.token===e.kind){let i=hje(n);if(i)return i}if(e.kind===96){if(Ko(n)&&n.constraint&&Tp(n.constraint))return n.constraint.typeName;if(CC(n)&&Tp(n.extendsType))return n.extendsType.typeName}if(e.kind===140&&qx(n))return n.typeParameter.name;if(e.kind===103&&Ko(n)&&YE(n.parent))return n.name;if(e.kind===143&&Gx(n)&&n.operator===143&&Tp(n.type))return n.type.typeName;if(e.kind===148&&Gx(n)&&n.operator===148&&KF(n.type)&&Tp(n.type.elementType))return n.type.elementType.typeName;if(!t){if((e.kind===105&&Kv(n)||e.kind===116&&Xx(n)||e.kind===114&&EC(n)||e.kind===135&&cy(n)||e.kind===127&&nO(n)||e.kind===91&&Sre(n))&&n.expression)return wc(n.expression);if((e.kind===103||e.kind===104)&&Yn(n)&&n.operatorToken===e)return wc(n.right);if(e.kind===130&&h8(n)&&Tp(n.type))return n.type.typeName;if(e.kind===103&&iO(n)||e.kind===165&&y8(n))return wc(n.expression)}return e}function SH(e){return RSe(e,!1)}function tL(e){return RSe(e,!0)}function m_(e,t){return R3(e,t,n=>Jd(n)||p_(n.kind)||Di(n))}function R3(e,t,n){return jSe(e,t,!1,n,!1)}function qi(e,t){return jSe(e,t,!0,void 0,!1)}function jSe(e,t,n,i,s){let o=e,c;e:for(;;){let f=o.getChildren(e),g=ax(f,t,(p,y)=>y,(p,y)=>{let S=f[p].getEnd();if(St?1:u(f[p],x,S)?f[p-1]&&u(f[p-1])?1:0:i&&x===t&&f[p-1]&&f[p-1].getEnd()===t&&u(f[p-1])?1:-1});if(c)return c;if(g>=0&&f[g]){o=f[g];continue e}return o}function u(f,g,p){if(p??(p=f.getEnd()),pt))return!1;if(tn.getStart(e)&&t(o.pos<=e.pos&&o.end>e.end||o.pos===e.end)&&yoe(o,n)?i(o):void 0)}}function ol(e,t,n,i){let s=o(n||t);return E.assert(!(s&&rL(s))),s;function o(c){if(BSe(c)&&c.kind!==1)return c;let u=c.getChildren(t),f=ax(u,e,(p,y)=>y,(p,y)=>e=u[p-1].end?0:1:-1);if(f>=0&&u[f]){let p=u[f];if(e=e||!yoe(p,t)||rL(p)){let x=poe(u,f,t,c.kind);return x?!i&&R7(x)&&x.getChildren(t).length?o(x):foe(x,t):void 0}else return o(p)}E.assert(n!==void 0||c.kind===312||c.kind===1||R7(c));let g=poe(u,u.length,t,c.kind);return g&&foe(g,t)}}function BSe(e){return mx(e)&&!rL(e)}function foe(e,t){if(BSe(e))return e;let n=e.getChildren(t);if(n.length===0)return e;let i=poe(n,n.length,t,e.kind);return i&&foe(i,t)}function poe(e,t,n,i){for(let s=t-1;s>=0;s--){let o=e[s];if(rL(o))s===0&&(i===12||i===285)&&E.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(yoe(e[s],n))return e[s]}}function nS(e,t,n=ol(t,e)){if(n&&TJ(n)){let i=n.getStart(e),s=n.getEnd();if(in.getStart(e)}function moe(e,t){let n=qi(e,t);return!!(zx(n)||n.kind===19&&n3(n.parent)&&kg(n.parent.parent)||n.kind===30&&Zu(n.parent)&&kg(n.parent.parent))}function iL(e,t){function n(i){for(;i;)if(i.kind>=285&&i.kind<=294||i.kind===12||i.kind===30||i.kind===32||i.kind===80||i.kind===20||i.kind===19||i.kind===44)i=i.parent;else if(i.kind===284){if(t>i.getStart(e))return!0;i=i.parent}else return!1;return!1}return n(qi(e,t))}function sL(e,t,n){let i=Zs(e.kind),s=Zs(t),o=e.getFullStart(),c=n.text.lastIndexOf(s,o);if(c===-1)return;if(n.text.lastIndexOf(i,o-1)!!o.typeParameters&&o.typeParameters.length>=t)}function kH(e,t){if(t.text.lastIndexOf("<",e?e.pos:t.text.length)===-1)return;let n=e,i=0,s=0;for(;n;){switch(n.kind){case 30:if(n=ol(n.getFullStart(),t),n&&n.kind===29&&(n=ol(n.getFullStart(),t)),!n||!Ie(n))return;if(!i)return ih(n)?void 0:{called:n,nTypeArguments:s};i--;break;case 50:i=3;break;case 49:i=2;break;case 32:i++;break;case 20:if(n=sL(n,19,t),!n)return;break;case 22:if(n=sL(n,21,t),!n)return;break;case 24:if(n=sL(n,23,t),!n)return;break;case 28:s++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Ei(n))break;return}n=ol(n.getFullStart(),t)}}function s0(e,t,n){return ml.getRangeOfEnclosingComment(e,t,void 0,n)}function hoe(e,t){let n=qi(e,t);return!!Fn(n,Qp)}function yoe(e,t){return e.kind===1?!!e.jsDoc:e.getWidth(t)!==0}function j3(e,t=0){let n=[],i=ku(e)?lJ(e)&~t:0;return i&2&&n.push("private"),i&4&&n.push("protected"),i&1&&n.push("public"),(i&256||rc(e))&&n.push("static"),i&64&&n.push("abstract"),i&32&&n.push("export"),i&65536&&n.push("deprecated"),e.flags&33554432&&n.push("declare"),e.kind===277&&n.push("export"),n.length>0?n.join(","):""}function voe(e){if(e.kind===183||e.kind===213)return e.typeArguments;if(As(e)||e.kind===263||e.kind===264)return e.typeParameters}function aL(e){return e===2||e===3}function CH(e){return!!(e===11||e===14||H0(e))}function JSe(e,t,n){return!!(t.flags&4)&&e.isEmptyAnonymousObjectType(n)}function boe(e){if(!e.isIntersection())return!1;let{types:t,checker:n}=e;return t.length===2&&(JSe(n,t[0],t[1])||JSe(n,t[1],t[0]))}function AA(e,t,n){return H0(e.kind)&&e.getStart(n){let n=Va(t);return!e[n]&&(e[n]=!0)}}function s6(e){return e.getText(0,e.getLength())}function FA(e,t){let n="";for(let i=0;i!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!(t.externalModuleIndicator||t.commonJsModuleIndicator))}function koe(e){return e.getSourceFiles().some(t=>!t.isDeclarationFile&&!e.isSourceFileFromExternalLibrary(t)&&!!t.externalModuleIndicator)}function FH(e){return!!e.module||La(e)>=2||!!e.noEmit}function rS(e,t){return{fileExists:n=>e.fileExists(n),getCurrentDirectory:()=>t.getCurrentDirectory(),readFile:Js(t,t.readFile),useCaseSensitiveFileNames:Js(t,t.useCaseSensitiveFileNames),getSymlinkCache:Js(t,t.getSymlinkCache)||e.getSymlinkCache,getModuleSpecifierCache:Js(t,t.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var n;return(n=e.getModuleResolutionCache())==null?void 0:n.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Js(t,t.getGlobalTypingsCacheLocation),redirectTargetsMap:e.redirectTargetsMap,getProjectReferenceRedirect:n=>e.getProjectReferenceRedirect(n),isSourceOfProjectReferenceRedirect:n=>e.isSourceOfProjectReferenceRedirect(n),getNearestAncestorDirectoryWithPackageJson:Js(t,t.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>e.getFileIncludeReasons()}}function OH(e,t){return{...rS(e,t),getCommonSourceDirectory:()=>e.getCommonSourceDirectory()}}function uL(e){return e===2||e>=3&&e<=99||e===100}function Coe(e,t,n,i){return e||t&&t.length?o0(e,t,n,i):void 0}function o0(e,t,n,i,s){return I.createImportDeclaration(void 0,e||t?I.createImportClause(!!s,e,t&&t.length?I.createNamedImports(t):void 0):void 0,typeof n=="string"?dT(n,i):n,void 0)}function dT(e,t){return I.createStringLiteral(e,t===0)}function LH(e,t){return d5(e,t)?1:0}function Df(e,t){if(t.quotePreference&&t.quotePreference!=="auto")return t.quotePreference==="single"?0:1;{let n=e.imports&&xr(e.imports,i=>ca(i)&&!Ro(i.parent));return n?LH(n,e):1}}function MH(e){switch(e){case 0:return"'";case 1:return'"';default:return E.assertNever(e)}}function _L(e){let t=fL(e);return t===void 0?void 0:Ci(t)}function fL(e){return e.escapedName!=="default"?e.escapedName:ba(e.declarations,t=>{let n=us(t);return n&&n.kind===80?n.escapedText:void 0})}function pL(e){return $a(e)&&(Bm(e.parent)||kl(e.parent)||T_(e.parent,!1)&&e.parent.arguments[0]===e||ef(e.parent)&&e.parent.arguments[0]===e)}function LA(e){return Ma(e)&&Gp(e.parent)&&Ie(e.name)&&!e.propertyName}function dL(e,t){let n=e.getTypeAtLocation(t.parent);return n&&e.getPropertyOfType(n,t.name.text)}function MA(e,t,n){if(e)for(;e.parent;){if(Li(e.parent)||!yje(n,e.parent,t))return e;e=e.parent}}function yje(e,t,n){return cJ(e,t.getStart(n))&&t.getEnd()<=Dc(e)}function a6(e,t){return Yp(e)?xr(e.modifiers,n=>n.kind===t):void 0}function J3(e,t,n,i,s){let c=(ss(n)?n[0]:n).kind===243?oz:S2,u=Fr(t.statements,c),f=ss(n)?ed.detectImportDeclarationSorting(n,s):3,g=ed.getOrganizeImportsComparer(s,f===2),p=ss(n)?Mh(n,(y,S)=>ed.compareImportsOrRequireStatements(y,S,g)):[n];if(!u.length)e.insertNodesAtTopOfFile(t,p,i);else if(u&&(f=ed.detectImportDeclarationSorting(u,s))){let y=ed.getOrganizeImportsComparer(s,f===2);for(let S of p){let x=ed.getImportDeclarationInsertionIndex(u,S,y);if(x===0){let C=u[0]===t.statements[0]?{leadingTriviaOption:er.LeadingTriviaOption.Exclude}:{};e.insertNodeBefore(t,u[0],S,!1,C)}else{let C=u[x-1];e.insertNodeAfter(t,C,S)}}}else{let y=qo(u);y?e.insertNodesAfter(t,y,p):e.insertNodesAtTopOfFile(t,p,i)}}function RH(e,t){return E.assert(e.isTypeOnly),Vs(e.getChildAt(0,t),NH)}function o6(e,t){return!!e&&!!t&&e.start===t.start&&e.length===t.length}function mL(e,t){return e.fileName===t.fileName&&o6(e.textSpan,t.textSpan)}function jH(e,t){if(e){for(let n=0;nms(n)?!0:Ma(n)||Gp(n)||j2(n)?!1:"quit")}function vje(){let e=Kw*10,t,n,i,s;p();let o=y=>u(y,17);return{displayParts:()=>{let y=t.length&&t[t.length-1].text;return s>e&&y&&y!=="..."&&(Kg(y.charCodeAt(y.length-1))||t.push(D_(" ",16)),t.push(D_("...",15))),t},writeKeyword:y=>u(y,5),writeOperator:y=>u(y,12),writePunctuation:y=>u(y,15),writeTrailingSemicolon:y=>u(y,15),writeSpace:y=>u(y,16),writeStringLiteral:y=>u(y,8),writeParameter:y=>u(y,13),writeProperty:y=>u(y,14),writeLiteral:y=>u(y,8),writeSymbol:f,writeLine:g,write:o,writeComment:o,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:Ts,getIndent:()=>i,increaseIndent:()=>{i++},decreaseIndent:()=>{i--},clear:p};function c(){if(!(s>e)&&n){let y=C5(i);y&&(s+=y.length,t.push(D_(y,16))),n=!1}}function u(y,S){s>e||(c(),s+=y.length,t.push(D_(y,S)))}function f(y,S){s>e||(c(),s+=y.length,t.push(Doe(y,S)))}function g(){s>e||(s+=1,t.push(c6()),n=!0)}function p(){t=[],n=!0,i=0,s=0}}function Doe(e,t){return D_(e,n(t));function n(i){let s=i.flags;return s&3?JH(i)?13:9:s&4||s&32768||s&65536?14:s&8?19:s&16?20:s&32?1:s&64?4:s&384?2:s&1536?11:s&8192?10:s&262144?18:s&524288||s&2097152?0:17}}function D_(e,t){return{text:e,kind:bA[t]}}function _c(){return D_(" ",16)}function J_(e){return D_(Zs(e),5)}function Pu(e){return D_(Zs(e),15)}function V3(e){return D_(Zs(e),12)}function Poe(e){return D_(e,13)}function woe(e){return D_(e,14)}function zH(e){let t=Ev(e);return t===void 0?Pf(e):J_(t)}function Pf(e){return D_(e,17)}function Aoe(e){return D_(e,0)}function Noe(e){return D_(e,18)}function hL(e){return D_(e,24)}function Ioe(e,t){return{text:e,kind:bA[23],target:{fileName:Mn(t).fileName,textSpan:g_(t)}}}function VH(e){return D_(e,22)}function Foe(e,t){var n;let i=wre(e)?"link":Are(e)?"linkcode":"linkplain",s=[VH(`{@${i} `)];if(!e.name)e.text&&s.push(hL(e.text));else{let o=t?.getSymbolAtLocation(e.name),c=Sje(e.text),u=Qc(e.name)+e.text.slice(0,c),f=bje(e.text.slice(c)),g=o?.valueDeclaration||((n=o?.declarations)==null?void 0:n[0]);g?(s.push(Ioe(u,g)),f&&s.push(hL(f))):s.push(hL(u+(c?"":" ")+f))}return s.push(VH("}")),s}function bje(e){let t=0;if(e.charCodeAt(t++)===124){for(;t"&&n--,i++,!n)return i}return 0}function c0(e,t){var n;return t?.newLineCharacter||((n=e.getNewLine)==null?void 0:n.call(e))||QSe}function c6(){return D_(` -`,6)}function py(e){try{return e(oG),oG.displayParts()}finally{oG.clear()}}function RA(e,t,n,i=0){return py(s=>{e.writeType(t,n,i|1024|16384,s)})}function W3(e,t,n,i,s=0){return py(o=>{e.writeSymbol(t,n,i,s|8,o)})}function WH(e,t,n,i=0){return i|=25632,py(s=>{e.writeSignature(t,n,i,void 0,s)})}function VSe(e,t){let n=t.getSourceFile();return py(i=>{oA().writeNode(4,e,n,i)})}function Ooe(e){return!!e.parent&&gx(e.parent)&&e.parent.propertyName===e}function UH(e,t){return K5(e,t.getScriptKind&&t.getScriptKind(e))}function Loe(e,t){let n=e;for(;xje(n)||wm(n)&&n.links.target;)wm(n)&&n.links.target?n=n.links.target:n=Cu(n,t);return n}function xje(e){return(e.flags&2097152)!==0}function Moe(e,t){return ta(Cu(e,t))}function Roe(e,t){for(;Kg(e.charCodeAt(t));)t+=1;return t}function yL(e,t){for(;t>-1&&Md(e.charCodeAt(t));)t-=1;return t+1}function jo(e,t=!0){let n=e&&WSe(e);return n&&!t&&z_(n),n}function jA(e,t,n){let i=n(e);return i?or(i,e):i=WSe(e,n),i&&!t&&z_(i),i}function WSe(e,t){let n=t?o=>jA(o,!0,t):jo,s=on(e,n,yd,t?o=>o&&qH(o,!0,t):o=>o&&gb(o),n);if(s===e){let o=ca(e)?or(I.createStringLiteralFromNode(e),e):R_(e)?or(I.createNumericLiteral(e.text,e.numericLiteralFlags),e):I.cloneNode(e);return nt(o,e)}return s.parent=void 0,s}function gb(e,t=!0){if(e){let n=I.createNodeArray(e.map(i=>jo(i,t)),e.hasTrailingComma);return nt(n,e),n}return e}function qH(e,t,n){return I.createNodeArray(e.map(i=>jA(i,t,n)),e.hasTrailingComma)}function z_(e){HH(e),joe(e)}function HH(e){Boe(e,1024,kje)}function joe(e){Boe(e,2048,Hz)}function iS(e,t){let n=e.getSourceFile(),i=n.text;Tje(e,i)?l6(e,t,n):JA(e,t,n),U3(e,t,n)}function Tje(e,t){let n=e.getFullStart(),i=e.getStart();for(let s=n;st)}function sS(e,t){let n=e;for(let i=1;!U7(t,n);i++)n=`${e}_${i}`;return n}function BA(e,t,n,i){let s=0,o=-1;for(let{fileName:c,textChanges:u}of e){E.assert(c===t);for(let f of u){let{span:g,newText:p}=f,y=Cje(p,p1(n));if(y!==-1&&(o=g.start+s+y,!i))return o;s+=p.length-g.length}}return E.assert(i),E.assert(o>=0),o}function l6(e,t,n,i,s){TP(n.text,e.pos,Joe(t,n,i,s,UE))}function U3(e,t,n,i,s){kP(n.text,e.end,Joe(t,n,i,s,vF))}function JA(e,t,n,i,s){kP(n.text,e.pos,Joe(t,n,i,s,UE))}function Joe(e,t,n,i,s){return(o,c,u,f)=>{u===3?(o+=2,c-=2):o+=2,s(e,n||u,t.text.slice(o,c),i!==void 0?i:f)}}function Cje(e,t){if(ts(e,t))return 0;let n=e.indexOf(" "+t);return n===-1&&(n=e.indexOf("."+t)),n===-1&&(n=e.indexOf('"'+t)),n===-1?-1:n+1}function vL(e){return Yn(e)&&e.operatorToken.kind===28||xa(e)||(h8(e)||xre(e))&&xa(e.expression)}function bL(e,t,n){let i=Gh(e.parent);switch(i.kind){case 214:return t.getContextualType(i,n);case 226:{let{left:s,operatorToken:o,right:c}=i;return SL(o.kind)?t.getTypeAtLocation(e===c?s:c):t.getContextualType(e,n)}case 296:return $H(i,t);default:return t.getContextualType(e,n)}}function q3(e,t,n){let i=Df(e,t),s=JSON.stringify(n);return i===0?`'${hp(s).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:s}function SL(e){switch(e){case 37:case 35:case 38:case 36:return!0;default:return!1}}function zoe(e){switch(e.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function GH(e){return!!e.getStringIndexType()||!!e.getNumberIndexType()}function $H(e,t){return t.getTypeAtLocation(e.parent.parent.expression)}function H3(e,t,n,i){let s=n.getTypeChecker(),o=!0,c=()=>o=!1,u=s.typeToTypeNode(e,t,1,{trackSymbol:(f,g,p)=>(o=o&&s.isSymbolAccessible(f,g,p,!1).accessibility===0,!o),reportInaccessibleThisError:c,reportPrivateInBaseOfClassExpression:c,reportInaccessibleUniqueSymbolError:c,moduleResolverHost:OH(n,i)});return o?u:void 0}function Voe(e){return e===179||e===180||e===181||e===171||e===173}function USe(e){return e===262||e===176||e===174||e===177||e===178}function qSe(e){return e===267}function xL(e){return e===243||e===244||e===246||e===251||e===252||e===253||e===257||e===259||e===172||e===265||e===272||e===271||e===278||e===270||e===277}function Eje(e,t){let n=e.getLastToken(t);if(n&&n.kind===27)return!1;if(Voe(e.kind)){if(n&&n.kind===28)return!1}else if(qSe(e.kind)){let u=Pa(e.getChildren(t));if(u&&Hd(u))return!1}else if(USe(e.kind)){let u=Pa(e.getChildren(t));if(u&&jv(u))return!1}else if(!xL(e.kind))return!1;if(e.kind===246)return!0;let i=Fn(e,u=>!u.parent),s=mb(e,i,t);if(!s||s.kind===20)return!0;let o=t.getLineAndCharacterOfPosition(e.getEnd()).line,c=t.getLineAndCharacterOfPosition(s.getStart(t)).line;return o!==c}function TL(e,t,n){let i=Fn(t,s=>s.end!==e?"quit":cG(s.kind));return!!i&&Eje(i,n)}function zA(e){let t=0,n=0,i=5;return vs(e,function s(o){if(xL(o.kind)){let c=o.getLastToken(e);c?.kind===27?t++:n++}else if(Voe(o.kind)){let c=o.getLastToken(e);if(c?.kind===27)t++;else if(c&&c.kind!==28){let u=Ka(e,c.getStart(e)).line,f=Ka(e,Im(e,c.end).start).line;u!==f&&n++}}return t+n>=i?!0:vs(o,s)}),t===0&&n<=1?!0:t/n>1/i}function kL(e,t){return DL(e,e.getDirectories,t)||[]}function XH(e,t,n,i,s){return DL(e,e.readDirectory,t,n,i,s)||Ve}function VA(e,t){return DL(e,e.fileExists,t)}function CL(e,t){return EL(()=>_d(t,e))||!1}function EL(e){try{return e()}catch{return}}function DL(e,t,...n){return EL(()=>t&&t.apply(e,n))}function QH(e,t,n){let i=[];return Ld(e,s=>{if(s===n)return!0;let o=Qr(s,"package.json");VA(t,o)&&i.push(o)}),i}function Woe(e,t){let n;return Ld(e,i=>{if(i==="node_modules"||(n=Gse(i,s=>VA(t,s),"package.json"),n))return!0}),n}function Uoe(e,t){if(!t.fileExists)return[];let n=[];return Ld(Xr(e),i=>{let s=Qr(i,"package.json");if(t.fileExists(s)){let o=YH(s,t);o&&n.push(o)}}),n}function YH(e,t){if(!t.readFile)return;let n=["dependencies","devDependencies","optionalDependencies","peerDependencies"],i=t.readFile(e)||"",s=Dje(i),o={};if(s)for(let f of n){let g=s[f];if(!g)continue;let p=new Map;for(let y in g)p.set(y,g[y]);o[f]=p}let c=[[1,o.dependencies],[2,o.devDependencies],[8,o.optionalDependencies],[4,o.peerDependencies]];return{...o,parseable:!!s,fileName:e,get:u,has(f,g){return!!u(f,g)}};function u(f,g=15){for(let[p,y]of c)if(y&&g&p){let S=y.get(f);if(S!==void 0)return S}}}function G3(e,t,n){let i=(n.getPackageJsonsVisibleToFile&&n.getPackageJsonsVisibleToFile(e.fileName)||Uoe(e.fileName,n)).filter(C=>C.parseable),s,o,c;return{allowsImportingAmbientModule:f,allowsImportingSourceFile:g,allowsImportingSpecifier:p};function u(C){let w=x(C);for(let D of i)if(D.has(w)||D.has(BO(w)))return!0;return!1}function f(C,w){if(!i.length||!C.valueDeclaration)return!0;if(!o)o=new Map;else{let X=o.get(C);if(X!==void 0)return X}let D=hp(C.getName());if(y(D))return o.set(C,!0),!0;let O=C.valueDeclaration.getSourceFile(),z=S(O.fileName,w);if(typeof z>"u")return o.set(C,!0),!0;let V=u(z)||u(D);return o.set(C,V),V}function g(C,w){if(!i.length)return!0;if(!c)c=new Map;else{let z=c.get(C);if(z!==void 0)return z}let D=S(C.fileName,w);if(!D)return c.set(C,!0),!0;let O=u(D);return c.set(C,O),O}function p(C){return!i.length||y(C)||Q_(C)||I_(C)?!0:u(C)}function y(C){return!!(Bu(e)&&Eg.nodeCoreModules.has(C)&&(s===void 0&&(s=PL(e)),s))}function S(C,w){if(!C.includes("node_modules"))return;let D=lb.getNodeModulesPackageName(n.getCompilationSettings(),e,C,w,t);if(D&&!Q_(D)&&!I_(D))return x(D)}function x(C){let w=bl(h3(C)).slice(1);return ts(w[0],"@")?`${w[0]}/${w[1]}`:w[0]}}function Dje(e){try{return JSON.parse(e)}catch{return}}function PL(e){return ft(e.imports,({text:t})=>Eg.nodeCoreModules.has(t))}function WA(e){return gs(bl(e),"node_modules")}function ZH(e){return e.file!==void 0&&e.start!==void 0&&e.length!==void 0}function qoe(e,t){let n=g_(e),i=ax(t,n,No,zI);if(i>=0){let s=t[i];return E.assertEqual(s.file,e.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Vs(s,ZH)}}function Hoe(e,t){var n;let i=ax(t,e.start,c=>c.start,Io);for(i<0&&(i=~i);((n=t[i-1])==null?void 0:n.start)===e.start;)i--;let s=[],o=Dc(e);for(;;){let c=Ur(t[i],ZH);if(!c||c.start>o)break;WK(e,c)&&s.push(c),i++}return s}function mT({startPosition:e,endPosition:t}){return Xc(e,t===void 0?e:t)}function KH(e,t){let n=qi(e,t.start);return Fn(n,s=>s.getStart(e)Dc(t)?"quit":ut(s)&&o6(t,g_(s,e)))}function eG(e,t,n=No){return e?ss(e)?n(Kt(e,t)):t(e,0):void 0}function tG(e){return ss(e)?Da(e):e}function Goe(e,t){if(HSe(e)){let n=GSe(e);if(n)return n;let i=fu.moduleSymbolToValidIdentifier($oe(e),t,!1),s=fu.moduleSymbolToValidIdentifier($oe(e),t,!0);return i===s?i:[i,s]}return e.name}function wL(e,t,n){return HSe(e)?GSe(e)||fu.moduleSymbolToValidIdentifier($oe(e),t,!!n):e.name}function HSe(e){return!(e.flags&33554432)&&(e.escapedName==="export="||e.escapedName==="default")}function GSe(e){return ba(e.declarations,t=>{var n,i,s;return hc(t)?(n=Ur(wc(t.expression),Ie))==null?void 0:n.text:Eu(t)&&t.symbol.flags===2097152?(i=Ur(t.propertyName,Ie))==null?void 0:i.text:(s=Ur(us(t),Ie))==null?void 0:s.text})}function $oe(e){var t;return E.checkDefined(e.parent,`Symbol parent was undefined. Flags: ${E.formatSymbolFlags(e.flags)}. Declarations: ${(t=e.declarations)==null?void 0:t.map(n=>{let i=E.formatSyntaxKind(n.kind),s=Qn(n),{expression:o}=n;return(s?"[JS]":"")+i+(o?` (expression: ${E.formatSyntaxKind(o.kind)})`:"")}).join(", ")}.`)}function Xoe(e,t,n){let i=t.length;if(i+n>e.length)return!1;for(let s=0;sPc(n)&&jd(n))}function AL(e){return!!(lJ(e)&65536)}function NL(e,t){return ba(e.imports,i=>{if(Eg.nodeCoreModules.has(i.text))return ts(i.text,"node:")})??t.usesUriStyleNodeCoreModules}function UA(e){return e===` -`?1:0}function aS(e){return ss(e)?vg(ds(e[0]),e.slice(1)):ds(e)}function IL({options:e},t){let n=!e.semicolons||e.semicolons==="ignore",i=e.semicolons==="remove"||n&&!zA(t);return{...e,semicolons:i?"remove":"ignore"}}function rG(e){return e===2||e===3}function $3(e,t){return e.isSourceFileFromExternalLibrary(t)||e.isSourceFileDefaultLibrary(t)}function FL(e,t){let n=new Set,i=new Set,s=new Set;for(let u of t)if(!S8(u)){let f=eo(u.expression);if(Av(f))switch(f.kind){case 15:case 11:n.add(f.text);break;case 9:i.add(parseInt(f.text));break;case 10:let g=wne(Sc(f.text,"n")?f.text.slice(0,-1):f.text);g&&s.add(Qv(g));break}else{let g=e.getSymbolAtLocation(u.expression);if(g&&g.valueDeclaration&&sb(g.valueDeclaration)){let p=e.getConstantValue(g.valueDeclaration);p!==void 0&&o(p)}}}return{addValue:o,hasValue:c};function o(u){switch(typeof u){case"string":n.add(u);break;case"number":i.add(u)}}function c(u){switch(typeof u){case"string":return n.has(u);case"number":return i.has(u);case"object":return s.has(Qv(u))}}}function iG(e,t,n,i){var s;let o=typeof e=="string"?e:e.fileName;if(!Xv(o))return!1;let c=t.getCompilerOptions(),u=Ql(c),f=typeof e=="string"?pA(xo(e,n.getCurrentDirectory(),$h(n)),(s=t.getPackageJsonInfoCache)==null?void 0:s.call(t),n,c):e.impliedNodeFormat;if(f===99)return!1;if(f===1||c.verbatimModuleSyntax&&u===1)return!0;if(c.verbatimModuleSyntax&&W5(u))return!1;if(typeof e=="object"){if(e.commonJsModuleIndicator)return!0;if(e.externalModuleIndicator)return!1}return i}var wu,sG,XSe,OL,aG,oG,QSe,LL,cG,Pje=ze({"src/services/utilities.ts"(){"use strict";qr(),wu=Vh(99,!0),sG=(e=>(e[e.None=0]="None",e[e.Value=1]="Value",e[e.Type=2]="Type",e[e.Namespace=4]="Namespace",e[e.All=7]="All",e))(sG||{}),XSe=/^\/\/\/\s*(e[e.Single=0]="Single",e[e.Double=1]="Double",e))(aG||{}),oG=vje(),QSe=` -`,LL="anonymous function",cG=ud(Voe,USe,qSe,xL)}});function lG(e){let t=1,n=mf(),i=new Map,s=new Map,o,c={isUsableByFile:x=>x===o,isEmpty:()=>!n.size,clear:()=>{n.clear(),i.clear(),o=void 0},add:(x,C,w,D,O,z,V,X)=>{x!==o&&(c.clear(),o=x);let J;if(O){let se=oF(O.fileName);if(se){let{topLevelNodeModulesIndex:Y,topLevelPackageNameIndex:ve,packageRootIndex:xe}=se;if(J=K8(h3(O.fileName.substring(ve+1,xe))),ts(x,O.path.substring(0,Y))){let Me=s.get(J),ke=O.fileName.substring(0,ve+1);if(Me){let he=Me.indexOf(zm);Y>he&&s.set(J,ke)}else s.set(J,ke)}}}let B=z===1&&cC(C)||C,Z=z===0||IA(B)?Ci(w):Goe(B,void 0),ae=typeof Z=="string"?Z:Z[0],_e=typeof Z=="string"?void 0:Z[1],$=hp(D.name),H=t++,K=Cu(C,X),oe=C.flags&33554432?void 0:C,Se=D.flags&33554432?void 0:D;(!oe||!Se)&&i.set(H,[C,D]),n.add(f(ae,C,Al($)?void 0:$,X),{id:H,symbolTableKey:w,symbolName:ae,capitalizedSymbolName:_e,moduleName:$,moduleFile:O,moduleFileName:O?.fileName,packageName:J,exportKind:z,targetFlags:K.flags,isFromPackageJson:V,symbol:oe,moduleSymbol:Se})},get:(x,C)=>{if(x!==o)return;let w=n.get(C);return w?.map(u)},search:(x,C,w,D)=>{if(x===o)return $l(n,(O,z)=>{let{symbolName:V,ambientModuleName:X}=g(z),J=C&&O[0].capitalizedSymbolName||V;if(w(J,O[0].targetFlags)){let B=O.map(u).filter((Z,ae)=>S(Z,O[ae].packageName));if(B.length){let Z=D(B,J,!!X,z);if(Z!==void 0)return Z}}})},releaseSymbols:()=>{i.clear()},onFileChanged:(x,C,w)=>p(x)&&p(C)?!1:o&&o!==C.path||w&&PL(x)!==PL(C)||!cd(x.moduleAugmentations,C.moduleAugmentations)||!y(x,C)?(c.clear(),!0):(o=C.path,!1)};return E.isDebugging&&Object.defineProperty(c,"__cache",{value:n}),c;function u(x){if(x.symbol&&x.moduleSymbol)return x;let{id:C,exportKind:w,targetFlags:D,isFromPackageJson:O,moduleFileName:z}=x,[V,X]=i.get(C)||Ve;if(V&&X)return{symbol:V,moduleSymbol:X,moduleFileName:z,exportKind:w,targetFlags:D,isFromPackageJson:O};let J=(O?e.getPackageJsonAutoImportProvider():e.getCurrentProgram()).getTypeChecker(),ie=x.moduleSymbol||X||E.checkDefined(x.moduleFile?J.getMergedSymbol(x.moduleFile.symbol):J.tryFindAmbientModule(x.moduleName)),B=x.symbol||V||E.checkDefined(w===2?J.resolveExternalModuleSymbol(ie):J.tryGetMemberInModuleExportsAndProperties(Ci(x.symbolTableKey),ie),`Could not find symbol '${x.symbolName}' by key '${x.symbolTableKey}' in module ${ie.name}`);return i.set(C,[B,ie]),{symbol:B,moduleSymbol:ie,moduleFileName:z,exportKind:w,targetFlags:D,isFromPackageJson:O}}function f(x,C,w,D){let O=w||"";return`${x.length} ${ta(Cu(C,D))} ${x} ${O}`}function g(x){let C=x.indexOf(" "),w=x.indexOf(" ",C+1),D=parseInt(x.substring(0,C),10),O=x.substring(w+1),z=O.substring(0,D),V=O.substring(D+1);return{symbolName:z,ambientModuleName:V===""?void 0:V}}function p(x){return!x.commonJsModuleIndicator&&!x.externalModuleIndicator&&!x.moduleAugmentations&&!x.ambientModuleNames}function y(x,C){if(!cd(x.ambientModuleNames,C.ambientModuleNames))return!1;let w=-1,D=-1;for(let O of C.ambientModuleNames){let z=V=>WJ(V)&&V.name.text===O;if(w=Qo(x.statements,z,w+1),D=Qo(C.statements,z,D+1),x.statements[w]!==C.statements[D])return!1}return!0}function S(x,C){if(!C||!x.moduleFileName)return!0;let w=e.getGlobalTypingsCacheLocation();if(w&&ts(x.moduleFileName,w))return!0;let D=s.get(C);return!D||ts(x.moduleFileName,D)}}function uG(e,t,n,i,s,o,c){var u;if(t===n)return!1;let f=c?.get(t.path,n.path,i,{});if(f?.isBlockedByPackageJsonDependencies!==void 0)return!f.isBlockedByPackageJsonDependencies;let g=$h(o),p=(u=o.getGlobalTypingsCacheLocation)==null?void 0:u.call(o),y=!!lb.forEachFileNameOfModule(t.fileName,n.fileName,o,!1,S=>{let x=e.getSourceFile(S);return(x===n||!x)&&wje(t.fileName,S,g,p)});if(s){let S=y&&s.allowsImportingSourceFile(n,o);return c?.setBlockedByPackageJsonDependencies(t.path,n.path,i,{},!S),S}return y}function wje(e,t,n,i){let s=Ld(t,c=>Mc(c)==="node_modules"?c:void 0),o=s&&Xr(n(s));return o===void 0||ts(n(e),o)||!!i&&ts(n(i),o)}function _G(e,t,n,i,s){var o,c;let u=Iw(t),f=n.autoImportFileExcludePatterns&&Ri(n.autoImportFileExcludePatterns,p=>{let y=tV(p,"","exclude");return y?ry(y,u):void 0});YSe(e.getTypeChecker(),e.getSourceFiles(),f,(p,y)=>s(p,y,e,!1));let g=i&&((o=t.getPackageJsonAutoImportProvider)==null?void 0:o.call(t));if(g){let p=So(),y=e.getTypeChecker();YSe(g.getTypeChecker(),g.getSourceFiles(),f,(S,x)=>{(x&&!e.getSourceFile(x.fileName)||!x&&!y.resolveName(S.name,void 0,1536,!1))&&s(S,x,g,!0)}),(c=t.log)==null||c.call(t,`forEachExternalModuleToImportFrom autoImportProvider: ${So()-p}`)}}function YSe(e,t,n,i){var s;let o=n&&(c=>n.some(u=>u.test(c)));for(let c of e.getAmbientModules())!c.name.includes("*")&&!(n&&((s=c.declarations)!=null&&s.every(u=>o(u.getSourceFile().fileName))))&&i(c,void 0);for(let c of t)K_(c)&&!o?.(c.fileName)&&i(e.getMergedSymbol(c.symbol),c)}function qA(e,t,n,i,s){var o,c,u,f,g;let p=So();(o=t.getPackageJsonAutoImportProvider)==null||o.call(t);let y=((c=t.getCachedExportInfoMap)==null?void 0:c.call(t))||lG({getCurrentProgram:()=>n,getPackageJsonAutoImportProvider:()=>{var C;return(C=t.getPackageJsonAutoImportProvider)==null?void 0:C.call(t)},getGlobalTypingsCacheLocation:()=>{var C;return(C=t.getGlobalTypingsCacheLocation)==null?void 0:C.call(t)}});if(y.isUsableByFile(e.path))return(u=t.log)==null||u.call(t,"getExportInfoMap: cache hit"),y;(f=t.log)==null||f.call(t,"getExportInfoMap: cache miss or empty; calculating new results");let S=n.getCompilerOptions(),x=0;try{_G(n,t,i,!0,(C,w,D,O)=>{++x%100===0&&s?.throwIfCancellationRequested();let z=new Map,V=D.getTypeChecker(),X=ML(C,V,S);X&&ZSe(X.symbol,V)&&y.add(e.path,X.symbol,X.exportKind===1?"default":"export=",C,w,X.exportKind,O,V),V.forEachExportAndPropertyOfModule(C,(J,ie)=>{J!==X?.symbol&&ZSe(J,V)&&Hp(z,ie)&&y.add(e.path,J,ie,C,w,0,O,V)})})}catch(C){throw y.clear(),C}return(g=t.log)==null||g.call(t,`getExportInfoMap: done in ${So()-p} ms`),y}function ML(e,t,n){let i=Aje(e,t);if(!i)return;let{symbol:s,exportKind:o}=i,c=RL(s,t,n);return c&&{symbol:s,exportKind:o,...c}}function ZSe(e,t){return!t.isUndefinedSymbol(e)&&!t.isUnknownSymbol(e)&&!Dw(e)&&!Pte(e)}function Aje(e,t){let n=t.resolveExternalModuleSymbol(e);if(n!==e)return{symbol:n,exportKind:2};let i=t.tryGetMemberInModuleExports("default",e);if(i)return{symbol:i,exportKind:1}}function RL(e,t,n){let i=cC(e);if(i)return{resolvedSymbol:i,name:i.name};let s=Nje(e);if(s!==void 0)return{resolvedSymbol:e,name:s};if(e.flags&2097152){let o=t.getImmediateAliasedSymbol(e);if(o&&o.parent)return RL(o,t,n)}return e.escapedName!=="default"&&e.escapedName!=="export="?{resolvedSymbol:e,name:e.getName()}:{resolvedSymbol:e,name:wL(e,n.target)}}function Nje(e){return e.declarations&&ba(e.declarations,t=>{var n;if(hc(t))return(n=Ur(wc(t.expression),Ie))==null?void 0:n.text;if(Eu(t))return E.assert(t.name.text==="default","Expected the specifier to be a default export"),t.propertyName&&t.propertyName.text})}var fG,pG,Ije=ze({"src/services/exportInfoMap.ts"(){"use strict";qr(),fG=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.Namespace=2]="Namespace",e[e.CommonJS=3]="CommonJS",e))(fG||{}),pG=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e[e.UMD=3]="UMD",e))(pG||{})}});function KSe(){let e=Vh(99,!1);function t(i,s,o){return Lje(n(i,s,o),i)}function n(i,s,o){let c=0,u=0,f=[],{prefix:g,pushTemplate:p}=jje(s);i=g+i;let y=g.length;p&&f.push(16),e.setText(i);let S=0,x=[],C=0;do{c=e.scan(),nC(c)||(w(),u=c);let D=e.getTokenEnd();if(Oje(e.getTokenStart(),D,y,zje(c),x),D>=i.length){let O=Fje(e,c,qo(f));O!==void 0&&(S=O)}}while(c!==1);function w(){switch(c){case 44:case 69:!rxe[u]&&e.reScanSlashToken()===14&&(c=14);break;case 30:u===80&&C++;break;case 32:C>0&&C--;break;case 133:case 154:case 150:case 136:case 155:C>0&&!o&&(c=80);break;case 16:f.push(c);break;case 19:f.length>0&&f.push(c);break;case 20:if(f.length>0){let D=qo(f);D===16?(c=e.reScanTemplateToken(!1),c===18?f.pop():E.assertEqual(c,17,"Should have been a template middle.")):(E.assertEqual(D,19,"Should have been an open brace"),f.pop())}break;default:if(!p_(c))break;(u===25||p_(u)&&p_(c)&&!Rje(u,c))&&(c=80)}}return{endOfLineState:S,spans:x}}return{getClassificationsForLine:t,getEncodedLexicalClassifications:n}}function Fje(e,t,n){switch(t){case 11:{if(!e.isUnterminated())return;let i=e.getTokenText(),s=i.length-1,o=0;for(;i.charCodeAt(s-o)===92;)o++;return o&1?i.charCodeAt(0)===34?3:2:void 0}case 3:return e.isUnterminated()?1:void 0;default:if(H0(t)){if(!e.isUnterminated())return;switch(t){case 18:return 5;case 15:return 4;default:return E.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+t)}}return n===16?6:void 0}}function Oje(e,t,n,i,s){if(i===8)return;e===0&&n>0&&(e+=n);let o=t-e;o>0&&s.push(e-n,o,i)}function Lje(e,t){let n=[],i=e.spans,s=0;for(let c=0;c=0){let p=u-s;p>0&&n.push({length:p,classification:4})}n.push({length:f,classification:Mje(g)}),s=u+f}let o=t.length-s;return o>0&&n.push({length:o,classification:4}),{entries:n,finalLexState:e.endOfLineState}}function Mje(e){switch(e){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function Rje(e,t){if(!EH(e))return!0;switch(t){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function jje(e){switch(e){case 3:return{prefix:`"\\ -`};case 2:return{prefix:`'\\ -`};case 1:return{prefix:`/* -`};case 4:return{prefix:"`\n"};case 5:return{prefix:`} -`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return E.assertNever(e)}}function Bje(e){switch(e){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function Jje(e){switch(e){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function zje(e){if(p_(e))return 3;if(Bje(e)||Jje(e))return 5;if(e>=19&&e<=79)return 10;switch(e){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return H0(e)?6:2}}function Yoe(e,t,n,i,s){return nxe(dG(e,t,n,i,s))}function exe(e,t){switch(t){case 267:case 263:case 264:case 262:case 231:case 218:case 219:e.throwIfCancellationRequested()}}function dG(e,t,n,i,s){let o=[];return n.forEachChild(function u(f){if(!(!f||!x7(s,f.pos,f.getFullWidth()))){if(exe(t,f.kind),Ie(f)&&!dc(f)&&i.has(f.escapedText)){let g=e.getSymbolAtLocation(f),p=g&&txe(g,eS(f),e);p&&c(f.getStart(n),f.getEnd(),p)}f.forEachChild(u)}}),{spans:o,endOfLineState:0};function c(u,f,g){let p=f-u;E.assert(p>0,`Classification had non-positive length of ${p}`),o.push(u),o.push(p),o.push(g)}}function txe(e,t,n){let i=e.getFlags();if(i&2885600)return i&32?11:i&384?12:i&524288?16:i&1536?t&4||t&1&&Vje(e)?14:void 0:i&2097152?txe(n.getAliasedSymbol(e),t,n):t&2?i&64?13:i&262144?15:void 0:void 0}function Vje(e){return ft(e.declarations,t=>Pc(t)&&fh(t)===1)}function Wje(e){switch(e){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function nxe(e){E.assert(e.spans.length%3===0);let t=e.spans,n=[];for(let i=0;i])*)(\/>)?)?/im,Z=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,ae=t.text.substr(J,ie),_e=B.exec(ae);if(!_e||!_e[3]||!(_e[3]in fP))return!1;let $=J;y($,_e[1].length),$+=_e[1].length,f($,_e[2].length,10),$+=_e[2].length,f($,_e[3].length,21),$+=_e[3].length;let H=_e[4],K=$;for(;;){let Se=Z.exec(H);if(!Se)break;let se=$+Se.index+Se[1].length;se>K&&(y(K,se-K),K=se),f(K,Se[2].length,22),K+=Se[2].length,Se[3].length&&(y(K,Se[3].length),K+=Se[3].length),f(K,Se[4].length,5),K+=Se[4].length,Se[5].length&&(y(K,Se[5].length),K+=Se[5].length),f(K,Se[6].length,24),K+=Se[6].length}$+=_e[4].length,$>K&&y(K,$-K),_e[5]&&(f($,_e[5].length,10),$+=_e[5].length);let oe=J+ie;return $=0),Z>0){let ae=ie||V(J.kind,J);ae&&f(B,Z,ae)}return!0}function z(J){switch(J.parent&&J.parent.kind){case 286:if(J.parent.tagName===J)return 19;break;case 287:if(J.parent.tagName===J)return 20;break;case 285:if(J.parent.tagName===J)return 21;break;case 291:if(J.parent.name===J)return 22;break}}function V(J,ie){if(p_(J))return 3;if((J===30||J===32)&&ie&&voe(ie.parent))return 10;if(vz(J)){if(ie){let B=ie.parent;if(J===64&&(B.kind===260||B.kind===172||B.kind===169||B.kind===291)||B.kind===226||B.kind===224||B.kind===225||B.kind===227)return 5}return 10}else{if(J===9)return 4;if(J===10)return 25;if(J===11)return ie&&ie.parent.kind===291?24:6;if(J===14)return 6;if(H0(J))return 6;if(J===12)return 23;if(J===80){if(ie){switch(ie.parent.kind){case 263:return ie.parent.name===ie?11:void 0;case 168:return ie.parent.name===ie?15:void 0;case 264:return ie.parent.name===ie?13:void 0;case 266:return ie.parent.name===ie?12:void 0;case 267:return ie.parent.name===ie?14:void 0;case 169:return ie.parent.name===ie?Hv(ie)?3:17:void 0}if(eh(ie.parent))return 3}return 2}}}function X(J){if(J&&PP(i,s,J.pos,J.getFullWidth())){exe(e,J.kind);for(let ie of J.getChildren(t))O(ie)||X(ie)}}}var rxe,ixe=ze({"src/services/classifier.ts"(){"use strict";qr(),rxe=sK([80,11,9,10,14,110,46,47,22,24,20,112,97],e=>e,()=>!0)}}),jL,Uje=ze({"src/services/documentHighlights.ts"(){"use strict";qr(),(e=>{function t($,H,K,oe,Se){let se=m_(K,oe);if(se.parent&&(Gd(se.parent)&&se.parent.tagName===se||tb(se.parent))){let{openingElement:Y,closingElement:ve}=se.parent.parent,xe=[Y,ve].map(({tagName:Me})=>n(Me,K));return[{fileName:K.fileName,highlightSpans:xe}]}return i(oe,se,$,H,Se)||s(se,K)}e.getDocumentHighlights=t;function n($,H){return{fileName:H.fileName,textSpan:g_($,H),kind:"none"}}function i($,H,K,oe,Se){let se=new Set(Se.map(Me=>Me.fileName)),Y=Eo.getReferenceEntriesForNode($,H,K,Se,oe,void 0,se);if(!Y)return;let ve=iP(Y.map(Eo.toHighlightSpan),Me=>Me.fileName,Me=>Me.span),xe=cu(K.useCaseSensitiveFileNames());return hs(gk(ve.entries(),([Me,ke])=>{if(!se.has(Me)){if(!K.redirectTargetsMap.has(xo(Me,K.getCurrentDirectory(),xe)))return;let he=K.getSourceFile(Me);Me=xr(Se,_t=>!!_t.redirectInfo&&_t.redirectInfo.redirectTarget===he).fileName,E.assert(se.has(Me))}return{fileName:Me,highlightSpans:ke}}))}function s($,H){let K=o($,H);return K&&[{fileName:H.fileName,highlightSpans:K}]}function o($,H){switch($.kind){case 101:case 93:return J2($.parent)?Z($.parent,H):void 0;case 107:return oe($.parent,$p,X);case 111:return oe($.parent,ZV,V);case 113:case 85:case 98:let se=$.kind===85?$.parent.parent:$.parent;return oe(se,V2,z);case 109:return oe($.parent,v8,O);case 84:case 90:return S8($.parent)||PC($.parent)?oe($.parent.parent.parent,v8,O):void 0;case 83:case 88:return oe($.parent,U4,D);case 99:case 117:case 92:return oe($.parent,Y=>$0(Y,!0),w);case 137:return K(Cc,[137]);case 139:case 153:return K(G0,[139,153]);case 135:return oe($.parent,cy,J);case 134:return Se(J($));case 127:return Se(ie($));case 103:return;default:return Uh($.kind)&&(ku($.parent)||uc($.parent))?Se(S($.kind,$.parent)):void 0}function K(se,Y){return oe($.parent,se,ve=>{var xe;return Ri((xe=Ur(ve,Rd))==null?void 0:xe.symbol.declarations,Me=>se(Me)?xr(Me.getChildren(H),ke=>gs(Y,ke.kind)):void 0)})}function oe(se,Y,ve){return Y(se)?Se(ve(se,H)):void 0}function Se(se){return se&&se.map(Y=>n(Y,H))}}function c($){return ZV($)?[$]:V2($)?es($.catchClause?c($.catchClause):$.tryBlock&&c($.tryBlock),$.finallyBlock&&c($.finallyBlock)):As($)?void 0:g($,c)}function u($){let H=$;for(;H.parent;){let K=H.parent;if(jv(K)||K.kind===312)return K;if(V2(K)&&K.tryBlock===H&&K.catchClause)return H;H=K}}function f($){return U4($)?[$]:As($)?void 0:g($,f)}function g($,H){let K=[];return $.forEachChild(oe=>{let Se=H(oe);Se!==void 0&&K.push(...cx(Se))}),K}function p($,H){let K=y(H);return!!K&&K===$}function y($){return Fn($,H=>{switch(H.kind){case 255:if($.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!$.label||_e(H,$.label.escapedText);default:return As(H)&&"quit"}})}function S($,H){return Ri(x(H,wx($)),K=>a6(K,$))}function x($,H){let K=$.parent;switch(K.kind){case 268:case 312:case 241:case 296:case 297:return H&64&&Zc($)?[...$.members,$]:K.statements;case 176:case 174:case 262:return[...K.parameters,...ei(K.parent)?K.parent.members:[]];case 263:case 231:case 264:case 187:let oe=K.members;if(H&15){let Se=xr(K.members,Cc);if(Se)return[...oe,...Se.parameters]}else if(H&64)return[...oe,K];return oe;case 210:return;default:E.assertNever(K,"Invalid container kind.")}}function C($,H,...K){return H&&gs(K,H.kind)?($.push(H),!0):!1}function w($){let H=[];if(C(H,$.getFirstToken(),99,117,92)&&$.kind===246){let K=$.getChildren();for(let oe=K.length-1;oe>=0&&!C(H,K[oe],117);oe--);}return Qt(f($.statement),K=>{p($,K)&&C(H,K.getFirstToken(),83,88)}),H}function D($){let H=y($);if(H)switch(H.kind){case 248:case 249:case 250:case 246:case 247:return w(H);case 255:return O(H)}}function O($){let H=[];return C(H,$.getFirstToken(),109),Qt($.caseBlock.clauses,K=>{C(H,K.getFirstToken(),84,90),Qt(f(K),oe=>{p($,oe)&&C(H,oe.getFirstToken(),83)})}),H}function z($,H){let K=[];if(C(K,$.getFirstToken(),113),$.catchClause&&C(K,$.catchClause.getFirstToken(),85),$.finallyBlock){let oe=Ya($,98,H);C(K,oe,98)}return K}function V($,H){let K=u($);if(!K)return;let oe=[];return Qt(c(K),Se=>{oe.push(Ya(Se,111,H))}),jv(K)&&Rv(K,Se=>{oe.push(Ya(Se,107,H))}),oe}function X($,H){let K=yf($);if(!K)return;let oe=[];return Rv(Vs(K.body,Ds),Se=>{oe.push(Ya(Se,107,H))}),Qt(c(K.body),Se=>{oe.push(Ya(Se,111,H))}),oe}function J($){let H=yf($);if(!H)return;let K=[];return H.modifiers&&H.modifiers.forEach(oe=>{C(K,oe,134)}),vs(H,oe=>{B(oe,Se=>{cy(Se)&&C(K,Se.getFirstToken(),135)})}),K}function ie($){let H=yf($);if(!H)return;let K=[];return vs(H,oe=>{B(oe,Se=>{nO(Se)&&C(K,Se.getFirstToken(),127)})}),K}function B($,H){H($),!As($)&&!ei($)&&!Wu($)&&!Pc($)&&!Xp($)&&!Ei($)&&vs($,K=>B(K,H))}function Z($,H){let K=ae($,H),oe=[];for(let Se=0;Se=se.end;xe--)if(!Md(H.text.charCodeAt(xe))){ve=!1;break}if(ve){oe.push({fileName:H.fileName,textSpan:Xc(se.getStart(),Y.end),kind:"reference"}),Se++;continue}}oe.push(n(K[Se],H))}return oe}function ae($,H){let K=[];for(;J2($.parent)&&$.parent.elseStatement===$;)$=$.parent;for(;;){let oe=$.getChildren(H);C(K,oe[0],101);for(let Se=oe.length-1;Se>=0&&!C(K,oe[Se],93);Se--);if(!$.elseStatement||!J2($.elseStatement))break;$=$.elseStatement}return K}function _e($,H){return!!Fn($.parent,K=>eb(K)?K.label.escapedText===H:"quit")}})(jL||(jL={}))}});function HA(e){return!!e.sourceFile}function Koe(e,t,n){return gG(e,t,n)}function gG(e,t="",n,i){let s=new Map,o=cu(!!e);function c(){let D=hs(s.keys()).filter(O=>O&&O.charAt(0)==="_").map(O=>{let z=s.get(O),V=[];return z.forEach((X,J)=>{HA(X)?V.push({name:J,scriptKind:X.sourceFile.scriptKind,refCount:X.languageServiceRefCount}):X.forEach((ie,B)=>V.push({name:J,scriptKind:B,refCount:ie.languageServiceRefCount}))}),V.sort((X,J)=>J.refCount-X.refCount),{bucket:O,sourceFiles:V}});return JSON.stringify(D,void 0,2)}function u(D){return typeof D.getCompilationSettings=="function"?D.getCompilationSettings():D}function f(D,O,z,V,X,J){let ie=xo(D,t,o),B=hG(u(O));return g(D,ie,O,B,z,V,X,J)}function g(D,O,z,V,X,J,ie,B){return x(D,O,z,V,X,J,!0,ie,B)}function p(D,O,z,V,X,J){let ie=xo(D,t,o),B=hG(u(O));return y(D,ie,O,B,z,V,X,J)}function y(D,O,z,V,X,J,ie,B){return x(D,O,u(z),V,X,J,!1,ie,B)}function S(D,O){let z=HA(D)?D:D.get(E.checkDefined(O,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return E.assert(O===void 0||!z||z.sourceFile.scriptKind===O,`Script kind should match provided ScriptKind:${O} and sourceFile.scriptKind: ${z?.sourceFile.scriptKind}, !entry: ${!z}`),z}function x(D,O,z,V,X,J,ie,B,Z){var ae,_e,$,H;B=K5(D,B);let K=u(z),oe=z===K?void 0:z,Se=B===6?100:La(K),se=typeof Z=="object"?Z:{languageVersion:Se,impliedNodeFormat:oe&&pA(O,(H=($=(_e=(ae=oe.getCompilerHost)==null?void 0:ae.call(oe))==null?void 0:_e.getModuleResolutionCache)==null?void 0:$.call(_e))==null?void 0:H.getPackageJsonInfoCache(),oe,K),setExternalModuleIndicator:Vw(K),jsDocParsingMode:n};se.languageVersion=Se,E.assertEqual(n,se.jsDocParsingMode);let Y=s.size,ve=ece(V,se.impliedNodeFormat),xe=T4(s,ve,()=>new Map);if(Wn){s.size>Y&&Wn.instant(Wn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:K.configFilePath,key:ve});let be=!Jl(O)&&$l(s,(_t,mt)=>mt!==ve&&_t.has(O)&&mt);be&&Wn.instant(Wn.Phase.Session,"documentRegistryBucketOverlap",{path:O,key1:be,key2:ve})}let Me=xe.get(O),ke=Me&&S(Me,B);if(!ke&&i){let be=i.getDocument(ve,O);be&&(E.assert(ie),ke={sourceFile:be,languageServiceRefCount:0},he())}if(ke)ke.sourceFile.version!==J&&(ke.sourceFile=s$(ke.sourceFile,X,J,X.getChangeRange(ke.sourceFile.scriptSnapshot)),i&&i.setDocument(ve,O,ke.sourceFile)),ie&&ke.languageServiceRefCount++;else{let be=lM(D,X,se,J,!1,B);i&&i.setDocument(ve,O,be),ke={sourceFile:be,languageServiceRefCount:1},he()}return E.assert(ke.languageServiceRefCount!==0),ke.sourceFile;function he(){if(!Me)xe.set(O,ke);else if(HA(Me)){let be=new Map;be.set(Me.sourceFile.scriptKind,Me),be.set(B,ke),xe.set(O,be)}else Me.set(B,ke)}}function C(D,O,z,V){let X=xo(D,t,o),J=hG(O);return w(X,J,z,V)}function w(D,O,z,V){let X=E.checkDefined(s.get(ece(O,V))),J=X.get(D),ie=S(J,z);ie.languageServiceRefCount--,E.assert(ie.languageServiceRefCount>=0),ie.languageServiceRefCount===0&&(HA(J)?X.delete(D):(J.delete(z),J.size===1&&X.set(D,df(J.values(),No))))}return{acquireDocument:f,acquireDocumentWithKey:g,updateDocument:p,updateDocumentWithKey:y,releaseDocument:C,releaseDocumentWithKey:w,getKeyForCompilationSettings:hG,getDocumentRegistryBucketKeyWithMode:ece,reportStats:c,getBuckets:()=>s}}function hG(e){return QW(e,EO)}function ece(e,t){return t?`${e}|${t}`:e}var qje=ze({"src/services/documentRegistry.ts"(){"use strict";qr()}});function tce(e,t,n,i,s,o,c){let u=Iw(i),f=cu(u),g=yG(t,n,f,c),p=yG(n,t,f,c);return er.ChangeTracker.with({host:i,formatContext:s,preferences:o},y=>{Gje(e,y,g,t,n,i.getCurrentDirectory(),u),$je(e,y,g,p,i,f)})}function yG(e,t,n,i){let s=n(e);return c=>{let u=i&&i.tryGetSourcePosition({fileName:c,pos:0}),f=o(u?u.fileName:c);return u?f===void 0?void 0:Hje(u.fileName,f,c,n):f};function o(c){if(n(c)===s)return t;let u=Kz(c,s,n);return u===void 0?void 0:t+"/"+u}}function Hje(e,t,n,i){let s=yP(e,t,i);return nce(Xr(n),s)}function Gje(e,t,n,i,s,o,c){let{configFile:u}=e.getCompilerOptions();if(!u)return;let f=Xr(u.fileName),g=tE(u);if(!g)return;rce(g,(x,C)=>{switch(C){case"files":case"include":case"exclude":{if(p(x)||C!=="include"||!Vu(x.initializer))return;let D=Ri(x.initializer.elements,z=>ca(z)?z.text:void 0);if(D.length===0)return;let O=Z5(f,[],D,c,o);ry(E.checkDefined(O.includeFilePattern),c).test(i)&&!ry(E.checkDefined(O.includeFilePattern),c).test(s)&&t.insertNodeAfter(u,Pa(x.initializer.elements),I.createStringLiteral(S(s)));return}case"compilerOptions":rce(x.initializer,(w,D)=>{let O=wW(D);E.assert(O?.type!=="listOrElement"),O&&(O.isFilePath||O.type==="list"&&O.element.isFilePath)?p(w):D==="paths"&&rce(w.initializer,z=>{if(Vu(z.initializer))for(let V of z.initializer.elements)y(V)})});return}});function p(x){let C=Vu(x.initializer)?x.initializer.elements:[x.initializer],w=!1;for(let D of C)w=y(D)||w;return w}function y(x){if(!ca(x))return!1;let C=nce(f,x.text),w=n(C);return w!==void 0?(t.replaceRangeWithText(u,axe(x,u),S(w)),!0):!1}function S(x){return Em(f,x,!c)}}function $je(e,t,n,i,s,o){let c=e.getSourceFiles();for(let u of c){let f=n(u.fileName),g=f??u.fileName,p=Xr(g),y=i(u.fileName),S=y||u.fileName,x=Xr(S),C=f!==void 0||y!==void 0;Yje(u,t,w=>{if(!Q_(w))return;let D=nce(x,w),O=n(D);return O===void 0?void 0:Cv(Em(p,O,o))},w=>{let D=e.getTypeChecker().getSymbolAtLocation(w);if(D?.declarations&&D.declarations.some(z=>lu(z)))return;let O=y!==void 0?sxe(w,WC(w.text,S,e.getCompilerOptions(),s),n,c):Qje(D,w,u,e,s,n);return O!==void 0&&(O.updated||C&&Q_(w.text))?lb.updateModuleSpecifier(e.getCompilerOptions(),u,o(g),O.newFileName,rS(e,s),w.text):void 0})}}function Xje(e,t){return Ys(Qr(e,t))}function nce(e,t){return Cv(Xje(e,t))}function Qje(e,t,n,i,s,o){if(e){let c=xr(e.declarations,Li).fileName,u=o(c);return u===void 0?{newFileName:c,updated:!1}:{newFileName:u,updated:!0}}else{let c=vd(n,t),u=s.resolveModuleNameLiterals||!s.resolveModuleNames?i.getResolvedModule(n,t.text,c):s.getResolvedModuleWithFailedLookupLocationsFromCache&&s.getResolvedModuleWithFailedLookupLocationsFromCache(t.text,n.fileName,c);return sxe(t,u,o,i.getSourceFiles())}}function sxe(e,t,n,i){if(!t)return;if(t.resolvedModule){let f=u(t.resolvedModule.resolvedFileName);if(f)return f}let s=Qt(t.failedLookupLocations,o)||Q_(e.text)&&Qt(t.failedLookupLocations,c);if(s)return s;return t.resolvedModule&&{newFileName:t.resolvedModule.resolvedFileName,updated:!1};function o(f){let g=n(f);return g&&xr(i,p=>p.fileName===g)?c(f):void 0}function c(f){return Sc(f,"/package.json")?void 0:u(f)}function u(f){let g=n(f);return g&&{newFileName:g,updated:!0}}}function Yje(e,t,n,i){for(let s of e.referencedFiles||Ve){let o=n(s.fileName);o!==void 0&&o!==e.text.slice(s.pos,s.end)&&t.replaceRangeWithText(e,s,o)}for(let s of e.imports){let o=i(s);o!==void 0&&o!==s.text&&t.replaceRangeWithText(e,axe(s,e),o)}}function axe(e,t){return Wf(e.getStart(t)+1,e.end-1)}function rce(e,t){if(xa(e))for(let n of e.properties)el(n)&&ca(n.name)&&t(n,n.name.text)}var Zje=ze({"src/services/getEditsForFileRename.ts"(){"use strict";qr()}});function X3(e,t){return{kind:e,isCaseSensitive:t}}function ice(e){let t=new Map,n=e.trim().split(".").map(i=>nBe(i.trim()));if(n.length===1&&n[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>X3(2,!0),getFullMatch:()=>X3(2,!0),patternContainsDots:!1};if(!n.some(i=>!i.subWordTextChunks.length))return{getFullMatch:(i,s)=>Kje(i,s,n,t),getMatchForLastSegmentOfPattern:i=>sce(i,Pa(n),t),patternContainsDots:n.length>1}}function Kje(e,t,n,i){if(!sce(t,Pa(n),i)||n.length-1>e.length)return;let o;for(let c=n.length-2,u=e.length-1;c>=0;c-=1,u-=1)o=lxe(o,sce(e[u],n[c],i));return o}function oxe(e,t){let n=t.get(e);return n||t.set(e,n=_ce(e)),n}function cxe(e,t,n){let i=rBe(e,t.textLowerCase);if(i===0)return X3(t.text.length===e.length?0:1,ts(e,t.text));if(t.isLowerCase){if(i===-1)return;let s=oxe(e,n);for(let o of s)if(ace(e,o,t.text,!0))return X3(2,ace(e,o,t.text,!1));if(t.text.length0)return X3(2,!0);if(t.characterSpans.length>0){let s=oxe(e,n),o=uxe(e,s,t,!1)?!0:uxe(e,s,t,!0)?!1:void 0;if(o!==void 0)return X3(3,o)}}}function sce(e,t,n){if(vG(t.totalTextChunk.text,o=>o!==32&&o!==42)){let o=cxe(e,t.totalTextChunk,n);if(o)return o}let i=t.subWordTextChunks,s;for(let o of i)s=lxe(s,cxe(e,o,n));return s}function lxe(e,t){return Mj([e,t],eBe)}function eBe(e,t){return e===void 0?1:t===void 0?-1:Io(e.kind,t.kind)||kv(!e.isCaseSensitive,!t.isCaseSensitive)}function ace(e,t,n,i,s={start:0,length:n.length}){return s.length<=t.length&&dxe(0,s.length,o=>tBe(n.charCodeAt(s.start+o),e.charCodeAt(t.start+o),i))}function tBe(e,t,n){return n?oce(e)===oce(t):e===t}function uxe(e,t,n,i){let s=n.characterSpans,o=0,c=0,u,f;for(;;){if(c===s.length)return!0;if(o===t.length)return!1;let g=t[o],p=!1;for(;c=65&&e<=90)return!0;if(e<127||!h7(e,99))return!1;let t=String.fromCharCode(e);return t===t.toUpperCase()}function _xe(e){if(e>=97&&e<=122)return!0;if(e<127||!h7(e,99))return!1;let t=String.fromCharCode(e);return t===t.toLowerCase()}function rBe(e,t){let n=e.length-t.length;for(let i=0;i<=n;i++)if(vG(t,(s,o)=>oce(e.charCodeAt(o+i))===s))return i;return-1}function oce(e){return e>=65&&e<=90?97+(e-65):e<127?e:String.fromCharCode(e).toLowerCase().charCodeAt(0)}function cce(e){return e>=48&&e<=57}function iBe(e){return u6(e)||_xe(e)||cce(e)||e===95||e===36}function sBe(e){let t=[],n=0,i=0;for(let s=0;s0&&(t.push(lce(e.substr(n,i))),i=0)}return i>0&&t.push(lce(e.substr(n,i))),t}function lce(e){let t=e.toLowerCase();return{text:e,textLowerCase:t,isLowerCase:e===t,characterSpans:uce(e)}}function uce(e){return fxe(e,!1)}function _ce(e){return fxe(e,!0)}function fxe(e,t){let n=[],i=0;for(let s=1;sfce(i)&&i!==95,t,n)}function aBe(e,t,n){return t!==n&&t+1t(e.charCodeAt(s),s))}var BL,cBe=ze({"src/services/patternMatcher.ts"(){"use strict";qr(),BL=(e=>(e[e.exact=0]="exact",e[e.prefix=1]="prefix",e[e.substring=2]="substring",e[e.camelCase=3]="camelCase",e))(BL||{})}});function mxe(e,t=!0,n=!1){let i={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},s=[],o,c,u,f=0,g=!1;function p(){return c=u,u=wu.scan(),u===19?f++:u===20&&f--,u}function y(){let J=wu.getTokenValue(),ie=wu.getTokenStart();return{fileName:J,pos:ie,end:ie+J.length}}function S(){o||(o=[]),o.push({ref:y(),depth:f})}function x(){s.push(y()),C()}function C(){f===0&&(g=!0)}function w(){let J=wu.getToken();return J===138?(J=p(),J===144&&(J=p(),J===11&&S()),!0):!1}function D(){if(c===25)return!1;let J=wu.getToken();if(J===102){if(J=p(),J===21){if(J=p(),J===11||J===15)return x(),!0}else{if(J===11)return x(),!0;if(J===156&&wu.lookAhead(()=>{let B=wu.scan();return B!==161&&(B===42||B===19||B===80||p_(B))})&&(J=p()),J===80||p_(J))if(J=p(),J===161){if(J=p(),J===11)return x(),!0}else if(J===64){if(z(!0))return!0}else if(J===28)J=p();else return!0;if(J===19){for(J=p();J!==20&&J!==1;)J=p();J===20&&(J=p(),J===161&&(J=p(),J===11&&x()))}else J===42&&(J=p(),J===130&&(J=p(),(J===80||p_(J))&&(J=p(),J===161&&(J=p(),J===11&&x()))))}return!0}return!1}function O(){let J=wu.getToken();if(J===95){if(C(),J=p(),J===156&&wu.lookAhead(()=>{let B=wu.scan();return B===42||B===19})&&(J=p()),J===19){for(J=p();J!==20&&J!==1;)J=p();J===20&&(J=p(),J===161&&(J=p(),J===11&&x()))}else if(J===42)J=p(),J===161&&(J=p(),J===11&&x());else if(J===102&&(J=p(),J===156&&wu.lookAhead(()=>{let B=wu.scan();return B===80||p_(B)})&&(J=p()),(J===80||p_(J))&&(J=p(),J===64&&z(!0))))return!0;return!0}return!1}function z(J,ie=!1){let B=J?p():wu.getToken();return B===149?(B=p(),B===21&&(B=p(),(B===11||ie&&B===15)&&x()),!0):!1}function V(){let J=wu.getToken();if(J===80&&wu.getTokenValue()==="define"){if(J=p(),J!==21)return!0;if(J=p(),J===11||J===15)if(J=p(),J===28)J=p();else return!0;if(J!==23)return!0;for(J=p();J!==24&&J!==1;)(J===11||J===15)&&x(),J=p();return!0}return!1}function X(){for(wu.setText(e),p();wu.getToken()!==1;){if(wu.getToken()===16){let J=[wu.getToken()];e:for(;bn(J);){let ie=wu.scan();switch(ie){case 1:break e;case 102:D();break;case 16:J.push(ie);break;case 19:bn(J)&&J.push(ie);break;case 20:bn(J)&&(qo(J)===16?wu.reScanTemplateToken(!1)===18&&J.pop():J.pop());break}}p()}w()||D()||O()||n&&(z(!1,!0)||V())||p()}wu.setText(void 0)}if(t&&X(),TW(i,e),kW(i,Fa),g){if(o)for(let J of o)s.push(J.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:void 0}}else{let J;if(o)for(let ie of o)ie.depth===0?(J||(J=[]),J.push(ie.ref.fileName)):s.push(ie.ref);return{referencedFiles:i.referencedFiles,typeReferenceDirectives:i.typeReferenceDirectives,libReferenceDirectives:i.libReferenceDirectives,importedFiles:s,isLibFile:!!i.hasNoDefaultLib,ambientExternalModules:J}}}var lBe=ze({"src/services/preProcess.ts"(){"use strict";qr()}});function pce(e){let t=cu(e.useCaseSensitiveFileNames()),n=e.getCurrentDirectory(),i=new Map,s=new Map;return{tryGetSourcePosition:u,tryGetGeneratedPosition:f,toLineColumnOffset:S,clearCache:x};function o(C){return xo(C,n,t)}function c(C,w){let D=o(C),O=s.get(D);if(O)return O;let z;if(e.getDocumentPositionMapper)z=e.getDocumentPositionMapper(C,w);else if(e.readFile){let V=y(C);z=V&&bG({getSourceFileLike:y,getCanonicalFileName:t,log:X=>e.log(X)},C,yU(V.text,Zg(V)),X=>!e.fileExists||e.fileExists(X)?e.readFile(X):void 0)}return s.set(D,z||YO),z||YO}function u(C){if(!Jl(C.fileName)||!g(C.fileName))return;let D=c(C.fileName).getSourcePosition(C);return!D||D===C?void 0:u(D)||D}function f(C){if(Jl(C.fileName))return;let w=g(C.fileName);if(!w)return;let D=e.getProgram();if(D.isSourceOfProjectReferenceRedirect(w.fileName))return;let O=D.getCompilerOptions(),z=lo(O),V=z?zu(z)+".d.ts":D5(C.fileName,D.getCompilerOptions(),n,D.getCommonSourceDirectory(),t);if(V===void 0)return;let X=c(V,C.fileName).getGeneratedPosition(C);return X===C?void 0:X}function g(C){let w=e.getProgram();if(!w)return;let D=o(C),O=w.getSourceFileByPath(D);return O&&O.resolvedPath===D?O:void 0}function p(C){let w=o(C),D=i.get(w);if(D!==void 0)return D||void 0;if(!e.readFile||e.fileExists&&!e.fileExists(w)){i.set(w,!1);return}let O=e.readFile(w),z=O?uBe(O):!1;return i.set(w,z),z||void 0}function y(C){return e.getSourceFileLike?e.getSourceFileLike(C):g(C)||p(C)}function S(C,w){return y(C).getLineAndCharacterOfPosition(w)}function x(){i.clear(),s.clear()}}function bG(e,t,n,i){let s=tse(n);if(s){let u=hxe.exec(s);if(u){if(u[1]){let f=u[1];return gxe(e,ene(Hl,f),t)}s=void 0}}let o=[];s&&o.push(s),o.push(t+".map");let c=s&&cs(s,Xr(t));for(let u of o){let f=cs(u,Xr(t)),g=i(f,c);if(os(g))return gxe(e,g,f);if(g!==void 0)return g||void 0}}function gxe(e,t,n){let i=vU(t);if(!(!i||!i.sources||!i.file||!i.mappings)&&!(i.sourcesContent&&i.sourcesContent.some(os)))return ise(e,i,n)}function uBe(e,t){return{text:e,lineMap:t,getLineAndCharacterOfPosition(n){return kk(Zg(this),n)}}}var hxe,_Be=ze({"src/services/sourcemaps.ts"(){"use strict";qr(),hxe=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function SG(e,t,n){var i;t.getSemanticDiagnostics(e,n);let s=[],o=t.getTypeChecker();!(e.impliedNodeFormat===1||$c(e.fileName,[".cts",".cjs"]))&&e.commonJsModuleIndicator&&(koe(t)||FH(t.getCompilerOptions()))&&fBe(e)&&s.push(vr(gBe(e.commonJsModuleIndicator),d.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));let u=Bu(e);if(CG.clear(),f(e),Fx(t.getCompilerOptions()))for(let g of e.imports){let p=aE(g),y=pBe(p);if(!y)continue;let S=(i=t.getResolvedModule(e,g.text,vd(e,g)))==null?void 0:i.resolvedModule,x=S&&t.getSourceFile(S.resolvedFileName);x&&x.externalModuleIndicator&&x.externalModuleIndicator!==!0&&hc(x.externalModuleIndicator)&&x.externalModuleIndicator.isExportEquals&&s.push(vr(y,d.Import_may_be_converted_to_a_default_import))}return Nr(s,e.bindSuggestionDiagnostics),Nr(s,t.getSuggestionDiagnostics(e,n)),s.sort((g,p)=>g.start-p.start);function f(g){if(u)yBe(g,o)&&s.push(vr(Ni(g.parent)?g.parent.name:g,d.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(uc(g)&&g.parent===e&&g.declarationList.flags&2&&g.declarationList.declarations.length===1){let y=g.declarationList.declarations[0].initializer;y&&T_(y,!0)&&s.push(vr(y,d.require_call_may_be_converted_to_an_import))}let p=fu.getJSDocTypedefNodes(g);for(let y of p)s.push(vr(y,d.JSDoc_typedef_may_be_converted_to_TypeScript_type));fu.parameterShouldGetTypeFromJSDoc(g)&&s.push(vr(g.name||g,d.JSDoc_types_may_be_moved_to_TypeScript_types))}kG(g)&&dBe(g,o,s),g.forEachChild(f)}}function fBe(e){return e.statements.some(t=>{switch(t.kind){case 243:return t.declarationList.declarations.some(n=>!!n.initializer&&T_(yxe(n.initializer),!0));case 244:{let{expression:n}=t;if(!Yn(n))return T_(n,!0);let i=mc(n);return i===1||i===2}default:return!1}})}function yxe(e){return Cr(e)?yxe(e.expression):e}function pBe(e){switch(e.kind){case 272:let{importClause:t,moduleSpecifier:n}=e;return t&&!t.name&&t.namedBindings&&t.namedBindings.kind===274&&ca(n)?t.namedBindings.name:void 0;case 271:return e.name;default:return}}function dBe(e,t,n){mBe(e,t)&&!CG.has(xxe(e))&&n.push(vr(!e.name&&Ni(e.parent)&&Ie(e.parent.name)?e.parent.name:e,d.This_may_be_converted_to_an_async_function))}function mBe(e,t){return!_E(e)&&e.body&&Ds(e.body)&&hBe(e.body,t)&&xG(e,t)}function xG(e,t){let n=t.getSignatureFromDeclaration(e),i=n?t.getReturnTypeOfSignature(n):void 0;return!!i&&!!t.getPromisedTypeOfPromise(i)}function gBe(e){return Yn(e)?e.left:e}function hBe(e,t){return!!Rv(e,n=>JL(n,t))}function JL(e,t){return $p(e)&&!!e.expression&&TG(e.expression,t)}function TG(e,t){if(!vxe(e)||!bxe(e)||!e.arguments.every(i=>Sxe(i,t)))return!1;let n=e.expression.expression;for(;vxe(n)||Cr(n);)if(Ws(n)){if(!bxe(n)||!n.arguments.every(i=>Sxe(i,t)))return!1;n=n.expression.expression}else n=n.expression;return!0}function vxe(e){return Ws(e)&&(TA(e,"then")||TA(e,"catch")||TA(e,"finally"))}function bxe(e){let t=e.expression.name.text,n=t==="then"?2:t==="catch"||t==="finally"?1:0;return e.arguments.length>n?!1:e.arguments.lengthi.kind===106||Ie(i)&&i.text==="undefined")}function Sxe(e,t){switch(e.kind){case 262:case 218:if(Sl(e)&1)return!1;case 219:CG.set(xxe(e),!0);case 106:return!0;case 80:case 211:{let i=t.getSymbolAtLocation(e);return i?t.isUndefinedSymbol(i)||ft(Cu(i,t).declarations,s=>As(s)||Q0(s)&&!!s.initializer&&As(s.initializer)):!1}default:return!1}}function xxe(e){return`${e.pos.toString()}:${e.end.toString()}`}function yBe(e,t){var n,i,s,o;if(uo(e)){if(Ni(e.parent)&&((n=e.symbol.members)!=null&&n.size))return!0;let c=t.getSymbolOfExpando(e,!1);return!!(c&&((i=c.exports)!=null&&i.size||(s=c.members)!=null&&s.size))}return al(e)?!!((o=e.symbol.members)!=null&&o.size):!1}function kG(e){switch(e.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var CG,vBe=ze({"src/services/suggestionDiagnostics.ts"(){"use strict";qr(),CG=new Map}});function dce(e,t){let n=[],i=t.compilerOptions?EG(t.compilerOptions,n):{},s=cM();for(let S in s)so(s,S)&&i[S]===void 0&&(i[S]=s[S]);for(let S of qW)i.verbatimModuleSyntax&&kxe.has(S.name)||(i[S.name]=S.transpileOptionValue);i.suppressOutputPathCheck=!0,i.allowNonTsExtensions=!0;let o=Yh(i),c={getSourceFile:S=>S===Ys(u)?f:void 0,writeFile:(S,x)=>{nc(S,".map")?(E.assertEqual(p,void 0,"Unexpected multiple source map outputs, file:",S),p=x):(E.assertEqual(g,void 0,"Unexpected multiple outputs, file:",S),g=x)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:S=>S,getCurrentDirectory:()=>"",getNewLine:()=>o,fileExists:S=>S===u,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},u=t.fileName||(t.compilerOptions&&t.compilerOptions.jsx?"module.tsx":"module.ts"),f=F8(u,e,{languageVersion:La(i),impliedNodeFormat:pA(xo(u,"",c.getCanonicalFileName),void 0,c,i),setExternalModuleIndicator:Vw(i),jsDocParsingMode:t.jsDocParsingMode??0});t.moduleName&&(f.moduleName=t.moduleName),t.renamedDependencies&&(f.renamedDependencies=new Map(Object.entries(t.renamedDependencies)));let g,p,y=b9([u],i,c);return t.reportDiagnostics&&(Nr(n,y.getSyntacticDiagnostics(f)),Nr(n,y.getOptionsDiagnostics())),y.emit(void 0,void 0,void 0,void 0,t.transformers),g===void 0?E.fail("Output generation failed"):{outputText:g,diagnostics:n,sourceMapText:p}}function Txe(e,t,n,i,s){let o=dce(e,{compilerOptions:t,fileName:n,reportDiagnostics:!!i,moduleName:s});return Nr(i,o.diagnostics),o.outputText}function EG(e,t){mce=mce||Fr(Cg,n=>typeof n.type=="object"&&!$l(n.type,i=>typeof i!="number")),e=DH(e);for(let n of mce){if(!so(e,n.name))continue;let i=e[n.name];os(i)?e[n.name]=SO(n,i,t):$l(n.type,s=>s===i)||t.push(sie(n))}return e}var kxe,mce,bBe=ze({"src/services/transpile.ts"(){"use strict";qr(),kxe=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function Cxe(e,t,n,i,s,o,c){let u=ice(i);if(!u)return Ve;let f=[],g=e.length===1?e[0]:void 0;for(let p of e)n.throwIfCancellationRequested(),!(o&&p.isDeclarationFile)&&(Exe(p,!!c,g)||p.getNamedDeclarations().forEach((y,S)=>{SBe(u,S,y,t,p.fileName,!!c,g,f)}));return f.sort(CBe),(s===void 0?f:f.slice(0,s)).map(EBe)}function Exe(e,t,n){return e!==n&&t&&(WA(e.path)||e.hasNoDefaultLib)}function SBe(e,t,n,i,s,o,c,u){let f=e.getMatchForLastSegmentOfPattern(t);if(f){for(let g of n)if(xBe(g,i,o,c))if(e.patternContainsDots){let p=e.getFullMatch(kBe(g),t);p&&u.push({name:t,fileName:s,matchKind:p.kind,isCaseSensitive:p.isCaseSensitive,declaration:g})}else u.push({name:t,fileName:s,matchKind:f.kind,isCaseSensitive:f.isCaseSensitive,declaration:g})}}function xBe(e,t,n,i){var s;switch(e.kind){case 273:case 276:case 271:let o=t.getSymbolAtLocation(e.name),c=t.getAliasedSymbol(o);return o.escapedName!==c.escapedName&&!((s=c.declarations)!=null&&s.every(u=>Exe(u.getSourceFile(),n,i)));default:return!0}}function TBe(e,t){let n=us(e);return!!n&&(Dxe(n,t)||n.kind===167&&gce(n.expression,t))}function gce(e,t){return Dxe(e,t)||Cr(e)&&(t.push(e.name.text),!0)&&gce(e.expression,t)}function Dxe(e,t){return Jd(e)&&(t.push(gp(e)),!0)}function kBe(e){let t=[],n=us(e);if(n&&n.kind===167&&!gce(n.expression,t))return Ve;t.shift();let i=tS(e);for(;i;){if(!TBe(i,t))return Ve;i=tS(i)}return t.reverse()}function CBe(e,t){return Io(e.matchKind,t.matchKind)||sP(e.name,t.name)}function EBe(e){let t=e.declaration,n=tS(t),i=n&&us(n);return{name:e.name,kind:db(t),kindModifiers:j3(t),matchKind:BL[e.matchKind],isCaseSensitive:e.isCaseSensitive,fileName:e.fileName,textSpan:g_(t),containerName:i?i.text:"",containerKind:i?db(n):""}}var DBe=ze({"src/services/navigateTo.ts"(){"use strict";qr()}}),hce={};Jn(hce,{getNavigateToItems:()=>Cxe});var Pxe=ze({"src/services/_namespaces/ts.NavigateTo.ts"(){"use strict";DBe()}});function wxe(e,t){AG=t,GA=e;try{return Kt(IBe(Fxe(e)),FBe)}finally{Nxe()}}function Axe(e,t){AG=t,GA=e;try{return Vxe(Fxe(e))}finally{Nxe()}}function Nxe(){GA=void 0,AG=void 0,$A=[],l0=void 0,NG=[]}function zL(e){return Q3(e.getText(GA))}function DG(e){return e.node.kind}function Ixe(e,t){e.children?e.children.push(t):e.children=[t]}function Fxe(e){E.assert(!$A.length);let t={node:e,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};l0=t;for(let n of e.statements)gT(n);return F1(),E.assert(!l0&&!$A.length),t}function hb(e,t){Ixe(l0,yce(e,t))}function yce(e,t){return{node:e,name:t||(ku(e)||ut(e)?us(e):void 0),additionalNodes:void 0,parent:l0,children:void 0,indent:l0.indent+1}}function Oxe(e){_6||(_6=new Map),_6.set(e,!0)}function Lxe(e){for(let t=0;t0;i--){let s=n[i];yb(e,s)}return[n.length-1,n[0]]}function yb(e,t){let n=yce(e,t);Ixe(l0,n),$A.push(l0),Ece.push(_6),_6=void 0,l0=n}function F1(){l0.children&&(PG(l0.children,l0),Sce(l0.children)),l0=$A.pop(),_6=Ece.pop()}function O1(e,t,n){yb(e,n),gT(t),F1()}function Rxe(e){e.initializer&&LBe(e.initializer)?(yb(e),vs(e.initializer,gT),F1()):O1(e,e.initializer)}function vce(e){let t=us(e);if(t===void 0)return!1;if(Na(t)){let n=t.expression;return gc(n)||R_(n)||vf(n)}return!!t}function gT(e){if(AG.throwIfCancellationRequested(),!(!e||mx(e)))switch(e.kind){case 176:let t=e;O1(t,t.body);for(let c of t.parameters)F_(c,t)&&hb(c);break;case 174:case 177:case 178:case 173:vce(e)&&O1(e,e.body);break;case 172:vce(e)&&Rxe(e);break;case 171:vce(e)&&hb(e);break;case 273:let n=e;n.name&&hb(n.name);let{namedBindings:i}=n;if(i)if(i.kind===274)hb(i);else for(let c of i.elements)hb(c);break;case 304:O1(e,e.name);break;case 305:let{expression:s}=e;Ie(s)?hb(e,s):hb(e);break;case 208:case 303:case 260:{let c=e;Ms(c.name)?gT(c.name):Rxe(c);break}case 262:let o=e.name;o&&Ie(o)&&Oxe(o.text),O1(e,e.body);break;case 219:case 218:O1(e,e.body);break;case 266:yb(e);for(let c of e.members)OBe(c)||hb(c);F1();break;case 263:case 231:case 264:yb(e);for(let c of e.members)gT(c);F1();break;case 267:O1(e,Uxe(e).body);break;case 277:{let c=e.expression,u=xa(c)||Ws(c)?c:Co(c)||uo(c)?c.body:void 0;u?(yb(e),gT(u),F1()):hb(e);break}case 281:case 271:case 181:case 179:case 180:case 265:hb(e);break;case 213:case 226:{let c=mc(e);switch(c){case 1:case 2:O1(e,e.right);return;case 6:case 3:{let u=e,f=u.left,g=c===3?f.expression:f,p=0,y;Ie(g.expression)?(Oxe(g.expression.text),y=g.expression):[p,y]=Mxe(u,g.expression),c===6?xa(u.right)&&u.right.properties.length>0&&(yb(u,y),vs(u.right,gT),F1()):uo(u.right)||Co(u.right)?O1(e,u.right,y):(yb(u,y),O1(e,u.right,f.name),F1()),Lxe(p);return}case 7:case 9:{let u=e,f=c===7?u.arguments[0]:u.arguments[0].expression,g=u.arguments[1],[p,y]=Mxe(e,f);yb(e,y),yb(e,nt(I.createIdentifier(g.text),g)),gT(e.arguments[2]),F1(),F1(),Lxe(p);return}case 5:{let u=e,f=u.left,g=f.expression;if(Ie(g)&&rh(f)!=="prototype"&&_6&&_6.has(g.text)){uo(u.right)||Co(u.right)?O1(e,u.right,g):Jv(f)&&(yb(u,g),O1(u.left,u.right,pw(f)),F1());return}break}case 4:case 0:case 8:break;default:E.assertNever(c)}}default:Z_(e)&&Qt(e.jsDoc,c=>{Qt(c.tags,u=>{mp(u)&&hb(u)})}),vs(e,gT)}}function PG(e,t){let n=new Map;xj(e,(i,s)=>{let o=i.name||us(i.node),c=o&&zL(o);if(!c)return!0;let u=n.get(c);if(!u)return n.set(c,i),!0;if(u instanceof Array){for(let f of u)if(jxe(f,i,s,t))return!1;return u.push(i),!0}else{let f=u;return jxe(f,i,s,t)?!1:(n.set(c,[f,i]),!0)}})}function PBe(e,t,n,i){function s(u){return uo(u)||al(u)||Ni(u)}let o=Yn(t.node)||Ws(t.node)?mc(t.node):0,c=Yn(e.node)||Ws(e.node)?mc(e.node):0;if(Y3[o]&&Y3[c]||s(e.node)&&Y3[o]||s(t.node)&&Y3[c]||Zc(e.node)&&bce(e.node)&&Y3[o]||Zc(t.node)&&Y3[c]||Zc(e.node)&&bce(e.node)&&s(t.node)||Zc(t.node)&&s(e.node)&&bce(e.node)){let u=e.additionalNodes&&qo(e.additionalNodes)||e.node;if(!Zc(e.node)&&!Zc(t.node)||s(e.node)||s(t.node)){let g=s(e.node)?e.node:s(t.node)?t.node:void 0;if(g!==void 0){let p=nt(I.createConstructorDeclaration(void 0,[],void 0),g),y=yce(p);y.indent=e.indent+1,y.children=e.node===g?e.children:t.children,e.children=e.node===g?es([y],t.children||[t]):es(e.children||[{...e}],[y])}else(e.children||t.children)&&(e.children=es(e.children||[{...e}],t.children||[t]),e.children&&(PG(e.children,e),Sce(e.children)));u=e.node=nt(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),e.node)}else e.children=es(e.children,t.children),e.children&&PG(e.children,e);let f=t.node;return i.children[n-1].node.end===u.end?nt(u,{pos:u.pos,end:f.end}):(e.additionalNodes||(e.additionalNodes=[]),e.additionalNodes.push(nt(I.createClassDeclaration(void 0,e.name||I.createIdentifier("__class__"),void 0,void 0,[]),t.node))),!0}return o!==0}function jxe(e,t,n,i){return PBe(e,t,n,i)?!0:wBe(e.node,t.node,i)?(ABe(e,t),!0):!1}function wBe(e,t,n){if(e.kind!==t.kind||e.parent!==t.parent&&!(Bxe(e,n)&&Bxe(t,n)))return!1;switch(e.kind){case 172:case 174:case 177:case 178:return zs(e)===zs(t);case 267:return Jxe(e,t)&&kce(e)===kce(t);default:return!0}}function bce(e){return!!(e.flags&16)}function Bxe(e,t){let n=Hd(e.parent)?e.parent.parent:e.parent;return n===t.node||gs(t.additionalNodes,n)}function Jxe(e,t){return!e.body||!t.body?e.body===t.body:e.body.kind===t.body.kind&&(e.body.kind!==267||Jxe(e.body,t.body))}function ABe(e,t){e.additionalNodes=e.additionalNodes||[],e.additionalNodes.push(t.node),t.additionalNodes&&e.additionalNodes.push(...t.additionalNodes),e.children=es(e.children,t.children),e.children&&(PG(e.children,e),Sce(e.children))}function Sce(e){e.sort(NBe)}function NBe(e,t){return sP(zxe(e.node),zxe(t.node))||Io(DG(e),DG(t))}function zxe(e){if(e.kind===267)return Wxe(e);let t=us(e);if(t&&Rc(t)){let n=P2(t);return n&&Ci(n)}switch(e.kind){case 218:case 219:case 231:return Hxe(e);default:return}}function xce(e,t){if(e.kind===267)return Q3(Wxe(e));if(t){let n=Ie(t)?t.text:ko(t)?`[${zL(t.argumentExpression)}]`:zL(t);if(n.length>0)return Q3(n)}switch(e.kind){case 312:let n=e;return Bc(n)?`"${p1(Mc(zu(Ys(n.fileName))))}"`:"";case 277:return hc(e)&&e.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return ty(e)&2048?"default":Hxe(e);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function IBe(e){let t=[];function n(s){if(i(s)&&(t.push(s),s.children))for(let o of s.children)n(o)}return n(e),t;function i(s){if(s.children)return!0;switch(DG(s)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return o(s);default:return!1}function o(c){if(!c.node.body)return!1;switch(DG(c.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function Vxe(e){return{text:xce(e.node,e.name),kind:db(e.node),kindModifiers:qxe(e.node),spans:Tce(e),nameSpan:e.name&&Cce(e.name),childItems:Kt(e.children,Vxe)}}function FBe(e){return{text:xce(e.node,e.name),kind:db(e.node),kindModifiers:qxe(e.node),spans:Tce(e),childItems:Kt(e.children,t)||NG,indent:e.indent,bolded:!1,grayed:!1};function t(n){return{text:xce(n.node,n.name),kind:db(n.node),kindModifiers:j3(n.node),spans:Tce(n),childItems:NG,indent:0,bolded:!1,grayed:!1}}}function Tce(e){let t=[Cce(e.node)];if(e.additionalNodes)for(let n of e.additionalNodes)t.push(Cce(n));return t}function Wxe(e){return lu(e)?Qc(e.name):kce(e)}function kce(e){let t=[gp(e.name)];for(;e.body&&e.body.kind===267;)e=e.body,t.push(gp(e.name));return t.join(".")}function Uxe(e){return e.body&&Pc(e.body)?Uxe(e.body):e}function OBe(e){return!e.name||e.name.kind===167}function Cce(e){return e.kind===312?fy(e):g_(e,GA)}function qxe(e){return e.parent&&e.parent.kind===260&&(e=e.parent),j3(e)}function Hxe(e){let{parent:t}=e;if(e.name&&HP(e.name)>0)return Q3(co(e.name));if(Ni(t))return Q3(co(t.name));if(Yn(t)&&t.operatorToken.kind===64)return zL(t.left).replace($xe,"");if(el(t))return zL(t.name);if(ty(e)&2048)return"default";if(ei(e))return"";if(Ws(t)){let n=Gxe(t.expression);if(n!==void 0){if(n=Q3(n),n.length>wG)return`${n} callback`;let i=Q3(Ri(t.arguments,s=>$a(s)?s.getText(GA):void 0).join(", "));return`${n}(${i}) callback`}}return""}function Gxe(e){if(Ie(e))return e.text;if(Cr(e)){let t=Gxe(e.expression),n=e.name.text;return t===void 0?n:`${t}.${n}`}else return}function LBe(e){switch(e.kind){case 219:case 218:case 231:return!0;default:return!1}}function Q3(e){return e=e.length>wG?e.substring(0,wG)+"...":e,e.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var $xe,wG,AG,GA,$A,l0,Ece,_6,NG,Y3,MBe=ze({"src/services/navigationBar.ts"(){"use strict";qr(),$xe=/\s+/g,wG=150,$A=[],Ece=[],NG=[],Y3={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),Dce={};Jn(Dce,{getNavigationBarItems:()=>wxe,getNavigationTree:()=>Axe});var Xxe=ze({"src/services/_namespaces/ts.NavigationBar.ts"(){"use strict";MBe()}});function Dg(e,t){IG.set(e,t)}function RBe(e,t){return hs(Tj(IG.values(),n=>{var i;return e.cancellationToken&&e.cancellationToken.isCancellationRequested()||!((i=n.kinds)!=null&&i.some(s=>L1(s,e.kind)))?void 0:n.getAvailableActions(e,t)}))}function jBe(e,t,n,i){let s=IG.get(t);return s&&s.getEditsForAction(e,n,i)}var IG,Qxe=ze({"src/services/refactorProvider.ts"(){"use strict";qr(),Vm(),IG=new Map}});function Yxe(e,t=!0){let{file:n,program:i}=e,s=mT(e),o=qi(n,s.start),c=o.parent&&ty(o.parent)&32&&t?o.parent:MA(o,n,s);if(!c||!Li(c.parent)&&!(Hd(c.parent)&&lu(c.parent.parent)))return{error:ds(d.Could_not_find_export_statement)};let u=i.getTypeChecker(),f=UBe(c.parent,u),g=ty(c)||(hc(c)&&!c.isExportEquals?2080:0),p=!!(g&2048);if(!(g&32)||!p&&f.exports.has("default"))return{error:ds(d.This_file_already_has_a_default_export)};let y=S=>Ie(S)&&u.getSymbolAtLocation(S)?void 0:{error:ds(d.Can_only_convert_named_export)};switch(c.kind){case 262:case 263:case 264:case 266:case 265:case 267:{let S=c;return S.name?y(S.name)||{exportNode:S,exportName:S.name,wasDefault:p,exportingModuleSymbol:f}:void 0}case 243:{let S=c;if(!(S.declarationList.flags&2)||S.declarationList.declarations.length!==1)return;let x=Da(S.declarationList.declarations);return x.initializer?(E.assert(!p,"Can't have a default flag here"),y(x.name)||{exportNode:S,exportName:x.name,wasDefault:p,exportingModuleSymbol:f}):void 0}case 277:{let S=c;return S.isExportEquals?void 0:y(S.expression)||{exportNode:S,exportName:S.expression,wasDefault:p,exportingModuleSymbol:f}}default:return}}function BBe(e,t,n,i,s){JBe(e,n,i,t.getTypeChecker()),zBe(t,n,i,s)}function JBe(e,{wasDefault:t,exportNode:n,exportName:i},s,o){if(t)if(hc(n)&&!n.isExportEquals){let c=n.expression,u=Zxe(c.text,c.text);s.replaceNode(e,n,I.createExportDeclaration(void 0,!1,I.createNamedExports([u])))}else s.delete(e,E.checkDefined(a6(n,90),"Should find a default keyword in modifier list"));else{let c=E.checkDefined(a6(n,95),"Should find an export keyword in modifier list");switch(n.kind){case 262:case 263:case 264:s.insertNodeAfter(e,c,I.createToken(90));break;case 243:let u=Da(n.declarationList.declarations);if(!Eo.Core.isSymbolReferencedInFile(i,o,e)&&!u.type){s.replaceNode(e,n,I.createExportDefault(E.checkDefined(u.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:s.deleteModifier(e,c),s.insertNodeAfter(e,n,I.createExportDefault(I.createIdentifier(i.text)));break;default:E.fail(`Unexpected exportNode kind ${n.kind}`)}}}function zBe(e,{wasDefault:t,exportName:n,exportingModuleSymbol:i},s,o){let c=e.getTypeChecker(),u=E.checkDefined(c.getSymbolAtLocation(n),"Export name should resolve to a symbol");Eo.Core.eachExportReference(e.getSourceFiles(),c,o,u,i,n.text,t,f=>{if(n===f)return;let g=f.getSourceFile();t?VBe(g,f,s,n.text):WBe(g,f,s)})}function VBe(e,t,n,i){let{parent:s}=t;switch(s.kind){case 211:n.replaceNode(e,t,I.createIdentifier(i));break;case 276:case 281:{let c=s;n.replaceNode(e,c,Pce(i,c.name.text));break}case 273:{let c=s;E.assert(c.name===t,"Import clause name should match provided ref");let u=Pce(i,t.text),{namedBindings:f}=c;if(!f)n.replaceNode(e,t,I.createNamedImports([u]));else if(f.kind===274){n.deleteRange(e,{pos:t.getStart(e),end:f.getStart(e)});let g=ca(c.parent.moduleSpecifier)?LH(c.parent.moduleSpecifier,e):1,p=o0(void 0,[Pce(i,t.text)],c.parent.moduleSpecifier,g);n.insertNodeAfter(e,c.parent,p)}else n.delete(e,t),n.insertNodeAtEndOfList(e,f.elements,u);break}case 205:let o=s;n.replaceNode(e,s,I.createImportTypeNode(o.argument,o.attributes,I.createIdentifier(i),o.typeArguments,o.isTypeOf));break;default:E.failBadSyntaxKind(s)}}function WBe(e,t,n){let i=t.parent;switch(i.kind){case 211:n.replaceNode(e,t,I.createIdentifier("default"));break;case 276:{let s=I.createIdentifier(i.name.text);i.parent.elements.length===1?n.replaceNode(e,i.parent,s):(n.delete(e,i),n.insertNodeBefore(e,i.parent,s));break}case 281:{n.replaceNode(e,i,Zxe("default",i.name.text));break}default:E.assertNever(i,`Unexpected parent kind ${i.kind}`)}}function Pce(e,t){return I.createImportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function Zxe(e,t){return I.createExportSpecifier(!1,e===t?void 0:I.createIdentifier(e),I.createIdentifier(t))}function UBe(e,t){if(Li(e))return e.symbol;let n=e.parent.symbol;return n.valueDeclaration&&Ov(n.valueDeclaration)?t.getMergedSymbol(n):n}var FG,VL,WL,qBe=ze({"src/services/refactors/convertExport.ts"(){"use strict";qr(),Vm(),FG="Convert export",VL={name:"Convert default export to named export",description:ds(d.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},WL={name:"Convert named export to default export",description:ds(d.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},Dg(FG,{kinds:[VL.kind,WL.kind],getAvailableActions:function(t){let n=Yxe(t,t.triggerReason==="invoked");if(!n)return Ve;if(!ph(n)){let i=n.wasDefault?VL:WL;return[{name:FG,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?[{name:FG,description:ds(d.Convert_default_export_to_named_export),actions:[{...VL,notApplicableReason:n.error},{...WL,notApplicableReason:n.error}]}]:Ve},getEditsForAction:function(t,n){E.assert(n===VL.name||n===WL.name,"Unexpected action name");let i=Yxe(t);return E.assert(i&&!ph(i),"Expected applicable refactor info"),{edits:er.ChangeTracker.with(t,o=>BBe(t.file,t.program,i,o,t.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function Kxe(e,t=!0){let{file:n}=e,i=mT(e),s=qi(n,i.start),o=t?Fn(s,kl):MA(s,n,i);if(!o||!kl(o))return{error:"Selection is not an import declaration."};let c=i.start+i.length,u=mb(o,o.parent,n);if(u&&c>u.getStart())return;let{importClause:f}=o;return f?f.namedBindings?f.namedBindings.kind===274?{convertTo:0,import:f.namedBindings}:eTe(e.program,f)?{convertTo:1,import:f.namedBindings}:{convertTo:2,import:f.namedBindings}:{error:ds(d.Could_not_find_namespace_import_or_named_imports)}:{error:ds(d.Could_not_find_import_clause)}}function eTe(e,t){return Fx(e.getCompilerOptions())&&XBe(t.parent.moduleSpecifier,e.getTypeChecker())}function HBe(e,t,n,i){let s=t.getTypeChecker();i.convertTo===0?GBe(e,s,n,i.import,Fx(t.getCompilerOptions())):nTe(e,t,n,i.import,i.convertTo===1)}function GBe(e,t,n,i,s){let o=!1,c=[],u=new Map;Eo.Core.eachSymbolReferenceInFile(i.name,t,e,y=>{if(!See(y.parent))o=!0;else{let S=tTe(y.parent).text;t.resolveName(S,y,67108863,!0)&&u.set(S,!0),E.assert($Be(y.parent)===y,"Parent expression should match id"),c.push(y.parent)}});let f=new Map;for(let y of c){let S=tTe(y).text,x=f.get(S);x===void 0&&f.set(S,x=u.has(S)?sS(S,e):S),n.replaceNode(e,y,I.createIdentifier(x))}let g=[];f.forEach((y,S)=>{g.push(I.createImportSpecifier(!1,y===S?void 0:I.createIdentifier(S),I.createIdentifier(y)))});let p=i.parent.parent;o&&!s?n.insertNodeAfter(e,p,wce(p,void 0,g)):n.replaceNode(e,p,wce(p,o?I.createIdentifier(i.name.text):void 0,g))}function tTe(e){return Cr(e)?e.name:e.right}function $Be(e){return Cr(e)?e.expression:e.left}function nTe(e,t,n,i,s=eTe(t,i.parent)){let o=t.getTypeChecker(),c=i.parent.parent,{moduleSpecifier:u}=c,f=new Set;i.elements.forEach(C=>{let w=o.getSymbolAtLocation(C.name);w&&f.add(w)});let g=u&&ca(u)?fu.moduleSpecifierToValidIdentifier(u.text,99):"module";function p(C){return!!Eo.Core.eachSymbolReferenceInFile(C.name,o,e,w=>{let D=o.resolveName(g,w,67108863,!0);return D?f.has(D)?Eu(w.parent):!0:!1})}let S=i.elements.some(p)?sS(g,e):g,x=new Set;for(let C of i.elements){let w=(C.propertyName||C.name).text;Eo.Core.eachSymbolReferenceInFile(C.name,o,e,D=>{let O=I.createPropertyAccessExpression(I.createIdentifier(S),w);sf(D.parent)?n.replaceNode(e,D.parent,I.createPropertyAssignment(D.text,O)):Eu(D.parent)?x.add(C):n.replaceNode(e,D,O)})}if(n.replaceNode(e,i,s?I.createIdentifier(S):I.createNamespaceImport(I.createIdentifier(S))),x.size){let C=hs(x.values(),w=>I.createImportSpecifier(w.isTypeOnly,w.propertyName&&I.createIdentifier(w.propertyName.text),I.createIdentifier(w.name.text)));n.insertNodeAfter(e,i.parent.parent,wce(c,void 0,C))}}function XBe(e,t){let n=t.resolveExternalModuleName(e);if(!n)return!1;let i=t.resolveExternalModuleSymbol(n);return n!==i}function wce(e,t,n){return I.createImportDeclaration(void 0,I.createImportClause(!1,t,n&&n.length?I.createNamedImports(n):void 0),e.moduleSpecifier,void 0)}var OG,UL,QBe=ze({"src/services/refactors/convertImport.ts"(){"use strict";qr(),Vm(),OG="Convert import",UL={0:{name:"Convert namespace import to named imports",description:ds(d.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:ds(d.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:ds(d.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},Dg(OG,{kinds:ox(UL).map(e=>e.kind),getAvailableActions:function(t){let n=Kxe(t,t.triggerReason==="invoked");if(!n)return Ve;if(!ph(n)){let i=UL[n.convertTo];return[{name:OG,description:i.description,actions:[i]}]}return t.preferences.provideRefactorNotApplicableReason?ox(UL).map(i=>({name:OG,description:i.description,actions:[{...i,notApplicableReason:n.error}]})):Ve},getEditsForAction:function(t,n){E.assert(ft(ox(UL),o=>o.name===n),"Unexpected action name");let i=Kxe(t);return E.assert(i&&!ph(i),"Expected applicable refactor info"),{edits:er.ChangeTracker.with(t,o=>HBe(t.file,t.program,o,i)),renameFilename:void 0,renameLocation:void 0}}})}});function rTe(e,t=!0){let{file:n,startPosition:i}=e,s=Bu(n),o=qi(n,i),c=oL(mT(e)),u=c.pos===c.end&&t,f=Y9(o,n,c.pos,c.end),g=Fn(o,O=>O.parent&&Ei(O)&&!vb(c,O.parent,n)&&(u||f));if(!g||!Ei(g))return{error:ds(d.Selection_is_not_a_valid_type_node)};let p=e.program.getTypeChecker(),y=tJe(g,s);if(y===void 0)return{error:ds(d.No_type_could_be_extracted_from_this_type_node)};let S=nJe(g,y);if(!Ei(S))return{error:ds(d.Selection_is_not_a_valid_type_node)};let x=[];(b1(S.parent)||kC(S.parent))&&c.end>g.end&&Nr(x,S.parent.types.filter(O=>Y9(O,n,c.pos,c.end)));let C=x.length>1?x:S,w=YBe(p,C,y,n);if(!w)return{error:ds(d.No_type_could_be_extracted_from_this_type_node)};let D=LG(p,C);return{isJS:s,selection:C,enclosingNode:y,typeParameters:w,typeElements:D}}function LG(e,t){if(t){if(ss(t)){let n=[];for(let i of t){let s=LG(e,i);if(!s)return;Nr(n,s)}return n}if(kC(t)){let n=[],i=new Map;for(let s of t.types){let o=LG(e,s);if(!o||!o.every(c=>c.name&&Hp(i,OA(c.name))))return;Nr(n,o)}return n}else{if(Hx(t))return LG(e,t.type);if(nf(t))return t.members}}}function vb(e,t,n){return DA(e,ma(n.text,t.pos),t.end)}function YBe(e,t,n,i){let s=[],o=cx(t),c={pos:o[0].pos,end:o[o.length-1].end};for(let f of o)if(u(f))return;return s;function u(f){if(Tp(f)){if(Ie(f.typeName)){let g=f.typeName,p=e.resolveName(g.text,g,262144,!0);for(let y of p?.declarations||Ve)if(Ko(y)&&y.getSourceFile()===i){if(y.name.escapedText===g.escapedText&&vb(y,c,i))return!0;if(vb(n,y,i)&&!vb(c,y,i)){lp(s,y);break}}}}else if(qx(f)){let g=Fn(f,p=>CC(p)&&vb(p.extendsType,f,i));if(!g||!vb(c,g,i))return!0}else if(ZF(f)||eO(f)){let g=Fn(f.parent,As);if(g&&g.type&&vb(g.type,f,i)&&!vb(c,g,i))return!0}else if(xC(f)){if(Ie(f.exprName)){let g=e.resolveName(f.exprName.text,f.exprName,111551,!1);if(g?.valueDeclaration&&vb(n,g.valueDeclaration,i)&&!vb(c,g.valueDeclaration,i))return!0}else if(Hv(f.exprName.left)&&!vb(c,f.parent,i))return!0}return i&&TC(f)&&Ka(i,f.pos).line===Ka(i,f.end).line&&$n(f,1),vs(f,u)}}function ZBe(e,t,n,i){let{enclosingNode:s,typeParameters:o}=i,{firstTypeNode:c,lastTypeNode:u,newTypeNode:f}=Ace(i),g=I.createTypeAliasDeclaration(void 0,n,o.map(p=>I.updateTypeParameterDeclaration(p,p.modifiers,p.name,p.constraint,void 0)),f);e.insertNodeBefore(t,s,BV(g),!0),e.replaceNodeRange(t,c,u,I.createTypeReferenceNode(n,o.map(p=>I.createTypeReferenceNode(p.name,void 0))),{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.ExcludeWhitespace})}function KBe(e,t,n,i){var s;let{enclosingNode:o,typeParameters:c,typeElements:u}=i,f=I.createInterfaceDeclaration(void 0,n,c,void 0,u);nt(f,(s=u[0])==null?void 0:s.parent),e.insertNodeBefore(t,o,BV(f),!0);let{firstTypeNode:g,lastTypeNode:p}=Ace(i);e.replaceNodeRange(t,g,p,I.createTypeReferenceNode(n,c.map(y=>I.createTypeReferenceNode(y.name,void 0))),{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.ExcludeWhitespace})}function eJe(e,t,n,i,s){var o;cx(s.selection).forEach(C=>{$n(C,7168)});let{enclosingNode:c,typeParameters:u}=s,{firstTypeNode:f,lastTypeNode:g,newTypeNode:p}=Ace(s),y=I.createJSDocTypedefTag(I.createIdentifier("typedef"),I.createJSDocTypeExpression(p),I.createIdentifier(i)),S=[];Qt(u,C=>{let w=wk(C),D=I.createTypeParameterDeclaration(void 0,C.name),O=I.createJSDocTemplateTag(I.createIdentifier("template"),w&&Vs(w,q2),[D]);S.push(O)});let x=I.createJSDocComment(void 0,I.createNodeArray(es(S,[y])));if(Qp(c)){let C=c.getStart(n),w=c0(t.host,(o=t.formatContext)==null?void 0:o.options);e.insertNodeAt(n,c.getStart(n),x,{suffix:w+w+n.text.slice(yL(n.text,C-1),C)})}else e.insertNodeBefore(n,c,x,!0);e.replaceNodeRange(n,f,g,I.createTypeReferenceNode(i,u.map(C=>I.createTypeReferenceNode(C.name,void 0))))}function Ace(e){return ss(e.selection)?{firstTypeNode:e.selection[0],lastTypeNode:e.selection[e.selection.length-1],newTypeNode:b1(e.selection[0].parent)?I.createUnionTypeNode(e.selection):I.createIntersectionTypeNode(e.selection)}:{firstTypeNode:e.selection,lastTypeNode:e.selection,newTypeNode:e.selection}}function tJe(e,t){return Fn(e,Ai)||(t?Fn(e,Qp):void 0)}function nJe(e,t){return Fn(e,n=>n===t?"quit":!!(b1(n.parent)||kC(n.parent)))??e}var MG,qL,HL,GL,rJe=ze({"src/services/refactors/extractType.ts"(){"use strict";qr(),Vm(),MG="Extract type",qL={name:"Extract to type alias",description:ds(d.Extract_to_type_alias),kind:"refactor.extract.type"},HL={name:"Extract to interface",description:ds(d.Extract_to_interface),kind:"refactor.extract.interface"},GL={name:"Extract to typedef",description:ds(d.Extract_to_typedef),kind:"refactor.extract.typedef"},Dg(MG,{kinds:[qL.kind,HL.kind,GL.kind],getAvailableActions:function(t){let n=rTe(t,t.triggerReason==="invoked");return n?ph(n)?t.preferences.provideRefactorNotApplicableReason?[{name:MG,description:ds(d.Extract_type),actions:[{...GL,notApplicableReason:n.error},{...qL,notApplicableReason:n.error},{...HL,notApplicableReason:n.error}]}]:Ve:[{name:MG,description:ds(d.Extract_type),actions:n.isJS?[GL]:_n([qL],n.typeElements&&HL)}]:Ve},getEditsForAction:function(t,n){let{file:i}=t,s=rTe(t);E.assert(s&&!ph(s),"Expected to find a range to extract");let o=sS("NewType",i),c=er.ChangeTracker.with(t,g=>{switch(n){case qL.name:return E.assert(!s.isJS,"Invalid actionName/JS combo"),ZBe(g,i,o,s);case GL.name:return E.assert(s.isJS,"Invalid actionName/JS combo"),eJe(g,t,i,o,s);case HL.name:return E.assert(!s.isJS&&!!s.typeElements,"Invalid actionName/JS combo"),KBe(g,i,o,s);default:E.fail("Unexpected action name")}}),u=i.fileName,f=BA(c,u,o,!1);return{edits:c,renameFilename:u,renameLocation:f}}})}});function ph(e){return e.error!==void 0}function L1(e,t){return t?e.substr(0,t.length)===t:!0}var iJe=ze({"src/services/refactors/helpers.ts"(){"use strict"}});function iTe(e,t,n,i){var s,o;let c=i.getTypeChecker(),u=m_(e,t),f=u.parent;if(Ie(u)){if(Jw(f)&&eE(f)&&Ie(f.name)){if(((s=c.getMergedSymbol(f.symbol).declarations)==null?void 0:s.length)!==1)return{error:ds(d.Variables_with_multiple_declarations_cannot_be_inlined)};if(sTe(f))return;let g=aTe(f,c,e);return g&&{references:g,declaration:f,replacement:f.initializer}}if(n){let g=c.resolveName(u.text,u,111551,!1);if(g=g&&c.getMergedSymbol(g),((o=g?.declarations)==null?void 0:o.length)!==1)return{error:ds(d.Variables_with_multiple_declarations_cannot_be_inlined)};let p=g.declarations[0];if(!Jw(p)||!eE(p)||!Ie(p.name)||sTe(p))return;let y=aTe(p,c,e);return y&&{references:y,declaration:p,replacement:p.initializer}}return{error:ds(d.Could_not_find_variable_to_inline)}}}function sTe(e){let t=Vs(e.parent.parent,uc);return ft(t.modifiers,Wx)}function aTe(e,t,n){let i=[],s=Eo.Core.eachSymbolReferenceInFile(e.name,t,n,o=>{if(Eo.isWriteAccessForReference(o)||Eu(o.parent)||hc(o.parent)||xC(o.parent)||DP(e,o.pos))return!0;i.push(o)});return i.length===0||s?void 0:i}function sJe(e,t){t=jo(t);let{parent:n}=e;return ut(n)&&(dE(t){for(let y of c)p.replaceNode(n,y,sJe(y,f));p.delete(n,u)})}}})}});function oJe(e,t,n,i,s,o,c){let u=t.getTypeChecker(),f=QL(e,n.all,u),g=zce(e,t,c,s);i.createNewFile(e,g,cJe(e,f,i,n,t,s,g,o)),Nce(t,i,e.fileName,g,$h(s))}function cJe(e,t,n,i,s,o,c,u){let f=s.getTypeChecker(),g=GI(e.statements,Up);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&t.oldImportsNeededByTargetFile.size===0)return $L(e,i.ranges,n),[...g,...i.all];let p=!iG(c,s,o,!!e.commonJsModuleIndicator),y=Df(e,u),S=Lce(e,t.oldFileImportsFromTargetFile,c,s,o,p,y);S&&J3(n,e,S,!0,u),Ice(e,i.all,n,t.unusedImportsFromOldFile,f),$L(e,i.ranges,n),Fce(n,s,o,e,t.movedSymbols,c,y);let x=lJe(e,t.oldImportsNeededByTargetFile,t.targetFileImportsFromOldFile,n,f,s,o,p,y),C=Mce(e,i.all,t.oldFileImportsFromTargetFile,p);return x.length&&C.length?[...g,...x,4,...C]:[...g,...x,...C]}function lJe(e,t,n,i,s,o,c,u,f){let g=[];for(let x of e.statements)ZA(x,C=>{_n(g,KA(C,YA(C),w=>t.has(s.getSymbolAtLocation(w))))});let p,y=[],S=pT();return n.forEach(x=>{if(x.declarations)for(let C of x.declarations){if(!YL(C))continue;let w=Bce(C);if(!w)continue;let D=zG(C);S(D)&&Jce(e,D,w,i,u),Mr(C,2048)?p=w:y.push(w.text)}}),_n(g,XL(e,p,y,Mc(e.fileName),o,c,u,f)),g}var QA,BG,JG,uJe=ze({"src/services/refactors/moveToNewFile.ts"(){"use strict";qr(),Vm(),QA="Move to a new file",BG=ds(d.Move_to_a_new_file),JG={name:QA,description:BG,kind:"refactor.move.newFile"},Dg(QA,{kinds:[JG.kind],getAvailableActions:function(t){let n=eN(t);return t.preferences.allowTextChangesInNewFiles&&n?[{name:QA,description:BG,actions:[JG]}]:t.preferences.provideRefactorNotApplicableReason?[{name:QA,description:BG,actions:[{...JG,notApplicableReason:ds(d.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve},getEditsForAction:function(t,n){E.assert(n===QA,"Wrong refactor invoked");let i=E.checkDefined(eN(t));return{edits:er.ChangeTracker.with(t,o=>oJe(t.file,t.program,i,o,t.host,t.preferences,t)),renameFilename:void 0,renameLocation:void 0}}})}});function oTe(e){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:e}}function _Je(e,t,n,i,s,o,c,u){let f=i.getTypeChecker();if(!c.fileExists(n))o.createNewFile(t,n,cTe(t,n,QL(t,s.all,f),o,s,i,c,u)),Nce(i,o,t.fileName,n,$h(c));else{let g=E.checkDefined(i.getSourceFile(n)),p=fu.createImportAdder(g,e.program,e.preferences,e.host);cTe(t,g,QL(t,s.all,f,AJe(g,f)),o,s,i,c,u,p)}}function cTe(e,t,n,i,s,o,c,u,f){let g=o.getTypeChecker(),p=GI(e.statements,Up);if(e.externalModuleIndicator===void 0&&e.commonJsModuleIndicator===void 0&&n.oldImportsNeededByTargetFile.size===0&&n.targetFileImportsFromOldFile.size===0&&typeof t=="string")return $L(e,s.ranges,i),[...p,...s.all];let y=typeof t=="string"?t:t.fileName,S=!iG(y,o,c,!!e.commonJsModuleIndicator),x=Df(e,u),C=Lce(e,n.oldFileImportsFromTargetFile,y,o,c,S,x);C&&J3(i,e,C,!0,u),Ice(e,s.all,i,n.unusedImportsFromOldFile,g),$L(e,s.ranges,i),Fce(i,o,c,e,n.movedSymbols,y,x);let w=fJe(e,y,n.oldImportsNeededByTargetFile,n.targetFileImportsFromOldFile,i,g,o,c,S,x,f),D=Mce(e,s.all,n.oldFileImportsFromTargetFile,S);return typeof t!="string"&&(t.statements.length>0?wJe(i,o,D,t,s):i.insertNodesAtEndOfFile(t,D,!1),w.length>0&&J3(i,t,w,!0,u)),f&&f.writeFixes(i,x),w.length&&D.length?[...p,...w,4,...D]:[...p,...w,...D]}function fJe(e,t,n,i,s,o,c,u,f,g,p){let y=[];if(p)n.forEach((D,O)=>{try{p.addImportFromExportedSymbol(Cu(O,o),D)}catch{for(let z of e.statements)ZA(z,V=>{_n(y,KA(V,I.createStringLiteral(YA(V).text),X=>n.has(o.getSymbolAtLocation(X))))})}});else{let D=c.getSourceFile(t);for(let O of e.statements)ZA(O,z=>{var V;let X=YA(z),J=c.getResolvedModule(e,X.text,vd(e,X)),ie=(V=J?.resolvedModule)==null?void 0:V.resolvedFileName;if(ie&&D){let B=zO(c.getCompilerOptions(),D,D.path,ie,rS(c,u));_n(y,KA(z,dT(B,g),Z=>n.has(o.getSymbolAtLocation(Z))))}else _n(y,KA(z,I.createStringLiteral(YA(z).text),B=>n.has(o.getSymbolAtLocation(B))))})}let S=c.getSourceFile(t),x,C=[],w=pT();return i.forEach(D=>{if(D.declarations)for(let O of D.declarations){if(!YL(O))continue;let z=Bce(O);if(!z)continue;let V=zG(O);w(V)&&Jce(e,V,z,s,f),p&&o.isUnknownSymbol(D)?p.addImportFromExportedSymbol(Cu(D,o)):Mr(O,2048)?x=z:C.push(z.text)}}),S?_n(y,XL(S,x,C,e.fileName,c,u,f,g)):_n(y,XL(e,x,C,e.fileName,c,u,f,g))}function Nce(e,t,n,i,s){let o=e.getCompilerOptions().configFile;if(!o)return;let c=Ys(Qr(n,"..",i)),u=yP(o.fileName,c,s),f=o.statements[0]&&Ur(o.statements[0].expression,xa),g=f&&xr(f.properties,p=>el(p)&&ca(p.name)&&p.name.text==="files");g&&Vu(g.initializer)&&t.insertNodeInListAfter(o,Pa(g.initializer.elements),I.createStringLiteral(u),g.initializer.elements)}function $L(e,t,n){for(let{first:i,afterLast:s}of t)n.deleteNodeRangeExcludingEnd(e,i,s)}function Ice(e,t,n,i,s){for(let o of e.statements)gs(t,o)||ZA(o,c=>Rce(e,c,n,u=>i.has(s.getSymbolAtLocation(u))))}function Fce(e,t,n,i,s,o,c){let u=t.getTypeChecker();for(let f of t.getSourceFiles())if(f!==i)for(let g of f.statements)ZA(g,p=>{if(u.getSymbolAtLocation(YA(p))!==i.symbol)return;let y=D=>{let O=Ma(D.parent)?dL(u,D.parent):Cu(u.getSymbolAtLocation(D),u);return!!O&&s.has(O)};Rce(f,p,e,y);let S=V0(Xr(i.path),o),x=zO(t.getCompilerOptions(),f,f.path,S,rS(t,n)),C=KA(p,dT(x,c),y);C&&e.insertNodeAfter(f,g,C);let w=pJe(p);w&&dJe(e,f,u,s,x,w,p,c)})}function pJe(e){switch(e.kind){case 272:return e.importClause&&e.importClause.namedBindings&&e.importClause.namedBindings.kind===274?e.importClause.namedBindings.name:void 0;case 271:return e.name;case 260:return Ur(e.name,Ie);default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function dJe(e,t,n,i,s,o,c,u){let f=fu.moduleSpecifierToValidIdentifier(s,99),g=!1,p=[];if(Eo.Core.eachSymbolReferenceInFile(o,n,t,y=>{Cr(y.parent)&&(g=g||!!n.resolveName(f,y,67108863,!0),i.has(n.getSymbolAtLocation(y.parent.name))&&p.push(y))}),p.length){let y=g?sS(f,t):f;for(let S of p)e.replaceNode(t,S,I.createIdentifier(y));e.insertNodeAfter(t,c,mJe(c,f,s,u))}}function mJe(e,t,n,i){let s=I.createIdentifier(t),o=dT(n,i);switch(e.kind){case 272:return I.createImportDeclaration(void 0,I.createImportClause(!1,void 0,I.createNamespaceImport(s)),o,void 0);case 271:return I.createImportEqualsDeclaration(void 0,!1,s,I.createExternalModuleReference(o));case 260:return I.createVariableDeclaration(s,void 0,void 0,Oce(o));default:return E.assertNever(e,`Unexpected node kind ${e.kind}`)}}function Oce(e){return I.createCallExpression(I.createIdentifier("require"),void 0,[e])}function YA(e){return e.kind===272?e.moduleSpecifier:e.kind===271?e.moduleReference.expression:e.initializer.arguments[0]}function ZA(e,t){if(kl(e))ca(e.moduleSpecifier)&&t(e);else if(Kl(e))Bm(e.moduleReference)&&$a(e.moduleReference.expression)&&t(e);else if(uc(e))for(let n of e.declarationList.declarations)n.initializer&&T_(n.initializer,!0)&&t(n)}function Lce(e,t,n,i,s,o,c){let u,f=[];return t.forEach(g=>{g.escapedName==="default"?u=I.createIdentifier(_L(g)):f.push(g.name)}),XL(e,u,f,n,i,s,o,c)}function XL(e,t,n,i,s,o,c,u){let f=V0(Xr(e.path),i),g=zO(s.getCompilerOptions(),e,e.path,f,rS(s,o));if(c){let p=n.map(y=>I.createImportSpecifier(!1,void 0,I.createIdentifier(y)));return Coe(t,p,g,u)}else{E.assert(!t,"No default import should exist");let p=n.map(y=>I.createBindingElement(void 0,void 0,y));return p.length?lTe(I.createObjectBindingPattern(p),void 0,Oce(dT(g,u))):void 0}}function lTe(e,t,n,i=2){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(e,void 0,t,n)],i))}function Mce(e,t,n,i){return oa(t,s=>{if(_Te(s)&&!uTe(e,s,i)&&Vce(s,o=>{var c;return n.has(E.checkDefined((c=Ur(o,Rd))==null?void 0:c.symbol))})){let o=yJe(jo(s),i);if(o)return o}return jo(s)})}function uTe(e,t,n,i){var s;return n?!Il(t)&&Mr(t,32)||!!(i&&e.symbol&&((s=e.symbol.exports)!=null&&s.has(i.escapedText))):!!e.symbol&&!!e.symbol.exports&&jce(t).some(o=>e.symbol.exports.has(Yo(o)))}function Rce(e,t,n,i){switch(t.kind){case 272:gJe(e,t,n,i);break;case 271:i(t.name)&&n.delete(e,t);break;case 260:hJe(e,t,n,i);break;default:E.assertNever(t,`Unexpected import decl kind ${t.kind}`)}}function gJe(e,t,n,i){if(!t.importClause)return;let{name:s,namedBindings:o}=t.importClause,c=!s||i(s),u=!o||(o.kind===274?i(o.name):o.elements.length!==0&&o.elements.every(f=>i(f.name)));if(c&&u)n.delete(e,t);else if(s&&c&&n.delete(e,s),o){if(u)n.replaceNode(e,t.importClause,I.updateImportClause(t.importClause,t.importClause.isTypeOnly,s,void 0));else if(o.kind===275)for(let f of o.elements)i(f.name)&&n.delete(e,f)}}function hJe(e,t,n,i){let{name:s}=t;switch(s.kind){case 80:i(s)&&(t.initializer&&T_(t.initializer,!0)?n.delete(e,Tl(t.parent)&&bn(t.parent.declarations)===1?t.parent.parent:t):n.delete(e,s));break;case 207:break;case 206:if(s.elements.every(o=>Ie(o.name)&&i(o.name)))n.delete(e,Tl(t.parent)&&t.parent.declarations.length===1?t.parent.parent:t);else for(let o of s.elements)Ie(o.name)&&i(o.name)&&n.delete(e,o.name);break}}function _Te(e){return E.assert(Li(e.parent),"Node parent should be a SourceFile"),hTe(e)||uc(e)}function yJe(e,t){return t?[vJe(e)]:bJe(e)}function vJe(e){let t=Yp(e)?es([I.createModifier(95)],Pv(e)):void 0;switch(e.kind){case 262:return I.updateFunctionDeclaration(e,t,e.asteriskToken,e.name,e.typeParameters,e.parameters,e.type,e.body);case 263:let n=G2(e)?U0(e):void 0;return I.updateClassDeclaration(e,es(n,t),e.name,e.typeParameters,e.heritageClauses,e.members);case 243:return I.updateVariableStatement(e,t,e.declarationList);case 267:return I.updateModuleDeclaration(e,t,e.name,e.body);case 266:return I.updateEnumDeclaration(e,t,e.name,e.members);case 265:return I.updateTypeAliasDeclaration(e,t,e.name,e.typeParameters,e.type);case 264:return I.updateInterfaceDeclaration(e,t,e.name,e.typeParameters,e.heritageClauses,e.members);case 271:return I.updateImportEqualsDeclaration(e,t,e.isTypeOnly,e.name,e.moduleReference);case 244:return E.fail();default:return E.assertNever(e,`Unexpected declaration kind ${e.kind}`)}}function bJe(e){return[e,...jce(e).map(fTe)]}function fTe(e){return I.createExpressionStatement(I.createBinaryExpression(I.createPropertyAccessExpression(I.createIdentifier("exports"),I.createIdentifier(e)),64,I.createIdentifier(e)))}function jce(e){switch(e.kind){case 262:case 263:return[e.name.text];case 243:return Ri(e.declarationList.declarations,t=>Ie(t.name)?t.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Ve;case 244:return E.fail("Can't export an ExpressionStatement");default:return E.assertNever(e,`Unexpected decl kind ${e.kind}`)}}function KA(e,t,n){switch(e.kind){case 272:{let i=e.importClause;if(!i)return;let s=i.name&&n(i.name)?i.name:void 0,o=i.namedBindings&&SJe(i.namedBindings,n);return s||o?I.createImportDeclaration(void 0,I.createImportClause(i.isTypeOnly,s,o),jo(t),void 0):void 0}case 271:return n(e.name)?e:void 0;case 260:{let i=xJe(e.name,n);return i?lTe(i,e.type,Oce(t),e.parent.flags):void 0}default:return E.assertNever(e,`Unexpected import kind ${e.kind}`)}}function SJe(e,t){if(e.kind===274)return t(e.name)?e:void 0;{let n=e.elements.filter(i=>t(i.name));return n.length?I.createNamedImports(n):void 0}}function xJe(e,t){switch(e.kind){case 80:return t(e)?e:void 0;case 207:return e;case 206:{let n=e.elements.filter(i=>i.propertyName||!Ie(i.name)||t(i.name));return n.length?I.createObjectBindingPattern(n):void 0}}}function Bce(e){return Il(e)?Ur(e.expression.left.name,Ie):Ur(e.name,Ie)}function zG(e){switch(e.kind){case 260:return e.parent.parent;case 208:return zG(Vs(e.parent.parent,t=>Ni(t)||Ma(t)));default:return e}}function Jce(e,t,n,i,s){if(!uTe(e,t,s,n))if(s)Il(t)||i.insertExportModifier(e,t);else{let o=jce(t);o.length!==0&&i.insertNodesAfter(e,t,o.map(fTe))}}function zce(e,t,n,i){let s=t.getTypeChecker(),o=eN(n),c;if(o){c=QL(e,o.all,s);let u=Xr(e.fileName),f=Lx(e.fileName);return Qr(u,EJe(DJe(c.oldFileImportsFromTargetFile,c.movedSymbols),f,u,i))+f}return""}function TJe(e){let{file:t}=e,n=oL(mT(e)),{statements:i}=t,s=Qo(i,g=>g.end>n.pos);if(s===-1)return;let o=i[s],c=yTe(t,o);c&&(s=c.start);let u=Qo(i,g=>g.end>=n.end,s);u!==-1&&n.end<=i[u].getStart()&&u--;let f=yTe(t,i[u]);return f&&(u=f.end),{toMove:i.slice(s,u===-1?i.length:u+1),afterLast:u===-1?void 0:i[u+1]}}function eN(e){let t=TJe(e);if(t===void 0)return;let n=[],i=[],{toMove:s,afterLast:o}=t;return Ej(s,kJe,(c,u)=>{for(let f=c;f!!t.initializer&&T_(t.initializer,!0));default:return!1}}function QL(e,t,n,i=new Set){let s=new Set,o=new Map,c=new Set,u=xr(t,S=>!!(S.transformFlags&2)),f=y(u);f&&o.set(f,!1);for(let S of t)Vce(S,x=>{s.add(E.checkDefined(Il(x)?n.getSymbolAtLocation(x.expression.left):x.symbol,"Need a symbol here"))});let g=new Set;for(let S of t)pTe(S,n,(x,C)=>{if(x.declarations){if(i.has(Cu(x,n))){g.add(x);return}for(let w of x.declarations)if(dTe(w)){let D=o.get(x);o.set(x,(D===void 0||D)&&C)}else YL(w)&&PJe(w)===e&&!s.has(x)&&c.add(x)}});for(let S of o.keys())g.add(S);let p=new Set;for(let S of e.statements)gs(t,S)||(f&&S.transformFlags&2&&g.delete(f),pTe(S,n,x=>{s.has(x)&&p.add(x),g.delete(x)}));return{movedSymbols:s,targetFileImportsFromOldFile:c,oldFileImportsFromTargetFile:p,oldImportsNeededByTargetFile:o,unusedImportsFromOldFile:g};function y(S){if(S===void 0)return;let x=n.getJsxNamespace(S),C=n.resolveName(x,S,1920,!0);return C&&ft(C.declarations,dTe)?C:void 0}}function EJe(e,t,n,i){let s=e;for(let o=1;;o++){let c=Qr(n,s+t);if(!i.fileExists(c))return s;s=`${e}.${o}`}}function DJe(e,t){return pg(e,_L)||pg(t,_L)||"newFile"}function pTe(e,t,n){e.forEachChild(function i(s){if(Ie(s)&&!ih(s)){let o=t.getSymbolAtLocation(s);o&&n(o,h1(s))}else s.forEachChild(i)})}function Vce(e,t){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return t(e);case 243:return ba(e.declarationList.declarations,n=>gTe(n.name,t));case 244:{let{expression:n}=e;return Yn(n)&&mc(n)===1?t(e):void 0}}}function dTe(e){switch(e.kind){case 271:case 276:case 273:case 274:return!0;case 260:return mTe(e);case 208:return Ni(e.parent.parent)&&mTe(e.parent.parent);default:return!1}}function mTe(e){return Li(e.parent.parent.parent)&&!!e.initializer&&T_(e.initializer,!0)}function YL(e){return hTe(e)&&Li(e.parent)||Ni(e)&&Li(e.parent.parent.parent)}function PJe(e){return Ni(e)?e.parent.parent.parent:e.parent}function gTe(e,t){switch(e.kind){case 80:return t(Vs(e.parent,n=>Ni(n)||Ma(n)));case 207:case 206:return ba(e.elements,n=>xl(n)?void 0:gTe(n.name,t));default:return E.assertNever(e,`Unexpected name kind ${e.kind}`)}}function hTe(e){switch(e.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function wJe(e,t,n,i,s){var o;let c=new Set,u=(o=i.symbol)==null?void 0:o.exports;if(u){let g=t.getTypeChecker(),p=new Map;for(let y of s.all)_Te(y)&&Mr(y,32)&&Vce(y,S=>{var x;let C=Rd(S)?(x=u.get(S.symbol.escapedName))==null?void 0:x.declarations:void 0,w=ba(C,D=>Kc(D)?D:Eu(D)?Ur(D.parent.parent,Kc):void 0);w&&w.moduleSpecifier&&p.set(w,(p.get(w)||new Set).add(S))});for(let[y,S]of hs(p))if(y.exportClause&&kp(y.exportClause)&&bn(y.exportClause.elements)){let x=y.exportClause.elements,C=Fr(x,w=>xr(Cu(w.symbol,g).declarations,D=>YL(D)&&S.has(D))===void 0);if(bn(C)===0){e.deleteNode(i,y),c.add(y);continue}bn(C)Kc(g)&&!!g.moduleSpecifier&&!c.has(g));f?e.insertNodesBefore(i,f,n,!0):e.insertNodesAfter(i,i.statements[i.statements.length-1],n)}function yTe(e,t){if(To(t)){let n=t.symbol.declarations;if(n===void 0||bn(n)<=1||!gs(n,t))return;let i=n[0],s=n[bn(n)-1],o=Ri(n,f=>Mn(f)===e&&Ai(f)?f:void 0),c=Qo(e.statements,f=>f.end>=s.end),u=Qo(e.statements,f=>f.end>=i.end);return{toMove:o,start:u,end:c}}}function AJe(e,t){let n=new Set;for(let i of e.imports){let s=aE(i);if(kl(s)&&s.importClause&&s.importClause.namedBindings&&lh(s.importClause.namedBindings))for(let o of s.importClause.namedBindings.elements){let c=t.getSymbolAtLocation(o.propertyName||o.name);c&&n.add(Cu(c,t))}if(p5(s.parent)&&Gp(s.parent.name))for(let o of s.parent.name.elements){let c=t.getSymbolAtLocation(o.propertyName||o.name);c&&n.add(Cu(c,t))}}return n}var ZL,VG,WG,NJe=ze({"src/services/refactors/moveToFile.ts"(){"use strict";Rbe(),qr(),Qxe(),ZL="Move to file",VG=ds(d.Move_to_file),WG={name:"Move to file",description:VG,kind:"refactor.move.file"},Dg(ZL,{kinds:[WG.kind],getAvailableActions:function(t,n){let i=eN(t);return n?t.preferences.allowTextChangesInNewFiles&&i?[{name:ZL,description:VG,actions:[WG]}]:t.preferences.provideRefactorNotApplicableReason?[{name:ZL,description:VG,actions:[{...WG,notApplicableReason:ds(d.Selection_is_not_a_valid_statement_or_statements)}]}]:Ve:Ve},getEditsForAction:function(t,n,i){E.assert(n===ZL,"Wrong refactor invoked");let s=E.checkDefined(eN(t)),{host:o,program:c}=t;E.assert(i,"No interactive refactor arguments available");let u=i.targetFile;return Xv(u)||O2(u)?o.fileExists(u)&&c.getSourceFile(u)===void 0?oTe(ds(d.Cannot_move_statements_to_the_selected_file)):{edits:er.ChangeTracker.with(t,g=>_Je(t,t.file,i.targetFile,t.program,s,g,t.host,t.preferences)),renameFilename:void 0,renameLocation:void 0}:oTe(ds(d.Cannot_move_to_file_selected_file_is_invalid))}})}});function IJe(e){let{file:t,startPosition:n,program:i}=e;return bTe(t,n,i)?[{name:UG,description:Wce,actions:[Uce]}]:Ve}function FJe(e){let{file:t,startPosition:n,program:i}=e,s=bTe(t,n,i);if(!s)return;let o=i.getTypeChecker(),c=s[s.length-1],u=c;switch(c.kind){case 173:{u=I.updateMethodSignature(c,c.modifiers,c.name,c.questionToken,c.typeParameters,g(s),c.type);break}case 174:{u=I.updateMethodDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.questionToken,c.typeParameters,g(s),c.type,c.body);break}case 179:{u=I.updateCallSignature(c,c.typeParameters,g(s),c.type);break}case 176:{u=I.updateConstructorDeclaration(c,c.modifiers,g(s),c.body);break}case 180:{u=I.updateConstructSignature(c,c.typeParameters,g(s),c.type);break}case 262:{u=I.updateFunctionDeclaration(c,c.modifiers,c.asteriskToken,c.name,c.typeParameters,g(s),c.type,c.body);break}default:return E.failBadSyntaxKind(c,"Unhandled signature kind in overload list conversion refactoring")}if(u===c)return;return{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,S=>{S.replaceNodeRange(t,s[0],s[s.length-1],u)})};function g(S){let x=S[S.length-1];return To(x)&&x.body&&(S=S.slice(0,S.length-1)),I.createNodeArray([I.createParameterDeclaration(void 0,I.createToken(26),"args",void 0,I.createUnionTypeNode(Kt(S,p)))])}function p(S){let x=Kt(S.parameters,y);return $n(I.createTupleTypeNode(x),ft(x,C=>!!bn(yC(C)))?0:1)}function y(S){E.assert(Ie(S.name));let x=nt(I.createNamedTupleMember(S.dotDotDotToken,S.name,S.questionToken,S.type||I.createKeywordTypeNode(133)),S),C=S.symbol&&S.symbol.getDocumentationComment(o);if(C){let w=oN(C);w.length&&v1(x,[{text:`* -${w.split(` -`).map(D=>` * ${D}`).join(` -`)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return x}}function vTe(e){switch(e.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function bTe(e,t,n){let i=qi(e,t),s=Fn(i,vTe);if(!s||To(s)&&s.body&&CA(s.body,t))return;let o=n.getTypeChecker(),c=s.symbol;if(!c)return;let u=c.declarations;if(bn(u)<=1||!hi(u,S=>Mn(S)===e)||!vTe(u[0]))return;let f=u[0].kind;if(!hi(u,S=>S.kind===f))return;let g=u;if(ft(g,S=>!!S.typeParameters||ft(S.parameters,x=>!!x.modifiers||!Ie(x.name))))return;let p=Ri(g,S=>o.getSignatureFromDeclaration(S));if(bn(p)!==bn(u))return;let y=o.getReturnTypeOfSignature(p[0]);if(hi(p,S=>o.getReturnTypeOfSignature(S)===y))return g}var UG,Wce,Uce,OJe=ze({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){"use strict";qr(),Vm(),UG="Convert overload list to single signature",Wce=ds(d.Convert_overload_list_to_single_signature),Uce={name:UG,description:Wce,kind:"refactor.rewrite.function.overloadList"},Dg(UG,{kinds:[Uce.kind],getEditsForAction:FJe,getAvailableActions:IJe})}});function LJe(e){let{file:t,startPosition:n,triggerReason:i}=e,s=STe(t,n,i==="invoked");return s?ph(s)?e.preferences.provideRefactorNotApplicableReason?[{name:qG,description:qce,actions:[{...KL,notApplicableReason:s.error},{...tN,notApplicableReason:s.error}]}]:Ve:[{name:qG,description:qce,actions:[s.addBraces?KL:tN]}]:Ve}function MJe(e,t){let{file:n,startPosition:i}=e,s=STe(n,i);E.assert(s&&!ph(s),"Expected applicable refactor info");let{expression:o,returnStatement:c,func:u}=s,f;if(t===KL.name){let p=I.createReturnStatement(o);f=I.createBlock([p],!0),l6(o,p,n,3,!0)}else if(t===tN.name&&c){let p=o||I.createVoidZero();f=vL(p)?I.createParenthesizedExpression(p):p,JA(c,f,n,3,!1),l6(c,f,n,3,!1),U3(c,f,n,3,!1)}else E.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,p=>{p.replaceNode(n,u.body,f)})}}function STe(e,t,n=!0,i){let s=qi(e,t),o=yf(s);if(!o)return{error:ds(d.Could_not_find_a_containing_arrow_function)};if(!Co(o))return{error:ds(d.Containing_function_is_not_an_arrow_function)};if(!(!Ef(o,s)||Ef(o.body,s)&&!n)){if(L1(KL.kind,i)&&ut(o.body))return{func:o,addBraces:!0,expression:o.body};if(L1(tN.kind,i)&&Ds(o.body)&&o.body.statements.length===1){let c=Da(o.body.statements);if($p(c)){let u=c.expression&&xa(uC(c.expression,!1))?I.createParenthesizedExpression(c.expression):c.expression;return{func:o,addBraces:!1,expression:u,returnStatement:c}}}}}var qG,qce,KL,tN,RJe=ze({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){"use strict";qr(),Vm(),qG="Add or remove braces in an arrow function",qce=ds(d.Add_or_remove_braces_in_an_arrow_function),KL={name:"Add braces to arrow function",description:ds(d.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},tN={name:"Remove braces from arrow function",description:ds(d.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},Dg(qG,{kinds:[tN.kind],getEditsForAction:MJe,getAvailableActions:LJe})}}),jJe={},BJe=ze({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){"use strict";OJe(),RJe()}});function JJe(e){let{file:t,startPosition:n,program:i,kind:s}=e,o=TTe(t,n,i);if(!o)return Ve;let{selectedVariableDeclaration:c,func:u}=o,f=[],g=[];if(L1(rN.kind,s)){let p=c||Co(u)&&Ni(u.parent)?void 0:ds(d.Could_not_convert_to_named_function);p?g.push({...rN,notApplicableReason:p}):f.push(rN)}if(L1(nN.kind,s)){let p=!c&&Co(u)?void 0:ds(d.Could_not_convert_to_anonymous_function);p?g.push({...nN,notApplicableReason:p}):f.push(nN)}if(L1(iN.kind,s)){let p=uo(u)?void 0:ds(d.Could_not_convert_to_arrow_function);p?g.push({...iN,notApplicableReason:p}):f.push(iN)}return[{name:Hce,description:ETe,actions:f.length===0&&e.preferences.provideRefactorNotApplicableReason?g:f}]}function zJe(e,t){let{file:n,startPosition:i,program:s}=e,o=TTe(n,i,s);if(!o)return;let{func:c}=o,u=[];switch(t){case nN.name:u.push(...qJe(e,c));break;case rN.name:let f=UJe(c);if(!f)return;u.push(...HJe(e,c,f));break;case iN.name:if(!uo(c))return;u.push(...GJe(e,c));break;default:return E.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:u}}function xTe(e){let t=!1;return e.forEachChild(function n(i){if(i6(i)){t=!0;return}!ei(i)&&!al(i)&&!uo(i)&&vs(i,n)}),t}function TTe(e,t,n){let i=qi(e,t),s=n.getTypeChecker(),o=WJe(e,s,i.parent);if(o&&!xTe(o.body)&&!s.containsArgumentsReference(o))return{selectedVariableDeclaration:!0,func:o};let c=yf(i);if(c&&(uo(c)||Co(c))&&!Ef(c.body,i)&&!xTe(c.body)&&!s.containsArgumentsReference(c))return uo(c)&&CTe(e,s,c)?void 0:{selectedVariableDeclaration:!1,func:c}}function VJe(e){return Ni(e)||Tl(e)&&e.declarations.length===1}function WJe(e,t,n){if(!VJe(n))return;let s=(Ni(n)?n:Da(n.declarations)).initializer;if(s&&(Co(s)||uo(s)&&!CTe(e,t,s)))return s}function kTe(e){if(ut(e)){let t=I.createReturnStatement(e),n=e.getSourceFile();return nt(t,e),z_(t),JA(e,t,n,void 0,!0),I.createBlock([t],!0)}else return e}function UJe(e){let t=e.parent;if(!Ni(t)||!eE(t))return;let n=t.parent,i=n.parent;if(!(!Tl(n)||!uc(i)||!Ie(t.name)))return{variableDeclaration:t,variableDeclarationList:n,statement:i,name:t.name}}function qJe(e,t){let{file:n}=e,i=kTe(t.body),s=I.createFunctionExpression(t.modifiers,t.asteriskToken,void 0,t.typeParameters,t.parameters,t.type,i);return er.ChangeTracker.with(e,o=>o.replaceNode(n,t,s))}function HJe(e,t,n){let{file:i}=e,s=kTe(t.body),{variableDeclaration:o,variableDeclarationList:c,statement:u,name:f}=n;HH(u);let g=Dv(o)&32|Ju(t),p=I.createModifiersFromModifierFlags(g),y=I.createFunctionDeclaration(bn(p)?p:void 0,t.asteriskToken,f,t.typeParameters,t.parameters,t.type,s);return c.declarations.length===1?er.ChangeTracker.with(e,S=>S.replaceNode(i,u,y)):er.ChangeTracker.with(e,S=>{S.delete(i,o),S.insertNodeAfter(i,u,y)})}function GJe(e,t){let{file:n}=e,s=t.body.statements[0],o;$Je(t.body,s)?(o=s.expression,z_(o),iS(s,o)):o=t.body;let c=I.createArrowFunction(t.modifiers,t.typeParameters,t.parameters,t.type,I.createToken(39),o);return er.ChangeTracker.with(e,u=>u.replaceNode(n,t,c))}function $Je(e,t){return e.statements.length===1&&$p(t)&&!!t.expression}function CTe(e,t,n){return!!n.name&&Eo.Core.isSymbolReferencedInFile(n.name,t,e)}var Hce,ETe,nN,rN,iN,XJe=ze({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){"use strict";qr(),Vm(),Hce="Convert arrow function or function expression",ETe=ds(d.Convert_arrow_function_or_function_expression),nN={name:"Convert to anonymous function",description:ds(d.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},rN={name:"Convert to named function",description:ds(d.Convert_to_named_function),kind:"refactor.rewrite.function.named"},iN={name:"Convert to arrow function",description:ds(d.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},Dg(Hce,{kinds:[nN.kind,rN.kind,iN.kind],getEditsForAction:zJe,getAvailableActions:JJe})}}),QJe={},YJe=ze({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){"use strict";XJe()}});function ZJe(e){let{file:t,startPosition:n}=e;return Bu(t)||!wTe(t,n,e.program.getTypeChecker())?Ve:[{name:tM,description:Qce,actions:[Yce]}]}function KJe(e,t){E.assert(t===tM,"Unexpected action name");let{file:n,startPosition:i,program:s,cancellationToken:o,host:c}=e,u=wTe(n,i,s.getTypeChecker());if(!u||!o)return;let f=tze(u,s,o);return f.valid?{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,p=>eze(n,s,c,p,u,f))}:{edits:[]}}function eze(e,t,n,i,s,o){let c=o.signature,u=Kt(FTe(s,t,n),p=>jo(p));if(c){let p=Kt(FTe(c,t,n),y=>jo(y));g(c,p)}g(s,u);let f=k4(o.functionCalls,(p,y)=>Io(p.pos,y.pos));for(let p of f)if(p.arguments&&p.arguments.length){let y=jo(_ze(s,p.arguments),!0);i.replaceNodeRange(Mn(p),Da(p.arguments),Pa(p.arguments),y,{leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Include})}function g(p,y){i.replaceNodeRangeWithNodes(e,Da(p.parameters),Pa(p.parameters),y,{joiner:", ",indentation:0,leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Include})}}function tze(e,t,n){let i=pze(e),s=Cc(e)?fze(e):[],o=ix([...i,...s],B0),c=t.getTypeChecker(),u=oa(o,y=>Eo.getReferenceEntriesForNode(-1,y,t,t.getSourceFiles(),n)),f=g(u);return hi(f.declarations,y=>gs(o,y))||(f.valid=!1),f;function g(y){let S={accessExpressions:[],typeUsages:[]},x={functionCalls:[],declarations:[],classReferences:S,valid:!0},C=Kt(i,p),w=Kt(s,p),D=Cc(e),O=Kt(i,z=>Gce(z,c));for(let z of y){if(z.kind===Eo.EntryKind.Span){x.valid=!1;continue}if(gs(O,p(z.node))){if(sze(z.node.parent)){x.signature=z.node.parent;continue}let X=PTe(z);if(X){x.functionCalls.push(X);continue}}let V=Gce(z.node,c);if(V&&gs(O,V)){let X=$ce(z);if(X){x.declarations.push(X);continue}}if(gs(C,p(z.node))||L3(z.node)){if(DTe(z))continue;let J=$ce(z);if(J){x.declarations.push(J);continue}let ie=PTe(z);if(ie){x.functionCalls.push(ie);continue}}if(D&&gs(w,p(z.node))){if(DTe(z))continue;let J=$ce(z);if(J){x.declarations.push(J);continue}let ie=nze(z);if(ie){S.accessExpressions.push(ie);continue}if(Zc(e.parent)){let B=rze(z);if(B){S.typeUsages.push(B);continue}}}x.valid=!1}return x}function p(y){let S=c.getSymbolAtLocation(y);return S&&Loe(S,c)}}function Gce(e,t){let n=cN(e);if(n){let i=t.getContextualTypeForObjectLiteralElement(n),s=i?.getSymbol();if(s&&!(lc(s)&6))return s}}function DTe(e){let t=e.node;if(E_(t.parent)||Rm(t.parent)||Kl(t.parent)||ly(t.parent)||Eu(t.parent)||hc(t.parent))return t}function $ce(e){if(ku(e.node.parent))return e.node}function PTe(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 213:case 214:let i=Ur(n,Dm);if(i&&i.expression===t)return i;break;case 211:let s=Ur(n,Cr);if(s&&s.parent&&s.name===t){let c=Ur(s.parent,Dm);if(c&&c.expression===s)return c}break;case 212:let o=Ur(n,ko);if(o&&o.parent&&o.argumentExpression===t){let c=Ur(o.parent,Dm);if(c&&c.expression===o)return c}break}}}function nze(e){if(e.node.parent){let t=e.node,n=t.parent;switch(n.kind){case 211:let i=Ur(n,Cr);if(i&&i.expression===t)return i;break;case 212:let s=Ur(n,ko);if(s&&s.expression===t)return s;break}}}function rze(e){let t=e.node;if(eS(t)===2||Mw(t.parent))return t}function wTe(e,t,n){let i=R3(e,t),s=_te(i);if(!ize(i)&&s&&aze(s,n)&&Ef(s,i)&&!(s.body&&Ef(s.body,i)))return s}function ize(e){let t=Fn(e,Lk);if(t){let n=Fn(t,i=>!Lk(i));return!!n&&To(n)}return!1}function sze(e){return xg(e)&&(Wu(e.parent)||nf(e.parent))}function aze(e,t){var n;if(!oze(e.parameters,t))return!1;switch(e.kind){case 262:return ATe(e)&&eM(e,t);case 174:if(xa(e.parent)){let i=Gce(e.name,t);return((n=i?.declarations)==null?void 0:n.length)===1&&eM(e,t)}return eM(e,t);case 176:return Zc(e.parent)?ATe(e.parent)&&eM(e,t):NTe(e.parent.parent)&&eM(e,t);case 218:case 219:return NTe(e.parent)}return!1}function eM(e,t){return!!e.body&&!t.isImplementationOfOverload(e)}function ATe(e){return e.name?!0:!!a6(e,90)}function oze(e,t){return lze(e)>=OTe&&hi(e,n=>cze(n,t))}function cze(e,t){if(fg(e)){let n=t.getTypeAtLocation(e);if(!t.isArrayType(n)&&!t.isTupleType(n))return!1}return!e.modifiers&&Ie(e.name)}function NTe(e){return Ni(e)&&Vk(e)&&Ie(e.name)&&!e.type}function Xce(e){return e.length>0&&i6(e[0].name)}function lze(e){return Xce(e)?e.length-1:e.length}function ITe(e){return Xce(e)&&(e=I.createNodeArray(e.slice(1),e.hasTrailingComma)),e}function uze(e,t){return Ie(t)&&gp(t)===e?I.createShorthandPropertyAssignment(e):I.createPropertyAssignment(e,t)}function _ze(e,t){let n=ITe(e.parameters),i=fg(Pa(n)),s=i?t.slice(0,n.length-1):t,o=Kt(s,(u,f)=>{let g=HG(n[f]),p=uze(g,u);return z_(p.name),el(p)&&z_(p.initializer),iS(u,p),p});if(i&&t.length>=n.length){let u=t.slice(n.length-1),f=I.createPropertyAssignment(HG(Pa(n)),I.createArrayLiteralExpression(u));o.push(f)}return I.createObjectLiteralExpression(o,!1)}function FTe(e,t,n){let i=t.getTypeChecker(),s=ITe(e.parameters),o=Kt(s,p),c=I.createObjectBindingPattern(o),u=y(s),f;hi(s,C)&&(f=I.createObjectLiteralExpression());let g=I.createParameterDeclaration(void 0,void 0,c,void 0,u,f);if(Xce(e.parameters)){let w=e.parameters[0],D=I.createParameterDeclaration(void 0,void 0,w.name,void 0,w.type);return z_(D.name),iS(w.name,D.name),w.type&&(z_(D.type),iS(w.type,D.type)),I.createNodeArray([D,g])}return I.createNodeArray([g]);function p(w){let D=I.createBindingElement(void 0,void 0,HG(w),fg(w)&&C(w)?I.createArrayLiteralExpression():w.initializer);return z_(D),w.initializer&&D.initializer&&iS(w.initializer,D.initializer),D}function y(w){let D=Kt(w,S);return Mm(I.createTypeLiteralNode(D),1)}function S(w){let D=w.type;!D&&(w.initializer||fg(w))&&(D=x(w));let O=I.createPropertySignature(void 0,HG(w),C(w)?I.createToken(58):w.questionToken,D);return z_(O),iS(w.name,O.name),w.type&&O.type&&iS(w.type,O.type),O}function x(w){let D=i.getTypeAtLocation(w);return H3(D,w,t,n)}function C(w){if(fg(w)){let D=i.getTypeAtLocation(w);return!i.isTupleType(D)}return i.isOptionalParameter(w)}}function HG(e){return gp(e.name)}function fze(e){switch(e.parent.kind){case 263:let t=e.parent;return t.name?[t.name]:[E.checkDefined(a6(t,90),"Nameless class declaration should be a default export")];case 231:let i=e.parent,s=e.parent.parent,o=i.name;return o?[o,s.name]:[s.name]}}function pze(e){switch(e.kind){case 262:return e.name?[e.name]:[E.checkDefined(a6(e,90),"Nameless function declaration should be a default export")];case 174:return[e.name];case 176:let n=E.checkDefined(Ya(e,137,e.getSourceFile()),"Constructor declaration should have constructor keyword");return e.parent.kind===231?[e.parent.parent.name,n]:[n];case 219:return[e.parent.name];case 218:return e.name?[e.name,e.parent.name]:[e.parent.name];default:return E.assertNever(e,`Unexpected function declaration kind ${e.kind}`)}}var tM,OTe,Qce,Yce,dze=ze({"src/services/refactors/convertParamsToDestructuredObject.ts"(){"use strict";qr(),Vm(),tM="Convert parameters to destructured object",OTe=1,Qce=ds(d.Convert_parameters_to_destructured_object),Yce={name:tM,description:Qce,kind:"refactor.rewrite.parameters.toDestructured"},Dg(tM,{kinds:[Yce.kind],getEditsForAction:KJe,getAvailableActions:ZJe})}}),mze={},gze=ze({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){"use strict";dze()}});function hze(e){let{file:t,startPosition:n}=e,i=LTe(t,n),s=Zce(i),o=ca(s),c={name:GG,description:$G,actions:[]};return o&&e.triggerReason!=="invoked"?Ve:mg(s)&&(o||Yn(s)&&Kce(s).isValidConcatenation)?(c.actions.push(XG),[c]):e.preferences.provideRefactorNotApplicableReason?(c.actions.push({...XG,notApplicableReason:ds(d.Can_only_convert_string_concatenations_and_string_literals)}),[c]):Ve}function LTe(e,t){let n=qi(e,t),i=Zce(n);return!Kce(i).isValidConcatenation&&C_(i.parent)&&Yn(i.parent.parent)?i.parent.parent:n}function yze(e,t){let{file:n,startPosition:i}=e,s=LTe(n,i);switch(t){case $G:return{edits:vze(e,s)};default:return E.fail("invalid action")}}function vze(e,t){let n=Zce(t),i=e.file,s=xze(Kce(n),i),o=n1(i.text,n.end);if(o){let c=o[o.length-1],u={pos:o[0].pos,end:c.end};return er.ChangeTracker.with(e,f=>{f.deleteRange(i,u),f.replaceNode(i,n,s)})}else return er.ChangeTracker.with(e,c=>c.replaceNode(i,n,s))}function bze(e){return!(e.operatorToken.kind===64||e.operatorToken.kind===65)}function Zce(e){return Fn(e.parent,n=>{switch(n.kind){case 211:case 212:return!1;case 228:case 226:return!(Yn(n.parent)&&bze(n.parent));default:return"quit"}})||e}function Kce(e){let t=c=>{if(!Yn(c))return{nodes:[c],operators:[],validOperators:!0,hasString:ca(c)||Vx(c)};let{nodes:u,operators:f,hasString:g,validOperators:p}=t(c.left);if(!(g||ca(c.right)||tO(c.right)))return{nodes:[c],operators:[],hasString:!1,validOperators:!0};let y=c.operatorToken.kind===40,S=p&&y;return u.push(c.right),f.push(c.operatorToken),{nodes:u,operators:f,hasString:!0,validOperators:S}},{nodes:n,operators:i,validOperators:s,hasString:o}=t(e);return{nodes:n,operators:i,isValidConcatenation:s&&o}}function Sze(e){return e.replace(/\\.|[$`]/g,t=>t[0]==="\\"?t:"\\"+t)}function MTe(e){let t=bC(e)||lre(e)?-2:-1;return Qc(e).slice(1,t)}function RTe(e,t){let n=[],i="",s="";for(;e{jTe(V);let J=X===S.templateSpans.length-1,ie=V.literal.text+(J?C:""),B=MTe(V.literal)+(J?w:"");return I.createTemplateSpan(V.expression,O&&J?I.createTemplateTail(ie,B):I.createTemplateMiddle(ie,B))});g.push(...z)}else{let z=O?I.createTemplateTail(C,w):I.createTemplateMiddle(C,w);s(D,z),g.push(I.createTemplateSpan(S,z))}}return I.createTemplateExpression(p,g)}function jTe(e){let t=e.getSourceFile();U3(e,e.expression,t,3,!1),JA(e.expression,e.expression,t,3,!1)}function Tze(e){return C_(e)&&(jTe(e),e=e.expression),e}var GG,$G,XG,BTe,JTe,kze=ze({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){"use strict";qr(),Vm(),GG="Convert to template string",$G=ds(d.Convert_to_template_string),XG={name:GG,description:$G,kind:"refactor.rewrite.string"},Dg(GG,{kinds:[XG.kind],getEditsForAction:yze,getAvailableActions:hze}),BTe=(e,t)=>(n,i)=>{n(i,s)=>{for(;i.length>0;){let o=i.shift();U3(e[o],s,t,3,!1),n(o,s)}}}}),Cze={},Eze=ze({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){"use strict";kze()}});function Dze(e){let t=zTe(e,e.triggerReason==="invoked");return t?ph(t)?e.preferences.provideRefactorNotApplicableReason?[{name:nM,description:ZG,actions:[{...KG,notApplicableReason:t.error}]}]:Ve:[{name:nM,description:ZG,actions:[KG]}]:Ve}function Pze(e,t){let n=zTe(e);return E.assert(n&&!ph(n),"Expected applicable refactor info"),{edits:er.ChangeTracker.with(e,s=>Mze(e.file,e.program.getTypeChecker(),s,n,t)),renameFilename:void 0,renameLocation:void 0}}function QG(e){return Yn(e)||DC(e)}function wze(e){return Il(e)||$p(e)||uc(e)}function YG(e){return QG(e)||wze(e)}function zTe(e,t=!0){let{file:n,program:i}=e,s=mT(e),o=s.length===0;if(o&&!t)return;let c=qi(n,s.start),u=nL(n,s.start+s.length),f=Xc(c.pos,u&&u.end>=c.pos?u.getEnd():c.getEnd()),g=o?Oze(c):Fze(c,f),p=g&&YG(g)?Lze(g):void 0;if(!p)return{error:ds(d.Could_not_find_convertible_access_expression)};let y=i.getTypeChecker();return DC(p)?Aze(p,y):Nze(p)}function Aze(e,t){let n=e.condition,i=tle(e.whenTrue);if(!i||t.isNullableType(t.getTypeAtLocation(i)))return{error:ds(d.Could_not_find_convertible_access_expression)};if((Cr(n)||Ie(n))&&ele(n,i.expression))return{finalExpression:i,occurrences:[n],expression:e};if(Yn(n)){let s=VTe(i.expression,n);return s?{finalExpression:i,occurrences:s,expression:e}:{error:ds(d.Could_not_find_matching_access_expressions)}}}function Nze(e){if(e.operatorToken.kind!==56)return{error:ds(d.Can_only_convert_logical_AND_access_chains)};let t=tle(e.right);if(!t)return{error:ds(d.Could_not_find_convertible_access_expression)};let n=VTe(t.expression,e.left);return n?{finalExpression:t,occurrences:n,expression:e}:{error:ds(d.Could_not_find_matching_access_expressions)}}function VTe(e,t){let n=[];for(;Yn(t)&&t.operatorToken.kind===56;){let s=ele(eo(e),eo(t.right));if(!s)break;n.push(s),e=s,t=t.left}let i=ele(e,t);return i&&n.push(i),n.length>0?n:void 0}function ele(e,t){if(!(!Ie(t)&&!Cr(t)&&!ko(t)))return Ize(e,t)?t:void 0}function Ize(e,t){for(;(Ws(e)||Cr(e)||ko(e))&&sN(e)!==sN(t);)e=e.expression;for(;Cr(e)&&Cr(t)||ko(e)&&ko(t);){if(sN(e)!==sN(t))return!1;e=e.expression,t=t.expression}return Ie(e)&&Ie(t)&&e.getText()===t.getText()}function sN(e){if(Ie(e)||vf(e))return e.getText();if(Cr(e))return sN(e.name);if(ko(e))return sN(e.argumentExpression)}function Fze(e,t){for(;e.parent;){if(YG(e)&&t.length!==0&&e.end>=t.start+t.length)return e;e=e.parent}}function Oze(e){for(;e.parent;){if(YG(e)&&!YG(e.parent))return e;e=e.parent}}function Lze(e){if(QG(e))return e;if(uc(e)){let t=Kk(e),n=t?.initializer;return n&&QG(n)?n:void 0}return e.expression&&QG(e.expression)?e.expression:void 0}function tle(e){if(e=eo(e),Yn(e))return tle(e.left);if((Cr(e)||ko(e)||Ws(e))&&!Tu(e))return e}function WTe(e,t,n){if(Cr(t)||ko(t)||Ws(t)){let i=WTe(e,t.expression,n),s=n.length>0?n[n.length-1]:void 0,o=s?.getText()===t.expression.getText();if(o&&n.pop(),Ws(t))return o?I.createCallChain(i,I.createToken(29),t.typeArguments,t.arguments):I.createCallChain(i,t.questionDotToken,t.typeArguments,t.arguments);if(Cr(t))return o?I.createPropertyAccessChain(i,I.createToken(29),t.name):I.createPropertyAccessChain(i,t.questionDotToken,t.name);if(ko(t))return o?I.createElementAccessChain(i,I.createToken(29),t.argumentExpression):I.createElementAccessChain(i,t.questionDotToken,t.argumentExpression)}return t}function Mze(e,t,n,i,s){let{finalExpression:o,occurrences:c,expression:u}=i,f=c[c.length-1],g=WTe(t,o,c);g&&(Cr(g)||ko(g)||Ws(g))&&(Yn(u)?n.replaceNodeRange(e,f,o,g):DC(u)&&n.replaceNode(e,u,I.createBinaryExpression(g,I.createToken(61),u.whenFalse)))}var nM,ZG,KG,Rze=ze({"src/services/refactors/convertToOptionalChainExpression.ts"(){"use strict";qr(),Vm(),nM="Convert to optional chain expression",ZG=ds(d.Convert_to_optional_chain_expression),KG={name:nM,description:ZG,kind:"refactor.rewrite.expression.optionalChain"},Dg(nM,{kinds:[KG.kind],getEditsForAction:Pze,getAvailableActions:Dze})}}),jze={},Bze=ze({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){"use strict";Rze()}});function UTe(e){let t=e.kind,n=nle(e.file,mT(e),e.triggerReason==="invoked"),i=n.targetRange;if(i===void 0){if(!n.errors||n.errors.length===0||!e.preferences.provideRefactorNotApplicableReason)return Ve;let C=[];return L1(d6.kind,t)&&C.push({name:f6,description:d6.description,actions:[{...d6,notApplicableReason:x(n.errors)}]}),L1(p6.kind,t)&&C.push({name:f6,description:p6.description,actions:[{...p6,notApplicableReason:x(n.errors)}]}),C}let s=qze(i,e);if(s===void 0)return Ve;let o=[],c=new Map,u,f=[],g=new Map,p,y=0;for(let{functionExtraction:C,constantExtraction:w}of s){if(L1(d6.kind,t)){let D=C.description;C.errors.length===0?c.has(D)||(c.set(D,!0),o.push({description:D,name:`function_scope_${y}`,kind:d6.kind})):u||(u={description:D,name:`function_scope_${y}`,notApplicableReason:x(C.errors),kind:d6.kind})}if(L1(p6.kind,t)){let D=w.description;w.errors.length===0?g.has(D)||(g.set(D,!0),f.push({description:D,name:`constant_scope_${y}`,kind:p6.kind})):p||(p={description:D,name:`constant_scope_${y}`,notApplicableReason:x(w.errors),kind:p6.kind})}y++}let S=[];return o.length?S.push({name:f6,description:ds(d.Extract_function),actions:o}):e.preferences.provideRefactorNotApplicableReason&&u&&S.push({name:f6,description:ds(d.Extract_function),actions:[u]}),f.length?S.push({name:f6,description:ds(d.Extract_constant),actions:f}):e.preferences.provideRefactorNotApplicableReason&&p&&S.push({name:f6,description:ds(d.Extract_constant),actions:[p]}),S.length?S:Ve;function x(C){let w=C[0].messageText;return typeof w!="string"&&(w=w.messageText),w}}function qTe(e,t){let i=nle(e.file,mT(e)).targetRange,s=/^function_scope_(\d+)$/.exec(t);if(s){let c=+s[1];return E.assert(isFinite(c),"Expected to parse a finite number from the function scope index"),Wze(i,e,c)}let o=/^constant_scope_(\d+)$/.exec(t);if(o){let c=+o[1];return E.assert(isFinite(c),"Expected to parse a finite number from the constant scope index"),Uze(i,e,c)}E.fail("Unrecognized action name")}function nle(e,t,n=!0){let{length:i}=t;if(i===0&&!n)return{errors:[Nl(e,t.start,i,eu.cannotExtractEmpty)]};let s=i===0&&n,o=_oe(e,t.start),c=nL(e,Dc(t)),u=o&&c&&n?Jze(o,c,e):t,f=s?_Ve(o):MA(o,e,u),g=s?f:MA(c,e,u),p=0,y;if(!f||!g)return{errors:[Nl(e,t.start,i,eu.cannotExtractRange)]};if(f.flags&16777216)return{errors:[Nl(e,t.start,i,eu.cannotExtractJSDoc)]};if(f.parent!==g.parent)return{errors:[Nl(e,t.start,i,eu.cannotExtractRange)]};if(f!==g){if(!GTe(f.parent))return{errors:[Nl(e,t.start,i,eu.cannotExtractRange)]};let z=[];for(let V of f.parent.statements){if(V===f||z.length){let X=O(V);if(X)return{errors:X};z.push(V)}if(V===g)break}return z.length?{targetRange:{range:z,facts:p,thisNode:y}}:{errors:[Nl(e,t.start,i,eu.cannotExtractRange)]}}if($p(f)&&!f.expression)return{errors:[Nl(e,t.start,i,eu.cannotExtractRange)]};let S=C(f),x=w(S)||O(S);if(x)return{errors:x};return{targetRange:{range:zze(S),facts:p,thisNode:y}};function C(z){if($p(z)){if(z.expression)return z.expression}else if(uc(z)||Tl(z)){let V=uc(z)?z.declarationList.declarations:z.declarations,X=0,J;for(let ie of V)ie.initializer&&(X++,J=ie.initializer);if(X===1)return J}else if(Ni(z)&&z.initializer)return z.initializer;return z}function w(z){if(Ie(Il(z)?z.expression:z))return[vr(z,eu.cannotExtractIdentifier)]}function D(z,V){let X=z;for(;X!==V;){if(X.kind===172){zs(X)&&(p|=32);break}else if(X.kind===169){yf(X).kind===176&&(p|=32);break}else X.kind===174&&zs(X)&&(p|=32);X=X.parent}}function O(z){let V;if((ae=>{ae[ae.None=0]="None",ae[ae.Break=1]="Break",ae[ae.Continue=2]="Continue",ae[ae.Return=4]="Return"})(V||(V={})),E.assert(z.pos<=z.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),E.assert(!dd(z.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!Ai(z)&&!(mg(z)&&HTe(z))&&!ole(z))return[vr(z,eu.statementOrExpressionExpected)];if(z.flags&33554432)return[vr(z,eu.cannotExtractAmbientBlock)];let X=Rl(z);X&&D(z,X);let J,ie=4,B;if(Z(z),p&8){let ae=__(z,!1,!1);(ae.kind===262||ae.kind===174&&ae.parent.kind===210||ae.kind===218)&&(p|=16)}return J;function Z(ae){if(J)return!0;if(ku(ae)){let $=ae.kind===260?ae.parent.parent:ae;if(Mr($,32))return(J||(J=[])).push(vr(ae,eu.cannotExtractExportedEntity)),!0}switch(ae.kind){case 272:return(J||(J=[])).push(vr(ae,eu.cannotExtractImport)),!0;case 277:return(J||(J=[])).push(vr(ae,eu.cannotExtractExportedEntity)),!0;case 108:if(ae.parent.kind===213){let $=Rl(ae);if($===void 0||$.pos=t.start+t.length)return(J||(J=[])).push(vr(ae,eu.cannotExtractSuper)),!0}else p|=8,y=ae;break;case 219:vs(ae,function $(H){if(i6(H))p|=8,y=ae;else{if(ei(H)||As(H)&&!Co(H))return!1;vs(H,$)}});case 263:case 262:Li(ae.parent)&&ae.parent.externalModuleIndicator===void 0&&(J||(J=[])).push(vr(ae,eu.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}let _e=ie;switch(ae.kind){case 245:ie&=-5;break;case 258:ie=0;break;case 241:ae.parent&&ae.parent.kind===258&&ae.parent.finallyBlock===ae&&(ie=4);break;case 297:case 296:ie|=1;break;default:$0(ae,!1)&&(ie|=3);break}switch(ae.kind){case 197:case 110:p|=8,y=ae;break;case 256:{let $=ae.label;(B||(B=[])).push($.escapedText),vs(ae,Z),B.pop();break}case 252:case 251:{let $=ae.label;$?gs(B,$.escapedText)||(J||(J=[])).push(vr(ae,eu.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):ie&(ae.kind===252?1:2)||(J||(J=[])).push(vr(ae,eu.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:p|=4;break;case 229:p|=2;break;case 253:ie&4?p|=1:(J||(J=[])).push(vr(ae,eu.cannotExtractRangeContainingConditionalReturnStatement));break;default:vs(ae,Z);break}ie=_e}}}function Jze(e,t,n){let i=e.getStart(n),s=t.getEnd();return n.text.charCodeAt(s)===59&&s++,{start:i,length:s-i}}function zze(e){if(Ai(e))return[e];if(mg(e))return Il(e.parent)?[e.parent]:e;if(ole(e))return e}function rle(e){return Co(e)?AJ(e.body):To(e)||Li(e)||Hd(e)||ei(e)}function Vze(e){let t=u0(e.range)?Da(e.range):e.range;if(e.facts&8&&!(e.facts&16)){let i=Rl(t);if(i){let s=Fn(t,To);return s?[s,i]:[i]}}let n=[];for(;;)if(t=t.parent,t.kind===169&&(t=Fn(t,i=>To(i)).parent),rle(t)&&(n.push(t),t.kind===312))return n}function Wze(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,functionErrorsPerScope:c,exposedVariableDeclarations:u}}=ile(e,t);return E.assert(!c[n].length,"The extraction went missing? How?"),t.cancellationToken.throwIfCancellationRequested(),Yze(s,i[n],o[n],u,e,t)}function Uze(e,t,n){let{scopes:i,readsAndWrites:{target:s,usagesPerScope:o,constantErrorsPerScope:c,exposedVariableDeclarations:u}}=ile(e,t);E.assert(!c[n].length,"The extraction went missing? How?"),E.assert(u.length===0,"Extract constant accepted a range containing a variable declaration?"),t.cancellationToken.throwIfCancellationRequested();let f=ut(s)?s:s.statements[0].expression;return Zze(f,i[n],o[n],e.facts,t)}function qze(e,t){let{scopes:n,readsAndWrites:{functionErrorsPerScope:i,constantErrorsPerScope:s}}=ile(e,t);return n.map((c,u)=>{let f=Hze(c),g=Gze(c),p=To(c)?$ze(c):ei(c)?Xze(c):Qze(c),y,S;return p===1?(y=vg(ds(d.Extract_to_0_in_1_scope),[f,"global"]),S=vg(ds(d.Extract_to_0_in_1_scope),[g,"global"])):p===0?(y=vg(ds(d.Extract_to_0_in_1_scope),[f,"module"]),S=vg(ds(d.Extract_to_0_in_1_scope),[g,"module"])):(y=vg(ds(d.Extract_to_0_in_1),[f,p]),S=vg(ds(d.Extract_to_0_in_1),[g,p])),u===0&&!ei(c)&&(S=vg(ds(d.Extract_to_0_in_enclosing_scope),[g])),{functionExtraction:{description:y,errors:i[u]},constantExtraction:{description:S,errors:s[u]}}})}function ile(e,t){let{file:n}=t,i=Vze(e),s=lVe(e,n),o=uVe(e,i,s,n,t.program.getTypeChecker(),t.cancellationToken);return{scopes:i,readsAndWrites:o}}function Hze(e){return To(e)?"inner function":ei(e)?"method":"function"}function Gze(e){return ei(e)?"readonly field":"constant"}function $ze(e){switch(e.kind){case 176:return"constructor";case 218:case 262:return e.name?`function '${e.name.text}'`:LL;case 219:return"arrow function";case 174:return`method '${e.name.getText()}'`;case 177:return`'get ${e.name.getText()}'`;case 178:return`'set ${e.name.getText()}'`;default:E.assertNever(e,`Unexpected scope kind ${e.kind}`)}}function Xze(e){return e.kind===263?e.name?`class '${e.name.text}'`:"anonymous class declaration":e.name?`class expression '${e.name.text}'`:"anonymous class expression"}function Qze(e){return e.kind===268?`namespace '${e.parent.name.getText()}'`:e.externalModuleIndicator?0:1}function Yze(e,t,{usages:n,typeParameterUsages:i,substitutions:s},o,c,u){let f=u.program.getTypeChecker(),g=La(u.program.getCompilerOptions()),p=fu.createImportAdder(u.file,u.program,u.preferences,u.host),y=t.getSourceFile(),S=sS(ei(t)?"newMethod":"newFunction",y),x=Qn(t),C=I.createIdentifier(S),w,D=[],O=[],z;n.forEach((he,be)=>{let _t;if(!x){let me=f.getTypeOfSymbolAtLocation(he.symbol,he.node);me=f.getBaseTypeOfLiteralType(me),_t=fu.typeToAutoImportableTypeNode(f,p,me,t,g,1)}let mt=I.createParameterDeclaration(void 0,void 0,be,void 0,_t);D.push(mt),he.usage===2&&(z||(z=[])).push(he),O.push(I.createIdentifier(be))});let X=hs(i.values(),he=>({type:he,declaration:eVe(he,u.startPosition)})).sort(tVe),J=X.length===0?void 0:Ri(X,({declaration:he})=>he),ie=J!==void 0?J.map(he=>I.createTypeReferenceNode(he.name,void 0)):void 0;if(ut(e)&&!x){let he=f.getContextualType(e);w=f.typeToTypeNode(he,t,1)}let{body:B,returnValueProperty:Z}=rVe(e,o,z,s,!!(c.facts&1));z_(B);let ae,_e=!!(c.facts&16);if(ei(t)){let he=x?[]:[I.createModifier(123)];c.facts&32&&he.push(I.createModifier(126)),c.facts&4&&he.push(I.createModifier(134)),ae=I.createMethodDeclaration(he.length?he:void 0,c.facts&2?I.createToken(42):void 0,C,void 0,J,D,w,B)}else _e&&D.unshift(I.createParameterDeclaration(void 0,void 0,"this",void 0,f.typeToTypeNode(f.getTypeAtLocation(c.thisNode),t,1),void 0)),ae=I.createFunctionDeclaration(c.facts&4?[I.createToken(134)]:void 0,c.facts&2?I.createToken(42):void 0,C,J,D,w,B);let $=er.ChangeTracker.fromContext(u),H=(u0(c.range)?Pa(c.range):c.range).end,K=aVe(H,t);K?$.insertNodeBefore(u.file,K,ae,!0):$.insertNodeAtEndOfScope(u.file,t,ae),p.writeFixes($);let oe=[],Se=nVe(t,c,S);_e&&O.unshift(I.createIdentifier("this"));let se=I.createCallExpression(_e?I.createPropertyAccessExpression(Se,"call"):Se,ie,O);if(c.facts&2&&(se=I.createYieldExpression(I.createToken(42),se)),c.facts&4&&(se=I.createAwaitExpression(se)),ale(e)&&(se=I.createJsxExpression(void 0,se)),o.length&&!z)if(E.assert(!Z,"Expected no returnValueProperty"),E.assert(!(c.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),o.length===1){let he=o[0];oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(jo(he.name),void 0,jo(he.type),se)],he.parent.flags)))}else{let he=[],be=[],_t=o[0].parent.flags,mt=!1;for(let Oe of o){he.push(I.createBindingElement(void 0,void 0,jo(Oe.name)));let Qe=f.typeToTypeNode(f.getBaseTypeOfLiteralType(f.getTypeAtLocation(Oe)),t,1);be.push(I.createPropertySignature(void 0,Oe.symbol.name,void 0,Qe)),mt=mt||Oe.type!==void 0,_t=_t&Oe.parent.flags}let me=mt?I.createTypeLiteralNode(be):void 0;me&&$n(me,1),oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(I.createObjectBindingPattern(he),void 0,me,se)],_t)))}else if(o.length||z){if(o.length)for(let be of o){let _t=be.parent.flags;_t&2&&(_t=_t&-3|1),oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(be.symbol.name,void 0,ke(be.type))],_t)))}Z&&oe.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(Z,void 0,ke(w))],1)));let he=sle(o,z);Z&&he.unshift(I.createShorthandPropertyAssignment(Z)),he.length===1?(E.assert(!Z,"Shouldn't have returnValueProperty here"),oe.push(I.createExpressionStatement(I.createAssignment(he[0].name,se))),c.facts&1&&oe.push(I.createReturnStatement())):(oe.push(I.createExpressionStatement(I.createAssignment(I.createObjectLiteralExpression(he),se))),Z&&oe.push(I.createReturnStatement(I.createIdentifier(Z))))}else c.facts&1?oe.push(I.createReturnStatement(se)):u0(c.range)?oe.push(I.createExpressionStatement(se)):oe.push(se);u0(c.range)?$.replaceNodeRangeWithNodes(u.file,Da(c.range),Pa(c.range),oe):$.replaceNodeWithNodes(u.file,c.range,oe);let Y=$.getChanges(),xe=(u0(c.range)?Da(c.range):c.range).getSourceFile().fileName,Me=BA(Y,xe,S,!1);return{renameFilename:xe,renameLocation:Me,edits:Y};function ke(he){if(he===void 0)return;let be=jo(he),_t=be;for(;Hx(_t);)_t=_t.type;return b1(_t)&&xr(_t.types,mt=>mt.kind===157)?be:I.createUnionTypeNode([be,I.createKeywordTypeNode(157)])}}function Zze(e,t,{substitutions:n},i,s){let o=s.program.getTypeChecker(),c=t.getSourceFile(),u=Cr(e)&&!ei(t)&&!o.resolveName(e.name.text,e,111551,!1)&&!Di(e.name)&&!s1(e.name)?e.name.text:sS(ei(t)?"newProperty":"newLocal",c),f=Qn(t),g=f||!o.isContextSensitive(e)?void 0:o.typeToTypeNode(o.getContextualType(e),t,1),p=iVe(eo(e),n);({variableType:g,initializer:p}=w(g,p)),z_(p);let y=er.ChangeTracker.fromContext(s);if(ei(t)){E.assert(!f,"Cannot extract to a JS class");let D=[];D.push(I.createModifier(123)),i&32&&D.push(I.createModifier(126)),D.push(I.createModifier(148));let O=I.createPropertyDeclaration(D,u,void 0,g,p),z=I.createPropertyAccessExpression(i&32?I.createIdentifier(t.name.getText()):I.createThis(),I.createIdentifier(u));ale(e)&&(z=I.createJsxExpression(void 0,z));let V=e.pos,X=oVe(V,t);y.insertNodeBefore(s.file,X,O,!0),y.replaceNode(s.file,e,z)}else{let D=I.createVariableDeclaration(u,void 0,g,p),O=Kze(e,t);if(O){y.insertNodeBefore(s.file,O,D);let z=I.createIdentifier(u);y.replaceNode(s.file,e,z)}else if(e.parent.kind===244&&t===Fn(e,rle)){let z=I.createVariableStatement(void 0,I.createVariableDeclarationList([D],2));y.replaceNode(s.file,e.parent,z)}else{let z=I.createVariableStatement(void 0,I.createVariableDeclarationList([D],2)),V=cVe(e,t);if(V.pos===0?y.insertNodeAtTopOfFile(s.file,z,!1):y.insertNodeBefore(s.file,V,z,!1),e.parent.kind===244)y.delete(s.file,e.parent);else{let X=I.createIdentifier(u);ale(e)&&(X=I.createJsxExpression(void 0,X)),y.replaceNode(s.file,e,X)}}}let S=y.getChanges(),x=e.getSourceFile().fileName,C=BA(S,x,u,!0);return{renameFilename:x,renameLocation:C,edits:S};function w(D,O){if(D===void 0)return{variableType:D,initializer:O};if(!uo(O)&&!Co(O)||O.typeParameters)return{variableType:D,initializer:O};let z=o.getTypeAtLocation(e),V=bm(o.getSignaturesOfType(z,0));if(!V)return{variableType:D,initializer:O};if(V.getTypeParameters())return{variableType:D,initializer:O};let X=[],J=!1;for(let ie of O.parameters)if(ie.type)X.push(ie);else{let B=o.getTypeAtLocation(ie);B===o.getAnyType()&&(J=!0),X.push(I.updateParameterDeclaration(ie,ie.modifiers,ie.dotDotDotToken,ie.name,ie.questionToken,ie.type||o.typeToTypeNode(B,t,1),ie.initializer))}if(J)return{variableType:D,initializer:O};if(D=void 0,Co(O))O=I.updateArrowFunction(O,Yp(e)?Pv(e):void 0,O.typeParameters,X,O.type||o.typeToTypeNode(V.getReturnType(),t,1),O.equalsGreaterThanToken,O.body);else{if(V&&V.thisParameter){let ie=Pl(X);if(!ie||Ie(ie.name)&&ie.name.escapedText!=="this"){let B=o.getTypeOfSymbolAtLocation(V.thisParameter,e);X.splice(0,0,I.createParameterDeclaration(void 0,void 0,"this",void 0,o.typeToTypeNode(B,t,1)))}}O=I.updateFunctionExpression(O,Yp(e)?Pv(e):void 0,O.asteriskToken,O.name,O.typeParameters,X,O.type||o.typeToTypeNode(V.getReturnType(),t,1),O.body)}return{variableType:D,initializer:O}}}function Kze(e,t){let n;for(;e!==void 0&&e!==t;){if(Ni(e)&&e.initializer===n&&Tl(e.parent)&&e.parent.declarations.length>1)return e;n=e,e=e.parent}}function eVe(e,t){let n,i=e.symbol;if(i&&i.declarations)for(let s of i.declarations)(n===void 0||s.pos0;if(Ds(e)&&!o&&i.size===0)return{body:I.createBlock(e.statements,!0),returnValueProperty:void 0};let c,u=!1,f=I.createNodeArray(Ds(e)?e.statements.slice(0):[Ai(e)?e:I.createReturnStatement(eo(e))]);if(o||i.size){let p=Dn(f,g,Ai).slice();if(o&&!s&&Ai(e)){let y=sle(t,n);y.length===1?p.push(I.createReturnStatement(y[0].name)):p.push(I.createReturnStatement(I.createObjectLiteralExpression(y)))}return{body:I.createBlock(p,!0),returnValueProperty:c}}else return{body:I.createBlock(f,!0),returnValueProperty:void 0};function g(p){if(!u&&$p(p)&&o){let y=sle(t,n);return p.expression&&(c||(c="__return"),y.unshift(I.createPropertyAssignment(c,Ge(p.expression,g,ut)))),y.length===1?I.createReturnStatement(y[0].name):I.createReturnStatement(I.createObjectLiteralExpression(y))}else{let y=u;u=u||To(p)||ei(p);let S=i.get(Va(p).toString()),x=S?jo(S):on(p,g,yd);return u=y,x}}}function iVe(e,t){return t.size?n(e):e;function n(i){let s=t.get(Va(i).toString());return s?jo(s):on(i,n,yd)}}function sVe(e){if(To(e)){let t=e.body;if(Ds(t))return t.statements}else{if(Hd(e)||Li(e))return e.statements;if(ei(e))return e.members;}return Ve}function aVe(e,t){return xr(sVe(t),n=>n.pos>=e&&To(n)&&!Cc(n))}function oVe(e,t){let n=t.members;E.assert(n.length>0,"Found no members");let i,s=!0;for(let o of n){if(o.pos>e)return i||n[0];if(s&&!Is(o)){if(i!==void 0)return o;s=!1}i=o}return i===void 0?E.fail():i}function cVe(e,t){E.assert(!ei(t));let n;for(let i=e;i!==t;i=i.parent)rle(i)&&(n=i);for(let i=(n||e).parent;;i=i.parent){if(GTe(i)){let s;for(let o of i.statements){if(o.pos>e.pos)break;s=o}return!s&&PC(i)?(E.assert(v8(i.parent.parent),"Grandparent isn't a switch statement"),i.parent.parent):E.checkDefined(s,"prevStatement failed to get set")}E.assert(i!==t,"Didn't encounter a block-like before encountering scope")}}function sle(e,t){let n=Kt(e,s=>I.createShorthandPropertyAssignment(s.symbol.name)),i=Kt(t,s=>I.createShorthandPropertyAssignment(s.symbol.name));return n===void 0?i:i===void 0?n:n.concat(i)}function u0(e){return ss(e)}function lVe(e,t){return u0(e.range)?{pos:Da(e.range).getStart(t),end:Pa(e.range).getEnd()}:e.range}function uVe(e,t,n,i,s,o){let c=new Map,u=[],f=[],g=[],p=[],y=[],S=new Map,x=[],C,w=u0(e.range)?e.range.length===1&&Il(e.range[0])?e.range[0].expression:void 0:e.range,D;if(w===void 0){let K=e.range,oe=Da(K).getStart(),Se=Pa(K).end;D=Nl(i,oe,Se-oe,eu.expressionExpected)}else s.getTypeAtLocation(w).flags&147456&&(D=vr(w,eu.uselessConstantType));for(let K of t){u.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),f.push(new Map),g.push([]);let oe=[];D&&oe.push(D),ei(K)&&Qn(K)&&oe.push(vr(K,eu.cannotExtractToJSClass)),Co(K)&&!Ds(K.body)&&oe.push(vr(K,eu.cannotExtractToExpressionArrowFunction)),p.push(oe)}let O=new Map,z=u0(e.range)?I.createBlock(e.range):e.range,V=u0(e.range)?Da(e.range):e.range,X=J(V);if(B(z),X&&!u0(e.range)&&!$d(e.range)){let K=s.getContextualType(e.range);ie(K)}if(c.size>0){let K=new Map,oe=0;for(let Se=V;Se!==void 0&&oe{u[oe].typeParameterUsages.set(Y,se)}),oe++),XJ(Se))for(let se of q0(Se)){let Y=s.getTypeAtLocation(se);c.has(Y.id.toString())&&K.set(Y.id.toString(),Y)}E.assert(oe===t.length,"Should have iterated all scopes")}if(y.length){let K=$J(t[0],t[0].parent)?t[0]:Nm(t[0]);vs(K,_e)}for(let K=0;K0&&(oe.usages.size>0||oe.typeParameterUsages.size>0)){let Y=u0(e.range)?e.range[0]:e.range;p[K].push(vr(Y,eu.cannotAccessVariablesFromNestedScopes))}e.facts&16&&ei(t[K])&&g[K].push(vr(e.thisNode,eu.cannotExtractFunctionsContainingThisToMethod));let Se=!1,se;if(u[K].usages.forEach(Y=>{Y.usage===2&&(Se=!0,Y.symbol.flags&106500&&Y.symbol.valueDeclaration&&M_(Y.symbol.valueDeclaration,8)&&(se=Y.symbol.valueDeclaration))}),E.assert(u0(e.range)||x.length===0,"No variable declarations expected if something was extracted"),Se&&!u0(e.range)){let Y=vr(e.range,eu.cannotWriteInExpression);g[K].push(Y),p[K].push(Y)}else if(se&&K>0){let Y=vr(se,eu.cannotExtractReadonlyPropertyInitializerOutsideConstructor);g[K].push(Y),p[K].push(Y)}else if(C){let Y=vr(C,eu.cannotExtractExportedEntity);g[K].push(Y),p[K].push(Y)}}return{target:z,usagesPerScope:u,functionErrorsPerScope:g,constantErrorsPerScope:p,exposedVariableDeclarations:x};function J(K){return!!Fn(K,oe=>XJ(oe)&&q0(oe).length!==0)}function ie(K){let oe=s.getSymbolWalker(()=>(o.throwIfCancellationRequested(),!0)),{visitedTypes:Se}=oe.walkType(K);for(let se of Se)se.isTypeParameter()&&c.set(se.id.toString(),se)}function B(K,oe=1){if(X){let Se=s.getTypeAtLocation(K);ie(Se)}if(ku(K)&&K.symbol&&y.push(K),pl(K))B(K.left,2),B(K.right);else if(xee(K))B(K.operand,2);else if(Cr(K)||ko(K))vs(K,B);else if(Ie(K)){if(!K.parent||k_(K.parent)&&K!==K.parent.left||Cr(K.parent)&&K!==K.parent.expression)return;Z(K,oe,dg(K))}else vs(K,B)}function Z(K,oe,Se){let se=ae(K,oe,Se);if(se)for(let Y=0;Y=oe)return Y;if(O.set(Y,oe),ve){for(let ke of u)ke.usages.get(K.text)&&ke.usages.set(K.text,{usage:oe,symbol:se,node:K});return Y}let xe=se.getDeclarations(),Me=xe&&xr(xe,ke=>ke.getSourceFile()===i);if(Me&&!DA(n,Me.getStart(),Me.end)){if(e.facts&2&&oe===2){let ke=vr(K,eu.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(let he of g)he.push(ke);for(let he of p)he.push(ke)}for(let ke=0;kese.symbol===oe);if(Se)if(Ni(Se)){let se=Se.symbol.id.toString();S.has(se)||(x.push(Se),S.set(se,!0))}else C=C||Se}vs(K,_e)}function $(K){return K.parent&&sf(K.parent)&&K.parent.name===K?s.getShorthandAssignmentValueSymbol(K.parent):s.getSymbolAtLocation(K)}function H(K,oe,Se){if(!K)return;let se=K.getDeclarations();if(se&&se.some(ve=>ve.parent===oe))return I.createIdentifier(K.name);let Y=H(K.parent,oe,Se);if(Y!==void 0)return Se?I.createQualifiedName(Y,I.createIdentifier(K.name)):I.createPropertyAccessExpression(Y,K.name)}}function _Ve(e){return Fn(e,t=>t.parent&&HTe(t)&&!Yn(t.parent))}function HTe(e){let{parent:t}=e;switch(t.kind){case 306:return!1}switch(e.kind){case 11:return t.kind!==272&&t.kind!==276;case 230:case 206:case 208:return!1;case 80:return t.kind!==208&&t.kind!==276&&t.kind!==281}return!0}function GTe(e){switch(e.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function ale(e){return ole(e)||(kg(e)||W2(e)||nb(e))&&(kg(e.parent)||nb(e.parent))}function ole(e){return ca(e)&&e.parent&&$d(e.parent)}var f6,p6,d6,eu,cle,fVe=ze({"src/services/refactors/extractSymbol.ts"(){"use strict";qr(),Vm(),f6="Extract Symbol",p6={name:"Extract Constant",description:ds(d.Extract_constant),kind:"refactor.extract.constant"},d6={name:"Extract Function",description:ds(d.Extract_function),kind:"refactor.extract.function"},Dg(f6,{kinds:[p6.kind,d6.kind],getEditsForAction:qTe,getAvailableActions:UTe}),(e=>{function t(n){return{message:n,code:0,category:3,key:n}}e.cannotExtractRange=t("Cannot extract range."),e.cannotExtractImport=t("Cannot extract import statement."),e.cannotExtractSuper=t("Cannot extract super call."),e.cannotExtractJSDoc=t("Cannot extract JSDoc."),e.cannotExtractEmpty=t("Cannot extract empty range."),e.expressionExpected=t("expression expected."),e.uselessConstantType=t("No reason to extract constant of type."),e.statementOrExpressionExpected=t("Statement or expression expected."),e.cannotExtractRangeContainingConditionalBreakOrContinueStatements=t("Cannot extract range containing conditional break or continue statements."),e.cannotExtractRangeContainingConditionalReturnStatement=t("Cannot extract range containing conditional return statement."),e.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=t("Cannot extract range containing labeled break or continue with target outside of the range."),e.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=t("Cannot extract range containing writes to references located outside of the target range in generators."),e.typeWillNotBeVisibleInTheNewScope=t("Type will not visible in the new scope."),e.functionWillNotBeVisibleInTheNewScope=t("Function will not visible in the new scope."),e.cannotExtractIdentifier=t("Select more than a single identifier."),e.cannotExtractExportedEntity=t("Cannot extract exported declaration"),e.cannotWriteInExpression=t("Cannot write back side-effects when extracting an expression"),e.cannotExtractReadonlyPropertyInitializerOutsideConstructor=t("Cannot move initialization of read-only class property outside of the constructor"),e.cannotExtractAmbientBlock=t("Cannot extract code from ambient contexts"),e.cannotAccessVariablesFromNestedScopes=t("Cannot access variables from nested scopes"),e.cannotExtractToJSClass=t("Cannot extract constant to a class scope in JS"),e.cannotExtractToExpressionArrowFunction=t("Cannot extract constant to an arrow function without a block"),e.cannotExtractFunctionsContainingThisToMethod=t("Cannot extract functions containing this to method")})(eu||(eu={})),cle=(e=>(e[e.None=0]="None",e[e.HasReturn=1]="HasReturn",e[e.IsGenerator=2]="IsGenerator",e[e.IsAsyncFunction=4]="IsAsyncFunction",e[e.UsesThis=8]="UsesThis",e[e.UsesThisInFunction=16]="UsesThisInFunction",e[e.InStaticRegion=32]="InStaticRegion",e))(cle||{})}}),$Te={};Jn($Te,{Messages:()=>eu,RangeFacts:()=>cle,getRangeToExtract:()=>nle,getRefactorActionsToExtractSymbol:()=>UTe,getRefactorEditsToExtractSymbol:()=>qTe});var pVe=ze({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){"use strict";fVe()}}),rM,e$,t$,dVe=ze({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){"use strict";qr(),Vm(),rM="Generate 'get' and 'set' accessors",e$=ds(d.Generate_get_and_set_accessors),t$={name:rM,description:e$,kind:"refactor.rewrite.property.generateAccessors"},Dg(rM,{kinds:[t$.kind],getEditsForAction:function(t,n){if(!t.endPosition)return;let i=fu.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition);E.assert(i&&!ph(i),"Expected applicable refactor info");let s=fu.generateAccessorFromProperty(t.file,t.program,t.startPosition,t.endPosition,t,n);if(!s)return;let o=t.file.fileName,c=i.renameAccessor?i.accessorName:i.fieldName,f=(Ie(c)?0:-1)+BA(s,o,c.text,ms(i.declaration));return{renameFilename:o,renameLocation:f,edits:s}},getAvailableActions(e){if(!e.endPosition)return Ve;let t=fu.getAccessorConvertiblePropertyAtPosition(e.file,e.program,e.startPosition,e.endPosition,e.triggerReason==="invoked");return t?ph(t)?e.preferences.provideRefactorNotApplicableReason?[{name:rM,description:e$,actions:[{...t$,notApplicableReason:t.error}]}]:Ve:[{name:rM,description:e$,actions:[t$]}]:Ve}})}}),mVe={},gVe=ze({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){"use strict";dVe()}});function hVe(e){let t=XTe(e);if(t&&!ph(t))return{renameFilename:void 0,renameLocation:void 0,edits:er.ChangeTracker.with(e,i=>vVe(e.file,i,t.declaration,t.returnTypeNode))}}function yVe(e){let t=XTe(e);return t?ph(t)?e.preferences.provideRefactorNotApplicableReason?[{name:iM,description:n$,actions:[{...sM,notApplicableReason:t.error}]}]:Ve:[{name:iM,description:n$,actions:[sM]}]:Ve}function vVe(e,t,n,i){let s=Ya(n,22,e),o=Co(n)&&s===void 0,c=o?Da(n.parameters):s;c&&(o&&(t.insertNodeBefore(e,c,I.createToken(21)),t.insertNodeAfter(e,c,I.createToken(22))),t.insertNodeAt(e,c.end,i,{prefix:": "}))}function XTe(e){if(Qn(e.file)||!L1(sM.kind,e.kind))return;let t=m_(e.file,e.startPosition),n=Fn(t,c=>Ds(c)||c.parent&&Co(c.parent)&&(c.kind===39||c.parent.body===c)?"quit":bVe(c));if(!n||!n.body||n.type)return{error:ds(d.Return_type_must_be_inferred_from_a_function)};let i=e.program.getTypeChecker(),s=SVe(i,n);if(!s)return{error:ds(d.Could_not_determine_function_return_type)};let o=i.typeToTypeNode(s,n,1);if(o)return{declaration:n,returnTypeNode:o}}function bVe(e){switch(e.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function SVe(e,t){if(e.isImplementationOfOverload(t)){let i=e.getTypeAtLocation(t).getCallSignatures();if(i.length>1)return e.getUnionType(Ri(i,s=>s.getReturnType()))}let n=e.getSignatureFromDeclaration(t);if(n)return e.getReturnTypeOfSignature(n)}var iM,n$,sM,xVe=ze({"src/services/refactors/inferFunctionReturnType.ts"(){"use strict";qr(),Vm(),iM="Infer function return type",n$=ds(d.Infer_function_return_type),sM={name:iM,description:n$,kind:"refactor.rewrite.function.returnType"},Dg(iM,{kinds:[sM.kind],getEditsForAction:hVe,getAvailableActions:yVe})}}),TVe={},kVe=ze({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){"use strict";xVe()}}),hT={};Jn(hT,{addExportToChanges:()=>Jce,addExports:()=>Mce,addNewFileToTsconfig:()=>Nce,addOrRemoveBracesToArrowFunction:()=>jJe,convertArrowFunctionOrFunctionExpression:()=>QJe,convertParamsToDestructuredObject:()=>mze,convertStringOrTemplateLiteral:()=>Cze,convertToOptionalChainExpression:()=>jze,createNewFileName:()=>zce,createOldFileImportsFromTargetFile:()=>Lce,deleteMovedStatements:()=>$L,deleteUnusedImports:()=>Rce,deleteUnusedOldImports:()=>Ice,doChangeNamedToNamespaceOrDefault:()=>nTe,extractSymbol:()=>$Te,filterImport:()=>KA,forEachImportInStatement:()=>ZA,generateGetAccessorAndSetAccessor:()=>mVe,getApplicableRefactors:()=>RBe,getEditsForRefactor:()=>jBe,getStatementsToMove:()=>eN,getTopLevelDeclarationStatement:()=>zG,getUsageInfo:()=>QL,inferFunctionReturnType:()=>TVe,isRefactorErrorInfo:()=>ph,isTopLevelDeclaration:()=>YL,makeImportOrRequire:()=>XL,moduleSpecifierFromImport:()=>YA,nameOfTopLevelDeclaration:()=>Bce,refactorKindBeginsWith:()=>L1,registerRefactor:()=>Dg,updateImportsInOtherFiles:()=>Fce});var Vm=ze({"src/services/_namespaces/ts.refactor.ts"(){"use strict";Qxe(),qBe(),QBe(),rJe(),iJe(),aJe(),uJe(),NJe(),BJe(),YJe(),gze(),Eze(),Bze(),pVe(),gVe(),kVe()}});function QTe(e,t,n,i){let s=lle(e,t,n,i);E.assert(s.spans.length%3===0);let o=s.spans,c=[];for(let u=0;u{s.push(c.getStart(t),c.getWidth(t),(u+1<<8)+f)},i),s}function EVe(e,t,n,i,s){let o=e.getTypeChecker(),c=!1;function u(f){switch(f.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:s.throwIfCancellationRequested()}if(!f||!x7(n,f.pos,f.getFullWidth())||f.getFullWidth()===0)return;let g=c;if((kg(f)||W2(f))&&(c=!0),n3(f)&&(c=!1),Ie(f)&&!c&&!AVe(f)&&!RE(f.escapedText)){let p=o.getSymbolAtLocation(f);if(p){p.flags&2097152&&(p=o.getAliasedSymbol(p));let y=DVe(p,eS(f));if(y!==void 0){let S=0;f.parent&&(Ma(f.parent)||ple.get(f.parent.kind)===y)&&f.parent.name===f&&(S=1),y===6&&ZTe(f)&&(y=9),y=PVe(o,f,y);let x=p.valueDeclaration;if(x){let C=Dv(x),w=Wh(x);C&256&&(S|=2),C&1024&&(S|=4),y!==0&&y!==2&&(C&8||w&2||p.getFlags()&8)&&(S|=8),(y===7||y===10)&&wVe(x,t)&&(S|=32),e.isSourceFileDefaultLibrary(x.getSourceFile())&&(S|=16)}else p.declarations&&p.declarations.some(C=>e.isSourceFileDefaultLibrary(C.getSourceFile()))&&(S|=16);i(f,y,S)}}}vs(f,u),c=g}u(t)}function DVe(e,t){let n=e.getFlags();if(n&32)return 0;if(n&384)return 1;if(n&524288)return 5;if(n&64){if(t&2)return 2}else if(n&262144)return 4;let i=e.valueDeclaration||e.declarations&&e.declarations[0];return i&&Ma(i)&&(i=YTe(i)),i&&ple.get(i.kind)}function PVe(e,t,n){if(n===7||n===9||n===6){let i=e.getTypeAtLocation(t);if(i){let s=o=>o(i)||i.isUnion()&&i.types.some(o);if(n!==6&&s(o=>o.getConstructSignatures().length>0))return 0;if(s(o=>o.getCallSignatures().length>0)&&!s(o=>o.getProperties().length>0)||NVe(t))return n===9?11:10}}return n}function wVe(e,t){return Ma(e)&&(e=YTe(e)),Ni(e)?(!Li(e.parent.parent.parent)||ib(e.parent))&&e.getSourceFile()===t:al(e)?!Li(e.parent)&&e.getSourceFile()===t:!1}function YTe(e){for(;;)if(Ma(e.parent.parent))e=e.parent.parent;else return e.parent.parent}function AVe(e){let t=e.parent;return t&&(Rm(t)||E_(t)||ly(t))}function NVe(e){for(;ZTe(e);)e=e.parent;return Ws(e.parent)&&e.parent.expression===e}function ZTe(e){return k_(e.parent)&&e.parent.right===e||Cr(e.parent)&&e.parent.name===e}var ule,_le,fle,ple,KTe=ze({"src/services/classifier2020.ts"(){"use strict";qr(),ule=(e=>(e[e.typeOffset=8]="typeOffset",e[e.modifierMask=255]="modifierMask",e))(ule||{}),_le=(e=>(e[e.class=0]="class",e[e.enum=1]="enum",e[e.interface=2]="interface",e[e.namespace=3]="namespace",e[e.typeParameter=4]="typeParameter",e[e.type=5]="type",e[e.parameter=6]="parameter",e[e.variable=7]="variable",e[e.enumMember=8]="enumMember",e[e.property=9]="property",e[e.function=10]="function",e[e.member=11]="member",e))(_le||{}),fle=(e=>(e[e.declaration=0]="declaration",e[e.static=1]="static",e[e.async=2]="async",e[e.readonly=3]="readonly",e[e.defaultLibrary=4]="defaultLibrary",e[e.local=5]="local",e))(fle||{}),ple=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function eke(e,t,n,i){let s=LP(e)?new o$(e,t,n):e===80?new l$(80,t,n):e===81?new u$(81,t,n):new hle(e,t,n);return s.parent=i,s.flags=i.flags&101441536,s}function IVe(e,t){if(!LP(e.kind))return Ve;let n=[];if(R7(e))return e.forEachChild(c=>{n.push(c)}),n;wu.setText((t||e.getSourceFile()).text);let i=e.pos,s=c=>{aM(n,i,c.pos,e),n.push(c),i=c.end},o=c=>{aM(n,i,c.pos,e),n.push(FVe(c,e)),i=c.end};return Qt(e.jsDoc,s),i=e.pos,e.forEachChild(s,o),aM(n,i,e.end,e),wu.setText(void 0),n}function aM(e,t,n,i){for(wu.resetTokenState(t);tt.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function r$(e,t){if(!e)return Ve;let n=R1.getJsDocTagsFromDeclarations(e,t);if(t&&(n.length===0||e.some(tke))){let i=new Set;for(let s of e){let o=nke(t,s,c=>{var u;if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualJsDocTags(s,t):((u=c.declarations)==null?void 0:u.length)===1?c.getJsDocTags():void 0});o&&(n=[...o,...n])}}return n}function oM(e,t){if(!e)return Ve;let n=R1.getJsDocCommentsFromDeclarations(e,t);if(t&&(n.length===0||e.some(tke))){let i=new Set;for(let s of e){let o=nke(t,s,c=>{if(!i.has(c))return i.add(c),s.kind===177||s.kind===178?c.getContextualDocumentationComment(s,t):c.getDocumentationComment(t)});o&&(n=n.length===0?o.slice():o.concat(c6(),n))}}return n}function nke(e,t,n){var i;let s=((i=t.parent)==null?void 0:i.kind)===176?t.parent.parent:t.parent;if(!s)return;let o=Yc(t);return ba(lE(s),c=>{let u=e.getTypeAtLocation(c),f=o&&u.symbol?e.getTypeOfSymbol(u.symbol):u,g=e.getPropertyOfType(f,t.symbol.name);return g?n(g):void 0})}function OVe(){return{getNodeConstructor:()=>o$,getTokenConstructor:()=>hle,getIdentifierConstructor:()=>l$,getPrivateIdentifierConstructor:()=>u$,getSourceFileConstructor:()=>cke,getSymbolConstructor:()=>ske,getTypeConstructor:()=>ake,getSignatureConstructor:()=>oke,getSourceMapSourceConstructor:()=>lke}}function aN(e){let t=!0;for(let i in e)if(so(e,i)&&!rke(i)){t=!1;break}if(t)return e;let n={};for(let i in e)if(so(e,i)){let s=rke(i)?i:i.charAt(0).toLowerCase()+i.substr(1);n[s]=e[i]}return n}function rke(e){return!e.length||e.charAt(0)===e.charAt(0).toLowerCase()}function oN(e){return e?Kt(e,t=>t.text).join(""):""}function cM(){return{target:1,jsx:1}}function i$(){return fu.getSupportedErrorCodes()}function ike(e,t,n){e.version=n,e.scriptSnapshot=t}function lM(e,t,n,i,s,o){let c=F8(e,s6(t),n,s,o);return ike(c,t,i),c}function s$(e,t,n,i,s){if(i&&n!==e.version){let c,u=i.span.start!==0?e.text.substr(0,i.span.start):"",f=Dc(i.span)!==e.text.length?e.text.substr(Dc(i.span)):"";if(i.newLength===0)c=u&&f?u+f:u||f;else{let p=t.getText(i.span.start,i.span.start+i.newLength);c=u&&f?u+p+f:u?u+p:p+f}let g=xW(e,c,i,s);return ike(g,t,n),g.nameTable=void 0,e!==g&&e.scriptSnapshot&&(e.scriptSnapshot.dispose&&e.scriptSnapshot.dispose(),e.scriptSnapshot=void 0),g}let o={languageVersion:e.languageVersion,impliedNodeFormat:e.impliedNodeFormat,setExternalModuleIndicator:e.setExternalModuleIndicator,jsDocParsingMode:e.jsDocParsingMode};return lM(e.fileName,t,o,n,!0,e.scriptKind)}function dle(e,t=Koe(e.useCaseSensitiveFileNames&&e.useCaseSensitiveFileNames(),e.getCurrentDirectory()),n){var i;let s;n===void 0?s=0:typeof n=="boolean"?s=n?2:0:s=n;let o=new uke(e),c,u,f=0,g=e.getCancellationToken?new fke(e.getCancellationToken()):_ke,p=e.getCurrentDirectory();mne((i=e.getLocalizedDiagnosticMessages)==null?void 0:i.bind(e));function y(ce){e.log&&e.log(ce)}let S=Iw(e),x=cu(S),C=pce({useCaseSensitiveFileNames:()=>S,getCurrentDirectory:()=>p,getProgram:O,fileExists:Js(e,e.fileExists),readFile:Js(e,e.readFile),getDocumentPositionMapper:Js(e,e.getDocumentPositionMapper),getSourceFileLike:Js(e,e.getSourceFileLike),log:y});function w(ce){let ee=c.getSourceFile(ce);if(!ee){let ue=new Error(`Could not find source file: '${ce}'.`);throw ue.ProgramFiles=c.getSourceFiles().map(M=>M.fileName),ue}return ee}function D(){var ce,ee,ue;if(E.assert(s!==2),e.getProjectVersion){let _s=e.getProjectVersion();if(_s){if(u===_s&&!((ce=e.hasChangedAutomaticTypeDirectiveNames)!=null&&ce.call(e)))return;u=_s}}let M=e.getTypeRootsVersion?e.getTypeRootsVersion():0;f!==M&&(y("TypeRoots version has changed; provide new program"),c=void 0,f=M);let De=e.getScriptFileNames().slice(),qe=e.getCompilationSettings()||cM(),Fe=e.hasInvalidatedResolutions||ld,St=Js(e,e.hasInvalidatedLibResolutions)||ld,Mt=Js(e,e.hasChangedAutomaticTypeDirectiveNames),Wt=(ee=e.getProjectReferences)==null?void 0:ee.call(e),Rn,nr={getSourceFile:Pn,getSourceFileByPath:Nc,getCancellationToken:()=>g,getCanonicalFileName:x,useCaseSensitiveFileNames:()=>S,getNewLine:()=>Yh(qe),getDefaultLibFileName:_s=>e.getDefaultLibFileName(_s),writeFile:Fa,getCurrentDirectory:()=>p,fileExists:_s=>e.fileExists(_s),readFile:_s=>e.readFile&&e.readFile(_s),getSymlinkCache:Js(e,e.getSymlinkCache),realpath:Js(e,e.realpath),directoryExists:_s=>_d(_s,e),getDirectories:_s=>e.getDirectories?e.getDirectories(_s):[],readDirectory:(_s,to,fc,ec,gl)=>(E.checkDefined(e.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),e.readDirectory(_s,to,fc,ec,gl)),onReleaseOldSourceFile:js,onReleaseParsedCommandLine:ua,hasInvalidatedResolutions:Fe,hasInvalidatedLibResolutions:St,hasChangedAutomaticTypeDirectiveNames:Mt,trace:Js(e,e.trace),resolveModuleNames:Js(e,e.resolveModuleNames),getModuleResolutionCache:Js(e,e.getModuleResolutionCache),createHash:Js(e,e.createHash),resolveTypeReferenceDirectives:Js(e,e.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Js(e,e.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Js(e,e.resolveTypeReferenceDirectiveReferences),resolveLibrary:Js(e,e.resolveLibrary),useSourceOfProjectReferenceRedirect:Js(e,e.useSourceOfProjectReferenceRedirect),getParsedCommandLine:In,jsDocParsingMode:e.jsDocParsingMode},br=nr.getSourceFile,{getSourceFileWithCache:jr}=_A(nr,_s=>xo(_s,p,x),(..._s)=>br.call(nr,..._s));nr.getSourceFile=jr,(ue=e.setCompilerHost)==null||ue.call(e,nr);let Br={useCaseSensitiveFileNames:S,fileExists:_s=>nr.fileExists(_s),readFile:_s=>nr.readFile(_s),directoryExists:_s=>nr.directoryExists(_s),getDirectories:_s=>nr.getDirectories(_s),realpath:nr.realpath,readDirectory:(..._s)=>nr.readDirectory(..._s),trace:nr.trace,getCurrentDirectory:nr.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Fa},Mi=t.getKeyForCompilationSettings(qe),wr=new Set;if(sq(c,De,qe,(_s,to)=>e.getScriptVersion(to),_s=>nr.fileExists(_s),Fe,St,Mt,In,Wt)){nr=void 0,Rn=void 0,wr=void 0;return}c=b9({rootNames:De,options:qe,host:nr,oldProgram:c,projectReferences:Wt}),nr=void 0,Rn=void 0,wr=void 0,C.clearCache(),c.getTypeChecker();return;function In(_s){let to=xo(_s,p,x),fc=Rn?.get(to);if(fc!==void 0)return fc||void 0;let ec=e.getParsedCommandLine?e.getParsedCommandLine(_s):mi(_s);return(Rn||(Rn=new Map)).set(to,ec||!1),ec}function mi(_s){let to=Pn(_s,100);if(to)return to.path=xo(_s,p,x),to.resolvedPath=to.path,to.originalFileName=to.fileName,j8(to,Br,cs(Xr(_s),p),void 0,cs(_s,p))}function ua(_s,to,fc){var ec;e.getParsedCommandLine?(ec=e.onReleaseParsedCommandLine)==null||ec.call(e,_s,to,fc):to&&js(to.sourceFile,fc)}function js(_s,to){let fc=t.getKeyForCompilationSettings(to);t.releaseDocumentWithKey(_s.resolvedPath,fc,_s.scriptKind,_s.impliedNodeFormat)}function Pn(_s,to,fc,ec){return Nc(_s,xo(_s,p,x),to,fc,ec)}function Nc(_s,to,fc,ec,gl){E.assert(nr,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");let Ho=e.getScriptSnapshot(_s);if(!Ho)return;let xs=UH(_s,e),$s=e.getScriptVersion(_s);if(!gl){let cl=c&&c.getSourceFileByPath(to);if(cl){if(xs===cl.scriptKind||wr.has(cl.resolvedPath))return t.updateDocumentWithKey(_s,to,e,Mi,Ho,$s,xs,fc);t.releaseDocumentWithKey(cl.resolvedPath,t.getKeyForCompilationSettings(c.getCompilerOptions()),cl.scriptKind,cl.impliedNodeFormat),wr.add(cl.resolvedPath)}}return t.acquireDocumentWithKey(_s,to,e,Mi,Ho,$s,xs,fc)}}function O(){if(s===2){E.assert(c===void 0);return}return D(),c}function z(){var ce;return(ce=e.getPackageJsonAutoImportProvider)==null?void 0:ce.call(e)}function V(ce,ee){let ue=c.getTypeChecker(),M=De();if(!M)return!1;for(let Fe of ce)for(let St of Fe.references){let Mt=qe(St);if(E.assertIsDefined(Mt),ee.has(St)||Eo.isDeclarationOfSymbol(Mt,M)){ee.add(St),St.isDefinition=!0;let Wt=gL(St,C,Js(e,e.fileExists));Wt&&ee.add(Wt)}else St.isDefinition=!1}return!0;function De(){for(let Fe of ce)for(let St of Fe.references){if(ee.has(St)){let Wt=qe(St);return E.assertIsDefined(Wt),ue.getSymbolAtLocation(Wt)}let Mt=gL(St,C,Js(e,e.fileExists));if(Mt&&ee.has(Mt)){let Wt=qe(Mt);if(Wt)return ue.getSymbolAtLocation(Wt)}}}function qe(Fe){let St=c.getSourceFile(Fe.fileName);if(!St)return;let Mt=m_(St,Fe.textSpan.start);return Eo.Core.getAdjustedNode(Mt,{use:Eo.FindReferencesUse.References})}}function X(){if(c){let ce=t.getKeyForCompilationSettings(c.getCompilerOptions());Qt(c.getSourceFiles(),ee=>t.releaseDocumentWithKey(ee.resolvedPath,ce,ee.scriptKind,ee.impliedNodeFormat)),c=void 0}}function J(){X(),e=void 0}function ie(ce){return D(),c.getSyntacticDiagnostics(w(ce),g).slice()}function B(ce){D();let ee=w(ce),ue=c.getSemanticDiagnostics(ee,g);if(!qf(c.getCompilerOptions()))return ue.slice();let M=c.getDeclarationDiagnostics(ee,g);return[...ue,...M]}function Z(ce){return D(),SG(w(ce),c,g)}function ae(){return D(),[...c.getOptionsDiagnostics(g),...c.getGlobalDiagnostics(g)]}function _e(ce,ee,ue=Hf,M){let De={...ue,includeCompletionsForModuleExports:ue.includeCompletionsForModuleExports||ue.includeExternalModuleExports,includeCompletionsWithInsertText:ue.includeCompletionsWithInsertText||ue.includeInsertTextCompletions};return D(),TT.getCompletionsAtPosition(e,c,y,w(ce),ee,De,ue.triggerCharacter,ue.triggerKind,g,M&&ml.getFormatContext(M,e),ue.includeSymbol)}function $(ce,ee,ue,M,De,qe=Hf,Fe){return D(),TT.getCompletionEntryDetails(c,y,w(ce),ee,{name:ue,source:De,data:Fe},e,M&&ml.getFormatContext(M,e),qe,g)}function H(ce,ee,ue,M,De=Hf){return D(),TT.getCompletionEntrySymbol(c,y,w(ce),ee,{name:ue,source:M},e,De)}function K(ce,ee){D();let ue=w(ce),M=m_(ue,ee);if(M===ue)return;let De=c.getTypeChecker(),qe=oe(M),Fe=jVe(qe,De);if(!Fe||De.isUnknownSymbol(Fe)){let nr=Se(ue,qe,ee)?De.getTypeAtLocation(qe):void 0;return nr&&{kind:"",kindModifiers:"",textSpan:g_(qe,ue),displayParts:De.runWithCancellationToken(g,br=>RA(br,nr,tS(qe))),documentation:nr.symbol?nr.symbol.getDocumentationComment(De):void 0,tags:nr.symbol?nr.symbol.getJsDocTags(De):void 0}}let{symbolKind:St,displayParts:Mt,documentation:Wt,tags:Rn}=De.runWithCancellationToken(g,nr=>_0.getSymbolDisplayPartsDocumentationAndSymbolKind(nr,Fe,ue,tS(qe),qe));return{kind:St,kindModifiers:_0.getSymbolModifiers(De,Fe),textSpan:g_(qe,ue),displayParts:Mt,documentation:Wt,tags:Rn}}function oe(ce){return Kv(ce.parent)&&ce.pos===ce.parent.pos?ce.parent.expression:QE(ce.parent)&&ce.pos===ce.parent.pos||Wk(ce.parent)&&ce.parent.name===ce||md(ce.parent)?ce.parent:ce}function Se(ce,ee,ue){switch(ee.kind){case 80:return!pH(ee)&&!dH(ee)&&!eh(ee.parent);case 211:case 166:return!s0(ce,ue);case 110:case 197:case 108:case 202:return!0;case 236:return Wk(ee);default:return!1}}function se(ce,ee,ue,M){return D(),S6.getDefinitionAtPosition(c,w(ce),ee,ue,M)}function Y(ce,ee){return D(),S6.getDefinitionAndBoundSpan(c,w(ce),ee)}function ve(ce,ee){return D(),S6.getTypeDefinitionAtPosition(c.getTypeChecker(),w(ce),ee)}function xe(ce,ee){return D(),Eo.getImplementationsAtPosition(c,g,c.getSourceFiles(),w(ce),ee)}function Me(ce,ee,ue){let M=Ys(ce);E.assert(ue.some(Fe=>Ys(Fe)===M)),D();let De=Ri(ue,Fe=>c.getSourceFile(Fe)),qe=w(ce);return jL.getDocumentHighlights(c,g,qe,ee,De)}function ke(ce,ee,ue,M,De){D();let qe=w(ce),Fe=tL(m_(qe,ee));if(OM.nodeIsEligibleForRename(Fe))if(Ie(Fe)&&(Gd(Fe.parent)||tb(Fe.parent))&&sC(Fe.escapedText)){let{openingElement:St,closingElement:Mt}=Fe.parent.parent;return[St,Mt].map(Wt=>{let Rn=g_(Wt.tagName,qe);return{fileName:qe.fileName,textSpan:Rn,...Eo.toContextSpan(Rn,qe,Wt.parent)}})}else{let St=Df(qe,De??Hf),Mt=typeof De=="boolean"?De:De?.providePrefixAndSuffixTextForRename;return be(Fe,ee,{findInStrings:ue,findInComments:M,providePrefixAndSuffixTextForRename:Mt,use:Eo.FindReferencesUse.Rename},(Wt,Rn,nr)=>Eo.toRenameLocation(Wt,Rn,nr,Mt||!1,St))}}function he(ce,ee){return D(),be(m_(w(ce),ee),ee,{use:Eo.FindReferencesUse.References},Eo.toReferenceEntry)}function be(ce,ee,ue,M){D();let De=ue&&ue.use===Eo.FindReferencesUse.Rename?c.getSourceFiles().filter(qe=>!c.isSourceFileDefaultLibrary(qe)):c.getSourceFiles();return Eo.findReferenceOrRenameEntries(c,g,De,ce,ee,ue,M)}function _t(ce,ee){return D(),Eo.findReferencedSymbols(c,g,c.getSourceFiles(),w(ce),ee)}function mt(ce){return D(),Eo.Core.getReferencesForFileName(ce,c,c.getSourceFiles()).map(Eo.toReferenceEntry)}function me(ce,ee,ue,M=!1,De=!1){D();let qe=ue?[w(ue)]:c.getSourceFiles();return Cxe(qe,c.getTypeChecker(),g,ce,ee,M,De)}function Oe(ce,ee,ue){D();let M=w(ce),De=e.getCustomTransformers&&e.getCustomTransformers();return rae(c,M,!!ee,g,De,ue)}function Qe(ce,ee,{triggerReason:ue}=Hf){D();let M=w(ce);return TN.getSignatureHelpItems(c,M,ee,ue,g)}function at(ce){return o.getCurrentSourceFile(ce)}function ht(ce,ee,ue){let M=o.getCurrentSourceFile(ce),De=m_(M,ee);if(De===M)return;switch(De.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let qe=De;for(;;)if(r6(qe)||ooe(qe))qe=qe.parent;else if(gH(qe))if(qe.parent.parent.kind===267&&qe.parent.parent.body===qe.parent)qe=qe.parent.parent.name;else break;else break;return Xc(qe.getStart(),De.getEnd())}function Je(ce,ee){let ue=o.getCurrentSourceFile(ce);return f$.spanInSourceFileAtLocation(ue,ee)}function lt(ce){return wxe(o.getCurrentSourceFile(ce),g)}function Jt(ce){return Axe(o.getCurrentSourceFile(ce),g)}function Gt(ce,ee,ue){return D(),(ue||"original")==="2020"?QTe(c,g,w(ce),ee):Yoe(c.getTypeChecker(),g,w(ce),c.getClassifiableNames(),ee)}function Tn(ce,ee,ue){return D(),(ue||"original")==="original"?dG(c.getTypeChecker(),g,w(ce),c.getClassifiableNames(),ee):lle(c,g,w(ce),ee)}function Un(ce,ee){return Zoe(g,o.getCurrentSourceFile(ce),ee)}function cn(ce,ee){return mG(g,o.getCurrentSourceFile(ce),ee)}function zt(ce){let ee=o.getCurrentSourceFile(ce);return oQ.collectElements(ee,g)}let Ft=new Map(Object.entries({19:20,21:22,23:24,32:30}));Ft.forEach((ce,ee)=>Ft.set(ce.toString(),Number(ee)));function Lr(ce,ee){let ue=o.getCurrentSourceFile(ce),M=R3(ue,ee),De=M.getStart(ue)===ee?Ft.get(M.kind.toString()):void 0,qe=De&&Ya(M.parent,De,ue);return qe?[g_(M,ue),g_(qe,ue)].sort((Fe,St)=>Fe.start-St.start):Ve}function ji(ce,ee,ue){let M=So(),De=aN(ue),qe=o.getCurrentSourceFile(ce);y("getIndentationAtPosition: getCurrentSourceFile: "+(So()-M)),M=So();let Fe=ml.SmartIndenter.getIndentation(ee,qe,De);return y("getIndentationAtPosition: computeIndentation : "+(So()-M)),Fe}function ii(ce,ee,ue,M){let De=o.getCurrentSourceFile(ce);return ml.formatSelection(ee,ue,De,ml.getFormatContext(aN(M),e))}function Hi(ce,ee){return ml.formatDocument(o.getCurrentSourceFile(ce),ml.getFormatContext(aN(ee),e))}function Ye(ce,ee,ue,M){let De=o.getCurrentSourceFile(ce),qe=ml.getFormatContext(aN(M),e);if(!s0(De,ee))switch(ue){case"{":return ml.formatOnOpeningCurly(ee,De,qe);case"}":return ml.formatOnClosingCurly(ee,De,qe);case";":return ml.formatOnSemicolon(ee,De,qe);case` -`:return ml.formatOnEnter(ee,De,qe)}return[]}function fn(ce,ee,ue,M,De,qe=Hf){D();let Fe=w(ce),St=Xc(ee,ue),Mt=ml.getFormatContext(De,e);return oa(ix(M,B0,Io),Wt=>(g.throwIfCancellationRequested(),fu.getFixes({errorCode:Wt,sourceFile:Fe,span:St,program:c,host:e,cancellationToken:g,formatContext:Mt,preferences:qe})))}function An(ce,ee,ue,M=Hf){D(),E.assert(ce.type==="file");let De=w(ce.fileName),qe=ml.getFormatContext(ue,e);return fu.getAllFixes({fixId:ee,sourceFile:De,program:c,host:e,cancellationToken:g,formatContext:qe,preferences:M})}function Ot(ce,ee,ue=Hf){D(),E.assert(ce.type==="file");let M=w(ce.fileName),De=ml.getFormatContext(ee,e),qe=ce.mode??(ce.skipDestructiveCodeActions?"SortAndCombine":"All");return ed.organizeImports(M,De,e,c,ue,qe)}function Sn(ce,ee,ue,M=Hf){return tce(O(),ce,ee,e,ml.getFormatContext(ue,e),M,C)}function Cn(ce,ee){let ue=typeof ce=="string"?ee:ce;return ss(ue)?Promise.all(ue.map(M=>Kn(M))):Kn(ue)}function Kn(ce){let ee=ue=>xo(ue,p,x);return E.assertEqual(ce.type,"install package"),e.installPackage?e.installPackage({fileName:ee(ce.file),packageName:ce.packageName}):Promise.reject("Host does not implement `installPackage`")}function Fi(ce,ee,ue,M){let De=M?ml.getFormatContext(M,e).options:void 0;return R1.getDocCommentTemplateAtPosition(c0(e,De),o.getCurrentSourceFile(ce),ee,ue)}function Wi(ce,ee,ue){if(ue===60)return!1;let M=o.getCurrentSourceFile(ce);if(nS(M,ee))return!1;if(doe(M,ee))return ue===123;if(xH(M,ee))return!1;switch(ue){case 39:case 34:case 96:return!s0(M,ee)}return!0}function Ii(ce,ee){let ue=o.getCurrentSourceFile(ce),M=ol(ee,ue);if(!M)return;let De=M.kind===32&&Gd(M.parent)?M.parent.parent:zx(M)&&kg(M.parent)?M.parent:void 0;if(De&&dt(De))return{newText:``};let qe=M.kind===32&&Zx(M.parent)?M.parent.parent:zx(M)&&nb(M.parent)?M.parent:void 0;if(qe&>(qe))return{newText:""}}function Ki(ce,ee){let ue=o.getCurrentSourceFile(ce),M=ol(ee,ue);if(!M||M.parent.kind===312)return;let De="[a-zA-Z0-9:\\-\\._$]*";if(nb(M.parent.parent)){let qe=M.parent.parent.openingFragment,Fe=M.parent.parent.closingFragment;if(jk(qe)||jk(Fe))return;let St=qe.getStart(ue)+1,Mt=Fe.getStart(ue)+2;return ee!==St&&ee!==Mt?void 0:{ranges:[{start:St,length:0},{start:Mt,length:0}],wordPattern:De}}else{let qe=Fn(M.parent,jr=>!!(Gd(jr)||tb(jr)));if(!qe)return;E.assert(Gd(qe)||tb(qe),"tag should be opening or closing element");let Fe=qe.parent.openingElement,St=qe.parent.closingElement,Mt=Fe.tagName.getStart(ue),Wt=Fe.tagName.end,Rn=St.tagName.getStart(ue),nr=St.tagName.end;return!(Mt<=ee&&ee<=Wt||Rn<=ee&&ee<=nr)||Fe.tagName.getText(ue)!==St.tagName.getText(ue)?void 0:{ranges:[{start:Mt,length:Wt-Mt},{start:Rn,length:nr-Rn}],wordPattern:De}}}function na(ce,ee){return{lineStarts:ce.getLineStarts(),firstLine:ce.getLineAndCharacterOfPosition(ee.pos).line,lastLine:ce.getLineAndCharacterOfPosition(ee.end).line}}function Fs(ce,ee,ue){let M=o.getCurrentSourceFile(ce),De=[],{lineStarts:qe,firstLine:Fe,lastLine:St}=na(M,ee),Mt=ue||!1,Wt=Number.MAX_VALUE,Rn=new Map,nr=new RegExp(/\S/),br=iL(M,qe[Fe]),jr=br?"{/*":"//";for(let Br=Fe;Br<=St;Br++){let Mi=M.text.substring(qe[Br],M.getLineEndOfPosition(qe[Br])),wr=nr.exec(Mi);wr&&(Wt=Math.min(Wt,wr.index),Rn.set(Br.toString(),wr.index),Mi.substr(wr.index,jr.length)!==jr&&(Mt=ue===void 0||ue))}for(let Br=Fe;Br<=St;Br++){if(Fe!==St&&qe[Br]===ee.end)continue;let Mi=Rn.get(Br.toString());Mi!==void 0&&(br?De.push(...Ce(ce,{pos:qe[Br]+Wt,end:M.getLineEndOfPosition(qe[Br])},Mt,br)):Mt?De.push({newText:jr,span:{length:0,start:qe[Br]+Wt}}):M.text.substr(qe[Br]+Mi,jr.length)===jr&&De.push({newText:"",span:{length:jr.length,start:qe[Br]+Mi}}))}return De}function Ce(ce,ee,ue,M){var De;let qe=o.getCurrentSourceFile(ce),Fe=[],{text:St}=qe,Mt=!1,Wt=ue||!1,Rn=[],{pos:nr}=ee,br=M!==void 0?M:iL(qe,nr),jr=br?"{/*":"/*",Br=br?"*/}":"*/",Mi=br?"\\{\\/\\*":"\\/\\*",wr=br?"\\*\\/\\}":"\\*\\/";for(;nr<=ee.end;){let is=St.substr(nr,jr.length)===jr?jr.length:0,In=s0(qe,nr+is);if(In)br&&(In.pos--,In.end++),Rn.push(In.pos),In.kind===3&&Rn.push(In.end),Mt=!0,nr=In.end+1;else{let mi=St.substring(nr,ee.end).search(`(${Mi})|(${wr})`);Wt=ue!==void 0?ue:Wt||!Eoe(St,nr,mi===-1?ee.end:nr+mi),nr=mi===-1?ee.end+1:nr+mi+Br.length}}if(Wt||!Mt){((De=s0(qe,ee.pos))==null?void 0:De.kind)!==2&&j0(Rn,ee.pos,Io),j0(Rn,ee.end,Io);let is=Rn[0];St.substr(is,jr.length)!==jr&&Fe.push({newText:jr,span:{length:0,start:is}});for(let In=1;In0?is-Br.length:0,mi=St.substr(In,Br.length)===Br?Br.length:0;Fe.push({newText:"",span:{length:jr.length,start:is-mi}})}return Fe}function Ue(ce,ee){let ue=o.getCurrentSourceFile(ce),{firstLine:M,lastLine:De}=na(ue,ee);return M===De&&ee.pos!==ee.end?Ce(ce,ee,!0):Fs(ce,ee,!0)}function it(ce,ee){let ue=o.getCurrentSourceFile(ce),M=[],{pos:De}=ee,{end:qe}=ee;De===qe&&(qe+=iL(ue,De)?2:1);for(let Fe=De;Fe<=qe;Fe++){let St=s0(ue,Fe);if(St){switch(St.kind){case 2:M.push(...Fs(ce,{end:St.end,pos:St.pos+1},!1));break;case 3:M.push(...Ce(ce,{end:St.end,pos:St.pos+1},!1))}Fe=St.end+1}}return M}function dt({openingElement:ce,closingElement:ee,parent:ue}){return!D1(ce.tagName,ee.tagName)||kg(ue)&&D1(ce.tagName,ue.openingElement.tagName)&&dt(ue)}function gt({closingFragment:ce,parent:ee}){return!!(ce.flags&262144)||nb(ee)&>(ee)}function fe(ce,ee,ue){let M=o.getCurrentSourceFile(ce),De=ml.getRangeOfEnclosingComment(M,ee);return De&&(!ue||De.kind===3)?fy(De):void 0}function we(ce,ee){D();let ue=w(ce);g.throwIfCancellationRequested();let M=ue.text,De=[];if(ee.length>0&&!Mt(ue.fileName)){let Wt=Fe(),Rn;for(;Rn=Wt.exec(M);){g.throwIfCancellationRequested();let nr=3;E.assert(Rn.length===ee.length+nr);let br=Rn[1],jr=Rn.index+br.length;if(!s0(ue,jr))continue;let Br;for(let wr=0;wr"("+qe(In.text)+")").join("|")+")",Br=/(?:$|\*\/)/.source,Mi=/(?:.*?)/.source,wr="("+jr+Mi+")",is=br+wr+Br;return new RegExp(is,"gim")}function St(Wt){return Wt>=97&&Wt<=122||Wt>=65&&Wt<=90||Wt>=48&&Wt<=57}function Mt(Wt){return Wt.includes("/node_modules/")}}function Be(ce,ee,ue){return D(),OM.getRenameInfo(c,w(ce),ee,ue||{})}function yt(ce,ee,ue,M,De,qe){let[Fe,St]=typeof ee=="number"?[ee,void 0]:[ee.pos,ee.end];return{file:ce,startPosition:Fe,endPosition:St,program:O(),host:e,formatContext:ml.getFormatContext(M,e),cancellationToken:g,preferences:ue,triggerReason:De,kind:qe}}function G(ce,ee,ue){return{file:ce,program:O(),host:e,span:ee,preferences:ue,cancellationToken:g}}function vt(ce,ee){return uQ.getSmartSelectionRange(ee,o.getCurrentSourceFile(ce))}function wt(ce,ee,ue=Hf,M,De,qe){D();let Fe=w(ce);return hT.getApplicableRefactors(yt(Fe,ee,ue,Hf,M,De),qe)}function Re(ce,ee,ue=Hf){D();let M=w(ce),De=E.checkDefined(c.getSourceFiles()),qe=Lx(ce),Fe=Ri(De,Mt=>!c?.isSourceFileFromExternalLibrary(M)&&!(M===w(Mt.fileName)||qe===".ts"&&Lx(Mt.fileName)===".d.ts"||qe===".d.ts"&&ts(Mc(Mt.fileName),"lib.")&&Lx(Mt.fileName)===".d.ts")&&qe===Lx(Mt.fileName)?Mt.fileName:void 0);return{newFileName:zce(M,c,yt(M,ee,ue,Hf),e),files:Fe}}function ot(ce,ee,ue,M,De,qe=Hf,Fe){D();let St=w(ce);return hT.getEditsForRefactor(yt(St,ue,qe,ee),M,De,Fe)}function Dt(ce,ee){return ee===0?{line:0,character:0}:C.toLineColumnOffset(ce,ee)}function Zt(ce,ee){D();let ue=yT.resolveCallHierarchyDeclaration(c,m_(w(ce),ee));return ue&&eG(ue,M=>yT.createCallHierarchyItem(c,M))}function tn(ce,ee){D();let ue=w(ce),M=tG(yT.resolveCallHierarchyDeclaration(c,ee===0?ue:m_(ue,ee)));return M?yT.getIncomingCalls(c,M,g):[]}function ln(ce,ee){D();let ue=w(ce),M=tG(yT.resolveCallHierarchyDeclaration(c,ee===0?ue:m_(ue,ee)));return M?yT.getOutgoingCalls(c,M):[]}function W(ce,ee,ue=Hf){D();let M=w(ce);return rQ.provideInlayHints(G(M,ee,ue))}let j={dispose:J,cleanupSemanticCache:X,getSyntacticDiagnostics:ie,getSemanticDiagnostics:B,getSuggestionDiagnostics:Z,getCompilerOptionsDiagnostics:ae,getSyntacticClassifications:Un,getSemanticClassifications:Gt,getEncodedSyntacticClassifications:cn,getEncodedSemanticClassifications:Tn,getCompletionsAtPosition:_e,getCompletionEntryDetails:$,getCompletionEntrySymbol:H,getSignatureHelpItems:Qe,getQuickInfoAtPosition:K,getDefinitionAtPosition:se,getDefinitionAndBoundSpan:Y,getImplementationAtPosition:xe,getTypeDefinitionAtPosition:ve,getReferencesAtPosition:he,findReferences:_t,getFileReferences:mt,getDocumentHighlights:Me,getNameOrDottedNameSpan:ht,getBreakpointStatementAtPosition:Je,getNavigateToItems:me,getRenameInfo:Be,getSmartSelectionRange:vt,findRenameLocations:ke,getNavigationBarItems:lt,getNavigationTree:Jt,getOutliningSpans:zt,getTodoComments:we,getBraceMatchingAtPosition:Lr,getIndentationAtPosition:ji,getFormattingEditsForRange:ii,getFormattingEditsForDocument:Hi,getFormattingEditsAfterKeystroke:Ye,getDocCommentTemplateAtPosition:Fi,isValidBraceCompletionAtPosition:Wi,getJsxClosingTagAtPosition:Ii,getLinkedEditingRangeAtPosition:Ki,getSpanOfEnclosingComment:fe,getCodeFixesAtPosition:fn,getCombinedCodeFix:An,applyCodeActionCommand:Cn,organizeImports:Ot,getEditsForFileRename:Sn,getEmitOutput:Oe,getNonBoundSourceFile:at,getProgram:O,getCurrentProgram:()=>c,getAutoImportProvider:z,updateIsDefinitionOfReferencedSymbols:V,getApplicableRefactors:wt,getEditsForRefactor:ot,getMoveToRefactoringFileSuggestions:Re,toLineColumnOffset:Dt,getSourceMapper:()=>C,clearSourceMapperCache:()=>C.clearCache(),prepareCallHierarchy:Zt,provideCallHierarchyIncomingCalls:tn,provideCallHierarchyOutgoingCalls:ln,toggleLineComment:Fs,toggleMultilineComment:Ce,commentSelection:Ue,uncommentSelection:it,provideInlayHints:W,getSupportedCodeFixes:i$};switch(s){case 0:break;case 1:yle.forEach(ce=>j[ce]=()=>{throw new Error(`LanguageService Operation: ${ce} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:pke.forEach(ce=>j[ce]=()=>{throw new Error(`LanguageService Operation: ${ce} not allowed in LanguageServiceMode.Syntactic`)});break;default:E.assertNever(s)}return j}function a$(e){return e.nameTable||LVe(e),e.nameTable}function LVe(e){let t=e.nameTable=new Map;e.forEachChild(function n(i){if(Ie(i)&&!dH(i)&&i.escapedText||vf(i)&&MVe(i)){let s=fE(i);t.set(s,t.get(s)===void 0?i.pos:-1)}else if(Di(i)){let s=i.escapedText;t.set(s,t.get(s)===void 0?i.pos:-1)}if(vs(i,n),Z_(i))for(let s of i.jsDoc)vs(s,n)})}function MVe(e){return ih(e)||e.parent.kind===283||BVe(e)||Tw(e)}function cN(e){let t=RVe(e);return t&&(xa(t.parent)||rb(t.parent))?t:void 0}function RVe(e){switch(e.kind){case 11:case 15:case 9:if(e.parent.kind===167)return IJ(e.parent.parent)?e.parent.parent:void 0;case 80:return IJ(e.parent)&&(e.parent.parent.kind===210||e.parent.parent.kind===292)&&e.parent.name===e?e.parent:void 0}}function jVe(e,t){let n=cN(e);if(n){let i=t.getContextualType(n.parent),s=i&&uM(n,t,i,!1);if(s&&s.length===1)return Da(s)}return t.getSymbolAtLocation(e)}function uM(e,t,n,i){let s=OA(e.name);if(!s)return Ve;if(!n.isUnion()){let c=n.getProperty(s);return c?[c]:Ve}let o=Ri(n.types,c=>(xa(e.parent)||rb(e.parent))&&t.isTypeInvalidDueToUnionDiscriminant(c,e.parent)?void 0:c.getProperty(s));if(i&&(o.length===0||o.length===n.types.length)){let c=n.getProperty(s);if(c)return[c]}return o.length===0?Ri(n.types,c=>c.getProperty(s)):o}function BVe(e){return e&&e.parent&&e.parent.kind===212&&e.parent.argumentExpression===e}function mle(e){if(Hl)return Qr(Xr(Ys(Hl.getExecutingFilePath())),EP(e));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var gle,o$,c$,ske,hle,l$,u$,ake,oke,cke,lke,uke,_ke,fke,_$,yle,pke,JVe=ze({"src/services/services.ts"(){"use strict";qr(),Pxe(),Xxe(),Vm(),ixe(),KTe(),gle="0.8",o$=class{constructor(e,t,n){this.pos=t,this.end=n,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=e}assertHasRealPosition(e){E.assert(!dd(this.pos)&&!dd(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Mn(this)}getStart(e,t){return this.assertHasRealPosition(),b2(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=IVe(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let n=xr(t,i=>i.kind<316||i.kind>357);return n.kind<166?n:n.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),n=qo(t);if(n)return n.kind<166?n:n.getLastToken(e)}forEachChild(e,t){return vs(this,e,t)}},c$=class{constructor(e,t){this.pos=e,this.end=t,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return Mn(this)}getStart(e,t){return b2(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||Ve}getFirstToken(){}getLastToken(){}forEachChild(){}},ske=class{constructor(e,t){this.id=0,this.mergeId=0,this.flags=e,this.escapedName=t}getFlags(){return this.flags}get name(){return xc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=Ve,!this.declarations&&wm(this)&&this.links.target&&wm(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=oM([t],e)}else this.documentationComment=oM(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(X0(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=oM(Fr(this.declarations,X0),t)),bn(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(qh(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=oM(Fr(this.declarations,qh),t)),bn(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=r$(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(X0(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=r$(Fr(this.declarations,X0),t)),bn(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(qh(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=r$(Fr(this.declarations,qh),t)),bn(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},hle=class extends c${constructor(e,t,n){super(t,n),this.kind=e}},l$=class extends c${constructor(e,t,n){super(t,n),this.kind=80}get text(){return ur(this)}},l$.prototype.kind=80,u$=class extends c${constructor(e,t,n){super(t,n),this.kind=81}get text(){return ur(this)}},u$.prototype.kind=81,ake=class{constructor(e,t){this.checker=e,this.flags=t}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Ir(this)&3)}isClass(){return!!(Ir(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Ir(this)&4)return this.checker.getTypeArguments(this)}},oke=class{constructor(e,t){this.checker=e,this.flags=t}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&jE(t.type)){let n=t.type.getConstraint();if(n)return this.checker.getIndexType(n)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=oM(c2(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=r$(c2(this.declaration),this.checker))}},cke=class extends o${constructor(e,t,n){super(e,t,n),this.kind=312}update(e,t){return xW(this,e,t)}getLineAndCharacterOfPosition(e){return Ka(this,e)}getLineStarts(){return Zg(this)}getPositionOfLineAndCharacter(e,t,n){return y7(Zg(this),e,t,this.text,n)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),n=this.getLineStarts(),i;t+1>=n.length&&(i=this.getEnd()),i||(i=n[t+1]-1);let s=this.getFullText();return s[i]===` -`&&s[i-1]==="\r"?i-1:i}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=mf();return this.forEachChild(s),e;function t(o){let c=i(o);c&&e.add(c,o)}function n(o){let c=e.get(o);return c||e.set(o,c=[]),c}function i(o){let c=T7(o);return c&&(Na(c)&&Cr(c.expression)?c.expression.name.text:Rc(c)?OA(c):void 0)}function s(o){switch(o.kind){case 262:case 218:case 174:case 173:let c=o,u=i(c);if(u){let p=n(u),y=qo(p);y&&c.parent===y.parent&&c.symbol===y.symbol?c.body&&!y.body&&(p[p.length-1]=c):p.push(c)}vs(o,s);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(o),vs(o,s);break;case 169:if(!Mr(o,31))break;case 260:case 208:{let p=o;if(Ms(p.name)){vs(p.name,s);break}p.initializer&&s(p.initializer)}case 306:case 172:case 171:t(o);break;case 278:let f=o;f.exportClause&&(kp(f.exportClause)?Qt(f.exportClause.elements,s):s(f.exportClause.name));break;case 272:let g=o.importClause;g&&(g.name&&t(g.name),g.namedBindings&&(g.namedBindings.kind===274?t(g.namedBindings):Qt(g.namedBindings.elements,s)));break;case 226:mc(o)!==0&&t(o);default:vs(o,s)}}}},lke=class{constructor(e,t,n){this.fileName=e,this.text=t,this.skipTrivia=n}getLineAndCharacterOfPosition(e){return Ka(this,e)}},uke=class{constructor(e){this.host=e}getCurrentSourceFile(e){var t,n,i,s,o,c,u,f;let g=this.host.getScriptSnapshot(e);if(!g)throw new Error("Could not find file: '"+e+"'.");let p=UH(e,this.host),y=this.host.getScriptVersion(e),S;if(this.currentFileName!==e){let x={languageVersion:99,impliedNodeFormat:pA(xo(e,this.host.getCurrentDirectory(),((i=(n=(t=this.host).getCompilerHost)==null?void 0:n.call(t))==null?void 0:i.getCanonicalFileName)||$h(this.host)),(f=(u=(c=(o=(s=this.host).getCompilerHost)==null?void 0:o.call(s))==null?void 0:c.getModuleResolutionCache)==null?void 0:u.call(c))==null?void 0:f.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Vw(this.host.getCompilationSettings()),jsDocParsingMode:0};S=lM(e,g,x,y,!0,p)}else if(this.currentFileVersion!==y){let x=g.getChangeRange(this.currentFileScriptSnapshot);S=s$(this.currentSourceFile,g,y,x)}return S&&(this.currentFileVersion=y,this.currentFileName=e,this.currentFileScriptSnapshot=g,this.currentSourceFile=S),this.currentSourceFile}},_ke={isCancellationRequested:ld,throwIfCancellationRequested:Fa},fke=class{constructor(e){this.cancellationToken=e}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Wn)==null||e.instant(Wn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new xk}},_$=class{constructor(e,t=20){this.hostCancellationToken=e,this.throttleWaitMilliseconds=t,this.lastCancellationCheckTime=0}isCancellationRequested(){let e=So();return Math.abs(e-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=e,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var e;if(this.isCancellationRequested())throw(e=Wn)==null||e.instant(Wn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new xk}},yle=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],pke=[...yle,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],pne(OVe())}});function dke(e,t,n){let i=[];n=EG(n,i);let s=ss(e)?e:[e],o=sA(void 0,void 0,I,n,s,t,!0);return o.diagnostics=es(o.diagnostics,i),o}var zVe=ze({"src/services/transform.ts"(){"use strict";qr()}});function VVe(e,t){if(e.isDeclarationFile)return;let n=qi(e,t),i=e.getLineAndCharacterOfPosition(t).line;if(e.getLineAndCharacterOfPosition(n.getStart(e)).line>i){let y=ol(n.pos,e);if(!y||e.getLineAndCharacterOfPosition(y.getEnd()).line!==i)return;n=y}if(n.flags&33554432)return;return p(n);function s(y,S){let x=G2(y)?Bp(y.modifiers,Zl):void 0,C=x?ma(e.text,x.end):y.getStart(e);return Xc(C,(S||y).getEnd())}function o(y,S){return s(y,mb(S,S.parent,e))}function c(y,S){return y&&i===e.getLineAndCharacterOfPosition(y.getStart(e)).line?p(y):p(S)}function u(y,S,x){if(y){let C=y.indexOf(S);if(C>=0){let w=C,D=C+1;for(;w>0&&x(y[w-1]);)w--;for(;D0)return p(ve.declarations[0])}else return p(Y.initializer)}function J(Y){if(Y.initializer)return X(Y);if(Y.condition)return s(Y.condition);if(Y.incrementor)return s(Y.incrementor)}function ie(Y){let ve=Qt(Y.elements,xe=>xe.kind!==232?xe:void 0);return ve?p(ve):Y.parent.kind===208?s(Y.parent):S(Y.parent)}function B(Y){E.assert(Y.kind!==207&&Y.kind!==206);let ve=Y.kind===209?Y.elements:Y.properties,xe=Qt(ve,Me=>Me.kind!==232?Me:void 0);return xe?p(xe):s(Y.parent.kind===226?Y.parent:Y)}function Z(Y){switch(Y.parent.kind){case 266:let ve=Y.parent;return c(ol(Y.pos,e,Y.parent),ve.members.length?ve.members[0]:ve.getLastToken(e));case 263:let xe=Y.parent;return c(ol(Y.pos,e,Y.parent),xe.members.length?xe.members[0]:xe.getLastToken(e));case 269:return c(Y.parent.parent,Y.parent.clauses[0])}return p(Y.parent)}function ae(Y){switch(Y.parent.kind){case 268:if(fh(Y.parent.parent)!==1)return;case 266:case 263:return s(Y);case 241:if(jv(Y.parent))return s(Y);case 299:return p(qo(Y.parent.statements));case 269:let ve=Y.parent,xe=qo(ve.clauses);return xe?p(qo(xe.statements)):void 0;case 206:let Me=Y.parent;return p(qo(Me.elements)||Me);default:if(a0(Y.parent)){let ke=Y.parent;return s(qo(ke.properties)||ke)}return p(Y.parent)}}function _e(Y){switch(Y.parent.kind){case 207:let ve=Y.parent;return s(qo(ve.elements)||ve);default:if(a0(Y.parent)){let xe=Y.parent;return s(qo(xe.elements)||xe)}return p(Y.parent)}}function $(Y){return Y.parent.kind===246||Y.parent.kind===213||Y.parent.kind===214?f(Y):Y.parent.kind===217?g(Y):p(Y.parent)}function H(Y){switch(Y.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return f(Y);default:return p(Y.parent)}}function K(Y){return As(Y.parent)||Y.parent.kind===303||Y.parent.kind===169?f(Y):p(Y.parent)}function oe(Y){return Y.parent.kind===216?g(Y):p(Y.parent)}function Se(Y){return Y.parent.kind===246?o(Y,Y.parent.expression):p(Y.parent)}function se(Y){return Y.parent.kind===250?g(Y):p(Y.parent)}}}var WVe=ze({"src/services/breakpoints.ts"(){"use strict";qr()}}),f$={};Jn(f$,{spanInSourceFileAtLocation:()=>VVe});var UVe=ze({"src/services/_namespaces/ts.BreakpointResolver.ts"(){"use strict";WVe()}});function qVe(e){return(uo(e)||Bl(e))&&Ru(e)}function lN(e){return(uo(e)||Co(e)||Bl(e))&&Ni(e.parent)&&e===e.parent.initializer&&Ie(e.parent.name)&&!!(Wh(e.parent)&2)}function mke(e){return Li(e)||Pc(e)||al(e)||uo(e)||Zc(e)||Bl(e)||rc(e)||kc(e)||xg(e)||Sf(e)||j_(e)}function m6(e){return Li(e)||Pc(e)&&Ie(e.name)||al(e)||Zc(e)||rc(e)||kc(e)||xg(e)||Sf(e)||j_(e)||qVe(e)||lN(e)}function gke(e){return Li(e)?e:Ru(e)?e.name:lN(e)?e.parent.name:E.checkDefined(e.modifiers&&xr(e.modifiers,hke))}function hke(e){return e.kind===90}function yke(e,t){let n=gke(t);return n&&e.getSymbolAtLocation(n)}function HVe(e,t){if(Li(t))return{text:t.fileName,pos:0,end:0};if((al(t)||Zc(t))&&!Ru(t)){let s=t.modifiers&&xr(t.modifiers,hke);if(s)return{text:"default",pos:s.getStart(),end:s.getEnd()}}if(rc(t)){let s=t.getSourceFile(),o=ma(s.text,Wd(t).pos),c=o+6,u=e.getTypeChecker(),f=u.getSymbolAtLocation(t.parent);return{text:`${f?`${u.symbolToString(f,t.parent)} `:""}static {}`,pos:o,end:c}}let n=lN(t)?t.parent.name:E.checkDefined(us(t),"Expected call hierarchy item to have a name"),i=Ie(n)?ur(n):vf(n)?n.text:Na(n)&&vf(n.expression)?n.expression.text:void 0;if(i===void 0){let s=e.getTypeChecker(),o=s.getSymbolAtLocation(n);o&&(i=s.symbolToString(o,t))}if(i===void 0){let s=oA();i=Q4(o=>s.writeNode(4,t,t.getSourceFile(),o))}return{text:i,pos:n.getStart(),end:n.getEnd()}}function GVe(e){var t,n;if(lN(e))return Hd(e.parent.parent.parent.parent)&&Ie(e.parent.parent.parent.parent.parent.name)?e.parent.parent.parent.parent.parent.name.getText():void 0;switch(e.kind){case 177:case 178:case 174:return e.parent.kind===210?(t=_J(e.parent))==null?void 0:t.getText():(n=us(e.parent))==null?void 0:n.getText();case 262:case 263:case 267:if(Hd(e.parent)&&Ie(e.parent.parent.name))return e.parent.parent.name.getText()}}function vke(e,t){if(t.body)return t;if(Cc(t))return yg(t.parent);if(al(t)||kc(t)){let n=yke(e,t);return n&&n.valueDeclaration&&To(n.valueDeclaration)&&n.valueDeclaration.body?n.valueDeclaration:void 0}return t}function bke(e,t){let n=yke(e,t),i;if(n&&n.declarations){let s=nP(n.declarations),o=Kt(n.declarations,f=>({file:f.getSourceFile().fileName,pos:f.pos}));s.sort((f,g)=>Ou(o[f].file,o[g].file)||o[f].pos-o[g].pos);let c=Kt(s,f=>n.declarations[f]),u;for(let f of c)m6(f)&&((!u||u.parent!==f.parent||u.end!==f.pos)&&(i=_n(i,f)),u=f)}return i}function p$(e,t){return rc(t)?t:To(t)?vke(e,t)??bke(e,t)??t:bke(e,t)??t}function Ske(e,t){let n=e.getTypeChecker(),i=!1;for(;;){if(m6(t))return p$(n,t);if(mke(t)){let s=Fn(t,m6);return s&&p$(n,s)}if(ih(t)){if(m6(t.parent))return p$(n,t.parent);if(mke(t.parent)){let s=Fn(t.parent,m6);return s&&p$(n,s)}return Ni(t.parent)&&t.parent.initializer&&lN(t.parent.initializer)?t.parent.initializer:void 0}if(Cc(t))return m6(t.parent)?t.parent:void 0;if(t.kind===126&&rc(t.parent)){t=t.parent;continue}if(Ni(t)&&t.initializer&&lN(t.initializer))return t.initializer;if(!i){let s=n.getSymbolAtLocation(t);if(s&&(s.flags&2097152&&(s=n.getAliasedSymbol(s)),s.valueDeclaration)){i=!0,t=s.valueDeclaration;continue}}return}}function vle(e,t){let n=t.getSourceFile(),i=HVe(e,t),s=GVe(t),o=db(t),c=j3(t),u=Xc(ma(n.text,t.getFullStart(),!1,!0),t.getEnd()),f=Xc(i.pos,i.end);return{file:n.fileName,kind:o,kindModifiers:c,name:i.text,containerName:s,span:u,selectionSpan:f}}function $Ve(e){return e!==void 0}function XVe(e){if(e.kind===Eo.EntryKind.Node){let{node:t}=e;if(uH(t,!0,!0)||roe(t,!0,!0)||ioe(t,!0,!0)||soe(t,!0,!0)||r6(t)||mH(t)){let n=t.getSourceFile();return{declaration:Fn(t,m6)||n,range:AH(t,n)}}}}function xke(e){return Va(e.declaration)}function QVe(e,t){return{from:e,fromSpans:t}}function YVe(e,t){return QVe(vle(e,t[0].declaration),Kt(t,n=>fy(n.range)))}function ZVe(e,t,n){if(Li(t)||Pc(t)||rc(t))return[];let i=gke(t),s=Fr(Eo.findReferenceOrRenameEntries(e,n,e.getSourceFiles(),i,0,{use:Eo.FindReferencesUse.References},XVe),$Ve);return s?E4(s,xke,o=>YVe(e,o)):[]}function KVe(e,t){function n(s){let o=B2(s)?s.tag:Zu(s)?s.tagName:ho(s)||rc(s)?s:s.expression,c=Ske(e,o);if(c){let u=AH(o,s.getSourceFile());if(ss(c))for(let f of c)t.push({declaration:f,range:u});else t.push({declaration:c,range:u})}}function i(s){if(s&&!(s.flags&33554432)){if(m6(s)){if(ei(s))for(let o of s.members)o.name&&Na(o.name)&&i(o.name.expression);return}switch(s.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:n(s);return;case 216:case 234:i(s.expression);return;case 260:case 169:i(s.name),i(s.initializer);return;case 213:n(s),i(s.expression),Qt(s.arguments,i);return;case 214:n(s),i(s.expression),Qt(s.arguments,i);return;case 215:n(s),i(s.tag),i(s.template);return;case 286:case 285:n(s),i(s.tagName),i(s.attributes);return;case 170:n(s),i(s.expression);return;case 211:case 212:n(s),vs(s,i);break;case 238:i(s.expression);return}dg(s)||vs(s,i)}}return i}function eWe(e,t){Qt(e.statements,t)}function tWe(e,t){!Mr(e,128)&&e.body&&Hd(e.body)&&Qt(e.body.statements,t)}function nWe(e,t,n){let i=vke(e,t);i&&(Qt(i.parameters,n),n(i.body))}function rWe(e,t){t(e.body)}function iWe(e,t){Qt(e.modifiers,t);let n=Vv(e);n&&t(n.expression);for(let i of e.members)Yp(i)&&Qt(i.modifiers,t),Is(i)?t(i.initializer):Cc(i)&&i.body?(Qt(i.parameters,t),t(i.body)):rc(i)&&t(i)}function sWe(e,t){let n=[],i=KVe(e,n);switch(t.kind){case 312:eWe(t,i);break;case 267:tWe(t,i);break;case 262:case 218:case 219:case 174:case 177:case 178:nWe(e.getTypeChecker(),t,i);break;case 263:case 231:iWe(t,i);break;case 175:rWe(t,i);break;default:E.assertNever(t)}return n}function aWe(e,t){return{to:e,fromSpans:t}}function oWe(e,t){return aWe(vle(e,t[0].declaration),Kt(t,n=>fy(n.range)))}function cWe(e,t){return t.flags&33554432||xg(t)?[]:E4(sWe(e,t),xke,n=>oWe(e,n))}var lWe=ze({"src/services/callHierarchy.ts"(){"use strict";qr()}}),yT={};Jn(yT,{createCallHierarchyItem:()=>vle,getIncomingCalls:()=>ZVe,getOutgoingCalls:()=>cWe,resolveCallHierarchyDeclaration:()=>Ske});var uWe=ze({"src/services/_namespaces/ts.CallHierarchy.ts"(){"use strict";lWe()}}),Tke={};Jn(Tke,{TokenEncodingConsts:()=>ule,TokenModifier:()=>fle,TokenType:()=>_le,getEncodedSemanticClassifications:()=>lle,getSemanticClassifications:()=>QTe});var _We=ze({"src/services/_namespaces/ts.classifier.v2020.ts"(){"use strict";KTe()}}),ble={};Jn(ble,{v2020:()=>Tke});var fWe=ze({"src/services/_namespaces/ts.classifier.ts"(){"use strict";_We()}});function Sd(e,t,n){return xle(e,aS(n),t,void 0,void 0)}function qs(e,t,n,i,s,o){return xle(e,aS(n),t,i,aS(s),o)}function Sle(e,t,n,i,s,o){return xle(e,aS(n),t,i,s&&aS(s),o)}function xle(e,t,n,i,s,o){return{fixName:e,description:t,changes:n,fixId:i,fixAllDescription:s,commands:o?[o]:void 0}}function ia(e){for(let t of e.errorCodes)Tle=void 0,d$.add(String(t),e);if(e.fixIds)for(let t of e.fixIds)E.assert(!m$.has(t)),m$.set(t,e)}function pWe(){return Tle??(Tle=hs(d$.keys()))}function dWe(e,t){let{errorCodes:n}=e,i=0;for(let o of t)if(gs(n,o.code)&&i++,i>1)break;let s=i<2;return({fixId:o,fixAllDescription:c,...u})=>s?u:{...u,fixId:o,fixAllDescription:c}}function mWe(e){let t=Cke(e),n=d$.get(String(e.errorCode));return oa(n,i=>Kt(i.getCodeActions(e),dWe(i,t)))}function gWe(e){return m$.get(Vs(e.fixId,os)).getAllCodeActions(e)}function g6(e,t){return{changes:e,commands:t}}function kke(e,t){return{fileName:e,textChanges:t}}function no(e,t,n){let i=[],s=er.ChangeTracker.with(e,o=>h6(e,t,c=>n(o,c,i)));return g6(s,i.length===0?void 0:i)}function h6(e,t,n){for(let i of Cke(e))gs(t,i.code)&&n(i)}function Cke({program:e,sourceFile:t,cancellationToken:n}){return[...e.getSemanticDiagnostics(t,n),...e.getSyntacticDiagnostics(t,n),...SG(t,e,n)]}var d$,m$,Tle,hWe=ze({"src/services/codeFixProvider.ts"(){"use strict";qr(),d$=mf(),m$=new Map}});function Eke(e,t,n){let i=h8(n)?I.createAsExpression(n.expression,I.createKeywordTypeNode(159)):I.createTypeAssertion(I.createKeywordTypeNode(159),n.expression);e.replaceNode(t,n.expression,i)}function Dke(e,t){if(!Qn(e))return Fn(qi(e,t),n=>h8(n)||bre(n))}var g$,kle,yWe=ze({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){"use strict";qr(),la(),g$="addConvertToUnknownForNonOverlappingTypes",kle=[d.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],ia({errorCodes:kle,getCodeActions:function(t){let n=Dke(t.sourceFile,t.span.start);if(n===void 0)return;let i=er.ChangeTracker.with(t,s=>Eke(s,t.sourceFile,n));return[qs(g$,i,d.Add_unknown_conversion_for_non_overlapping_types,g$,d.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[g$],getAllCodeActions:e=>no(e,kle,(t,n)=>{let i=Dke(n.file,n.start);i&&Eke(t,n.file,i)})})}}),vWe=ze({"src/services/codefixes/addEmptyExportDeclaration.ts"(){"use strict";qr(),la(),ia({errorCodes:[d.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,d.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,d.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(t){let{sourceFile:n}=t,i=er.ChangeTracker.with(t,s=>{let o=I.createExportDeclaration(void 0,!1,I.createNamedExports([]),void 0);s.insertNodeAtEndOfScope(n,n,o)});return[Sd("addEmptyExportDeclaration",i,d.Add_export_to_make_this_file_into_a_module)]}})}});function Pke(e,t,n,i){let s=n(o=>bWe(o,e.sourceFile,t,i));return qs(h$,s,d.Add_async_modifier_to_containing_function,h$,d.Add_all_missing_async_modifiers)}function bWe(e,t,n,i){if(i&&i.has(Va(n)))return;i?.add(Va(n));let s=I.replaceModifiers(jo(n,!0),I.createNodeArray(I.createModifiersFromModifierFlags(ty(n)|1024)));e.replaceNode(t,n,s)}function wke(e,t){if(!t)return;let n=qi(e,t.start);return Fn(n,s=>s.getStart(e)Dc(t)?"quit":(Co(s)||kc(s)||uo(s)||al(s))&&o6(t,g_(s,e)))}function SWe(e,t){return({start:n,length:i,relatedInformation:s,code:o})=>Bh(n)&&Bh(i)&&o6({start:n,length:i},e)&&o===t&&!!s&&ft(s,c=>c.code===d.Did_you_mean_to_mark_this_function_as_async.code)}var h$,Cle,xWe=ze({"src/services/codefixes/addMissingAsync.ts"(){"use strict";qr(),la(),h$="addMissingAsync",Cle=[d.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,d.Type_0_is_not_assignable_to_type_1.code,d.Type_0_is_not_comparable_to_type_1.code],ia({fixIds:[h$],errorCodes:Cle,getCodeActions:function(t){let{sourceFile:n,errorCode:i,cancellationToken:s,program:o,span:c}=t,u=xr(o.getTypeChecker().getDiagnostics(n,s),SWe(c,i)),f=u&&u.relatedInformation&&xr(u.relatedInformation,y=>y.code===d.Did_you_mean_to_mark_this_function_as_async.code),g=wke(n,f);return g?[Pke(t,g,y=>er.ChangeTracker.with(t,y))]:void 0},getAllCodeActions:e=>{let{sourceFile:t}=e,n=new Set;return no(e,Cle,(i,s)=>{let o=s.relatedInformation&&xr(s.relatedInformation,f=>f.code===d.Did_you_mean_to_mark_this_function_as_async.code),c=wke(t,o);return c?Pke(e,c,f=>(f(i),[]),n):void 0})}})}});function Ake(e,t,n,i,s){let o=KH(e,n);return o&&TWe(e,t,n,i,s)&&Fke(o)?o:void 0}function Nke(e,t,n,i,s,o){let{sourceFile:c,program:u,cancellationToken:f}=e,g=kWe(t,c,f,u,i);if(g){let p=s(y=>{Qt(g.initializers,({expression:S})=>Ele(y,n,c,i,S,o)),o&&g.needsSecondPassForFixAll&&Ele(y,n,c,i,t,o)});return Sd("addMissingAwaitToInitializer",p,g.initializers.length===1?[d.Add_await_to_initializer_for_0,g.initializers[0].declarationSymbol.name]:d.Add_await_to_initializers)}}function Ike(e,t,n,i,s,o){let c=s(u=>Ele(u,n,e.sourceFile,i,t,o));return qs(y$,c,d.Add_await,y$,d.Fix_all_expressions_possibly_missing_await)}function TWe(e,t,n,i,s){let c=s.getTypeChecker().getDiagnostics(e,i);return ft(c,({start:u,length:f,relatedInformation:g,code:p})=>Bh(u)&&Bh(f)&&o6({start:u,length:f},n)&&p===t&&!!g&&ft(g,y=>y.code===d.Did_you_forget_to_use_await.code))}function kWe(e,t,n,i,s){let o=CWe(e,s);if(!o)return;let c=o.isCompleteFix,u;for(let f of o.identifiers){let g=s.getSymbolAtLocation(f);if(!g)continue;let p=Ur(g.valueDeclaration,Ni),y=p&&Ur(p.name,Ie),S=f1(p,243);if(!p||!S||p.type||!p.initializer||S.getSourceFile()!==t||Mr(S,32)||!y||!Fke(p.initializer)){c=!1;continue}let x=i.getSemanticDiagnostics(t,n);if(Eo.Core.eachSymbolReferenceInFile(y,s,t,w=>f!==w&&!EWe(w,x,t,s))){c=!1;continue}(u||(u=[])).push({expression:p.initializer,declarationSymbol:g})}return u&&{initializers:u,needsSecondPassForFixAll:!c}}function CWe(e,t){if(Cr(e.parent)&&Ie(e.parent.expression))return{identifiers:[e.parent.expression],isCompleteFix:!0};if(Ie(e))return{identifiers:[e],isCompleteFix:!0};if(Yn(e)){let n,i=!0;for(let s of[e.left,e.right]){let o=t.getTypeAtLocation(s);if(t.getPromisedTypeOfPromise(o)){if(!Ie(s)){i=!1;continue}(n||(n=[])).push(s)}}return n&&{identifiers:n,isCompleteFix:i}}}function EWe(e,t,n,i){let s=Cr(e.parent)?e.parent.name:Yn(e.parent)?e.parent:e,o=xr(t,c=>c.start===s.getStart(n)&&c.start+c.length===s.getEnd());return o&&gs(v$,o.code)||i.getTypeAtLocation(s).flags&1}function Fke(e){return e.flags&65536||!!Fn(e,t=>t.parent&&Co(t.parent)&&t.parent.body===t||Ds(t)&&(t.parent.kind===262||t.parent.kind===218||t.parent.kind===219||t.parent.kind===174))}function Ele(e,t,n,i,s,o){if(y8(s.parent)&&!s.parent.awaitModifier){let c=i.getTypeAtLocation(s),u=i.getAsyncIterableType();if(u&&i.isTypeAssignableTo(c,u)){let f=s.parent;e.replaceNode(n,f,I.updateForOfStatement(f,I.createToken(135),f.initializer,f.expression,f.statement));return}}if(Yn(s))for(let c of[s.left,s.right]){if(o&&Ie(c)){let g=i.getSymbolAtLocation(c);if(g&&o.has(ta(g)))continue}let u=i.getTypeAtLocation(c),f=i.getPromisedTypeOfPromise(u)?I.createAwaitExpression(c):c;e.replaceNode(n,c,f)}else if(t===Dle&&Cr(s.parent)){if(o&&Ie(s.parent.expression)){let c=i.getSymbolAtLocation(s.parent.expression);if(c&&o.has(ta(c)))return}e.replaceNode(n,s.parent.expression,I.createParenthesizedExpression(I.createAwaitExpression(s.parent.expression))),Oke(e,s.parent.expression,n)}else if(gs(Ple,t)&&Dm(s.parent)){if(o&&Ie(s)){let c=i.getSymbolAtLocation(s);if(c&&o.has(ta(c)))return}e.replaceNode(n,s,I.createParenthesizedExpression(I.createAwaitExpression(s))),Oke(e,s,n)}else{if(o&&Ni(s.parent)&&Ie(s.parent.name)){let c=i.getSymbolAtLocation(s.parent.name);if(c&&!Yy(o,ta(c)))return}e.replaceNode(n,s,I.createAwaitExpression(s))}}function Oke(e,t,n){let i=ol(t.pos,n);i&&TL(i.end,i.parent,n)&&e.insertText(n,t.getStart(n),";")}var y$,Dle,Ple,v$,DWe=ze({"src/services/codefixes/addMissingAwait.ts"(){"use strict";qr(),la(),y$="addMissingAwait",Dle=d.Property_0_does_not_exist_on_type_1.code,Ple=[d.This_expression_is_not_callable.code,d.This_expression_is_not_constructable.code],v$=[d.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,d.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,d.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,d.Operator_0_cannot_be_applied_to_type_1.code,d.Operator_0_cannot_be_applied_to_types_1_and_2.code,d.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,d.This_condition_will_always_return_true_since_this_0_is_always_defined.code,d.Type_0_is_not_an_array_type.code,d.Type_0_is_not_an_array_type_or_a_string_type.code,d.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,d.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,d.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,d.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,d.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,d.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,Dle,...Ple],ia({fixIds:[y$],errorCodes:v$,getCodeActions:function(t){let{sourceFile:n,errorCode:i,span:s,cancellationToken:o,program:c}=t,u=Ake(n,i,s,o,c);if(!u)return;let f=t.program.getTypeChecker(),g=p=>er.ChangeTracker.with(t,p);return rP([Nke(t,u,i,f,g),Ike(t,u,i,f,g)])},getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=e.program.getTypeChecker(),o=new Set;return no(e,v$,(c,u)=>{let f=Ake(t,u.code,u,i,n);if(!f)return;let g=p=>(p(c),[]);return Nke(e,f,u.code,s,g,o)||Ike(e,f,u.code,s,g,o)})}})}});function Lke(e,t,n,i,s){let o=qi(t,n),c=Fn(o,g=>Ok(g.parent)?g.parent.initializer===g:PWe(g)?!1:"quit");if(c)return b$(e,c,t,s);let u=o.parent;if(Yn(u)&&u.operatorToken.kind===64&&Il(u.parent))return b$(e,o,t,s);if(Vu(u)){let g=i.getTypeChecker();return hi(u.elements,p=>wWe(p,g))?b$(e,u,t,s):void 0}let f=Fn(o,g=>Il(g.parent)?!0:AWe(g)?!1:"quit");if(f){let g=i.getTypeChecker();return Mke(f,g)?b$(e,f,t,s):void 0}}function b$(e,t,n,i){(!i||Yy(i,t))&&e.insertModifierBefore(n,87,t)}function PWe(e){switch(e.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function wWe(e,t){let n=Ie(e)?e:pl(e,!0)&&Ie(e.left)?e.left:void 0;return!!n&&!t.getSymbolAtLocation(n)}function AWe(e){switch(e.kind){case 80:case 226:case 28:return!0;default:return!1}}function Mke(e,t){return Yn(e)?e.operatorToken.kind===28?hi([e.left,e.right],n=>Mke(n,t)):e.operatorToken.kind===64&&Ie(e.left)&&!t.getSymbolAtLocation(e.left):!1}var S$,wle,NWe=ze({"src/services/codefixes/addMissingConst.ts"(){"use strict";qr(),la(),S$="addMissingConst",wle=[d.Cannot_find_name_0.code,d.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],ia({errorCodes:wle,getCodeActions:function(t){let n=er.ChangeTracker.with(t,i=>Lke(i,t.sourceFile,t.span.start,t.program));if(n.length>0)return[qs(S$,n,d.Add_const_to_unresolved_variable,S$,d.Add_const_to_all_unresolved_variables)]},fixIds:[S$],getAllCodeActions:e=>{let t=new Set;return no(e,wle,(n,i)=>Lke(n,i.file,i.start,e.program,t))}})}});function Rke(e,t,n,i){let s=qi(t,n);if(!Ie(s))return;let o=s.parent;o.kind===172&&(!i||Yy(i,o))&&e.insertModifierBefore(t,138,o)}var x$,Ale,IWe=ze({"src/services/codefixes/addMissingDeclareProperty.ts"(){"use strict";qr(),la(),x$="addMissingDeclareProperty",Ale=[d.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],ia({errorCodes:Ale,getCodeActions:function(t){let n=er.ChangeTracker.with(t,i=>Rke(i,t.sourceFile,t.span.start));if(n.length>0)return[qs(x$,n,d.Prefix_with_declare,x$,d.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[x$],getAllCodeActions:e=>{let t=new Set;return no(e,Ale,(n,i)=>Rke(n,i.file,i.start,t))}})}});function jke(e,t,n){let i=qi(t,n),s=Fn(i,Zl);E.assert(!!s,"Expected position to be owned by a decorator.");let o=I.createCallExpression(s.expression,void 0,void 0);e.replaceNode(t,s.expression,o)}var T$,Nle,FWe=ze({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){"use strict";qr(),la(),T$="addMissingInvocationForDecorator",Nle=[d._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],ia({errorCodes:Nle,getCodeActions:function(t){let n=er.ChangeTracker.with(t,i=>jke(i,t.sourceFile,t.span.start));return[qs(T$,n,d.Call_decorator_expression,T$,d.Add_to_all_uncalled_decorators)]},fixIds:[T$],getAllCodeActions:e=>no(e,Nle,(t,n)=>jke(t,n.file,n.start))})}});function Bke(e,t,n){let i=qi(t,n),s=i.parent;if(!ms(s))return E.fail("Tried to add a parameter name to a non-parameter: "+E.formatSyntaxKind(i.kind));let o=s.parent.parameters.indexOf(s);E.assert(!s.type,"Tried to add a parameter name to a parameter that already had one."),E.assert(o>-1,"Parameter not found in parent parameter list.");let c=s.name.getEnd(),u=I.createTypeReferenceNode(s.name,void 0),f=Jke(t,s);for(;f;)u=I.createArrayTypeNode(u),c=f.getEnd(),f=Jke(t,f);let g=I.createParameterDeclaration(s.modifiers,s.dotDotDotToken,"arg"+o,s.questionToken,s.dotDotDotToken&&!KF(u)?I.createArrayTypeNode(u):u,s.initializer);e.replaceRange(t,Wf(s.getStart(t),c),g)}function Jke(e,t){let n=mb(t.name,t.parent,e);if(n&&n.kind===23&&j2(n.parent)&&ms(n.parent.parent))return n.parent.parent}var k$,Ile,OWe=ze({"src/services/codefixes/addNameToNamelessParameter.ts"(){"use strict";qr(),la(),k$="addNameToNamelessParameter",Ile=[d.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],ia({errorCodes:Ile,getCodeActions:function(t){let n=er.ChangeTracker.with(t,i=>Bke(i,t.sourceFile,t.span.start));return[qs(k$,n,d.Add_parameter_name,k$,d.Add_names_to_all_parameters_without_names)]},fixIds:[k$],getAllCodeActions:e=>no(e,Ile,(t,n)=>Bke(t,n.file,n.start))})}});function LWe(e,t,n){var i,s;let o=zke(KH(e,t),n);if(!o)return Ve;let{source:c,target:u}=o,f=MWe(c,u,n)?n.getTypeAtLocation(u.expression):n.getTypeAtLocation(u);return(s=(i=f.symbol)==null?void 0:i.declarations)!=null&&s.some(g=>Mn(g).fileName.match(/\.d\.ts$/))?Ve:n.getExactOptionalProperties(f)}function MWe(e,t,n){return Cr(t)&&!!n.getExactOptionalProperties(n.getTypeAtLocation(t.expression)).length&&n.getTypeAtLocation(e)===n.getUndefinedType()}function zke(e,t){var n;if(e){if(Yn(e.parent)&&e.parent.operatorToken.kind===64)return{source:e.parent.right,target:e.parent.left};if(Ni(e.parent)&&e.parent.initializer)return{source:e.parent.initializer,target:e.parent.name};if(Ws(e.parent)){let i=t.getSymbolAtLocation(e.parent.expression);if(!i?.valueDeclaration||!hx(i.valueDeclaration.kind)||!ut(e))return;let s=e.parent.arguments.indexOf(e);if(s===-1)return;let o=i.valueDeclaration.parameters[s].name;if(Ie(o))return{source:e,target:o}}else if(el(e.parent)&&Ie(e.parent.name)||sf(e.parent)){let i=zke(e.parent.parent,t);if(!i)return;let s=t.getPropertyOfType(t.getTypeAtLocation(i.target),e.parent.name.text),o=(n=s?.declarations)==null?void 0:n[0];return o?{source:el(e.parent)?e.parent.initializer:e.parent.name,target:o}:void 0}}else return}function RWe(e,t){for(let n of t){let i=n.valueDeclaration;if(i&&(bf(i)||Is(i))&&i.type){let s=I.createUnionTypeNode([...i.type.kind===192?i.type.types:[i.type],I.createTypeReferenceNode("undefined")]);e.replaceNode(i.getSourceFile(),i.type,s)}}}var Fle,Vke,jWe=ze({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){"use strict";qr(),la(),Fle="addOptionalPropertyUndefined",Vke=[d.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,d.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,d.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],ia({errorCodes:Vke,getCodeActions(e){let t=e.program.getTypeChecker(),n=LWe(e.sourceFile,e.span,t);if(!n.length)return;let i=er.ChangeTracker.with(e,s=>RWe(s,n));return[Sd(Fle,i,d.Add_undefined_to_optional_property_type)]},fixIds:[Fle]})}});function Wke(e,t){let n=qi(e,t);return Ur(ms(n.parent)?n.parent.parent:n.parent,Uke)}function Uke(e){return BWe(e)&&qke(e)}function qke(e){return To(e)?e.parameters.some(qke)||!e.type&&!!NP(e):!e.type&&!!o1(e)}function Hke(e,t,n){if(To(n)&&(NP(n)||n.parameters.some(i=>!!o1(i)))){if(!n.typeParameters){let s=N5(n);s.length&&e.insertTypeParameters(t,n,s)}let i=Co(n)&&!Ya(n,21,t);i&&e.insertNodeBefore(t,Da(n.parameters),I.createToken(21));for(let s of n.parameters)if(!s.type){let o=o1(s);o&&e.tryInsertTypeAnnotation(t,s,Ge(o,bb,Ei))}if(i&&e.insertNodeAfter(t,Pa(n.parameters),I.createToken(22)),!n.type){let s=NP(n);s&&e.tryInsertTypeAnnotation(t,n,Ge(s,bb,Ei))}}else{let i=E.checkDefined(o1(n),"A JSDocType for this declaration should exist");E.assert(!n.type,"The JSDocType decl should have a type"),e.tryInsertTypeAnnotation(t,n,Ge(i,bb,Ei))}}function BWe(e){return To(e)||e.kind===260||e.kind===171||e.kind===172}function bb(e){switch(e.kind){case 319:case 320:return I.createTypeReferenceNode("any",Ve);case 323:return zWe(e);case 322:return bb(e.type);case 321:return VWe(e);case 325:return WWe(e);case 324:return UWe(e);case 183:return HWe(e);case 329:return JWe(e);default:let t=on(e,bb,yd);return $n(t,1),t}}function JWe(e){let t=I.createTypeLiteralNode(Kt(e.jsDocPropertyTags,n=>I.createPropertySignature(void 0,Ie(n.name)?n.name:n.name.right,Qw(n)?I.createToken(58):void 0,n.typeExpression&&Ge(n.typeExpression.type,bb,Ei)||I.createKeywordTypeNode(133))));return $n(t,1),t}function zWe(e){return I.createUnionTypeNode([Ge(e.type,bb,Ei),I.createTypeReferenceNode("undefined",Ve)])}function VWe(e){return I.createUnionTypeNode([Ge(e.type,bb,Ei),I.createTypeReferenceNode("null",Ve)])}function WWe(e){return I.createArrayTypeNode(Ge(e.type,bb,Ei))}function UWe(e){return I.createFunctionTypeNode(Ve,e.parameters.map(qWe),e.type??I.createKeywordTypeNode(133))}function qWe(e){let t=e.parent.parameters.indexOf(e),n=e.type.kind===325&&t===e.parent.parameters.length-1,i=e.name||(n?"rest":"arg"+t),s=n?I.createToken(26):e.dotDotDotToken;return I.createParameterDeclaration(e.modifiers,s,i,e.questionToken,Ge(e.type,bb,Ei),e.initializer)}function HWe(e){let t=e.typeName,n=e.typeArguments;if(Ie(e.typeName)){if(f5(e))return GWe(e);let i=e.typeName.text;switch(e.typeName.text){case"String":case"Boolean":case"Object":case"Number":i=i.toLowerCase();break;case"array":case"date":case"promise":i=i[0].toUpperCase()+i.slice(1);break}t=I.createIdentifier(i),(i==="Array"||i==="Promise")&&!e.typeArguments?n=I.createNodeArray([I.createTypeReferenceNode("any",Ve)]):n=Dn(e.typeArguments,bb,Ei)}return I.createTypeReferenceNode(t,n)}function GWe(e){let t=I.createParameterDeclaration(void 0,void 0,e.typeArguments[0].kind===150?"n":"s",void 0,I.createTypeReferenceNode(e.typeArguments[0].kind===150?"number":"string",[]),void 0),n=I.createTypeLiteralNode([I.createIndexSignature(void 0,[t],e.typeArguments[1])]);return $n(n,1),n}var C$,Ole,$We=ze({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){"use strict";qr(),la(),C$="annotateWithTypeFromJSDoc",Ole=[d.JSDoc_types_may_be_moved_to_TypeScript_types.code],ia({errorCodes:Ole,getCodeActions(e){let t=Wke(e.sourceFile,e.span.start);if(!t)return;let n=er.ChangeTracker.with(e,i=>Hke(i,e.sourceFile,t));return[qs(C$,n,d.Annotate_with_type_from_JSDoc,C$,d.Annotate_everything_with_types_from_JSDoc)]},fixIds:[C$],getAllCodeActions:e=>no(e,Ole,(t,n)=>{let i=Wke(n.file,n.start);i&&Hke(t,n.file,i)})})}});function Gke(e,t,n,i,s,o){let c=i.getSymbolAtLocation(qi(t,n));if(!c||!c.valueDeclaration||!(c.flags&19))return;let u=c.valueDeclaration;if(al(u)||uo(u))e.replaceNode(t,u,p(u));else if(Ni(u)){let y=g(u);if(!y)return;let S=u.parent.parent;Tl(u.parent)&&u.parent.declarations.length>1?(e.delete(t,u),e.insertNodeAfter(t,S,y)):e.replaceNode(t,S,y)}function f(y){let S=[];return y.exports&&y.exports.forEach(w=>{if(w.name==="prototype"&&w.declarations){let D=w.declarations[0];if(w.declarations.length===1&&Cr(D)&&Yn(D.parent)&&D.parent.operatorToken.kind===64&&xa(D.parent.right)){let O=D.parent.right;C(O.symbol,void 0,S)}}else C(w,[I.createToken(126)],S)}),y.members&&y.members.forEach((w,D)=>{var O,z,V,X;if(D==="constructor"&&w.valueDeclaration){let J=(X=(V=(z=(O=y.exports)==null?void 0:O.get("prototype"))==null?void 0:z.declarations)==null?void 0:V[0])==null?void 0:X.parent;J&&Yn(J)&&xa(J.right)&&ft(J.right.properties,D$)||e.delete(t,w.valueDeclaration.parent);return}C(w,void 0,S)}),S;function x(w,D){return ho(w)?Cr(w)&&D$(w)?!0:As(D):hi(w.properties,O=>!!(kc(O)||C7(O)||el(O)&&uo(O.initializer)&&O.name||D$(O)))}function C(w,D,O){if(!(w.flags&8192)&&!(w.flags&4096))return;let z=w.valueDeclaration,V=z.parent,X=V.right;if(!x(z,X)||ft(O,ae=>{let _e=us(ae);return!!(_e&&Ie(_e)&&ur(_e)===xc(w))}))return;let J=V.parent&&V.parent.kind===244?V.parent:V;if(e.delete(t,J),!X){O.push(I.createPropertyDeclaration(D,w.name,void 0,void 0,void 0));return}if(ho(z)&&(uo(X)||Co(X))){let ae=Df(t,s),_e=XWe(z,o,ae);_e&&ie(O,X,_e);return}else if(xa(X)){Qt(X.properties,ae=>{(kc(ae)||C7(ae))&&O.push(ae),el(ae)&&uo(ae.initializer)&&ie(O,ae.initializer,ae.name),D$(ae)});return}else{if(Bu(t)||!Cr(z))return;let ae=I.createPropertyDeclaration(D,z.name,void 0,void 0,X);l6(V.parent,ae,t),O.push(ae);return}function ie(ae,_e,$){return uo(_e)?B(ae,_e,$):Z(ae,_e,$)}function B(ae,_e,$){let H=es(D,E$(_e,134)),K=I.createMethodDeclaration(H,void 0,$,void 0,void 0,_e.parameters,void 0,_e.body);l6(V,K,t),ae.push(K)}function Z(ae,_e,$){let H=_e.body,K;H.kind===241?K=H:K=I.createBlock([I.createReturnStatement(H)]);let oe=es(D,E$(_e,134)),Se=I.createMethodDeclaration(oe,void 0,$,void 0,void 0,_e.parameters,void 0,K);l6(V,Se,t),ae.push(Se)}}}function g(y){let S=y.initializer;if(!S||!uo(S)||!Ie(y.name))return;let x=f(y.symbol);S.body&&x.unshift(I.createConstructorDeclaration(void 0,S.parameters,S.body));let C=E$(y.parent.parent,95);return I.createClassDeclaration(C,y.name,void 0,void 0,x)}function p(y){let S=f(c);y.body&&S.unshift(I.createConstructorDeclaration(void 0,y.parameters,y.body));let x=E$(y,95);return I.createClassDeclaration(x,y.name,void 0,void 0,S)}}function E$(e,t){return Yp(e)?Fr(e.modifiers,n=>n.kind===t):void 0}function D$(e){return e.name?!!(Ie(e.name)&&e.name.text==="constructor"):!1}function XWe(e,t,n){if(Cr(e))return e.name;let i=e.argumentExpression;if(R_(i))return i;if($a(i))return hf(i.text,La(t))?I.createIdentifier(i.text):Vx(i)?I.createStringLiteral(i.text,n===0):i}var P$,Lle,QWe=ze({"src/services/codefixes/convertFunctionToEs6Class.ts"(){"use strict";qr(),la(),P$="convertFunctionToEs6Class",Lle=[d.This_constructor_function_may_be_converted_to_a_class_declaration.code],ia({errorCodes:Lle,getCodeActions(e){let t=er.ChangeTracker.with(e,n=>Gke(n,e.sourceFile,e.span.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()));return[qs(P$,t,d.Convert_function_to_an_ES2015_class,P$,d.Convert_all_constructor_functions_to_classes)]},fixIds:[P$],getAllCodeActions:e=>no(e,Lle,(t,n)=>Gke(t,n.file,n.start,e.program.getTypeChecker(),e.preferences,e.program.getCompilerOptions()))})}});function $ke(e,t,n,i){let s=qi(t,n),o;if(Ie(s)&&Ni(s.parent)&&s.parent.initializer&&To(s.parent.initializer)?o=s.parent.initializer:o=Ur(yf(qi(t,n)),kG),!o)return;let c=new Map,u=Qn(o),f=ZWe(o,i),g=KWe(o,i,c);if(!xG(g,i))return;let p=g.body&&Ds(g.body)?YWe(g.body,i):Ve,y={checker:i,synthNamesMap:c,setOfExpressionsToReturn:f,isInJSFile:u};if(!p.length)return;let S=ma(t.text,Wd(o).pos);e.insertModifierAt(t,S,134,{suffix:" "});for(let x of p)if(vs(x,function C(w){if(Ws(w)){let D=y6(w,w,y,!1);if(vT())return!0;e.replaceNodeWithNodes(t,x,D)}else if(!As(w)&&(vs(w,C),vT()))return!0}),vT())return}function YWe(e,t){let n=[];return Rv(e,i=>{JL(i,t)&&n.push(i)}),n}function ZWe(e,t){if(!e.body)return new Set;let n=new Set;return vs(e.body,function i(s){uN(s,t,"then")?(n.add(Va(s)),Qt(s.arguments,i)):uN(s,t,"catch")||uN(s,t,"finally")?(n.add(Va(s)),vs(s,i)):Qke(s,t)?n.add(Va(s)):vs(s,i)}),n}function uN(e,t,n){if(!Ws(e))return!1;let s=TA(e,n)&&t.getTypeAtLocation(e);return!!(s&&t.getPromisedTypeOfPromise(s))}function Xke(e,t){return(Ir(e)&4)!==0&&e.target===t}function w$(e,t,n){if(e.expression.name.escapedText==="finally")return;let i=n.getTypeAtLocation(e.expression.expression);if(Xke(i,n.getPromiseType())||Xke(i,n.getPromiseLikeType()))if(e.expression.name.escapedText==="then"){if(t===Jh(e.arguments,0))return Jh(e.typeArguments,0);if(t===Jh(e.arguments,1))return Jh(e.typeArguments,1)}else return Jh(e.typeArguments,0)}function Qke(e,t){return ut(e)?!!t.getPromisedTypeOfPromise(t.getTypeAtLocation(e)):!1}function KWe(e,t,n){let i=new Map,s=mf();return vs(e,function o(c){if(!Ie(c)){vs(c,o);return}let u=t.getSymbolAtLocation(c);if(u){let f=t.getTypeAtLocation(c),g=nCe(f,t),p=ta(u).toString();if(g&&!ms(c.parent)&&!To(c.parent)&&!n.has(p)){let y=Pl(g.parameters),S=y?.valueDeclaration&&ms(y.valueDeclaration)&&Ur(y.valueDeclaration.name,Ie)||I.createUniqueName("result",16),x=Yke(S,s);n.set(p,x),s.add(S.text,u)}else if(c.parent&&(ms(c.parent)||Ni(c.parent)||Ma(c.parent))){let y=c.text,S=s.get(y);if(S&&S.some(x=>x!==u)){let x=Yke(c,s);i.set(p,x.identifier),n.set(p,x),s.add(y,u)}else{let x=jo(c);n.set(p,Z3(x)),s.add(y,u)}}}}),jA(e,!0,o=>{if(Ma(o)&&Ie(o.name)&&Gp(o.parent)){let c=t.getSymbolAtLocation(o.name),u=c&&i.get(String(ta(c)));if(u&&u.text!==(o.name||o.propertyName).getText())return I.createBindingElement(o.dotDotDotToken,o.propertyName||o.name,u,o.initializer)}else if(Ie(o)){let c=t.getSymbolAtLocation(o),u=c&&i.get(String(ta(c)));if(u)return I.createIdentifier(u.text)}})}function Yke(e,t){let n=(t.get(e.text)||Ve).length,i=n===0?e:I.createIdentifier(e.text+"_"+n);return Z3(i)}function vT(){return!fM}function M1(){return fM=!1,Ve}function y6(e,t,n,i,s){if(uN(t,n.checker,"then"))return nUe(t,Jh(t.arguments,0),Jh(t.arguments,1),n,i,s);if(uN(t,n.checker,"catch"))return eCe(t,Jh(t.arguments,0),n,i,s);if(uN(t,n.checker,"finally"))return tUe(t,Jh(t.arguments,0),n,i,s);if(Cr(t))return y6(e,t.expression,n,i,s);let o=n.checker.getTypeAtLocation(t);return o&&n.checker.getPromisedTypeOfPromise(o)?(E.assertNode(cc(t).parent,Cr),rUe(e,t,n,i,s)):M1()}function A$({checker:e},t){if(t.kind===106)return!0;if(Ie(t)&&!Lo(t)&&ur(t)==="undefined"){let n=e.getSymbolAtLocation(t);return!n||e.isUndefinedSymbol(n)}return!1}function eUe(e){let t=I.createUniqueName(e.identifier.text,16);return Z3(t)}function Zke(e,t,n){let i;return n&&!fN(e,t)&&(_N(n)?(i=n,t.synthNamesMap.forEach((s,o)=>{if(s.identifier.text===n.identifier.text){let c=eUe(n);t.synthNamesMap.set(o,c)}})):i=Z3(I.createUniqueName("result",16),n.types),Ble(i)),i}function Kke(e,t,n,i,s){let o=[],c;if(i&&!fN(e,t)){c=jo(Ble(i));let u=i.types,f=t.checker.getUnionType(u,2),g=t.isInJSFile?void 0:t.checker.typeToTypeNode(f,void 0,void 0),p=[I.createVariableDeclaration(c,void 0,g)],y=I.createVariableStatement(void 0,I.createVariableDeclarationList(p,1));o.push(y)}return o.push(n),s&&c&&aUe(s)&&o.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(jo(aCe(s)),void 0,void 0,c)],2))),o}function tUe(e,t,n,i,s){if(!t||A$(n,t))return y6(e,e.expression.expression,n,i,s);let o=Zke(e,n,s),c=y6(e,e.expression.expression,n,!0,o);if(vT())return M1();let u=Rle(t,i,void 0,void 0,e,n);if(vT())return M1();let f=I.createBlock(c),g=I.createBlock(u),p=I.createTryStatement(f,void 0,g);return Kke(e,n,p,o,s)}function eCe(e,t,n,i,s){if(!t||A$(n,t))return y6(e,e.expression.expression,n,i,s);let o=iCe(t,n),c=Zke(e,n,s),u=y6(e,e.expression.expression,n,!0,c);if(vT())return M1();let f=Rle(t,i,c,o,e,n);if(vT())return M1();let g=I.createBlock(u),p=I.createCatchClause(o&&jo(_M(o)),I.createBlock(f)),y=I.createTryStatement(g,p,void 0);return Kke(e,n,y,c,s)}function nUe(e,t,n,i,s,o){if(!t||A$(i,t))return eCe(e,n,i,s,o);if(n&&!A$(i,n))return M1();let c=iCe(t,i),u=y6(e.expression.expression,e.expression.expression,i,!0,c);if(vT())return M1();let f=Rle(t,s,o,c,e,i);return vT()?M1():es(u,f)}function rUe(e,t,n,i,s){if(fN(e,n)){let o=jo(t);return i&&(o=I.createAwaitExpression(o)),[I.createReturnStatement(o)]}return N$(s,I.createAwaitExpression(t),void 0)}function N$(e,t,n){return!e||sCe(e)?[I.createExpressionStatement(t)]:_N(e)&&e.hasBeenDeclared?[I.createExpressionStatement(I.createAssignment(jo(jle(e)),t))]:[I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(jo(_M(e)),void 0,n,t)],2))]}function Mle(e,t){if(t&&e){let n=I.createUniqueName("result",16);return[...N$(Z3(n),e,t),I.createReturnStatement(n)]}return[I.createReturnStatement(e)]}function Rle(e,t,n,i,s,o){var c;switch(e.kind){case 106:break;case 211:case 80:if(!i)break;let u=I.createCallExpression(jo(e),void 0,_N(i)?[jle(i)]:[]);if(fN(s,o))return Mle(u,w$(s,e,o.checker));let f=o.checker.getTypeAtLocation(e),g=o.checker.getSignaturesOfType(f,0);if(!g.length)return M1();let p=g[0].getReturnType(),y=N$(n,I.createAwaitExpression(u),w$(s,e,o.checker));return n&&n.types.push(o.checker.getAwaitedType(p)||p),y;case 218:case 219:{let S=e.body,x=(c=nCe(o.checker.getTypeAtLocation(e),o.checker))==null?void 0:c.getReturnType();if(Ds(S)){let C=[],w=!1;for(let D of S.statements)if($p(D))if(w=!0,JL(D,o.checker))C=C.concat(rCe(o,D,t,n));else{let O=x&&D.expression?tCe(o.checker,x,D.expression):D.expression;C.push(...Mle(O,w$(s,e,o.checker)))}else{if(t&&Rv(D,Yg))return M1();C.push(D)}return fN(s,o)?C.map(D=>jo(D)):iUe(C,n,o,w)}else{let C=TG(S,o.checker)?rCe(o,I.createReturnStatement(S),t,n):Ve;if(C.length>0)return C;if(x){let w=tCe(o.checker,x,S);if(fN(s,o))return Mle(w,w$(s,e,o.checker));{let D=N$(n,w,void 0);return n&&n.types.push(o.checker.getAwaitedType(x)||x),D}}else return M1()}}default:return M1()}return Ve}function tCe(e,t,n){let i=jo(n);return e.getPromisedTypeOfPromise(t)?I.createAwaitExpression(i):i}function nCe(e,t){let n=t.getSignaturesOfType(e,0);return qo(n)}function iUe(e,t,n,i){let s=[];for(let o of e)if($p(o)){if(o.expression){let c=Qke(o.expression,n.checker)?I.createAwaitExpression(o.expression):o.expression;t===void 0?s.push(I.createExpressionStatement(c)):_N(t)&&t.hasBeenDeclared?s.push(I.createExpressionStatement(I.createAssignment(jle(t),c))):s.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(_M(t),void 0,void 0,c)],2)))}}else s.push(jo(o));return!i&&t!==void 0&&s.push(I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(_M(t),void 0,void 0,I.createIdentifier("undefined"))],2))),s}function rCe(e,t,n,i){let s=[];return vs(t,function o(c){if(Ws(c)){let u=y6(c,c,e,n,i);if(s=s.concat(u),s.length>0)return}else As(c)||vs(c,o)}),s}function iCe(e,t){let n=[],i;if(To(e)){if(e.parameters.length>0){let f=e.parameters[0].name;i=s(f)}}else Ie(e)?i=o(e):Cr(e)&&Ie(e.name)&&(i=o(e.name));if(!i||"identifier"in i&&i.identifier.text==="undefined")return;return i;function s(f){if(Ie(f))return o(f);let g=oa(f.elements,p=>xl(p)?[]:[s(p.name)]);return sUe(f,g)}function o(f){let g=u(f),p=c(g);return p&&t.synthNamesMap.get(ta(p).toString())||Z3(f,n)}function c(f){var g;return((g=Ur(f,Rd))==null?void 0:g.symbol)??t.checker.getSymbolAtLocation(f)}function u(f){return f.original?f.original:f}}function sCe(e){return e?_N(e)?!e.identifier.text:hi(e.elements,sCe):!0}function Z3(e,t=[]){return{kind:0,identifier:e,types:t,hasBeenDeclared:!1,hasBeenReferenced:!1}}function sUe(e,t=Ve,n=[]){return{kind:1,bindingPattern:e,elements:t,types:n}}function jle(e){return e.hasBeenReferenced=!0,e.identifier}function _M(e){return _N(e)?Ble(e):aCe(e)}function aCe(e){for(let t of e.elements)_M(t);return e.bindingPattern}function Ble(e){return e.hasBeenDeclared=!0,e.identifier}function _N(e){return e.kind===0}function aUe(e){return e.kind===1}function fN(e,t){return!!e.original&&t.setOfExpressionsToReturn.has(Va(e.original))}var I$,Jle,fM,oUe=ze({"src/services/codefixes/convertToAsyncFunction.ts"(){"use strict";qr(),la(),I$="convertToAsyncFunction",Jle=[d.This_may_be_converted_to_an_async_function.code],fM=!0,ia({errorCodes:Jle,getCodeActions(e){fM=!0;let t=er.ChangeTracker.with(e,n=>$ke(n,e.sourceFile,e.span.start,e.program.getTypeChecker()));return fM?[qs(I$,t,d.Convert_to_async_function,I$,d.Convert_all_to_async_functions)]:[]},fixIds:[I$],getAllCodeActions:e=>no(e,Jle,(t,n)=>$ke(t,n.file,n.start,e.program.getTypeChecker()))})}});function cUe(e,t,n,i,s){var o;for(let c of e.imports){let u=(o=n.getResolvedModule(e,c.text,vd(e,c)))==null?void 0:o.resolvedModule;if(!u||u.resolvedFileName!==t.fileName)continue;let f=aE(c);switch(f.kind){case 271:i.replaceNode(e,f,o0(f.name,void 0,c,s));break;case 213:T_(f,!1)&&i.replaceNode(e,f,I.createPropertyAccessExpression(jo(f),"default"));break}}}function lUe(e,t,n,i,s){let o={original:xUe(e),additional:new Set},c=uUe(e,t,o);_Ue(e,c,n);let u=!1,f;for(let g of Fr(e.statements,uc)){let p=cCe(e,g,n,t,o,i,s);p&&z7(p,f??(f=new Map))}for(let g of Fr(e.statements,p=>!uc(p))){let p=fUe(e,g,t,n,o,i,c,f,s);u=u||p}return f?.forEach((g,p)=>{n.replaceNode(e,p,g)}),u}function uUe(e,t,n){let i=new Map;return oCe(e,s=>{let{text:o}=s.name;!i.has(o)&&(x5(s.name)||t.resolveName(o,s,111551,!0))&&i.set(o,F$(`_${o}`,n))}),i}function _Ue(e,t,n){oCe(e,(i,s)=>{if(s)return;let{text:o}=i.name;n.replaceNode(e,i,I.createIdentifier(t.get(o)||o))})}function oCe(e,t){e.forEachChild(function n(i){if(Cr(i)&&cb(e,i.expression)&&Ie(i.name)){let{parent:s}=i;t(i,Yn(s)&&s.left===i&&s.operatorToken.kind===64)}i.forEachChild(n)})}function fUe(e,t,n,i,s,o,c,u,f){switch(t.kind){case 243:return cCe(e,t,i,n,s,o,f),!1;case 244:{let{expression:g}=t;switch(g.kind){case 213:return T_(g,!0)&&i.replaceNode(e,t,o0(void 0,void 0,g.arguments[0],f)),!1;case 226:{let{operatorToken:p}=g;return p.kind===64&&dUe(e,n,g,i,c,u)}}}default:return!1}}function cCe(e,t,n,i,s,o,c){let{declarationList:u}=t,f=!1,g=Kt(u.declarations,p=>{let{name:y,initializer:S}=p;if(S){if(cb(e,S))return f=!0,K3([]);if(T_(S,!0))return f=!0,bUe(y,S.arguments[0],i,s,o,c);if(Cr(S)&&T_(S.expression,!0))return f=!0,pUe(y,S.name.text,S.expression.arguments[0],s,c)}return K3([I.createVariableStatement(void 0,I.createVariableDeclarationList([p],u.flags))])});if(f){n.replaceNodeWithNodes(e,t,oa(g,y=>y.newImports));let p;return Qt(g,y=>{y.useSitesToUnqualify&&z7(y.useSitesToUnqualify,p??(p=new Map))}),p}}function pUe(e,t,n,i,s){switch(e.kind){case 206:case 207:{let o=F$(t,i);return K3([fCe(o,t,n,s),O$(void 0,e,I.createIdentifier(o))])}case 80:return K3([fCe(e.text,t,n,s)]);default:return E.assertNever(e,`Convert to ES module got invalid syntax form ${e.kind}`)}}function dUe(e,t,n,i,s,o){let{left:c,right:u}=n;if(!Cr(c))return!1;if(cb(e,c))if(cb(e,u))i.delete(e,n.parent);else{let f=xa(u)?mUe(u,o):T_(u,!0)?hUe(u.arguments[0],t):void 0;return f?(i.replaceNodeWithNodes(e,n.parent,f[0]),f[1]):(i.replaceRangeWithText(e,Wf(c.getStart(e),u.pos),"export default"),!0)}else cb(e,c.expression)&&gUe(e,n,i,s);return!1}function mUe(e,t){let n=kj(e.properties,i=>{switch(i.kind){case 177:case 178:case 304:case 305:return;case 303:return Ie(i.name)?vUe(i.name.text,i.initializer,t):void 0;case 174:return Ie(i.name)?_Ce(i.name.text,[I.createToken(95)],i,t):void 0;default:E.assertNever(i,`Convert to ES6 got invalid prop kind ${i.kind}`)}});return n&&[n,!1]}function gUe(e,t,n,i){let{text:s}=t.left.name,o=i.get(s);if(o!==void 0){let c=[O$(void 0,o,t.right),Wle([I.createExportSpecifier(!1,o,s)])];n.replaceNodeWithNodes(e,t.parent,c)}else yUe(t,e,n)}function hUe(e,t){let n=e.text,i=t.getSymbolAtLocation(e),s=i?i.exports:$I;return s.has("export=")?[[zle(n)],!0]:s.has("default")?s.size>1?[[lCe(n),zle(n)],!0]:[[zle(n)],!0]:[[lCe(n)],!1]}function lCe(e){return Wle(void 0,e)}function zle(e){return Wle([I.createExportSpecifier(!1,void 0,"default")],e)}function yUe({left:e,right:t,parent:n},i,s){let o=e.name.text;if((uo(t)||Co(t)||Bl(t))&&(!t.name||t.name.text===o)){s.replaceRange(i,{pos:e.getStart(i),end:t.getStart(i)},I.createToken(95),{suffix:" "}),t.name||s.insertName(i,t,o);let c=Ya(n,27,i);c&&s.delete(i,c)}else s.replaceNodeRangeWithNodes(i,e.expression,Ya(e,25,i),[I.createToken(95),I.createToken(87)],{joiner:" ",suffix:" "})}function vUe(e,t,n){let i=[I.createToken(95)];switch(t.kind){case 218:{let{name:o}=t;if(o&&o.text!==e)return s()}case 219:return _Ce(e,i,t,n);case 231:return kUe(e,i,t,n);default:return s()}function s(){return O$(i,I.createIdentifier(e),Vle(t,n))}}function Vle(e,t){if(!t||!ft(hs(t.keys()),i=>Ef(e,i)))return e;return ss(e)?qH(e,!0,n):jA(e,!0,n);function n(i){if(i.kind===211){let s=t.get(i);return t.delete(i),s}}}function bUe(e,t,n,i,s,o){switch(e.kind){case 206:{let c=kj(e.elements,u=>u.dotDotDotToken||u.initializer||u.propertyName&&!Ie(u.propertyName)||!Ie(u.name)?void 0:pCe(u.propertyName&&u.propertyName.text,u.name.text));if(c)return K3([o0(void 0,c,t,o)])}case 207:{let c=F$(nue(t.text,s),i);return K3([o0(I.createIdentifier(c),void 0,t,o),O$(void 0,jo(e),I.createIdentifier(c))])}case 80:return SUe(e,t,n,i,o);default:return E.assertNever(e,`Convert to ES module got invalid name kind ${e.kind}`)}}function SUe(e,t,n,i,s){let o=n.getSymbolAtLocation(e),c=new Map,u=!1,f;for(let p of i.original.get(e.text)){if(n.getSymbolAtLocation(p)!==o||p===e)continue;let{parent:y}=p;if(Cr(y)){let{name:{text:S}}=y;if(S==="default"){u=!0;let x=p.getText();(f??(f=new Map)).set(y,I.createIdentifier(x))}else{E.assert(y.expression===p,"Didn't expect expression === use");let x=c.get(S);x===void 0&&(x=F$(S,i),c.set(S,x)),(f??(f=new Map)).set(y,I.createIdentifier(x))}}else u=!0}let g=c.size===0?void 0:hs(S4(c.entries(),([p,y])=>I.createImportSpecifier(!1,p===y?void 0:I.createIdentifier(p),I.createIdentifier(y))));return g||(u=!0),K3([o0(u?jo(e):void 0,g,t,s)],f)}function F$(e,t){for(;t.original.has(e)||t.additional.has(e);)e=`_${e}`;return t.additional.add(e),e}function xUe(e){let t=mf();return uCe(e,n=>t.add(n.text,n)),t}function uCe(e,t){Ie(e)&&TUe(e)&&t(e),e.forEachChild(n=>uCe(n,t))}function TUe(e){let{parent:t}=e;switch(t.kind){case 211:return t.name!==e;case 208:return t.propertyName!==e;case 276:return t.propertyName!==e;default:return!0}}function _Ce(e,t,n,i){return I.createFunctionDeclaration(es(t,gb(n.modifiers)),jo(n.asteriskToken),e,gb(n.typeParameters),gb(n.parameters),jo(n.type),I.converters.convertToFunctionBlock(Vle(n.body,i)))}function kUe(e,t,n,i){return I.createClassDeclaration(es(t,gb(n.modifiers)),e,gb(n.typeParameters),gb(n.heritageClauses),Vle(n.members,i))}function fCe(e,t,n,i){return t==="default"?o0(I.createIdentifier(e),void 0,n,i):o0(void 0,[pCe(t,e)],n,i)}function pCe(e,t){return I.createImportSpecifier(!1,e!==void 0&&e!==t?I.createIdentifier(e):void 0,I.createIdentifier(t))}function O$(e,t,n){return I.createVariableStatement(e,I.createVariableDeclarationList([I.createVariableDeclaration(t,void 0,void 0,n)],2))}function Wle(e,t){return I.createExportDeclaration(void 0,!1,e&&I.createNamedExports(e),t===void 0?void 0:I.createStringLiteral(t))}function K3(e,t){return{newImports:e,useSitesToUnqualify:t}}var CUe=ze({"src/services/codefixes/convertToEsModule.ts"(){"use strict";qr(),la(),ia({errorCodes:[d.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(e){let{sourceFile:t,program:n,preferences:i}=e,s=er.ChangeTracker.with(e,o=>{if(lUe(t,n.getTypeChecker(),o,La(n.getCompilerOptions()),Df(t,i)))for(let u of n.getSourceFiles())cUe(u,t,n,o,Df(u,i))});return[Sd("convertToEsModule",s,d.Convert_to_ES_module)]}})}});function dCe(e,t){let n=Fn(qi(e,t),k_);return E.assert(!!n,"Expected position to be owned by a qualified name."),Ie(n.left)?n:void 0}function mCe(e,t,n){let i=n.right.text,s=I.createIndexedAccessTypeNode(I.createTypeReferenceNode(n.left,void 0),I.createLiteralTypeNode(I.createStringLiteral(i)));e.replaceNode(t,n,s)}var L$,Ule,EUe=ze({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){"use strict";qr(),la(),L$="correctQualifiedNameToIndexedAccessType",Ule=[d.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],ia({errorCodes:Ule,getCodeActions(e){let t=dCe(e.sourceFile,e.span.start);if(!t)return;let n=er.ChangeTracker.with(e,s=>mCe(s,e.sourceFile,t)),i=`${t.left.text}["${t.right.text}"]`;return[qs(L$,n,[d.Rewrite_as_the_indexed_access_type_0,i],L$,d.Rewrite_all_as_indexed_access_types)]},fixIds:[L$],getAllCodeActions:e=>no(e,Ule,(t,n)=>{let i=dCe(n.file,n.start);i&&mCe(t,n.file,i)})})}});function gCe(e,t){return Ur(qi(t,e.start).parent,Eu)}function hCe(e,t,n){if(!t)return;let i=t.parent,s=i.parent,o=DUe(t,n);if(o.length===i.elements.length)e.insertModifierBefore(n.sourceFile,156,i);else{let c=I.updateExportDeclaration(s,s.modifiers,!1,I.updateNamedExports(i,Fr(i.elements,f=>!gs(o,f))),s.moduleSpecifier,void 0),u=I.createExportDeclaration(void 0,!0,I.createNamedExports(o),s.moduleSpecifier,void 0);e.replaceNode(n.sourceFile,s,c,{leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Exclude}),e.insertNodeAfter(n.sourceFile,s,u)}}function DUe(e,t){let n=e.parent;if(n.elements.length===1)return n.elements;let i=Hoe(g_(n),t.program.getSemanticDiagnostics(t.sourceFile,t.cancellationToken));return Fr(n.elements,s=>{var o;return s===e||((o=qoe(s,i))==null?void 0:o.code)===M$[0]})}var M$,R$,PUe=ze({"src/services/codefixes/convertToTypeOnlyExport.ts"(){"use strict";qr(),la(),M$=[d.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],R$="convertToTypeOnlyExport",ia({errorCodes:M$,getCodeActions:function(t){let n=er.ChangeTracker.with(t,i=>hCe(i,gCe(t.span,t.sourceFile),t));if(n.length)return[qs(R$,n,d.Convert_to_type_only_export,R$,d.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[R$],getAllCodeActions:function(t){let n=new Map;return no(t,M$,(i,s)=>{let o=gCe(s,t.sourceFile);o&&Hp(n,Va(o.parent.parent))&&hCe(i,o,t)})}})}});function yCe(e,t){let{parent:n}=qi(e,t);return E_(n)||kl(n)&&n.importClause?n:void 0}function vCe(e,t,n){if(e.parent.parent.name)return!1;let i=e.parent.elements.filter(o=>!o.isTypeOnly);if(i.length===1)return!0;let s=n.getTypeChecker();for(let o of i)if(Eo.Core.eachSymbolReferenceInFile(o.name,s,t,u=>!h1(u)))return!1;return!0}function pM(e,t,n){var i;if(E_(n))e.replaceNode(t,n,I.updateImportSpecifier(n,!0,n.propertyName,n.name));else{let s=n.importClause;if(s.name&&s.namedBindings)e.replaceNodeWithNodes(t,n,[I.createImportDeclaration(gb(n.modifiers,!0),I.createImportClause(!0,jo(s.name,!0),void 0),jo(n.moduleSpecifier,!0),jo(n.attributes,!0)),I.createImportDeclaration(gb(n.modifiers,!0),I.createImportClause(!0,void 0,jo(s.namedBindings,!0)),jo(n.moduleSpecifier,!0),jo(n.attributes,!0))]);else{let o=((i=s.namedBindings)==null?void 0:i.kind)===275?I.updateNamedImports(s.namedBindings,sl(s.namedBindings.elements,u=>I.updateImportSpecifier(u,!1,u.propertyName,u.name))):s.namedBindings,c=I.updateImportDeclaration(n,n.modifiers,I.updateImportClause(s,!0,s.name,o),n.moduleSpecifier,n.attributes);e.replaceNode(t,n,c)}}}var qle,dM,wUe=ze({"src/services/codefixes/convertToTypeOnlyImport.ts"(){"use strict";qr(),la(),qle=[d.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,d._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],dM="convertToTypeOnlyImport",ia({errorCodes:qle,getCodeActions:function(t){var n;let i=yCe(t.sourceFile,t.span.start);if(i){let s=er.ChangeTracker.with(t,u=>pM(u,t.sourceFile,i)),o=i.kind===276&&vCe(i,t.sourceFile,t.program)?er.ChangeTracker.with(t,u=>pM(u,t.sourceFile,i.parent.parent.parent)):void 0,c=qs(dM,s,i.kind===276?[d.Use_type_0,((n=i.propertyName)==null?void 0:n.text)??i.name.text]:d.Use_import_type,dM,d.Fix_all_with_type_only_imports);return ft(o)?[Sd(dM,o,d.Use_import_type),c]:[c]}},fixIds:[dM],getAllCodeActions:function(t){let n=new Set;return no(t,qle,(i,s)=>{let o=yCe(s.file,s.start);o?.kind===272&&!n.has(o)?(pM(i,s.file,o),n.add(o)):o?.kind===276&&!n.has(o.parent.parent.parent)&&vCe(o,s.file,t.program)?(pM(i,s.file,o.parent.parent.parent),n.add(o.parent.parent.parent)):o?.kind===276&&pM(i,s.file,o)})}})}});function bCe(e,t,n,i,s=!1){if(!FC(t))return;let o=NUe(t);if(!o)return;let c=t.parent,{leftSibling:u,rightSibling:f}=AUe(t),g=c.getStart(),p="";!u&&c.comment&&(g=SCe(c,c.getStart(),t.getStart()),p=`${i} */${i}`),u&&(s&&FC(u)?(g=t.getStart(),p=""):(g=SCe(c,u.getStart(),t.getStart()),p=`${i} */${i}`));let y=c.getEnd(),S="";f&&(s&&FC(f)?(y=f.getStart(),S=`${i}${i}`):(y=f.getStart(),S=`${i}/**${i} * `)),e.replaceRange(n,{pos:g,end:y},o,{prefix:p,suffix:S})}function AUe(e){let t=e.parent,n=t.getChildCount()-1,i=t.getChildren().findIndex(c=>c.getStart()===e.getStart()&&c.getEnd()===e.getEnd()),s=i>0?t.getChildAt(i-1):void 0,o=i0;s--)if(!/[*/\s]/g.test(i.substring(s-1,s)))return t+s;return n}function NUe(e){var t;let{typeExpression:n}=e;if(!n)return;let i=(t=e.name)==null?void 0:t.getText();if(i){if(n.kind===329)return IUe(i,n);if(n.kind===316)return FUe(i,n)}}function IUe(e,t){let n=xCe(t);if(ft(n))return I.createInterfaceDeclaration(void 0,e,void 0,void 0,n)}function FUe(e,t){let n=jo(t.type);if(n)return I.createTypeAliasDeclaration(void 0,I.createIdentifier(e),void 0,n)}function xCe(e){let t=e.jsDocPropertyTags;return ft(t)?Ri(t,i=>{var s;let o=OUe(i),c=(s=i.typeExpression)==null?void 0:s.type,u=i.isBracketed,f;if(c&&eT(c)){let g=xCe(c);f=I.createTypeLiteralNode(g)}else c&&(f=jo(c));if(f&&o){let g=u?I.createToken(58):void 0;return I.createPropertySignature(void 0,o,g,f)}}):void 0}function OUe(e){return e.name.kind===80?e.name.text:e.name.right.text}function LUe(e){return Z_(e)?oa(e.jsDoc,t=>{var n;return(n=t.tags)==null?void 0:n.filter(i=>FC(i))}):[]}var j$,Hle,MUe=ze({"src/services/codefixes/convertTypedefToType.ts"(){"use strict";qr(),la(),j$="convertTypedefToType",Hle=[d.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],ia({fixIds:[j$],errorCodes:Hle,getCodeActions(e){let t=c0(e.host,e.formatContext.options),n=qi(e.sourceFile,e.span.start);if(!n)return;let i=er.ChangeTracker.with(e,s=>bCe(s,n,e.sourceFile,t));if(i.length>0)return[qs(j$,i,d.Convert_typedef_to_TypeScript_type,j$,d.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:e=>no(e,Hle,(t,n)=>{let i=c0(e.host,e.formatContext.options),s=qi(n.file,n.start),o=!0;s&&bCe(t,s,n.file,i,o)})})}});function TCe(e,t){let n=qi(e,t);if(Ie(n)){let i=Vs(n.parent.parent,bf),s=n.getText(e);return{container:Vs(i.parent,nf),typeNode:i.type,constraint:s,name:s==="K"?"P":"K"}}}function kCe(e,t,{container:n,typeNode:i,constraint:s,name:o}){e.replaceNode(t,n,I.createMappedTypeNode(void 0,I.createTypeParameterDeclaration(void 0,o,I.createTypeReferenceNode(s)),void 0,void 0,i,void 0))}var B$,Gle,RUe=ze({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){"use strict";qr(),la(),B$="convertLiteralTypeToMappedType",Gle=[d._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],ia({errorCodes:Gle,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=TCe(n,i.start);if(!s)return;let{name:o,constraint:c}=s,u=er.ChangeTracker.with(t,f=>kCe(f,n,s));return[qs(B$,u,[d.Convert_0_to_1_in_0,c,o],B$,d.Convert_all_type_literals_to_mapped_type)]},fixIds:[B$],getAllCodeActions:e=>no(e,Gle,(t,n)=>{let i=TCe(n.file,n.start);i&&kCe(t,n.file,i)})})}});function CCe(e,t){return E.checkDefined(Rl(qi(e,t)),"There should be a containing class")}function ECe(e){return!e.valueDeclaration||!(Ju(e.valueDeclaration)&2)}function DCe(e,t,n,i,s,o){let c=e.program.getTypeChecker(),u=jUe(i,c),f=c.getTypeAtLocation(t),p=c.getPropertiesOfType(f).filter(UI(ECe,D=>!u.has(D.escapedName))),y=c.getTypeAtLocation(i),S=xr(i.members,D=>Cc(D));y.getNumberIndexType()||C(f,1),y.getStringIndexType()||C(f,0);let x=bT(n,e.program,o,e.host);e_e(i,p,n,e,o,x,D=>w(n,i,D)),x.writeFixes(s);function C(D,O){let z=c.getIndexInfoOfType(D,O);z&&w(n,i,c.indexInfoToIndexSignatureDeclaration(z,i,void 0,v6(e)))}function w(D,O,z){S?s.insertNodeAfter(D,S,z):s.insertMemberAtStart(D,O,z)}}function jUe(e,t){let n=Bd(e);if(!n)return Gs();let i=t.getTypeAtLocation(n),s=t.getPropertiesOfType(i);return Gs(s.filter(ECe))}var $le,J$,BUe=ze({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){"use strict";qr(),la(),$le=[d.Class_0_incorrectly_implements_interface_1.code,d.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],J$="fixClassIncorrectlyImplementsInterface",ia({errorCodes:$le,getCodeActions(e){let{sourceFile:t,span:n}=e,i=CCe(t,n.start);return Ri(tC(i),s=>{let o=er.ChangeTracker.with(e,c=>DCe(e,s,t,i,c,e.preferences));return o.length===0?void 0:qs(J$,o,[d.Implement_interface_0,s.getText(t)],J$,d.Implement_all_unimplemented_interfaces)})},fixIds:[J$],getAllCodeActions(e){let t=new Map;return no(e,$le,(n,i)=>{let s=CCe(i.file,i.start);if(Hp(t,Va(s)))for(let o of tC(s))DCe(e,o,i.file,s,n,e.preferences)})}})}});function bT(e,t,n,i,s){return PCe(e,t,!1,n,i,s)}function PCe(e,t,n,i,s,o){let c=t.getCompilerOptions(),u=[],f=[],g=new Map,p=new Map;return{addImportFromDiagnostic:y,addImportFromExportedSymbol:S,writeFixes:C,hasFixes:w};function y(D,O){let z=OCe(O,D.code,D.start,n);!z||!z.length||x(Da(z))}function S(D,O){let z=E.checkDefined(D.parent),V=wL(D,La(c)),X=t.getTypeChecker(),J=X.getMergedSymbol(Cu(D,X)),ie=NCe(e,J,V,z,!1,t,s,i,o),B=V$(e,t),Z=wCe(e,E.checkDefined(ie),t,void 0,!!O,B,s,i);Z&&x({fix:Z,symbolName:V,errorIdentifierText:void 0})}function x(D){var O,z;let{fix:V,symbolName:X}=D;switch(V.kind){case 0:u.push(V);break;case 1:f.push(V);break;case 2:{let{importClauseOrBindingPattern:Z,importKind:ae,addAsTypeOnly:_e}=V,$=String(Va(Z)),H=g.get($);if(H||g.set($,H={importClauseOrBindingPattern:Z,defaultImport:void 0,namedImports:new Map}),ae===0){let K=H?.namedImports.get(X);H.namedImports.set(X,J(K,_e))}else E.assert(H.defaultImport===void 0||H.defaultImport.name===X,"(Add to Existing) Default import should be missing or match symbolName"),H.defaultImport={name:X,addAsTypeOnly:J((O=H.defaultImport)==null?void 0:O.addAsTypeOnly,_e)};break}case 3:{let{moduleSpecifier:Z,importKind:ae,useRequire:_e,addAsTypeOnly:$}=V,H=ie(Z,ae,_e,$);switch(E.assert(H.useRequire===_e,"(Add new) Tried to add an `import` and a `require` for the same module"),ae){case 1:E.assert(H.defaultImport===void 0||H.defaultImport.name===X,"(Add new) Default import should be missing or match symbolName"),H.defaultImport={name:X,addAsTypeOnly:J((z=H.defaultImport)==null?void 0:z.addAsTypeOnly,$)};break;case 0:let K=(H.namedImports||(H.namedImports=new Map)).get(X);H.namedImports.set(X,J(K,$));break;case 3:case 2:E.assert(H.namespaceLikeImport===void 0||H.namespaceLikeImport.name===X,"Namespacelike import shoudl be missing or match symbolName"),H.namespaceLikeImport={importKind:ae,name:X,addAsTypeOnly:$};break}break}case 4:break;default:E.assertNever(V,`fix wasn't never - got kind ${V.kind}`)}function J(Z,ae){return Math.max(Z??0,ae)}function ie(Z,ae,_e,$){let H=B(Z,!0),K=B(Z,!1),oe=p.get(H),Se=p.get(K),se={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:_e};return ae===1&&$===2?oe||(p.set(H,se),se):$===1&&(oe||Se)?oe||Se:Se||(p.set(K,se),se)}function B(Z,ae){return`${ae?1:0}|${Z}`}}function C(D,O){let z;e.imports.length===0&&O!==void 0?z=O:z=Df(e,i);for(let X of u)Kle(D,e,X);for(let X of f)zCe(D,e,X,z);g.forEach(({importClauseOrBindingPattern:X,defaultImport:J,namedImports:ie})=>{JCe(D,e,X,J,hs(ie.entries(),([B,Z])=>({addAsTypeOnly:Z,name:B})),i)});let V;p.forEach(({useRequire:X,defaultImport:J,namedImports:ie,namespaceLikeImport:B},Z)=>{let ae=Z.slice(2),$=(X?UCe:WCe)(ae,z,J,ie&&hs(ie.entries(),([H,K])=>({addAsTypeOnly:K,name:H})),B,c,i);V=hk(V,$)}),V&&J3(D,e,V,!0,i)}function w(){return u.length>0||f.length>0||g.size>0||p.size>0}}function JUe(e,t,n,i){let s=G3(e,i,n),o=ICe(t.getTypeChecker(),e,t.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:c};function c(u,f,g,p){let{fixes:y,computedWithoutCacheCount:S}=z$(u,f,g,!1,t,e,n,i,o,p),x=LCe(y,e,t,s,n);return x&&{...x,computedWithoutCacheCount:S}}}function zUe(e,t,n,i,s,o,c,u,f,g,p,y){let S;n?(S=qA(i,c,u,p,y).get(i.path,n),E.assertIsDefined(S,"Some exportInfo should match the specified exportMapKey")):(S=eJ(hp(t.name))?[WUe(e,s,t,u,c)]:NCe(i,e,s,t,o,u,c,p,y),E.assertIsDefined(S,"Some exportInfo should match the specified symbol / moduleSymbol"));let x=V$(i,u),C=h1(qi(i,g)),w=E.checkDefined(wCe(i,S,u,g,C,x,c,p));return{moduleSpecifier:w.moduleSpecifier,codeAction:ACe(Zle({host:c,formatContext:f,preferences:p},i,s,w,!1,u,p))}}function VUe(e,t,n,i,s,o){let c=n.getCompilerOptions(),u=Nj(Yle(e,n.getTypeChecker(),t,c)),f=jCe(e,t,u,n),g=u!==t.text;return f&&ACe(Zle({host:i,formatContext:s,preferences:o},e,u,f,g,n,o))}function wCe(e,t,n,i,s,o,c,u){let f=G3(e,u,c);return LCe(z$(t,i,s,o,n,e,c,u).fixes,e,n,f,c)}function ACe({description:e,changes:t,commands:n}){return{description:e,changes:t,commands:n}}function NCe(e,t,n,i,s,o,c,u,f){let g=FCe(o,c);return qA(e,c,o,u,f).search(e.path,s,p=>p===n,p=>{if(Cu(p[0].symbol,g(p[0].isFromPackageJson))===t&&p.some(y=>y.moduleSymbol===i||y.symbol.parent===i))return p})}function WUe(e,t,n,i,s){var o,c;let u=i.getCompilerOptions(),f=p(i.getTypeChecker(),!1);if(f)return f;let g=(c=(o=s.getPackageJsonAutoImportProvider)==null?void 0:o.call(s))==null?void 0:c.getTypeChecker();return E.checkDefined(g&&p(g,!0),"Could not find symbol in specified module for code actions");function p(y,S){let x=ML(n,y,u);if(x&&Cu(x.symbol,y)===e)return{symbol:x.symbol,moduleSymbol:n,moduleFileName:void 0,exportKind:x.exportKind,targetFlags:Cu(e,y).flags,isFromPackageJson:S};let C=y.tryGetMemberInModuleExportsAndProperties(t,n);if(C&&Cu(C,y)===e)return{symbol:C,moduleSymbol:n,moduleFileName:void 0,exportKind:0,targetFlags:Cu(e,y).flags,isFromPackageJson:S}}}function z$(e,t,n,i,s,o,c,u,f=ICe(s.getTypeChecker(),o,s.getCompilerOptions()),g){let p=s.getTypeChecker(),y=oa(e,f.getImportsForExportInfo),S=t!==void 0&&UUe(y,t),x=HUe(y,n,p,s.getCompilerOptions());if(x)return{computedWithoutCacheCount:0,fixes:[...S?[S]:Ve,x]};let{fixes:C,computedWithoutCacheCount:w=0}=$Ue(e,y,s,o,t,n,i,c,u,g);return{computedWithoutCacheCount:w,fixes:[...S?[S]:Ve,...C]}}function UUe(e,t){return ba(e,({declaration:n,importKind:i})=>{var s;if(i!==0)return;let o=qUe(n),c=o&&((s=Xk(n))==null?void 0:s.text);if(c)return{kind:0,namespacePrefix:o,usagePosition:t,moduleSpecifier:c}})}function qUe(e){var t,n,i;switch(e.kind){case 260:return(t=Ur(e.name,Ie))==null?void 0:t.text;case 271:return e.name.text;case 272:return(i=Ur((n=e.importClause)==null?void 0:n.namedBindings,ly))==null?void 0:i.name.text;default:return E.assertNever(e)}}function Xle(e,t,n,i,s,o){return e?t&&o.importsNotUsedAsValues===2||Xz(o)&&(!(i&111551)||s.getTypeOnlyAliasDeclaration(n))?2:1:4}function HUe(e,t,n,i){let s;for(let c of e){let u=o(c);if(!u)continue;let f=A7(u.importClauseOrBindingPattern);if(u.addAsTypeOnly!==4&&f||u.addAsTypeOnly===4&&!f)return u;s??(s=u)}return s;function o({declaration:c,importKind:u,symbol:f,targetFlags:g}){if(u===3||u===2||c.kind===271)return;if(c.kind===260)return(u===0||u===1)&&c.name.kind===206?{kind:2,importClauseOrBindingPattern:c.name,importKind:u,moduleSpecifier:c.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;let{importClause:p}=c;if(!p||!$a(c.moduleSpecifier))return;let{name:y,namedBindings:S}=p;if(p.isTypeOnly&&!(u===0&&S))return;let x=Xle(t,!1,f,g,n,i);if(!(u===1&&(y||x===2&&S))&&!(u===0&&S?.kind===274))return{kind:2,importClauseOrBindingPattern:p,importKind:u,moduleSpecifier:c.moduleSpecifier.text,addAsTypeOnly:x}}}function ICe(e,t,n){let i;for(let s of t.imports){let o=aE(s);if(p5(o.parent)){let c=e.resolveExternalModuleName(s);c&&(i||(i=mf())).add(ta(c),o.parent)}else if(o.kind===272||o.kind===271){let c=e.getSymbolAtLocation(s);c&&(i||(i=mf())).add(ta(c),o)}}return{getImportsForExportInfo:({moduleSymbol:s,exportKind:o,targetFlags:c,symbol:u})=>{if(!(c&111551)&&Bu(t))return Ve;let f=i?.get(ta(s));if(!f)return Ve;let g=Qle(t,o,n);return f.map(p=>({declaration:p,importKind:g,symbol:u,targetFlags:c}))}}}function V$(e,t){if(!Bu(e))return!1;if(e.commonJsModuleIndicator&&!e.externalModuleIndicator)return!0;if(e.externalModuleIndicator&&!e.commonJsModuleIndicator)return!1;let n=t.getCompilerOptions();if(n.configFile)return Ql(n)<5;if(e.impliedNodeFormat===1)return!0;if(e.impliedNodeFormat===99)return!1;for(let i of t.getSourceFiles())if(!(i===e||!Bu(i)||t.isSourceFileFromExternalLibrary(i))){if(i.commonJsModuleIndicator&&!i.externalModuleIndicator)return!0;if(i.externalModuleIndicator&&!i.commonJsModuleIndicator)return!1}return!0}function FCe(e,t){return xm(n=>n?t.getPackageJsonAutoImportProvider().getTypeChecker():e.getTypeChecker())}function GUe(e,t,n,i,s,o,c,u,f){let g=Bu(t),p=e.getCompilerOptions(),y=rS(e,c),S=FCe(e,c),x=Yl(p),C=uL(x),w=f?z=>({moduleSpecifiers:lb.tryGetModuleSpecifiersFromCache(z,t,y,u),computedWithoutCache:!1}):(z,V)=>lb.getModuleSpecifiersWithCacheInfo(z,V,p,t,y,u,void 0,!0),D=0,O=oa(o,(z,V)=>{let X=S(z.isFromPackageJson),{computedWithoutCache:J,moduleSpecifiers:ie}=w(z.moduleSymbol,X),B=!!(z.targetFlags&111551),Z=Xle(i,!0,z.symbol,z.targetFlags,X,p);return D+=J?1:0,Ri(ie,ae=>{var _e;if(C&&aT(ae))return;if(!B&&g&&n!==void 0)return{kind:1,moduleSpecifier:ae,usagePosition:n,exportInfo:z,isReExport:V>0};let $=Qle(t,z.exportKind,p),H;if(n!==void 0&&$===3&&z.exportKind===0){let K=X.resolveExternalModuleSymbol(z.moduleSymbol),oe;K!==z.moduleSymbol&&(oe=(_e=RL(K,X,p))==null?void 0:_e.name),oe||(oe=tue(z.moduleSymbol,La(p),!1)),H={namespacePrefix:oe,usagePosition:n}}return{kind:3,moduleSpecifier:ae,importKind:$,useRequire:s,addAsTypeOnly:Z,exportInfo:z,isReExport:V>0,qualification:H}})});return{computedWithoutCacheCount:D,fixes:O}}function $Ue(e,t,n,i,s,o,c,u,f,g){let p=ba(t,y=>XUe(y,o,c,n.getTypeChecker(),n.getCompilerOptions()));return p?{fixes:[p]}:GUe(n,i,s,o,c,e,u,f,g)}function XUe({declaration:e,importKind:t,symbol:n,targetFlags:i},s,o,c,u){var f;let g=(f=Xk(e))==null?void 0:f.text;if(g){let p=o?4:Xle(s,!0,n,i,c,u);return{kind:3,moduleSpecifier:g,importKind:t,addAsTypeOnly:p,useRequire:o}}}function OCe(e,t,n,i){let s=qi(e.sourceFile,n),o;if(t===d._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)o=KUe(e,s);else if(Ie(s))if(t===d._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){let u=Nj(Yle(e.sourceFile,e.program.getTypeChecker(),s,e.program.getCompilerOptions())),f=jCe(e.sourceFile,s,u,e.program);return f&&[{fix:f,symbolName:u,errorIdentifierText:s.text}]}else o=nqe(e,s,i);else return;let c=G3(e.sourceFile,e.preferences,e.host);return o&&QUe(o,e.sourceFile,e.program,c,e.host)}function QUe(e,t,n,i,s){let o=c=>xo(c,s.getCurrentDirectory(),$h(s));return sx(e,(c,u)=>kv(!!c.isJsxNamespaceFix,!!u.isJsxNamespaceFix)||Io(c.fix.kind,u.fix.kind)||MCe(c.fix,u.fix,t,n,i.allowsImportingSpecifier,o))}function LCe(e,t,n,i,s){if(ft(e))return e[0].kind===0||e[0].kind===2?e[0]:e.reduce((o,c)=>MCe(c,o,t,n,i.allowsImportingSpecifier,u=>xo(u,s.getCurrentDirectory(),$h(s)))===-1?c:o)}function MCe(e,t,n,i,s,o){return e.kind!==0&&t.kind!==0?kv(s(t.moduleSpecifier),s(e.moduleSpecifier))||ZUe(e.moduleSpecifier,t.moduleSpecifier,n,i)||kv(RCe(e,n,i.getCompilerOptions(),o),RCe(t,n,i.getCompilerOptions(),o))||Hw(e.moduleSpecifier,t.moduleSpecifier):0}function RCe(e,t,n,i){var s;if(e.isReExport&&((s=e.exportInfo)!=null&&s.moduleFileName)&&Yl(n)===2&&YUe(e.exportInfo.moduleFileName)){let o=i(Xr(e.exportInfo.moduleFileName));return ts(t.path,o)}return!1}function YUe(e){return Mc(e,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function ZUe(e,t,n,i){return ts(e,"node:")&&!ts(t,"node:")?NL(n,i)?-1:1:ts(t,"node:")&&!ts(e,"node:")?NL(n,i)?1:-1:0}function KUe({sourceFile:e,program:t,host:n,preferences:i},s){let o=t.getTypeChecker(),c=eqe(s,o);if(!c)return;let u=o.getAliasedSymbol(c),f=c.name,g=[{symbol:c,moduleSymbol:u,moduleFileName:void 0,exportKind:3,targetFlags:u.flags,isFromPackageJson:!1}],p=V$(e,t);return z$(g,void 0,!1,p,t,e,n,i).fixes.map(S=>{var x;return{fix:S,symbolName:f,errorIdentifierText:(x=Ur(s,Ie))==null?void 0:x.text}})}function eqe(e,t){let n=Ie(e)?t.getSymbolAtLocation(e):void 0;if(B5(n))return n;let{parent:i}=e;if(Zu(i)&&i.tagName===e||Zx(i)){let s=t.resolveName(t.getJsxNamespace(i),Zu(i)?e:i,111551,!1);if(B5(s))return s}}function Qle(e,t,n,i){if(n.verbatimModuleSyntax&&(Ql(n)===1||e.impliedNodeFormat===1))return 3;switch(t){case 0:return 0;case 1:return 1;case 2:return sqe(e,n,!!i);case 3:return tqe(e,n,!!i);default:return E.assertNever(t)}}function tqe(e,t,n){if(Fx(t))return 1;let i=Ql(t);switch(i){case 2:case 1:case 3:return Qn(e)&&(Bc(e)||n)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return e.impliedNodeFormat===99?2:3;default:return E.assertNever(i,`Unexpected moduleKind ${i}`)}}function nqe({sourceFile:e,program:t,cancellationToken:n,host:i,preferences:s},o,c){let u=t.getTypeChecker(),f=t.getCompilerOptions();return oa(Yle(e,u,o,f),g=>{if(g==="default")return;let p=h1(o),y=V$(e,t),S=iqe(g,Hk(o),eS(o),n,e,t,c,i,s);return hs(Tj(S.values(),x=>z$(x,o.getStart(e),p,y,t,e,i,s).fixes),x=>({fix:x,symbolName:g,errorIdentifierText:o.text,isJsxNamespaceFix:g!==o.text}))})}function jCe(e,t,n,i){let s=i.getTypeChecker(),o=s.resolveName(n,t,111551,!0);if(!o)return;let c=s.getTypeOnlyAliasDeclaration(o);if(!(!c||Mn(c)!==e))return{kind:4,typeOnlyAliasDeclaration:c}}function Yle(e,t,n,i){let s=n.parent;if((Zu(s)||tb(s))&&s.tagName===n&&rG(i.jsx)){let o=t.getJsxNamespace(e);if(rqe(o,n,t))return!sC(n.text)&&!t.resolveName(n.text,n,111551,!1)?[n.text,o]:[o]}return[n.text]}function rqe(e,t,n){if(sC(t.text))return!0;let i=n.resolveName(e,t,111551,!0);return!i||ft(i.declarations,Nv)&&!(i.flags&111551)}function iqe(e,t,n,i,s,o,c,u,f){var g;let p=mf(),y=G3(s,f,u),S=(g=u.getModuleSpecifierCache)==null?void 0:g.call(u),x=xm(w=>rS(w?u.getPackageJsonAutoImportProvider():o,u));function C(w,D,O,z,V,X){let J=x(X);if(D&&uG(V,s,D,f,y,J,S)||!D&&y.allowsImportingAmbientModule(w,J)){let ie=V.getTypeChecker();p.add(Moe(O,ie).toString(),{symbol:O,moduleSymbol:w,moduleFileName:D?.fileName,exportKind:z,targetFlags:Cu(O,ie).flags,isFromPackageJson:X})}}return _G(o,u,f,c,(w,D,O,z)=>{let V=O.getTypeChecker();i.throwIfCancellationRequested();let X=O.getCompilerOptions(),J=ML(w,V,X);J&&(J.name===e||tue(w,La(X),t)===e)&&HCe(J.resolvedSymbol,n)&&C(w,D,J.symbol,J.exportKind,O,z);let ie=V.tryGetMemberInModuleExportsAndProperties(e,w);ie&&HCe(ie,n)&&C(w,D,ie,0,O,z)}),p}function sqe(e,t,n){let i=Fx(t),s=Qn(e);if(!s&&Ql(t)>=5)return i?1:2;if(s)return Bc(e)||n?i?1:2:3;for(let o of e.statements)if(Kl(o)&&!dc(o.moduleReference))return 3;return i?1:3}function Zle(e,t,n,i,s,o,c){let u,f=er.ChangeTracker.with(e,g=>{u=aqe(g,t,n,i,s,o,c)});return qs(rue,f,u,iue,d.Add_all_missing_imports)}function aqe(e,t,n,i,s,o,c){let u=Df(t,c);switch(i.kind){case 0:return Kle(e,t,i),[d.Change_0_to_1,n,`${i.namespacePrefix}.${n}`];case 1:return zCe(e,t,i,u),[d.Change_0_to_1,n,VCe(i.moduleSpecifier,u)+n];case 2:{let{importClauseOrBindingPattern:f,importKind:g,addAsTypeOnly:p,moduleSpecifier:y}=i;JCe(e,t,f,g===1?{name:n,addAsTypeOnly:p}:void 0,g===0?[{name:n,addAsTypeOnly:p}]:Ve,c);let S=hp(y);return s?[d.Import_0_from_1,n,S]:[d.Update_import_from_0,S]}case 3:{let{importKind:f,moduleSpecifier:g,addAsTypeOnly:p,useRequire:y,qualification:S}=i,x=y?UCe:WCe,C=f===1?{name:n,addAsTypeOnly:p}:void 0,w=f===0?[{name:n,addAsTypeOnly:p}]:void 0,D=f===2||f===3?{importKind:f,name:S?.namespacePrefix||n,addAsTypeOnly:p}:void 0;return J3(e,t,x(g,u,C,w,D,o.getCompilerOptions(),c),!0,c),S&&Kle(e,t,S),s?[d.Import_0_from_1,n,g]:[d.Add_import_from_0,g]}case 4:{let{typeOnlyAliasDeclaration:f}=i,g=oqe(e,f,o,t,c);return g.kind===276?[d.Remove_type_from_import_of_0_from_1,n,BCe(g.parent.parent)]:[d.Remove_type_from_import_declaration_from_0,BCe(g)]}default:return E.assertNever(i,`Unexpected fix kind ${i.kind}`)}}function BCe(e){var t,n;return e.kind===271?((n=Ur((t=Ur(e.moduleReference,Bm))==null?void 0:t.expression,$a))==null?void 0:n.text)||e.moduleReference.getText():Vs(e.parent.moduleSpecifier,ca).text}function oqe(e,t,n,i,s){let o=n.getCompilerOptions(),c=Xz(o);switch(t.kind){case 276:if(t.isTypeOnly){let f=ed.detectImportSpecifierSorting(t.parent.elements,s);if(t.parent.elements.length>1&&f){let g=I.updateImportSpecifier(t,!1,t.propertyName,t.name),p=ed.getOrganizeImportsComparer(s,f===2),y=ed.getImportSpecifierInsertionIndex(t.parent.elements,g,p);if(t.parent.elements.indexOf(t)!==y)return e.delete(i,t),e.insertImportSpecifierAtIndex(i,g,t.parent,y),t}return e.deleteRange(i,t.getFirstToken()),t}else return E.assert(t.parent.parent.isTypeOnly),u(t.parent.parent),t.parent.parent;case 273:return u(t),t;case 274:return u(t.parent),t.parent;case 271:return e.deleteRange(i,t.getChildAt(1)),t;default:E.failBadSyntaxKind(t)}function u(f){var g;if(e.delete(i,RH(f,i)),!o.allowImportingTsExtensions){let p=Xk(f.parent),y=p&&((g=n.getResolvedModule(i,p.text,vd(i,p)))==null?void 0:g.resolvedModule);if(y?.resolvedUsingTsExtension){let S=hP(p.text,o9(p.text,o));e.replaceNode(i,p,I.createStringLiteral(S))}}if(c){let p=Ur(f.namedBindings,lh);if(p&&p.elements.length>1){ed.detectImportSpecifierSorting(p.elements,s)&&t.kind===276&&p.elements.indexOf(t)!==0&&(e.delete(i,t),e.insertImportSpecifierAtIndex(i,t,p,0));for(let y of p.elements)y!==t&&!y.isTypeOnly&&e.insertModifierBefore(i,156,y)}}}}function JCe(e,t,n,i,s,o){var c;if(n.kind===206){i&&g(n,i.name,"default");for(let p of s)g(n,p.name,void 0);return}let u=n.isTypeOnly&&ft([i,...s],p=>p?.addAsTypeOnly===4),f=n.namedBindings&&((c=Ur(n.namedBindings,lh))==null?void 0:c.elements);if(i&&(E.assert(!n.name,"Cannot add a default import to an import clause that already has one"),e.insertNodeAt(t,n.getStart(t),I.createIdentifier(i.name),{suffix:", "})),s.length){let p;if(typeof o.organizeImportsIgnoreCase=="boolean")p=o.organizeImportsIgnoreCase;else if(f){let C=ed.detectImportSpecifierSorting(f,o);C!==3&&(p=C===2)}p===void 0&&(p=ed.detectSorting(t,o)===2);let y=ed.getOrganizeImportsComparer(o,p),S=Mh(s.map(C=>I.createImportSpecifier((!n.isTypeOnly||u)&&W$(C,o),void 0,I.createIdentifier(C.name))),(C,w)=>ed.compareImportOrExportSpecifiers(C,w,y)),x=f?.length&&ed.detectImportSpecifierSorting(f,o);if(x&&!(p&&x===1))for(let C of S){let w=u&&!C.isTypeOnly?0:ed.getImportSpecifierInsertionIndex(f,C,y);e.insertImportSpecifierAtIndex(t,C,n.namedBindings,w)}else if(f?.length)for(let C of S)e.insertNodeInListAfter(t,Pa(f),C,f);else if(S.length){let C=I.createNamedImports(S);n.namedBindings?e.replaceNode(t,n.namedBindings,C):e.insertNodeAfter(t,E.checkDefined(n.name,"Import clause must have either named imports or a default import"),C)}}if(u&&(e.delete(t,RH(n,t)),f))for(let p of f)e.insertModifierBefore(t,156,p);function g(p,y,S){let x=I.createBindingElement(void 0,S,y);p.elements.length?e.insertNodeInListAfter(t,Pa(p.elements),x):e.replaceNode(t,p,I.createObjectBindingPattern([x]))}}function Kle(e,t,{namespacePrefix:n,usagePosition:i}){e.insertText(t,i,n+".")}function zCe(e,t,{moduleSpecifier:n,usagePosition:i},s){e.insertText(t,i,VCe(n,s))}function VCe(e,t){let n=MH(t);return`import(${n}${e}${n}).`}function eue({addAsTypeOnly:e}){return e===2}function W$(e,t){return eue(e)||!!t.preferTypeOnlyAutoImports&&e.addAsTypeOnly!==4}function WCe(e,t,n,i,s,o,c){let u=dT(e,t),f;if(n!==void 0||i?.length){let g=(!n||eue(n))&&hi(i,eue)||(o.verbatimModuleSyntax||c.preferTypeOnlyAutoImports)&&n?.addAsTypeOnly!==4&&!ft(i,p=>p.addAsTypeOnly===4);f=hk(f,o0(n&&I.createIdentifier(n.name),i?.map(p=>I.createImportSpecifier(!g&&W$(p,c),void 0,I.createIdentifier(p.name))),e,t,g))}if(s){let g=s.importKind===3?I.createImportEqualsDeclaration(void 0,W$(s,c),I.createIdentifier(s.name),I.createExternalModuleReference(u)):I.createImportDeclaration(void 0,I.createImportClause(W$(s,c),void 0,I.createNamespaceImport(I.createIdentifier(s.name))),u,void 0);f=hk(f,g)}return E.checkDefined(f)}function UCe(e,t,n,i,s){let o=dT(e,t),c;if(n||i?.length){let u=i?.map(({name:g})=>I.createBindingElement(void 0,void 0,g))||[];n&&u.unshift(I.createBindingElement(void 0,"default",n.name));let f=qCe(I.createObjectBindingPattern(u),o);c=hk(c,f)}if(s){let u=qCe(s.name,o);c=hk(c,u)}return E.checkDefined(c)}function qCe(e,t){return I.createVariableStatement(void 0,I.createVariableDeclarationList([I.createVariableDeclaration(typeof e=="string"?I.createIdentifier(e):e,void 0,void 0,I.createCallExpression(I.createIdentifier("require"),void 0,[t]))],2))}function HCe({declarations:e},t){return ft(e,n=>!!(SA(n)&t))}function tue(e,t,n){return nue(zu(hp(e.name)),t,n)}function nue(e,t,n){let i=Mc(yk(e,"/index")),s="",o=!0,c=i.charCodeAt(0);ug(c,t)?(s+=String.fromCharCode(c),n&&(s=s.toUpperCase())):o=!1;for(let u=1;uZle(e,i,f,u,f!==g,o,n))},fixIds:[iue],getAllCodeActions:e=>{let{sourceFile:t,program:n,preferences:i,host:s,cancellationToken:o}=e,c=PCe(t,n,!0,i,s,o);return h6(e,sue,u=>c.addImportFromDiagnostic(u,e)),g6(er.ChangeTracker.with(e,c.writeFixes))}})}});function GCe(e,t,n){let i=xr(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=xr(i.relatedInformation,c=>c.code===d.This_type_parameter_might_need_an_extends_0_constraint.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=o_e(s.file,Gl(s.start,s.length));if(o!==void 0&&(Ie(o)&&Ko(o.parent)&&(o=o.parent),Ko(o))){if(YE(o.parent))return;let c=qi(t,n.start),u=e.getTypeChecker();return{constraint:uqe(u,c)||lqe(s.messageText),declaration:o,token:c}}}function $Ce(e,t,n,i,s,o){let{declaration:c,constraint:u}=o,f=t.getTypeChecker();if(os(u))e.insertText(s,c.name.end,` extends ${u}`);else{let g=La(t.getCompilerOptions()),p=v6({program:t,host:i}),y=bT(s,t,n,i),S=EX(f,y,u,void 0,g,void 0,p);S&&(e.replaceNode(s,c,I.updateTypeParameterDeclaration(c,void 0,c.name,S,c.default)),y.writeFixes(e))}}function lqe(e){let[t,n]=Qd(e,` -`,0).match(/`extends (.*)`/)||[];return n}function uqe(e,t){return Ei(t.parent)?e.getTypeArgumentConstraint(t.parent):(ut(t)?e.getContextualType(t):void 0)||e.getTypeAtLocation(t)}var U$,aue,_qe=ze({"src/services/codefixes/fixAddMissingConstraint.ts"(){"use strict";qr(),la(),U$="addMissingConstraint",aue=[d.Type_0_is_not_comparable_to_type_1.code,d.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,d.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,d.Type_0_is_not_assignable_to_type_1.code,d.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,d.Property_0_is_incompatible_with_index_signature.code,d.Property_0_in_type_1_is_not_assignable_to_type_2.code,d.Type_0_does_not_satisfy_the_constraint_1.code],ia({errorCodes:aue,getCodeActions(e){let{sourceFile:t,span:n,program:i,preferences:s,host:o}=e,c=GCe(i,t,n);if(c===void 0)return;let u=er.ChangeTracker.with(e,f=>$Ce(f,i,s,o,t,c));return[qs(U$,u,d.Add_extends_constraint,U$,d.Add_extends_constraint_to_all_type_parameters)]},fixIds:[U$],getAllCodeActions:e=>{let{program:t,preferences:n,host:i}=e,s=new Map;return g6(er.ChangeTracker.with(e,o=>{h6(e,aue,c=>{let u=GCe(t,c.file,Gl(c.start,c.length));if(u&&Hp(s,Va(u.declaration)))return $Ce(o,t,n,i,c.file,u)})}))}})}});function XCe(e,t,n,i){switch(n){case d.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case d.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case d.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case d.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case d.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return fqe(e,t.sourceFile,i);case d.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case d.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case d.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case d.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return pqe(e,t.sourceFile,i);default:E.fail("Unexpected error code: "+n)}}function fqe(e,t,n){let i=YCe(t,n);if(Bu(t)){e.addJSDocTags(t,i,[I.createJSDocOverrideTag(I.createIdentifier("override"))]);return}let s=i.modifiers||Ve,o=xr(s,Ux),c=xr(s,mre),u=xr(s,y=>EH(y.kind)),f=Bp(s,Zl),g=c?c.end:o?o.end:u?u.end:f?ma(t.text,f.end):i.getStart(t),p=u||o||c?{prefix:" "}:{suffix:" "};e.insertModifierAt(t,g,164,p)}function pqe(e,t,n){let i=YCe(t,n);if(Bu(t)){e.filterJSDocTags(t,i,qI(cO));return}let s=xr(i.modifiers,gre);E.assertIsDefined(s),e.deleteModifier(t,s)}function QCe(e){switch(e.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return F_(e,e.parent);default:return!1}}function YCe(e,t){let n=qi(e,t),i=Fn(n,s=>ei(s)?"quit":QCe(s));return E.assert(i&&QCe(i)),i}var oue,eD,pN,cue,lue,dqe=ze({"src/services/codefixes/fixOverrideModifier.ts"(){"use strict";qr(),la(),oue="fixOverrideModifier",eD="fixAddOverrideModifier",pN="fixRemoveOverrideModifier",cue=[d.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,d.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,d.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,d.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,d.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,d.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,d.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,d.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,d.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],lue={[d.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:d.Add_override_modifier,fixId:eD,fixAllDescriptions:d.Add_all_missing_override_modifiers},[d.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:d.Add_override_modifier,fixId:eD,fixAllDescriptions:d.Add_all_missing_override_modifiers},[d.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:d.Remove_override_modifier,fixId:pN,fixAllDescriptions:d.Remove_all_unnecessary_override_modifiers},[d.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:d.Remove_override_modifier,fixId:pN,fixAllDescriptions:d.Remove_override_modifier},[d.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:d.Add_override_modifier,fixId:eD,fixAllDescriptions:d.Add_all_missing_override_modifiers},[d.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:d.Add_override_modifier,fixId:eD,fixAllDescriptions:d.Add_all_missing_override_modifiers},[d.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:d.Add_override_modifier,fixId:eD,fixAllDescriptions:d.Remove_all_unnecessary_override_modifiers},[d.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:d.Remove_override_modifier,fixId:pN,fixAllDescriptions:d.Remove_all_unnecessary_override_modifiers},[d.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:d.Remove_override_modifier,fixId:pN,fixAllDescriptions:d.Remove_all_unnecessary_override_modifiers}},ia({errorCodes:cue,getCodeActions:function(t){let{errorCode:n,span:i}=t,s=lue[n];if(!s)return Ve;let{descriptions:o,fixId:c,fixAllDescriptions:u}=s,f=er.ChangeTracker.with(t,g=>XCe(g,t,n,i.start));return[Sle(oue,f,o,c,u)]},fixIds:[oue,eD,pN],getAllCodeActions:e=>no(e,cue,(t,n)=>{let{code:i,start:s}=n,o=lue[i];!o||o.fixId!==e.fixId||XCe(t,e,i,s)})})}});function ZCe(e,t,n,i){let s=Df(t,i),o=I.createStringLiteral(n.name.text,s===0);e.replaceNode(t,n,E7(n)?I.createElementAccessChain(n.expression,n.questionDotToken,o):I.createElementAccessExpression(n.expression,o))}function KCe(e,t){return Vs(qi(e,t).parent,Cr)}var q$,uue,mqe=ze({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){"use strict";qr(),la(),q$="fixNoPropertyAccessFromIndexSignature",uue=[d.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],ia({errorCodes:uue,fixIds:[q$],getCodeActions(e){let{sourceFile:t,span:n,preferences:i}=e,s=KCe(t,n.start),o=er.ChangeTracker.with(e,c=>ZCe(c,e.sourceFile,s,i));return[qs(q$,o,[d.Use_element_access_for_0,s.name.text],q$,d.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:e=>no(e,uue,(t,n)=>ZCe(t,n.file,KCe(n.file,n.start),e.preferences))})}});function e6e(e,t,n,i){let s=qi(t,n);if(!i6(s))return;let o=__(s,!1,!1);if(!(!al(o)&&!uo(o))&&!Li(__(o,!1,!1))){let c=E.checkDefined(Ya(o,100,t)),{name:u}=o,f=E.checkDefined(o.body);return uo(o)?u&&Eo.Core.isSymbolReferencedInFile(u,i,t,f)?void 0:(e.delete(t,c),u&&e.delete(t,u),e.insertText(t,f.pos," =>"),[d.Convert_function_expression_0_to_arrow_function,u?u.text:LL]):(e.replaceNode(t,c,I.createToken(87)),e.insertText(t,u.end," = "),e.insertText(t,f.pos," =>"),[d.Convert_function_declaration_0_to_arrow_function,u.text])}}var H$,_ue,gqe=ze({"src/services/codefixes/fixImplicitThis.ts"(){"use strict";qr(),la(),H$="fixImplicitThis",_ue=[d.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ia({errorCodes:_ue,getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,o,c=er.ChangeTracker.with(t,u=>{o=e6e(u,n,s.start,i.getTypeChecker())});return o?[qs(H$,c,o,H$,d.Fix_all_implicit_this_errors)]:Ve},fixIds:[H$],getAllCodeActions:e=>no(e,_ue,(t,n)=>{e6e(t,n.file,n.start,e.program.getTypeChecker())})})}});function t6e(e,t,n){var i,s;let o=qi(e,t);if(Ie(o)){let c=Fn(o,kl);if(c===void 0)return;let u=ca(c.moduleSpecifier)?c.moduleSpecifier.text:void 0;if(u===void 0)return;let f=(i=n.getResolvedModule(e,u,void 0))==null?void 0:i.resolvedModule;if(f===void 0)return;let g=n.getSourceFile(f.resolvedFileName);if(g===void 0||$3(n,g))return;let p=g.symbol,y=(s=Ur(p.valueDeclaration,Pm))==null?void 0:s.locals;if(y===void 0)return;let S=y.get(o.escapedText);if(S===void 0)return;let x=yqe(S);return x===void 0?void 0:{exportName:{node:o,isTypeOnly:mC(x)},node:x,moduleSourceFile:g,moduleSpecifier:u}}}function hqe(e,t,{exportName:n,node:i,moduleSourceFile:s}){let o=G$(s,n.isTypeOnly);o?n6e(e,t,s,o,[n]):Xw(i)?e.insertExportModifier(s,i):r6e(e,t,s,[n])}function fue(e,t,n,i,s){bn(i)&&(s?n6e(e,t,n,s,i):r6e(e,t,n,i))}function G$(e,t){let n=i=>Kc(i)&&(t&&i.isTypeOnly||!i.isTypeOnly);return Bp(e.statements,n)}function n6e(e,t,n,i,s){let o=i.exportClause&&kp(i.exportClause)?i.exportClause.elements:I.createNodeArray([]),c=!i.isTypeOnly&&!!(pd(t.getCompilerOptions())||xr(o,u=>u.isTypeOnly));e.replaceNode(n,i,I.updateExportDeclaration(i,i.modifiers,i.isTypeOnly,I.createNamedExports(I.createNodeArray([...o,...i6e(s,c)],o.hasTrailingComma)),i.moduleSpecifier,i.attributes))}function r6e(e,t,n,i){e.insertNodeAtEndOfScope(n,n,I.createExportDeclaration(void 0,!1,I.createNamedExports(i6e(i,pd(t.getCompilerOptions()))),void 0,void 0))}function i6e(e,t){return I.createNodeArray(Kt(e,n=>I.createExportSpecifier(t&&n.isTypeOnly,void 0,n.node)))}function yqe(e){if(e.valueDeclaration===void 0)return Pl(e.declarations);let t=e.valueDeclaration,n=Ni(t)?Ur(t.parent.parent,uc):void 0;return n&&bn(n.declarationList.declarations)===1?n:t}var $$,pue,vqe=ze({"src/services/codefixes/fixImportNonExportedMember.ts"(){"use strict";qr(),la(),$$="fixImportNonExportedMember",pue=[d.Module_0_declares_1_locally_but_it_is_not_exported.code],ia({errorCodes:pue,fixIds:[$$],getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=t6e(t,n.start,i);if(s===void 0)return;let o=er.ChangeTracker.with(e,c=>hqe(c,i,s));return[qs($$,o,[d.Export_0_from_module_1,s.exportName.node.text,s.moduleSpecifier],$$,d.Export_all_referenced_locals)]},getAllCodeActions(e){let{program:t}=e;return g6(er.ChangeTracker.with(e,n=>{let i=new Map;h6(e,pue,s=>{let o=t6e(s.file,s.start,t);if(o===void 0)return;let{exportName:c,node:u,moduleSourceFile:f}=o;if(G$(f,c.isTypeOnly)===void 0&&Xw(u))n.insertExportModifier(f,u);else{let g=i.get(f)||{typeOnlyExports:[],exports:[]};c.isTypeOnly?g.typeOnlyExports.push(c):g.exports.push(c),i.set(f,g)}}),i.forEach((s,o)=>{let c=G$(o,!0);c&&c.isTypeOnly?(fue(n,t,o,s.typeOnlyExports,c),fue(n,t,o,s.exports,G$(o,!1))):fue(n,t,o,[...s.exports,...s.typeOnlyExports],c)})}))}})}});function bqe(e,t){let n=qi(e,t);return Fn(n,i=>i.kind===202)}function Sqe(e,t,n){if(!n)return;let i=n.type,s=!1,o=!1;for(;i.kind===190||i.kind===191||i.kind===196;)i.kind===190?s=!0:i.kind===191&&(o=!0),i=i.type;let c=I.updateNamedTupleMember(n,n.dotDotDotToken||(o?I.createToken(26):void 0),n.name,n.questionToken||(s?I.createToken(58):void 0),i);c!==n&&e.replaceNode(t,n,c)}var X$,s6e,xqe=ze({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){"use strict";qr(),la(),X$="fixIncorrectNamedTupleSyntax",s6e=[d.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,d.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],ia({errorCodes:s6e,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=bqe(n,i.start),o=er.ChangeTracker.with(t,c=>Sqe(c,n,s));return[qs(X$,o,d.Move_labeled_tuple_element_modifiers_to_labels,X$,d.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[X$]})}});function a6e(e,t,n,i){let s=qi(e,t),o=s.parent;if((i===d.No_overload_matches_this_call.code||i===d.Type_0_is_not_assignable_to_type_1.code)&&!$d(o))return;let c=n.program.getTypeChecker(),u;if(Cr(o)&&o.name===s){E.assert(_g(s),"Expected an identifier for spelling (property access)");let f=c.getTypeAtLocation(o.expression);o.flags&64&&(f=c.getNonNullableType(f)),u=c.getSuggestedSymbolForNonexistentProperty(s,f)}else if(Yn(o)&&o.operatorToken.kind===103&&o.left===s&&Di(s)){let f=c.getTypeAtLocation(o.right);u=c.getSuggestedSymbolForNonexistentProperty(s,f)}else if(k_(o)&&o.right===s){let f=c.getSymbolAtLocation(o.left);f&&f.flags&1536&&(u=c.getSuggestedSymbolForNonexistentModule(o.right,f))}else if(E_(o)&&o.name===s){E.assertNode(s,Ie,"Expected an identifier for spelling (import)");let f=Fn(s,kl),g=kqe(e,n,f);g&&g.symbol&&(u=c.getSuggestedSymbolForNonexistentModule(s,g.symbol))}else if($d(o)&&o.name===s){E.assertNode(s,Ie,"Expected an identifier for JSX attribute");let f=Fn(s,Zu),g=c.getContextualTypeForArgumentAtIndex(f,0);u=c.getSuggestedSymbolForNonexistentJSXAttribute(s,g)}else if(F5(o)&&Ml(o)&&o.name===s){let f=Fn(s,ei),g=f?Bd(f):void 0,p=g?c.getTypeAtLocation(g):void 0;p&&(u=c.getSuggestedSymbolForNonexistentClassMember(Qc(s),p))}else{let f=eS(s),g=Qc(s);E.assert(g!==void 0,"name should be defined"),u=c.getSuggestedSymbolForNonexistentSymbol(s,g,Tqe(f))}return u===void 0?void 0:{node:s,suggestedSymbol:u}}function o6e(e,t,n,i,s){let o=xc(i);if(!hf(o,s)&&Cr(n.parent)){let c=i.valueDeclaration;c&&Ru(c)&&Di(c.name)?e.replaceNode(t,n,I.createIdentifier(o)):e.replaceNode(t,n.parent,I.createElementAccessExpression(n.parent.expression,I.createStringLiteral(o)))}else e.replaceNode(t,n,I.createIdentifier(o))}function Tqe(e){let t=0;return e&4&&(t|=1920),e&2&&(t|=788968),e&1&&(t|=111551),t}function kqe(e,t,n){var i;if(!n||!$a(n.moduleSpecifier))return;let s=(i=t.program.getResolvedModule(e,n.moduleSpecifier.text,vd(e,n.moduleSpecifier)))==null?void 0:i.resolvedModule;if(s)return t.program.getSourceFile(s.resolvedFileName)}var due,mue,Cqe=ze({"src/services/codefixes/fixSpelling.ts"(){"use strict";qr(),la(),due="fixSpelling",mue=[d.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,d.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,d.Cannot_find_name_0_Did_you_mean_1.code,d.Could_not_find_name_0_Did_you_mean_1.code,d.Cannot_find_namespace_0_Did_you_mean_1.code,d.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,d.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,d._0_has_no_exported_member_named_1_Did_you_mean_2.code,d.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,d.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,d.No_overload_matches_this_call.code,d.Type_0_is_not_assignable_to_type_1.code],ia({errorCodes:mue,getCodeActions(e){let{sourceFile:t,errorCode:n}=e,i=a6e(t,e.span.start,e,n);if(!i)return;let{node:s,suggestedSymbol:o}=i,c=La(e.host.getCompilationSettings()),u=er.ChangeTracker.with(e,f=>o6e(f,t,s,o,c));return[qs("spelling",u,[d.Change_spelling_to_0,xc(o)],due,d.Fix_all_detected_spelling_errors)]},fixIds:[due],getAllCodeActions:e=>no(e,mue,(t,n)=>{let i=a6e(n.file,n.start,e,n.code),s=La(e.host.getCompilationSettings());i&&o6e(t,e.sourceFile,i.node,i.suggestedSymbol,s)})})}});function c6e(e,t,n){let i=e.createSymbol(4,t.escapedText);i.links.type=e.getTypeAtLocation(n);let s=Gs([i]);return e.createAnonymousType(void 0,s,[],[],[])}function gue(e,t,n,i){if(!t.body||!Ds(t.body)||bn(t.body.statements)!==1)return;let s=Da(t.body.statements);if(Il(s)&&hue(e,t,e.getTypeAtLocation(s.expression),n,i))return{declaration:t,kind:0,expression:s.expression,statement:s,commentSource:s.expression};if(eb(s)&&Il(s.statement)){let o=I.createObjectLiteralExpression([I.createPropertyAssignment(s.label,s.statement.expression)]),c=c6e(e,s.label,s.statement.expression);if(hue(e,t,c,n,i))return Co(t)?{declaration:t,kind:1,expression:o,statement:s,commentSource:s.statement.expression}:{declaration:t,kind:0,expression:o,statement:s,commentSource:s.statement.expression}}else if(Ds(s)&&bn(s.statements)===1){let o=Da(s.statements);if(eb(o)&&Il(o.statement)){let c=I.createObjectLiteralExpression([I.createPropertyAssignment(o.label,o.statement.expression)]),u=c6e(e,o.label,o.statement.expression);if(hue(e,t,u,n,i))return{declaration:t,kind:0,expression:c,statement:s,commentSource:o}}}}function hue(e,t,n,i,s){if(s){let o=e.getSignatureFromDeclaration(t);if(o){Mr(t,1024)&&(n=e.createPromiseType(n));let c=e.createSignature(t,o.typeParameters,o.thisParameter,o.parameters,n,void 0,o.minArgumentCount,o.flags);n=e.createAnonymousType(void 0,Gs(),[c],[],[])}else n=e.getAnyType()}return e.isTypeAssignableTo(n,i)}function l6e(e,t,n,i){let s=qi(t,n);if(!s.parent)return;let o=Fn(s.parent,To);switch(i){case d.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!o||!o.body||!o.type||!Ef(o.type,s)?void 0:gue(e,o,e.getTypeFromTypeNode(o.type),!1);case d.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!o||!Ws(o.parent)||!o.body)return;let c=o.parent.arguments.indexOf(o);if(c===-1)return;let u=e.getContextualTypeForArgumentAtIndex(o.parent,c);return u?gue(e,o,u,!0):void 0;case d.Type_0_is_not_assignable_to_type_1.code:if(!ih(s)||!Uk(s.parent)&&!$d(s.parent))return;let f=Eqe(s.parent);return!f||!To(f)||!f.body?void 0:gue(e,f,e.getTypeAtLocation(s.parent),!0)}}function Eqe(e){switch(e.kind){case 260:case 169:case 208:case 172:case 303:return e.initializer;case 291:return e.initializer&&(n3(e.initializer)?e.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function u6e(e,t,n,i){z_(n);let s=zA(t);e.replaceNode(t,i,I.createReturnStatement(n),{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Exclude,suffix:s?";":void 0})}function _6e(e,t,n,i,s,o){let c=o||vL(i)?I.createParenthesizedExpression(i):i;z_(s),iS(s,c),e.replaceNode(t,n.body,c)}function f6e(e,t,n,i){e.replaceNode(t,n.body,I.createParenthesizedExpression(i))}function Dqe(e,t,n){let i=er.ChangeTracker.with(e,s=>u6e(s,e.sourceFile,t,n));return qs(Q$,i,d.Add_a_return_statement,Y$,d.Add_all_missing_return_statement)}function Pqe(e,t,n,i){let s=er.ChangeTracker.with(e,o=>_6e(o,e.sourceFile,t,n,i,!1));return qs(Q$,s,d.Remove_braces_from_arrow_function_body,Z$,d.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function wqe(e,t,n){let i=er.ChangeTracker.with(e,s=>f6e(s,e.sourceFile,t,n));return qs(Q$,i,d.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,K$,d.Wrap_all_object_literal_with_parentheses)}var Q$,Y$,Z$,K$,yue,Aqe=ze({"src/services/codefixes/returnValueCorrect.ts"(){"use strict";qr(),la(),Q$="returnValueCorrect",Y$="fixAddReturnStatement",Z$="fixRemoveBracesFromArrowFunctionBody",K$="fixWrapTheBlockWithParen",yue=[d.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,d.Type_0_is_not_assignable_to_type_1.code,d.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],ia({errorCodes:yue,fixIds:[Y$,Z$,K$],getCodeActions:function(t){let{program:n,sourceFile:i,span:{start:s},errorCode:o}=t,c=l6e(n.getTypeChecker(),i,s,o);if(c)return c.kind===0?_n([Dqe(t,c.expression,c.statement)],Co(c.declaration)?Pqe(t,c.declaration,c.expression,c.commentSource):void 0):[wqe(t,c.declaration,c.expression)]},getAllCodeActions:e=>no(e,yue,(t,n)=>{let i=l6e(e.program.getTypeChecker(),n.file,n.start,n.code);if(i)switch(e.fixId){case Y$:u6e(t,n.file,i.expression,i.statement);break;case Z$:if(!Co(i.declaration))return;_6e(t,n.file,i.declaration,i.expression,i.commentSource,!1);break;case K$:if(!Co(i.declaration))return;f6e(t,n.file,i.declaration,i.expression);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function p6e(e,t,n,i,s){var o;let c=qi(e,t),u=c.parent;if(n===d.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(c.kind===19&&xa(u)&&Ws(u.parent)))return;let x=Qo(u.parent.arguments,O=>O===u);if(x<0)return;let C=i.getResolvedSignature(u.parent);if(!(C&&C.declaration&&C.parameters[x]))return;let w=C.parameters[x].valueDeclaration;if(!(w&&ms(w)&&Ie(w.name)))return;let D=hs(i.getUnmatchedProperties(i.getTypeAtLocation(u),i.getParameterType(C,x),!1,!1));return bn(D)?{kind:3,token:w.name,properties:D,parentDeclaration:u}:void 0}if(!_g(c))return;if(Ie(c)&&Q0(u)&&u.initializer&&xa(u.initializer)){let x=i.getContextualType(c)||i.getTypeAtLocation(c),C=hs(i.getUnmatchedProperties(i.getTypeAtLocation(u.initializer),x,!1,!1));return bn(C)?{kind:3,token:c,properties:C,parentDeclaration:u.initializer}:void 0}if(Ie(c)&&Zu(c.parent)){let x=La(s.getCompilerOptions()),C=Rqe(i,x,c.parent);return bn(C)?{kind:4,token:c,attributes:C,parentDeclaration:c.parent}:void 0}if(Ie(c)){let x=(o=i.getContextualType(c))==null?void 0:o.getNonNullableType();if(x&&Ir(x)&16){let C=Pl(i.getSignaturesOfType(x,0));return C===void 0?void 0:{kind:5,token:c,signature:C,sourceFile:e,parentDeclaration:k6e(c)}}if(Ws(u)&&u.expression===c)return{kind:2,token:c,call:u,sourceFile:e,modifierFlags:0,parentDeclaration:k6e(c)}}if(!Cr(u))return;let f=IH(i.getTypeAtLocation(u.expression)),g=f.symbol;if(!g||!g.declarations)return;if(Ie(c)&&Ws(u.parent)){let x=xr(g.declarations,Pc),C=x?.getSourceFile();if(x&&C&&!$3(s,C))return{kind:2,token:c,call:u.parent,sourceFile:e,modifierFlags:32,parentDeclaration:x};let w=xr(g.declarations,Li);if(e.commonJsModuleIndicator)return;if(w&&!$3(s,w))return{kind:2,token:c,call:u.parent,sourceFile:w,modifierFlags:32,parentDeclaration:w}}let p=xr(g.declarations,ei);if(!p&&Di(c))return;let y=p||xr(g.declarations,x=>Wu(x)||nf(x));if(y&&!$3(s,y.getSourceFile())){let x=!nf(y)&&(f.target||f)!==i.getDeclaredTypeOfSymbol(g);if(x&&(Di(c)||Wu(y)))return;let C=y.getSourceFile(),w=nf(y)?0:(x?256:0)|(nG(c.text)?2:0),D=Bu(C),O=Ur(u.parent,Ws);return{kind:0,token:c,call:O,modifierFlags:w,parentDeclaration:y,declSourceFile:C,isJSFile:D}}let S=xr(g.declarations,T1);if(S&&!(f.flags&1056)&&!Di(c)&&!$3(s,S.getSourceFile()))return{kind:1,token:c,parentDeclaration:S}}function Nqe(e,t){return t.isJSFile?c2(Iqe(e,t)):Fqe(e,t)}function Iqe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){if(Wu(t)||nf(t))return;let o=er.ChangeTracker.with(e,u=>d6e(u,n,t,s,!!(i&256)));if(o.length===0)return;let c=i&256?d.Initialize_static_property_0:Di(s)?d.Declare_a_private_field_named_0:d.Initialize_property_0_in_the_constructor;return qs(dy,o,[c,s.text],dy,d.Add_all_missing_members)}function d6e(e,t,n,i,s){let o=i.text;if(s){if(n.kind===231)return;let c=n.name.getText(),u=m6e(I.createIdentifier(c),o);e.insertNodeAfter(t,n,u)}else if(Di(i)){let c=I.createPropertyDeclaration(void 0,o,void 0,void 0,void 0),u=y6e(n);u?e.insertNodeAfter(t,u,c):e.insertMemberAtStart(t,n,c)}else{let c=yg(n);if(!c)return;let u=m6e(I.createThis(),o);e.insertNodeAtConstructorEnd(t,c,u)}}function m6e(e,t){return I.createExpressionStatement(I.createAssignment(I.createPropertyAccessExpression(e,t),ST()))}function Fqe(e,{parentDeclaration:t,declSourceFile:n,modifierFlags:i,token:s}){let o=s.text,c=i&256,u=g6e(e.program.getTypeChecker(),t,s),f=p=>er.ChangeTracker.with(e,y=>h6e(y,n,t,o,u,p)),g=[qs(dy,f(i&256),[c?d.Declare_static_property_0:d.Declare_property_0,o],dy,d.Add_all_missing_members)];return c||Di(s)||(i&2&&g.unshift(Sd(dy,f(2),[d.Declare_private_property_0,o])),g.push(Oqe(e,n,t,s.text,u))),g}function g6e(e,t,n){let i;if(n.parent.parent.kind===226){let s=n.parent.parent,o=n.parent===s.left?s.right:s.left,c=e.getWidenedType(e.getBaseTypeOfLiteralType(e.getTypeAtLocation(o)));i=e.typeToTypeNode(c,t,1)}else{let s=e.getContextualType(n.parent);i=s?e.typeToTypeNode(s,void 0,1):void 0}return i||I.createKeywordTypeNode(133)}function h6e(e,t,n,i,s,o){let c=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,u=ei(n)?I.createPropertyDeclaration(c,i,void 0,s,void 0):I.createPropertySignature(void 0,i,void 0,s),f=y6e(n);f?e.insertNodeAfter(t,f,u):e.insertMemberAtStart(t,n,u)}function y6e(e){let t;for(let n of e.members){if(!Is(n))break;t=n}return t}function Oqe(e,t,n,i,s){let o=I.createKeywordTypeNode(154),c=I.createParameterDeclaration(void 0,void 0,"x",void 0,o,void 0),u=I.createIndexSignature(void 0,[c],s),f=er.ChangeTracker.with(e,g=>g.insertMemberAtStart(t,n,u));return Sd(dy,f,[d.Add_index_signature_for_property_0,i])}function Lqe(e,t){let{parentDeclaration:n,declSourceFile:i,modifierFlags:s,token:o,call:c}=t;if(c===void 0)return;let u=o.text,f=p=>er.ChangeTracker.with(e,y=>v6e(e,y,c,o,p,n,i)),g=[qs(dy,f(s&256),[s&256?d.Declare_static_method_0:d.Declare_method_0,u],dy,d.Add_all_missing_members)];return s&2&&g.unshift(Sd(dy,f(2),[d.Declare_private_method_0,u])),g}function v6e(e,t,n,i,s,o,c){let u=bT(c,e.program,e.preferences,e.host),f=ei(o)?174:173,g=t_e(f,e,u,n,i,s,o),p=jqe(o,n);p?t.insertNodeAfter(c,p,g):t.insertMemberAtStart(c,o,g),u.writeFixes(t)}function b6e(e,t,{token:n,parentDeclaration:i}){let s=ft(i.members,c=>{let u=t.getTypeAtLocation(c);return!!(u&&u.flags&402653316)}),o=I.createEnumMember(n,s?I.createStringLiteral(n.text):void 0);e.replaceNode(i.getSourceFile(),i,I.updateEnumDeclaration(i,i.modifiers,i.name,es(i.members,c2(o))),{leadingTriviaOption:er.LeadingTriviaOption.IncludeAll,trailingTriviaOption:er.TrailingTriviaOption.Exclude})}function S6e(e,t,n){let i=Df(t.sourceFile,t.preferences),s=bT(t.sourceFile,t.program,t.preferences,t.host),o=n.kind===2?t_e(262,t,s,n.call,ur(n.token),n.modifierFlags,n.parentDeclaration):CX(262,t,i,n.signature,SM(d.Function_not_implemented.message,i),n.token,void 0,void 0,void 0,s);o===void 0&&E.fail("fixMissingFunctionDeclaration codefix got unexpected error."),$p(n.parentDeclaration)?e.insertNodeBefore(n.sourceFile,n.parentDeclaration,o,!0):e.insertNodeAtEndOfScope(n.sourceFile,n.parentDeclaration,o),s.writeFixes(e)}function x6e(e,t,n){let i=bT(t.sourceFile,t.program,t.preferences,t.host),s=Df(t.sourceFile,t.preferences),o=t.program.getTypeChecker(),c=n.parentDeclaration.attributes,u=ft(c.properties,Kx),f=Kt(n.attributes,y=>{let S=eX(t,o,i,s,o.getTypeOfSymbol(y),n.parentDeclaration),x=I.createIdentifier(y.name),C=I.createJsxAttribute(x,I.createJsxExpression(void 0,S));return Ta(x,C),C}),g=I.createJsxAttributes(u?[...f,...c.properties]:[...c.properties,...f]),p={prefix:c.pos===c.end?" ":void 0};e.replaceNode(t.sourceFile,c,g,p),i.writeFixes(e)}function T6e(e,t,n){let i=bT(t.sourceFile,t.program,t.preferences,t.host),s=Df(t.sourceFile,t.preferences),o=La(t.program.getCompilerOptions()),c=t.program.getTypeChecker(),u=Kt(n.properties,g=>{let p=eX(t,c,i,s,c.getTypeOfSymbol(g),n.parentDeclaration);return I.createPropertyAssignment(Bqe(g,o,s,c),p)}),f={leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Exclude,indentation:n.indentation};e.replaceNode(t.sourceFile,n.parentDeclaration,I.createObjectLiteralExpression([...n.parentDeclaration.properties,...u],!0),f),i.writeFixes(e)}function eX(e,t,n,i,s,o){if(s.flags&3)return ST();if(s.flags&134217732)return I.createStringLiteral("",i===0);if(s.flags&8)return I.createNumericLiteral(0);if(s.flags&64)return I.createBigIntLiteral("0n");if(s.flags&16)return I.createFalse();if(s.flags&1056){let c=s.symbol.exports?RI(s.symbol.exports.values()):s.symbol,u=t.symbolToExpression(s.symbol.parent?s.symbol.parent:s.symbol,111551,void 0,void 0);return c===void 0||u===void 0?I.createNumericLiteral(0):I.createPropertyAccessExpression(u,t.symbolToString(c))}if(s.flags&256)return I.createNumericLiteral(s.value);if(s.flags&2048)return I.createBigIntLiteral(s.value);if(s.flags&128)return I.createStringLiteral(s.value,i===0);if(s.flags&512)return s===t.getFalseType()||s===t.getFalseType(!0)?I.createFalse():I.createTrue();if(s.flags&65536)return I.createNull();if(s.flags&1048576)return ba(s.types,u=>eX(e,t,n,i,u,o))??ST();if(t.isArrayLikeType(s))return I.createArrayLiteralExpression();if(Mqe(s)){let c=Kt(t.getPropertiesOfType(s),u=>{let f=eX(e,t,n,i,t.getTypeOfSymbol(u),o);return I.createPropertyAssignment(u.name,f)});return I.createObjectLiteralExpression(c,!0)}if(Ir(s)&16){if(xr(s.symbol.declarations||Ve,ud(Tg,xg,kc))===void 0)return ST();let u=t.getSignaturesOfType(s,0);return u===void 0?ST():CX(218,e,i,u[0],SM(d.Function_not_implemented.message,i),void 0,void 0,void 0,o,n)??ST()}if(Ir(s)&1){let c=ah(s.symbol);if(c===void 0||Gv(c))return ST();let u=yg(c);return u&&bn(u.parameters)?ST():I.createNewExpression(I.createIdentifier(s.symbol.name),void 0,void 0)}return ST()}function ST(){return I.createIdentifier("undefined")}function Mqe(e){return e.flags&524288&&(Ir(e)&128||e.symbol&&Ur(bm(e.symbol.declarations),nf))}function Rqe(e,t,n){let i=e.getContextualType(n.attributes);if(i===void 0)return Ve;let s=i.getProperties();if(!bn(s))return Ve;let o=new Set;for(let c of n.attributes.properties)if($d(c)&&o.add(JE(c.name)),Kx(c)){let u=e.getTypeAtLocation(c.expression);for(let f of u.getProperties())o.add(f.escapedName)}return Fr(s,c=>hf(c.name,t,1)&&!(c.flags&16777216||lc(c)&48||o.has(c.escapedName)))}function jqe(e,t){if(nf(e))return;let n=Fn(t,i=>kc(i)||Cc(i));return n&&n.parent===e?n:void 0}function Bqe(e,t,n,i){if(wm(e)){let s=i.symbolToNode(e,111551,void 0,1073741824);if(s&&Na(s))return s}return aF(e.name,t,n===0,!1,!1)}function k6e(e){if(Fn(e,n3)){let t=Fn(e.parent,$p);if(t)return t}return Mn(e)}var dy,mM,gM,hM,vue,Jqe=ze({"src/services/codefixes/fixAddMissingMember.ts"(){"use strict";qr(),la(),dy="fixMissingMember",mM="fixMissingProperties",gM="fixMissingAttributes",hM="fixMissingFunctionDeclaration",vue=[d.Property_0_does_not_exist_on_type_1.code,d.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,d.Property_0_is_missing_in_type_1_but_required_in_type_2.code,d.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,d.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,d.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,d.Cannot_find_name_0.code],ia({errorCodes:vue,getCodeActions(e){let t=e.program.getTypeChecker(),n=p6e(e.sourceFile,e.span.start,e.errorCode,t,e.program);if(n){if(n.kind===3){let i=er.ChangeTracker.with(e,s=>T6e(s,e,n));return[qs(mM,i,d.Add_missing_properties,mM,d.Add_all_missing_properties)]}if(n.kind===4){let i=er.ChangeTracker.with(e,s=>x6e(s,e,n));return[qs(gM,i,d.Add_missing_attributes,gM,d.Add_all_missing_attributes)]}if(n.kind===2||n.kind===5){let i=er.ChangeTracker.with(e,s=>S6e(s,e,n));return[qs(hM,i,[d.Add_missing_function_declaration_0,n.token.text],hM,d.Add_all_missing_function_declarations)]}if(n.kind===1){let i=er.ChangeTracker.with(e,s=>b6e(s,e.program.getTypeChecker(),n));return[qs(dy,i,[d.Add_missing_enum_member_0,n.token.text],dy,d.Add_all_missing_members)]}return es(Lqe(e,n),Nqe(e,n))}},fixIds:[dy,hM,mM,gM],getAllCodeActions:e=>{let{program:t,fixId:n}=e,i=t.getTypeChecker(),s=new Map,o=new Map;return g6(er.ChangeTracker.with(e,c=>{h6(e,vue,u=>{let f=p6e(u.file,u.start,u.code,i,e.program);if(!(!f||!Hp(s,Va(f.parentDeclaration)+"#"+f.token.text))){if(n===hM&&(f.kind===2||f.kind===5))S6e(c,e,f);else if(n===mM&&f.kind===3)T6e(c,e,f);else if(n===gM&&f.kind===4)x6e(c,e,f);else if(f.kind===1&&b6e(c,i,f),f.kind===0){let{parentDeclaration:g,token:p}=f,y=T4(o,g,()=>[]);y.some(S=>S.token.text===p.text)||y.push(f)}}}),o.forEach((u,f)=>{let g=nf(f)?void 0:l_e(f,i);for(let p of u){if(g?.some(O=>{let z=o.get(O);return!!z&&z.some(({token:V})=>V.text===p.token.text)}))continue;let{parentDeclaration:y,declSourceFile:S,modifierFlags:x,token:C,call:w,isJSFile:D}=p;if(w&&!Di(C))v6e(e,c,w,C,x&256,y,S);else if(D&&!Wu(y)&&!nf(y))d6e(c,S,y,C,!!(x&256));else{let O=g6e(i,y,C);h6e(c,S,y,C.text,O,x&256)}}})}))}})}});function C6e(e,t,n){let i=Vs(zqe(t,n),Ws),s=I.createNewExpression(i.expression,i.typeArguments,i.arguments);e.replaceNode(t,i,s)}function zqe(e,t){let n=qi(e,t.start),i=Dc(t);for(;n.endC6e(s,t,n));return[qs(tX,i,d.Add_missing_new_operator_to_call,tX,d.Add_missing_new_operator_to_all_calls)]},fixIds:[tX],getAllCodeActions:e=>no(e,bue,(t,n)=>C6e(t,e.sourceFile,n))})}});function E6e(e,t){return{type:"install package",file:e,packageName:t}}function D6e(e,t){let n=Ur(qi(e,t),ca);if(!n)return;let i=n.text,{packageName:s}=Y8(i);return Al(s)?void 0:s}function P6e(e,t,n){var i;return n===Sue?Eg.nodeCoreModules.has(e)?"@types/node":void 0:(i=t.isKnownTypesPackageName)!=null&&i.call(t,e)?BO(e):void 0}var w6e,nX,Sue,xue,Wqe=ze({"src/services/codefixes/fixCannotFindModule.ts"(){"use strict";qr(),la(),w6e="fixCannotFindModule",nX="installTypesPackage",Sue=d.Cannot_find_module_0_or_its_corresponding_type_declarations.code,xue=[Sue,d.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],ia({errorCodes:xue,getCodeActions:function(t){let{host:n,sourceFile:i,span:{start:s}}=t,o=D6e(i,s);if(o===void 0)return;let c=P6e(o,n,t.errorCode);return c===void 0?[]:[qs(w6e,[],[d.Install_0,c],nX,d.Install_all_missing_types_packages,E6e(i.fileName,c))]},fixIds:[nX],getAllCodeActions:e=>no(e,xue,(t,n,i)=>{let s=D6e(n.file,n.start);if(s!==void 0)switch(e.fixId){case nX:{let o=P6e(s,e.host,n.code);o&&i.push(E6e(n.file.fileName,o));break}default:E.fail(`Bad fixId: ${e.fixId}`)}})})}});function A6e(e,t){let n=qi(e,t);return Vs(n.parent,ei)}function N6e(e,t,n,i,s){let o=Bd(e),c=n.program.getTypeChecker(),u=c.getTypeAtLocation(o),f=c.getPropertiesOfType(u).filter(Uqe),g=bT(t,n.program,s,n.host);e_e(e,f,t,n,s,g,p=>i.insertMemberAtStart(t,e,p)),g.writeFixes(i)}function Uqe(e){let t=ty(Da(e.getDeclarations()));return!(t&2)&&!!(t&64)}var Tue,rX,qqe=ze({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){"use strict";qr(),la(),Tue=[d.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],rX="fixClassDoesntImplementInheritedAbstractMember",ia({errorCodes:Tue,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=er.ChangeTracker.with(t,o=>N6e(A6e(n,i.start),n,t,o,t.preferences));return s.length===0?void 0:[qs(rX,s,d.Implement_inherited_abstract_class,rX,d.Implement_all_inherited_abstract_classes)]},fixIds:[rX],getAllCodeActions:function(t){let n=new Map;return no(t,Tue,(i,s)=>{let o=A6e(s.file,s.start);Hp(n,Va(o))&&N6e(o,t.sourceFile,t,i,t.preferences)})}})}});function I6e(e,t,n,i){e.insertNodeAtConstructorStart(t,n,i),e.delete(t,i)}function F6e(e,t){let n=qi(e,t);if(n.kind!==110)return;let i=yf(n),s=O6e(i.body);return s&&!s.expression.arguments.some(o=>Cr(o)&&o.expression===n)?{constructor:i,superCall:s}:void 0}function O6e(e){return Il(e)&&x2(e.expression)?e:As(e)?void 0:vs(e,O6e)}var iX,kue,Hqe=ze({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){"use strict";qr(),la(),iX="classSuperMustPrecedeThisAccess",kue=[d.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],ia({errorCodes:kue,getCodeActions(e){let{sourceFile:t,span:n}=e,i=F6e(t,n.start);if(!i)return;let{constructor:s,superCall:o}=i,c=er.ChangeTracker.with(e,u=>I6e(u,t,s,o));return[qs(iX,c,d.Make_super_call_the_first_statement_in_the_constructor,iX,d.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[iX],getAllCodeActions(e){let{sourceFile:t}=e,n=new Map;return no(e,kue,(i,s)=>{let o=F6e(s.file,s.start);if(!o)return;let{constructor:c,superCall:u}=o;Hp(n,Va(c.parent))&&I6e(i,t,c,u)})}})}});function L6e(e,t){let n=qi(e,t);return E.assert(Cc(n.parent),"token should be at the constructor declaration"),n.parent}function M6e(e,t,n){let i=I.createExpressionStatement(I.createCallExpression(I.createSuper(),void 0,Ve));e.insertNodeAtConstructorStart(t,n,i)}var sX,Cue,Gqe=ze({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){"use strict";qr(),la(),sX="constructorForDerivedNeedSuperCall",Cue=[d.Constructors_for_derived_classes_must_contain_a_super_call.code],ia({errorCodes:Cue,getCodeActions(e){let{sourceFile:t,span:n}=e,i=L6e(t,n.start),s=er.ChangeTracker.with(e,o=>M6e(o,t,i));return[qs(sX,s,d.Add_missing_super_call,sX,d.Add_all_missing_super_calls)]},fixIds:[sX],getAllCodeActions:e=>no(e,Cue,(t,n)=>M6e(t,e.sourceFile,L6e(n.file,n.start)))})}});function R6e(e,t){s_e(e,t,"jsx",I.createStringLiteral("react"))}var Eue,Due,$qe=ze({"src/services/codefixes/fixEnableJsxFlag.ts"(){"use strict";qr(),la(),Eue="fixEnableJsxFlag",Due=[d.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],ia({errorCodes:Due,getCodeActions:function(t){let{configFile:n}=t.program.getCompilerOptions();if(n===void 0)return;let i=er.ChangeTracker.with(t,s=>R6e(s,n));return[Sd(Eue,i,d.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[Eue],getAllCodeActions:e=>no(e,Due,t=>{let{configFile:n}=e.program.getCompilerOptions();n!==void 0&&R6e(t,n)})})}});function j6e(e,t,n){let i=xr(e.getSemanticDiagnostics(t),c=>c.start===n.start&&c.length===n.length);if(i===void 0||i.relatedInformation===void 0)return;let s=xr(i.relatedInformation,c=>c.code===d.Did_you_mean_0.code);if(s===void 0||s.file===void 0||s.start===void 0||s.length===void 0)return;let o=o_e(s.file,Gl(s.start,s.length));if(o!==void 0&&ut(o)&&Yn(o.parent))return{suggestion:Xqe(s.messageText),expression:o.parent,arg:o}}function B6e(e,t,n,i){let s=I.createCallExpression(I.createPropertyAccessExpression(I.createIdentifier("Number"),I.createIdentifier("isNaN")),void 0,[n]),o=i.operatorToken.kind;e.replaceNode(t,i,o===38||o===36?I.createPrefixUnaryExpression(54,s):s)}function Xqe(e){let[t,n]=Qd(e,` -`,0).match(/'(.*)'/)||[];return n}var aX,Pue,Qqe=ze({"src/services/codefixes/fixNaNEquality.ts"(){"use strict";qr(),la(),aX="fixNaNEquality",Pue=[d.This_condition_will_always_return_0.code],ia({errorCodes:Pue,getCodeActions(e){let{sourceFile:t,span:n,program:i}=e,s=j6e(i,t,n);if(s===void 0)return;let{suggestion:o,expression:c,arg:u}=s,f=er.ChangeTracker.with(e,g=>B6e(g,t,u,c));return[qs(aX,f,[d.Use_0,o],aX,d.Use_Number_isNaN_in_all_conditions)]},fixIds:[aX],getAllCodeActions:e=>no(e,Pue,(t,n)=>{let i=j6e(e.program,n.file,Gl(n.start,n.length));i&&B6e(t,n.file,i.arg,i.expression)})})}}),Yqe=ze({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){"use strict";qr(),la(),ia({errorCodes:[d.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,d.Top_level_await_using_statements_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,d.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],getCodeActions:function(t){let n=t.program.getCompilerOptions(),{configFile:i}=n;if(i===void 0)return;let s=[],o=Ql(n);if(o>=5&&o<99){let g=er.ChangeTracker.with(t,p=>{s_e(p,i,"module",I.createStringLiteral("esnext"))});s.push(Sd("fixModuleOption",g,[d.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}let u=La(n);if(u<4||u>99){let g=er.ChangeTracker.with(t,p=>{if(!tE(i))return;let S=[["target",I.createStringLiteral("es2017")]];o===1&&S.push(["module",I.createStringLiteral("commonjs")]),i_e(p,i,S)});s.push(Sd("fixTargetOption",g,[d.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return s.length?s:void 0}})}});function J6e(e,t,n){e.replaceNode(t,n,I.createPropertyAssignment(n.name,n.objectAssignmentInitializer))}function z6e(e,t){return Vs(qi(e,t).parent,sf)}var oX,wue,Zqe=ze({"src/services/codefixes/fixPropertyAssignment.ts"(){"use strict";qr(),la(),oX="fixPropertyAssignment",wue=[d.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],ia({errorCodes:wue,fixIds:[oX],getCodeActions(e){let{sourceFile:t,span:n}=e,i=z6e(t,n.start),s=er.ChangeTracker.with(e,o=>J6e(o,e.sourceFile,i));return[qs(oX,s,[d.Change_0_to_1,"=",":"],oX,[d.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:e=>no(e,wue,(t,n)=>J6e(t,n.file,z6e(n.file,n.start)))})}});function V6e(e,t){let n=qi(e,t),i=Rl(n).heritageClauses,s=i[0].getFirstToken();return s.kind===96?{extendsToken:s,heritageClauses:i}:void 0}function W6e(e,t,n,i){if(e.replaceNode(t,n,I.createToken(119)),i.length===2&&i[0].token===96&&i[1].token===119){let s=i[1].getFirstToken(),o=s.getFullStart();e.replaceRange(t,{pos:o,end:o},I.createToken(28));let c=t.text,u=s.end;for(;uW6e(c,t,i,s));return[qs(cX,o,d.Change_extends_to_implements,cX,d.Change_all_extended_interfaces_to_implements)]},fixIds:[cX],getAllCodeActions:e=>no(e,Aue,(t,n)=>{let i=V6e(n.file,n.start);i&&W6e(t,n.file,i.extendsToken,i.heritageClauses)})})}});function U6e(e,t,n){let i=qi(e,t);if(Ie(i)||Di(i))return{node:i,className:n===Nue?Rl(i).name.text:void 0}}function q6e(e,t,{node:n,className:i}){z_(n),e.replaceNode(t,n,I.createPropertyAccessExpression(i?I.createIdentifier(i):I.createThis(),n))}var lX,Nue,Iue,eHe=ze({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){"use strict";qr(),la(),lX="forgottenThisPropertyAccess",Nue=d.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,Iue=[d.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,d.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,Nue],ia({errorCodes:Iue,getCodeActions(e){let{sourceFile:t}=e,n=U6e(t,e.span.start,e.errorCode);if(!n)return;let i=er.ChangeTracker.with(e,s=>q6e(s,t,n));return[qs(lX,i,[d.Add_0_to_unresolved_variable,n.className||"this"],lX,d.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[lX],getAllCodeActions:e=>no(e,Iue,(t,n)=>{let i=U6e(n.file,n.start,n.code);i&&q6e(t,e.sourceFile,i)})})}});function tHe(e){return so(Lue,e)}function Fue(e,t,n,i,s){let o=n.getText()[i];if(!tHe(o))return;let c=s?Lue[o]:`{${q3(n,t,o)}}`;e.replaceRangeWithText(n,{pos:i,end:i+1},c)}var uX,yM,Oue,Lue,nHe=ze({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){"use strict";qr(),la(),uX="fixInvalidJsxCharacters_expression",yM="fixInvalidJsxCharacters_htmlEntity",Oue=[d.Unexpected_token_Did_you_mean_or_gt.code,d.Unexpected_token_Did_you_mean_or_rbrace.code],ia({errorCodes:Oue,fixIds:[uX,yM],getCodeActions(e){let{sourceFile:t,preferences:n,span:i}=e,s=er.ChangeTracker.with(e,c=>Fue(c,n,t,i.start,!1)),o=er.ChangeTracker.with(e,c=>Fue(c,n,t,i.start,!0));return[qs(uX,s,d.Wrap_invalid_character_in_an_expression_container,uX,d.Wrap_all_invalid_characters_in_an_expression_container),qs(yM,o,d.Convert_invalid_character_to_its_html_entity_code,yM,d.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(e){return no(e,Oue,(t,n)=>Fue(t,e.preferences,n.file,n.start,e.fixId===yM))}}),Lue={">":">","}":"}"}}});function rHe(e,{name:t,jsDocHost:n,jsDocParameterTag:i}){let s=er.ChangeTracker.with(e,o=>o.filterJSDocTags(e.sourceFile,n,c=>c!==i));return qs(vM,s,[d.Delete_unused_param_tag_0,t.getText(e.sourceFile)],vM,d.Delete_all_unused_param_tags)}function iHe(e,{name:t,jsDocHost:n,signature:i,jsDocParameterTag:s}){if(!bn(i.parameters))return;let o=e.sourceFile,c=c1(i),u=new Set;for(let y of c)gd(y)&&Ie(y.name)&&u.add(y.name.escapedText);let f=ba(i.parameters,y=>Ie(y.name)&&!u.has(y.name.escapedText)?y.name.getText(o):void 0);if(f===void 0)return;let g=I.updateJSDocParameterTag(s,s.tagName,I.createIdentifier(f),s.isBracketed,s.typeExpression,s.isNameFirst,s.comment),p=er.ChangeTracker.with(e,y=>y.replaceJSDocComment(o,n,Kt(c,S=>S===s?g:S)));return Sd(Mue,p,[d.Rename_param_tag_name_0_to_1,t.getText(o),f])}function H6e(e,t){let n=qi(e,t);if(n.parent&&gd(n.parent)&&Ie(n.parent.name)){let i=n.parent,s=Tx(i),o=_1(i);if(s&&o)return{jsDocHost:s,signature:o,name:n.parent.name,jsDocParameterTag:i}}}var vM,Mue,Rue,sHe=ze({"src/services/codefixes/fixUnmatchedParameter.ts"(){"use strict";qr(),la(),vM="deleteUnmatchedParameter",Mue="renameUnmatchedParameter",Rue=[d.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],ia({fixIds:[vM,Mue],errorCodes:Rue,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=[],o=H6e(n,i.start);if(o)return _n(s,rHe(t,o)),_n(s,iHe(t,o)),s},getAllCodeActions:function(t){let n=new Map;return g6(er.ChangeTracker.with(t,i=>{h6(t,Rue,({file:s,start:o})=>{let c=H6e(s,o);c&&n.set(c.signature,_n(n.get(c.signature),c.jsDocParameterTag))}),n.forEach((s,o)=>{if(t.fixId===vM){let c=new Set(s);i.filterJSDocTags(o.getSourceFile(),o,u=>!c.has(u))}})}))}})}});function aHe(e,t,n){let i=Ur(qi(e,n),Ie);if(!i||i.parent.kind!==183)return;let o=t.getTypeChecker().getSymbolAtLocation(i);return xr(o?.declarations||Ve,ud(Rm,E_,Kl))}function oHe(e,t,n,i){if(n.kind===271){e.insertModifierBefore(t,156,n.name);return}let s=n.kind===273?n:n.parent.parent;if(s.name&&s.namedBindings)return;let o=i.getTypeChecker();y5(s,u=>{if(Cu(u.symbol,o).flags&111551)return!0})||e.insertModifierBefore(t,156,s)}function cHe(e,t,n,i){hT.doChangeNamedToNamespaceOrDefault(t,i,e,n.parent)}var _X,G6e,lHe=ze({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){"use strict";qr(),la(),_X="fixUnreferenceableDecoratorMetadata",G6e=[d.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],ia({errorCodes:G6e,getCodeActions:e=>{let t=aHe(e.sourceFile,e.program,e.span.start);if(!t)return;let n=er.ChangeTracker.with(e,o=>t.kind===276&&cHe(o,e.sourceFile,t,e.program)),i=er.ChangeTracker.with(e,o=>oHe(o,e.sourceFile,t,e.program)),s;return n.length&&(s=_n(s,Sd(_X,n,d.Convert_named_imports_to_namespace_import))),i.length&&(s=_n(s,Sd(_X,i,d.Use_import_type))),s},fixIds:[_X]})}});function $6e(e,t,n){e.replaceNode(t,n.parent,I.createKeywordTypeNode(159))}function dN(e,t){return qs(mN,e,t,dX,d.Delete_all_unused_declarations)}function X6e(e,t,n){e.delete(t,E.checkDefined(Vs(n.parent,QJ).typeParameters,"The type parameter to delete should exist"))}function jue(e){return e.kind===102||e.kind===80&&(e.parent.kind===276||e.parent.kind===273)}function Q6e(e){return e.kind===102?Ur(e.parent,kl):void 0}function Y6e(e,t){return Tl(t.parent)&&Da(t.parent.getChildren(e))===t}function Z6e(e,t,n){e.delete(t,n.parent.kind===243?n.parent:n)}function uHe(e,t,n){Qt(n.elements,i=>e.delete(t,i))}function _He(e,t,n,{parent:i}){if(Ni(i)&&i.initializer&&Iv(i.initializer))if(Tl(i.parent)&&bn(i.parent.declarations)>1){let s=i.parent.parent,o=s.getStart(n),c=s.end;t.delete(n,i),t.insertNodeAt(n,c,i.initializer,{prefix:c0(e.host,e.formatContext.options)+n.text.slice(yL(n.text,o-1),o),suffix:zA(n)?";":""})}else t.replaceNode(n,i.parent,i.initializer);else t.delete(n,i)}function K6e(e,t,n,i){t!==d.Property_0_is_declared_but_its_value_is_never_read.code&&(i.kind===140&&(i=Vs(i.parent,qx).typeParameter.name),Ie(i)&&fHe(i)&&(e.replaceNode(n,i,I.createIdentifier(`_${i.text}`)),ms(i.parent)&&Pk(i.parent).forEach(s=>{Ie(s.name)&&e.replaceNode(n,s.name,I.createIdentifier(`_${s.name.text}`))})))}function fHe(e){switch(e.parent.kind){case 169:case 168:return!0;case 260:switch(e.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function fX(e,t,n,i,s,o,c,u){pHe(t,n,e,i,s,o,c,u),Ie(t)&&Eo.Core.eachSymbolReferenceInFile(t,i,e,f=>{Cr(f.parent)&&f.parent.name===f&&(f=f.parent),!u&&hHe(f)&&n.delete(e,f.parent.parent)})}function pHe(e,t,n,i,s,o,c,u){let{parent:f}=e;if(ms(f))dHe(t,n,f,i,s,o,c,u);else if(!(u&&Ie(e)&&Eo.Core.isSymbolReferencedInFile(e,i,n))){let g=Rm(f)?e:Na(f)?f.parent:f;E.assert(g!==n,"should not delete whole source file"),t.delete(n,g)}}function dHe(e,t,n,i,s,o,c,u=!1){if(mHe(i,t,n,s,o,c,u))if(n.modifiers&&n.modifiers.length>0&&(!Ie(n.name)||Eo.Core.isSymbolReferencedInFile(n.name,i,t)))for(let f of n.modifiers)ra(f)&&e.deleteModifier(t,f);else!n.initializer&&e4e(n,i,s)&&e.delete(t,n)}function e4e(e,t,n){let i=e.parent.parameters.indexOf(e);return!Eo.Core.someSignatureUsage(e.parent,n,t,(s,o)=>!o||o.arguments.length>i)}function mHe(e,t,n,i,s,o,c){let{parent:u}=n;switch(u.kind){case 174:case 176:let f=u.parameters.indexOf(n),g=kc(u)?u.name:u,p=Eo.Core.getReferencedSymbolsForNode(u.pos,g,s,i,o);if(p){for(let y of p)for(let S of y.references)if(S.kind===Eo.EntryKind.Node){let x=GE(S.node)&&Ws(S.node.parent)&&S.node.parent.arguments.length>f,C=Cr(S.node.parent)&&GE(S.node.parent.expression)&&Ws(S.node.parent.parent)&&S.node.parent.parent.arguments.length>f,w=(kc(S.node.parent)||xg(S.node.parent))&&S.node.parent!==n.parent&&S.node.parent.parameters.length>f;if(x||C||w)return!1}}return!0;case 262:return u.name&&gHe(e,t,u.name)?t4e(u,n,c):!0;case 218:case 219:return t4e(u,n,c);case 178:return!1;case 177:return!0;default:return E.failBadSyntaxKind(u)}}function gHe(e,t,n){return!!Eo.Core.eachSymbolReferenceInFile(n,e,t,i=>Ie(i)&&Ws(i.parent)&&i.parent.arguments.includes(i))}function t4e(e,t,n){let i=e.parameters,s=i.indexOf(t);return E.assert(s!==-1,"The parameter should already be in the list"),n?i.slice(s+1).every(o=>Ie(o.name)&&!o.symbol.isReferenced):s===i.length-1}function hHe(e){return(Yn(e.parent)&&e.parent.left===e||(QV(e.parent)||x1(e.parent))&&e.parent.operand===e)&&Il(e.parent.parent)}var mN,pX,dX,bM,mX,Bue,yHe=ze({"src/services/codefixes/fixUnusedIdentifier.ts"(){"use strict";qr(),la(),mN="unusedIdentifier",pX="unusedIdentifier_prefix",dX="unusedIdentifier_delete",bM="unusedIdentifier_deleteImports",mX="unusedIdentifier_infer",Bue=[d._0_is_declared_but_its_value_is_never_read.code,d._0_is_declared_but_never_used.code,d.Property_0_is_declared_but_its_value_is_never_read.code,d.All_imports_in_import_declaration_are_unused.code,d.All_destructured_elements_are_unused.code,d.All_variables_are_unused.code,d.All_type_parameters_are_unused.code],ia({errorCodes:Bue,getCodeActions(e){let{errorCode:t,sourceFile:n,program:i,cancellationToken:s}=e,o=i.getTypeChecker(),c=i.getSourceFiles(),u=qi(n,e.span.start);if(hd(u))return[dN(er.ChangeTracker.with(e,y=>y.delete(n,u)),d.Remove_template_tag)];if(u.kind===30){let y=er.ChangeTracker.with(e,S=>X6e(S,n,u));return[dN(y,d.Remove_type_parameters)]}let f=Q6e(u);if(f){let y=er.ChangeTracker.with(e,S=>S.delete(n,f));return[qs(mN,y,[d.Remove_import_from_0,one(f)],bM,d.Delete_all_unused_imports)]}else if(jue(u)){let y=er.ChangeTracker.with(e,S=>fX(n,u,S,o,c,i,s,!1));if(y.length)return[qs(mN,y,[d.Remove_unused_declaration_for_Colon_0,u.getText(n)],bM,d.Delete_all_unused_imports)]}if(Gp(u.parent)||j2(u.parent)){if(ms(u.parent.parent)){let y=u.parent.elements,S=[y.length>1?d.Remove_unused_declarations_for_Colon_0:d.Remove_unused_declaration_for_Colon_0,Kt(y,x=>x.getText(n)).join(", ")];return[dN(er.ChangeTracker.with(e,x=>uHe(x,n,u.parent)),S)]}return[dN(er.ChangeTracker.with(e,y=>_He(e,y,n,u.parent)),d.Remove_unused_destructuring_declaration)]}if(Y6e(n,u))return[dN(er.ChangeTracker.with(e,y=>Z6e(y,n,u.parent)),d.Remove_variable_statement)];let g=[];if(u.kind===140){let y=er.ChangeTracker.with(e,x=>$6e(x,n,u)),S=Vs(u.parent,qx).typeParameter.name.text;g.push(qs(mN,y,[d.Replace_infer_0_with_unknown,S],mX,d.Replace_all_unused_infer_with_unknown))}else{let y=er.ChangeTracker.with(e,S=>fX(n,u,S,o,c,i,s,!1));if(y.length){let S=Na(u.parent)?u.parent:u;g.push(dN(y,[d.Remove_unused_declaration_for_Colon_0,S.getText(n)]))}}let p=er.ChangeTracker.with(e,y=>K6e(y,t,n,u));return p.length&&g.push(qs(mN,p,[d.Prefix_0_with_an_underscore,u.getText(n)],pX,d.Prefix_all_unused_declarations_with_where_possible)),g},fixIds:[pX,dX,bM,mX],getAllCodeActions:e=>{let{sourceFile:t,program:n,cancellationToken:i}=e,s=n.getTypeChecker(),o=n.getSourceFiles();return no(e,Bue,(c,u)=>{let f=qi(t,u.start);switch(e.fixId){case pX:K6e(c,u.code,t,f);break;case bM:{let g=Q6e(f);g?c.delete(t,g):jue(f)&&fX(t,f,c,s,o,n,i,!0);break}case dX:{if(f.kind===140||jue(f))break;if(hd(f))c.delete(t,f);else if(f.kind===30)X6e(c,t,f);else if(Gp(f.parent)){if(f.parent.parent.initializer)break;(!ms(f.parent.parent)||e4e(f.parent.parent,s,o))&&c.delete(t,f.parent.parent)}else{if(j2(f.parent.parent)&&f.parent.parent.parent.initializer)break;Y6e(t,f)?Z6e(c,t,f.parent):fX(t,f,c,s,o,n,i,!0)}break}case mX:f.kind===140&&$6e(c,t,f);break;default:E.fail(JSON.stringify(e.fixId))}})}})}});function n4e(e,t,n,i,s){let o=qi(t,n),c=Fn(o,Ai);if(c.getStart(t)!==o.getStart(t)){let f=JSON.stringify({statementKind:E.formatSyntaxKind(c.kind),tokenKind:E.formatSyntaxKind(o.kind),errorCode:s,start:n,length:i});E.fail("Token and statement should start at the same point. "+f)}let u=(Ds(c.parent)?c.parent:c).parent;if(!Ds(c.parent)||c===Da(c.parent.statements))switch(u.kind){case 245:if(u.elseStatement){if(Ds(c.parent))break;e.replaceNode(t,c,I.createBlock(Ve));return}case 247:case 248:e.delete(t,u);return}if(Ds(c.parent)){let f=n+i,g=E.checkDefined(vHe(sV(c.parent.statements,c),p=>p.posn4e(i,e.sourceFile,e.span.start,e.span.length,e.errorCode));return[qs(gX,n,d.Remove_unreachable_code,gX,d.Remove_all_unreachable_code)]},fixIds:[gX],getAllCodeActions:e=>no(e,Jue,(t,n)=>n4e(t,n.file,n.start,n.length,n.code))})}});function r4e(e,t,n){let i=qi(t,n),s=Vs(i.parent,eb),o=i.getStart(t),c=s.statement.getStart(t),u=vp(o,c,t)?c:ma(t.text,Ya(s,59,t).end,!0);e.deleteRange(t,{pos:o,end:u})}var hX,zue,SHe=ze({"src/services/codefixes/fixUnusedLabel.ts"(){"use strict";qr(),la(),hX="fixUnusedLabel",zue=[d.Unused_label.code],ia({errorCodes:zue,getCodeActions(e){let t=er.ChangeTracker.with(e,n=>r4e(n,e.sourceFile,e.span.start));return[qs(hX,t,d.Remove_unused_label,hX,d.Remove_all_unused_labels)]},fixIds:[hX],getAllCodeActions:e=>no(e,zue,(t,n)=>r4e(t,n.file,n.start))})}});function i4e(e,t,n,i,s){e.replaceNode(t,n,s.typeToTypeNode(i,n,void 0))}function s4e(e,t,n){let i=Fn(qi(e,t),xHe),s=i&&i.type;return s&&{typeNode:s,type:THe(n,s)}}function xHe(e){switch(e.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function THe(e,t){if(wC(t)){let n=e.getTypeFromTypeNode(t.type);return n===e.getNeverType()||n===e.getVoidType()?n:e.getUnionType(_n([n,e.getUndefinedType()],t.postfix?void 0:e.getNullType()))}return e.getTypeFromTypeNode(t)}var Vue,yX,Wue,kHe=ze({"src/services/codefixes/fixJSDocTypes.ts"(){"use strict";qr(),la(),Vue="fixJSDocTypes_plain",yX="fixJSDocTypes_nullable",Wue=[d.JSDoc_types_can_only_be_used_inside_documentation_comments.code,d._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,d._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],ia({errorCodes:Wue,getCodeActions(e){let{sourceFile:t}=e,n=e.program.getTypeChecker(),i=s4e(t,e.span.start,n);if(!i)return;let{typeNode:s,type:o}=i,c=s.getText(t),u=[f(o,Vue,d.Change_all_jsdoc_style_types_to_TypeScript)];return s.kind===321&&u.push(f(o,yX,d.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),u;function f(g,p,y){let S=er.ChangeTracker.with(e,x=>i4e(x,t,s,g,n));return qs("jdocTypes",S,[d.Change_0_to_1,c,n.typeToString(g)],p,y)}},fixIds:[Vue,yX],getAllCodeActions(e){let{fixId:t,program:n,sourceFile:i}=e,s=n.getTypeChecker();return no(e,Wue,(o,c)=>{let u=s4e(c.file,c.start,s);if(!u)return;let{typeNode:f,type:g}=u,p=f.kind===321&&t===yX?s.getNullableType(g,32768):g;i4e(o,i,f,p,s)})}})}});function a4e(e,t,n){e.replaceNodeWithText(t,n,`${n.text}()`)}function o4e(e,t){let n=qi(e,t);if(Cr(n.parent)){let i=n.parent;for(;Cr(i.parent);)i=i.parent;return i.name}if(Ie(n))return n}var vX,Uue,CHe=ze({"src/services/codefixes/fixMissingCallParentheses.ts"(){"use strict";qr(),la(),vX="fixMissingCallParentheses",Uue=[d.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],ia({errorCodes:Uue,fixIds:[vX],getCodeActions(e){let{sourceFile:t,span:n}=e,i=o4e(t,n.start);if(!i)return;let s=er.ChangeTracker.with(e,o=>a4e(o,e.sourceFile,i));return[qs(vX,s,d.Add_missing_call_parentheses,vX,d.Add_all_missing_call_parentheses)]},getAllCodeActions:e=>no(e,Uue,(t,n)=>{let i=o4e(n.file,n.start);i&&a4e(t,n.file,i)})})}});function EHe(e){if(e.type)return e.type;if(Ni(e.parent)&&e.parent.type&&Tg(e.parent.type))return e.parent.type.type}function c4e(e,t){let n=qi(e,t),i=yf(n);if(!i)return;let s;switch(i.kind){case 174:s=i.name;break;case 262:case 218:s=Ya(i,100,e);break;case 219:let o=i.typeParameters?30:21;s=Ya(i,o,e)||Da(i.parameters);break;default:return}return s&&{insertBefore:s,returnType:EHe(i)}}function l4e(e,t,{insertBefore:n,returnType:i}){if(i){let s=sw(i);(!s||s.kind!==80||s.text!=="Promise")&&e.replaceNode(t,i,I.createTypeReferenceNode("Promise",I.createNodeArray([i])))}e.insertModifierBefore(t,134,n)}var bX,que,DHe=ze({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){"use strict";qr(),la(),bX="fixAwaitInSyncFunction",que=[d.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,d.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,d.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,d.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],ia({errorCodes:que,getCodeActions(e){let{sourceFile:t,span:n}=e,i=c4e(t,n.start);if(!i)return;let s=er.ChangeTracker.with(e,o=>l4e(o,t,i));return[qs(bX,s,d.Add_async_modifier_to_containing_function,bX,d.Add_all_missing_async_modifiers)]},fixIds:[bX],getAllCodeActions:function(t){let n=new Map;return no(t,que,(i,s)=>{let o=c4e(s.file,s.start);!o||!Hp(n,Va(o.insertBefore))||l4e(i,t.sourceFile,o)})}})}});function u4e(e,t,n,i,s){let o,c;if(i===d._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)o=t,c=t+n;else if(i===d._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){let u=s.program.getTypeChecker(),f=qi(e,t).parent;E.assert(G0(f),"error span of fixPropertyOverrideAccessor should only be on an accessor");let g=f.parent;E.assert(ei(g),"erroneous accessors should only be inside classes");let p=bm(l_e(g,u));if(!p)return[];let y=Ci(Jk(f.name)),S=u.getPropertyOfType(u.getTypeAtLocation(p),y);if(!S||!S.valueDeclaration)return[];o=S.valueDeclaration.pos,c=S.valueDeclaration.end,e=Mn(S.valueDeclaration)}else E.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+i);return C4e(e,s.program,o,c,s,d.Generate_get_and_set_accessors.message)}var Hue,SX,PHe=ze({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){"use strict";qr(),la(),Hue=[d._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,d._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],SX="fixPropertyOverrideAccessor",ia({errorCodes:Hue,getCodeActions(e){let t=u4e(e.sourceFile,e.span.start,e.span.length,e.errorCode,e);if(t)return[qs(SX,t,d.Generate_get_and_set_accessors,SX,d.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[SX],getAllCodeActions:e=>no(e,Hue,(t,n)=>{let i=u4e(n.file,n.start,n.length,n.code,e);if(i)for(let s of i)t.pushRaw(e.sourceFile,s)})})}});function wHe(e,t){switch(e){case d.Parameter_0_implicitly_has_an_1_type.code:case d.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return j_(yf(t))?d.Infer_type_of_0_from_usage:d.Infer_parameter_types_from_usage;case d.Rest_parameter_0_implicitly_has_an_any_type.code:case d.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return d.Infer_parameter_types_from_usage;case d.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return d.Infer_this_type_of_0_from_usage;default:return d.Infer_type_of_0_from_usage}}function AHe(e){switch(e){case d.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return d.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case d.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return d.Variable_0_implicitly_has_an_1_type.code;case d.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return d.Parameter_0_implicitly_has_an_1_type.code;case d.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return d.Rest_parameter_0_implicitly_has_an_any_type.code;case d.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return d.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case d._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return d._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case d.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return d.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case d.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return d.Member_0_implicitly_has_an_1_type.code}return e}function _4e(e,t,n,i,s,o,c,u,f){if(!H4(n.kind)&&n.kind!==80&&n.kind!==26&&n.kind!==110)return;let{parent:g}=n,p=bT(t,s,f,u);switch(i=AHe(i),i){case d.Member_0_implicitly_has_an_1_type.code:case d.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(Ni(g)&&c(g)||Is(g)||bf(g))return f4e(e,p,t,g,s,u,o),p.writeFixes(e),g;if(Cr(g)){let x=gN(g.name,s,o),C=H3(x,g,s,u);if(C){let w=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(C),void 0);e.addJSDocTags(t,Vs(g.parent.parent,Il),[w])}return p.writeFixes(e),g}return;case d.Variable_0_implicitly_has_an_1_type.code:{let x=s.getTypeChecker().getSymbolAtLocation(n);return x&&x.valueDeclaration&&Ni(x.valueDeclaration)&&c(x.valueDeclaration)?(f4e(e,p,Mn(x.valueDeclaration),x.valueDeclaration,s,u,o),p.writeFixes(e),x.valueDeclaration):void 0}}let y=yf(n);if(y===void 0)return;let S;switch(i){case d.Parameter_0_implicitly_has_an_1_type.code:if(j_(y)){p4e(e,p,t,y,s,u,o),S=y;break}case d.Rest_parameter_0_implicitly_has_an_any_type.code:if(c(y)){let x=Vs(g,ms);NHe(e,p,t,x,y,s,u,o),S=x}break;case d.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case d._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Sf(y)&&Ie(y.name)&&(xX(e,p,t,y,gN(y.name,s,o),s,u),S=y);break;case d.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:j_(y)&&(p4e(e,p,t,y,s,u,o),S=y);break;case d.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:er.isThisTypeAnnotatable(y)&&c(y)&&(IHe(e,t,y,s,u,o),S=y);break;default:return E.fail(String(i))}return p.writeFixes(e),S}function f4e(e,t,n,i,s,o,c){Ie(i.name)&&xX(e,t,n,i,gN(i.name,s,c),s,o)}function NHe(e,t,n,i,s,o,c,u){if(!Ie(i.name))return;let f=LHe(s,n,o,u);if(E.assert(s.parameters.length===f.length,"Parameter count and inference count should match"),Qn(s))d4e(e,n,f,o,c);else{let g=Co(s)&&!Ya(s,21,n);g&&e.insertNodeBefore(n,Da(s.parameters),I.createToken(21));for(let{declaration:p,type:y}of f)p&&!p.type&&!p.initializer&&xX(e,t,n,p,y,o,c);g&&e.insertNodeAfter(n,Pa(s.parameters),I.createToken(22))}}function IHe(e,t,n,i,s,o){let c=m4e(n,t,i,o);if(!c||!c.length)return;let u=$ue(i,c,o).thisParameter(),f=H3(u,n,i,s);f&&(Qn(n)?FHe(e,t,n,f):e.tryInsertThisTypeAnnotation(t,n,f))}function FHe(e,t,n,i){e.addJSDocTags(t,n,[I.createJSDocThisTag(void 0,I.createJSDocTypeExpression(i))])}function p4e(e,t,n,i,s,o,c){let u=Pl(i.parameters);if(u&&Ie(i.name)&&Ie(u.name)){let f=gN(i.name,s,c);f===s.getTypeChecker().getAnyType()&&(f=gN(u.name,s,c)),Qn(i)?d4e(e,n,[{declaration:u,type:f}],s,o):xX(e,t,n,u,f,s,o)}}function xX(e,t,n,i,s,o,c){let u=H3(s,i,o,c);if(u)if(Qn(n)&&i.kind!==171){let f=Ni(i)?Ur(i.parent.parent,uc):i;if(!f)return;let g=I.createJSDocTypeExpression(u),p=Sf(i)?I.createJSDocReturnTag(void 0,g,void 0):I.createJSDocTypeTag(void 0,g,void 0);e.addJSDocTags(n,f,[p])}else OHe(u,i,n,e,t,La(o.getCompilerOptions()))||e.tryInsertTypeAnnotation(n,i,u)}function OHe(e,t,n,i,s,o){let c=xT(e,o);return c&&i.tryInsertTypeAnnotation(n,t,c.typeNode)?(Qt(c.symbols,u=>s.addImportFromExportedSymbol(u,!0)),!0):!1}function d4e(e,t,n,i,s){let o=n.length&&n[0].declaration.parent;if(!o)return;let c=Ri(n,u=>{let f=u.declaration;if(f.initializer||o1(f)||!Ie(f.name))return;let g=u.type&&H3(u.type,f,i,s);if(g){let p=I.cloneNode(f.name);return $n(p,7168),{name:I.cloneNode(f.name),param:f,isOptional:!!u.isOptional,typeNode:g}}});if(c.length)if(Co(o)||uo(o)){let u=Co(o)&&!Ya(o,21,t);u&&e.insertNodeBefore(t,Da(o.parameters),I.createToken(21)),Qt(c,({typeNode:f,param:g})=>{let p=I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(f)),y=I.createJSDocComment(void 0,[p]);e.insertNodeAt(t,g.getStart(t),y,{suffix:" "})}),u&&e.insertNodeAfter(t,Pa(o.parameters),I.createToken(22))}else{let u=Kt(c,({name:f,typeNode:g,isOptional:p})=>I.createJSDocParameterTag(void 0,f,!!p,I.createJSDocTypeExpression(g),!1,void 0));e.addJSDocTags(t,o,u)}}function Gue(e,t,n){return Ri(Eo.getReferenceEntriesForNode(-1,e,t,t.getSourceFiles(),n),i=>i.kind!==Eo.EntryKind.Span?Ur(i.node,Ie):void 0)}function gN(e,t,n){let i=Gue(e,t,n);return $ue(t,i,n).single()}function LHe(e,t,n,i){let s=m4e(e,t,n,i);return s&&$ue(n,s,i).parameters(e)||e.parameters.map(o=>({declaration:o,type:Ie(o.name)?gN(o.name,n,i):n.getTypeChecker().getAnyType()}))}function m4e(e,t,n,i){let s;switch(e.kind){case 176:s=Ya(e,137,t);break;case 219:case 218:let o=e.parent;s=(Ni(o)||Is(o))&&Ie(o.name)?o.name:e.name;break;case 262:case 174:case 173:s=e.name;break}if(s)return Gue(s,n,i)}function $ue(e,t,n){let i=e.getTypeChecker(),s={string:()=>i.getStringType(),number:()=>i.getNumberType(),Array:he=>i.createArrayType(he),Promise:he=>i.createPromiseType(he)},o=[i.getStringType(),i.getNumberType(),i.createArrayType(i.getAnyType()),i.createPromiseType(i.getAnyType())];return{single:f,parameters:g,thisParameter:p};function c(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function u(he){let be=new Map;for(let mt of he)mt.properties&&mt.properties.forEach((me,Oe)=>{be.has(Oe)||be.set(Oe,[]),be.get(Oe).push(me)});let _t=new Map;return be.forEach((mt,me)=>{_t.set(me,u(mt))}),{isNumber:he.some(mt=>mt.isNumber),isString:he.some(mt=>mt.isString),isNumberOrString:he.some(mt=>mt.isNumberOrString),candidateTypes:oa(he,mt=>mt.candidateTypes),properties:_t,calls:oa(he,mt=>mt.calls),constructs:oa(he,mt=>mt.constructs),numberIndex:Qt(he,mt=>mt.numberIndex),stringIndex:Qt(he,mt=>mt.stringIndex),candidateThisTypes:oa(he,mt=>mt.candidateThisTypes),inferredTypes:void 0}}function f(){return ae(y(t))}function g(he){if(t.length===0||!he.parameters)return;let be=c();for(let mt of t)n.throwIfCancellationRequested(),S(mt,be);let _t=[...be.constructs||[],...be.calls||[]];return he.parameters.map((mt,me)=>{let Oe=[],Qe=fg(mt),at=!1;for(let Je of _t)if(Je.argumentTypes.length<=me)at=Qn(he),Oe.push(i.getUndefinedType());else if(Qe)for(let lt=me;lt_t.every(me=>!me(mt)))}function Z(he){return ae($(he))}function ae(he){if(!he.length)return i.getAnyType();let be=i.getUnionType([i.getStringType(),i.getNumberType()]),mt=B(he,[{high:Oe=>Oe===i.getStringType()||Oe===i.getNumberType(),low:Oe=>Oe===be},{high:Oe=>!(Oe.flags&16385),low:Oe=>!!(Oe.flags&16385)},{high:Oe=>!(Oe.flags&114689)&&!(Ir(Oe)&16),low:Oe=>!!(Ir(Oe)&16)}]),me=mt.filter(Oe=>Ir(Oe)&16);return me.length&&(mt=mt.filter(Oe=>!(Ir(Oe)&16)),mt.push(_e(me))),i.getWidenedType(i.getUnionType(mt.map(i.getBaseTypeOfLiteralType),2))}function _e(he){if(he.length===1)return he[0];let be=[],_t=[],mt=[],me=[],Oe=!1,Qe=!1,at=mf();for(let lt of he){for(let Tn of i.getPropertiesOfType(lt))at.add(Tn.escapedName,Tn.valueDeclaration?i.getTypeOfSymbolAtLocation(Tn,Tn.valueDeclaration):i.getAnyType());be.push(...i.getSignaturesOfType(lt,0)),_t.push(...i.getSignaturesOfType(lt,1));let Jt=i.getIndexInfoOfType(lt,0);Jt&&(mt.push(Jt.type),Oe=Oe||Jt.isReadonly);let Gt=i.getIndexInfoOfType(lt,1);Gt&&(me.push(Gt.type),Qe=Qe||Gt.isReadonly)}let ht=KZ(at,(lt,Jt)=>{let Gt=Jt.lengthi.getBaseTypeOfLiteralType(at)),Qe=(mt=he.calls)!=null&&mt.length?H(he):void 0;return Qe&&Oe?me.push(i.getUnionType([Qe,...Oe],2)):(Qe&&me.push(Qe),bn(Oe)&&me.push(...Oe)),me.push(...K(he)),me}function H(he){let be=new Map;he.properties&&he.properties.forEach((Oe,Qe)=>{let at=i.createSymbol(4,Qe);at.links.type=Z(Oe),be.set(Qe,at)});let _t=he.calls?[xe(he.calls)]:[],mt=he.constructs?[xe(he.constructs)]:[],me=he.stringIndex?[i.createIndexInfo(i.getStringType(),Z(he.stringIndex),!1)]:[];return i.createAnonymousType(void 0,be,_t,mt,me)}function K(he){if(!he.properties||!he.properties.size)return[];let be=o.filter(_t=>oe(_t,he));return 0Se(_t,he)):[]}function oe(he,be){return be.properties?!$l(be.properties,(_t,mt)=>{let me=i.getTypeOfPropertyOfType(he,mt);return me?_t.calls?!i.getSignaturesOfType(me,0).length||!i.isTypeAssignableTo(me,ve(_t.calls)):!i.isTypeAssignableTo(me,Z(_t)):!0}):!1}function Se(he,be){if(!(Ir(he)&4)||!be.properties)return he;let _t=he.target,mt=bm(_t.typeParameters);if(!mt)return he;let me=[];return be.properties.forEach((Oe,Qe)=>{let at=i.getTypeOfPropertyOfType(_t,Qe);E.assert(!!at,"generic should have all the properties of its reference."),me.push(...se(at,Z(Oe),mt))}),s[he.symbol.escapedName](ae(me))}function se(he,be,_t){if(he===_t)return[be];if(he.flags&3145728)return oa(he.types,Oe=>se(Oe,be,_t));if(Ir(he)&4&&Ir(be)&4){let Oe=i.getTypeArguments(he),Qe=i.getTypeArguments(be),at=[];if(Oe&&Qe)for(let ht=0;htme.argumentTypes.length));for(let me=0;me<_t;me++){let Oe=i.createSymbol(1,Yo(`arg${me}`));Oe.links.type=ae(he.map(Qe=>Qe.argumentTypes[me]||i.getUndefinedType())),he.some(Qe=>Qe.argumentTypes[me]===void 0)&&(Oe.flags|=16777216),be.push(Oe)}let mt=Z(u(he.map(me=>me.return_)));return i.createSignature(void 0,void 0,void 0,be,mt,void 0,_t,0)}function Me(he,be){be&&!(be.flags&1)&&!(be.flags&131072)&&(he.candidateTypes||(he.candidateTypes=[])).push(be)}function ke(he,be){be&&!(be.flags&1)&&!(be.flags&131072)&&(he.candidateThisTypes||(he.candidateThisTypes=[])).push(be)}}var TX,Xue,MHe=ze({"src/services/codefixes/inferFromUsage.ts"(){"use strict";qr(),la(),TX="inferFromUsage",Xue=[d.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,d.Variable_0_implicitly_has_an_1_type.code,d.Parameter_0_implicitly_has_an_1_type.code,d.Rest_parameter_0_implicitly_has_an_any_type.code,d.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,d._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,d.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,d.Member_0_implicitly_has_an_1_type.code,d.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,d.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,d.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,d.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,d.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,d._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,d.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,d.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,d.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],ia({errorCodes:Xue,getCodeActions(e){let{sourceFile:t,program:n,span:{start:i},errorCode:s,cancellationToken:o,host:c,preferences:u}=e,f=qi(t,i),g,p=er.ChangeTracker.with(e,S=>{g=_4e(S,t,f,s,n,o,Yg,c,u)}),y=g&&us(g);return!y||p.length===0?void 0:[qs(TX,p,[wHe(s,f),Qc(y)],TX,d.Infer_all_types_from_usage)]},fixIds:[TX],getAllCodeActions(e){let{sourceFile:t,program:n,cancellationToken:i,host:s,preferences:o}=e,c=pT();return no(e,Xue,(u,f)=>{_4e(u,t,qi(f.file,f.start),f.code,n,i,c,s,o)})}})}});function g4e(e,t,n){if(Qn(e))return;let i=qi(e,n),s=Fn(i,To),o=s?.type;if(!o)return;let c=t.getTypeFromTypeNode(o),u=t.getAwaitedType(c)||t.getVoidType(),f=t.typeToTypeNode(u,o,void 0);if(f)return{returnTypeNode:o,returnType:c,promisedTypeNode:f,promisedType:u}}function h4e(e,t,n,i){e.replaceNode(t,n,I.createTypeReferenceNode("Promise",[i]))}var kX,Que,RHe=ze({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){"use strict";qr(),la(),kX="fixReturnTypeInAsyncFunction",Que=[d.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],ia({errorCodes:Que,fixIds:[kX],getCodeActions:function(t){let{sourceFile:n,program:i,span:s}=t,o=i.getTypeChecker(),c=g4e(n,i.getTypeChecker(),s.start);if(!c)return;let{returnTypeNode:u,returnType:f,promisedTypeNode:g,promisedType:p}=c,y=er.ChangeTracker.with(t,S=>h4e(S,n,u,g));return[qs(kX,y,[d.Replace_0_with_Promise_1,o.typeToString(f),o.typeToString(p)],kX,d.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:e=>no(e,Que,(t,n)=>{let i=g4e(n.file,e.program.getTypeChecker(),n.start);i&&h4e(t,n.file,i.returnTypeNode,i.promisedTypeNode)})})}});function y4e(e,t,n,i){let{line:s}=Ka(t,n);(!i||Yy(i,s))&&e.insertCommentBeforeLine(t,s,n," @ts-ignore")}var Yue,Zue,Kue,jHe=ze({"src/services/codefixes/disableJsDiagnostics.ts"(){"use strict";qr(),la(),Yue="disableJsDiagnostics",Zue="disableJsDiagnostics",Kue=Ri(Object.keys(d),e=>{let t=d[e];return t.category===1?t.code:void 0}),ia({errorCodes:Kue,getCodeActions:function(t){let{sourceFile:n,program:i,span:s,host:o,formatContext:c}=t;if(!Qn(n)||!$w(n,i.getCompilerOptions()))return;let u=n.checkJsDirective?"":c0(o,c.options),f=[Sd(Yue,[kke(n.fileName,[NA(n.checkJsDirective?Xc(n.checkJsDirective.pos,n.checkJsDirective.end):Gl(0,0),`// @ts-nocheck${u}`)])],d.Disable_checking_for_this_file)];return er.isValidLocationToAddComment(n,s.start)&&f.unshift(qs(Yue,er.ChangeTracker.with(t,g=>y4e(g,n,s.start)),d.Ignore_this_error_message,Zue,d.Add_ts_ignore_to_all_error_messages)),f},fixIds:[Zue],getAllCodeActions:e=>{let t=new Set;return no(e,Kue,(n,i)=>{er.isValidLocationToAddComment(i.file,i.start)&&y4e(n,i.file,i.start,t)})}})}});function e_e(e,t,n,i,s,o,c){let u=e.symbol.members;for(let f of t)u.has(f.escapedName)||v4e(f,e,n,i,s,o,c,void 0)}function v6(e){return{trackSymbol:()=>!1,moduleResolverHost:OH(e.program,e.host)}}function v4e(e,t,n,i,s,o,c,u,f=3,g=!1){let p=e.getDeclarations(),y=Pl(p),S=i.program.getTypeChecker(),x=La(i.program.getCompilerOptions()),C=y?.kind??171,w=K(e,y),D=y?Ju(y):0,O=D&256;O|=D&1?1:D&4?4:0,y&&u_(y)&&(O|=512);let z=Z(),V=S.getWidenedType(S.getTypeOfSymbolAtLocation(e,t)),X=!!(e.flags&16777216),J=!!(t.flags&33554432)||g,ie=Df(n,s);switch(C){case 171:case 172:let oe=ie===0?268435456:void 0,Se=S.typeToTypeNode(V,t,oe,v6(i));if(o){let Y=xT(Se,x);Y&&(Se=Y.typeNode,b6(o,Y.symbols))}c(I.createPropertyDeclaration(z,y?_e(w):e.getName(),X&&f&2?I.createToken(58):void 0,Se,void 0));break;case 177:case 178:{E.assertIsDefined(p);let Y=S.typeToTypeNode(V,t,void 0,v6(i)),ve=N2(p,y),xe=ve.secondAccessor?[ve.firstAccessor,ve.secondAccessor]:[ve.firstAccessor];if(o){let Me=xT(Y,x);Me&&(Y=Me.typeNode,b6(o,Me.symbols))}for(let Me of xe)if(Sf(Me))c(I.createGetAccessorDeclaration(z,_e(w),Ve,H(Y),$(u,ie,J)));else{E.assertNode(Me,j_,"The counterpart to a getter should be a setter");let ke=hE(Me),he=ke&&Ie(ke.name)?ur(ke.name):void 0;c(I.createSetAccessorDeclaration(z,_e(w),n_e(1,[he],[H(Y)],1,!1),$(u,ie,J)))}break}case 173:case 174:E.assertIsDefined(p);let se=V.isUnion()?oa(V.types,Y=>Y.getCallSignatures()):V.getCallSignatures();if(!ft(se))break;if(p.length===1){E.assert(se.length===1,"One declaration implies one signature");let Y=se[0];B(ie,Y,z,_e(w),$(u,ie,J));break}for(let Y of se)B(ie,Y,z,_e(w));if(!J)if(p.length>se.length){let Y=S.getSignatureFromDeclaration(p[p.length-1]);B(ie,Y,z,_e(w),$(u,ie))}else E.assert(p.length===se.length,"Declarations and signatures should match count"),c(zHe(S,i,t,se,_e(w),X&&!!(f&1),z,ie,u));break}function B(oe,Se,se,Y,ve){let xe=CX(174,i,oe,Se,ve,Y,se,X&&!!(f&1),t,o);xe&&c(xe)}function Z(){let oe;return O&&(oe=hk(oe,I.createModifiersFromModifierFlags(O))),ae()&&(oe=_n(oe,I.createToken(164))),oe&&I.createNodeArray(oe)}function ae(){return!!(i.program.getCompilerOptions().noImplicitOverride&&y&&Gv(y))}function _e(oe){return Ie(oe)&&oe.escapedText==="constructor"?I.createComputedPropertyName(I.createStringLiteral(ur(oe),ie===0)):jo(oe,!1)}function $(oe,Se,se){return se?void 0:jo(oe,!1)||r_e(Se)}function H(oe){return jo(oe,!1)}function K(oe,Se){if(lc(oe)&262144){let se=oe.links.nameType;if(se&&Sp(se))return I.createIdentifier(Ci(xp(se)))}return jo(us(Se),!1)}}function CX(e,t,n,i,s,o,c,u,f,g){let p=t.program,y=p.getTypeChecker(),S=La(p.getCompilerOptions()),x=Qn(f),C=524545|(n===0?268435456:0),w=y.signatureToSignatureDeclaration(i,e,f,C,v6(t));if(!w)return;let D=x?void 0:w.typeParameters,O=w.parameters,z=x?void 0:w.type;if(g){if(D){let ie=sl(D,B=>{let Z=B.constraint,ae=B.default;if(Z){let _e=xT(Z,S);_e&&(Z=_e.typeNode,b6(g,_e.symbols))}if(ae){let _e=xT(ae,S);_e&&(ae=_e.typeNode,b6(g,_e.symbols))}return I.updateTypeParameterDeclaration(B,B.modifiers,B.name,Z,ae)});D!==ie&&(D=nt(I.createNodeArray(ie,D.hasTrailingComma),D))}let J=sl(O,ie=>{let B=x?void 0:ie.type;if(B){let Z=xT(B,S);Z&&(B=Z.typeNode,b6(g,Z.symbols))}return I.updateParameterDeclaration(ie,ie.modifiers,ie.dotDotDotToken,ie.name,x?void 0:ie.questionToken,B,ie.initializer)});if(O!==J&&(O=nt(I.createNodeArray(J,O.hasTrailingComma),O)),z){let ie=xT(z,S);ie&&(z=ie.typeNode,b6(g,ie.symbols))}}let V=u?I.createToken(58):void 0,X=w.asteriskToken;if(uo(w))return I.updateFunctionExpression(w,c,w.asteriskToken,Ur(o,Ie),D,O,z,s??w.body);if(Co(w))return I.updateArrowFunction(w,c,D,O,z,w.equalsGreaterThanToken,s??w.body);if(kc(w))return I.updateMethodDeclaration(w,c,X,o??I.createIdentifier(""),V,D,O,z,s);if(al(w))return I.updateFunctionDeclaration(w,c,w.asteriskToken,Ur(o,Ie),D,O,z,s??w.body)}function t_e(e,t,n,i,s,o,c){let u=Df(t.sourceFile,t.preferences),f=La(t.program.getCompilerOptions()),g=v6(t),p=t.program.getTypeChecker(),y=Qn(c),{typeArguments:S,arguments:x,parent:C}=i,w=y?void 0:p.getContextualType(i),D=Kt(x,ae=>Ie(ae)?ae.text:Cr(ae)&&Ie(ae.name)?ae.name.text:void 0),O=y?[]:Kt(x,ae=>p.getTypeAtLocation(ae)),{argumentTypeNodes:z,argumentTypeParameters:V}=x4e(p,n,O,c,f,1,g),X=o?I.createNodeArray(I.createModifiersFromModifierFlags(o)):void 0,J=nO(C)?I.createToken(42):void 0,ie=y?void 0:BHe(p,V,S),B=n_e(x.length,D,z,void 0,y),Z=y||w===void 0?void 0:p.typeToTypeNode(w,c,void 0,g);switch(e){case 174:return I.createMethodDeclaration(X,J,s,void 0,ie,B,Z,r_e(u));case 173:return I.createMethodSignature(X,s,void 0,ie,B,Z===void 0?I.createKeywordTypeNode(159):Z);case 262:return E.assert(typeof s=="string"||Ie(s),"Unexpected name"),I.createFunctionDeclaration(X,J,s,ie,B,Z,SM(d.Function_not_implemented.message,u));default:E.fail("Unexpected kind")}}function BHe(e,t,n){let i=new Set(t.map(o=>o[0])),s=new Map(t);if(n){let o=n.filter(u=>!t.some(f=>{var g;return e.getTypeAtLocation(u)===((g=f[1])==null?void 0:g.argumentType)})),c=i.size+o.length;for(let u=0;i.size{var c;return I.createTypeParameterDeclaration(void 0,o,(c=s.get(o))==null?void 0:c.constraint)})}function b4e(e){return 84+e<=90?String.fromCharCode(84+e):`T${e}`}function EX(e,t,n,i,s,o,c){let u=e.typeToTypeNode(n,i,o,c);if(u&&ch(u)){let f=xT(u,s);f&&(b6(t,f.symbols),u=f.typeNode)}return jo(u)}function S4e(e){return e.isUnionOrIntersection()?e.types.some(S4e):e.flags&262144}function x4e(e,t,n,i,s,o,c){let u=[],f=new Map;for(let g=0;g=i?I.createToken(58):void 0,s?void 0:n?.[u]||I.createKeywordTypeNode(159),void 0);o.push(p)}return o}function zHe(e,t,n,i,s,o,c,u,f){let g=i[0],p=i[0].minArgumentCount,y=!1;for(let w of i)p=Math.min(w.minArgumentCount,p),Du(w)&&(y=!0),w.parameters.length>=g.parameters.length&&(!Du(w)||Du(g))&&(g=w);let S=g.parameters.length-(Du(g)?1:0),x=g.parameters.map(w=>w.name),C=n_e(S,x,void 0,p,!1);if(y){let w=I.createParameterDeclaration(void 0,I.createToken(26),x[S]||"rest",S>=p?I.createToken(58):void 0,I.createArrayTypeNode(I.createKeywordTypeNode(159)),void 0);C.push(w)}return WHe(c,s,o,void 0,C,VHe(i,e,t,n),u,f)}function VHe(e,t,n,i){if(bn(e)){let s=t.getUnionType(Kt(e,t.getReturnTypeOfSignature));return t.typeToTypeNode(s,i,1,v6(n))}}function WHe(e,t,n,i,s,o,c,u){return I.createMethodDeclaration(e,void 0,t,n?I.createToken(58):void 0,i,s,o,u||r_e(c))}function r_e(e){return SM(d.Method_not_implemented.message,e)}function SM(e,t){return I.createBlock([I.createThrowStatement(I.createNewExpression(I.createIdentifier("Error"),void 0,[I.createStringLiteral(e,t===0)]))],!0)}function i_e(e,t,n){let i=tE(t);if(!i)return;let s=a_e(i,"compilerOptions");if(s===void 0){e.insertNodeAtObjectStart(t,i,DX("compilerOptions",I.createObjectLiteralExpression(n.map(([c,u])=>DX(c,u)),!0)));return}let o=s.initializer;if(xa(o))for(let[c,u]of n){let f=a_e(o,c);f===void 0?e.insertNodeAtObjectStart(t,o,DX(c,u)):e.replaceNode(t,f.initializer,u)}}function s_e(e,t,n,i){i_e(e,t,[[n,i]])}function DX(e,t){return I.createPropertyAssignment(I.createStringLiteral(e),t)}function a_e(e,t){return xr(e.properties,n=>el(n)&&!!n.name&&ca(n.name)&&n.name.text===t)}function xT(e,t){let n,i=Ge(e,s,Ei);if(n&&i)return{typeNode:i,symbols:n};function s(o){if(K0(o)&&o.qualifier){let c=tf(o.qualifier),u=wL(c.symbol,t),f=u!==c.text?k4e(o.qualifier,I.createIdentifier(u)):o.qualifier;n=_n(n,c.symbol);let g=Dn(o.typeArguments,s,Ei);return I.createTypeReferenceNode(f,g)}return on(o,s,yd)}}function k4e(e,t){return e.kind===80?t:I.createQualifiedName(k4e(e.left,t),e.right)}function b6(e,t){t.forEach(n=>e.addImportFromExportedSymbol(n,!0))}function o_e(e,t){let n=Dc(t),i=qi(e,t.start);for(;i.end(e[e.Method=1]="Method",e[e.Property=2]="Property",e[e.All=3]="All",e))(c_e||{})}});function C4e(e,t,n,i,s,o){let c=P4e(e,t,n,i);if(!c||hT.isRefactorErrorInfo(c))return;let u=er.ChangeTracker.fromContext(s),{isStatic:f,isReadonly:g,fieldName:p,accessorName:y,originalName:S,type:x,container:C,declaration:w}=c;z_(p),z_(y),z_(w),z_(C);let D,O;if(ei(C)){let V=Ju(w);if(Bu(e)){let X=I.createModifiersFromModifierFlags(V);D=X,O=X}else D=I.createModifiersFromModifierFlags(GHe(V)),O=I.createModifiersFromModifierFlags($He(V));G2(w)&&(O=es(U0(w),O))}KHe(u,e,w,x,p,O);let z=XHe(p,y,x,D,f,C);if(z_(z),w4e(u,e,z,w,C),g){let V=yg(C);V&&eGe(u,e,V,p.text,S)}else{let V=QHe(p,y,x,D,f,C);z_(V),w4e(u,e,V,w,C)}return u.getChanges()}function qHe(e){return Ie(e)||ca(e)}function HHe(e){return F_(e,e.parent)||Is(e)||el(e)}function E4e(e,t){return Ie(t)?I.createIdentifier(e):I.createStringLiteral(e)}function D4e(e,t,n){let i=t?n.name:I.createThis();return Ie(e)?I.createPropertyAccessExpression(i,e):I.createElementAccessExpression(i,I.createStringLiteralFromNode(e))}function GHe(e){return e&=-9,e&=-3,e&4||(e|=1),e}function $He(e){return e&=-2,e&=-5,e|=2,e}function P4e(e,t,n,i,s=!0){let o=qi(e,n),c=n===i&&s,u=Fn(o.parent,HHe),f=271;if(!u||!(Y9(u.name,e,n,i)||c))return{error:ds(d.Could_not_find_property_for_which_to_generate_accessor)};if(!qHe(u.name))return{error:ds(d.Name_is_not_valid)};if((Ju(u)&98303|f)!==f)return{error:ds(d.Can_only_convert_property_with_modifier)};let g=u.name.text,p=nG(g),y=E4e(p?g:sS(`_${g}`,e),u.name),S=E4e(p?sS(g.substring(1),e):g,u.name);return{isStatic:Yc(u),isReadonly:yE(u),type:tGe(u,t),container:u.kind===169?u.parent.parent:u.parent,originalName:u.name.text,declaration:u,fieldName:y,accessorName:S,renameAccessor:p}}function XHe(e,t,n,i,s,o){return I.createGetAccessorDeclaration(i,t,[],n,I.createBlock([I.createReturnStatement(D4e(e,s,o))],!0))}function QHe(e,t,n,i,s,o){return I.createSetAccessorDeclaration(i,t,[I.createParameterDeclaration(void 0,void 0,I.createIdentifier("value"),void 0,n)],I.createBlock([I.createExpressionStatement(I.createAssignment(D4e(e,s,o),I.createIdentifier("value")))],!0))}function YHe(e,t,n,i,s,o){let c=I.updatePropertyDeclaration(n,o,s,n.questionToken||n.exclamationToken,i,n.initializer);e.replaceNode(t,n,c)}function ZHe(e,t,n,i){let s=I.updatePropertyAssignment(n,i,n.initializer);(s.modifiers||s.questionToken||s.exclamationToken)&&(s===n&&(s=I.cloneNode(s)),s.modifiers=void 0,s.questionToken=void 0,s.exclamationToken=void 0),e.replacePropertyAssignment(t,n,s)}function KHe(e,t,n,i,s,o){Is(n)?YHe(e,t,n,i,s,o):el(n)?ZHe(e,t,n,s):e.replaceNode(t,n,I.updateParameterDeclaration(n,o,n.dotDotDotToken,Vs(s,Ie),n.questionToken,n.type,n.initializer))}function w4e(e,t,n,i,s){F_(i,i.parent)?e.insertMemberAtStart(t,s,n):el(i)?e.insertNodeAfterComma(t,i,n):e.insertNodeAfter(t,i,n)}function eGe(e,t,n,i,s){n.body&&n.body.forEachChild(function o(c){ko(c)&&c.expression.kind===110&&ca(c.argumentExpression)&&c.argumentExpression.text===s&&Ax(c)&&e.replaceNode(t,c.argumentExpression,I.createStringLiteral(i)),Cr(c)&&c.expression.kind===110&&c.name.text===s&&Ax(c)&&e.replaceNode(t,c.name,I.createIdentifier(i)),!As(c)&&!ei(c)&&c.forEachChild(o)})}function tGe(e,t){let n=Mte(e);if(Is(e)&&n&&e.questionToken){let i=t.getTypeChecker(),s=i.getTypeFromTypeNode(n);if(!i.isTypeAssignableTo(i.getUndefinedType(),s)){let o=b1(n)?n.types:[n];return I.createUnionTypeNode([...o,I.createKeywordTypeNode(157)])}}return n}function l_e(e,t){let n=[];for(;e;){let i=Vv(e),s=i&&t.getSymbolAtLocation(i.expression);if(!s)break;let o=s.flags&2097152?t.getAliasedSymbol(s):s,c=o.declarations&&xr(o.declarations,ei);if(!c)break;n.push(c),e=c}return n}var nGe=ze({"src/services/codefixes/generateAccessors.ts"(){"use strict";qr()}});function rGe(e,t){let n=Mn(t),i=Yk(t),s=e.program.getCompilerOptions(),o=[];return o.push(A4e(e,n,t,o0(i.name,void 0,t.moduleSpecifier,Df(n,e.preferences)))),Ql(s)===1&&o.push(A4e(e,n,t,I.createImportEqualsDeclaration(void 0,!1,i.name,I.createExternalModuleReference(t.moduleSpecifier)))),o}function A4e(e,t,n,i){let s=er.ChangeTracker.with(e,o=>o.replaceNode(t,n,i));return Sd(u_e,s,[d.Replace_import_with_0,s[0].textChanges[0].newText])}function iGe(e){let t=e.sourceFile,n=d.This_expression_is_not_callable.code===e.errorCode?213:214,i=Fn(qi(t,e.span.start),o=>o.kind===n);if(!i)return[];let s=i.expression;return N4e(e,s)}function sGe(e){let t=e.sourceFile,n=Fn(qi(t,e.span.start),i=>i.getStart()===e.span.start&&i.getEnd()===e.span.start+e.span.length);return n?N4e(e,n):[]}function N4e(e,t){let n=e.program.getTypeChecker().getTypeAtLocation(t);if(!(n.symbol&&wm(n.symbol)&&n.symbol.links.originatingImport))return[];let i=[],s=n.symbol.links.originatingImport;if(ef(s)||Nr(i,rGe(e,s)),ut(t)&&!(Ru(t.parent)&&t.parent.name===t)){let o=e.sourceFile,c=er.ChangeTracker.with(e,u=>u.replaceNode(o,t,I.createPropertyAccessExpression(t,"default"),{}));i.push(Sd(u_e,c,d.Use_synthetic_default_member))}return i}var u_e,aGe=ze({"src/services/codefixes/fixInvalidImportSyntax.ts"(){"use strict";qr(),la(),u_e="invalidImportSyntax",ia({errorCodes:[d.This_expression_is_not_callable.code,d.This_expression_is_not_constructable.code],getCodeActions:iGe}),ia({errorCodes:[d.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,d.Type_0_does_not_satisfy_the_constraint_1.code,d.Type_0_is_not_assignable_to_type_1.code,d.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,d.Type_predicate_0_is_not_assignable_to_1.code,d.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,d._0_index_type_1_is_not_assignable_to_2_index_type_3.code,d.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,d.Property_0_in_type_1_is_not_assignable_to_type_2.code,d.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,d.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:sGe})}});function I4e(e,t){let n=qi(e,t);if(Ie(n)&&Is(n.parent)){let i=Xl(n.parent);if(i)return{type:i,prop:n.parent,isJs:Qn(n.parent)}}}function oGe(e,t){if(t.isJs)return;let n=er.ChangeTracker.with(e,i=>F4e(i,e.sourceFile,t.prop));return qs(PX,n,[d.Add_definite_assignment_assertion_to_property_0,t.prop.getText()],wX,d.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function F4e(e,t,n){z_(n);let i=I.updatePropertyDeclaration(n,n.modifiers,n.name,I.createToken(54),n.type,n.initializer);e.replaceNode(t,n,i)}function cGe(e,t){let n=er.ChangeTracker.with(e,i=>O4e(i,e.sourceFile,t));return qs(PX,n,[d.Add_undefined_type_to_property_0,t.prop.name.getText()],AX,d.Add_undefined_type_to_all_uninitialized_properties)}function O4e(e,t,n){let i=I.createKeywordTypeNode(157),s=b1(n.type)?n.type.types.concat(i):[n.type,i],o=I.createUnionTypeNode(s);n.isJs?e.addJSDocTags(t,n.prop,[I.createJSDocTypeTag(void 0,I.createJSDocTypeExpression(o))]):e.replaceNode(t,n.type,o)}function lGe(e,t){if(t.isJs)return;let n=e.program.getTypeChecker(),i=M4e(n,t.prop);if(!i)return;let s=er.ChangeTracker.with(e,o=>L4e(o,e.sourceFile,t.prop,i));return qs(PX,s,[d.Add_initializer_to_property_0,t.prop.name.getText()],NX,d.Add_initializers_to_all_uninitialized_properties)}function L4e(e,t,n,i){z_(n);let s=I.updatePropertyDeclaration(n,n.modifiers,n.name,n.questionToken,n.type,i);e.replaceNode(t,n,s)}function M4e(e,t){return R4e(e,e.getTypeFromTypeNode(t.type))}function R4e(e,t){if(t.flags&512)return t===e.getFalseType()||t===e.getFalseType(!0)?I.createFalse():I.createTrue();if(t.isStringLiteral())return I.createStringLiteral(t.value);if(t.isNumberLiteral())return I.createNumericLiteral(t.value);if(t.flags&2048)return I.createBigIntLiteral(t.value);if(t.isUnion())return ba(t.types,n=>R4e(e,n));if(t.isClass()){let n=ah(t.symbol);if(!n||Mr(n,64))return;let i=yg(n);return i&&i.parameters.length?void 0:I.createNewExpression(I.createIdentifier(t.symbol.name),void 0,void 0)}else if(e.isArrayLikeType(t))return I.createArrayLiteralExpression()}var PX,wX,AX,NX,__e,uGe=ze({"src/services/codefixes/fixStrictClassInitialization.ts"(){"use strict";qr(),la(),PX="strictClassInitialization",wX="addMissingPropertyDefiniteAssignmentAssertions",AX="addMissingPropertyUndefinedType",NX="addMissingPropertyInitializer",__e=[d.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],ia({errorCodes:__e,getCodeActions:function(t){let n=I4e(t.sourceFile,t.span.start);if(!n)return;let i=[];return _n(i,cGe(t,n)),_n(i,oGe(t,n)),_n(i,lGe(t,n)),i},fixIds:[wX,AX,NX],getAllCodeActions:e=>no(e,__e,(t,n)=>{let i=I4e(n.file,n.start);if(i)switch(e.fixId){case wX:F4e(t,n.file,i.prop);break;case AX:O4e(t,n.file,i);break;case NX:let s=e.program.getTypeChecker(),o=M4e(s,i.prop);if(!o)return;L4e(t,n.file,i.prop,o);break;default:E.fail(JSON.stringify(e.fixId))}})})}});function j4e(e,t,n){let{allowSyntheticDefaults:i,defaultImportName:s,namedImports:o,statement:c,required:u}=n;e.replaceNode(t,c,s&&!i?I.createImportEqualsDeclaration(void 0,!1,s,I.createExternalModuleReference(u)):I.createImportDeclaration(void 0,I.createImportClause(!1,s,o),u,void 0))}function B4e(e,t,n){let{parent:i}=qi(e,n);T_(i,!0)||E.failBadSyntaxKind(i);let s=Vs(i.parent,Ni),o=Ur(s.name,Ie),c=Gp(s.name)?_Ge(s.name):void 0;if(o||c)return{allowSyntheticDefaults:Fx(t.getCompilerOptions()),defaultImportName:o,namedImports:c,statement:Vs(s.parent.parent,uc),required:Da(i.arguments)}}function _Ge(e){let t=[];for(let n of e.elements){if(!Ie(n.name)||n.initializer)return;t.push(I.createImportSpecifier(!1,Ur(n.propertyName,Ie),n.name))}if(t.length)return I.createNamedImports(t)}var IX,f_e,fGe=ze({"src/services/codefixes/requireInTs.ts"(){"use strict";qr(),la(),IX="requireInTs",f_e=[d.require_call_may_be_converted_to_an_import.code],ia({errorCodes:f_e,getCodeActions(e){let t=B4e(e.sourceFile,e.program,e.span.start);if(!t)return;let n=er.ChangeTracker.with(e,i=>j4e(i,e.sourceFile,t));return[qs(IX,n,d.Convert_require_to_import,IX,d.Convert_all_require_to_import)]},fixIds:[IX],getAllCodeActions:e=>no(e,f_e,(t,n)=>{let i=B4e(n.file,e.program,n.start);i&&j4e(t,e.sourceFile,i)})})}});function J4e(e,t){let n=qi(e,t);if(!Ie(n))return;let{parent:i}=n;if(Kl(i)&&Bm(i.moduleReference))return{importNode:i,name:n,moduleSpecifier:i.moduleReference.expression};if(ly(i)){let s=i.parent.parent;return{importNode:s,name:n,moduleSpecifier:s.moduleSpecifier}}}function z4e(e,t,n,i){e.replaceNode(t,n.importNode,o0(n.name,void 0,n.moduleSpecifier,Df(t,i)))}var FX,p_e,pGe=ze({"src/services/codefixes/useDefaultImport.ts"(){"use strict";qr(),la(),FX="useDefaultImport",p_e=[d.Import_may_be_converted_to_a_default_import.code],ia({errorCodes:p_e,getCodeActions(e){let{sourceFile:t,span:{start:n}}=e,i=J4e(t,n);if(!i)return;let s=er.ChangeTracker.with(e,o=>z4e(o,t,i,e.preferences));return[qs(FX,s,d.Convert_to_default_import,FX,d.Convert_all_to_default_imports)]},fixIds:[FX],getAllCodeActions:e=>no(e,p_e,(t,n)=>{let i=J4e(n.file,n.start);i&&z4e(t,n.file,i,e.preferences)})})}});function V4e(e,t,n){let i=Ur(qi(t,n.start),R_);if(!i)return;let s=i.getText(t)+"n";e.replaceNode(t,i,I.createBigIntLiteral(s))}var OX,d_e,dGe=ze({"src/services/codefixes/useBigintLiteral.ts"(){"use strict";qr(),la(),OX="useBigintLiteral",d_e=[d.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],ia({errorCodes:d_e,getCodeActions:function(t){let n=er.ChangeTracker.with(t,i=>V4e(i,t.sourceFile,t.span));if(n.length>0)return[qs(OX,n,d.Convert_to_a_bigint_numeric_literal,OX,d.Convert_all_to_bigint_numeric_literals)]},fixIds:[OX],getAllCodeActions:e=>no(e,d_e,(t,n)=>V4e(t,n.file,n))})}});function W4e(e,t){let n=qi(e,t);return E.assert(n.kind===102,"This token should be an ImportKeyword"),E.assert(n.parent.kind===205,"Token parent should be an ImportType"),n.parent}function U4e(e,t,n){let i=I.updateImportTypeNode(n,n.argument,n.attributes,n.qualifier,n.typeArguments,!0);e.replaceNode(t,n,i)}var q4e,LX,m_e,mGe=ze({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){"use strict";qr(),la(),q4e="fixAddModuleReferTypeMissingTypeof",LX=q4e,m_e=[d.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],ia({errorCodes:m_e,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=W4e(n,i.start),o=er.ChangeTracker.with(t,c=>U4e(c,n,s));return[qs(LX,o,d.Add_missing_typeof,LX,d.Add_missing_typeof)]},fixIds:[LX],getAllCodeActions:e=>no(e,m_e,(t,n)=>U4e(t,e.sourceFile,W4e(n.file,n.start)))})}});function H4e(e,t){let s=qi(e,t).parent.parent;if(!(!Yn(s)&&(s=s.parent,!Yn(s)))&&dc(s.operatorToken))return s}function G4e(e,t,n){let i=gGe(n);i&&e.replaceNode(t,n,I.createJsxFragment(I.createJsxOpeningFragment(),i,I.createJsxJsxClosingFragment()))}function gGe(e){let t=[],n=e;for(;;)if(Yn(n)&&dc(n.operatorToken)&&n.operatorToken.kind===28){if(t.push(n.left),UP(n.right))return t.push(n.right),t;if(Yn(n.right)){n=n.right;continue}else return}else return}var MX,g_e,hGe=ze({"src/services/codefixes/wrapJsxInFragment.ts"(){"use strict";qr(),la(),MX="wrapJsxInFragment",g_e=[d.JSX_expressions_must_have_one_parent_element.code],ia({errorCodes:g_e,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=H4e(n,i.start);if(!s)return;let o=er.ChangeTracker.with(t,c=>G4e(c,n,s));return[qs(MX,o,d.Wrap_in_JSX_fragment,MX,d.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[MX],getAllCodeActions:e=>no(e,g_e,(t,n)=>{let i=H4e(e.sourceFile,n.start);i&&G4e(t,e.sourceFile,i)})})}});function $4e(e,t){let n=qi(e,t),i=Ur(n.parent.parent,R2);if(!i)return;let s=Wu(i.parent)?i.parent:Ur(i.parent.parent,Xp);if(s)return{indexSignature:i,container:s}}function yGe(e,t){return I.createTypeAliasDeclaration(e.modifiers,e.name,e.typeParameters,t)}function X4e(e,t,{indexSignature:n,container:i}){let o=(Wu(i)?i.members:i.type.members).filter(p=>!R2(p)),c=Da(n.parameters),u=I.createTypeParameterDeclaration(void 0,Vs(c.name,Ie),c.type),f=I.createMappedTypeNode(yE(n)?I.createModifier(148):void 0,u,void 0,n.questionToken,n.type,void 0),g=I.createIntersectionTypeNode([...lE(i),f,...o.length?[I.createTypeLiteralNode(o)]:Ve]);e.replaceNode(t,i,yGe(i,g))}var RX,h_e,vGe=ze({"src/services/codefixes/convertToMappedObjectType.ts"(){"use strict";qr(),la(),RX="fixConvertToMappedObjectType",h_e=[d.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],ia({errorCodes:h_e,getCodeActions:function(t){let{sourceFile:n,span:i}=t,s=$4e(n,i.start);if(!s)return;let o=er.ChangeTracker.with(t,u=>X4e(u,n,s)),c=ur(s.container.name);return[qs(RX,o,[d.Convert_0_to_mapped_object_type,c],RX,[d.Convert_0_to_mapped_object_type,c])]},fixIds:[RX],getAllCodeActions:e=>no(e,h_e,(t,n)=>{let i=$4e(n.file,n.start);i&&X4e(t,n.file,i)})})}}),y_e,Q4e,bGe=ze({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){"use strict";qr(),la(),y_e="removeAccidentalCallParentheses",Q4e=[d.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],ia({errorCodes:Q4e,getCodeActions(e){let t=Fn(qi(e.sourceFile,e.span.start),Ws);if(!t)return;let n=er.ChangeTracker.with(e,i=>{i.deleteRange(e.sourceFile,{pos:t.expression.end,end:t.end})});return[Sd(y_e,n,d.Remove_parentheses)]},fixIds:[y_e]})}});function Y4e(e,t,n){let i=Ur(qi(t,n.start),u=>u.kind===135),s=i&&Ur(i.parent,cy);if(!s)return;let o=s;if(C_(s.parent)){let u=uC(s.expression,!1);if(Ie(u)){let f=ol(s.parent.pos,t);f&&f.kind!==105&&(o=s.parent)}}e.replaceNode(t,o,s.expression)}var jX,v_e,SGe=ze({"src/services/codefixes/removeUnnecessaryAwait.ts"(){"use strict";qr(),la(),jX="removeUnnecessaryAwait",v_e=[d.await_has_no_effect_on_the_type_of_this_expression.code],ia({errorCodes:v_e,getCodeActions:function(t){let n=er.ChangeTracker.with(t,i=>Y4e(i,t.sourceFile,t.span));if(n.length>0)return[qs(jX,n,d.Remove_unnecessary_await,jX,d.Remove_all_unnecessary_uses_of_await)]},fixIds:[jX],getAllCodeActions:e=>no(e,v_e,(t,n)=>Y4e(t,n.file,n))})}});function Z4e(e,t){return Fn(qi(e,t.start),kl)}function K4e(e,t,n){if(!t)return;let i=E.checkDefined(t.importClause);e.replaceNode(n.sourceFile,t,I.updateImportDeclaration(t,t.modifiers,I.updateImportClause(i,i.isTypeOnly,i.name,void 0),t.moduleSpecifier,t.attributes)),e.insertNodeAfter(n.sourceFile,t,I.createImportDeclaration(void 0,I.updateImportClause(i,i.isTypeOnly,void 0,i.namedBindings),t.moduleSpecifier,t.attributes))}var b_e,BX,xGe=ze({"src/services/codefixes/splitTypeOnlyImport.ts"(){"use strict";qr(),la(),b_e=[d.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],BX="splitTypeOnlyImport",ia({errorCodes:b_e,fixIds:[BX],getCodeActions:function(t){let n=er.ChangeTracker.with(t,i=>K4e(i,Z4e(t.sourceFile,t.span),t));if(n.length)return[qs(BX,n,d.Split_into_two_separate_import_declarations,BX,d.Split_all_invalid_type_only_imports)]},getAllCodeActions:e=>no(e,b_e,(t,n)=>{K4e(t,Z4e(e.sourceFile,n),e)})})}});function eEe(e,t,n){var i;let o=n.getTypeChecker().getSymbolAtLocation(qi(e,t));if(o===void 0)return;let c=Ur((i=o?.valueDeclaration)==null?void 0:i.parent,Tl);if(c===void 0)return;let u=Ya(c,87,e);if(u!==void 0)return{symbol:o,token:u}}function tEe(e,t,n){e.replaceNode(t,n,I.createToken(121))}var JX,S_e,TGe=ze({"src/services/codefixes/convertConstToLet.ts"(){"use strict";qr(),la(),JX="fixConvertConstToLet",S_e=[d.Cannot_assign_to_0_because_it_is_a_constant.code],ia({errorCodes:S_e,getCodeActions:function(t){let{sourceFile:n,span:i,program:s}=t,o=eEe(n,i.start,s);if(o===void 0)return;let c=er.ChangeTracker.with(t,u=>tEe(u,n,o.token));return[Sle(JX,c,d.Convert_const_to_let,JX,d.Convert_all_const_to_let)]},getAllCodeActions:e=>{let{program:t}=e,n=new Map;return g6(er.ChangeTracker.with(e,i=>{h6(e,S_e,s=>{let o=eEe(s.file,s.start,t);if(o&&Hp(n,ta(o.symbol)))return tEe(i,s.file,o.token)})}))},fixIds:[JX]})}});function nEe(e,t,n){let i=qi(e,t);return i.kind===27&&i.parent&&(xa(i.parent)||Vu(i.parent))?{node:i}:void 0}function rEe(e,t,{node:n}){let i=I.createToken(28);e.replaceNode(t,n,i)}var zX,iEe,x_e,kGe=ze({"src/services/codefixes/fixExpectedComma.ts"(){"use strict";qr(),la(),zX="fixExpectedComma",iEe=d._0_expected.code,x_e=[iEe],ia({errorCodes:x_e,getCodeActions(e){let{sourceFile:t}=e,n=nEe(t,e.span.start,e.errorCode);if(!n)return;let i=er.ChangeTracker.with(e,s=>rEe(s,t,n));return[qs(zX,i,[d.Change_0_to_1,";",","],zX,[d.Change_0_to_1,";",","])]},fixIds:[zX],getAllCodeActions:e=>no(e,x_e,(t,n)=>{let i=nEe(n.file,n.start,n.code);i&&rEe(t,e.sourceFile,i)})})}});function sEe(e,t,n,i,s){let o=qi(t,n.start);if(!Ie(o)||!Ws(o.parent)||o.parent.expression!==o||o.parent.arguments.length!==0)return;let c=i.getTypeChecker(),u=c.getSymbolAtLocation(o),f=u?.valueDeclaration;if(!f||!ms(f)||!Kv(f.parent.parent)||s?.has(f))return;s?.add(f);let g=CGe(f.parent.parent);if(ft(g)){let p=g[0],y=!b1(p)&&!Hx(p)&&Hx(I.createUnionTypeNode([p,I.createKeywordTypeNode(116)]).types[0]);y&&e.insertText(t,p.pos,"("),e.insertText(t,p.end,y?") | void":" | void")}else{let p=c.getResolvedSignature(o.parent),y=p?.parameters[0],S=y&&c.getTypeOfSymbolAtLocation(y,f.parent.parent);Qn(f)?(!S||S.flags&3)&&(e.insertText(t,f.parent.parent.end,")"),e.insertText(t,ma(t.text,f.parent.parent.pos),"/** @type {Promise} */(")):(!S||S.flags&2)&&e.insertText(t,f.parent.parent.expression.end,"")}}function CGe(e){var t;if(Qn(e)){if(C_(e.parent)){let n=(t=a1(e.parent))==null?void 0:t.typeExpression.type;if(n&&Tp(n)&&Ie(n.typeName)&&ur(n.typeName)==="Promise")return n.typeArguments}}else return e.typeArguments}var aEe,T_e,k_e,EGe=ze({"src/services/codefixes/fixAddVoidToPromise.ts"(){"use strict";qr(),la(),aEe="addVoidToPromise",T_e="addVoidToPromise",k_e=[d.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,d.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],ia({errorCodes:k_e,fixIds:[T_e],getCodeActions(e){let t=er.ChangeTracker.with(e,n=>sEe(n,e.sourceFile,e.span,e.program));if(t.length>0)return[qs(aEe,t,d.Add_void_to_Promise_resolved_without_a_value,T_e,d.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(e){return no(e,k_e,(t,n)=>sEe(t,n.file,n,e.program,new Set))}})}}),fu={};Jn(fu,{PreserveOptionalFlags:()=>c_e,addNewNodeForMemberSymbol:()=>v4e,codeFixAll:()=>no,createCodeFixAction:()=>qs,createCodeFixActionMaybeFixAll:()=>Sle,createCodeFixActionWithoutFixAll:()=>Sd,createCombinedCodeActions:()=>g6,createFileTextChanges:()=>kke,createImportAdder:()=>bT,createImportSpecifierResolver:()=>JUe,createJsonPropertyAssignment:()=>DX,createMissingMemberNodes:()=>e_e,createSignatureDeclarationFromCallExpression:()=>t_e,createSignatureDeclarationFromSignature:()=>CX,createStubbedBody:()=>SM,eachDiagnostic:()=>h6,findAncestorMatchingSpan:()=>o_e,findJsonProperty:()=>a_e,generateAccessorFromProperty:()=>C4e,getAccessorConvertiblePropertyAtPosition:()=>P4e,getAllFixes:()=>gWe,getAllSupers:()=>l_e,getArgumentTypesAndTypeParameters:()=>x4e,getFixes:()=>mWe,getImportCompletionAction:()=>zUe,getImportKind:()=>Qle,getJSDocTypedefNodes:()=>LUe,getNoopSymbolTrackerWithResolver:()=>v6,getPromoteTypeOnlyCompletionAction:()=>VUe,getSupportedErrorCodes:()=>pWe,importFixName:()=>rue,importSymbols:()=>b6,moduleSpecifierToValidIdentifier:()=>nue,moduleSymbolToValidIdentifier:()=>tue,parameterShouldGetTypeFromJSDoc:()=>Uke,registerCodeFix:()=>ia,setJsonCompilerOptionValue:()=>s_e,setJsonCompilerOptionValues:()=>i_e,tryGetAutoImportableReferenceFromTypeNode:()=>xT,typeToAutoImportableTypeNode:()=>EX});var la=ze({"src/services/_namespaces/ts.codefix.ts"(){"use strict";hWe(),yWe(),vWe(),xWe(),DWe(),NWe(),IWe(),FWe(),OWe(),jWe(),$We(),QWe(),oUe(),CUe(),EUe(),PUe(),wUe(),MUe(),RUe(),BUe(),cqe(),_qe(),dqe(),mqe(),gqe(),vqe(),xqe(),Cqe(),Aqe(),Jqe(),Vqe(),Wqe(),qqe(),Hqe(),Gqe(),$qe(),Qqe(),Yqe(),Zqe(),Kqe(),eHe(),nHe(),sHe(),lHe(),yHe(),bHe(),SHe(),kHe(),CHe(),DHe(),PHe(),MHe(),RHe(),jHe(),UHe(),nGe(),aGe(),uGe(),fGe(),pGe(),dGe(),mGe(),hGe(),vGe(),bGe(),SGe(),xGe(),TGe(),kGe(),EGe()}});function DGe(e){return!!(e.kind&1)}function PGe(e){return!!(e.kind&2)}function xM(e){return!!(e&&e.kind&4)}function tD(e){return!!(e&&e.kind===32)}function wGe(e){return xM(e)||tD(e)||C_e(e)}function AGe(e){return(xM(e)||tD(e))&&!!e.isFromPackageJson}function NGe(e){return!!(e.kind&8)}function IGe(e){return!!(e.kind&16)}function oEe(e){return!!(e&&e.kind&64)}function cEe(e){return!!(e&&e.kind&128)}function FGe(e){return!!(e&&e.kind&256)}function C_e(e){return!!(e&&e.kind&512)}function lEe(e,t,n,i,s,o,c,u,f){var g,p,y;let S=So(),x=c||Ox(Yl(i.getCompilerOptions())),C=!1,w=0,D=0,O=0,z=0,V=f({tryResolve:J,skippedAny:()=>C,resolvedAny:()=>D>0,resolvedBeyondLimit:()=>D>YX}),X=z?` (${(O/z*100).toFixed(1)}% hit rate)`:"";return(g=t.log)==null||g.call(t,`${e}: resolved ${D} module specifiers, plus ${w} ambient and ${O} from cache${X}`),(p=t.log)==null||p.call(t,`${e}: response is ${C?"incomplete":"complete"}`),(y=t.log)==null||y.call(t,`${e}: ${So()-S}`),V;function J(ie,B){if(B){let $=n.getModuleSpecifierForBestExportInfo(ie,s,u);return $&&w++,$||"failed"}let Z=x||o.allowIncompleteCompletions&&D{let C=Ri(f.entries,w=>{var D;if(!w.hasAction||!w.source||!w.data||uEe(w.data))return w;if(!LEe(w.name,p))return;let{origin:O}=E.checkDefined(xEe(w.name,w.data,i,s)),z=y.get(t.path,w.data.exportMapKey),V=z&&x.tryResolve(z,!Al(hp(O.moduleSymbol.name)));if(V==="skipped")return w;if(!V||V==="failed"){(D=s.log)==null||D.call(s,`Unexpected failure resolving auto import for '${w.name}' from '${w.source}'`);return}let X={...O,kind:32,moduleSpecifier:V.moduleSpecifier};return w.data=yEe(X),w.source=P_e(X),w.sourceDisplay=[Pf(X.moduleSpecifier)],w});return x.skippedAny()||(f.isIncomplete=void 0),C});return f.entries=S,f.flags=(f.flags||0)|4,f.optionalReplacementSpan=dEe(g),f}function E_e(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:e}}function _Ee(e,t,n,i,s,o){let c=qi(e,t);if(!Mk(c)&&!Qp(c))return[];let u=Qp(c)?c:c.parent;if(!Qp(u))return[];let f=u.parent;if(!As(f))return[];let g=Bu(e),p=s.includeCompletionsWithSnippetText||void 0,y=Lh(u.tags,S=>gd(S)&&S.getEnd()<=t);return Ri(f.parameters,S=>{if(!Pk(S).length){if(Ie(S.name)){let x={tabstop:1},C=S.name.text,w=hN(C,S.initializer,S.dotDotDotToken,g,!1,!1,n,i,s),D=p?hN(C,S.initializer,S.dotDotDotToken,g,!1,!0,n,i,s,x):void 0;return o&&(w=w.slice(1),D&&(D=D.slice(1))),{name:w,kind:"parameter",sortText:pu.LocationPriority,insertText:p?D:void 0,isSnippet:p}}else if(S.parent.parameters.indexOf(S)===y){let x=`param${y}`,C=fEe(x,S.name,S.initializer,S.dotDotDotToken,g,!1,n,i,s),w=p?fEe(x,S.name,S.initializer,S.dotDotDotToken,g,!0,n,i,s):void 0,D=C.join(Yh(i)+"* "),O=w?.join(Yh(i)+"* ");return o&&(D=D.slice(1),O&&(O=O.slice(1))),{name:D,kind:"parameter",sortText:pu.LocationPriority,insertText:p?O:void 0,isSnippet:p}}}})}function fEe(e,t,n,i,s,o,c,u,f){if(!s)return[hN(e,n,i,s,!1,o,c,u,f,{tabstop:1})];return g(e,t,n,i,{tabstop:1});function g(y,S,x,C,w){if(Gp(S)&&!C){let O={tabstop:w.tabstop},z=hN(y,x,C,s,!0,o,c,u,f,O),V=[];for(let X of S.elements){let J=p(y,X,O);if(J)V.push(...J);else{V=void 0;break}}if(V)return w.tabstop=O.tabstop,[z,...V]}return[hN(y,x,C,s,!1,o,c,u,f,w)]}function p(y,S,x){if(!S.propertyName&&Ie(S.name)||Ie(S.name)){let C=S.propertyName?K4(S.propertyName):S.name.text;if(!C)return;let w=`${y}.${C}`;return[hN(w,S.initializer,S.dotDotDotToken,s,!1,o,c,u,f,x)]}else if(S.propertyName){let C=K4(S.propertyName);return C&&g(`${y}.${C}`,S.name,S.initializer,S.dotDotDotToken,x)}}}function hN(e,t,n,i,s,o,c,u,f,g){if(o&&E.assertIsDefined(g),t&&(e=MGe(e,t)),o&&(e=Zv(e)),i){let p="*";if(s)E.assert(!n,"Cannot annotate a rest parameter with type 'Object'."),p="Object";else{if(t){let x=c.getTypeAtLocation(t.parent);if(!(x.flags&16385)){let C=t.getSourceFile(),D=Df(C,f)===0?268435456:0,O=c.typeToTypeNode(x,Fn(t,As),D);if(O){let z=o?UX({removeComments:!0,module:u.module,target:u.target}):N1({removeComments:!0,module:u.module,target:u.target});$n(O,1),p=z.printNode(4,O,C)}}}o&&p==="*"&&(p=`\${${g.tabstop++}:${p}}`)}let y=!s&&n?"...":"",S=o?`\${${g.tabstop++}}`:"";return`@param {${y}${p}} ${e} ${S}`}else{let p=o?`\${${g.tabstop++}}`:"";return`@param ${e} ${p}`}}function MGe(e,t){let n=t.getText().trim();return n.includes(` -`)||n.length>80?`[${e}]`:`[${e}=${n}]`}function RGe(e){return{name:Zs(e),kind:"keyword",kindModifiers:"",sortText:pu.GlobalsOrKeywords}}function jGe(e,t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t,entries:e.slice()}}function pEe(e,t,n){return{kind:4,keywordCompletions:TEe(e,t),isNewIdentifierLocation:n}}function BGe(e){switch(e){case 156:return 8;default:E.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function dEe(e){return e?.kind===80?g_(e):void 0}function JGe(e,t,n,i,s,o,c,u,f,g){let{symbols:p,contextToken:y,completionKind:S,isInSnippetScope:x,isNewIdentifierLocation:C,location:w,propertyAccessToConvert:D,keywordFilters:O,symbolToOriginInfoMap:z,recommendedCompletion:V,isJsxInitializer:X,isTypeOnlyLocation:J,isJsxIdentifierExpected:ie,isRightOfOpenTag:B,isRightOfDotOrQuestionDot:Z,importStatementCompletion:ae,insideJsDocTagTypeExpression:_e,symbolToSortTextMap:$,hasUnresolvedAutoImports:H}=o,K=o.literals,oe=n.getTypeChecker();if(zw(e.scriptKind)===1){let Me=VGe(w,e);if(Me)return Me}let Se=Fn(y,PC);if(Se&&(yre(y)||zv(y,Se.expression))){let Me=FL(oe,Se.parent.clauses);K=K.filter(ke=>!Me.hasValue(ke)),p.forEach((ke,he)=>{if(ke.valueDeclaration&&sb(ke.valueDeclaration)){let be=oe.getConstantValue(ke.valueDeclaration);be!==void 0&&Me.hasValue(be)&&(z[he]={kind:256})}})}let se=Dj(),Y=mEe(e,i);if(Y&&!C&&(!p||p.length===0)&&O===0)return;let ve=w_e(p,se,void 0,y,w,f,e,t,n,La(i),s,S,c,i,u,J,D,ie,X,ae,V,z,$,ie,B,g);if(O!==0)for(let Me of TEe(O,!_e&&Bu(e)))(J&&B3(Ev(Me.name))||!J&&T$e(Me.name)||!ve.has(Me.name))&&(ve.add(Me.name),j0(se,Me,TM,!0));for(let Me of u$e(y,f))ve.has(Me.name)||(ve.add(Me.name),j0(se,Me,TM,!0));for(let Me of K){let ke=UGe(e,c,Me);ve.add(ke.name),j0(se,ke,TM,!0)}Y||WGe(e,w.pos,ve,La(i),se);let xe;if(c.includeCompletionsWithInsertText&&y&&!B&&!Z&&(xe=Fn(y,t3))){let Me=gEe(xe,e,c,i,t,n,u);Me&&se.push(Me.entry)}return{flags:o.flags,isGlobalCompletion:x,isIncomplete:c.allowIncompleteCompletions&&H?!0:void 0,isMemberCompletion:zGe(S),isNewIdentifierLocation:C,optionalReplacementSpan:dEe(w),entries:se}}function mEe(e,t){return!Bu(e)||!!$w(e,t)}function gEe(e,t,n,i,s,o,c){let u=e.clauses,f=o.getTypeChecker(),g=f.getTypeAtLocation(e.parent.expression);if(g&&g.isUnion()&&hi(g.types,p=>p.isLiteral())){let p=FL(f,u),y=La(i),S=Df(t,n),x=fu.createImportAdder(t,o,n,s),C=[];for(let J of g.types)if(J.flags&1024){E.assert(J.symbol,"An enum member type should have a symbol"),E.assert(J.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");let ie=J.symbol.valueDeclaration&&f.getConstantValue(J.symbol.valueDeclaration);if(ie!==void 0){if(p.hasValue(ie))continue;p.addValue(ie)}let B=fu.typeToAutoImportableTypeNode(f,x,J,e,y);if(!B)return;let Z=VX(B,y,S);if(!Z)return;C.push(Z)}else if(!p.hasValue(J.value))switch(typeof J.value){case"object":C.push(J.value.negative?I.createPrefixUnaryExpression(41,I.createBigIntLiteral({negative:!1,base10Value:J.value.base10Value})):I.createBigIntLiteral(J.value));break;case"number":C.push(J.value<0?I.createPrefixUnaryExpression(41,I.createNumericLiteral(-J.value)):I.createNumericLiteral(J.value));break;case"string":C.push(I.createStringLiteral(J.value,S===0));break}if(C.length===0)return;let w=Kt(C,J=>I.createCaseClause(J,[])),D=c0(s,c?.options),O=UX({removeComments:!0,module:i.module,target:i.target,newLine:UA(D)}),z=c?J=>O.printAndFormatNode(4,J,t,c):J=>O.printNode(4,J,t),V=Kt(w,(J,ie)=>n.includeCompletionsWithSnippetText?`${z(J)}$${ie+1}`:`${z(J)}`).join(D);return{entry:{name:`${O.printNode(4,w[0],t)} ...`,kind:"",sortText:pu.GlobalsOrKeywords,insertText:V,hasAction:x.hasFixes()||void 0,source:"SwitchCases/",isSnippet:n.includeCompletionsWithSnippetText?!0:void 0},importAdder:x}}}function VX(e,t,n){switch(e.kind){case 183:let i=e.typeName;return WX(i,t,n);case 199:let s=VX(e.objectType,t,n),o=VX(e.indexType,t,n);return s&&o&&I.createElementAccessExpression(s,o);case 201:let c=e.literal;switch(c.kind){case 11:return I.createStringLiteral(c.text,n===0);case 9:return I.createNumericLiteral(c.text,c.numericLiteralFlags)}return;case 196:let u=VX(e.type,t,n);return u&&(Ie(u)?u:I.createParenthesizedExpression(u));case 186:return WX(e.exprName,t,n);case 205:E.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function WX(e,t,n){if(Ie(e))return e;let i=Ci(e.right.escapedText);return _V(i,t)?I.createPropertyAccessExpression(WX(e.left,t,n),i):I.createElementAccessExpression(WX(e.left,t,n),I.createStringLiteral(i,n===0))}function zGe(e){switch(e){case 0:case 3:case 2:return!0;default:return!1}}function VGe(e,t){let n=Fn(e,i=>{switch(i.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(n){let i=!!Ya(n,32,t),c=n.parent.openingElement.tagName.getText(t)+(i?"":">"),u=g_(n.tagName),f={name:c,kind:"class",kindModifiers:void 0,sortText:pu.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:u,entries:[f]}}}function WGe(e,t,n,i,s){a$(e).forEach((o,c)=>{if(o===t)return;let u=Ci(c);!n.has(u)&&hf(u,i)&&(n.add(u),j0(s,{name:u,kind:"warning",kindModifiers:"",sortText:pu.JavascriptIdentifiers,isFromUncheckedFile:!0},TM))})}function D_e(e,t,n){return typeof n=="object"?Qv(n)+"n":os(n)?q3(e,t,n):JSON.stringify(n)}function UGe(e,t,n){return{name:D_e(e,t,n),kind:"string",kindModifiers:"",sortText:pu.LocationPriority}}function qGe(e,t,n,i,s,o,c,u,f,g,p,y,S,x,C,w,D,O,z,V,X,J,ie,B){var Z,ae;let _e,$,H=PH(n),K,oe,Se=P_e(y),se,Y,ve,xe=f.getTypeChecker(),Me=y&&IGe(y),ke=y&&PGe(y)||p;if(y&&DGe(y))_e=p?`this${Me?"?.":""}[${vEe(c,z,g)}]`:`this${Me?"?.":"."}${g}`;else if((ke||Me)&&x){_e=ke?p?`[${vEe(c,z,g)}]`:`[${g}]`:g,(Me||x.questionDotToken)&&(_e=`?.${_e}`);let be=Ya(x,25,c)||Ya(x,29,c);if(!be)return;let _t=ts(g,x.name.text)?x.name.end:be.end;H=Xc(be.getStart(c),_t)}if(C&&(_e===void 0&&(_e=g),_e=`{${_e}}`,typeof C!="boolean"&&(H=g_(C,c))),y&&NGe(y)&&x){_e===void 0&&(_e=g);let be=ol(x.pos,c),_t="";be&&TL(be.end,be.parent,c)&&(_t=";"),_t+=`(await ${x.expression.getText()})`,_e=p?`${_t}${_e}`:`${_t}${Me?"?.":"."}${_e}`;let me=Ur(x.parent,cy)?x.parent:x.expression;H=Xc(me.getStart(c),x.end)}if(tD(y)&&(se=[Pf(y.moduleSpecifier)],w&&({insertText:_e,replacementSpan:H}=ZGe(g,w,y,D,c,O,z),oe=z.includeCompletionsWithSnippetText?!0:void 0)),y?.kind===64&&(Y=!0),V===0&&i&&((Z=ol(i.pos,c,i))==null?void 0:Z.kind)!==28&&(kc(i.parent.parent)||Sf(i.parent.parent)||j_(i.parent.parent)||n0(i.parent)||((ae=Fn(i.parent,el))==null?void 0:ae.getLastToken(c))===i||sf(i.parent)&&Ka(c,i.getEnd()).line!==Ka(c,o).line)&&(Se="ObjectLiteralMemberWithComma/",Y=!0),z.includeCompletionsWithClassMemberSnippets&&z.includeCompletionsWithInsertText&&V===3&&HGe(e,s,c)){let be,_t=hEe(u,f,O,z,g,e,s,o,i,X);if(_t)({insertText:_e,filterText:$,isSnippet:oe,importAdder:be}=_t),be?.hasFixes()&&(Y=!0,Se="ClassMemberSnippet/");else return}if(y&&cEe(y)&&({insertText:_e,isSnippet:oe,labelDetails:ve}=y,z.useLabelDetailsInCompletionEntries||(g=g+ve.detail,ve=void 0),Se="ObjectLiteralMethodSnippet/",t=pu.SortBelow(t)),J&&!ie&&z.includeCompletionsWithSnippetText&&z.jsxAttributeCompletionStyle&&z.jsxAttributeCompletionStyle!=="none"&&!($d(s.parent)&&s.parent.initializer)){let be=z.jsxAttributeCompletionStyle==="braces",_t=xe.getTypeOfSymbolAtLocation(e,s);z.jsxAttributeCompletionStyle==="auto"&&!(_t.flags&528)&&!(_t.flags&1048576&&xr(_t.types,mt=>!!(mt.flags&528)))&&(_t.flags&402653316||_t.flags&1048576&&hi(_t.types,mt=>!!(mt.flags&402686084||boe(mt)))?(_e=`${Zv(g)}=${q3(c,z,"$1")}`,oe=!0):be=!0),be&&(_e=`${Zv(g)}={$1}`,oe=!0)}if(_e!==void 0&&!z.includeCompletionsWithInsertText)return;(xM(y)||tD(y))&&(K=yEe(y),Y=!w);let he=Fn(s,J5);if(he?.kind===275){let be=Ev(g);he&&be&&(be===135||bz(be))&&(_e=`${g} as ${g}_`)}return{name:g,kind:_0.getSymbolKind(xe,e,s),kindModifiers:_0.getSymbolModifiers(xe,e),sortText:t,source:Se,hasAction:Y?!0:void 0,isRecommended:KGe(e,S,xe)||void 0,insertText:_e,filterText:$,replacementSpan:H,sourceDisplay:se,labelDetails:ve,isSnippet:oe,isPackageJsonImport:AGe(y)||void 0,isImportStatementCompletion:!!w||void 0,data:K,...B?{symbol:e}:void 0}}function HGe(e,t,n){if(Qn(t))return!1;let i=106500;return!!(e.flags&i)&&(ei(t)||t.parent&&t.parent.parent&&Ml(t.parent)&&t===t.parent.name&&t.parent.getLastToken(n)===t.parent.name&&ei(t.parent.parent)||t.parent&&OC(t)&&ei(t.parent))}function hEe(e,t,n,i,s,o,c,u,f,g){let p=Fn(c,ei);if(!p)return;let y,S=s,x=s,C=t.getTypeChecker(),w=c.getSourceFile(),D=UX({removeComments:!0,module:n.module,target:n.target,omitTrailingSemicolon:!1,newLine:UA(c0(e,g?.options))}),O=fu.createImportAdder(w,t,i,e),z;if(i.includeCompletionsWithSnippetText){y=!0;let ae=I.createEmptyStatement();z=I.createBlock([ae],!0),jV(ae,{kind:0,order:0})}else z=I.createBlock([],!0);let V=0,{modifiers:X,range:J,decorators:ie}=GGe(f,w,u),B=X&64&&p.modifierFlagsCache&64,Z=[];if(fu.addNewNodeForMemberSymbol(o,p,w,{program:t,host:e},i,O,ae=>{let _e=0;B&&(_e|=64),Ml(ae)&&C.getMemberOverrideModifierStatus(p,ae,o)===1&&(_e|=16),Z.length||(V=ae.modifierFlagsCache|_e),ae=I.replaceModifiers(ae,V),Z.push(ae)},z,fu.PreserveOptionalFlags.Property,!!B),Z.length){let ae=o.flags&8192,_e=V|16|1;ae?_e|=1024:_e|=136;let $=X&_e;if(X&~_e)return;if(V&4&&$&1&&(V&=-5),$!==0&&!($&1)&&(V&=-2),V|=$,Z=Z.map(K=>I.replaceModifiers(K,V)),ie?.length){let K=Z[Z.length-1];G2(K)&&(Z[Z.length-1]=I.replaceDecoratorsAndModifiers(K,ie.concat(Pv(K)||[])))}let H=131073;g?S=D.printAndFormatSnippetList(H,I.createNodeArray(Z),w,g):S=D.printSnippetList(H,I.createNodeArray(Z),w)}return{insertText:S,filterText:x,isSnippet:y,importAdder:O,eraseRange:J}}function GGe(e,t,n){if(!e||Ka(t,n).line>Ka(t,e.getEnd()).line)return{modifiers:0};let i=0,s,o,c={pos:n,end:n};if(Is(e.parent)&&e.parent.modifiers&&(i|=Vd(e.parent.modifiers)&98303,s=e.parent.modifiers.filter(Zl)||[],c.pos=Math.min(c.pos,e.parent.modifiers.pos)),o=$Ge(e)){let u=wx(o);i&u||(i|=u,c.pos=Math.min(c.pos,e.pos))}return{modifiers:i,decorators:s,range:c.pos!==n?c:void 0}}function $Ge(e){if(ra(e))return e.kind;if(Ie(e)){let t=s1(e);if(t&&Uh(t))return t}}function XGe(e,t,n,i,s,o,c,u){let f=c.includeCompletionsWithSnippetText||void 0,g=t,p=n.getSourceFile(),y=QGe(e,n,p,i,s,c);if(!y)return;let S=UX({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!1,newLine:UA(c0(s,u?.options))});u?g=S.printAndFormatSnippetList(80,I.createNodeArray([y],!0),p,u):g=S.printSnippetList(80,I.createNodeArray([y],!0),p);let x=N1({removeComments:!0,module:o.module,target:o.target,omitTrailingSemicolon:!0}),C=I.createMethodSignature(void 0,"",y.questionToken,y.typeParameters,y.parameters,y.type),w={detail:x.printNode(4,C,p)};return{isSnippet:f,insertText:g,labelDetails:w}}function QGe(e,t,n,i,s,o){let c=e.getDeclarations();if(!(c&&c.length))return;let u=i.getTypeChecker(),f=c[0],g=jo(us(f),!1),p=u.getWidenedType(u.getTypeOfSymbolAtLocation(e,t)),S=33554432|(Df(n,o)===0?268435456:0);switch(f.kind){case 171:case 172:case 173:case 174:{let x=p.flags&1048576&&p.types.length<10?u.getUnionType(p.types,2):p;if(x.flags&1048576){let z=Fr(x.types,V=>u.getSignaturesOfType(V,0).length>0);if(z.length===1)x=z[0];else return}if(u.getSignaturesOfType(x,0).length!==1)return;let w=u.typeToTypeNode(x,t,S,fu.getNoopSymbolTrackerWithResolver({program:i,host:s}));if(!w||!Tg(w))return;let D;if(o.includeCompletionsWithSnippetText){let z=I.createEmptyStatement();D=I.createBlock([z],!0),jV(z,{kind:0,order:0})}else D=I.createBlock([],!0);let O=w.parameters.map(z=>I.createParameterDeclaration(void 0,z.dotDotDotToken,z.name,void 0,void 0,z.initializer));return I.createMethodDeclaration(void 0,void 0,g,void 0,void 0,O,void 0,D)}default:return}}function UX(e){let t,n=er.createWriter(Yh(e)),i=N1(e,n),s={...n,write:S=>o(S,()=>n.write(S)),nonEscapingWrite:n.write,writeLiteral:S=>o(S,()=>n.writeLiteral(S)),writeStringLiteral:S=>o(S,()=>n.writeStringLiteral(S)),writeSymbol:(S,x)=>o(S,()=>n.writeSymbol(S,x)),writeParameter:S=>o(S,()=>n.writeParameter(S)),writeComment:S=>o(S,()=>n.writeComment(S)),writeProperty:S=>o(S,()=>n.writeProperty(S))};return{printSnippetList:c,printAndFormatSnippetList:f,printNode:g,printAndFormatNode:y};function o(S,x){let C=Zv(S);if(C!==S){let w=n.getTextPos();x();let D=n.getTextPos();t=_n(t||(t=[]),{newText:C,span:{start:w,length:D-w}})}else x()}function c(S,x,C){let w=u(S,x,C);return t?er.applyChanges(w,t):w}function u(S,x,C){return t=void 0,s.clear(),i.writeList(S,x,C,s),s.getText()}function f(S,x,C,w){let D={text:u(S,x,C),getLineAndCharacterOfPosition(X){return Ka(this,X)}},O=IL(w,C),z=oa(x,X=>{let J=er.assignPositionsToNode(X);return ml.formatNodeGivenIndentation(J,D,C.languageVariant,0,0,{...w,options:O})}),V=t?Mh(es(z,t),(X,J)=>zI(X.span,J.span)):z;return er.applyChanges(D.text,V)}function g(S,x,C){let w=p(S,x,C);return t?er.applyChanges(w,t):w}function p(S,x,C){return t=void 0,s.clear(),i.writeNode(S,x,C,s),s.getText()}function y(S,x,C,w){let D={text:p(S,x,C),getLineAndCharacterOfPosition(J){return Ka(this,J)}},O=IL(w,C),z=er.assignPositionsToNode(x),V=ml.formatNodeGivenIndentation(z,D,C.languageVariant,0,0,{...w,options:O}),X=t?Mh(es(V,t),(J,ie)=>zI(J.span,ie.span)):V;return er.applyChanges(D.text,X)}}function yEe(e){let t=e.fileName?void 0:hp(e.moduleSymbol.name),n=e.isFromPackageJson?!0:void 0;return tD(e)?{exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,ambientModuleName:t,fileName:e.fileName,isPackageJsonImport:n}:{exportName:e.exportName,exportMapKey:e.exportMapKey,fileName:e.fileName,ambientModuleName:e.fileName?void 0:hp(e.moduleSymbol.name),isPackageJsonImport:e.isFromPackageJson?!0:void 0}}function YGe(e,t,n){let i=e.exportName==="default",s=!!e.isPackageJsonImport;return uEe(e)?{kind:32,exportName:e.exportName,exportMapKey:e.exportMapKey,moduleSpecifier:e.moduleSpecifier,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}:{kind:4,exportName:e.exportName,exportMapKey:e.exportMapKey,symbolName:t,fileName:e.fileName,moduleSymbol:n,isDefaultExport:i,isFromPackageJson:s}}function ZGe(e,t,n,i,s,o,c){let u=t.replacementSpan,f=Zv(q3(s,c,n.moduleSpecifier)),g=n.isDefaultExport?1:n.exportName==="export="?2:0,p=c.includeCompletionsWithSnippetText?"$1":"",y=fu.getImportKind(s,g,o,!0),S=t.couldBeTypeOnlyImportSpecifier,x=t.isTopLevelTypeOnly?` ${Zs(156)} `:" ",C=S?`${Zs(156)} `:"",w=i?";":"";switch(y){case 3:return{replacementSpan:u,insertText:`import${x}${Zv(e)}${p} = require(${f})${w}`};case 1:return{replacementSpan:u,insertText:`import${x}${Zv(e)}${p} from ${f}${w}`};case 2:return{replacementSpan:u,insertText:`import${x}* as ${Zv(e)} from ${f}${w}`};case 0:return{replacementSpan:u,insertText:`import${x}{ ${C}${Zv(e)}${p} } from ${f}${w}`}}}function vEe(e,t,n){return/^\d+$/.test(n)?n:q3(e,t,n)}function KGe(e,t,n){return e===t||!!(e.flags&1048576)&&n.getExportSymbolOfSymbol(e)===t}function P_e(e){if(xM(e))return hp(e.moduleSymbol.name);if(tD(e))return e.moduleSpecifier;if(e?.kind===1)return"ThisProperty/";if(e?.kind===64)return"TypeOnlyAlias/"}function w_e(e,t,n,i,s,o,c,u,f,g,p,y,S,x,C,w,D,O,z,V,X,J,ie,B,Z,ae=!1){let _e=So(),$=b$e(i,s),H=zA(c),K=f.getTypeChecker(),oe=new Map;for(let se=0;seme.getSourceFile()===s.getSourceFile()));oe.set(Me,mt),j0(t,_t,TM,!0)}return p("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(So()-_e)),{has:se=>oe.has(se),add:se=>oe.set(se,!0)};function Se(se,Y){var ve;let xe=se.flags;if(!Li(s)){if(hc(s.parent))return!0;if(Ur($,Ni)&&se.valueDeclaration===$)return!1;let Me=se.valueDeclaration??((ve=se.declarations)==null?void 0:ve[0]);if($&&Me&&(Ko($)&&Ko(Me)||ms($)&&ms(Me))){let he=Me.pos,be=ms($)?$.parent.parameters:qx($.parent)?void 0:$.parent.typeParameters;if(he>=$.pos&&be&&heD_e(n,c,V)===s.name);return z!==void 0?{type:"literal",literal:z}:ba(g,(V,X)=>{let J=x[X],ie=HX(V,La(u),J,S,f.isJsxIdentifierExpected);return ie&&ie.name===s.name&&(s.source==="ClassMemberSnippet/"&&V.flags&106500||s.source==="ObjectLiteralMethodSnippet/"&&V.flags&8196||P_e(J)===s.source||s.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:V,location:y,origin:J,contextToken:C,previousToken:w,isJsxInitializer:D,isTypeOnlyLocation:O}:void 0})||{type:"none"}}function n$e(e,t,n,i,s,o,c,u,f){let g=e.getTypeChecker(),p=e.getCompilerOptions(),{name:y,source:S,data:x}=s,{previousToken:C,contextToken:w}=qX(i,n);if(nS(n,i,C))return KX.getStringLiteralCompletionDetails(y,n,i,C,g,p,o,f,u);let D=bEe(e,t,n,i,s,o,u);switch(D.type){case"request":{let{request:O}=D;switch(O.kind){case 1:return R1.getJSDocTagNameCompletionDetails(y);case 2:return R1.getJSDocTagCompletionDetails(y);case 3:return R1.getJSDocParameterNameCompletionDetails(y);case 4:return ft(O.keywordCompletions,z=>z.name===y)?A_e(y,"keyword",5):void 0;default:return E.assertNever(O)}}case"symbol":{let{symbol:O,location:z,contextToken:V,origin:X,previousToken:J}=D,{codeActions:ie,sourceDisplay:B}=r$e(y,z,V,X,O,e,o,p,n,i,J,c,u,x,S,f),Z=C_e(X)?X.symbolName:O.name;return N_e(O,Z,g,n,z,f,ie,B)}case"literal":{let{literal:O}=D;return A_e(D_e(n,u,O),"string",typeof O=="string"?8:7)}case"cases":{let O=gEe(w.parent,n,u,e.getCompilerOptions(),o,e,void 0);if(O?.importAdder.hasFixes()){let{entry:z,importAdder:V}=O,X=er.ChangeTracker.with({host:o,formatContext:c,preferences:u},V.writeFixes);return{name:z.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:X,description:aS([d.Includes_imports_of_types_referenced_by_0,y])}]}}return{name:y,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return B_e().some(O=>O.name===y)?A_e(y,"keyword",5):void 0;default:E.assertNever(D)}}function A_e(e,t,n){return kM(e,"",t,[D_(e,n)])}function N_e(e,t,n,i,s,o,c,u){let{displayParts:f,documentation:g,symbolKind:p,tags:y}=n.runWithCancellationToken(o,S=>_0.getSymbolDisplayPartsDocumentationAndSymbolKind(S,e,i,s,s,7));return kM(t,_0.getSymbolModifiers(n,e),p,f,g,y,c,u)}function kM(e,t,n,i,s,o,c,u){return{name:e,kindModifiers:t,kind:n,displayParts:i,documentation:s,tags:o,codeActions:c,source:u,sourceDisplay:u}}function r$e(e,t,n,i,s,o,c,u,f,g,p,y,S,x,C,w){if(x?.moduleSpecifier&&p&&AEe(n||p,f).replacementSpan)return{codeActions:void 0,sourceDisplay:[Pf(x.moduleSpecifier)]};if(C==="ClassMemberSnippet/"){let{importAdder:ie,eraseRange:B}=hEe(c,o,u,S,e,s,t,g,n,y);if(ie||B)return{sourceDisplay:void 0,codeActions:[{changes:er.ChangeTracker.with({host:c,formatContext:y,preferences:S},ae=>{ie&&ie.writeFixes(ae),B&&ae.deleteRange(f,B)}),description:aS([d.Includes_imports_of_types_referenced_by_0,e])}]}}if(oEe(i)){let ie=fu.getPromoteTypeOnlyCompletionAction(f,i.declaration.name,o,c,y,S);return E.assertIsDefined(ie,"Expected to have a code action for promoting type-only alias"),{codeActions:[ie],sourceDisplay:void 0}}if(C==="ObjectLiteralMemberWithComma/"&&n){let ie=er.ChangeTracker.with({host:c,formatContext:y,preferences:S},B=>B.insertText(f,n.end,","));if(ie)return{sourceDisplay:void 0,codeActions:[{changes:ie,description:aS([d.Add_missing_comma_for_object_member_completion_0,e])}]}}if(!i||!(xM(i)||tD(i)))return{codeActions:void 0,sourceDisplay:void 0};let D=i.isFromPackageJson?c.getPackageJsonAutoImportProvider().getTypeChecker():o.getTypeChecker(),{moduleSymbol:O}=i,z=D.getMergedSymbol(Cu(s.exportSymbol||s,D)),V=n?.kind===30&&Zu(n.parent),{moduleSpecifier:X,codeAction:J}=fu.getImportCompletionAction(z,O,x?.exportMapKey,f,e,V,c,o,y,p&&Ie(p)?p.getStart(f):g,S,w);return E.assert(!x?.moduleSpecifier||X===x.moduleSpecifier),{sourceDisplay:[Pf(X)],codeActions:[J]}}function i$e(e,t,n,i,s,o,c){let u=bEe(e,t,n,i,s,o,c);return u.type==="symbol"?u.symbol:void 0}function s$e(e,t,n){return ba(t&&(t.isUnion()?t.types:[t]),i=>{let s=i&&i.symbol;return s&&s.flags&424&&!ane(s)?I_e(s,e,n):void 0})}function a$e(e,t,n,i){let{parent:s}=e;switch(e.kind){case 80:return bL(e,i);case 64:switch(s.kind){case 260:return i.getContextualType(s.initializer);case 226:return i.getTypeAtLocation(s.left);case 291:return i.getContextualTypeForJsxAttribute(s);default:return}case 105:return i.getContextualType(s);case 84:let o=Ur(s,PC);return o?$H(o,i):void 0;case 19:return n3(s)&&!kg(s.parent)&&!nb(s.parent)?i.getContextualTypeForJsxAttribute(s.parent):void 0;default:let c=TN.getArgumentInfoForCompletions(e,t,n);return c?i.getContextualTypeForArgumentAtIndex(c.invocation,c.argumentIndex+(e.kind===28?1:0)):SL(e.kind)&&Yn(s)&&SL(s.operatorToken.kind)?i.getTypeAtLocation(s.left):i.getContextualType(e,4)||i.getContextualType(e)}}function I_e(e,t,n){let i=n.getAccessibleSymbolChain(e,t,67108863,!1);return i?Da(i):e.parent&&(o$e(e.parent)?e:I_e(e.parent,t,n))}function o$e(e){var t;return!!((t=e.declarations)!=null&&t.some(n=>n.kind===312))}function SEe(e,t,n,i,s,o,c,u,f,g){let p=e.getTypeChecker(),y=mEe(n,i),S=So(),x=qi(n,s);t("getCompletionData: Get current token: "+(So()-S)),S=So();let C=s0(n,s,x);t("getCompletionData: Is inside comment: "+(So()-S));let w=!1,D=!1;if(C){if(hoe(n,s)){if(n.text.charCodeAt(s-1)===64)return{kind:1};{let De=Cp(s,n);if(!/[^*|\s(/)]/.test(n.text.substring(De,s)))return{kind:2}}}let M=_$e(x,s);if(M){if(M.tagName.pos<=s&&s<=M.tagName.end)return{kind:1};let De=Gt(M);if(De&&(x=qi(n,s),(!x||!ih(x)&&(x.parent.kind!==355||x.parent.name!==x))&&(w=ue(De))),!w&&gd(M)&&(dc(M.name)||M.name.pos<=s&&s<=M.name.end))return{kind:3,tag:M}}if(!w){t("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}S=So();let O=!w&&Bu(n),z=qX(s,n),V=z.previousToken,X=z.contextToken;t("getCompletionData: Get previous token: "+(So()-S));let J=x,ie,B=!1,Z=!1,ae=!1,_e=!1,$=!1,H=!1,K,oe=m_(n,s),Se=0,se=!1,Y=0;if(X){let M=AEe(X,n);if(M.keywordCompletion){if(M.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[RGe(M.keywordCompletion)],isNewIdentifierLocation:M.isNewIdentifierLocation};Se=BGe(M.keywordCompletion)}if(M.replacementSpan&&o.includeCompletionsForImportStatements&&o.includeCompletionsWithInsertText&&(Y|=2,K=M,se=M.isNewIdentifierLocation),!M.replacementSpan&&Ki(X))return t("Returning an empty list because completion was requested in an invalid position."),Se?pEe(Se,O,Fs()):void 0;let De=X.parent;if(X.kind===25||X.kind===29)switch(B=X.kind===25,Z=X.kind===29,De.kind){case 211:ie=De,J=ie.expression;let qe=DE(ie);if(dc(qe)||(Ws(J)||As(J))&&J.end===X.pos&&J.getChildCount(n)&&Pa(J.getChildren(n)).kind!==22)return;break;case 166:J=De.left;break;case 267:J=De.name;break;case 205:J=De;break;case 236:J=De.getFirstToken(n),E.assert(J.kind===102||J.kind===105);break;default:return}else if(!K){if(De&&De.kind===211&&(X=De,De=De.parent),x.parent===oe)switch(x.kind){case 32:(x.parent.kind===284||x.parent.kind===286)&&(oe=x);break;case 44:x.parent.kind===285&&(oe=x);break}switch(De.kind){case 287:X.kind===44&&(_e=!0,oe=X);break;case 226:if(!wEe(De))break;case 285:case 284:case 286:H=!0,X.kind===30&&(ae=!0,oe=X);break;case 294:case 293:(V.kind===20||V.kind===80&&V.parent.kind===291)&&(H=!0);break;case 291:if(De.initializer===V&&V.endrS(M?u.getPackageJsonAutoImportProvider():e,u));if(B||Z)Tn();else if(ae)he=p.getJsxIntrinsicTagNamesAt(oe),E.assertEachIsDefined(he,"getJsxIntrinsicTagNames() should all be defined"),Ft(),xe=1,Se=0;else if(_e){let M=X.parent.parent.openingElement.tagName,De=p.getSymbolAtLocation(M);De&&(he=[De]),xe=1,Se=0}else if(!Ft())return Se?pEe(Se,O,se):void 0;t("getCompletionData: Semantic work: "+(So()-ve));let at=V&&a$e(V,s,n,p),Je=!Ur(V,$a)&&!H?Ri(at&&(at.isUnion()?at.types:[at]),M=>M.isLiteral()&&!(M.flags&1024)?M.value:void 0):[],lt=V&&at&&s$e(V,at,p);return{kind:0,symbols:he,completionKind:xe,isInSnippetScope:D,propertyAccessToConvert:ie,isNewIdentifierLocation:se,location:oe,keywordFilters:Se,literals:Je,symbolToOriginInfoMap:_t,recommendedCompletion:lt,previousToken:V,contextToken:X,isJsxInitializer:$,insideJsDocTagTypeExpression:w,symbolToSortTextMap:mt,isTypeOnlyLocation:Oe,isJsxIdentifierExpected:H,isRightOfOpenTag:ae,isRightOfDotOrQuestionDot:B||Z,importStatementCompletion:K,hasUnresolvedAutoImports:ke,flags:Y};function Jt(M){switch(M.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!M.constraint;default:return!1}}function Gt(M){if(Jt(M)){let De=hd(M)?M.constraint:M.typeExpression;return De&&De.kind===316?De:void 0}if(NC(M)||cW(M))return M.class}function Tn(){xe=2;let M=K0(J),De=M&&!J.isTypeOf||dg(J.parent)||wA(X,n,p),qe=G9(J);if(Y_(J)||M||Cr(J)){let Fe=Pc(J.parent);Fe&&(se=!0);let St=p.getSymbolAtLocation(J);if(St&&(St=Cu(St,p),St.flags&1920)){let Mt=p.getExportsOfModule(St);E.assertEachIsDefined(Mt,"getExportsOfModule() should all be defined");let Wt=br=>p.isValidPropertyAccess(M?J:J.parent,br.name),Rn=br=>O_e(br,p),nr=Fe?br=>{var jr;return!!(br.flags&1920)&&!((jr=br.declarations)!=null&&jr.every(Br=>Br.parent===J.parent))}:qe?br=>Rn(br)||Wt(br):De||w?Rn:Wt;for(let br of Mt)nr(br)&&he.push(br);if(!De&&!w&&St.declarations&&St.declarations.some(br=>br.kind!==312&&br.kind!==267&&br.kind!==266)){let br=p.getTypeOfSymbolAtLocation(St,J).getNonOptionalType(),jr=!1;if(br.isNullableType()){let Br=B&&!Z&&o.includeAutomaticOptionalChainCompletions!==!1;(Br||Z)&&(br=br.getNonNullableType(),Br&&(jr=!0))}Un(br,!!(J.flags&65536),jr)}return}}if(!De||A2(J)){p.tryGetThisTypeAt(J,!1);let Fe=p.getTypeAtLocation(J).getNonOptionalType();if(De)Un(Fe.getNonNullableType(),!1,!1);else{let St=!1;if(Fe.isNullableType()){let Mt=B&&!Z&&o.includeAutomaticOptionalChainCompletions!==!1;(Mt||Z)&&(Fe=Fe.getNonNullableType(),Mt&&(St=!0))}Un(Fe,!!(J.flags&65536),St)}}}function Un(M,De,qe){se=!!M.getStringIndexType(),Z&&ft(M.getCallSignatures())&&(se=!0);let Fe=J.kind===205?J:J.parent;if(y)for(let St of M.getApparentProperties())p.isValidPropertyAccessForCompletions(Fe,M,St)&&cn(St,!1,qe);else he.push(...Fr(XX(M,p),St=>p.isValidPropertyAccessForCompletions(Fe,M,St)));if(De&&o.includeCompletionsWithInsertText){let St=p.getPromisedTypeOfPromise(M);if(St)for(let Mt of St.getApparentProperties())p.isValidPropertyAccessForCompletions(Fe,St,Mt)&&cn(Mt,!0,qe)}}function cn(M,De,qe){var Fe;let St=ba(M.declarations,nr=>Ur(us(nr),Na));if(St){let nr=zt(St.expression),br=nr&&p.getSymbolAtLocation(nr),jr=br&&I_e(br,X,p),Br=jr&&ta(jr);if(Br&&Hp(me,Br)){let Mi=he.length;he.push(jr);let wr=jr.parent;if(!wr||!IA(wr)||p.tryGetMemberInModuleExportsAndProperties(jr.name,wr)!==jr)_t[Mi]={kind:Rn(2)};else{let is=Al(hp(wr.name))?(Fe=W7(wr))==null?void 0:Fe.fileName:void 0,{moduleSpecifier:In}=(be||(be=fu.createImportSpecifierResolver(n,e,u,o))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:is,isFromPackageJson:!1,moduleSymbol:wr,symbol:jr,targetFlags:Cu(jr,p).flags}],s,h1(oe))||{};if(In){let mi={kind:Rn(6),moduleSymbol:wr,isDefaultExport:!1,symbolName:jr.name,exportName:jr.name,fileName:is,moduleSpecifier:In};_t[Mi]=mi}}}else if(o.includeCompletionsWithInsertText){if(Br&&me.has(Br))return;Wt(M),Mt(M),he.push(M)}}else Wt(M),Mt(M),he.push(M);function Mt(nr){h$e(nr)&&(mt[ta(nr)]=pu.LocalDeclarationPriority)}function Wt(nr){o.includeCompletionsWithInsertText&&(De&&Hp(me,ta(nr))?_t[he.length]={kind:Rn(8)}:qe&&(_t[he.length]={kind:16}))}function Rn(nr){return qe?nr|16:nr}}function zt(M){return Ie(M)?M:Cr(M)?zt(M.expression):void 0}function Ft(){return(Ue()||it()||ii()||dt()||gt()||Lr()||fe()||ji()||(Hi(),1))===1}function Lr(){return Be(X)?(xe=5,se=!0,Se=4,1):0}function ji(){let M=G(X),De=M&&p.getContextualType(M.attributes);if(!De)return 0;let qe=M&&p.getContextualType(M.attributes,4);return he=es(he,ee($X(De,qe,M.attributes,p),M.attributes.properties)),ln(),xe=3,se=!1,1}function ii(){return K?(se=!0,Cn(),1):0}function Hi(){Se=yt(X)?5:1,xe=1,se=Fs(),V!==X&&E.assert(!!V,"Expected 'contextToken' to be defined when different from 'previousToken'.");let M=V!==X?V.getStart():s,De=Ii(X,M,n)||n;D=fn(De);let qe=(Oe?0:111551)|788968|1920|2097152,Fe=V&&!h1(V);he=es(he,p.getSymbolsInScope(De,qe)),E.assertEachIsDefined(he,"getSymbolsInScope() should all be defined");for(let St=0;StWt.getSourceFile()===n)&&(mt[ta(Mt)]=pu.GlobalsOrKeywords),Fe&&!(Mt.flags&111551)){let Wt=Mt.declarations&&xr(Mt.declarations,A7);if(Wt){let Rn={kind:64,declaration:Wt};_t[St]=Rn}}}if(o.includeCompletionsWithInsertText&&De.kind!==312){let St=p.tryGetThisTypeAt(De,!1,ei(De.parent)?De:void 0);if(St&&!g$e(St,n,p))for(let Mt of XX(St,p))_t[he.length]={kind:1},he.push(Mt),mt[ta(Mt)]=pu.SuggestedClassMembers}Cn(),Oe&&(Se=X&&h2(X.parent)?6:7)}function Ye(){return K?!0:Me||!o.includeCompletionsForModuleExports?!1:n.externalModuleIndicator||n.commonJsModuleIndicator||FH(e.getCompilerOptions())?!0:Toe(e)}function fn(M){switch(M.kind){case 312:case 228:case 294:case 241:return!0;default:return Ai(M)}}function An(){return w||!!K&&Nv(oe.parent)||!Ot(X)&&(wA(X,n,p)||dg(oe)||Sn(X))}function Ot(M){return M&&(M.kind===114&&(M.parent.kind===186||EC(M.parent))||M.kind===131&&M.parent.kind===182)}function Sn(M){if(M){let De=M.parent.kind;switch(M.kind){case 59:return De===172||De===171||De===169||De===260||hx(De);case 64:return De===265;case 130:return De===234;case 30:return De===183||De===216;case 96:return De===168;case 152:return De===238}}return!1}function Cn(){var M,De;if(!Ye()||(E.assert(!c?.data,"Should not run 'collectAutoImports' when faster path is available via `data`"),c&&!c.source))return;Y|=1;let Fe=V===X&&K?"":V&&Ie(V)?V.text.toLowerCase():"",St=(M=u.getModuleSpecifierCache)==null?void 0:M.call(u),Mt=qA(n,u,e,o,g),Wt=(De=u.getPackageJsonAutoImportProvider)==null?void 0:De.call(u),Rn=c?void 0:G3(n,o,u);lEe("collectAutoImports",u,be||(be=fu.createImportSpecifierResolver(n,e,u,o)),e,s,o,!!K,h1(oe),br=>{Mt.search(n.path,ae,(jr,Br)=>{if(!hf(jr,La(u.getCompilationSettings()))||!c&&Cx(jr)||!Oe&&!K&&!(Br&111551)||Oe&&!(Br&790504))return!1;let Mi=jr.charCodeAt(0);return ae&&(Mi<65||Mi>90)?!1:c?!0:LEe(jr,Fe)},(jr,Br,Mi,wr)=>{if(c&&!ft(jr,Pn=>c.source===hp(Pn.moduleSymbol.name))||(jr=Fr(jr,nr),!jr.length))return;let is=br.tryResolve(jr,Mi)||{};if(is==="failed")return;let In=jr[0],mi;is!=="skipped"&&({exportInfo:In=jr[0],moduleSpecifier:mi}=is);let ua=In.exportKind===1,js=ua&&cC(In.symbol)||In.symbol;Kn(js,{kind:mi?32:4,moduleSpecifier:mi,symbolName:Br,exportMapKey:wr,exportName:In.exportKind===2?"export=":In.symbol.name,fileName:In.moduleFileName,isDefaultExport:ua,moduleSymbol:In.moduleSymbol,isFromPackageJson:In.isFromPackageJson})}),ke=br.skippedAny(),Y|=br.resolvedAny()?8:0,Y|=br.resolvedBeyondLimit()?16:0});function nr(br){let jr=Ur(br.moduleSymbol.valueDeclaration,Li);if(!jr){let Br=hp(br.moduleSymbol.name);return Eg.nodeCoreModules.has(Br)&&ts(Br,"node:")!==NL(n,e)?!1:Rn?Rn.allowsImportingAmbientModule(br.moduleSymbol,Qe(br.isFromPackageJson)):!0}return uG(br.isFromPackageJson?Wt:e,n,jr,o,Rn,Qe(br.isFromPackageJson),St)}}function Kn(M,De){let qe=ta(M);mt[qe]!==pu.GlobalsOrKeywords&&(_t[he.length]=De,mt[qe]=K?pu.LocationPriority:pu.AutoImportSuggestions,he.push(M))}function Fi(M,De){Qn(oe)||M.forEach(qe=>{if(!Wi(qe))return;let Fe=HX(qe,La(i),void 0,0,!1);if(!Fe)return;let{name:St}=Fe,Mt=XGe(qe,St,De,e,u,i,o,f);if(!Mt)return;let Wt={kind:128,...Mt};Y|=32,_t[he.length]=Wt,he.push(qe)})}function Wi(M){return!!(M.flags&8196)}function Ii(M,De,qe){let Fe=M;for(;Fe&&!vH(Fe,De,qe);)Fe=Fe.parent;return Fe}function Ki(M){let De=So(),qe=Ce(M)||vt(M)||ot(M)||na(M)||$F(M);return t("getCompletionsAtPosition: isCompletionListBlocker: "+(So()-De)),qe}function na(M){if(M.kind===12)return!0;if(M.kind===32&&M.parent){if(oe===M.parent&&(oe.kind===286||oe.kind===285))return!1;if(M.parent.kind===286)return oe.parent.kind!==286;if(M.parent.kind===287||M.parent.kind===285)return!!M.parent.parent&&M.parent.parent.kind===284}return!1}function Fs(){if(X){let M=X.parent.kind,De=GX(X);switch(De){case 28:return M===213||M===176||M===214||M===209||M===226||M===184||M===210;case 21:return M===213||M===176||M===214||M===217||M===196;case 23:return M===209||M===181||M===167;case 144:case 145:case 102:return!0;case 25:return M===267;case 19:return M===263||M===210;case 64:return M===260||M===226;case 16:return M===228;case 17:return M===239;case 134:return M===174||M===304;case 42:return M===174}if(CM(De))return!0}return!1}function Ce(M){return(WV(M)||TJ(M))&&(EA(M,s)||s===M.end&&(!!M.isUnterminated||WV(M)))}function Ue(){let M=d$e(X);if(!M)return 0;let qe=(kC(M.parent)?M.parent:void 0)||M,Fe=PEe(qe,p);if(!Fe)return 0;let St=p.getTypeFromTypeNode(qe),Mt=XX(Fe,p),Wt=XX(St,p),Rn=new Set;return Wt.forEach(nr=>Rn.add(nr.escapedName)),he=es(he,Fr(Mt,nr=>!Rn.has(nr.escapedName))),xe=0,se=!0,1}function it(){let M=he.length,De=c$e(X,s,n);if(!De)return 0;xe=0;let qe,Fe;if(De.kind===210){let St=y$e(De,p);if(St===void 0)return De.flags&67108864?2:(Me=!0,0);let Mt=p.getContextualType(De,4),Wt=(Mt||St).getStringIndexType(),Rn=(Mt||St).getNumberIndexType();if(se=!!Wt||!!Rn,qe=$X(St,Mt,De,p),Fe=De.properties,qe.length===0&&!Rn)return Me=!0,0}else{E.assert(De.kind===206),se=!1;let St=Fm(De.parent);if(!Uk(St))return E.fail("Root declaration is not variable-like.");let Mt=Q0(St)||!!Xl(St)||St.parent.parent.kind===250;if(!Mt&&St.kind===169&&(ut(St.parent)?Mt=!!p.getContextualType(St.parent):(St.parent.kind===174||St.parent.kind===178)&&(Mt=ut(St.parent.parent)&&!!p.getContextualType(St.parent.parent))),Mt){let Wt=p.getTypeAtLocation(De);if(!Wt)return 2;qe=p.getPropertiesOfType(Wt).filter(Rn=>p.isPropertyAccessible(De,!1,!1,Wt,Rn)),Fe=De.elements}}if(qe&&qe.length>0){let St=Zt(qe,E.checkDefined(Fe));he=es(he,St),ln(),De.kind===210&&o.includeCompletionsWithObjectLiteralMethodSnippets&&o.includeCompletionsWithInsertText&&(j(M),Fi(St,De))}return 1}function dt(){if(!X)return 0;let M=X.kind===19||X.kind===28?Ur(X.parent,J5):lL(X)?Ur(X.parent.parent,J5):void 0;if(!M)return 0;lL(X)||(Se=8);let{moduleSpecifier:De}=M.kind===275?M.parent.parent:M.parent;if(!De)return se=!0,M.kind===275?2:0;let qe=p.getSymbolAtLocation(De);if(!qe)return se=!0,2;xe=3,se=!1;let Fe=p.getExportsAndPropertiesOfModule(qe),St=new Set(M.elements.filter(Wt=>!ue(Wt)).map(Wt=>(Wt.propertyName||Wt.name).escapedText)),Mt=Fe.filter(Wt=>Wt.escapedName!=="default"&&!St.has(Wt.escapedName));return he=es(he,Mt),Mt.length||(Se=0),1}function gt(){var M;let De=X&&(X.kind===19||X.kind===28)?Ur(X.parent,kp):void 0;if(!De)return 0;let qe=Fn(De,ud(Li,Pc));return xe=5,se=!1,(M=qe.locals)==null||M.forEach((Fe,St)=>{var Mt,Wt;he.push(Fe),(Wt=(Mt=qe.symbol)==null?void 0:Mt.exports)!=null&&Wt.has(St)&&(mt[ta(Fe)]=pu.OptionalMember)}),1}function fe(){let M=p$e(n,X,oe,s);if(!M)return 0;if(xe=3,se=!0,Se=X.kind===42?0:ei(M)?2:3,!ei(M))return 1;let De=X.kind===27?X.parent.parent:X.parent,qe=Ml(De)?Ju(De):0;if(X.kind===80&&!ue(X))switch(X.getText()){case"private":qe=qe|2;break;case"static":qe=qe|256;break;case"override":qe=qe|16;break}if(rc(De)&&(qe|=256),!(qe&2)){let Fe=ei(M)&&qe&16?c2(Bd(M)):lE(M),St=oa(Fe,Mt=>{let Wt=p.getTypeAtLocation(Mt);return qe&256?Wt?.symbol&&p.getPropertiesOfType(p.getTypeOfSymbolAtLocation(Wt.symbol,M)):Wt&&p.getPropertiesOfType(Wt)});he=es(he,ce(St,M.members,qe)),Qt(he,(Mt,Wt)=>{let Rn=Mt?.valueDeclaration;if(Rn&&Ml(Rn)&&Rn.name&&Na(Rn.name)){let nr={kind:512,symbolName:p.symbolToString(Mt)};_t[Wt]=nr}})}return 1}function we(M){return!!M.parent&&ms(M.parent)&&Cc(M.parent.parent)&&(H4(M.kind)||ih(M))}function Be(M){if(M){let De=M.parent;switch(M.kind){case 21:case 28:return Cc(M.parent)?M.parent:void 0;default:if(we(M))return De.parent}}}function yt(M){if(M){let De,qe=Fn(M.parent,Fe=>ei(Fe)?"quit":To(Fe)&&De===Fe.body?!0:(De=Fe,!1));return qe&&qe}}function G(M){if(M){let De=M.parent;switch(M.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(De&&(De.kind===285||De.kind===286)){if(M.kind===32){let qe=ol(M.pos,n,void 0);if(!De.typeArguments||qe&&qe.kind===44)break}return De}else if(De.kind===291)return De.parent.parent;break;case 11:if(De&&(De.kind===291||De.kind===293))return De.parent.parent;break;case 20:if(De&&De.kind===294&&De.parent&&De.parent.kind===291)return De.parent.parent.parent;if(De&&De.kind===293)return De.parent.parent;break}}}function vt(M){let De=M.parent,qe=De.kind;switch(M.kind){case 28:return qe===260||Dt(M)||qe===243||qe===266||Re(qe)||qe===264||qe===207||qe===265||ei(De)&&!!De.typeParameters&&De.typeParameters.end>=M.pos;case 25:return qe===207;case 59:return qe===208;case 23:return qe===207;case 21:return qe===299||Re(qe);case 19:return qe===266;case 30:return qe===263||qe===231||qe===264||qe===265||hx(qe);case 126:return qe===172&&!ei(De.parent);case 26:return qe===169||!!De.parent&&De.parent.kind===207;case 125:case 123:case 124:return qe===169&&!Cc(De.parent);case 130:return qe===276||qe===281||qe===274;case 139:case 153:return!QX(M);case 80:if(qe===276&&M===De.name&&M.text==="type")return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return qe!==276;case 42:return As(M.parent)&&!kc(M.parent)}if(CM(GX(M))&&QX(M)||we(M)&&(!Ie(M)||H4(GX(M))||ue(M)))return!1;switch(GX(M)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return Is(M.parent)}if(Fn(M.parent,ei)&&M===V&&wt(M,s))return!1;let St=f1(M.parent,172);if(St&&M!==V&&ei(V.parent.parent)&&s<=V.end){if(wt(M,V.end))return!1;if(M.kind!==64&&(rA(St)||j7(St)))return!0}return ih(M)&&!sf(M.parent)&&!$d(M.parent)&&!((ei(M.parent)||Wu(M.parent)||Ko(M.parent))&&(M!==V||s>V.end))}function wt(M,De){return M.kind!==64&&(M.kind===27||!vp(M.end,De,n))}function Re(M){return hx(M)&&M!==176}function ot(M){if(M.kind===9){let De=M.getFullText();return De.charAt(De.length-1)==="."}return!1}function Dt(M){return M.parent.kind===261&&!wA(M,n,p)}function Zt(M,De){if(De.length===0)return M;let qe=new Set,Fe=new Set;for(let Mt of De){if(Mt.kind!==303&&Mt.kind!==304&&Mt.kind!==208&&Mt.kind!==174&&Mt.kind!==177&&Mt.kind!==178&&Mt.kind!==305||ue(Mt))continue;let Wt;if(n0(Mt))tn(Mt,qe);else if(Ma(Mt)&&Mt.propertyName)Mt.propertyName.kind===80&&(Wt=Mt.propertyName.escapedText);else{let Rn=us(Mt);Wt=Rn&&Jd(Rn)?fE(Rn):void 0}Wt!==void 0&&Fe.add(Wt)}let St=M.filter(Mt=>!Fe.has(Mt.escapedName));return W(qe,St),St}function tn(M,De){let qe=M.expression,Fe=p.getSymbolAtLocation(qe),St=Fe&&p.getTypeOfSymbolAtLocation(Fe,qe),Mt=St&&St.properties;Mt&&Mt.forEach(Wt=>{De.add(Wt.name)})}function ln(){he.forEach(M=>{if(M.flags&16777216){let De=ta(M);mt[De]=mt[De]??pu.OptionalMember}})}function W(M,De){if(M.size!==0)for(let qe of De)M.has(qe.name)&&(mt[ta(qe)]=pu.MemberDeclaredBySpreadAssignment)}function j(M){for(let De=M;De!Fe.has(St.escapedName)&&!!St.declarations&&!(Uf(St)&2)&&!(St.valueDeclaration&&ju(St.valueDeclaration)))}function ee(M,De){let qe=new Set,Fe=new Set;for(let Mt of De)ue(Mt)||(Mt.kind===291?qe.add(JE(Mt.name)):Kx(Mt)&&tn(Mt,Fe));let St=M.filter(Mt=>!qe.has(Mt.escapedName));return W(Fe,St),St}function ue(M){return M.getStart(n)<=s&&s<=M.getEnd()}}function c$e(e,t,n){var i;if(e){let{parent:s}=e;switch(e.kind){case 19:case 28:if(xa(s)||Gp(s))return s;break;case 42:return kc(s)?Ur(s.parent,xa):void 0;case 134:return Ur(s.parent,xa);case 80:if(e.text==="async"&&sf(e.parent))return e.parent.parent;{if(xa(e.parent.parent)&&(n0(e.parent)||sf(e.parent)&&Ka(n,e.getEnd()).line!==Ka(n,t).line))return e.parent.parent;let c=Fn(s,el);if(c?.getLastToken(n)===e&&xa(c.parent))return c.parent}break;default:if((i=s.parent)!=null&&i.parent&&(kc(s.parent)||Sf(s.parent)||j_(s.parent))&&xa(s.parent.parent))return s.parent.parent;if(n0(s)&&xa(s.parent))return s.parent;let o=Fn(s,el);if(e.kind!==59&&o?.getLastToken(n)===e&&xa(o.parent))return o.parent}}}function qX(e,t){let n=ol(e,t);return n&&e<=n.end&&(_g(n)||p_(n.kind))?{contextToken:ol(n.getFullStart(),t,void 0),previousToken:n}:{contextToken:n,previousToken:n}}function xEe(e,t,n,i){let s=t.isPackageJsonImport?i.getPackageJsonAutoImportProvider():n,o=s.getTypeChecker(),c=t.ambientModuleName?o.tryFindAmbientModule(t.ambientModuleName):t.fileName?o.getMergedSymbol(E.checkDefined(s.getSourceFile(t.fileName)).symbol):void 0;if(!c)return;let u=t.exportName==="export="?o.resolveExternalModuleSymbol(c):o.tryGetMemberInModuleExportsAndProperties(t.exportName,c);return u?(u=t.exportName==="default"&&cC(u)||u,{symbol:u,origin:YGe(t,e,c)}):void 0}function HX(e,t,n,i,s){if(FGe(n))return;let o=wGe(n)?n.symbolName:e.name;if(o===void 0||e.flags&1536&&cw(o.charCodeAt(0))||Dw(e))return;let c={name:o,needsConvertPropertyAccess:!1};if(hf(o,t,s?1:0)||e.valueDeclaration&&ju(e.valueDeclaration))return c;switch(i){case 3:return C_e(n)?{name:n.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(o),needsConvertPropertyAccess:!1};case 2:case 1:return o.charCodeAt(0)===32?void 0:{name:o,needsConvertPropertyAccess:!0};case 5:case 4:return c;default:E.assertNever(i)}}function TEe(e,t){if(!t)return kEe(e);let n=e+8+1;return EM[n]||(EM[n]=kEe(e).filter(i=>!l$e(Ev(i.name))))}function kEe(e){return EM[e]||(EM[e]=B_e().filter(t=>{let n=Ev(t.name);switch(e){case 0:return!1;case 1:return EEe(n)||n===138||n===144||n===156||n===145||n===128||B3(n)&&n!==157;case 5:return EEe(n);case 2:return CM(n);case 3:return CEe(n);case 4:return H4(n);case 6:return B3(n)||n===87;case 7:return B3(n);case 8:return n===156;default:return E.assertNever(e)}}))}function l$e(e){switch(e){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function CEe(e){return e===148}function CM(e){switch(e){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return kJ(e)}}function EEe(e){return e===134||e===135||e===130||e===152||e===156||!S5(e)&&!CM(e)}function GX(e){return Ie(e)?s1(e)??0:e.kind}function u$e(e,t){let n=[];if(e){let i=e.getSourceFile(),s=e.parent,o=i.getLineAndCharacterOfPosition(e.end).line,c=i.getLineAndCharacterOfPosition(t).line;(kl(s)||Kc(s)&&s.moduleSpecifier)&&e===s.moduleSpecifier&&o===c&&n.push({name:Zs(132),kind:"keyword",kindModifiers:"",sortText:pu.GlobalsOrKeywords})}return n}function _$e(e,t){return Fn(e,n=>Mk(n)&&CA(n,t)?!0:Qp(n)?"quit":!1)}function $X(e,t,n,i){let s=t&&t!==e,o=s&&!(t.flags&3)?i.getUnionType([e,t]):e,c=f$e(o,n,i);return o.isClass()&&DEe(c)?[]:s?Fr(c,u):c;function u(f){return bn(f.declarations)?ft(f.declarations,g=>g.parent!==n):!0}}function f$e(e,t,n){return e.isUnion()?n.getAllPossiblePropertiesOfTypes(Fr(e.types,i=>!(i.flags&402784252||n.isArrayLikeType(i)||n.isTypeInvalidDueToUnionDiscriminant(i,t)||n.typeHasCallOrConstructSignatures(i)||i.isClass()&&DEe(i.getApparentProperties())))):e.getApparentProperties()}function DEe(e){return ft(e,t=>!!(Uf(t)&6))}function XX(e,t){return e.isUnion()?E.checkEachDefined(t.getAllPossiblePropertiesOfTypes(e.types),"getAllPossiblePropertiesOfTypes() should all be defined"):E.checkEachDefined(e.getApparentProperties(),"getApparentProperties() should all be defined")}function p$e(e,t,n,i){switch(n.kind){case 358:return Ur(n.parent,Nx);case 1:let s=Ur(qo(Vs(n.parent,Li).statements),Nx);if(s&&!Ya(s,20,e))return s;break;case 81:if(Ur(n.parent,Is))return Fn(n,ei);break;case 80:{if(s1(n)||Is(n.parent)&&n.parent.initializer===n)return;if(QX(n))return Fn(n,Nx)}}if(t){if(n.kind===137||Ie(t)&&Is(t.parent)&&ei(n))return Fn(t,ei);switch(t.kind){case 64:return;case 27:case 20:return QX(n)&&n.parent.name===n?n.parent.parent:Ur(n,Nx);case 19:case 28:return Ur(t.parent,Nx);default:if(Nx(n)){if(Ka(e,t.getEnd()).line!==Ka(e,i).line)return n;let s=ei(t.parent.parent)?CM:CEe;return s(t.kind)||t.kind===42||Ie(t)&&s(s1(t)??0)?t.parent.parent:void 0}return}}}function d$e(e){if(!e)return;let t=e.parent;switch(e.kind){case 19:if(nf(t))return t;break;case 27:case 28:case 80:if(t.kind===171&&nf(t.parent))return t.parent;break}}function PEe(e,t){if(!e)return;if(Ei(e)&&B7(e.parent))return t.getTypeArgumentConstraint(e);let n=PEe(e.parent,t);if(n)switch(e.kind){case 171:return t.getTypeOfPropertyOfContextualType(n,e.symbol.escapedName);case 193:case 187:case 192:return n}}function QX(e){return e.parent&&N7(e.parent)&&Nx(e.parent.parent)}function m$e(e,t,n,i){switch(t){case".":case"@":return!0;case'"':case"'":case"`":return!!n&&zoe(n)&&i===n.getStart(e)+1;case"#":return!!n&&Di(n)&&!!Rl(n);case"<":return!!n&&n.kind===30&&(!Yn(n.parent)||wEe(n.parent));case"/":return!!n&&($a(n)?!!hw(n):n.kind===44&&tb(n.parent));case" ":return!!n&&$E(n)&&n.parent.kind===312;default:return E.assertNever(t)}}function wEe({left:e}){return dc(e)}function g$e(e,t,n){let i=n.resolveName("self",void 0,111551,!1);if(i&&n.getTypeOfSymbolAtLocation(i,t)===e)return!0;let s=n.resolveName("global",void 0,111551,!1);if(s&&n.getTypeOfSymbolAtLocation(s,t)===e)return!0;let o=n.resolveName("globalThis",void 0,111551,!1);return!!(o&&n.getTypeOfSymbolAtLocation(o,t)===e)}function h$e(e){return!!(e.valueDeclaration&&Ju(e.valueDeclaration)&256&&ei(e.valueDeclaration.parent))}function y$e(e,t){let n=t.getContextualType(e);if(n)return n;let i=Gh(e.parent);if(Yn(i)&&i.operatorToken.kind===64&&e===i.left)return t.getTypeAtLocation(i);if(ut(i))return t.getContextualType(i)}function AEe(e,t){var n,i,s;let o,c=!1,u=f();return{isKeywordOnlyCompletion:c,keywordCompletion:o,isNewIdentifierLocation:!!(u||o===156),isTopLevelTypeOnly:!!((i=(n=Ur(u,kl))==null?void 0:n.importClause)!=null&&i.isTypeOnly)||!!((s=Ur(u,Kl))!=null&&s.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!u&&IEe(u,e),replacementSpan:v$e(u)};function f(){let g=e.parent;if(Kl(g)){let p=g.getLastToken(t);if(Ie(e)&&p!==e){o=161,c=!0;return}return o=e.kind===156?void 0:156,F_e(g.moduleReference)?g:void 0}if(IEe(g,e)&&FEe(g.parent))return g;if(lh(g)||ly(g)){if(!g.parent.isTypeOnly&&(e.kind===19||e.kind===102||e.kind===28)&&(o=156),FEe(g))if(e.kind===20||e.kind===80)c=!0,o=161;else return g.parent.parent;return}if($E(e)&&Li(g))return o=156,e;if($E(e)&&kl(g))return o=156,F_e(g.moduleSpecifier)?g:void 0}}function v$e(e){var t;if(!e)return;let n=Fn(e,ud(kl,Kl))??e,i=n.getSourceFile();if(I2(n,i))return g_(n,i);E.assert(n.kind!==102&&n.kind!==276);let s=n.kind===272?NEe((t=n.importClause)==null?void 0:t.namedBindings)??n.moduleSpecifier:n.moduleReference,o={pos:n.getFirstToken().getStart(),end:s.pos};if(I2(o,i))return fy(o)}function NEe(e){var t;return xr((t=Ur(e,lh))==null?void 0:t.elements,n=>{var i;return!n.propertyName&&Cx(n.name.text)&&((i=ol(n.name.pos,e.getSourceFile(),e))==null?void 0:i.kind)!==28})}function IEe(e,t){return E_(e)&&(e.isTypeOnly||t===e.name&&lL(t))}function FEe(e){if(!F_e(e.parent.parent.moduleSpecifier)||e.parent.name)return!1;if(lh(e)){let t=NEe(e);return(t?e.elements.indexOf(t):e.elements.length)<2}return!0}function F_e(e){var t;return dc(e)?!0:!((t=Ur(Bm(e)?e.expression:e,$a))!=null&&t.text)}function b$e(e,t){if(!e)return;let n=Fn(e,s=>jv(s)||OEe(s)||Ms(s)?"quit":(ms(s)||Ko(s))&&!R2(s.parent)),i=Fn(t,s=>jv(s)||OEe(s)||Ms(s)?"quit":Ni(s));return n||i}function OEe(e){return e.parent&&Co(e.parent)&&(e.parent.body===e||e.kind===39)}function O_e(e,t,n=new Map){return i(e)||i(Cu(e.exportSymbol||e,t));function i(s){return!!(s.flags&788968)||t.isUnknownSymbol(s)||!!(s.flags&1536)&&Hp(n,ta(s))&&t.getExportsOfModule(s).some(o=>O_e(o,t,n))}}function S$e(e,t){let n=Cu(e,t).declarations;return!!bn(n)&&hi(n,AL)}function LEe(e,t){if(t.length===0)return!0;let n=!1,i,s=0,o=e.length;for(let c=0;c(e.ThisProperty="ThisProperty/",e.ClassMemberSnippet="ClassMemberSnippet/",e.TypeOnlyAlias="TypeOnlyAlias/",e.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",e.SwitchCases="SwitchCases/",e.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",e))(M_e||{}),R_e=(e=>(e[e.ThisType=1]="ThisType",e[e.SymbolMember=2]="SymbolMember",e[e.Export=4]="Export",e[e.Promise=8]="Promise",e[e.Nullable=16]="Nullable",e[e.ResolvedExport=32]="ResolvedExport",e[e.TypeOnlyAlias=64]="TypeOnlyAlias",e[e.ObjectLiteralMethod=128]="ObjectLiteralMethod",e[e.Ignore=256]="Ignore",e[e.ComputedPropertyName=512]="ComputedPropertyName",e[e.SymbolMemberNoExport=2]="SymbolMemberNoExport",e[e.SymbolMemberExport=6]="SymbolMemberExport",e))(R_e||{}),j_e=(e=>(e[e.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",e[e.Global=1]="Global",e[e.PropertyAccess=2]="PropertyAccess",e[e.MemberLike=3]="MemberLike",e[e.String=4]="String",e[e.None=5]="None",e))(j_e||{}),EM=[],B_e=Yu(()=>{let e=[];for(let t=83;t<=165;t++)e.push({name:Zs(t),kind:"keyword",kindModifiers:"",sortText:pu.GlobalsOrKeywords});return e})}});function J_e(){let e=new Map;function t(n){let i=e.get(n.name);(!i||q_e[i.kind]({name:p1(x.value,y),kindModifiers:"",kind:"string",sortText:pu.LocationPriority,replacementSpan:PH(t)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:e.isNewIdentifier,optionalReplacementSpan:p,entries:S}}default:return E.assertNever(e)}}function D$e(e,t,n,i,s,o,c,u,f){if(!i||!$a(i))return;let g=jEe(t,i,n,s,o,c,f);return g&&P$e(e,i,g,t,s,u)}function P$e(e,t,n,i,s,o){switch(n.kind){case 0:{let c=xr(n.paths,u=>u.name===e);return c&&kM(e,REe(c.extension),c.kind,[Pf(e)])}case 1:{let c=xr(n.symbols,u=>u.name===e);return c&&N_e(c,c.name,s,i,t,o)}case 2:return xr(n.types,c=>c.value===e)?kM(e,"","string",[Pf(e)]):void 0;default:return E.assertNever(n)}}function MEe(e){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:e.map(({name:s,kind:o,span:c,extension:u})=>({name:s,kind:o,kindModifiers:REe(u),sortText:pu.LocationPriority,replacementSpan:c}))}}function REe(e){switch(e){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return E.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return E.assertNever(e)}}function jEe(e,t,n,i,s,o,c){let u=z_e(t.parent);switch(u.kind){case 201:{let x=z_e(u.parent);return x.kind===205?{kind:0,paths:zEe(e,t,s,o,i,c)}:f(x)}case 303:return xa(u.parent)&&u.name===t?N$e(i,u.parent):g()||g(0);case 212:{let{expression:x,argumentExpression:C}=u;return t===eo(C)?BEe(i.getTypeAtLocation(x)):void 0}case 213:case 214:case 291:if(!q$e(t)&&!ef(u)){let x=TN.getArgumentInfoForCompletions(u.kind===291?u.parent:t,n,e);return x&&A$e(x.invocation,t,x,i)||g(0)}case 272:case 278:case 283:return{kind:0,paths:zEe(e,t,s,o,i,c)};case 296:let p=FL(i,u.parent.clauses),y=g();return y?{kind:2,types:y.types.filter(x=>!p.hasValue(x.value)),isNewIdentifier:!1}:void 0;default:return g()||g(0)}function f(p){switch(p.kind){case 233:case 183:{let x=Fn(u,C=>C.parent===p);return x?{kind:2,types:ZX(i.getTypeArgumentConstraint(x)),isNewIdentifier:!1}:void 0}case 199:let{indexType:y,objectType:S}=p;return CA(y,n)?BEe(i.getTypeFromTypeNode(S)):void 0;case 192:{let x=f(z_e(p.parent));if(!x)return;let C=w$e(p,u);return x.kind===1?{kind:1,symbols:x.symbols.filter(w=>!gs(C,w.name)),hasIndexSignature:x.hasIndexSignature}:{kind:2,types:x.types.filter(w=>!gs(C,w.value)),isNewIdentifier:!1}}default:return}}function g(p=4){let y=ZX(bL(t,i,p));if(y.length)return{kind:2,types:y,isNewIdentifier:!1}}}function z_e(e){switch(e.kind){case 196:return xw(e);case 217:return Gh(e);default:return e}}function w$e(e,t){return Ri(e.types,n=>n!==t&&S1(n)&&ca(n.literal)?n.literal.text:void 0)}function A$e(e,t,n,i){let s=!1,o=new Map,c=Zu(e)?E.checkDefined(Fn(t.parent,$d)):t,u=i.getCandidateSignaturesForStringLiteralCompletions(e,c),f=oa(u,g=>{if(!Du(g)&&n.argumentCount>g.parameters.length)return;let p=g.getTypeParameterAtPosition(n.argumentIndex);if(Zu(e)){let y=i.getTypeOfPropertyOfType(p,Zw(c.name));y&&(p=y)}return s=s||!!(p.flags&4),ZX(p,o)});return bn(f)?{kind:2,types:f,isNewIdentifier:s}:void 0}function BEe(e){return e&&{kind:1,symbols:Fr(e.getApparentProperties(),t=>!(t.valueDeclaration&&ju(t.valueDeclaration))),hasIndexSignature:GH(e)}}function N$e(e,t){let n=e.getContextualType(t);if(!n)return;let i=e.getContextualType(t,4);return{kind:1,symbols:$X(n,i,t,e),hasIndexSignature:GH(n)}}function ZX(e,t=new Map){return e?(e=IH(e),e.isUnion()?oa(e.types,n=>ZX(n,t)):e.isStringLiteral()&&!(e.flags&1024)&&Hp(t,e.value)?[e]:Ve):Ve}function nD(e,t,n){return{name:e,kind:t,extension:n}}function V_e(e){return nD(e,"directory",void 0)}function JEe(e,t,n){let i=W$e(e,t),s=e.length===0?void 0:Gl(t,e.length);return n.map(({name:o,kind:c,extension:u})=>o.includes(Oo)||o.includes(vP)?{name:o,kind:c,extension:u,span:s}:{name:o,kind:c,extension:u,span:i})}function zEe(e,t,n,i,s,o){return JEe(t.text,t.getStart(e)+1,I$e(e,t,n,i,s,o))}function I$e(e,t,n,i,s,o){let c=Su(t.text),u=$a(t)?vd(e,t):void 0,f=e.path,g=Xr(f),p=W_e(n,1,e,s,o,u);return U$e(c)||!n.baseUrl&&!n.paths&&(I_(c)||OK(c))?F$e(c,g,n,i,f,p):R$e(c,g,u,n,i,p,s)}function W_e(e,t,n,i,s,o){return{extensionsToSearch:Jp(O$e(e,i)),referenceKind:t,importingSourceFile:n,endingPreference:s?.importModuleSpecifierEnding,resolutionMode:o}}function F$e(e,t,n,i,s,o){return n.rootDirs?M$e(n.rootDirs,e,t,o,n,i,s):hs(yN(e,t,o,i,!0,s).values())}function O$e(e,t){let n=t?Ri(t.getAmbientModules(),o=>{let c=o.name.slice(1,-1);if(!(!c.startsWith("*.")||c.includes("/")))return c.slice(1)}):[],i=[...AE(e),n],s=Yl(e);return uL(s)?qw(e,i):i}function L$e(e,t,n,i){e=e.map(o=>wl(Ys(I_(o)?o:Qr(t,o))));let s=ba(e,o=>Cm(o,n,t,i)?n.substr(o.length):void 0);return ix([...e.map(o=>Qr(o,s)),n].map(o=>e1(o)),ux,Ou)}function M$e(e,t,n,i,s,o,c){let u=s.project||o.getCurrentDirectory(),f=!(o.useCaseSensitiveFileNames&&o.useCaseSensitiveFileNames()),g=L$e(e,u,n,f);return oa(g,p=>hs(yN(t,p,i,o,!0,c).values()))}function yN(e,t,n,i,s,o,c=J_e()){var u;e===void 0&&(e=""),e=Su(e),zh(e)||(e=Xr(e)),e===""&&(e="."+Oo),e=wl(e);let f=V0(t,e),g=zh(f)?f:Xr(f);if(!s){let x=Woe(g,i);if(x){let w=xE(x,i).typesVersions;if(typeof w=="object"){let D=(u=IO(w))==null?void 0:u.paths;if(D){let O=Xr(x),z=f.slice(wl(O).length);if(WEe(c,z,O,n,i,D))return c}}}}let p=!(i.useCaseSensitiveFileNames&&i.useCaseSensitiveFileNames());if(!CL(i,g))return c;let y=XH(i,g,n.extensionsToSearch,void 0,["./*"]);if(y)for(let x of y){if(x=Ys(x),o&&t1(x,o,t,p)===0)continue;let{name:C,extension:w}=VEe(Mc(x),i.getCompilationSettings(),n);c.add(nD(C,"script",w))}let S=kL(i,g);if(S)for(let x of S){let C=Mc(Ys(x));C!=="@types"&&c.add(V_e(C))}return c}function VEe(e,t,n){let i=lb.tryGetRealFileNameForNonJsDeclarationFileName(e);if(i)return{name:i,extension:bg(i)};if(n.referenceKind===0)return{name:e,extension:bg(e)};let s=rV(n.endingPreference,n.resolutionMode,t,n.importingSourceFile);if(s===3){if($c(e,n8))return{name:e,extension:bg(e)};let c=lb.tryGetJSExtensionForFile(e,t);return c?{name:g1(e,c),extension:c}:{name:e,extension:bg(e)}}if((s===0||s===1)&&$c(e,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:zu(e),extension:bg(e)};let o=lb.tryGetJSExtensionForFile(e,t);return o?{name:g1(e,o),extension:o}:{name:e,extension:bg(e)}}function WEe(e,t,n,i,s,o){let c=f=>o[f],u=(f,g)=>{let p=fC(f),y=fC(g),S=typeof p=="object"?p.prefix.length:f.length,x=typeof y=="object"?y.prefix.length:g.length;return Io(x,S)};return UEe(e,t,n,i,s,Qg(o),c,u)}function UEe(e,t,n,i,s,o,c,u){let f=[],g;for(let p of o){if(p===".")continue;let y=p.replace(/^\.\//,""),S=c(p);if(S){let x=fC(y);if(!x)continue;let C=typeof x=="object"&&WI(x,t);C&&(g===void 0||u(p,g)===-1)&&(g=p,f=f.filter(D=>!D.matchedPattern)),(typeof x=="string"||g===void 0||u(p,g)!==1)&&f.push({matchedPattern:C,results:j$e(y,S,t,n,i,s).map(({name:D,kind:O,extension:z})=>nD(D,O,z))})}}return f.forEach(p=>p.results.forEach(y=>e.add(y))),g!==void 0}function R$e(e,t,n,i,s,o,c){let{baseUrl:u,paths:f}=i,g=J_e(),p=Yl(i);if(u){let S=Ys(Qr(s.getCurrentDirectory(),u));yN(e,S,o,s,!1,void 0,g)}if(f){let S=P5(i,s);WEe(g,e,S,o,s,f)}let y=HEe(e);for(let S of J$e(e,y,c))g.add(nD(S,"external module name",void 0));if(XEe(s,i,t,y,o,g),uL(p)){let S=!1;if(y===void 0)for(let x of V$e(s,t)){let C=nD(x,"external module name",void 0);g.has(C.name)||(S=!0,g.add(C))}if(!S){let x=C=>{let w=Qr(C,"node_modules");CL(s,w)&&yN(e,w,o,s,!1,void 0,g)};if(y&&Qz(i)){let C=x;x=w=>{let D=bl(e);D.shift();let O=D.shift();if(!O)return C(w);if(ts(O,"@")){let X=D.shift();if(!X)return C(w);O=Qr(O,X)}let z=Qr(w,"node_modules",O),V=Qr(z,"package.json");if(VA(s,V)){let J=xE(V,s).exports;if(J){if(typeof J!="object"||J===null)return;let ie=Qg(J),B=D.join("/")+(D.length&&zh(e)?"/":""),Z=ab(i,n);UEe(g,B,z,o,s,ie,ae=>c2(qEe(J[ae],Z)),rU);return}}return C(w)}}Ld(t,x)}}return hs(g.values())}function qEe(e,t){if(typeof e=="string")return e;if(e&&typeof e=="object"&&!ss(e)){for(let n in e)if(n==="default"||t.includes(n)||Z8(t,n)){let i=e[n];return qEe(i,t)}}}function HEe(e){return U_e(e)?zh(e)?e:Xr(e):void 0}function j$e(e,t,n,i,s,o){if(!Sc(e,"*"))return e.includes("*")?Ve:f(e,"script");let c=e.slice(0,e.length-1),u=Jj(n,c);if(u===void 0)return e[e.length-2]==="/"?f(c,"directory"):oa(t,p=>{var y;return(y=GEe("",i,p,s,o))==null?void 0:y.map(({name:S,...x})=>({name:c+S,...x}))});return oa(t,g=>GEe(u,i,g,s,o));function f(g,p){return ts(g,n)?[{name:e1(g),kind:p,extension:void 0}]:Ve}}function GEe(e,t,n,i,s){if(!s.readDirectory)return;let o=fC(n);if(o===void 0||os(o))return;let c=V0(o.prefix),u=zh(o.prefix)?c:Xr(c),f=zh(o.prefix)?"":Mc(c),g=U_e(e),p=g?zh(e)?e:Xr(e):void 0,y=g?Qr(u,f+p):u,S=Ys(o.suffix),x=S&&Fw("_"+S),C=x?[g1(S,x),S]:[S],w=Ys(Qr(t,y)),D=g?w:wl(w)+f,O=S?C.map(J=>"**/*"+J):["./*"],z=Ri(XH(s,w,i.extensionsToSearch,void 0,O),J=>{let ie=X(J);if(ie){if(U_e(ie))return V_e(bl($Ee(ie))[1]);let{name:B,extension:Z}=VEe(ie,s.getCompilationSettings(),i);return nD(B,"script",Z)}}),V=S?Ve:Ri(kL(s,w),J=>J==="node_modules"?void 0:V_e(J));return[...z,...V];function X(J){return ba(C,ie=>{let B=B$e(Ys(J),D,ie);return B===void 0?void 0:$Ee(B)})}}function B$e(e,t,n){return ts(e,t)&&Sc(e,n)?e.slice(t.length,e.length-n.length):void 0}function $Ee(e){return e[0]===Oo?e.slice(1):e}function J$e(e,t,n){let s=n.getAmbientModules().map(o=>hp(o.name)).filter(o=>ts(o,e)&&!o.includes("*"));if(t!==void 0){let o=wl(t);return s.map(c=>w4(c,o))}return s}function z$e(e,t,n,i){let s=qi(e,t),o=lg(e.text,s.pos),c=o&&xr(o,C=>t>=C.pos&&t<=C.end);if(!c)return;let u=e.text.slice(c.pos,t),f=QEe.exec(u);if(!f)return;let[,g,p,y]=f,S=Xr(e.path),x=p==="path"?yN(y,S,W_e(n,0,e),i,!0,e.path):p==="types"?XEe(i,n,S,HEe(y),W_e(n,1,e)):E.fail();return JEe(y,c.pos+g.length,hs(x.values()))}function XEe(e,t,n,i,s,o=J_e()){let c=new Map,u=EL(()=>m3(t,e))||Ve;for(let g of u)f(g);for(let g of QH(n,e)){let p=Qr(Xr(g),"node_modules/@types");f(p)}return o;function f(g){if(CL(e,g))for(let p of kL(e,g)){let y=K8(p);if(!(t.types&&!gs(t.types,y)))if(i===void 0)c.has(y)||(o.add(nD(y,"external module name",void 0)),c.set(y,!0));else{let S=Qr(g,p),x=Kz(i,y,$h(e));x!==void 0&&yN(x,S,s,e,!1,void 0,o)}}}}function V$e(e,t){if(!e.readFile||!e.fileExists)return Ve;let n=[];for(let i of QH(t,e)){let s=xE(i,e);for(let o of YEe){let c=s[o];if(c)for(let u in c)so(c,u)&&!ts(u,"@types/")&&n.push(u)}}return n}function W$e(e,t){let n=Math.max(e.lastIndexOf(Oo),e.lastIndexOf(vP)),i=n!==-1?n+1:0,s=e.length-i;return s===0||hf(e.substr(i,s),99)?void 0:Gl(t+i,s)}function U$e(e){if(e&&e.length>=2&&e.charCodeAt(0)===46){let t=e.length>=3&&e.charCodeAt(1)===46?2:1,n=e.charCodeAt(t);return n===47||n===92}return!1}function U_e(e){return e.includes(Oo)}function q$e(e){return Ws(e.parent)&&Pl(e.parent.arguments)===e&&Ie(e.parent.expression)&&e.parent.expression.escapedText==="require"}var q_e,QEe,YEe,H$e=ze({"src/services/stringCompletions.ts"(){"use strict";qr(),H_e(),q_e={directory:0,script:1,"external module name":2},QEe=/^(\/\/\/\s*D$e,getStringLiteralCompletions:()=>C$e});var G$e=ze({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){"use strict";H$e()}}),TT={};Jn(TT,{CompletionKind:()=>j_e,CompletionSource:()=>M_e,SortText:()=>pu,StringCompletions:()=>KX,SymbolOriginInfoKind:()=>R_e,createCompletionDetails:()=>kM,createCompletionDetailsForSymbol:()=>N_e,getCompletionEntriesFromSymbols:()=>w_e,getCompletionEntryDetails:()=>n$e,getCompletionEntrySymbol:()=>i$e,getCompletionsAtPosition:()=>OGe,getPropertiesForObjectExpression:()=>$X,moduleSpecifierResolutionCacheAttemptLimit:()=>L_e,moduleSpecifierResolutionLimit:()=>YX});var H_e=ze({"src/services/_namespaces/ts.Completions.ts"(){"use strict";k$e(),G$e()}});function G_e(e,t,n,i){let s=Y$e(e,n,i);return(o,c,u)=>{let{directImports:f,indirectUsers:g}=$$e(e,t,s,c,n,i);return{indirectUsers:g,...X$e(f,o,c.exportKind,n,u)}}}function $$e(e,t,n,{exportingModuleSymbol:i,exportKind:s},o,c){let u=pT(),f=pT(),g=[],p=!!i.globalExports,y=p?void 0:[];return x(i),{directImports:g,indirectUsers:S()};function S(){if(p)return e;if(i.declarations)for(let V of i.declarations)Ov(V)&&t.has(V.getSourceFile().fileName)&&O(V);return y.map(Mn)}function x(V){let X=z(V);if(X){for(let J of X)if(u(J))switch(c&&c.throwIfCancellationRequested(),J.kind){case 213:if(ef(J)){C(J);break}if(!p){let B=J.parent;if(s===2&&B.kind===260){let{name:Z}=B;if(Z.kind===80){g.push(Z);break}}}break;case 80:break;case 271:D(J,J.name,Mr(J,32),!1);break;case 272:g.push(J);let ie=J.importClause&&J.importClause.namedBindings;ie&&ie.kind===274?D(J,ie.name,!1,!0):!p&&Sx(J)&&O(DM(J));break;case 278:J.exportClause?J.exportClause.kind===280?O(DM(J),!0):g.push(J):x(nXe(J,o));break;case 205:!p&&J.isTypeOf&&!J.qualifier&&w(J)&&O(J.getSourceFile(),!0),g.push(J);break;default:E.failBadSyntaxKind(J,"Unexpected import kind.")}}}function C(V){let X=Fn(V,eQ)||V.getSourceFile();O(X,!!w(V,!0))}function w(V,X=!1){return Fn(V,J=>X&&eQ(J)?"quit":Yp(J)&&ft(J.modifiers,Wx))}function D(V,X,J,ie){if(s===2)ie||g.push(V);else if(!p){let B=DM(V);E.assert(B.kind===312||B.kind===267),J||Q$e(B,X,o)?O(B,!0):O(B)}}function O(V,X=!1){if(E.assert(!p),!f(V)||(y.push(V),!X))return;let ie=o.getMergedSymbol(V.symbol);if(!ie)return;E.assert(!!(ie.flags&1536));let B=z(ie);if(B)for(let Z of B)ch(Z)||O(DM(Z),!0)}function z(V){return n.get(ta(V).toString())}}function X$e(e,t,n,i,s){let o=[],c=[];function u(S,x){o.push([S,x])}if(e)for(let S of e)f(S);return{importSearches:o,singleReferences:c};function f(S){if(S.kind===271){X_e(S)&&g(S.name);return}if(S.kind===80){g(S);return}if(S.kind===205){if(S.qualifier){let w=tf(S.qualifier);w.escapedText===xc(t)&&c.push(w)}else n===2&&c.push(S.argument.literal);return}if(S.moduleSpecifier.kind!==11)return;if(S.kind===278){S.exportClause&&kp(S.exportClause)&&p(S.exportClause);return}let{name:x,namedBindings:C}=S.importClause||{name:void 0,namedBindings:void 0};if(C)switch(C.kind){case 274:g(C.name);break;case 275:(n===0||n===1)&&p(C);break;default:E.assertNever(C)}if(x&&(n===1||n===2)&&(!s||x.escapedText===fL(t))){let w=i.getSymbolAtLocation(x);u(x,w)}}function g(S){n===2&&(!s||y(S.escapedText))&&u(S,i.getSymbolAtLocation(S))}function p(S){if(S)for(let x of S.elements){let{name:C,propertyName:w}=x;if(y((w||C).escapedText))if(w)c.push(w),(!s||C.escapedText===t.escapedName)&&u(C,i.getSymbolAtLocation(C));else{let D=x.kind===281&&x.propertyName?i.getExportSpecifierLocalTargetSymbol(x):i.getSymbolAtLocation(C);u(C,D)}}}function y(S){return S===t.escapedName||n!==0&&S==="default"}}function Q$e(e,t,n){let i=n.getSymbolAtLocation(t);return!!KEe(e,s=>{if(!Kc(s))return;let{exportClause:o,moduleSpecifier:c}=s;return!c&&o&&kp(o)&&o.elements.some(u=>n.getExportSpecifierLocalTargetSymbol(u)===i)})}function ZEe(e,t,n){var i;let s=[],o=e.getTypeChecker();for(let c of t){let u=n.valueDeclaration;if(u?.kind===312){for(let f of c.referencedFiles)e.getSourceFileFromReference(c,f)===u&&s.push({kind:"reference",referencingFile:c,ref:f});for(let f of c.typeReferenceDirectives){let g=(i=e.getResolvedTypeReferenceDirectives().get(f.fileName,f.resolutionMode||c.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective;g!==void 0&&g.resolvedFileName===u.fileName&&s.push({kind:"reference",referencingFile:c,ref:f})}}e3e(c,(f,g)=>{o.getSymbolAtLocation(g)===n&&s.push(Ro(f)?{kind:"implicit",literal:g,referencingFile:c}:{kind:"import",literal:g})})}return s}function Y$e(e,t,n){let i=new Map;for(let s of e)n&&n.throwIfCancellationRequested(),e3e(s,(o,c)=>{let u=t.getSymbolAtLocation(c);if(u){let f=ta(u).toString(),g=i.get(f);g||i.set(f,g=[]),g.push(o)}});return i}function KEe(e,t){return Qt(e.kind===312?e.statements:e.body.statements,n=>t(n)||eQ(n)&&Qt(n.body&&n.body.statements,t))}function e3e(e,t){if(e.externalModuleIndicator||e.imports!==void 0)for(let n of e.imports)t(aE(n),n);else KEe(e,n=>{switch(n.kind){case 278:case 272:{let i=n;i.moduleSpecifier&&ca(i.moduleSpecifier)&&t(i,i.moduleSpecifier);break}case 271:{let i=n;X_e(i)&&t(i,i.moduleReference.expression);break}}})}function t3e(e,t,n,i){return i?s():s()||o();function s(){var f;let{parent:g}=e,p=g.parent;if(t.exportSymbol)return g.kind===211?(f=t.declarations)!=null&&f.some(x=>x===g)&&Yn(p)?S(p,!1):void 0:c(t.exportSymbol,u(g));{let x=K$e(g,e);if(x&&Mr(x,32))return Kl(x)&&x.moduleReference===e?i?void 0:{kind:0,symbol:n.getSymbolAtLocation(x.name)}:c(t,u(x));if(jm(g))return c(t,0);if(hc(g))return y(g);if(hc(p))return y(p);if(Yn(g))return S(g,!0);if(Yn(p))return S(p,!0);if(FC(g)||nW(g))return c(t,0)}function y(x){if(!x.symbol.parent)return;let C=x.isExportEquals?2:1;return{kind:1,symbol:t,exportInfo:{exportingModuleSymbol:x.symbol.parent,exportKind:C}}}function S(x,C){let w;switch(mc(x)){case 1:w=0;break;case 2:w=2;break;default:return}let D=C?n.getSymbolAtLocation(cne(Vs(x.left,ho))):t;return D&&c(D,w)}}function o(){if(!eXe(e))return;let g=n.getImmediateAliasedSymbol(t);if(!g||(g=tXe(g,n),g.escapedName==="export="&&(g=Z$e(g,n),g===void 0)))return;let p=fL(g);if(p===void 0||p==="default"||p===t.escapedName)return{kind:0,symbol:g}}function c(f,g){let p=$_e(f,g,n);return p&&{kind:1,symbol:f,exportInfo:p}}function u(f){return Mr(f,2048)?1:0}}function Z$e(e,t){var n,i;if(e.flags&2097152)return t.getImmediateAliasedSymbol(e);let s=E.checkDefined(e.valueDeclaration);if(hc(s))return(n=Ur(s.expression,Rd))==null?void 0:n.symbol;if(Yn(s))return(i=Ur(s.right,Rd))==null?void 0:i.symbol;if(Li(s))return s.symbol}function K$e(e,t){let n=Ni(e)?e:Ma(e)?Dk(e):void 0;return n?e.name!==t||ib(n.parent)?void 0:uc(n.parent.parent)?n.parent.parent:void 0:e}function eXe(e){let{parent:t}=e;switch(t.kind){case 271:return t.name===e&&X_e(t);case 276:return!t.propertyName;case 273:case 274:return E.assert(t.name===e),!0;case 208:return Qn(e)&&Bv(t.parent.parent);default:return!1}}function $_e(e,t,n){let i=e.parent;if(!i)return;let s=n.getMergedSymbol(i);return IA(s)?{exportingModuleSymbol:s,exportKind:t}:void 0}function tXe(e,t){if(e.declarations)for(let n of e.declarations){if(Eu(n)&&!n.propertyName&&!n.parent.parent.moduleSpecifier)return t.getExportSpecifierLocalTargetSymbol(n)||e;if(Cr(n)&&gg(n.expression)&&!Di(n.name))return t.getSymbolAtLocation(n);if(sf(n)&&Yn(n.parent.parent)&&mc(n.parent.parent)===2)return t.getExportSpecifierLocalTargetSymbol(n.name)}return e}function nXe(e,t){return t.getMergedSymbol(DM(e).symbol)}function DM(e){if(e.kind===213)return e.getSourceFile();let{parent:t}=e;return t.kind===312?t:(E.assert(t.kind===268),Vs(t.parent,eQ))}function eQ(e){return e.kind===267&&e.name.kind===11}function X_e(e){return e.moduleReference.kind===283&&e.moduleReference.expression.kind===11}var Q_e,Y_e,rXe=ze({"src/services/importTracker.ts"(){"use strict";qr(),Q_e=(e=>(e[e.Named=0]="Named",e[e.Default=1]="Default",e[e.ExportEquals=2]="ExportEquals",e))(Q_e||{}),Y_e=(e=>(e[e.Import=0]="Import",e[e.Export=1]="Export",e))(Y_e||{})}});function Pg(e,t=1){return{kind:t,node:e.name||e,context:iXe(e)}}function n3e(e){return e&&e.kind===void 0}function iXe(e){if(ku(e))return oS(e);if(e.parent){if(!ku(e.parent)&&!hc(e.parent)){if(Qn(e)){let n=Yn(e.parent)?e.parent:ho(e.parent)&&Yn(e.parent.parent)&&e.parent.parent.left===e.parent?e.parent.parent:void 0;if(n&&mc(n)!==0)return oS(n)}if(Gd(e.parent)||tb(e.parent))return e.parent.parent;if(W2(e.parent)||eb(e.parent)||U4(e.parent))return e.parent;if($a(e)){let n=hw(e);if(n){let i=Fn(n,s=>ku(s)||Ai(s)||Mk(s));return ku(i)?oS(i):i}}let t=Fn(e,Na);return t?oS(t.parent):void 0}if(e.parent.name===e||Cc(e.parent)||hc(e.parent)||(gx(e.parent)||Ma(e.parent))&&e.parent.propertyName===e||e.kind===90&&Mr(e.parent,2080))return oS(e.parent)}}function oS(e){if(e)switch(e.kind){case 260:return!Tl(e.parent)||e.parent.declarations.length!==1?e:uc(e.parent.parent)?e.parent.parent:Ok(e.parent.parent)?oS(e.parent.parent):e.parent;case 208:return oS(e.parent.parent);case 276:return e.parent.parent.parent;case 281:case 274:return e.parent.parent;case 273:case 280:return e.parent;case 226:return Il(e.parent)?e.parent:e;case 250:case 249:return{start:e.initializer,end:e.expression};case 303:case 304:return a0(e.parent)?oS(Fn(e.parent,t=>Yn(t)||Ok(t))):e;default:return e}}function Z_e(e,t,n){if(!n)return;let i=n3e(n)?wM(n.start,t,n.end):wM(n,t);return i.start!==e.start||i.length!==e.length?{contextSpan:i}:void 0}function sXe(e,t,n,i,s){let o=m_(i,s),c={use:1},u=kT.getReferencedSymbolsForNode(s,o,e,n,t,c),f=e.getTypeChecker(),g=kT.getAdjustedNode(o,c),p=aXe(g)?f.getSymbolAtLocation(g):void 0;return!u||!u.length?void 0:Ri(u,({definition:y,references:S})=>y&&{definition:f.runWithCancellationToken(t,x=>lXe(y,x,o)),references:S.map(x=>_Xe(x,p))})}function aXe(e){return e.kind===90||!!cE(e)||Tw(e)||e.kind===137&&Cc(e.parent)}function oXe(e,t,n,i,s){let o=m_(i,s),c,u=r3e(e,t,n,o,s);if(o.parent.kind===211||o.parent.kind===208||o.parent.kind===212||o.kind===108)c=u&&[...u];else if(u){let g=JI(u),p=new Map;for(;!g.isEmpty();){let y=g.dequeue();if(!Hp(p,Va(y.node)))continue;c=_n(c,y);let S=r3e(e,t,n,y.node,y.node.pos);S&&g.enqueue(...S)}}let f=e.getTypeChecker();return Kt(c,g=>pXe(g,f))}function r3e(e,t,n,i,s){if(i.kind===312)return;let o=e.getTypeChecker();if(i.parent.kind===304){let c=[];return kT.getReferenceEntriesForShorthandPropertyAssignment(i,o,u=>c.push(Pg(u))),c}else if(i.kind===108||f_(i.parent)){let c=o.getSymbolAtLocation(i);return c.valueDeclaration&&[Pg(c.valueDeclaration)]}else return i3e(s,i,e,n,t,{implementations:!0,use:1})}function cXe(e,t,n,i,s,o,c){return Kt(s3e(kT.getReferencedSymbolsForNode(s,i,e,n,t,o)),u=>c(u,i,e.getTypeChecker()))}function i3e(e,t,n,i,s,o={},c=new Set(i.map(u=>u.fileName))){return s3e(kT.getReferencedSymbolsForNode(e,t,n,i,s,o,c))}function s3e(e){return e&&oa(e,t=>t.references)}function lXe(e,t,n){let i=(()=>{switch(e.type){case 0:{let{symbol:p}=e,{displayParts:y,kind:S}=a3e(p,t,n),x=y.map(D=>D.text).join(""),C=p.declarations&&Pl(p.declarations),w=C?us(C)||C:n;return{...PM(w),name:x,kind:S,displayParts:y,context:oS(C)}}case 1:{let{node:p}=e;return{...PM(p),name:p.text,kind:"label",displayParts:[D_(p.text,17)]}}case 2:{let{node:p}=e,y=Zs(p.kind);return{...PM(p),name:y,kind:"keyword",displayParts:[{text:y,kind:"keyword"}]}}case 3:{let{node:p}=e,y=t.getSymbolAtLocation(p),S=y&&_0.getSymbolDisplayPartsDocumentationAndSymbolKind(t,y,p.getSourceFile(),tS(p),p).displayParts||[Pf("this")];return{...PM(p),name:"this",kind:"var",displayParts:S}}case 4:{let{node:p}=e;return{...PM(p),name:p.text,kind:"var",displayParts:[D_(Qc(p),8)]}}case 5:return{textSpan:fy(e.reference),sourceFile:e.file,name:e.reference.fileName,kind:"string",displayParts:[D_(`"${e.reference.fileName}"`,8)]};default:return E.assertNever(e)}})(),{sourceFile:s,textSpan:o,name:c,kind:u,displayParts:f,context:g}=i;return{containerKind:"",containerName:"",fileName:s.fileName,kind:u,name:c,textSpan:o,displayParts:f,...Z_e(o,s,g)}}function PM(e){let t=e.getSourceFile();return{sourceFile:t,textSpan:wM(Na(e)?e.expression:e,t)}}function a3e(e,t,n){let i=kT.getIntersectingMeaningFromDeclarations(n,e),s=e.declarations&&Pl(e.declarations)||n,{displayParts:o,symbolKind:c}=_0.getSymbolDisplayPartsDocumentationAndSymbolKind(t,e,s.getSourceFile(),s,s,i);return{displayParts:o,kind:c}}function uXe(e,t,n,i,s){return{...tQ(e),...i&&fXe(e,t,n,s)}}function _Xe(e,t){let n=o3e(e);return t?{...n,isDefinition:e.kind!==0&&c3e(e.node,t)}:n}function o3e(e){let t=tQ(e);if(e.kind===0)return{...t,isWriteAccess:!1};let{kind:n,node:i}=e;return{...t,isWriteAccess:efe(i),isInString:n===2?!0:void 0}}function tQ(e){if(e.kind===0)return{textSpan:e.textSpan,fileName:e.fileName};{let t=e.node.getSourceFile(),n=wM(e.node,t);return{textSpan:n,fileName:t.fileName,...Z_e(n,t,e.context)}}}function fXe(e,t,n,i){if(e.kind!==0&&Ie(t)){let{node:s,kind:o}=e,c=s.parent,u=t.text,f=sf(c);if(f||LA(c)&&c.name===s&&c.dotDotDotToken===void 0){let g={prefixText:u+": "},p={suffixText:": "+u};if(o===3)return g;if(o===4)return p;if(f){let y=c.parent;return xa(y)&&Yn(y.parent)&&gg(y.parent.left)?g:p}else return g}else if(E_(c)&&!c.propertyName){let g=Eu(t.parent)?n.getExportSpecifierLocalTargetSymbol(t.parent):n.getSymbolAtLocation(t);return gs(g.declarations,c)?{prefixText:u+" as "}:Hf}else if(Eu(c)&&!c.propertyName)return t===e.node||n.getSymbolAtLocation(t)===n.getSymbolAtLocation(e.node)?{prefixText:u+" as "}:{suffixText:" as "+u}}if(e.kind!==0&&R_(e.node)&&ho(e.node.parent)){let s=MH(i);return{prefixText:s,suffixText:s}}return Hf}function pXe(e,t){let n=tQ(e);if(e.kind!==0){let{node:i}=e;return{...n,...dXe(i,t)}}else return{...n,kind:"",displayParts:[]}}function dXe(e,t){let n=t.getSymbolAtLocation(ku(e)&&e.name?e.name:e);return n?a3e(n,t,e):e.kind===210?{kind:"interface",displayParts:[Pu(21),Pf("object literal"),Pu(22)]}:e.kind===231?{kind:"local class",displayParts:[Pu(21),Pf("anonymous local class"),Pu(22)]}:{kind:db(e),displayParts:[]}}function mXe(e){let t=tQ(e);if(e.kind===0)return{fileName:t.fileName,span:{textSpan:t.textSpan,kind:"reference"}};let n=efe(e.node),i={textSpan:t.textSpan,kind:n?"writtenReference":"reference",isInString:e.kind===2?!0:void 0,...t.contextSpan&&{contextSpan:t.contextSpan}};return{fileName:t.fileName,span:i}}function wM(e,t,n){let i=e.getStart(t),s=(n||e).getEnd();return $a(e)&&s-i>2&&(E.assert(n===void 0),i+=1,s-=1),Xc(i,s)}function K_e(e){return e.kind===0?e.textSpan:wM(e.node,e.node.getSourceFile())}function efe(e){let t=cE(e);return!!t&&gXe(t)||e.kind===90||Ax(e)}function c3e(e,t){var n;if(!t)return!1;let i=cE(e)||(e.kind===90?e.parent:Tw(e)||e.kind===137&&Cc(e.parent)?e.parent.parent:void 0),s=i&&Yn(i)?i.left:void 0;return!!(i&&((n=t.declarations)!=null&&n.some(o=>o===i||o===s)))}function gXe(e){if(e.flags&33554432)return!0;switch(e.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!a0(e.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!e.body;case 260:case 172:return!!e.initializer||ib(e.parent);case 173:case 171:case 355:case 348:return!1;default:return E.failBadSyntaxKind(e)}}var tfe,nfe,rfe,kT,hXe=ze({"src/services/findAllReferences.ts"(){"use strict";qr(),l3e(),tfe=(e=>(e[e.Symbol=0]="Symbol",e[e.Label=1]="Label",e[e.Keyword=2]="Keyword",e[e.This=3]="This",e[e.String=4]="String",e[e.TripleSlashReference=5]="TripleSlashReference",e))(tfe||{}),nfe=(e=>(e[e.Span=0]="Span",e[e.Node=1]="Node",e[e.StringLiteral=2]="StringLiteral",e[e.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",e[e.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",e))(nfe||{}),rfe=(e=>(e[e.Other=0]="Other",e[e.References=1]="References",e[e.Rename=2]="Rename",e))(rfe||{}),(e=>{function t(Ce,Ue,it,dt,gt,fe={},we=new Set(dt.map(Be=>Be.fileName))){var Be,yt;if(Ue=n(Ue,fe),Li(Ue)){let Zt=S6.getReferenceAtPosition(Ue,Ce,it);if(!Zt?.file)return;let tn=it.getTypeChecker().getMergedSymbol(Zt.file.symbol);if(tn)return g(it,tn,!1,dt,we);let ln=it.getFileIncludeReasons();return ln?[{definition:{type:5,reference:Zt.reference,file:Ue},references:s(Zt.file,ln,it)||Ve}]:void 0}if(!fe.implementations){let Zt=y(Ue,dt,gt);if(Zt)return Zt}let G=it.getTypeChecker(),vt=G.getSymbolAtLocation(Cc(Ue)&&Ue.parent.name||Ue);if(!vt){if(!fe.implementations&&$a(Ue)){if(pL(Ue)){let Zt=it.getFileIncludeReasons(),tn=(yt=(Be=it.getResolvedModule(Ue.getSourceFile(),Ue.text,vd(Ue.getSourceFile(),Ue)))==null?void 0:Be.resolvedModule)==null?void 0:yt.resolvedFileName,ln=tn?it.getSourceFile(tn):void 0;if(ln)return[{definition:{type:4,node:Ue},references:s(ln,Zt,it)||Ve}]}return Ye(Ue,dt,G,gt)}return}if(vt.escapedName==="export=")return g(it,vt.parent,!1,dt,we);let wt=c(vt,it,dt,gt,fe,we);if(wt&&!(vt.flags&33554432))return wt;let Re=o(Ue,vt,G),ot=Re&&c(Re,it,dt,gt,fe,we),Dt=S(vt,Ue,dt,we,G,gt,fe);return u(it,wt,Dt,ot)}e.getReferencedSymbolsForNode=t;function n(Ce,Ue){return Ue.use===1?Ce=SH(Ce):Ue.use===2&&(Ce=tL(Ce)),Ce}e.getAdjustedNode=n;function i(Ce,Ue,it,dt=new Set(it.map(gt=>gt.fileName))){var gt,fe;let we=(gt=Ue.getSourceFile(Ce))==null?void 0:gt.symbol;if(we)return((fe=g(Ue,we,!1,it,dt)[0])==null?void 0:fe.references)||Ve;let Be=Ue.getFileIncludeReasons(),yt=Ue.getSourceFile(Ce);return yt&&Be&&s(yt,Be,Ue)||Ve}e.getReferencesForFileName=i;function s(Ce,Ue,it){let dt,gt=Ue.get(Ce.path)||Ve;for(let fe of gt)if(I1(fe)){let we=it.getSourceFileByPath(fe.file),Be=N3(it,fe);XC(Be)&&(dt=_n(dt,{kind:0,fileName:we.fileName,textSpan:fy(Be)}))}return dt}function o(Ce,Ue,it){if(Ce.parent&&b8(Ce.parent)){let dt=it.getAliasedSymbol(Ue),gt=it.getMergedSymbol(dt);if(dt!==gt)return gt}}function c(Ce,Ue,it,dt,gt,fe){let we=Ce.flags&1536&&Ce.declarations&&xr(Ce.declarations,Li);if(!we)return;let Be=Ce.exports.get("export="),yt=g(Ue,Ce,!!Be,it,fe);if(!Be||!fe.has(we.fileName))return yt;let G=Ue.getTypeChecker();return Ce=Cu(Be,G),u(Ue,yt,S(Ce,void 0,it,fe,G,dt,gt))}function u(Ce,...Ue){let it;for(let dt of Ue)if(!(!dt||!dt.length)){if(!it){it=dt;continue}for(let gt of dt){if(!gt.definition||gt.definition.type!==0){it.push(gt);continue}let fe=gt.definition.symbol,we=Qo(it,yt=>!!yt.definition&&yt.definition.type===0&&yt.definition.symbol===fe);if(we===-1){it.push(gt);continue}let Be=it[we];it[we]={definition:Be.definition,references:Be.references.concat(gt.references).sort((yt,G)=>{let vt=f(Ce,yt),wt=f(Ce,G);if(vt!==wt)return Io(vt,wt);let Re=K_e(yt),ot=K_e(G);return Re.start!==ot.start?Io(Re.start,ot.start):Io(Re.length,ot.length)})}}}return it}function f(Ce,Ue){let it=Ue.kind===0?Ce.getSourceFile(Ue.fileName):Ue.node.getSourceFile();return Ce.getSourceFiles().indexOf(it)}function g(Ce,Ue,it,dt,gt){E.assert(!!Ue.valueDeclaration);let fe=Ri(ZEe(Ce,dt,Ue),Be=>{if(Be.kind==="import"){let yt=Be.literal.parent;if(S1(yt)){let G=Vs(yt.parent,ch);if(it&&!G.qualifier)return}return Pg(Be.literal)}else if(Be.kind==="implicit"){let yt=Be.literal.text!==sy&&l3(Be.referencingFile,G=>G.transformFlags&2?kg(G)||W2(G)||nb(G)?G:void 0:"skip")||Be.referencingFile.statements[0]||Be.referencingFile;return Pg(yt)}else return{kind:0,fileName:Be.referencingFile.fileName,textSpan:fy(Be.ref)}});if(Ue.declarations)for(let Be of Ue.declarations)switch(Be.kind){case 312:break;case 267:gt.has(Be.getSourceFile().fileName)&&fe.push(Pg(Be.name));break;default:E.assert(!!(Ue.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}let we=Ue.exports.get("export=");if(we?.declarations)for(let Be of we.declarations){let yt=Be.getSourceFile();if(gt.has(yt.fileName)){let G=Yn(Be)&&Cr(Be.left)?Be.left.expression:hc(Be)?E.checkDefined(Ya(Be,95,yt)):us(Be)||Be;fe.push(Pg(G))}}return fe.length?[{definition:{type:0,symbol:Ue},references:fe}]:Ve}function p(Ce){return Ce.kind===148&&Gx(Ce.parent)&&Ce.parent.operator===148}function y(Ce,Ue,it){if(B3(Ce.kind))return Ce.kind===116&&Xx(Ce.parent)||Ce.kind===148&&!p(Ce)?void 0:xe(Ue,Ce.kind,it,Ce.kind===148?p:void 0);if(Wk(Ce.parent)&&Ce.parent.name===Ce)return ve(Ue,it);if(Ux(Ce)&&rc(Ce.parent))return[{definition:{type:2,node:Ce},references:[Pg(Ce)]}];if(kA(Ce)){let dt=X9(Ce.parent,Ce.text);return dt&&se(dt.parent,dt)}else if(fH(Ce))return se(Ce.parent,Ce);if(i6(Ce))return Hi(Ce,Ue,it);if(Ce.kind===108)return ji(Ce)}function S(Ce,Ue,it,dt,gt,fe,we){let Be=Ue&&w(Ce,Ue,gt,!Fs(we))||Ce,yt=Ue?Kn(Ue,Be):7,G=[],vt=new z(it,dt,Ue?C(Ue):0,gt,fe,yt,we,G),wt=!Fs(we)||!Be.declarations?void 0:xr(Be.declarations,Eu);if(wt)_t(wt.name,Be,wt,vt.createSearch(Ue,Ce,void 0),vt,!0,!0);else if(Ue&&Ue.kind===90&&Be.escapedName==="default"&&Be.parent)at(Ue,Be,vt),V(Ue,Be,{exportingModuleSymbol:Be.parent,exportKind:1},vt);else{let Re=vt.createSearch(Ue,Be,void 0,{allSearchSymbols:Ue?fn(Be,Ue,gt,we.use===2,!!we.providePrefixAndSuffixTextForRename,!!we.implementations):[Be]});x(Be,vt,Re)}return G}function x(Ce,Ue,it){let dt=ae(Ce);if(dt)ke(dt,dt.getSourceFile(),it,Ue,!(Li(dt)&&!gs(Ue.sourceFiles,dt)));else for(let gt of Ue.sourceFiles)Ue.cancellationToken.throwIfCancellationRequested(),B(gt,it,Ue)}function C(Ce){switch(Ce.kind){case 176:case 137:return 1;case 80:if(ei(Ce.parent))return E.assert(Ce.parent.name===Ce),2;default:return 0}}function w(Ce,Ue,it,dt){let{parent:gt}=Ue;return Eu(gt)&&dt?mt(Ue,Ce,gt,it):ba(Ce.declarations,fe=>{if(!fe.parent){if(Ce.flags&33554432)return;E.fail(`Unexpected symbol at ${E.formatSyntaxKind(Ue.kind)}: ${E.formatSymbol(Ce)}`)}return nf(fe.parent)&&b1(fe.parent.parent)?it.getPropertyOfType(it.getTypeFromTypeNode(fe.parent.parent),Ce.name):void 0})}let D;(Ce=>{Ce[Ce.None=0]="None",Ce[Ce.Constructor=1]="Constructor",Ce[Ce.Class=2]="Class"})(D||(D={}));function O(Ce){if(!(Ce.flags&33555968))return;let Ue=Ce.declarations&&xr(Ce.declarations,it=>!Li(it)&&!Pc(it));return Ue&&Ue.symbol}class z{constructor(Ue,it,dt,gt,fe,we,Be,yt){this.sourceFiles=Ue,this.sourceFilesSet=it,this.specialSearchKind=dt,this.checker=gt,this.cancellationToken=fe,this.searchMeaning=we,this.options=Be,this.result=yt,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=pT(),this.markSeenReExportRHS=pT(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Ue){return this.sourceFilesSet.has(Ue.fileName)}getImportSearches(Ue,it){return this.importTracker||(this.importTracker=G_e(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Ue,it,this.options.use===2)}createSearch(Ue,it,dt,gt={}){let{text:fe=hp(xc(cC(it)||O(it)||it)),allSearchSymbols:we=[it]}=gt,Be=Yo(fe),yt=this.options.implementations&&Ue?na(Ue,it,this.checker):void 0;return{symbol:it,comingFrom:dt,text:fe,escapedText:Be,parents:yt,allSearchSymbols:we,includes:G=>gs(we,G)}}referenceAdder(Ue){let it=ta(Ue),dt=this.symbolIdToReferences[it];return dt||(dt=this.symbolIdToReferences[it]=[],this.result.push({definition:{type:0,symbol:Ue},references:dt})),(gt,fe)=>dt.push(Pg(gt,fe))}addStringOrCommentReference(Ue,it){this.result.push({definition:void 0,references:[{kind:0,fileName:Ue,textSpan:it}]})}markSearchedSymbols(Ue,it){let dt=Va(Ue),gt=this.sourceFileToSeenSymbols[dt]||(this.sourceFileToSeenSymbols[dt]=new Set),fe=!1;for(let we of it)fe=Yy(gt,ta(we))||fe;return fe}}function V(Ce,Ue,it,dt){let{importSearches:gt,singleReferences:fe,indirectUsers:we}=dt.getImportSearches(Ue,it);if(fe.length){let Be=dt.referenceAdder(Ue);for(let yt of fe)J(yt,dt)&&Be(yt)}for(let[Be,yt]of gt)Me(Be.getSourceFile(),dt.createSearch(Be,yt,1),dt);if(we.length){let Be;switch(it.exportKind){case 0:Be=dt.createSearch(Ce,Ue,1);break;case 1:Be=dt.options.use===2?void 0:dt.createSearch(Ce,Ue,1,{text:"default"});break;case 2:break}if(Be)for(let yt of we)B(yt,Be,dt)}}function X(Ce,Ue,it,dt,gt,fe,we,Be){let yt=G_e(Ce,new Set(Ce.map(Re=>Re.fileName)),Ue,it),{importSearches:G,indirectUsers:vt,singleReferences:wt}=yt(dt,{exportKind:we?1:0,exportingModuleSymbol:gt},!1);for(let[Re]of G)Be(Re);for(let Re of wt)Ie(Re)&&ch(Re.parent)&&Be(Re);for(let Re of vt)for(let ot of oe(Re,we?"default":fe)){let Dt=Ue.getSymbolAtLocation(ot),Zt=ft(Dt?.declarations,tn=>!!Ur(tn,hc));Ie(ot)&&!gx(ot.parent)&&(Dt===dt||Zt)&&Be(ot)}}e.eachExportReference=X;function J(Ce,Ue){return he(Ce,Ue)?Ue.options.use!==2?!0:Ie(Ce)?!(gx(Ce.parent)&&Ce.escapedText==="default"):!1:!1}function ie(Ce,Ue){if(Ce.declarations)for(let it of Ce.declarations){let dt=it.getSourceFile();Me(dt,Ue.createSearch(it,Ce,0),Ue,Ue.includesSourceFile(dt))}}function B(Ce,Ue,it){a$(Ce).get(Ue.escapedText)!==void 0&&Me(Ce,Ue,it)}function Z(Ce,Ue){return a0(Ce.parent.parent)?Ue.getPropertySymbolOfDestructuringAssignment(Ce):void 0}function ae(Ce){let{declarations:Ue,flags:it,parent:dt,valueDeclaration:gt}=Ce;if(gt&&(gt.kind===218||gt.kind===231))return gt;if(!Ue)return;if(it&8196){let Be=xr(Ue,yt=>M_(yt,2)||ju(yt));return Be?f1(Be,263):void 0}if(Ue.some(LA))return;let fe=dt&&!(Ce.flags&262144);if(fe&&!(IA(dt)&&!dt.globalExports))return;let we;for(let Be of Ue){let yt=tS(Be);if(we&&we!==yt||!yt||yt.kind===312&&!K_(yt))return;if(we=yt,uo(we)){let G;for(;G=pz(we);)we=G}}return fe?we.getSourceFile():we}function _e(Ce,Ue,it,dt=it){return $(Ce,Ue,it,()=>!0,dt)||!1}e.isSymbolReferencedInFile=_e;function $(Ce,Ue,it,dt,gt=it){let fe=F_(Ce.parent,Ce.parent.parent)?Da(Ue.getSymbolsOfParameterPropertyDeclaration(Ce.parent,Ce.text)):Ue.getSymbolAtLocation(Ce);if(fe)for(let we of oe(it,fe.name,gt)){if(!Ie(we)||we===Ce||we.escapedText!==Ce.escapedText)continue;let Be=Ue.getSymbolAtLocation(we);if(Be===fe||Ue.getShorthandAssignmentValueSymbol(we.parent)===fe||Eu(we.parent)&&mt(we,Be,we.parent,Ue)===fe){let yt=dt(we);if(yt)return yt}}}e.eachSymbolReferenceInFile=$;function H(Ce,Ue){return Fr(oe(Ue,Ce),gt=>!!cE(gt)).reduce((gt,fe)=>{let we=dt(fe);return!ft(gt.declarationNames)||we===gt.depth?(gt.declarationNames.push(fe),gt.depth=we):wevt===gt)&&dt(we,yt))return!0}return!1}e.someSignatureUsage=K;function oe(Ce,Ue,it=Ce){return Ri(Se(Ce,Ue,it),dt=>{let gt=m_(Ce,dt);return gt===Ce?void 0:gt})}function Se(Ce,Ue,it=Ce){let dt=[];if(!Ue||!Ue.length)return dt;let gt=Ce.text,fe=gt.length,we=Ue.length,Be=gt.indexOf(Ue,it.pos);for(;Be>=0&&!(Be>it.end);){let yt=Be+we;(Be===0||!r1(gt.charCodeAt(Be-1),99))&&(yt===fe||!r1(gt.charCodeAt(yt),99))&&dt.push(Be),Be=gt.indexOf(Ue,Be+we+1)}return dt}function se(Ce,Ue){let it=Ce.getSourceFile(),dt=Ue.text,gt=Ri(oe(it,dt,Ce),fe=>fe===Ue||kA(fe)&&X9(fe,dt)===Ue?Pg(fe):void 0);return[{definition:{type:1,node:Ue},references:gt}]}function Y(Ce,Ue){switch(Ce.kind){case 81:if(k1(Ce.parent))return!0;case 80:return Ce.text.length===Ue.length;case 15:case 11:{let it=Ce;return(Q9(it)||gH(Ce)||coe(Ce)||Ws(Ce.parent)&&C2(Ce.parent)&&Ce.parent.arguments[1]===Ce)&&it.text.length===Ue.length}case 9:return Q9(Ce)&&Ce.text.length===Ue.length;case 90:return Ue.length===7;default:return!1}}function ve(Ce,Ue){let it=oa(Ce,dt=>(Ue.throwIfCancellationRequested(),Ri(oe(dt,"meta",dt),gt=>{let fe=gt.parent;if(Wk(fe))return Pg(fe)})));return it.length?[{definition:{type:2,node:it[0].node},references:it}]:void 0}function xe(Ce,Ue,it,dt){let gt=oa(Ce,fe=>(it.throwIfCancellationRequested(),Ri(oe(fe,Zs(Ue),fe),we=>{if(we.kind===Ue&&(!dt||dt(we)))return Pg(we)})));return gt.length?[{definition:{type:2,node:gt[0].node},references:gt}]:void 0}function Me(Ce,Ue,it,dt=!0){return it.cancellationToken.throwIfCancellationRequested(),ke(Ce,Ce,Ue,it,dt)}function ke(Ce,Ue,it,dt,gt){if(dt.markSearchedSymbols(Ue,it.allSearchSymbols))for(let fe of Se(Ue,it.text,Ce))be(Ue,fe,it,dt,gt)}function he(Ce,Ue){return!!(eS(Ce)&Ue.searchMeaning)}function be(Ce,Ue,it,dt,gt){let fe=m_(Ce,Ue);if(!Y(fe,it.text)){!dt.options.implementations&&(dt.options.findInStrings&&nS(Ce,Ue)||dt.options.findInComments&&xoe(Ce,Ue))&&dt.addStringOrCommentReference(Ce.fileName,Gl(Ue,it.text.length));return}if(!he(fe,dt))return;let we=dt.checker.getSymbolAtLocation(fe);if(!we)return;let Be=fe.parent;if(E_(Be)&&Be.propertyName===fe)return;if(Eu(Be)){E.assert(fe.kind===80),_t(fe,we,Be,it,dt,gt);return}let yt=Cn(it,we,fe,dt);if(!yt){Qe(we,it,dt);return}switch(dt.specialSearchKind){case 0:gt&&at(fe,yt,dt);break;case 1:ht(fe,Ce,it,dt);break;case 2:Je(fe,it,dt);break;default:E.assertNever(dt.specialSearchKind)}Qn(fe)&&Ma(fe.parent)&&Bv(fe.parent.parent.parent)&&(we=fe.parent.symbol,!we)||Oe(fe,we,it,dt)}function _t(Ce,Ue,it,dt,gt,fe,we){E.assert(!we||!!gt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");let{parent:Be,propertyName:yt,name:G}=it,vt=Be.parent,wt=mt(Ce,Ue,it,gt.checker);if(!we&&!dt.includes(wt))return;if(yt?Ce===yt?(vt.moduleSpecifier||Re(),fe&>.options.use!==2&>.markSeenReExportRHS(G)&&at(G,E.checkDefined(it.symbol),gt)):gt.markSeenReExportRHS(Ce)&&Re():gt.options.use===2&&G.escapedText==="default"||Re(),!Fs(gt.options)||we){let Dt=Ce.escapedText==="default"||it.name.escapedText==="default"?1:0,Zt=E.checkDefined(it.symbol),tn=$_e(Zt,Dt,gt.checker);tn&&V(Ce,Zt,tn,gt)}if(dt.comingFrom!==1&&vt.moduleSpecifier&&!yt&&!Fs(gt.options)){let ot=gt.checker.getExportSpecifierLocalTargetSymbol(it);ot&&ie(ot,gt)}function Re(){fe&&at(Ce,wt,gt)}}function mt(Ce,Ue,it,dt){return me(Ce,it)&&dt.getExportSpecifierLocalTargetSymbol(it)||Ue}function me(Ce,Ue){let{parent:it,propertyName:dt,name:gt}=Ue;return E.assert(dt===Ce||gt===Ce),dt?dt===Ce:!it.parent.moduleSpecifier}function Oe(Ce,Ue,it,dt){let gt=t3e(Ce,Ue,dt.checker,it.comingFrom===1);if(!gt)return;let{symbol:fe}=gt;gt.kind===0?Fs(dt.options)||ie(fe,dt):V(Ce,fe,gt.exportInfo,dt)}function Qe({flags:Ce,valueDeclaration:Ue},it,dt){let gt=dt.checker.getShorthandAssignmentValueSymbol(Ue),fe=Ue&&us(Ue);!(Ce&33554432)&&fe&&it.includes(gt)&&at(fe,gt,dt)}function at(Ce,Ue,it){let{kind:dt,symbol:gt}="kind"in Ue?Ue:{kind:void 0,symbol:Ue};if(it.options.use===2&&Ce.kind===90)return;let fe=it.referenceAdder(gt);it.options.implementations?cn(Ce,fe,it):fe(Ce,dt)}function ht(Ce,Ue,it,dt){L3(Ce)&&at(Ce,it.symbol,dt);let gt=()=>dt.referenceAdder(it.symbol);if(ei(Ce.parent))E.assert(Ce.kind===90||Ce.parent.name===Ce),lt(it.symbol,Ue,gt());else{let fe=Ki(Ce);fe&&(Gt(fe,gt()),Un(fe,dt))}}function Je(Ce,Ue,it){at(Ce,Ue.symbol,it);let dt=Ce.parent;if(it.options.use===2||!ei(dt))return;E.assert(dt.name===Ce);let gt=it.referenceAdder(Ue.symbol);for(let fe of dt.members)Ik(fe)&&zs(fe)&&fe.body&&fe.body.forEachChild(function we(Be){Be.kind===110?gt(Be):!As(Be)&&!ei(Be)&&Be.forEachChild(we)})}function lt(Ce,Ue,it){let dt=Jt(Ce);if(dt&&dt.declarations)for(let gt of dt.declarations){let fe=Ya(gt,137,Ue);E.assert(gt.kind===176&&!!fe),it(fe)}Ce.exports&&Ce.exports.forEach(gt=>{let fe=gt.valueDeclaration;if(fe&&fe.kind===174){let we=fe.body;we&&Ii(we,110,Be=>{L3(Be)&&it(Be)})}})}function Jt(Ce){return Ce.members&&Ce.members.get("__constructor")}function Gt(Ce,Ue){let it=Jt(Ce.symbol);if(it&&it.declarations)for(let dt of it.declarations){E.assert(dt.kind===176);let gt=dt.body;gt&&Ii(gt,108,fe=>{lH(fe)&&Ue(fe)})}}function Tn(Ce){return!!Jt(Ce.symbol)}function Un(Ce,Ue){if(Tn(Ce))return;let it=Ce.symbol,dt=Ue.createSearch(void 0,it,void 0);x(it,Ue,dt)}function cn(Ce,Ue,it){if(ih(Ce)&&Fi(Ce.parent)){Ue(Ce);return}if(Ce.kind!==80)return;Ce.parent.kind===304&&Wi(Ce,it.checker,Ue);let dt=zt(Ce);if(dt){Ue(dt);return}let gt=Fn(Ce,Be=>!k_(Be.parent)&&!Ei(Be.parent)&&!g2(Be.parent)),fe=gt.parent;if(j7(fe)&&fe.type===gt&&it.markSeenContainingTypeReference(fe))if(Q0(fe))we(fe.initializer);else if(As(fe)&&fe.body){let Be=fe.body;Be.kind===241?Rv(Be,yt=>{yt.expression&&we(yt.expression)}):we(Be)}else h2(fe)&&we(fe.expression);function we(Be){Ft(Be)&&Ue(Be)}}function zt(Ce){return Ie(Ce)||Cr(Ce)?zt(Ce.parent):t0(Ce)?Ur(Ce.parent.parent,ud(ei,Wu)):void 0}function Ft(Ce){switch(Ce.kind){case 217:return Ft(Ce.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Lr(Ce,Ue,it,dt){if(Ce===Ue)return!0;let gt=ta(Ce)+","+ta(Ue),fe=it.get(gt);if(fe!==void 0)return fe;it.set(gt,!1);let we=!!Ce.declarations&&Ce.declarations.some(Be=>lE(Be).some(yt=>{let G=dt.getTypeAtLocation(yt);return!!G&&!!G.symbol&&Lr(G.symbol,Ue,it,dt)}));return it.set(gt,we),we}function ji(Ce){let Ue=rw(Ce,!1);if(!Ue)return;let it=256;switch(Ue.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:it&=ty(Ue),Ue=Ue.parent;break;default:return}let dt=Ue.getSourceFile(),gt=Ri(oe(dt,"super",Ue),fe=>{if(fe.kind!==108)return;let we=rw(fe,!1);return we&&zs(we)===!!it&&we.parent.symbol===Ue.symbol?Pg(fe):void 0});return[{definition:{type:0,symbol:Ue.symbol},references:gt}]}function ii(Ce){return Ce.kind===80&&Ce.parent.kind===169&&Ce.parent.name===Ce}function Hi(Ce,Ue,it){let dt=__(Ce,!1,!1),gt=256;switch(dt.kind){case 174:case 173:if(qp(dt)){gt&=ty(dt),dt=dt.parent;break}case 172:case 171:case 176:case 177:case 178:gt&=ty(dt),dt=dt.parent;break;case 312:if(Bc(dt)||ii(Ce))return;case 262:case 218:break;default:return}let fe=oa(dt.kind===312?Ue:[dt.getSourceFile()],Be=>(it.throwIfCancellationRequested(),oe(Be,"this",Li(dt)?Be:dt).filter(yt=>{if(!i6(yt))return!1;let G=__(yt,!1,!1);if(!Rd(G))return!1;switch(dt.kind){case 218:case 262:return dt.symbol===G.symbol;case 174:case 173:return qp(dt)&&dt.symbol===G.symbol;case 231:case 263:case 210:return G.parent&&Rd(G.parent)&&dt.symbol===G.parent.symbol&&zs(G)===!!gt;case 312:return G.kind===312&&!Bc(G)&&!ii(yt)}}))).map(Be=>Pg(Be));return[{definition:{type:3,node:ba(fe,Be=>ms(Be.node.parent)?Be.node:void 0)||Ce},references:fe}]}function Ye(Ce,Ue,it,dt){let gt=eL(Ce,it),fe=oa(Ue,we=>(dt.throwIfCancellationRequested(),Ri(oe(we,Ce.text),Be=>{if($a(Be)&&Be.text===Ce.text)if(gt){let yt=eL(Be,it);if(gt!==it.getStringType()&>===yt)return Pg(Be,2)}else return Vx(Be)&&!I2(Be,we)?void 0:Pg(Be,2)})));return[{definition:{type:4,node:Ce},references:fe}]}function fn(Ce,Ue,it,dt,gt,fe){let we=[];return An(Ce,Ue,it,dt,!(dt&>),(Be,yt,G)=>{G&&Sn(Ce)!==Sn(G)&&(G=void 0),we.push(G||yt||Be)},()=>!fe),we}function An(Ce,Ue,it,dt,gt,fe,we){let Be=cN(Ue);if(Be){let Dt=it.getShorthandAssignmentValueSymbol(Ue.parent);if(Dt&&dt)return fe(Dt,void 0,void 0,3);let Zt=it.getContextualType(Be.parent),tn=Zt&&ba(uM(Be,it,Zt,!0),ce=>Re(ce,4));if(tn)return tn;let ln=Z(Ue,it),W=ln&&fe(ln,void 0,void 0,4);if(W)return W;let j=Dt&&fe(Dt,void 0,void 0,3);if(j)return j}let yt=o(Ue,Ce,it);if(yt){let Dt=fe(yt,void 0,void 0,1);if(Dt)return Dt}let G=Re(Ce);if(G)return G;if(Ce.valueDeclaration&&F_(Ce.valueDeclaration,Ce.valueDeclaration.parent)){let Dt=it.getSymbolsOfParameterPropertyDeclaration(Vs(Ce.valueDeclaration,ms),Ce.name);return E.assert(Dt.length===2&&!!(Dt[0].flags&1)&&!!(Dt[1].flags&4)),Re(Ce.flags&1?Dt[1]:Dt[0])}let vt=Zo(Ce,281);if(!dt||vt&&!vt.propertyName){let Dt=vt&&it.getExportSpecifierLocalTargetSymbol(vt);if(Dt){let Zt=fe(Dt,void 0,void 0,1);if(Zt)return Zt}}if(!dt){let Dt;return gt?Dt=LA(Ue.parent)?dL(it,Ue.parent):void 0:Dt=ot(Ce,it),Dt&&Re(Dt,4)}if(E.assert(dt),gt){let Dt=ot(Ce,it);return Dt&&Re(Dt,4)}function Re(Dt,Zt){return ba(it.getRootSymbols(Dt),tn=>fe(Dt,tn,void 0,Zt)||(tn.parent&&tn.parent.flags&96&&we(tn)?Ot(tn.parent,tn.name,it,ln=>fe(Dt,tn,ln,Zt)):void 0))}function ot(Dt,Zt){let tn=Zo(Dt,208);if(tn&&LA(tn))return dL(Zt,tn)}}function Ot(Ce,Ue,it,dt){let gt=new Map;return fe(Ce);function fe(we){if(!(!(we.flags&96)||!Hp(gt,ta(we))))return ba(we.declarations,Be=>ba(lE(Be),yt=>{let G=it.getTypeAtLocation(yt),vt=G&&G.symbol&&it.getPropertyOfType(G,Ue);return G&&vt&&(ba(it.getRootSymbols(vt),dt)||fe(G.symbol))}))}}function Sn(Ce){return Ce.valueDeclaration?!!(Ju(Ce.valueDeclaration)&256):!1}function Cn(Ce,Ue,it,dt){let{checker:gt}=dt;return An(Ue,it,gt,!1,dt.options.use!==2||!!dt.options.providePrefixAndSuffixTextForRename,(fe,we,Be,yt)=>(Be&&Sn(Ue)!==Sn(Be)&&(Be=void 0),Ce.includes(Be||we||fe)?{symbol:we&&!(lc(fe)&6)?we:fe,kind:yt}:void 0),fe=>!(Ce.parents&&!Ce.parents.some(we=>Lr(fe.parent,we,dt.inheritsFromCache,gt))))}function Kn(Ce,Ue){let it=eS(Ce),{declarations:dt}=Ue;if(dt){let gt;do{gt=it;for(let fe of dt){let we=SA(fe);we&it&&(it|=we)}}while(it!==gt)}return it}e.getIntersectingMeaningFromDeclarations=Kn;function Fi(Ce){return Ce.flags&33554432?!(Wu(Ce)||Xp(Ce)):Uk(Ce)?Q0(Ce):To(Ce)?!!Ce.body:ei(Ce)||VP(Ce)}function Wi(Ce,Ue,it){let dt=Ue.getSymbolAtLocation(Ce),gt=Ue.getShorthandAssignmentValueSymbol(dt.valueDeclaration);if(gt)for(let fe of gt.getDeclarations())SA(fe)&1&&it(fe)}e.getReferenceEntriesForShorthandPropertyAssignment=Wi;function Ii(Ce,Ue,it){vs(Ce,dt=>{dt.kind===Ue&&it(dt),Ii(dt,Ue,it)})}function Ki(Ce){return Rz($9(Ce).parent)}function na(Ce,Ue,it){let dt=r6(Ce)?Ce.parent:void 0,gt=dt&&it.getTypeAtLocation(dt.expression),fe=Ri(gt&&(gt.isUnionOrIntersection()?gt.types:gt.symbol===Ue.parent?void 0:[gt]),we=>we.symbol&&we.symbol.flags&96?we.symbol:void 0);return fe.length===0?void 0:fe}function Fs(Ce){return Ce.use===2&&Ce.providePrefixAndSuffixTextForRename}})(kT||(kT={}))}}),Eo={};Jn(Eo,{Core:()=>kT,DefinitionKind:()=>tfe,EntryKind:()=>nfe,ExportKind:()=>Q_e,FindReferencesUse:()=>rfe,ImportExport:()=>Y_e,createImportTracker:()=>G_e,findModuleReferences:()=>ZEe,findReferenceOrRenameEntries:()=>cXe,findReferencedSymbols:()=>sXe,getContextNode:()=>oS,getExportInfo:()=>$_e,getImplementationsAtPosition:()=>oXe,getImportOrExportSymbol:()=>t3e,getReferenceEntriesForNode:()=>i3e,getTextSpanOfEntry:()=>K_e,isContextWithStartAndEndNode:()=>n3e,isDeclarationOfSymbol:()=>c3e,isWriteAccessForReference:()=>efe,nodeEntry:()=>Pg,toContextSpan:()=>Z_e,toHighlightSpan:()=>mXe,toReferenceEntry:()=>o3e,toRenameLocation:()=>uXe});var l3e=ze({"src/services/_namespaces/ts.FindAllReferences.ts"(){"use strict";rXe(),hXe()}});function u3e(e,t,n,i,s){var o;let c=f3e(t,n,e),u=c&&[PXe(c.reference.fileName,c.fileName,c.unverified)]||Ve;if(c?.file)return u;let f=m_(t,n);if(f===t)return;let{parent:g}=f,p=e.getTypeChecker();if(f.kind===164||Ie(f)&&cO(g)&&g.tagName===f)return vXe(p,f)||Ve;if(kA(f)){let D=X9(f.parent,f.text);return D?[ife(p,D,"label",f.text,void 0)]:void 0}if(f.kind===107){let D=Fn(f.parent,O=>rc(O)?"quit":To(O));return D?[AM(p,D)]:void 0}if(f.kind===135){let D=Fn(f,z=>To(z));return D&&ft(D.modifiers,z=>z.kind===134)?[AM(p,D)]:void 0}if(f.kind===127){let D=Fn(f,z=>To(z));return D&&D.asteriskToken?[AM(p,D)]:void 0}if(Ux(f)&&rc(f.parent)){let D=f.parent.parent,{symbol:O,failedAliasResolution:z}=nQ(D,p,s),V=Fr(D.members,rc),X=O?p.symbolToString(O,D):"",J=f.getSourceFile();return Kt(V,ie=>{let{pos:B}=Wd(ie);return B=ma(J.text,B),ife(p,ie,"constructor","static {}",X,!1,z,{start:B,length:6})})}let{symbol:y,failedAliasResolution:S}=nQ(f,p,s),x=f;if(i&&S){let D=Qt([f,...y?.declarations||Ve],z=>Fn(z,Xee)),O=D&&Xk(D);O&&({symbol:y,failedAliasResolution:S}=nQ(O,p,s),x=O)}if(!y&&pL(x)){let D=(o=e.getResolvedModule(t,x.text,vd(t,x)))==null?void 0:o.resolvedModule;if(D)return[{name:x.text,fileName:D.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:Gl(0,0),failedAliasResolution:S,isAmbient:Jl(D.resolvedFileName),unverified:x!==f}]}if(!y)return es(u,CXe(f,p));if(i&&hi(y.declarations,D=>D.getSourceFile().fileName===t.fileName))return;let C=AXe(p,f);if(C&&!(Zu(f.parent)&&NXe(C))){let D=AM(p,C,S);if(p.getRootSymbols(y).some(O=>yXe(O,C)))return[D];{let O=rD(p,y,f,S,C)||Ve;return f.kind===108?[D,...O]:[...O,D]}}if(f.parent.kind===304){let D=p.getShorthandAssignmentValueSymbol(y.valueDeclaration),O=D?.declarations?D.declarations.map(z=>bN(z,p,D,f,!1,S)):Ve;return es(O,_3e(p,f))}if(Rc(f)&&Ma(g)&&Gp(g.parent)&&f===(g.propertyName||g.name)){let D=OA(f),O=p.getTypeAtLocation(g.parent);return D===void 0?Ve:oa(O.isUnion()?O.types:[O],z=>{let V=z.getProperty(D);return V&&rD(p,V,f)})}let w=_3e(p,f);return es(u,w.length?w:rD(p,y,f,S))}function yXe(e,t){var n;return e===t.symbol||e===t.symbol.parent||pl(t.parent)||!Iv(t.parent)&&e===((n=Ur(t.parent,Rd))==null?void 0:n.symbol)}function _3e(e,t){let n=cN(t);if(n){let i=n&&e.getContextualType(n.parent);if(i)return oa(uM(n,e,i,!1),s=>rD(e,s,t))}return Ve}function vXe(e,t){let n=Fn(t,Ml);if(!(n&&n.name))return;let i=Fn(n,ei);if(!i)return;let s=Bd(i);if(!s)return;let o=eo(s.expression),c=Bl(o)?o.symbol:e.getSymbolAtLocation(o);if(!c)return;let u=Ci(Jk(n.name)),f=Yc(n)?e.getPropertyOfType(e.getTypeOfSymbol(c),u):e.getPropertyOfType(e.getDeclaredTypeOfSymbol(c),u);if(f)return rD(e,f,t)}function f3e(e,t,n){var i,s;let o=iD(e.referencedFiles,t);if(o){let f=n.getSourceFileFromReference(e,o);return f&&{reference:o,fileName:f.fileName,file:f,unverified:!1}}let c=iD(e.typeReferenceDirectives,t);if(c){let f=(i=n.getResolvedTypeReferenceDirectives().get(c.fileName,c.resolutionMode||e.impliedNodeFormat))==null?void 0:i.resolvedTypeReferenceDirective,g=f&&n.getSourceFile(f.resolvedFileName);return g&&{reference:c,fileName:g.fileName,file:g,unverified:!1}}let u=iD(e.libReferenceDirectives,t);if(u){let f=n.getLibFileFromReference(u);return f&&{reference:u,fileName:f.fileName,file:f,unverified:!1}}if(e.imports.length||e.moduleAugmentations.length){let f=R3(e,t),g;if(pL(f)&&Al(f.text)&&(g=n.getResolvedModule(e,f.text,vd(e,f)))){let p=(s=g.resolvedModule)==null?void 0:s.resolvedFileName,y=p||V0(Xr(e.fileName),f.text);return{file:n.getSourceFile(y),fileName:y,reference:{pos:f.getStart(),end:f.getEnd(),fileName:f.text},unverified:!p}}}}function bXe(e,t){let n=t.symbol.name;if(!afe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.target.symbol}function p3e(e,t){if(!t.aliasSymbol)return!1;let n=t.aliasSymbol.name;if(!afe.has(n))return!1;let i=e.resolveName(n,void 0,788968,!1);return!!i&&i===t.aliasSymbol}function SXe(e,t,n,i){var s,o;if(Ir(t)&4&&bXe(e,t))return vN(e.getTypeArguments(t)[0],e,n,i);if(p3e(e,t)&&t.aliasTypeArguments)return vN(t.aliasTypeArguments[0],e,n,i);if(Ir(t)&32&&t.target&&p3e(e,t.target)){let c=(o=(s=t.aliasSymbol)==null?void 0:s.declarations)==null?void 0:o[0];if(c&&Xp(c)&&Tp(c.type)&&c.type.typeArguments)return vN(e.getTypeAtLocation(c.type.typeArguments[0]),e,n,i)}return[]}function xXe(e,t,n){let i=m_(t,n);if(i===t)return;if(Wk(i.parent)&&i.parent.name===i)return vN(e.getTypeAtLocation(i.parent),e,i.parent,!1);let{symbol:s,failedAliasResolution:o}=nQ(i,e,!1);if(!s)return;let c=e.getTypeOfSymbolAtLocation(s,i),u=TXe(s,c,e),f=u&&vN(u,e,i,o),[g,p]=f&&f.length!==0?[u,f]:[c,vN(c,e,i,o)];return p.length?[...SXe(e,g,i,o),...p]:!(s.flags&111551)&&s.flags&788968?rD(e,Cu(s,e),i,o):void 0}function vN(e,t,n,i){return oa(e.isUnion()&&!(e.flags&32)?e.types:[e],s=>s.symbol&&rD(t,s.symbol,n,i))}function TXe(e,t,n){if(t.symbol===e||e.valueDeclaration&&t.symbol&&Ni(e.valueDeclaration)&&e.valueDeclaration.initializer===t.symbol.valueDeclaration){let i=t.getCallSignatures();if(i.length===1)return n.getReturnTypeOfSignature(Da(i))}}function kXe(e,t,n){let i=u3e(e,t,n);if(!i||i.length===0)return;let s=iD(t.referencedFiles,n)||iD(t.typeReferenceDirectives,n)||iD(t.libReferenceDirectives,n);if(s)return{definitions:i,textSpan:fy(s)};let o=m_(t,n),c=Gl(o.getStart(),o.getWidth());return{definitions:i,textSpan:c}}function CXe(e,t){return Ri(t.getIndexInfosAtLocation(e),n=>n.declaration&&AM(t,n.declaration))}function nQ(e,t,n){let i=t.getSymbolAtLocation(e),s=!1;if(i?.declarations&&i.flags&2097152&&!n&&EXe(e,i.declarations[0])){let o=t.getAliasedSymbol(i);if(o.declarations)return{symbol:o};s=!0}return{symbol:i,failedAliasResolution:s}}function EXe(e,t){return e.kind!==80?!1:e.parent===t?!0:t.kind!==274}function DXe(e){if(!sE(e))return!1;let t=Fn(e,n=>pl(n)?!0:sE(n)?!1:"quit");return!!t&&mc(t)===5}function rD(e,t,n,i,s){let o=Fr(t.declarations,y=>y!==s),c=Fr(o,y=>!DXe(y)),u=ft(c)?c:o;return f()||g()||Kt(u,y=>bN(y,e,t,n,!1,i));function f(){if(t.flags&32&&!(t.flags&19)&&(L3(n)||n.kind===137)){let y=xr(o,ei)||E.fail("Expected declaration to have at least one class-like declaration");return p(y.members,!0)}}function g(){return uH(n)||hH(n)?p(o,!1):void 0}function p(y,S){if(!y)return;let x=y.filter(S?Cc:As),C=x.filter(w=>!!w.body);return x.length?C.length!==0?C.map(w=>bN(w,e,t,n)):[bN(Pa(x),e,t,n,!1,i)]:void 0}}function bN(e,t,n,i,s,o){let c=t.symbolToString(n),u=_0.getSymbolKind(t,n,i),f=n.parent?t.symbolToString(n.parent,i):"";return ife(t,e,u,c,f,s,o)}function ife(e,t,n,i,s,o,c,u){let f=t.getSourceFile();if(!u){let g=us(t)||t;u=g_(g,f)}return{fileName:f.fileName,textSpan:u,kind:n,name:i,containerKind:void 0,containerName:s,...Eo.toContextSpan(u,f,Eo.getContextNode(t)),isLocal:!sfe(e,t),isAmbient:!!(t.flags&33554432),unverified:o,failedAliasResolution:c}}function sfe(e,t){if(e.isDeclarationVisible(t))return!0;if(!t.parent)return!1;if(Q0(t.parent)&&t.parent.initializer===t)return sfe(e,t.parent);switch(t.kind){case 172:case 177:case 178:case 174:if(M_(t,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return sfe(e,t.parent);default:return!1}}function AM(e,t,n){return bN(t,e,t.symbol,t,!1,n)}function iD(e,t){return xr(e,n=>DP(n,t))}function PXe(e,t,n){return{fileName:t,textSpan:Xc(0,0),kind:"script",name:e,containerName:void 0,containerKind:void 0,unverified:n}}function wXe(e){let t=Fn(e,i=>!r6(i)),n=t?.parent;return n&&Iv(n)&&o5(n)===t?n:void 0}function AXe(e,t){let n=wXe(t),i=n&&e.getResolvedSignature(n);return Ur(i&&i.declaration,s=>As(s)&&!Tg(s))}function NXe(e){switch(e.kind){case 176:case 185:case 180:return!0;default:return!1}}var afe,IXe=ze({"src/services/goToDefinition.ts"(){"use strict";qr(),afe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),S6={};Jn(S6,{createDefinitionInfo:()=>bN,findReferenceInPosition:()=>iD,getDefinitionAndBoundSpan:()=>kXe,getDefinitionAtPosition:()=>u3e,getReferenceAtPosition:()=>f3e,getTypeDefinitionAtPosition:()=>xXe});var FXe=ze({"src/services/_namespaces/ts.GoToDefinition.ts"(){"use strict";IXe()}});function OXe(e){return e.includeInlayParameterNameHints==="literals"||e.includeInlayParameterNameHints==="all"}function LXe(e){return e.includeInlayParameterNameHints==="literals"}function d3e(e){return e.interactiveInlayHints===!0}function MXe(e){let{file:t,program:n,span:i,cancellationToken:s,preferences:o}=e,c=t.text,u=n.getCompilerOptions(),f=Df(t,o),g=n.getTypeChecker(),p=[];return y(t),p;function y(se){if(!(!se||se.getFullWidth()===0)){switch(se.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:s.throwIfCancellationRequested()}if(x7(i,se.pos,se.getFullWidth())&&!(Ei(se)&&!t0(se)))return o.includeInlayVariableTypeHints&&Ni(se)||o.includeInlayPropertyDeclarationTypeHints&&Is(se)?z(se):o.includeInlayEnumMemberValueHints&&sb(se)?D(se):OXe(o)&&(Ws(se)||Kv(se))?V(se):(o.includeInlayFunctionParameterTypeHints&&To(se)&&sF(se)&&ae(se),o.includeInlayFunctionLikeReturnTypeHints&&S(se)&&B(se)),vs(se,y)}}function S(se){return Co(se)||uo(se)||al(se)||kc(se)||Sf(se)}function x(se,Y,ve,xe){let Me=`${xe?"...":""}${se}`,ke;d3e(o)?(ke=[Se(Me,Y),{text:":"}],Me=""):Me+=":",p.push({text:Me,position:ve,kind:"Parameter",whitespaceAfter:!0,displayParts:ke})}function C(se,Y){p.push({text:typeof se=="string"?`: ${se}`:"",displayParts:typeof se=="string"?void 0:[{text:": "},...se],position:Y,kind:"Type",whitespaceBefore:!0})}function w(se,Y){p.push({text:`= ${se}`,position:Y,kind:"Enum",whitespaceBefore:!0})}function D(se){if(se.initializer)return;let Y=g.getConstantValue(se);Y!==void 0&&w(Y.toString(),se.end)}function O(se){return se.symbol&&se.symbol.flags&1536}function z(se){if(!se.initializer||Ms(se.name)||Ni(se)&&!oe(se)||Xl(se))return;let ve=g.getTypeAtLocation(se);if(O(ve))return;let xe=H(ve);if(xe){let Me=typeof xe=="string"?xe:xe.map(he=>he.text).join("");if(o.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&lx(se.name.getText(),Me))return;C(xe,se.name.end)}}function V(se){let Y=se.arguments;if(!Y||!Y.length)return;let ve=[],xe=g.getResolvedSignatureForSignatureHelp(se,ve);if(!xe||!ve.length)return;let Me=0;for(let ke of Y){let he=eo(ke);if(LXe(o)&&!ie(he)){Me++;continue}let be=0;if(qd(he)){let mt=g.getTypeAtLocation(he.expression);if(g.isTupleType(mt)){let{elementFlags:me,fixedLength:Oe}=mt.target;if(Oe===0)continue;let Qe=Qo(me,ht=>!(ht&1));(Qe<0?Oe:Qe)>0&&(be=Qe<0?Oe:Qe)}}let _t=g.getParameterIdentifierInfoAtPosition(xe,Me);if(Me=Me+(be||1),_t){let{parameter:mt,parameterName:me,isRestParameter:Oe}=_t;if(!(o.includeInlayParameterNameHintsWhenArgumentMatchesName||!X(he,me))&&!Oe)continue;let at=Ci(me);if(J(he,at))continue;x(at,mt,ke.getStart(),Oe)}}}function X(se,Y){return Ie(se)?se.text===Y:Cr(se)?se.name.text===Y:!1}function J(se,Y){if(!hf(Y,u.target,zw(t.scriptKind)))return!1;let ve=lg(c,se.pos);if(!ve?.length)return!1;let xe=m3e(Y);return ft(ve,Me=>xe.test(c.substring(Me.pos,Me.end)))}function ie(se){switch(se.kind){case 224:{let Y=se.operand;return Av(Y)||Ie(Y)&&RE(Y.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{let Y=se.escapedText;return K(Y)||RE(Y)}}return Av(se)}function B(se){if(Co(se)&&!Ya(se,21,t)||yp(se)||!se.body)return;let ve=g.getSignatureFromDeclaration(se);if(!ve)return;let xe=g.getReturnTypeOfSignature(ve);if(O(xe))return;let Me=H(xe);Me&&C(Me,Z(se))}function Z(se){let Y=Ya(se,22,t);return Y?Y.end:se.parameters.end}function ae(se){let Y=g.getSignatureFromDeclaration(se);if(Y)for(let ve=0;ve{let Me=g.typeToTypeNode(se,void 0,71286784);E.assertIsDefined(Me,"should always get typenode"),ve.writeNode(4,Me,t,xe)})}function H(se){if(!d3e(o))return $(se);let Y=71286784,ve=g.typeToTypeNode(se,void 0,Y);E.assertIsDefined(ve,"should always get typenode");let xe=[];return Me(ve),xe;function Me(be){if(!be)return;let _t=Zs(be.kind);if(_t){xe.push({text:_t});return}if(Av(be)){xe.push({text:he(be)});return}switch(be.kind){case 80:let mt=be,me=ur(mt),Oe=mt.symbol&&mt.symbol.declarations&&mt.symbol.declarations.length&&us(mt.symbol.declarations[0]);Oe?xe.push(Se(me,Oe)):xe.push({text:me});break;case 166:let Qe=be;Me(Qe.left),xe.push({text:"."}),Me(Qe.right);break;case 182:let at=be;at.assertsModifier&&xe.push({text:"asserts "}),Me(at.parameterName),at.type&&(xe.push({text:" is "}),Me(at.type));break;case 183:let ht=be;Me(ht.typeName),ht.typeArguments&&(xe.push({text:"<"}),ke(ht.typeArguments,", "),xe.push({text:">"}));break;case 168:let Je=be;Je.modifiers&&ke(Je.modifiers," "),Me(Je.name),Je.constraint&&(xe.push({text:" extends "}),Me(Je.constraint)),Je.default&&(xe.push({text:" = "}),Me(Je.default));break;case 169:let lt=be;lt.modifiers&&ke(lt.modifiers," "),lt.dotDotDotToken&&xe.push({text:"..."}),Me(lt.name),lt.questionToken&&xe.push({text:"?"}),lt.type&&(xe.push({text:": "}),Me(lt.type));break;case 185:let Jt=be;xe.push({text:"new "}),Jt.typeParameters&&(xe.push({text:"<"}),ke(Jt.typeParameters,", "),xe.push({text:">"})),xe.push({text:"("}),ke(Jt.parameters,", "),xe.push({text:")"}),xe.push({text:" => "}),Me(Jt.type);break;case 186:let Gt=be;xe.push({text:"typeof "}),Me(Gt.exprName),Gt.typeArguments&&(xe.push({text:"<"}),ke(Gt.typeArguments,", "),xe.push({text:">"}));break;case 187:let Tn=be;xe.push({text:"{"}),Tn.members.length&&(xe.push({text:" "}),ke(Tn.members,"; "),xe.push({text:" "})),xe.push({text:"}"});break;case 188:Me(be.elementType),xe.push({text:"[]"});break;case 189:xe.push({text:"["}),ke(be.elements,", "),xe.push({text:"]"});break;case 202:let Un=be;Un.dotDotDotToken&&xe.push({text:"..."}),Me(Un.name),Un.questionToken&&xe.push({text:"?"}),xe.push({text:": "}),Me(Un.type);break;case 190:Me(be.type),xe.push({text:"?"});break;case 191:xe.push({text:"..."}),Me(be.type);break;case 192:ke(be.types," | ");break;case 193:ke(be.types," & ");break;case 194:let cn=be;Me(cn.checkType),xe.push({text:" extends "}),Me(cn.extendsType),xe.push({text:" ? "}),Me(cn.trueType),xe.push({text:" : "}),Me(cn.falseType);break;case 195:xe.push({text:"infer "}),Me(be.typeParameter);break;case 196:xe.push({text:"("}),Me(be.type),xe.push({text:")"});break;case 198:let zt=be;xe.push({text:`${Zs(zt.operator)} `}),Me(zt.type);break;case 199:let Ft=be;Me(Ft.objectType),xe.push({text:"["}),Me(Ft.indexType),xe.push({text:"]"});break;case 200:let Lr=be;xe.push({text:"{ "}),Lr.readonlyToken&&(Lr.readonlyToken.kind===40?xe.push({text:"+"}):Lr.readonlyToken.kind===41&&xe.push({text:"-"}),xe.push({text:"readonly "})),xe.push({text:"["}),Me(Lr.typeParameter),Lr.nameType&&(xe.push({text:" as "}),Me(Lr.nameType)),xe.push({text:"]"}),Lr.questionToken&&(Lr.questionToken.kind===40?xe.push({text:"+"}):Lr.questionToken.kind===41&&xe.push({text:"-"}),xe.push({text:"?"})),xe.push({text:": "}),Lr.type&&Me(Lr.type),xe.push({text:"; }"});break;case 201:Me(be.literal);break;case 184:let ji=be;ji.typeParameters&&(xe.push({text:"<"}),ke(ji.typeParameters,", "),xe.push({text:">"})),xe.push({text:"("}),ke(ji.parameters,", "),xe.push({text:")"}),xe.push({text:" => "}),Me(ji.type);break;case 205:let ii=be;ii.isTypeOf&&xe.push({text:"typeof "}),xe.push({text:"import("}),Me(ii.argument),ii.assertions&&(xe.push({text:", { assert: "}),ke(ii.assertions.assertClause.elements,", "),xe.push({text:" }"})),xe.push({text:")"}),ii.qualifier&&(xe.push({text:"."}),Me(ii.qualifier)),ii.typeArguments&&(xe.push({text:"<"}),ke(ii.typeArguments,", "),xe.push({text:">"}));break;case 171:let Hi=be;Hi.modifiers&&ke(Hi.modifiers," "),Me(Hi.name),Hi.questionToken&&xe.push({text:"?"}),Hi.type&&(xe.push({text:": "}),Me(Hi.type));break;default:E.failBadSyntaxKind(be)}}function ke(be,_t){be.forEach((mt,me)=>{me>0&&xe.push({text:_t}),Me(mt)})}function he(be){return ca(be)?f===0?`'${p1(be.text,39)}'`:`"${p1(be.text,34)}"`:be.text}}function K(se){return se==="undefined"}function oe(se){if((Wv(se)||Ni(se)&&Vk(se))&&se.initializer){let Y=eo(se.initializer);return!(ie(Y)||Kv(Y)||xa(Y)||h2(Y))}return!0}function Se(se,Y){let ve=Y.getSourceFile();return{text:se,span:g_(Y,ve),file:ve.fileName}}}var m3e,RXe=ze({"src/services/inlayHints.ts"(){"use strict";qr(),m3e=e=>new RegExp(`^\\s?/\\*\\*?\\s?${e}\\s?\\*\\/\\s?$`)}}),rQ={};Jn(rQ,{provideInlayHints:()=>MXe});var jXe=ze({"src/services/_namespaces/ts.InlayHints.ts"(){"use strict";RXe()}});function BXe(e,t){let n=[];return jH(e,i=>{for(let s of zXe(i)){let o=Qp(s)&&s.tags&&xr(s.tags,u=>u.kind===334&&(u.tagName.escapedText==="inheritDoc"||u.tagName.escapedText==="inheritdoc"));if(s.comment===void 0&&!o||Qp(s)&&i.kind!==353&&i.kind!==345&&s.tags&&s.tags.some(u=>u.kind===353||u.kind===345)&&!s.tags.some(u=>u.kind===348||u.kind===349))continue;let c=s.comment?x6(s.comment,t):[];o&&o.comment&&(c=c.concat(x6(o.comment,t))),gs(n,c,JXe)||n.push(c)}}),Jp(Tv(n,[c6()]))}function JXe(e,t){return tP(e,t,(n,i)=>n.kind===i.kind&&n.text===i.text)}function zXe(e){switch(e.kind){case 348:case 355:return[e];case 345:case 353:return[e,e.parent];case 330:if(IC(e.parent))return[e.parent.parent];default:return fz(e)}}function VXe(e,t){let n=[];return jH(e,i=>{let s=c1(i);if(!(s.some(o=>o.kind===353||o.kind===345)&&!s.some(o=>o.kind===348||o.kind===349)))for(let o of s)n.push({name:o.tagName.text,text:g3e(o,t)}),OP(o)&&o.isNameFirst&&o.typeExpression&&eT(o.typeExpression.type)&&Qt(o.typeExpression.type.jsDocPropertyTags,c=>{n.push({name:c.tagName.text,text:g3e(c,t)})})}),n}function x6(e,t){return typeof e=="string"?[Pf(e)]:oa(e,n=>n.kind===328?[Pf(n.text)]:Foe(n,t))}function g3e(e,t){let{comment:n,kind:i}=e,s=WXe(i);switch(i){case 356:let u=e.typeExpression;return u?o(u):n===void 0?void 0:x6(n,t);case 336:return o(e.class);case 335:return o(e.class);case 352:let f=e,g=[];if(f.constraint&&g.push(Pf(f.constraint.getText())),bn(f.typeParameters)){bn(g)&&g.push(_c());let y=f.typeParameters[f.typeParameters.length-1];Qt(f.typeParameters,S=>{g.push(s(S.getText())),y!==S&&g.push(Pu(28),_c())})}return n&&g.push(_c(),...x6(n,t)),g;case 351:case 357:return o(e.typeExpression);case 353:case 345:case 355:case 348:case 354:let{name:p}=e;return p?o(p):n===void 0?void 0:x6(n,t);default:return n===void 0?void 0:x6(n,t)}function o(u){return c(u.getText())}function c(u){return n?u.match(/^https?$/)?[Pf(u),...x6(n,t)]:[s(u),_c(),...x6(n,t)]:[Pf(u)]}}function WXe(e){switch(e){case 348:return Poe;case 355:return woe;case 352:return Noe;case 353:case 345:return Aoe;default:return Pf}}function UXe(){return y3e||(y3e=Kt(cfe,e=>({name:e,kind:"keyword",kindModifiers:"",sortText:TT.SortText.LocationPriority})))}function qXe(){return v3e||(v3e=Kt(cfe,e=>({name:`@${e}`,kind:"keyword",kindModifiers:"",sortText:TT.SortText.LocationPriority})))}function h3e(e){return{name:e,kind:"",kindModifiers:"",displayParts:[Pf(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function HXe(e){if(!Ie(e.name))return Ve;let t=e.name.text,n=e.parent,i=n.parent;return As(i)?Ri(i.parameters,s=>{if(!Ie(s.name))return;let o=s.name.text;if(!(n.tags.some(c=>c!==e&&gd(c)&&Ie(c.name)&&c.name.escapedText===o)||t!==void 0&&!ts(o,t)))return{name:o,kind:"parameter",kindModifiers:"",sortText:TT.SortText.LocationPriority}}):[]}function GXe(e){return{name:e,kind:"parameter",kindModifiers:"",displayParts:[Pf(e)],documentation:Ve,tags:void 0,codeActions:void 0}}function $Xe(e,t,n,i){let s=qi(t,n),o=Fn(s,Qp);if(o&&(o.comment!==void 0||bn(o.tags)))return;let c=s.getStart(t);if(!o&&c0;if(w&&!z){let V=D+e+x+" * ",X=c===n?e+x:"";return{newText:V+e+w+x+O+X,caretOffset:V.length}}return{newText:D+O,caretOffset:3}}function XXe(e,t){let{text:n}=e,i=Cp(t,e),s=i;for(;s<=t&&Md(n.charCodeAt(s));s++);return n.slice(i,s)}function QXe(e,t,n,i){return e.map(({name:s,dotDotDotToken:o},c)=>{let u=s.kind===80?s.text:"param"+c;return`${n} * @param ${t?o?"{...any} ":"{any} ":""}${u}${i}`}).join("")}function YXe(e,t){return`${e} * @returns${t}`}function ZXe(e,t){return jee(e,n=>ofe(n,t))}function ofe(e,t){switch(e.kind){case 262:case 218:case 174:case 176:case 173:case 219:let n=e;return{commentOwner:e,parameters:n.parameters,hasReturn:NM(n,t)};case 303:return ofe(e.initializer,t);case 263:case 264:case 266:case 306:case 265:return{commentOwner:e};case 171:{let s=e;return s.type&&Tg(s.type)?{commentOwner:e,parameters:s.type.parameters,hasReturn:NM(s.type,t)}:{commentOwner:e}}case 243:{let o=e.declarationList.declarations,c=o.length===1&&o[0].initializer?KXe(o[0].initializer):void 0;return c?{commentOwner:e,parameters:c.parameters,hasReturn:NM(c,t)}:{commentOwner:e}}case 312:return"quit";case 267:return e.parent.kind===267?void 0:{commentOwner:e};case 244:return ofe(e.expression,t);case 226:{let s=e;return mc(s)===0?"quit":As(s.right)?{commentOwner:e,parameters:s.right.parameters,hasReturn:NM(s.right,t)}:{commentOwner:e}}case 172:let i=e.initializer;if(i&&(uo(i)||Co(i)))return{commentOwner:e,parameters:i.parameters,hasReturn:NM(i,t)}}}function NM(e,t){return!!t?.generateReturnInDocTemplate&&(Tg(e)||Co(e)&&ut(e.body)||To(e)&&e.body&&Ds(e.body)&&!!Rv(e.body,n=>n))}function KXe(e){for(;e.kind===217;)e=e.expression;switch(e.kind){case 218:case 219:return e;case 231:return xr(e.members,Cc)}}var cfe,y3e,v3e,b3e,eQe=ze({"src/services/jsDoc.ts"(){"use strict";qr(),cfe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],b3e=h3e}}),R1={};Jn(R1,{getDocCommentTemplateAtPosition:()=>$Xe,getJSDocParameterNameCompletionDetails:()=>GXe,getJSDocParameterNameCompletions:()=>HXe,getJSDocTagCompletionDetails:()=>h3e,getJSDocTagCompletions:()=>qXe,getJSDocTagNameCompletionDetails:()=>b3e,getJSDocTagNameCompletions:()=>UXe,getJsDocCommentsFromDeclarations:()=>BXe,getJsDocTagsFromDeclarations:()=>VXe});var tQe=ze({"src/services/_namespaces/ts.JsDoc.ts"(){"use strict";eQe()}});function nQe(e,t,n,i,s,o){let c=er.ChangeTracker.fromContext({host:n,formatContext:t,preferences:s}),u=o==="SortAndCombine"||o==="All",f=u,g=o==="RemoveUnused"||o==="All",p=iQ(e,e.statements.filter(kl)),y=vQe(s,u?()=>T3e(p,s)===2:void 0),S=C=>(g&&(C=iQe(C,e,i)),f&&(C=S3e(C,y,e)),u&&(C=Mh(C,(w,D)=>pfe(w,D,y))),C);p.forEach(C=>x(C,S)),o!=="RemoveUnused"&&bQe(e).forEach(C=>x(C,w=>lfe(w,y)));for(let C of e.statements.filter(lu)){if(!C.body)continue;if(iQ(e,C.body.statements.filter(kl)).forEach(D=>x(D,S)),o!=="RemoveUnused"){let D=C.body.statements.filter(Kc);x(D,O=>lfe(O,y))}}return c.getChanges();function x(C,w){if(bn(C)===0)return;$n(C[0],1024);let D=f?E4(C,V=>IM(V.moduleSpecifier)):[C],O=u?Mh(D,(V,X)=>_fe(V[0].moduleSpecifier,X[0].moduleSpecifier,y)):D,z=oa(O,V=>IM(V[0].moduleSpecifier)||V[0].moduleSpecifier===void 0?w(V):V);if(z.length===0)c.deleteNodes(e,C,{leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Include},!0);else{let V={leadingTriviaOption:er.LeadingTriviaOption.Exclude,trailingTriviaOption:er.TrailingTriviaOption.Include,suffix:c0(n,t.options)};c.replaceNodeWithNodes(e,C[0],z,V);let X=c.nodeHasTrailingComment(e,C[0],V);c.deleteNodes(e,C.slice(1),{trailingTriviaOption:er.TrailingTriviaOption.Include},X)}}}function iQ(e,t){let n=Vh(e.languageVersion,!1,e.languageVariant),i=[],s=0;for(let o of t)i[s]&&rQe(e,o,n)&&s++,i[s]||(i[s]=[]),i[s].push(o);return i}function rQe(e,t,n){let i=t.getFullStart(),s=t.getStart();n.setText(e.text,i,s-i);let o=0;for(;n.getTokenStart()=2))return!0;return!1}function iQe(e,t,n){let i=n.getTypeChecker(),s=n.getCompilerOptions(),o=i.getJsxNamespace(t),c=i.getJsxFragmentFactory(t),u=!!(t.transformFlags&2),f=[];for(let p of e){let{importClause:y,moduleSpecifier:S}=p;if(!y){f.push(p);continue}let{name:x,namedBindings:C}=y;if(x&&!g(x)&&(x=void 0),C)if(ly(C))g(C.name)||(C=void 0);else{let w=C.elements.filter(D=>g(D.name));w.lengthca(i)&&i.text===n)}function IM(e){return e!==void 0&&$a(e)?e.text:void 0}function aQe(e,t,n){let i=sQ(t);return S3e(e,i,n)}function S3e(e,t,n){if(e.length===0)return e;let{importWithoutClause:i,typeOnlyImports:s,regularImports:o}=oQe(e),c=[];i&&c.push(i);for(let u of[o,s]){let f=u===s,{defaultImports:g,namespaceImports:p,namedImports:y}=u;if(!f&&g.length===1&&p.length===1&&y.length===0){let X=g[0];c.push(SN(X,X.importClause.name,p[0].importClause.namedBindings));continue}let S=Mh(p,(X,J)=>t(X.importClause.namedBindings.name.text,J.importClause.namedBindings.name.text));for(let X of S)c.push(SN(X,void 0,X.importClause.namedBindings));let x=Pl(g),C=Pl(y),w=x??C;if(!w)continue;let D,O=[];if(g.length===1)D=g[0].importClause.name;else for(let X of g)O.push(I.createImportSpecifier(!1,I.createIdentifier("default"),X.importClause.name));O.push(...mQe(y));let z=I.createNodeArray(x3e(O,t),C?.importClause.namedBindings.elements.hasTrailingComma),V=z.length===0?D?void 0:I.createNamedImports(Ve):C?I.updateNamedImports(C.importClause.namedBindings,z):I.createNamedImports(z);n&&V&&C?.importClause.namedBindings&&!I2(C.importClause.namedBindings,n)&&$n(V,2),f&&D&&V?(c.push(SN(w,D,void 0)),c.push(SN(C??w,void 0,V))):c.push(SN(w,D,V))}return c}function oQe(e){let t,n={defaultImports:[],namespaceImports:[],namedImports:[]},i={defaultImports:[],namespaceImports:[],namedImports:[]};for(let s of e){if(s.importClause===void 0){t=t||s;continue}let o=s.importClause.isTypeOnly?n:i,{name:c,namedBindings:u}=s.importClause;c&&o.defaultImports.push(s),u&&(ly(u)?o.namespaceImports.push(s):o.namedImports.push(s))}return{importWithoutClause:t,typeOnlyImports:n,regularImports:i}}function cQe(e,t){let n=sQ(t);return lfe(e,n)}function lfe(e,t){if(e.length===0)return e;let{exportWithoutClause:n,namedExports:i,typeOnlyExports:s}=c(e),o=[];n&&o.push(n);for(let u of[i,s]){if(u.length===0)continue;let f=[];f.push(...oa(u,y=>y.exportClause&&kp(y.exportClause)?y.exportClause.elements:Ve));let g=x3e(f,t),p=u[0];o.push(I.updateExportDeclaration(p,p.modifiers,p.isTypeOnly,p.exportClause&&(kp(p.exportClause)?I.updateNamedExports(p.exportClause,g):I.updateNamespaceExport(p.exportClause,p.exportClause.name)),p.moduleSpecifier,p.attributes))}return o;function c(u){let f,g=[],p=[];for(let y of u)y.exportClause===void 0?f=f||y:y.isTypeOnly?p.push(y):g.push(y);return{exportWithoutClause:f,namedExports:g,typeOnlyExports:p}}}function SN(e,t,n){return I.updateImportDeclaration(e,e.modifiers,I.updateImportClause(e.importClause,e.importClause.isTypeOnly,t,n),e.moduleSpecifier,e.attributes)}function x3e(e,t){return Mh(e,(n,i)=>ufe(n,i,t))}function ufe(e,t,n){return kv(e.isTypeOnly,t.isTypeOnly)||n(e.name.text,t.name.text)}function lQe(e,t,n){let i=sQ(!!n);return _fe(e,t,i)}function _fe(e,t,n){let i=e===void 0?void 0:IM(e),s=t===void 0?void 0:IM(t);return kv(i===void 0,s===void 0)||kv(Al(i),Al(s))||n(i,s)}function ffe(e){var t;switch(e.kind){case 271:return(t=Ur(e.moduleReference,Bm))==null?void 0:t.expression;case 272:return e.moduleSpecifier;case 243:return e.declarationList.declarations[0].initializer.arguments[0]}}function uQe(e,t){return T3e(iQ(e,e.statements.filter(kl)),t)}function T3e(e,t){let n=T6(t,!1),i=T6(t,!0),s=3,o=!1;for(let c of e){if(c.length>1){let f=MI(c,g=>{var p;return((p=Ur(g.moduleSpecifier,ca))==null?void 0:p.text)??""},n,i);if(f&&(s&=f,o=!0),!s)return s}let u=xr(c,f=>{var g,p;return((p=Ur((g=f.importClause)==null?void 0:g.namedBindings,lh))==null?void 0:p.elements.length)>1});if(u){let f=dfe(u.importClause.namedBindings.elements,t);if(f&&(s&=f,o=!0),!s)return s}if(s!==3)return s}return o?0:s}function _Qe(e,t){let n=T6(t,!1),i=T6(t,!0);return MI(e,s=>IM(ffe(s))||"",n,i)}function fQe(e,t,n){let i=Rh(e,t,No,(s,o)=>pfe(s,o,n));return i<0?~i:i}function pQe(e,t,n){let i=Rh(e,t,No,(s,o)=>ufe(s,o,n));return i<0?~i:i}function pfe(e,t,n){return _fe(ffe(e),ffe(t),n)||dQe(e,t)}function dQe(e,t){return Io(k3e(e),k3e(t))}function k3e(e){var t;switch(e.kind){case 272:return e.importClause?e.importClause.isTypeOnly?1:((t=e.importClause.namedBindings)==null?void 0:t.kind)===274?2:e.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function mQe(e){return oa(e,t=>Kt(gQe(t),n=>n.name&&n.propertyName&&n.name.escapedText===n.propertyName.escapedText?I.updateImportSpecifier(n,n.isTypeOnly,void 0,n.name):n))}function gQe(e){var t;return(t=e.importClause)!=null&&t.namedBindings&&lh(e.importClause.namedBindings)?e.importClause.namedBindings.elements:void 0}function sQ(e){return e?lK:Ou}function hQe(e,t){let n=yQe(t),i=t.organizeImportsCaseFirst??!1,s=t.organizeImportsNumericCollation??!1,o=t.organizeImportsAccentCollation??!0,c=e?o?"accent":"base":o?"variant":"case";return new Intl.Collator(n,{usage:"sort",caseFirst:i||"false",sensitivity:c,numeric:s}).compare}function yQe(e){let t=e.organizeImportsLocale;t==="auto"&&(t=uK()),t===void 0&&(t="en");let n=Intl.Collator.supportedLocalesOf(t);return n.length?n[0]:"en"}function T6(e,t){return(e.organizeImportsCollation??"ordinal")==="unicode"?hQe(t,e):sQ(t)}function vQe(e,t){let n=typeof e.organizeImportsIgnoreCase=="boolean"?e.organizeImportsIgnoreCase:t?.()??!1;return T6(e,n)}function bQe(e){let t=[],n=e.statements,i=bn(n),s=0,o=0;for(;siQ(e,c))}var C3e,dfe,SQe=ze({"src/services/organizeImports.ts"(){"use strict";qr(),C3e=class{has([e,t]){return this._lastPreferences!==t||!this._cache?!1:this._cache.has(e)}get([e,t]){if(!(this._lastPreferences!==t||!this._cache))return this._cache.get(e)}set([e,t],n){this._lastPreferences!==t&&(this._lastPreferences=t,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(e,n)}},dfe=cK((e,t)=>{if(!eK(e,(s,o)=>kv(s.isTypeOnly,o.isTypeOnly)))return 0;let n=T6(t,!1),i=T6(t,!0);return MI(e,s=>s.name.text,n,i)},new C3e)}}),ed={};Jn(ed,{coalesceExports:()=>cQe,coalesceImports:()=>aQe,compareImportOrExportSpecifiers:()=>ufe,compareImportsOrRequireStatements:()=>pfe,compareModuleSpecifiers:()=>lQe,detectImportDeclarationSorting:()=>_Qe,detectImportSpecifierSorting:()=>dfe,detectSorting:()=>uQe,getImportDeclarationInsertionIndex:()=>fQe,getImportSpecifierInsertionIndex:()=>pQe,getOrganizeImportsComparer:()=>T6,organizeImports:()=>nQe});var xQe=ze({"src/services/_namespaces/ts.OrganizeImports.ts"(){"use strict";SQe()}});function TQe(e,t){let n=[];return kQe(e,t,n),CQe(e,n),n.sort((i,s)=>i.textSpan.start-s.textSpan.start)}function kQe(e,t,n){let i=40,s=0,o=[...e.statements,e.endOfFileToken],c=o.length;for(;s1&&i.push(FM(o,c,"comment"))}}function D3e(e,t,n,i){zx(e)||mfe(e.pos,t,n,i)}function FM(e,t,n){return CT(Xc(e,t),n)}function EQe(e,t){switch(e.kind){case 241:if(As(e.parent))return DQe(e.parent,e,t);switch(e.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return p(e.parent);case 258:let x=e.parent;if(x.tryBlock===e)return p(e.parent);if(x.finallyBlock===e){let C=Ya(x,98,t);if(C)return p(C)}default:return CT(g_(e,t),"code")}case 268:return p(e.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return p(e);case 189:return p(e,!1,!TC(e.parent),23);case 296:case 297:return y(e.statements);case 210:return g(e);case 209:return g(e,23);case 284:return o(e);case 288:return c(e);case 285:case 286:return u(e.attributes);case 228:case 15:return f(e);case 207:return p(e,!1,!Ma(e.parent),23);case 219:return s(e);case 213:return i(e);case 217:return S(e);case 275:case 279:case 300:return n(e)}function n(x){if(!x.elements.length)return;let C=Ya(x,19,t),w=Ya(x,20,t);if(!(!C||!w||vp(C.pos,w.pos,t)))return aQ(C,w,x,t,!1,!1)}function i(x){if(!x.arguments.length)return;let C=Ya(x,21,t),w=Ya(x,22,t);if(!(!C||!w||vp(C.pos,w.pos,t)))return aQ(C,w,x,t,!1,!0)}function s(x){if(Ds(x.body)||C_(x.body)||vp(x.body.getFullStart(),x.body.getEnd(),t))return;let C=Xc(x.body.getFullStart(),x.body.getEnd());return CT(C,"code",g_(x))}function o(x){let C=Xc(x.openingElement.getStart(t),x.closingElement.getEnd()),w=x.openingElement.tagName.getText(t),D="<"+w+">...";return CT(C,"code",C,!1,D)}function c(x){let C=Xc(x.openingFragment.getStart(t),x.closingFragment.getEnd());return CT(C,"code",C,!1,"<>...")}function u(x){if(x.properties.length!==0)return FM(x.getStart(t),x.getEnd(),"code")}function f(x){if(!(x.kind===15&&x.text.length===0))return FM(x.getStart(t),x.getEnd(),"code")}function g(x,C=19){return p(x,!1,!Vu(x.parent)&&!Ws(x.parent),C)}function p(x,C=!1,w=!0,D=19,O=D===19?20:24){let z=Ya(e,D,t),V=Ya(e,O,t);return z&&V&&aQ(z,V,x,t,C,w)}function y(x){return x.length?CT(fy(x),"code"):void 0}function S(x){if(vp(x.getStart(),x.getEnd(),t))return;let C=Xc(x.getStart(),x.getEnd());return CT(C,"code",g_(x))}}function DQe(e,t,n){let i=PQe(e,t,n),s=Ya(t,20,n);return i&&s&&aQ(i,s,e,n,e.kind!==219)}function aQ(e,t,n,i,s=!1,o=!0){let c=Xc(o?e.getFullStart():e.getStart(i),t.getEnd());return CT(c,"code",g_(n,i),s)}function CT(e,t,n=e,i=!1,s="..."){return{textSpan:e,kind:t,hintSpan:n,bannerText:s,autoCollapse:i}}function PQe(e,t,n){if(rne(e.parameters,n)){let i=Ya(e,21,n);if(i)return i}return Ya(t,19,n)}var P3e,wQe=ze({"src/services/outliningElementsCollector.ts"(){"use strict";qr(),P3e=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),oQ={};Jn(oQ,{collectElements:()=>TQe});var AQe=ze({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){"use strict";wQe()}});function NQe(e,t,n,i){let s=tL(m_(t,n));if(A3e(s)){let o=IQe(s,e.getTypeChecker(),t,e,i);if(o)return o}return cQ(d.You_cannot_rename_this_element)}function IQe(e,t,n,i,s){let o=t.getSymbolAtLocation(e);if(!o){if($a(e)){let S=eL(e,t);if(S&&(S.flags&128||S.flags&1048576&&hi(S.types,x=>!!(x.flags&128))))return gfe(e.text,e.text,"string","",e,n)}else if(pH(e)){let S=Qc(e);return gfe(S,S,"label","",e,n)}return}let{declarations:c}=o;if(!c||c.length===0)return;if(c.some(S=>FQe(i,S)))return cQ(d.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(Ie(e)&&e.escapedText==="default"&&o.parent&&o.parent.flags&1536)return;if($a(e)&&hw(e))return s.allowRenameOfImportPath?LQe(e,n,o):void 0;let u=OQe(n,o,t,s);if(u)return cQ(u);let f=_0.getSymbolKind(t,o,e),g=Ooe(e)||vf(e)&&e.parent.kind===167?hp(gp(e)):void 0,p=g||t.symbolToString(o),y=g||t.getFullyQualifiedName(o);return gfe(p,y,f,_0.getSymbolModifiers(t,o),e,n)}function FQe(e,t){let n=t.getSourceFile();return e.isSourceFileDefaultLibrary(n)&&nc(n.fileName,".d.ts")}function OQe(e,t,n,i){if(!i.providePrefixAndSuffixTextForRename&&t.flags&2097152){let c=t.declarations&&xr(t.declarations,u=>E_(u));c&&!c.propertyName&&(t=n.getAliasedSymbol(t))}let{declarations:s}=t;if(!s)return;let o=w3e(e.path);if(o===void 0)return ft(s,c=>WA(c.getSourceFile().path))?d.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(let c of s){let u=w3e(c.getSourceFile().path);if(u){let f=Math.min(o.length,u.length);for(let g=0;g<=f;g++)if(Ou(o[g],u[g])!==0)return d.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function w3e(e){let t=bl(e),n=t.lastIndexOf("node_modules");if(n!==-1)return t.slice(0,n+2)}function LQe(e,t,n){if(!Al(e.text))return cQ(d.You_cannot_rename_a_module_via_a_global_import);let i=n.declarations&&xr(n.declarations,Li);if(!i)return;let s=Sc(e.text,"/index")||Sc(e.text,"/index.js")?void 0:pK(zu(i.fileName),"/index"),o=s===void 0?i.fileName:s,c=s===void 0?"module":"directory",u=e.text.lastIndexOf("/")+1,f=Gl(e.getStart(t)+1+u,e.text.length-u);return{canRename:!0,fileToRename:o,kind:c,displayName:o,fullDisplayName:o,kindModifiers:"",triggerSpan:f}}function gfe(e,t,n,i,s,o){return{canRename:!0,fileToRename:void 0,kind:n,displayName:e,fullDisplayName:t,kindModifiers:i,triggerSpan:MQe(s,o)}}function cQ(e){return{canRename:!1,localizedErrorMessage:ds(e)}}function MQe(e,t){let n=e.getStart(t),i=e.getWidth(t);return $a(e)&&(n+=1,i-=2),Gl(n,i)}function A3e(e){switch(e.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return Q9(e);default:return!1}}var RQe=ze({"src/services/rename.ts"(){"use strict";qr()}}),OM={};Jn(OM,{getRenameInfo:()=>NQe,nodeIsEligibleForRename:()=>A3e});var jQe=ze({"src/services/_namespaces/ts.Rename.ts"(){"use strict";RQe()}});function BQe(e,t,n,i,s){let o=e.getTypeChecker(),c=nL(t,n);if(!c)return;let u=!!i&&i.kind==="characterTyped";if(u&&(nS(t,n,c)||s0(t,n)))return;let f=!!i&&i.kind==="invoked",g=tYe(c,n,t,o,f);if(!g)return;s.throwIfCancellationRequested();let p=JQe(g,o,t,c,u);return s.throwIfCancellationRequested(),p?o.runWithCancellationToken(s,y=>p.kind===0?R3e(p.candidates,p.resolvedSignature,g,t,y):rYe(p.symbol,g,t,y)):Bu(t)?VQe(g,e,s):void 0}function JQe({invocation:e,argumentCount:t},n,i,s,o){switch(e.kind){case 0:{if(o&&!zQe(s,e.node,i))return;let c=[],u=n.getResolvedSignatureForSignatureHelp(e.node,c,t);return c.length===0?void 0:{kind:0,candidates:c,resolvedSignature:u}}case 1:{let{called:c}=e;if(o&&!N3e(s,i,Ie(c)?c.parent:c))return;let u=TH(c,t,n);if(u.length!==0)return{kind:0,candidates:u,resolvedSignature:Da(u)};let f=n.getSymbolAtLocation(c);return f&&{kind:1,symbol:f}}case 2:return{kind:0,candidates:[e.signature],resolvedSignature:e.signature};default:return E.assertNever(e)}}function zQe(e,t,n){if(!Dm(t))return!1;let i=t.getChildren(n);switch(e.kind){case 21:return gs(i,e);case 28:{let s=K9(e);return!!s&&gs(i,s)}case 30:return N3e(e,n,t.expression);default:return!1}}function VQe(e,t,n){if(e.invocation.kind===2)return;let i=L3e(e.invocation),s=Cr(i)?i.name.text:void 0,o=t.getTypeChecker();return s===void 0?void 0:ba(t.getSourceFiles(),c=>ba(c.getNamedDeclarations().get(s),u=>{let f=u.symbol&&o.getTypeOfSymbolAtLocation(u.symbol,u),g=f&&f.getCallSignatures();if(g&&g.length)return o.runWithCancellationToken(n,p=>R3e(g,g[0],e,c,p,!0))}))}function N3e(e,t,n){let i=e.getFullStart(),s=e.parent;for(;s;){let o=ol(i,t,s,!0);if(o)return Ef(n,o);s=s.parent}return E.fail("Could not find preceding token")}function WQe(e,t,n){let i=F3e(e,t,n);return!i||i.isTypeParameterList||i.invocation.kind!==0?void 0:{invocation:i.invocation.node,argumentCount:i.argumentCount,argumentIndex:i.argumentIndex}}function I3e(e,t,n){let i=UQe(e,n);if(!i)return;let{list:s,argumentIndex:o}=i,c=YQe(s,nS(n,t,e));o!==0&&E.assertLessThan(o,c);let u=KQe(s,n);return{list:s,argumentIndex:o,argumentCount:c,argumentsSpan:u}}function UQe(e,t){if(e.kind===30||e.kind===21)return{list:nYe(e.parent,e,t),argumentIndex:0};{let n=K9(e);return n&&{list:n,argumentIndex:QQe(n,e)}}}function F3e(e,t,n){let{parent:i}=e;if(Dm(i)){let s=i,o=I3e(e,t,n);if(!o)return;let{list:c,argumentIndex:u,argumentCount:f,argumentsSpan:g}=o;return{isTypeParameterList:!!i.typeArguments&&i.typeArguments.pos===c.pos,invocation:{kind:0,node:s},argumentsSpan:g,argumentIndex:u,argumentCount:f}}else{if(Vx(e)&&B2(i))return AA(e,t,n)?yfe(i,0,n):void 0;if(bC(e)&&i.parent.kind===215){let s=i,o=s.parent;E.assert(s.kind===228);let c=AA(e,t,n)?0:1;return yfe(o,c,n)}else if(e3(i)&&B2(i.parent.parent)){let s=i,o=i.parent.parent;if(UV(e)&&!AA(e,t,n))return;let c=s.parent.templateSpans.indexOf(s),u=ZQe(c,e,t,n);return yfe(o,u,n)}else if(Zu(i)){let s=i.attributes.pos,o=ma(n.text,i.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:i},argumentsSpan:Gl(s,o-s),argumentIndex:0,argumentCount:1}}else{let s=kH(e,n);if(s){let{called:o,nTypeArguments:c}=s,u={kind:1,called:o},f=Xc(o.getStart(n),e.end);return{isTypeParameterList:!0,invocation:u,argumentsSpan:f,argumentIndex:c,argumentCount:c+1}}return}}}function qQe(e,t,n,i){return HQe(e,t,n,i)||F3e(e,t,n)}function O3e(e){return Yn(e.parent)?O3e(e.parent):e}function hfe(e){return Yn(e.left)?hfe(e.left)+1:2}function HQe(e,t,n,i){let s=GQe(e);if(s===void 0)return;let o=$Qe(s,n,t,i);if(o===void 0)return;let{contextualType:c,argumentIndex:u,argumentCount:f,argumentsSpan:g}=o,p=c.getNonNullableType(),y=p.symbol;if(y===void 0)return;let S=qo(p.getCallSignatures());return S===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:S,node:e,symbol:XQe(y)},argumentsSpan:g,argumentIndex:u,argumentCount:f}}function GQe(e){switch(e.kind){case 21:case 28:return e;default:return Fn(e.parent,t=>ms(t)?!0:Ma(t)||Gp(t)||j2(t)?!1:"quit")}}function $Qe(e,t,n,i){let{parent:s}=e;switch(s.kind){case 217:case 174:case 218:case 219:let o=I3e(e,n,t);if(!o)return;let{argumentIndex:c,argumentCount:u,argumentsSpan:f}=o,g=kc(s)?i.getContextualTypeForObjectLiteralElement(s):i.getContextualType(s);return g&&{contextualType:g,argumentIndex:c,argumentCount:u,argumentsSpan:f};case 226:{let p=O3e(s),y=i.getContextualType(p),S=e.kind===21?0:hfe(s)-1,x=hfe(p);return y&&{contextualType:y,argumentIndex:S,argumentCount:x,argumentsSpan:g_(s)}}default:return}}function XQe(e){return e.name==="__type"&&ba(e.declarations,t=>{var n;return Tg(t)?(n=Ur(t.parent,Rd))==null?void 0:n.symbol:void 0})||e}function QQe(e,t){let n=0;for(let i of e.getChildren()){if(i===t)break;i.kind!==28&&n++}return n}function YQe(e,t){let n=e.getChildren(),i=Lh(n,s=>s.kind!==28);return!t&&n.length>0&&Pa(n).kind===28&&i++,i}function ZQe(e,t,n,i){return E.assert(n>=t.getStart(),"Assumed 'position' could not occur before node."),pee(t)?AA(t,n,i)?0:e+2:e+1}function yfe(e,t,n){let i=Vx(e.template)?1:e.template.templateSpans.length+1;return t!==0&&E.assertLessThan(t,i),{isTypeParameterList:!1,invocation:{kind:0,node:e},argumentsSpan:eYe(e,n),argumentIndex:t,argumentCount:i}}function KQe(e,t){let n=e.getFullStart(),i=ma(t.text,e.getEnd(),!1);return Gl(n,i-n)}function eYe(e,t){let n=e.template,i=n.getStart(),s=n.getEnd();return n.kind===228&&Pa(n.templateSpans).literal.getFullWidth()===0&&(s=ma(t.text,s,!1)),Gl(i,s-i)}function tYe(e,t,n,i,s){for(let o=e;!Li(o)&&(s||!Ds(o));o=o.parent){E.assert(Ef(o.parent,o),"Not a subspan",()=>`Child: ${E.formatSyntaxKind(o.kind)}, parent: ${E.formatSyntaxKind(o.parent.kind)}`);let c=qQe(o,t,n,i);if(c)return c}}function nYe(e,t,n){let i=e.getChildren(n),s=i.indexOf(t);return E.assert(s>=0&&i.length>s+1),i[s+1]}function L3e(e){return e.kind===0?o5(e.node):e.called}function M3e(e){return e.kind===0?e.node:e.kind===1?e.called:e.node}function R3e(e,t,{isTypeParameterList:n,argumentCount:i,argumentsSpan:s,invocation:o,argumentIndex:c},u,f,g){var p;let y=M3e(o),S=o.kind===2?o.symbol:f.getSymbolAtLocation(L3e(o))||g&&((p=t.declaration)==null?void 0:p.symbol),x=S?W3(f,S,g?u:void 0,void 0):Ve,C=Kt(e,V=>sYe(V,x,n,f,y,u));c!==0&&E.assertLessThan(c,i);let w=0,D=0;for(let V=0;V1)){let J=0;for(let ie of X){if(ie.isVariadic||ie.parameters.length>=i){w=D+J;break}J++}}D+=X.length}E.assert(w!==-1);let O={items:x4(C,No),applicableSpan:s,selectedItemIndex:w,argumentIndex:c,argumentCount:i},z=O.items[w];if(z.isVariadic){let V=Qo(z.parameters,X=>!!X.isRest);-1j3e(y,n,i,s,c)),f=e.getDocumentationComment(n),g=e.getJsDocTags(n);return{isVariadic:!1,prefixDisplayParts:[...o,Pu(30)],suffixDisplayParts:[Pu(32)],separatorDisplayParts:vfe,parameters:u,documentation:f,tags:g}}function sYe(e,t,n,i,s,o){let c=(n?oYe:cYe)(e,i,s,o);return Kt(c,({isVariadic:u,parameters:f,prefix:g,suffix:p})=>{let y=[...t,...g],S=[...p,...aYe(e,s,i)],x=e.getDocumentationComment(i),C=e.getJsDocTags();return{isVariadic:u,prefixDisplayParts:y,suffixDisplayParts:S,separatorDisplayParts:vfe,parameters:f,documentation:x,tags:C}})}function aYe(e,t,n){return py(i=>{i.writePunctuation(":"),i.writeSpace(" ");let s=n.getTypePredicateOfSignature(e);s?n.writeTypePredicate(s,t,void 0,i):n.writeType(n.getReturnTypeOfSignature(e),t,void 0,i)})}function oYe(e,t,n,i){let s=(e.target||e).typeParameters,o=fb(),c=(s||Ve).map(f=>j3e(f,t,n,i,o)),u=e.thisParameter?[t.symbolToParameterDeclaration(e.thisParameter,n,xN)]:[];return t.getExpandedParameters(e).map(f=>{let g=I.createNodeArray([...u,...Kt(f,y=>t.symbolToParameterDeclaration(y,n,xN))]),p=py(y=>{o.writeList(2576,g,i,y)});return{isVariadic:!1,parameters:c,prefix:[Pu(30)],suffix:[Pu(32),...p]}})}function cYe(e,t,n,i){let s=fb(),o=py(f=>{if(e.typeParameters&&e.typeParameters.length){let g=I.createNodeArray(e.typeParameters.map(p=>t.typeParameterToDeclaration(p,n,xN)));s.writeList(53776,g,i,f)}}),c=t.getExpandedParameters(e),u=t.hasEffectiveRestParameter(e)?c.length===1?f=>!0:f=>{var g;return!!(f.length&&((g=Ur(f[f.length-1],wm))==null?void 0:g.links.checkFlags)&32768)}:f=>!1;return c.map(f=>({isVariadic:u(f),parameters:f.map(g=>lYe(g,t,n,i,s)),prefix:[...o,Pu(21)],suffix:[Pu(22)]}))}function lYe(e,t,n,i,s){let o=py(f=>{let g=t.symbolToParameterDeclaration(e,n,xN);s.writeNode(4,g,i,f)}),c=t.isOptionalParameter(e.valueDeclaration),u=wm(e)&&!!(e.links.checkFlags&32768);return{name:e.name,documentation:e.getDocumentationComment(t),displayParts:o,isOptional:c,isRest:u}}function j3e(e,t,n,i,s){let o=py(c=>{let u=t.typeParameterToDeclaration(e,n,xN);s.writeNode(4,u,i,c)});return{name:e.symbol.name,documentation:e.symbol.getDocumentationComment(t),displayParts:o,isOptional:!1,isRest:!1}}var xN,vfe,uYe=ze({"src/services/signatureHelp.ts"(){"use strict";qr(),xN=70246400,vfe=[Pu(28),_c()]}}),TN={};Jn(TN,{getArgumentInfoForCompletions:()=>WQe,getSignatureHelpItems:()=>BQe});var _Ye=ze({"src/services/_namespaces/ts.SignatureHelp.ts"(){"use strict";uYe()}});function fYe(e,t){var n,i;let s={textSpan:Xc(t.getFullStart(),t.getEnd())},o=t;e:for(;;){let f=dYe(o);if(!f.length)break;for(let g=0;ge)break e;let x=bm(n1(t.text,y.end));if(x&&x.kind===2&&u(x.pos,x.end),pYe(t,e,y)){if(AJ(y)&&To(o)&&!vp(y.getStart(t),y.getEnd(),t)&&c(y.getStart(t),y.getEnd()),Ds(y)||e3(y)||bC(y)||UV(y)||p&&bC(p)||Tl(y)&&uc(o)||OC(y)&&Tl(o)||Ni(y)&&OC(o)&&f.length===1||q2(y)||C1(y)||eT(y)){o=y;break}if(e3(o)&&S&&w7(S)){let O=y.getFullStart()-2,z=S.getStart()+1;c(O,z)}let C=OC(y)&&mYe(p)&&gYe(S)&&!vp(p.getStart(),S.getStart(),t),w=C?p.getEnd():y.getStart(),D=C?S.getStart():hYe(t,y);if(Z_(y)&&((n=y.jsDoc)!=null&&n.length)&&c(Da(y.jsDoc).getStart(),D),OC(y)){let O=y.getChildren()[0];O&&Z_(O)&&((i=O.jsDoc)!=null&&i.length)&&O.getStart()!==y.pos&&(w=Math.min(w,Da(O.jsDoc).getStart()))}c(w,D),(ca(y)||Fk(y))&&c(w+1,D-1),o=y;break}if(g===f.length-1)break e}}return s;function c(f,g){if(f!==g){let p=Xc(f,g);(!s||!o6(p,s.textSpan)&&qK(p,e))&&(s={textSpan:p,...s&&{parent:s}})}}function u(f,g){c(f,g);let p=f;for(;t.text.charCodeAt(p)===47;)p++;c(p,g)}}function pYe(e,t,n){return E.assert(n.pos<=t),tu===e.readonlyToken||u.kind===148||u===e.questionToken||u.kind===58),c=kN(o,({kind:u})=>u===23||u===168||u===24);return[n,CN(lQ(c,({kind:u})=>u===59)),s]}if(bf(e)){let n=kN(e.getChildren(),c=>c===e.name||gs(e.modifiers,c)),i=((t=n[0])==null?void 0:t.kind)===327?n[0]:void 0,s=i?n.slice(1):n,o=lQ(s,({kind:c})=>c===59);return i?[i,CN(o)]:o}if(ms(e)){let n=kN(e.getChildren(),s=>s===e.dotDotDotToken||s===e.name),i=kN(n,s=>s===n[0]||s===e.questionToken);return lQ(i,({kind:s})=>s===64)}return Ma(e)?lQ(e.getChildren(),({kind:n})=>n===64):e.getChildren()}function kN(e,t){let n=[],i;for(let s of e)t(s)?(i=i||[],i.push(s)):(i&&(n.push(CN(i)),i=void 0),n.push(s));return i&&n.push(CN(i)),n}function lQ(e,t,n=!0){if(e.length<2)return e;let i=Qo(e,t);if(i===-1)return e;let s=e.slice(0,i),o=e[i],c=Pa(e),u=n&&c.kind===27,f=e.slice(i+1,u?e.length-1:void 0),g=rP([s.length?CN(s):void 0,o,f.length?CN(f):void 0]);return u?g.concat(c):g}function CN(e){return E.assertGreaterThanOrEqual(e.length,1),Lm(Jm.createSyntaxList(e),e[0].pos,Pa(e).end)}function mYe(e){let t=e&&e.kind;return t===19||t===23||t===21||t===286}function gYe(e){let t=e&&e.kind;return t===20||t===24||t===22||t===287}function hYe(e,t){switch(t.kind){case 348:case 345:case 355:case 353:case 350:return e.getLineEndOfPosition(t.getStart());default:return t.getEnd()}}var B3e,yYe=ze({"src/services/smartSelection.ts"(){"use strict";qr(),B3e=ud(kl,Kl)}}),uQ={};Jn(uQ,{getSmartSelectionRange:()=>fYe});var vYe=ze({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){"use strict";yYe()}});function J3e(e,t,n){let i=z3e(e,t,n);if(i!=="")return i;let s=CE(t);return s&32?Zo(t,231)?"local class":"class":s&384?"enum":s&524288?"type":s&64?"interface":s&262144?"type parameter":s&8?"enum member":s&2097152?"alias":s&1536?"module":i}function z3e(e,t,n){let i=e.getRootSymbols(t);if(i.length===1&&Da(i).flags&8192&&e.getTypeOfSymbolAtLocation(t,n).getNonNullableType().getCallSignatures().length!==0)return"method";if(e.isUndefinedSymbol(t))return"var";if(e.isArgumentsSymbol(t))return"local var";if(n.kind===110&&ut(n)||Dx(n))return"parameter";let s=CE(t);if(s&3)return JH(t)?"parameter":t.valueDeclaration&&Vk(t.valueDeclaration)?"const":t.valueDeclaration&&ew(t.valueDeclaration)?"using":t.valueDeclaration&&KP(t.valueDeclaration)?"await using":Qt(t.declarations,Y7)?"let":U3e(t)?"local var":"var";if(s&16)return U3e(t)?"local function":"function";if(s&32768)return"getter";if(s&65536)return"setter";if(s&8192)return"method";if(s&16384)return"constructor";if(s&131072)return"index";if(s&4){if(s&33554432&&t.links.checkFlags&6){let o=Qt(e.getRootSymbols(t),c=>{if(c.getFlags()&98311)return"property"});return o||(e.getTypeOfSymbolAtLocation(t,n).getCallSignatures().length?"method":"property")}return"property"}return""}function V3e(e){if(e.declarations&&e.declarations.length){let[t,...n]=e.declarations,i=bn(n)&&AL(t)&&ft(n,o=>!AL(o))?65536:0,s=j3(t,i);if(s)return s.split(",")}return[]}function bYe(e,t){if(!t)return"";let n=new Set(V3e(t));if(t.flags&2097152){let i=e.getAliasedSymbol(t);i!==t&&Qt(V3e(i),s=>{n.add(s)})}return t.flags&16777216&&n.add("optional"),n.size>0?hs(n.values()).join(","):""}function W3e(e,t,n,i,s,o,c,u){var f;let g=[],p=[],y=[],S=CE(t),x=c&1?z3e(e,t,s):"",C=!1,w=s.kind===110&&l5(s)||Dx(s),D,O,z=!1;if(s.kind===110&&!w)return{displayParts:[J_(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(x!==""||S&32||S&2097152){if(x==="getter"||x==="setter"){let oe=xr(t.declarations,Se=>Se.name===s);if(oe)switch(oe.kind){case 177:x="getter";break;case 178:x="setter";break;case 172:x="accessor";break;default:E.assertNever(oe)}else x="property"}let H;if(o??(o=w?e.getTypeAtLocation(s):e.getTypeOfSymbolAtLocation(t,s)),s.parent&&s.parent.kind===211){let oe=s.parent.name;(oe===s||oe&&oe.getFullWidth()===0)&&(s=s.parent)}let K;if(Dm(s)?K=s:(lH(s)||L3(s)||s.parent&&(Zu(s.parent)||B2(s.parent))&&As(t.valueDeclaration))&&(K=s.parent),K){H=e.getResolvedSignature(K);let oe=K.kind===214||Ws(K)&&K.expression.kind===108,Se=oe?o.getConstructSignatures():o.getCallSignatures();if(H&&!gs(Se,H.target)&&!gs(Se,H)&&(H=Se.length?Se[0]:void 0),H){switch(oe&&S&32?(x="constructor",Z(o.symbol,x)):S&2097152?(x="alias",ae(x),g.push(_c()),oe&&(H.flags&4&&(g.push(J_(128)),g.push(_c())),g.push(J_(105)),g.push(_c())),B(t)):Z(t,x),x){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":g.push(Pu(59)),g.push(_c()),!(Ir(o)&16)&&o.symbol&&(Nr(g,W3(e,o.symbol,i,void 0,5)),g.push(c6())),oe&&(H.flags&4&&(g.push(J_(128)),g.push(_c())),g.push(J_(105)),g.push(_c())),_e(H,Se,262144);break;default:_e(H,Se)}C=!0,z=Se.length>1}}else if(hH(s)&&!(S&98304)||s.kind===137&&s.parent.kind===176){let oe=s.parent;if(t.declarations&&xr(t.declarations,se=>se===(s.kind===137?oe.parent:oe))){let se=oe.kind===176?o.getNonNullableType().getConstructSignatures():o.getNonNullableType().getCallSignatures();e.isImplementationOfOverload(oe)?H=se[0]:H=e.getSignatureFromDeclaration(oe),oe.kind===176?(x="constructor",Z(o.symbol,x)):Z(oe.kind===179&&!(o.symbol.flags&2048||o.symbol.flags&4096)?o.symbol:t,x),H&&_e(H,se),C=!0,z=se.length>1}}}if(S&32&&!C&&!w&&(J(),Zo(t,231)?ae("local class"):g.push(J_(86)),g.push(_c()),B(t),$(t,n)),S&64&&c&2&&(X(),g.push(J_(120)),g.push(_c()),B(t),$(t,n)),S&524288&&c&2&&(X(),g.push(J_(156)),g.push(_c()),B(t),$(t,n),g.push(_c()),g.push(V3(64)),g.push(_c()),Nr(g,RA(e,s.parent&&eh(s.parent)?e.getTypeAtLocation(s.parent):e.getDeclaredTypeOfSymbol(t),i,8388608))),S&384&&(X(),ft(t.declarations,H=>T1(H)&&Mv(H))&&(g.push(J_(87)),g.push(_c())),g.push(J_(94)),g.push(_c()),B(t)),S&1536&&!w){X();let H=Zo(t,267),K=H&&H.name&&H.name.kind===80;g.push(J_(K?145:144)),g.push(_c()),B(t)}if(S&262144&&c&2)if(X(),g.push(Pu(21)),g.push(Pf("type parameter")),g.push(Pu(22)),g.push(_c()),B(t),t.parent)ie(),B(t.parent,i),$(t.parent,i);else{let H=Zo(t,168);if(H===void 0)return E.fail();let K=H.parent;if(K)if(As(K)){ie();let oe=e.getSignatureFromDeclaration(K);K.kind===180?(g.push(J_(105)),g.push(_c())):K.kind!==179&&K.name&&B(K.symbol),Nr(g,WH(e,oe,n,32))}else Xp(K)&&(ie(),g.push(J_(156)),g.push(_c()),B(K.symbol),$(K.symbol,n))}if(S&8){x="enum member",Z(t,"enum member");let H=(f=t.declarations)==null?void 0:f[0];if(H?.kind===306){let K=e.getConstantValue(H);K!==void 0&&(g.push(_c()),g.push(V3(64)),g.push(_c()),g.push(D_(qee(K),typeof K=="number"?7:8)))}}if(t.flags&2097152){if(X(),!C||p.length===0&&y.length===0){let H=e.getAliasedSymbol(t);if(H!==t&&H.declarations&&H.declarations.length>0){let K=H.declarations[0],oe=us(K);if(oe&&!C){let Se=G7(K)&&Mr(K,128),se=t.name!=="default"&&!Se,Y=W3e(e,H,Mn(K),K,oe,o,c,se?t:H);g.push(...Y.displayParts),g.push(c6()),D=Y.documentation,O=Y.tags}else D=H.getContextualDocumentationComment(K,e),O=H.getJsDocTags(e)}}if(t.declarations)switch(t.declarations[0].kind){case 270:g.push(J_(95)),g.push(_c()),g.push(J_(145));break;case 277:g.push(J_(95)),g.push(_c()),g.push(J_(t.declarations[0].isExportEquals?64:90));break;case 281:g.push(J_(95));break;default:g.push(J_(102))}g.push(_c()),B(t),Qt(t.declarations,H=>{if(H.kind===271){let K=H;if(l1(K))g.push(_c()),g.push(V3(64)),g.push(_c()),g.push(J_(149)),g.push(Pu(21)),g.push(D_(Qc(iE(K)),8)),g.push(Pu(22));else{let oe=e.getSymbolAtLocation(K.moduleReference);oe&&(g.push(_c()),g.push(V3(64)),g.push(_c()),B(oe,i))}return!0}})}if(!C)if(x!==""){if(o){if(w?(X(),g.push(J_(110))):Z(t,x),x==="property"||x==="accessor"||x==="getter"||x==="setter"||x==="JSX attribute"||S&3||x==="local var"||x==="index"||x==="using"||x==="await using"||w){if(g.push(Pu(59)),g.push(_c()),o.symbol&&o.symbol.flags&262144&&x!=="index"){let H=py(K=>{let oe=e.typeParameterToDeclaration(o,i,bfe);V().writeNode(4,oe,Mn(ls(i)),K)});Nr(g,H)}else Nr(g,RA(e,o,i));if(wm(t)&&t.links.target&&wm(t.links.target)&&t.links.target.links.tupleLabelDeclaration){let H=t.links.target.links.tupleLabelDeclaration;E.assertNode(H.name,Ie),g.push(_c()),g.push(Pu(21)),g.push(Pf(ur(H.name))),g.push(Pu(22))}}else if(S&16||S&8192||S&16384||S&131072||S&98304||x==="method"){let H=o.getNonNullableType().getCallSignatures();H.length&&(_e(H[0],H),z=H.length>1)}}}else x=J3e(e,t,s);if(p.length===0&&!z&&(p=t.getContextualDocumentationComment(i,e)),p.length===0&&S&4&&t.parent&&t.declarations&&Qt(t.parent.declarations,H=>H.kind===312))for(let H of t.declarations){if(!H.parent||H.parent.kind!==226)continue;let K=e.getSymbolAtLocation(H.parent.right);if(K&&(p=K.getDocumentationComment(e),y=K.getJsDocTags(e),p.length>0))break}if(p.length===0&&Ie(s)&&t.valueDeclaration&&Ma(t.valueDeclaration)){let H=t.valueDeclaration,K=H.parent,oe=H.propertyName||H.name;if(Ie(oe)&&Gp(K)){let Se=gp(oe),se=e.getTypeAtLocation(K);p=ba(se.isUnion()?se.types:[se],Y=>{let ve=Y.getProperty(Se);return ve?ve.getDocumentationComment(e):void 0})||Ve}}return y.length===0&&!z&&(y=t.getContextualJsDocTags(i,e)),p.length===0&&D&&(p=D),y.length===0&&O&&(y=O),{displayParts:g,documentation:p,symbolKind:x,tags:y.length===0?void 0:y};function V(){return fb()}function X(){g.length&&g.push(c6()),J()}function J(){u&&(ae("alias"),g.push(_c()))}function ie(){g.push(_c()),g.push(J_(103)),g.push(_c())}function B(H,K){let oe;u&&H===t&&(H=u),x==="index"&&(oe=e.getIndexInfosOfIndexSymbol(H));let Se=[];H.flags&131072&&oe?(H.parent&&(Se=W3(e,H.parent)),Se.push(Pu(23)),oe.forEach((se,Y)=>{Se.push(...RA(e,se.keyType)),Y!==oe.length-1&&(Se.push(_c()),Se.push(Pu(52)),Se.push(_c()))}),Se.push(Pu(24))):Se=W3(e,H,K||n,void 0,7),Nr(g,Se),t.flags&16777216&&g.push(Pu(58))}function Z(H,K){X(),K&&(ae(K),H&&!ft(H.declarations,oe=>Co(oe)||(uo(oe)||Bl(oe))&&!oe.name)&&(g.push(_c()),B(H)))}function ae(H){switch(H){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":g.push(zH(H));return;default:g.push(Pu(21)),g.push(zH(H)),g.push(Pu(22));return}}function _e(H,K,oe=0){Nr(g,WH(e,H,i,oe|32)),K.length>1&&(g.push(_c()),g.push(Pu(21)),g.push(V3(40)),g.push(D_((K.length-1).toString(),7)),g.push(_c()),g.push(Pf(K.length===2?"overload":"overloads")),g.push(Pu(22))),p=H.getDocumentationComment(e),y=H.getJsDocTags(),K.length>1&&p.length===0&&y.length===0&&(p=K[0].getDocumentationComment(e),y=K[0].getJsDocTags().filter(Se=>Se.name!=="deprecated"))}function $(H,K){let oe=py(Se=>{let se=e.symbolToTypeParameterDeclarations(H,K,bfe);V().writeList(53776,se,Mn(ls(K)),Se)});Nr(g,oe)}}function SYe(e,t,n,i,s,o=eS(s),c){return W3e(e,t,n,i,s,void 0,o,c)}function U3e(e){return e.parent?!1:Qt(e.declarations,t=>{if(t.kind===218)return!0;if(t.kind!==260&&t.kind!==262)return!1;for(let n=t.parent;!jv(n);n=n.parent)if(n.kind===312||n.kind===268)return!1;return!0})}var bfe,xYe=ze({"src/services/symbolDisplay.ts"(){"use strict";qr(),bfe=70246400}}),_0={};Jn(_0,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>SYe,getSymbolKind:()=>J3e,getSymbolModifiers:()=>bYe});var TYe=ze({"src/services/_namespaces/ts.SymbolDisplay.ts"(){"use strict";xYe()}});function q3e(e){let t=e.__pos;return E.assert(typeof t=="number"),t}function Sfe(e,t){E.assert(typeof t=="number"),e.__pos=t}function H3e(e){let t=e.__end;return E.assert(typeof t=="number"),t}function xfe(e,t){E.assert(typeof t=="number"),e.__end=t}function G3e(e,t){return ma(e,t,!1,!0)}function kYe(e,t){let n=t;for(;n0?1:0,S=Z0(gE(e,g)+y,e);return S=G3e(e.text,S),Z0(gE(e,S),e)}function Tfe(e,t,n){let{end:i}=t,{trailingTriviaOption:s}=n;if(s===2){let o=n1(e.text,i);if(o){let c=gE(e,t.end);for(let u of o){if(u.kind===2||gE(e,u.pos)>c)break;if(gE(e,u.end)>c)return ma(e.text,u.end,!0,!0)}}}}function k6(e,t,n){var i;let{end:s}=t,{trailingTriviaOption:o}=n;if(o===0)return s;if(o===1){let f=es(n1(e.text,s),lg(e.text,s)),g=(i=f?.[f.length-1])==null?void 0:i.end;return g||s}let c=Tfe(e,t,n);if(c)return c;let u=ma(e.text,s,!0);return u!==s&&(o===2||xu(e.text.charCodeAt(u-1)))?u:s}function _Q(e,t){return!!t&&!!e.parent&&(t.kind===28||t.kind===27&&e.parent.kind===210)}function CYe(e){return uo(e)||al(e)}function EYe(e){if(e.kind!==219)return e;let t=e.parent.kind===172?e.parent:e.parent.parent;return t.jsDoc=e.jsDoc,t}function DYe(e,t){if(e.kind===t.kind)switch(e.kind){case 348:{let n=e,i=t;return Ie(n.name)&&Ie(i.name)&&n.name.escapedText===i.name.escapedText?I.createJSDocParameterTag(void 0,i.name,!1,i.typeExpression,i.isNameFirst,n.comment):void 0}case 349:return I.createJSDocReturnTag(void 0,t.typeExpression,e.comment);case 351:return I.createJSDocTypeTag(void 0,t.typeExpression,e.comment)}}function kfe(e,t){return ma(e.text,cS(e,t,{leadingTriviaOption:1}),!1,!0)}function PYe(e,t,n,i){let s=kfe(e,i);if(n===void 0||vp(k6(e,t,{}),s,e))return s;let o=ol(i.getStart(e),e);if(_Q(t,o)){let c=ol(t.getStart(e),e);if(_Q(n,c)){let u=ma(e.text,o.getEnd(),!0,!0);if(vp(c.getStart(e),o.getStart(e),e))return xu(e.text.charCodeAt(u-1))?u-1:u;if(xu(e.text.charCodeAt(u)))return u}}return s}function wYe(e,t){let n=Ya(e,19,t),i=Ya(e,20,t);return[n?.end,i?.end]}function fQ(e){return xa(e)?e.properties:e.members}function Cfe(e,t){for(let n=t.length-1;n>=0;n--){let{span:i,newText:s}=t[n];e=`${e.substring(0,i.start)}${s}${e.substring(Dc(i))}`}return e}function AYe(e){return ma(e,0)===e.length}function pQ(e){let t=on(e,pQ,Y3e,NYe,pQ),n=Ro(t)?t:Object.create(t);return Lm(n,q3e(e),H3e(e)),n}function NYe(e,t,n,i,s){let o=Dn(e,t,n,i,s);if(!o)return o;E.assert(e);let c=o===e?I.createNodeArray(o.slice(0)):o;return Lm(c,q3e(e),H3e(e)),c}function $3e(e){let t=0,n=Nw(e),i=Y=>{Y&&Sfe(Y,t)},s=Y=>{Y&&xfe(Y,t)},o=Y=>{Y&&Sfe(Y,t)},c=Y=>{Y&&xfe(Y,t)},u=Y=>{Y&&Sfe(Y,t)},f=Y=>{Y&&xfe(Y,t)};function g(Y,ve){if(ve||!AYe(Y)){t=n.getTextPos();let xe=0;for(;Kg(Y.charCodeAt(Y.length-xe-1));)xe++;t-=xe}}function p(Y){n.write(Y),g(Y,!1)}function y(Y){n.writeComment(Y)}function S(Y){n.writeKeyword(Y),g(Y,!1)}function x(Y){n.writeOperator(Y),g(Y,!1)}function C(Y){n.writePunctuation(Y),g(Y,!1)}function w(Y){n.writeTrailingSemicolon(Y),g(Y,!1)}function D(Y){n.writeParameter(Y),g(Y,!1)}function O(Y){n.writeProperty(Y),g(Y,!1)}function z(Y){n.writeSpace(Y),g(Y,!1)}function V(Y){n.writeStringLiteral(Y),g(Y,!1)}function X(Y,ve){n.writeSymbol(Y,ve),g(Y,!1)}function J(Y){n.writeLine(Y)}function ie(){n.increaseIndent()}function B(){n.decreaseIndent()}function Z(){return n.getText()}function ae(Y){n.rawWrite(Y),g(Y,!1)}function _e(Y){n.writeLiteral(Y),g(Y,!0)}function $(){return n.getTextPos()}function H(){return n.getLine()}function K(){return n.getColumn()}function oe(){return n.getIndent()}function Se(){return n.isAtStartOfLine()}function se(){n.clear(),t=0}return{onBeforeEmitNode:i,onAfterEmitNode:s,onBeforeEmitNodeArray:o,onAfterEmitNodeArray:c,onBeforeEmitToken:u,onAfterEmitToken:f,write:p,writeComment:y,writeKeyword:S,writeOperator:x,writePunctuation:C,writeTrailingSemicolon:w,writeParameter:D,writeProperty:O,writeSpace:z,writeStringLiteral:V,writeSymbol:X,writeLine:J,increaseIndent:ie,decreaseIndent:B,getText:Z,rawWrite:ae,writeLiteral:_e,getTextPos:$,getLine:H,getColumn:K,getIndent:oe,isAtStartOfLine:Se,hasTrailingComment:()=>n.hasTrailingComment(),hasTrailingWhitespace:()=>n.hasTrailingWhitespace(),clear:se}}function IYe(e){let t;for(let g of e.statements)if(Up(g))t=g;else break;let n=0,i=e.text;if(t)return n=t.end,f(),n;let s=b7(i);s!==void 0&&(n=s.length,f());let o=lg(i,n);if(!o)return n;let c,u;for(let g of o){if(g.kind===3){if(q7(i,g.pos)){c={range:g,pinnedOrTripleSlash:!0};continue}}else if(BJ(i,g.pos,g.end)){c={range:g,pinnedOrTripleSlash:!0};continue}if(c){if(c.pinnedOrTripleSlash)break;let p=e.getLineAndCharacterOfPosition(g.pos).line,y=e.getLineAndCharacterOfPosition(c.range.end).line;if(p>=y+2)break}if(e.statements.length){u===void 0&&(u=e.getLineAndCharacterOfPosition(e.statements[0].getStart()).line);let p=e.getLineAndCharacterOfPosition(g.end).line;if(u(e[e.Exclude=0]="Exclude",e[e.IncludeAll=1]="IncludeAll",e[e.JSDoc=2]="JSDoc",e[e.StartLine=3]="StartLine",e))(Efe||{}),Dfe=(e=>(e[e.Exclude=0]="Exclude",e[e.ExcludeWhitespace=1]="ExcludeWhitespace",e[e.Include=2]="Include",e))(Dfe||{}),sD={leadingTriviaOption:0,trailingTriviaOption:0},Q3e=class ghe{constructor(t,n){this.newLineCharacter=t,this.formatContext=n,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(t){return new ghe(c0(t.host,t.formatContext.options),t.formatContext)}static with(t,n){let i=ghe.fromContext(t);return n(i),i.getChanges()}pushRaw(t,n){E.assertEqual(t.fileName,n.fileName);for(let i of n.textChanges)this.changes.push({kind:3,sourceFile:t,text:i.newText,range:oL(i.span)})}deleteRange(t,n){this.changes.push({kind:0,sourceFile:t,range:n})}delete(t,n){this.deletedNodes.push({sourceFile:t,node:n})}deleteNode(t,n,i={leadingTriviaOption:1}){this.deleteRange(t,EN(t,n,n,i))}deleteNodes(t,n,i={leadingTriviaOption:1},s){for(let o of n){let c=cS(t,o,i,s),u=k6(t,o,i);this.deleteRange(t,{pos:c,end:u}),s=!!Tfe(t,o,i)}}deleteModifier(t,n){this.deleteRange(t,{pos:n.getStart(t),end:ma(t.text,n.end,!0)})}deleteNodeRange(t,n,i,s={leadingTriviaOption:1}){let o=cS(t,n,s),c=k6(t,i,s);this.deleteRange(t,{pos:o,end:c})}deleteNodeRangeExcludingEnd(t,n,i,s={leadingTriviaOption:1}){let o=cS(t,n,s),c=i===void 0?t.text.length:cS(t,i,s);this.deleteRange(t,{pos:o,end:c})}replaceRange(t,n,i,s={}){this.changes.push({kind:1,sourceFile:t,range:n,options:s,node:i})}replaceNode(t,n,i,s=sD){this.replaceRange(t,EN(t,n,n,s),i,s)}replaceNodeRange(t,n,i,s,o=sD){this.replaceRange(t,EN(t,n,i,o),s,o)}replaceRangeWithNodes(t,n,i,s={}){this.changes.push({kind:2,sourceFile:t,range:n,options:s,nodes:i})}replaceNodeWithNodes(t,n,i,s=sD){this.replaceRangeWithNodes(t,EN(t,n,n,s),i,s)}replaceNodeWithText(t,n,i){this.replaceRangeWithText(t,EN(t,n,n,sD),i)}replaceNodeRangeWithNodes(t,n,i,s,o=sD){this.replaceRangeWithNodes(t,EN(t,n,i,o),s,o)}nodeHasTrailingComment(t,n,i=sD){return!!Tfe(t,n,i)}nextCommaToken(t,n){let i=mb(n,n.parent,t);return i&&i.kind===28?i:void 0}replacePropertyAssignment(t,n,i){let s=this.nextCommaToken(t,n)?"":","+this.newLineCharacter;this.replaceNode(t,n,i,{suffix:s})}insertNodeAt(t,n,i,s={}){this.replaceRange(t,Wf(n),i,s)}insertNodesAt(t,n,i,s={}){this.replaceRangeWithNodes(t,Wf(n),i,s)}insertNodeAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertNodesAtTopOfFile(t,n,i){this.insertAtTopOfFile(t,n,i)}insertAtTopOfFile(t,n,i){let s=IYe(t),o={prefix:s===0?void 0:this.newLineCharacter,suffix:(xu(t.text.charCodeAt(s))?"":this.newLineCharacter)+(i?this.newLineCharacter:"")};ss(n)?this.insertNodesAt(t,s,n,o):this.insertNodeAt(t,s,n,o)}insertNodesAtEndOfFile(t,n,i){this.insertAtEndOfFile(t,n,i)}insertAtEndOfFile(t,n,i){let s=t.end+1,o={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(i?this.newLineCharacter:"")};this.insertNodesAt(t,s,n,o)}insertStatementsInNewFile(t,n,i){this.newFileChanges||(this.newFileChanges=mf()),this.newFileChanges.add(t,{oldFile:i,statements:n})}insertFirstParameter(t,n,i){let s=Pl(n);s?this.insertNodeBefore(t,s,i):this.insertNodeAt(t,n.pos,i)}insertNodeBefore(t,n,i,s=!1,o={}){this.insertNodeAt(t,cS(t,n,o),i,this.getOptionsForInsertNodeBefore(n,i,s))}insertNodesBefore(t,n,i,s=!1,o={}){this.insertNodesAt(t,cS(t,n,o),i,this.getOptionsForInsertNodeBefore(n,Da(i),s))}insertModifierAt(t,n,i,s={}){this.insertNodeAt(t,n,I.createToken(i),s)}insertModifierBefore(t,n,i){return this.insertModifierAt(t,i.getStart(t),n,{suffix:" "})}insertCommentBeforeLine(t,n,i,s){let o=Z0(n,t),c=Roe(t.text,o),u=X3e(t,c),f=R3(t,u?c:i),g=t.text.slice(o,c),p=`${u?"":this.newLineCharacter}//${s}${this.newLineCharacter}${g}`;this.insertText(t,f.getStart(t),p)}insertJsdocCommentBefore(t,n,i){let s=n.getStart(t);if(n.jsDoc)for(let u of n.jsDoc)this.deleteRange(t,{pos:Cp(u.getStart(t),t),end:k6(t,u,{})});let o=yL(t.text,s-1),c=t.text.slice(o,s);this.insertNodeAt(t,s,i,{suffix:this.newLineCharacter+c})}createJSDocText(t,n){let i=oa(n.jsDoc,o=>os(o.comment)?I.createJSDocText(o.comment):o.comment),s=bm(n.jsDoc);return s&&vp(s.pos,s.end,t)&&bn(i)===0?void 0:I.createNodeArray(Tv(i,I.createJSDocText(` -`)))}replaceJSDocComment(t,n,i){this.insertJsdocCommentBefore(t,EYe(n),I.createJSDocComment(this.createJSDocText(t,n),I.createNodeArray(i)))}addJSDocTags(t,n,i){let s=x4(n.jsDoc,c=>c.tags),o=i.filter(c=>!s.some((u,f)=>{let g=DYe(u,c);return g&&(s[f]=g),!!g}));this.replaceJSDocComment(t,n,[...s,...o])}filterJSDocTags(t,n,i){this.replaceJSDocComment(t,n,Fr(x4(n.jsDoc,s=>s.tags),i))}replaceRangeWithText(t,n,i){this.changes.push({kind:3,sourceFile:t,range:n,text:i})}insertText(t,n,i){this.replaceRangeWithText(t,Wf(n),i)}tryInsertTypeAnnotation(t,n,i){let s;if(As(n)){if(s=Ya(n,22,t),!s){if(!Co(n))return!1;s=Da(n.parameters)}}else s=(n.kind===260?n.exclamationToken:n.questionToken)??n.name;return this.insertNodeAt(t,s.end,i,{prefix:": "}),!0}tryInsertThisTypeAnnotation(t,n,i){let s=Ya(n,21,t).getStart(t)+1,o=n.parameters.length?", ":"";this.insertNodeAt(t,s,i,{prefix:"this: ",suffix:o})}insertTypeParameters(t,n,i){let s=(Ya(n,21,t)||Da(n.parameters)).getStart(t);this.insertNodesAt(t,s,i,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(t,n,i){return Ai(t)||Ml(t)?{suffix:i?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:Ni(t)?{suffix:", "}:ms(t)?ms(n)?{suffix:", "}:{}:ca(t)&&kl(t.parent)||lh(t)?{suffix:", "}:E_(t)?{suffix:","+(i?this.newLineCharacter:" ")}:E.failBadSyntaxKind(t)}insertNodeAtConstructorStart(t,n,i){let s=Pl(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[i,...n.body.statements]):this.insertNodeBefore(t,s,i)}insertNodeAtConstructorStartAfterSuperCall(t,n,i){let s=xr(n.body.statements,o=>Il(o)&&x2(o.expression));!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}insertNodeAtConstructorEnd(t,n,i){let s=qo(n.body.statements);!s||!n.body.multiLine?this.replaceConstructorBody(t,n,[...n.body.statements,i]):this.insertNodeAfter(t,s,i)}replaceConstructorBody(t,n,i){this.replaceNode(t,n.body,I.createBlock(i,!0))}insertNodeAtEndOfScope(t,n,i){let s=cS(t,n.getLastToken(),{});this.insertNodeAt(t,s,i,{prefix:xu(t.text.charCodeAt(n.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtObjectStart(t,n,i){this.insertNodeAtStartWorker(t,n,i)}insertNodeAtStartWorker(t,n,i){let s=this.guessIndentationFromExistingMembers(t,n)??this.computeIndentationForNewMember(t,n);this.insertNodeAt(t,fQ(n).pos,i,this.getInsertNodeAtStartInsertOptions(t,n,s))}guessIndentationFromExistingMembers(t,n){let i,s=n;for(let o of fQ(n)){if(R5(s,o,t))return;let c=o.getStart(t),u=ml.SmartIndenter.findFirstNonWhitespaceColumn(Cp(c,t),c,t,this.formatContext.options);if(i===void 0)i=u;else if(u!==i)return;s=o}return i}computeIndentationForNewMember(t,n){let i=n.getStart(t);return ml.SmartIndenter.findFirstNonWhitespaceColumn(Cp(i,t),i,t,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(t,n,i){let o=fQ(n).length===0,c=Hp(this.classesWithNodesInsertedAtStart,Va(n),{node:n,sourceFile:t}),u=xa(n)&&(!dp(t)||!o),f=xa(n)&&dp(t)&&o&&!c;return{indentation:i,prefix:(f?",":"")+this.newLineCharacter,suffix:u?",":Wu(n)&&o?";":""}}insertNodeAfterComma(t,n,i){let s=this.insertNodeAfterWorker(t,this.nextCommaToken(t,n)||n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfter(t,n,i){let s=this.insertNodeAfterWorker(t,n,i);this.insertNodeAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAtEndOfList(t,n,i){this.insertNodeAt(t,n.end,i,{prefix:", "})}insertNodesAfter(t,n,i){let s=this.insertNodeAfterWorker(t,n,Da(i));this.insertNodesAt(t,s,i,this.getInsertNodeAfterOptions(t,n))}insertNodeAfterWorker(t,n,i){return FYe(n,i)&&t.text.charCodeAt(n.end-1)!==59&&this.replaceRange(t,Wf(n.end),I.createToken(27)),k6(t,n,{})}getInsertNodeAfterOptions(t,n){let i=this.getInsertNodeAfterOptionsWorker(n);return{...i,prefix:n.end===t.end&&Ai(n)?i.prefix?` -${i.prefix}`:` -`:i.prefix}}getInsertNodeAfterOptionsWorker(t){switch(t.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return E.assert(Ai(t)||N7(t)),{suffix:this.newLineCharacter}}}insertName(t,n,i){if(E.assert(!n.name),n.kind===219){let s=Ya(n,39,t),o=Ya(n,21,t);o?(this.insertNodesAt(t,o.getStart(t),[I.createToken(100),I.createIdentifier(i)],{joiner:" "}),dh(this,t,s)):(this.insertText(t,Da(n.parameters).getStart(t),`function ${i}(`),this.replaceRange(t,s,I.createToken(22))),n.body.kind!==241&&(this.insertNodesAt(t,n.body.getStart(t),[I.createToken(19),I.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(t,n.body.end,[I.createToken(27),I.createToken(20)],{joiner:" "}))}else{let s=Ya(n,n.kind===218?100:86,t).end;this.insertNodeAt(t,s,I.createIdentifier(i),{prefix:" "})}}insertExportModifier(t,n){this.insertText(t,n.getStart(t),"export ")}insertImportSpecifierAtIndex(t,n,i,s){let o=i.elements[s-1];o?this.insertNodeInListAfter(t,o,n):this.insertNodeBefore(t,i.elements[0],n,!vp(i.elements[0].getStart(),i.parent.parent.getStart(),t))}insertNodeInListAfter(t,n,i,s=ml.SmartIndenter.getContainingList(n,t)){if(!s){E.fail("node is not a list element");return}let o=Bk(s,n);if(o<0)return;let c=n.getEnd();if(o!==s.length-1){let u=qi(t,n.end);if(u&&_Q(n,u)){let f=s[o+1],g=G3e(t.text,f.getFullStart()),p=`${Zs(u.kind)}${t.text.substring(u.end,g)}`;this.insertNodesAt(t,g,[i],{suffix:p})}}else{let u=n.getStart(t),f=Cp(u,t),g,p=!1;if(s.length===1)g=28;else{let y=ol(n.pos,t);g=_Q(n,y)?y.kind:28,p=Cp(s[o-1].getStart(t),t)!==f}if(kYe(t.text,n.end)&&(p=!0),p){this.replaceRange(t,Wf(c),I.createToken(g));let y=ml.SmartIndenter.findFirstNonWhitespaceColumn(f,u,t,this.formatContext.options),S=ma(t.text,c,!0,!1);for(;S!==c&&xu(t.text.charCodeAt(S-1));)S--;this.replaceRange(t,Wf(S),i,{indentation:y,prefix:this.newLineCharacter})}else this.replaceRange(t,Wf(c),i,{prefix:`${Zs(g)} `})}}parenthesizeExpression(t,n){this.replaceRange(t,aV(n),I.createParenthesizedExpression(n))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:t,sourceFile:n})=>{let[i,s]=wYe(t,n);if(i!==void 0&&s!==void 0){let o=fQ(t).length===0,c=vp(i,s,n);o&&c&&i!==s-1&&this.deleteRange(n,Wf(i,s-1)),c&&this.insertText(n,s-1,this.newLineCharacter)}})}finishDeleteDeclarations(){let t=new Set;for(let{sourceFile:n,node:i}of this.deletedNodes)this.deletedNodes.some(s=>s.sourceFile===n&&loe(s.node,i))||(ss(i)?this.deleteRange(n,oV(n,i)):Pfe.deleteDeclaration(this,t,n,i));t.forEach(n=>{let i=n.getSourceFile(),s=ml.SmartIndenter.getContainingList(n,i);if(n!==Pa(s))return;let o=a2(s,c=>!t.has(c),s.length-2);o!==-1&&this.deleteRange(i,{pos:s[o].end,end:kfe(i,s[o+1])})})}getChanges(t){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();let n=dQ.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,t);return this.newFileChanges&&this.newFileChanges.forEach((i,s)=>{n.push(dQ.newFileChanges(s,i,this.newLineCharacter,this.formatContext))}),n}createNewFile(t,n,i){this.insertStatementsInNewFile(n,i,t)}},(e=>{function t(u,f,g,p){return Ri(E4(u,y=>y.sourceFile.path),y=>{let S=y[0].sourceFile,x=Mh(y,(w,D)=>w.range.pos-D.range.pos||w.range.end-D.range.end);for(let w=0;w`${JSON.stringify(x[w].range)} and ${JSON.stringify(x[w+1].range)}`);let C=Ri(x,w=>{let D=fy(w.range),O=w.kind===1?Mn(cc(w.node))??w.sourceFile:w.kind===2?Mn(cc(w.nodes[0]))??w.sourceFile:w.sourceFile,z=s(w,O,S,f,g,p);if(!(D.length===z.length&&Xoe(O.text,z,D.start)))return NA(D,z)});return C.length>0?{fileName:S.fileName,textChanges:C}:void 0})}e.getTextChangesFromChanges=t;function n(u,f,g,p){let y=i(eF(u),f,g,p);return{fileName:u,textChanges:[NA(Gl(0,0),y)],isNewFile:!0}}e.newFileChanges=n;function i(u,f,g,p){let y=oa(f,C=>C.statements.map(w=>w===4?"":c(w,C.oldFile,g).text)).join(g),S=F8("any file name",y,{languageVersion:99,jsDocParsingMode:1},!0,u),x=ml.formatDocument(S,p);return Cfe(y,x)+g}e.newFileChangesWorker=i;function s(u,f,g,p,y,S){var x;if(u.kind===0)return"";if(u.kind===3)return u.text;let{options:C={},range:{pos:w}}=u,D=V=>o(V,f,g,w,C,p,y,S),O=u.kind===2?u.nodes.map(V=>yk(D(V),p)).join(((x=u.options)==null?void 0:x.joiner)||p):D(u.node),z=C.indentation!==void 0||Cp(w,f)===w?O:O.replace(/^\s+/,"");return(C.prefix||"")+z+(!C.suffix||Sc(z,C.suffix)?"":C.suffix)}function o(u,f,g,p,{indentation:y,prefix:S,delta:x},C,w,D){let{node:O,text:z}=c(u,f,C);D&&D(O,z);let V=IL(w,f),X=y!==void 0?y:ml.SmartIndenter.getIndentation(p,g,V,S===C||Cp(p,f)===p);x===void 0&&(x=ml.SmartIndenter.shouldIndentChildNode(V,u)&&V.indentSize||0);let J={text:z,getLineAndCharacterOfPosition(B){return Ka(this,B)}},ie=ml.formatNodeGivenIndentation(O,J,f.languageVariant,X,x,{...w,options:V});return Cfe(z,ie)}function c(u,f,g){let p=$3e(g),y=UA(g);return N1({newLine:y,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},p).writeNode(4,u,f,p),{text:p.getText(),node:pQ(u)}}e.getNonformattedText=c})(dQ||(dQ={})),Y3e={...yd,factory:i8(yd.factory.flags|1,yd.factory.baseFactory)},(e=>{function t(o,c,u,f){switch(f.kind){case 169:{let x=f.parent;Co(x)&&x.parameters.length===1&&!Ya(x,21,u)?o.replaceNodeWithText(u,f,"()"):DN(o,c,u,f);break}case 272:case 271:let g=u.imports.length&&f===Da(u.imports).parent||f===xr(u.statements,S2);dh(o,u,f,{leadingTriviaOption:g?0:Z_(f)?2:3});break;case 208:let p=f.parent;p.kind===207&&f!==Pa(p.elements)?dh(o,u,f):DN(o,c,u,f);break;case 260:s(o,c,u,f);break;case 168:DN(o,c,u,f);break;case 276:let S=f.parent;S.elements.length===1?i(o,u,S):DN(o,c,u,f);break;case 274:i(o,u,f);break;case 27:dh(o,u,f,{trailingTriviaOption:0});break;case 100:dh(o,u,f,{leadingTriviaOption:0});break;case 263:case 262:dh(o,u,f,{leadingTriviaOption:Z_(f)?2:3});break;default:f.parent?Rm(f.parent)&&f.parent.name===f?n(o,u,f.parent):Ws(f.parent)&&gs(f.parent.arguments,f)?DN(o,c,u,f):dh(o,u,f):dh(o,u,f)}}e.deleteDeclaration=t;function n(o,c,u){if(!u.namedBindings)dh(o,c,u.parent);else{let f=u.name.getStart(c),g=qi(c,u.name.end);if(g&&g.kind===28){let p=ma(c.text,g.end,!1,!0);o.deleteRange(c,{pos:f,end:p})}else dh(o,c,u.name)}}function i(o,c,u){if(u.parent.name){let f=E.checkDefined(qi(c,u.pos-1));o.deleteRange(c,{pos:f.getStart(c),end:u.end})}else{let f=f1(u,272);dh(o,c,f)}}function s(o,c,u,f){let{parent:g}=f;if(g.kind===299){o.deleteNodeRange(u,Ya(g,21,u),Ya(g,22,u));return}if(g.declarations.length!==1){DN(o,c,u,f);return}let p=g.parent;switch(p.kind){case 250:case 249:o.replaceNode(u,f,I.createObjectLiteralExpression());break;case 248:dh(o,u,g);break;case 243:dh(o,u,p,{leadingTriviaOption:Z_(p)?2:3});break;default:E.assertNever(p)}}})(Pfe||(Pfe={}))}}),er={};Jn(er,{ChangeTracker:()=>Q3e,LeadingTriviaOption:()=>Efe,TrailingTriviaOption:()=>Dfe,applyChanges:()=>Cfe,assignPositionsToNode:()=>pQ,createWriter:()=>$3e,deleteNode:()=>dh,isThisTypeAnnotatable:()=>CYe,isValidLocationToAddComment:()=>X3e});var LYe=ze({"src/services/_namespaces/ts.textChanges.ts"(){"use strict";OYe()}}),wfe,Afe,MYe=ze({"src/services/formatting/formattingContext.ts"(){"use strict";qr(),wfe=(e=>(e[e.FormatDocument=0]="FormatDocument",e[e.FormatSelection=1]="FormatSelection",e[e.FormatOnEnter=2]="FormatOnEnter",e[e.FormatOnSemicolon=3]="FormatOnSemicolon",e[e.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",e[e.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",e))(wfe||{}),Afe=class{constructor(e,t,n){this.sourceFile=e,this.formattingRequestKind=t,this.options=n}updateContext(e,t,n,i,s){this.currentTokenSpan=E.checkDefined(e),this.currentTokenParent=E.checkDefined(t),this.nextTokenSpan=E.checkDefined(n),this.nextTokenParent=E.checkDefined(i),this.contextNode=E.checkDefined(s),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){let e=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,t=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=e===t}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(e){let t=this.sourceFile.getLineAndCharacterOfPosition(e.getStart(this.sourceFile)).line,n=this.sourceFile.getLineAndCharacterOfPosition(e.getEnd()).line;return t===n}BlockIsOnOneLine(e){let t=Ya(e,19,this.sourceFile),n=Ya(e,20,this.sourceFile);if(t&&n){let i=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line,s=this.sourceFile.getLineAndCharacterOfPosition(n.getStart(this.sourceFile)).line;return i===s}return!1}}}});function Nfe(e,t,n,i,s){let o=t===1?K3e:Z3e;o.setText(e),o.resetTokenState(n);let c=!0,u,f,g,p,y,S=s({advance:x,readTokenInfo:J,readEOFTokenRange:B,isOnToken:Z,isOnEOF:ae,getCurrentLeadingTrivia:()=>u,lastTrailingTriviaWasNewLine:()=>c,skipToEndOf:$,skipToStartOf:H,getTokenFullStart:()=>y?.token.pos??o.getTokenStart(),getStartPos:()=>y?.token.pos??o.getTokenStart()});return y=void 0,o.setText(void 0),S;function x(){y=void 0,o.getTokenFullStart()!==n?c=!!f&&Pa(f).kind===4:o.scan(),u=void 0,f=void 0;let oe=o.getTokenFullStart();for(;oe(e[e.None=0]="None",e[e.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",e[e.StopProcessingTokenActions=2]="StopProcessingTokenActions",e[e.InsertSpace=4]="InsertSpace",e[e.InsertNewLine=8]="InsertNewLine",e[e.DeleteSpace=16]="DeleteSpace",e[e.DeleteToken=32]="DeleteToken",e[e.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",e[e.StopAction=3]="StopAction",e[e.ModifySpaceAction=28]="ModifySpaceAction",e[e.ModifyTokenAction=96]="ModifyTokenAction",e))(Ife||{}),Ffe=(e=>(e[e.None=0]="None",e[e.CanDeleteNewLines=1]="CanDeleteNewLines",e))(Ffe||{})}});function eDe(){let e=[];for(let ie=0;ie<=165;ie++)ie!==1&&e.push(ie);function t(...ie){return{tokens:e.filter(B=>!ie.some(Z=>Z===B)),isSpecific:!1}}let n={tokens:e,isSpecific:!1},i=aD([...e,3]),s=aD([...e,1]),o=nDe(83,165),c=nDe(30,79),u=[103,104,165,130,142,152],f=[46,47,55,54],g=[9,10,80,21,23,19,110,105],p=[80,21,110,105],y=[80,22,24,105],S=[80,21,110,105],x=[80,22,24,105],C=[2,3],w=[80,...OL],D=i,O=aD([80,3,86,95,102]),z=aD([22,3,92,113,98,93]),V=[Or("IgnoreBeforeComment",n,C,LM,1),Or("IgnoreAfterLineComment",2,n,LM,1),Or("NotSpaceBeforeColon",n,59,[Pi,MM,sDe],16),Or("SpaceAfterColon",59,n,[Pi,MM,tZe],4),Or("NoSpaceBeforeQuestionMark",n,58,[Pi,MM,sDe],16),Or("SpaceAfterQuestionMarkInConditionalOperator",58,n,[Pi,VYe],4),Or("NoSpaceAfterQuestionMark",58,n,[Pi,zYe],16),Or("NoSpaceBeforeDot",n,[25,29],[Pi,dZe],16),Or("NoSpaceAfterDot",[25,29],n,[Pi],16),Or("NoSpaceBetweenImportParenInImportType",102,21,[Pi,KYe],16),Or("NoSpaceAfterUnaryPrefixOperator",f,g,[Pi,MM],16),Or("NoSpaceAfterUnaryPreincrementOperator",46,p,[Pi],16),Or("NoSpaceAfterUnaryPredecrementOperator",47,S,[Pi],16),Or("NoSpaceBeforeUnaryPostincrementOperator",y,46,[Pi,SDe],16),Or("NoSpaceBeforeUnaryPostdecrementOperator",x,47,[Pi,SDe],16),Or("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[Pi,my],4),Or("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[Pi,my],4),Or("SpaceAfterAddWhenFollowedByPreincrement",40,46,[Pi,my],4),Or("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[Pi,my],4),Or("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[Pi,my],4),Or("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[Pi,my],4),Or("NoSpaceAfterCloseBrace",20,[28,27],[Pi],16),Or("NewLineBeforeCloseBraceInBlockContext",i,20,[oDe],8),Or("SpaceAfterCloseBrace",20,t(22),[Pi,qYe],4),Or("SpaceBetweenCloseBraceAndElse",20,93,[Pi],4),Or("SpaceBetweenCloseBraceAndWhile",20,117,[Pi],4),Or("NoSpaceBetweenEmptyBraceBrackets",19,20,[Pi,pDe],16),Or("SpaceAfterConditionalClosingParen",22,23,[RM],4),Or("NoSpaceBetweenFunctionKeywordAndStar",100,42,[uDe],16),Or("SpaceAfterStarInGeneratorDeclaration",42,80,[uDe],4),Or("SpaceAfterFunctionInFuncDecl",100,n,[lS],4),Or("NewLineAfterOpenBraceInBlockContext",19,n,[oDe],8),Or("SpaceAfterGetSetInMember",[139,153],80,[lS],4),Or("NoSpaceBetweenYieldKeywordAndStar",127,42,[Pi,bDe],16),Or("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],n,[Pi,bDe],4),Or("NoSpaceBetweenReturnAndSemicolon",107,27,[Pi],16),Or("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],n,[Pi],4),Or("SpaceAfterLetConstInVariableDeclaration",[121,87],n,[Pi,iZe],4),Or("NoSpaceBeforeOpenParenInFuncCall",n,21,[Pi,$Ye,XYe],16),Or("SpaceBeforeBinaryKeywordOperator",n,u,[Pi,my],4),Or("SpaceAfterBinaryKeywordOperator",u,n,[Pi,my],4),Or("SpaceAfterVoidOperator",116,n,[Pi,lZe],4),Or("SpaceBetweenAsyncAndOpenParen",134,21,[ZYe,Pi],4),Or("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[Pi],4),Or("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[Pi],16),Or("SpaceBeforeJsxAttribute",n,80,[eZe,Pi],4),Or("SpaceBeforeSlashInJsxOpeningElement",n,44,[hDe,Pi],4),Or("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[hDe,Pi],16),Or("NoSpaceBeforeEqualInJsxAttribute",n,64,[mDe,Pi],16),Or("NoSpaceAfterEqualInJsxAttribute",64,n,[mDe,Pi],16),Or("NoSpaceBeforeJsxNamespaceColon",80,59,[gDe],16),Or("NoSpaceAfterJsxNamespaceColon",59,80,[gDe],16),Or("NoSpaceAfterModuleImport",[144,149],21,[Pi],16),Or("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],n,[Pi],4),Or("SpaceBeforeCertainTypeScriptKeywords",n,[96,119,161],[Pi],4),Or("SpaceAfterModuleName",11,19,[sZe],4),Or("SpaceBeforeArrow",n,39,[Pi],4),Or("SpaceAfterArrow",39,n,[Pi],4),Or("NoSpaceAfterEllipsis",26,80,[Pi],16),Or("NoSpaceAfterOptionalParameters",58,[22,28],[Pi,MM],16),Or("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[Pi,aZe],16),Or("NoSpaceBeforeOpenAngularBracket",w,30,[Pi,jM],16),Or("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[Pi,jM],16),Or("NoSpaceAfterOpenAngularBracket",30,n,[Pi,jM],16),Or("NoSpaceBeforeCloseAngularBracket",n,32,[Pi,jM],16),Or("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[Pi,jM,UYe,cZe],16),Or("SpaceBeforeAt",[22,80],60,[Pi],4),Or("NoSpaceAfterAt",60,n,[Pi],16),Or("SpaceAfterDecorator",n,[128,80,95,90,86,126,125,123,124,139,153,23,42],[rZe],4),Or("NoSpaceBeforeNonNullAssertionOperator",n,54,[Pi,uZe],16),Or("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[Pi,oZe],16),Or("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[Pi],4)],X=[Or("SpaceAfterConstructor",137,21,[wf("insertSpaceAfterConstructor"),Pi],4),Or("NoSpaceAfterConstructor",137,21,[Zd("insertSpaceAfterConstructor"),Pi],16),Or("SpaceAfterComma",28,n,[wf("insertSpaceAfterCommaDelimiter"),Pi,Jfe,QYe,YYe],4),Or("NoSpaceAfterComma",28,n,[Zd("insertSpaceAfterCommaDelimiter"),Pi,Jfe],16),Or("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[wf("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),lS],4),Or("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[Zd("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),lS],16),Or("SpaceAfterKeywordInControl",o,21,[wf("insertSpaceAfterKeywordsInControlFlowStatements"),RM],4),Or("NoSpaceAfterKeywordInControl",o,21,[Zd("insertSpaceAfterKeywordsInControlFlowStatements"),RM],16),Or("SpaceAfterOpenParen",21,n,[wf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],4),Or("SpaceBeforeCloseParen",n,22,[wf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],4),Or("SpaceBetweenOpenParens",21,21,[wf("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],4),Or("NoSpaceBetweenParens",21,22,[Pi],16),Or("NoSpaceAfterOpenParen",21,n,[Zd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],16),Or("NoSpaceBeforeCloseParen",n,22,[Zd("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),Pi],16),Or("SpaceAfterOpenBracket",23,n,[wf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pi],4),Or("SpaceBeforeCloseBracket",n,24,[wf("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pi],4),Or("NoSpaceBetweenBrackets",23,24,[Pi],16),Or("NoSpaceAfterOpenBracket",23,n,[Zd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pi],16),Or("NoSpaceBeforeCloseBracket",n,24,[Zd("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),Pi],16),Or("SpaceAfterOpenBrace",19,n,[iDe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),aDe],4),Or("SpaceBeforeCloseBrace",n,20,[iDe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),aDe],4),Or("NoSpaceBetweenEmptyBraceBrackets",19,20,[Pi,pDe],16),Or("NoSpaceAfterOpenBrace",19,n,[Ofe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Pi],16),Or("NoSpaceBeforeCloseBrace",n,20,[Ofe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Pi],16),Or("SpaceBetweenEmptyBraceBrackets",19,20,[wf("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Or("NoSpaceBetweenEmptyBraceBrackets",19,20,[Ofe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),Pi],16),Or("SpaceAfterTemplateHeadAndMiddle",[16,17],n,[wf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),dDe],4,1),Or("SpaceBeforeTemplateMiddleAndTail",n,[17,18],[wf("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pi],4),Or("NoSpaceAfterTemplateHeadAndMiddle",[16,17],n,[Zd("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),dDe],16,1),Or("NoSpaceBeforeTemplateMiddleAndTail",n,[17,18],[Zd("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),Pi],16),Or("SpaceAfterOpenBraceInJsxExpression",19,n,[wf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pi,gQ],4),Or("SpaceBeforeCloseBraceInJsxExpression",n,20,[wf("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pi,gQ],4),Or("NoSpaceAfterOpenBraceInJsxExpression",19,n,[Zd("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pi,gQ],16),Or("NoSpaceBeforeCloseBraceInJsxExpression",n,20,[Zd("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),Pi,gQ],16),Or("SpaceAfterSemicolonInFor",27,n,[wf("insertSpaceAfterSemicolonInForStatements"),Pi,Mfe],4),Or("NoSpaceAfterSemicolonInFor",27,n,[Zd("insertSpaceAfterSemicolonInForStatements"),Pi,Mfe],16),Or("SpaceBeforeBinaryOperator",n,c,[wf("insertSpaceBeforeAndAfterBinaryOperators"),Pi,my],4),Or("SpaceAfterBinaryOperator",c,n,[wf("insertSpaceBeforeAndAfterBinaryOperators"),Pi,my],4),Or("NoSpaceBeforeBinaryOperator",n,c,[Zd("insertSpaceBeforeAndAfterBinaryOperators"),Pi,my],16),Or("NoSpaceAfterBinaryOperator",c,n,[Zd("insertSpaceBeforeAndAfterBinaryOperators"),Pi,my],16),Or("SpaceBeforeOpenParenInFuncDecl",n,21,[wf("insertSpaceBeforeFunctionParenthesis"),Pi,lS],4),Or("NoSpaceBeforeOpenParenInFuncDecl",n,21,[Zd("insertSpaceBeforeFunctionParenthesis"),Pi,lS],16),Or("NewLineBeforeOpenBraceInControl",z,19,[wf("placeOpenBraceOnNewLineForControlBlocks"),RM,Bfe],8,1),Or("NewLineBeforeOpenBraceInFunction",D,19,[wf("placeOpenBraceOnNewLineForFunctions"),lS,Bfe],8,1),Or("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[wf("placeOpenBraceOnNewLineForFunctions"),_De,Bfe],8,1),Or("SpaceAfterTypeAssertion",32,n,[wf("insertSpaceAfterTypeAssertion"),Pi,Vfe],4),Or("NoSpaceAfterTypeAssertion",32,n,[Zd("insertSpaceAfterTypeAssertion"),Pi,Vfe],16),Or("SpaceBeforeTypeAnnotation",n,[58,59],[wf("insertSpaceBeforeTypeAnnotation"),Pi,Rfe],4),Or("NoSpaceBeforeTypeAnnotation",n,[58,59],[Zd("insertSpaceBeforeTypeAnnotation"),Pi,Rfe],16),Or("NoOptionalSemicolon",27,s,[rDe("semicolons","remove"),fZe],32),Or("OptionalSemicolon",n,s,[rDe("semicolons","insert"),pZe],64)],J=[Or("NoSpaceBeforeSemicolon",n,27,[Pi],16),Or("SpaceBeforeOpenBraceInControl",z,19,[Lfe("placeOpenBraceOnNewLineForControlBlocks"),RM,zfe,jfe],4,1),Or("SpaceBeforeOpenBraceInFunction",D,19,[Lfe("placeOpenBraceOnNewLineForFunctions"),lS,mQ,zfe,jfe],4,1),Or("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",O,19,[Lfe("placeOpenBraceOnNewLineForFunctions"),_De,zfe,jfe],4,1),Or("NoSpaceBeforeComma",n,28,[Pi],16),Or("NoSpaceBeforeOpenBracket",t(134,84),23,[Pi],16),Or("NoSpaceAfterCloseBracket",24,n,[Pi,nZe],16),Or("SpaceAfterSemicolon",27,n,[Pi],4),Or("SpaceBetweenForAndAwaitKeyword",99,135,[Pi],4),Or("SpaceBetweenStatements",[22,92,93,84],n,[Pi,Jfe,BYe],4),Or("SpaceAfterTryCatchFinally",[113,85,98],19,[Pi],4)];return[...V,...X,...J]}function Or(e,t,n,i,s,o=0){return{leftTokenRange:tDe(t),rightTokenRange:tDe(n),rule:{debugName:e,context:i,action:s,flags:o}}}function aD(e){return{tokens:e,isSpecific:!0}}function tDe(e){return typeof e=="number"?aD([e]):ss(e)?aD(e):e}function nDe(e,t,n=[]){let i=[];for(let s=e;s<=t;s++)gs(n,s)||i.push(s);return aD(i)}function rDe(e,t){return n=>n.options&&n.options[e]===t}function wf(e){return t=>t.options&&so(t.options,e)&&!!t.options[e]}function Ofe(e){return t=>t.options&&so(t.options,e)&&!t.options[e]}function Zd(e){return t=>!t.options||!so(t.options,e)||!t.options[e]}function Lfe(e){return t=>!t.options||!so(t.options,e)||!t.options[e]||t.TokensAreOnSameLine()}function iDe(e){return t=>!t.options||!so(t.options,e)||!!t.options[e]}function Mfe(e){return e.contextNode.kind===248}function BYe(e){return!Mfe(e)}function my(e){switch(e.contextNode.kind){case 226:return e.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 249:case 168:return e.currentTokenSpan.kind===103||e.nextTokenSpan.kind===103||e.currentTokenSpan.kind===64||e.nextTokenSpan.kind===64;case 250:return e.currentTokenSpan.kind===165||e.nextTokenSpan.kind===165}return!1}function MM(e){return!my(e)}function sDe(e){return!Rfe(e)}function Rfe(e){let t=e.contextNode.kind;return t===172||t===171||t===169||t===260||hx(t)}function JYe(e){return Is(e.contextNode)&&e.contextNode.questionToken}function zYe(e){return!JYe(e)}function VYe(e){return e.contextNode.kind===227||e.contextNode.kind===194}function jfe(e){return e.TokensAreOnSameLine()||mQ(e)}function aDe(e){return e.contextNode.kind===206||e.contextNode.kind===200||WYe(e)}function Bfe(e){return mQ(e)&&!(e.NextNodeAllOnSameLine()||e.NextNodeBlockIsOnOneLine())}function oDe(e){return cDe(e)&&!(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function WYe(e){return cDe(e)&&(e.ContextNodeAllOnSameLine()||e.ContextNodeBlockIsOnOneLine())}function cDe(e){return lDe(e.contextNode)}function mQ(e){return lDe(e.nextTokenParent)}function lDe(e){if(fDe(e))return!0;switch(e.kind){case 241:case 269:case 210:case 268:return!0}return!1}function lS(e){switch(e.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function UYe(e){return!lS(e)}function uDe(e){return e.contextNode.kind===262||e.contextNode.kind===218}function _De(e){return fDe(e.contextNode)}function fDe(e){switch(e.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function qYe(e){switch(e.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{let t=e.currentTokenParent.parent;if(!t||t.kind!==219&&t.kind!==218)return!0}}return!1}function RM(e){switch(e.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function pDe(e){return e.contextNode.kind===210}function HYe(e){return e.contextNode.kind===213}function GYe(e){return e.contextNode.kind===214}function $Ye(e){return HYe(e)||GYe(e)}function XYe(e){return e.currentTokenSpan.kind!==28}function QYe(e){return e.nextTokenSpan.kind!==24}function YYe(e){return e.nextTokenSpan.kind!==22}function ZYe(e){return e.contextNode.kind===219}function KYe(e){return e.contextNode.kind===205}function Pi(e){return e.TokensAreOnSameLine()&&e.contextNode.kind!==12}function dDe(e){return e.contextNode.kind!==12}function Jfe(e){return e.contextNode.kind!==284&&e.contextNode.kind!==288}function gQ(e){return e.contextNode.kind===294||e.contextNode.kind===293}function eZe(e){return e.nextTokenParent.kind===291||e.nextTokenParent.kind===295&&e.nextTokenParent.parent.kind===291}function mDe(e){return e.contextNode.kind===291}function tZe(e){return e.nextTokenParent.kind!==295}function gDe(e){return e.nextTokenParent.kind===295}function hDe(e){return e.contextNode.kind===285}function nZe(e){return!lS(e)&&!mQ(e)}function rZe(e){return e.TokensAreOnSameLine()&&Vf(e.contextNode)&&yDe(e.currentTokenParent)&&!yDe(e.nextTokenParent)}function yDe(e){for(;e&&ut(e);)e=e.parent;return e&&e.kind===170}function iZe(e){return e.currentTokenParent.kind===261&&e.currentTokenParent.getStart(e.sourceFile)===e.currentTokenSpan.pos}function zfe(e){return e.formattingRequestKind!==2}function sZe(e){return e.contextNode.kind===267}function aZe(e){return e.contextNode.kind===187}function oZe(e){return e.contextNode.kind===180}function vDe(e,t){if(e.kind!==30&&e.kind!==32)return!1;switch(t.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function jM(e){return vDe(e.currentTokenSpan,e.currentTokenParent)||vDe(e.nextTokenSpan,e.nextTokenParent)}function Vfe(e){return e.contextNode.kind===216}function cZe(e){return!Vfe(e)}function lZe(e){return e.currentTokenSpan.kind===116&&e.currentTokenParent.kind===222}function bDe(e){return e.contextNode.kind===229&&e.contextNode.expression!==void 0}function uZe(e){return e.contextNode.kind===235}function SDe(e){return!_Ze(e)}function _Ze(e){switch(e.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function fZe(e){let t=e.nextTokenSpan.kind,n=e.nextTokenSpan.pos;if(nC(t)){let o=e.nextTokenParent===e.currentTokenParent?mb(e.currentTokenParent,Fn(e.currentTokenParent,c=>!c.parent),e.sourceFile):e.nextTokenParent.getFirstToken(e.sourceFile);if(!o)return!0;t=o.kind,n=o.getStart(e.sourceFile)}let i=e.sourceFile.getLineAndCharacterOfPosition(e.currentTokenSpan.pos).line,s=e.sourceFile.getLineAndCharacterOfPosition(n).line;return i===s?t===20||t===1:t===240||t===27?!1:e.contextNode.kind===264||e.contextNode.kind===265?!bf(e.currentTokenParent)||!!e.currentTokenParent.type||t!==21:Is(e.currentTokenParent)?!e.currentTokenParent.initializer:e.currentTokenParent.kind!==248&&e.currentTokenParent.kind!==242&&e.currentTokenParent.kind!==240&&t!==23&&t!==21&&t!==40&&t!==41&&t!==44&&t!==14&&t!==28&&t!==228&&t!==16&&t!==15&&t!==25}function pZe(e){return TL(e.currentTokenSpan.end,e.currentTokenParent,e.sourceFile)}function dZe(e){return!Cr(e.contextNode)||!R_(e.contextNode.expression)||e.contextNode.expression.getText().includes(".")}var mZe=ze({"src/services/formatting/rules.ts"(){"use strict";qr(),AN()}});function gZe(e,t){return{options:e,getRules:hZe(),host:t}}function hZe(){return Wfe===void 0&&(Wfe=vZe(eDe())),Wfe}function yZe(e){let t=0;return e&1&&(t|=28),e&2&&(t|=96),e&28&&(t|=28),e&96&&(t|=96),t}function vZe(e){let t=bZe(e);return n=>{let i=t[xDe(n.currentTokenSpan.kind,n.nextTokenSpan.kind)];if(i){let s=[],o=0;for(let c of i){let u=~yZe(o);c.action&u&&hi(c.context,f=>f(n))&&(s.push(c),o|=c.action)}if(s.length)return s}}}function bZe(e){let t=new Array(hQ*hQ),n=new Array(t.length);for(let i of e){let s=i.leftTokenRange.isSpecific&&i.rightTokenRange.isSpecific;for(let o of i.leftTokenRange.tokens)for(let c of i.rightTokenRange.tokens){let u=xDe(o,c),f=t[u];f===void 0&&(f=t[u]=[]),SZe(f,i.rule,s,n,u)}}return t}function xDe(e,t){return E.assert(e<=165&&t<=165,"Must compute formatting context from tokens"),e*hQ+t}function SZe(e,t,n,i,s){let o=t.action&3?n?0:oD.StopRulesAny:t.context!==LM?n?oD.ContextRulesSpecific:oD.ContextRulesAny:n?oD.NoContextRulesSpecific:oD.NoContextRulesAny,c=i[s]||0;e.splice(xZe(c,o),0,t),i[s]=TZe(c,o)}function xZe(e,t){let n=0;for(let i=0;i<=t;i+=C6)n+=e&BM,e>>=C6;return n}function TZe(e,t){let n=(e>>t&BM)+1;return E.assert((n&BM)===n,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),e&~(BM<(e[e.StopRulesSpecific=0]="StopRulesSpecific",e[e.StopRulesAny=C6*1]="StopRulesAny",e[e.ContextRulesSpecific=C6*2]="ContextRulesSpecific",e[e.ContextRulesAny=C6*3]="ContextRulesAny",e[e.NoContextRulesSpecific=C6*4]="NoContextRulesSpecific",e[e.NoContextRulesAny=C6*5]="NoContextRulesAny",e))(oD||{})}});function yQ(e,t,n){let i={pos:e,end:t,kind:n};return E.isDebugging&&Object.defineProperty(i,"__debugKind",{get:()=>E.formatSyntaxKind(n)}),i}function CZe(e,t,n){let i=t.getLineAndCharacterOfPosition(e).line;if(i===0)return[];let s=$P(i,t);for(;Md(t.text.charCodeAt(s));)s--;xu(t.text.charCodeAt(s))&&s--;let o={pos:Z0(i-1,t),end:s+1};return JM(o,t,n,2)}function EZe(e,t,n){let i=Ufe(e,27,t);return TDe(qfe(i),t,n,3)}function DZe(e,t,n){let i=Ufe(e,19,t);if(!i)return[];let s=i.parent,o=qfe(s),c={pos:Cp(o.getStart(t),t),end:e};return JM(c,t,n,4)}function PZe(e,t,n){let i=Ufe(e,20,t);return TDe(qfe(i),t,n,5)}function wZe(e,t){let n={pos:0,end:e.text.length};return JM(n,e,t,0)}function AZe(e,t,n,i){let s={pos:Cp(e,n),end:t};return JM(s,n,i,1)}function Ufe(e,t,n){let i=ol(e,n);return i&&i.kind===t&&e===i.getEnd()?i:void 0}function qfe(e){let t=e;for(;t&&t.parent&&t.parent.end===e.end&&!NZe(t.parent,t);)t=t.parent;return t}function NZe(e,t){switch(e.kind){case 263:case 264:return Ef(e.members,t);case 267:let n=e.body;return!!n&&n.kind===268&&Ef(n.statements,t);case 312:case 241:case 268:return Ef(e.statements,t);case 299:return Ef(e.block.statements,t)}return!1}function IZe(e,t){return n(t);function n(i){let s=vs(i,o=>yH(o.getStart(t),o.end,e)&&o);if(s){let o=n(s);if(o)return o}return i}}function FZe(e,t){if(!e.length)return s;let n=e.filter(o=>M3(t,o.start,o.start+o.length)).sort((o,c)=>o.start-c.start);if(!n.length)return s;let i=0;return o=>{for(;;){if(i>=n.length)return!1;let c=n[i];if(o.end<=c.start)return!1;if(Z9(o.pos,o.end,c.start,c.start+c.length))return!0;i++}};function s(){return!1}}function OZe(e,t,n){let i=e.getStart(n);if(i===t.pos&&e.end===t.end)return i;let s=ol(t.pos,n);return!s||s.end>=t.pos?e.pos:s.end}function LZe(e,t,n){let i=-1,s;for(;e;){let o=n.getLineAndCharacterOfPosition(e.getStart(n)).line;if(i!==-1&&o!==i)break;if(Kd.shouldIndentChildNode(t,e,s,n))return t.indentSize;i=o,s=e,e=e.parent}return 0}function MZe(e,t,n,i,s,o){let c={pos:e.pos,end:e.end};return Nfe(t.text,n,c.pos,c.end,u=>kDe(c,e,i,s,u,o,1,f=>!1,t))}function TDe(e,t,n,i){if(!e)return[];let s={pos:Cp(e.getStart(t),t),end:e.end};return JM(s,t,n,i)}function JM(e,t,n,i){let s=IZe(e,t);return Nfe(t.text,t.languageVariant,OZe(s,e,t),e.end,o=>kDe(e,s,Kd.getIndentationForNode(s,e,t,n.options),LZe(s,n.options,t),o,n,i,FZe(t.parseDiagnostics,e),t))}function kDe(e,t,n,i,s,{options:o,getRules:c,host:u},f,g,p){var y;let S=new Afe(p,f,o),x,C,w,D,O,z=-1,V=[];if(s.advance(),s.isOnToken()){let me=p.getLineAndCharacterOfPosition(t.getStart(p)).line,Oe=me;Vf(t)&&(Oe=p.getLineAndCharacterOfPosition(JJ(t,p)).line),ae(t,t,me,Oe,n,i)}let X=s.getCurrentLeadingTrivia();if(X){let me=Kd.nodeWillIndentChild(o,t,void 0,p,!1)?n+o.indentSize:n;_e(X,me,!0,Oe=>{H(Oe,p.getLineAndCharacterOfPosition(Oe.pos),t,t,void 0),oe(Oe.pos,me,!1)}),o.trimTrailingWhitespace!==!1&&Me(X)}if(C&&s.getTokenFullStart()>=e.end){let me=s.isOnEOF()?s.readEOFTokenRange():s.isOnToken()?s.readTokenInfo(t).token:void 0;if(me&&me.pos===x){let Oe=((y=ol(me.end,p,t))==null?void 0:y.parent)||w;K(me,p.getLineAndCharacterOfPosition(me.pos).line,Oe,C,D,w,Oe,void 0)}}return V;function J(me,Oe,Qe,at,ht){if(M3(at,me,Oe)||DA(at,me,Oe)){if(ht!==-1)return ht}else{let Je=p.getLineAndCharacterOfPosition(me).line,lt=Cp(me,p),Jt=Kd.findFirstNonWhitespaceColumn(lt,me,p,o);if(Je!==Qe||me===Jt){let Gt=Kd.getBaseIndentation(o);return Gt>Jt?Gt:Jt}}return-1}function ie(me,Oe,Qe,at,ht,Je){let lt=Kd.shouldIndentChildNode(o,me)?o.indentSize:0;return Je===Oe?{indentation:Oe===O?z:ht.getIndentation(),delta:Math.min(o.indentSize,ht.getDelta(me)+lt)}:Qe===-1?me.kind===21&&Oe===O?{indentation:z,delta:ht.getDelta(me)}:Kd.childStartsOnTheSameLineWithElseInIfStatement(at,me,Oe,p)||Kd.childIsUnindentedBranchOfConditionalExpression(at,me,Oe,p)||Kd.argumentStartsOnSameLineAsPreviousArgument(at,me,Oe,p)?{indentation:ht.getIndentation(),delta:lt}:{indentation:ht.getIndentation()+ht.getDelta(me),delta:lt}:{indentation:Qe,delta:lt}}function B(me){if(Yp(me)){let Oe=xr(me.modifiers,ra,Qo(me.modifiers,Zl));if(Oe)return Oe.kind}switch(me.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(me.asteriskToken)return 42;case 172:case 169:let Oe=us(me);if(Oe)return Oe.kind}}function Z(me,Oe,Qe,at){return{getIndentationForComment:(lt,Jt,Gt)=>{switch(lt){case 20:case 24:case 22:return Qe+Je(Gt)}return Jt!==-1?Jt:Qe},getIndentationForToken:(lt,Jt,Gt,Tn)=>!Tn&&ht(lt,Jt,Gt)?Qe+Je(Gt):Qe,getIndentation:()=>Qe,getDelta:Je,recomputeIndentation:(lt,Jt)=>{Kd.shouldIndentChildNode(o,Jt,me,p)&&(Qe+=lt?o.indentSize:-o.indentSize,at=Kd.shouldIndentChildNode(o,me)?o.indentSize:0)}};function ht(lt,Jt,Gt){switch(Jt){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Gt.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(Gt.kind!==200)return!1;break}return Oe!==lt&&!(Vf(me)&&Jt===B(me))}function Je(lt){return Kd.nodeWillIndentChild(o,me,lt,p,!0)?at:0}}function ae(me,Oe,Qe,at,ht,Je){if(!M3(e,me.getStart(p),me.getEnd()))return;let lt=Z(me,Qe,ht,Je),Jt=Oe;for(vs(me,cn=>{Gt(cn,-1,me,lt,Qe,at,!1)},cn=>{Tn(cn,me,Qe,lt)});s.isOnToken()&&s.getTokenFullStart()Math.min(me.end,e.end))break;Un(cn,me,lt,me)}function Gt(cn,zt,Ft,Lr,ji,ii,Hi,Ye){if(E.assert(!Ro(cn)),dc(cn)||Vee(Ft,cn))return zt;let fn=cn.getStart(p),An=p.getLineAndCharacterOfPosition(fn).line,Ot=An;Vf(cn)&&(Ot=p.getLineAndCharacterOfPosition(JJ(cn,p)).line);let Sn=-1;if(Hi&&Ef(e,Ft)&&(Sn=J(fn,cn.end,ji,e,zt),Sn!==-1&&(zt=Sn)),!M3(e,cn.pos,cn.end))return cn.ende.end)return zt;if(Fi.token.end>fn){Fi.token.pos>fn&&s.skipToStartOf(cn);break}Un(Fi,me,Lr,me)}if(!s.isOnToken()||s.getTokenFullStart()>=e.end)return zt;if(mx(cn)){let Fi=s.readTokenInfo(cn);if(cn.kind!==12)return E.assert(Fi.token.end===cn.end,"Token end is child end"),Un(Fi,me,Lr,cn),zt}let Cn=cn.kind===170?An:ii,Kn=ie(cn,An,Sn,me,Lr,Cn);return ae(cn,Jt,An,Ot,Kn.indentation,Kn.delta),Jt=me,Ye&&Ft.kind===209&&zt===-1&&(zt=Kn.indentation),zt}function Tn(cn,zt,Ft,Lr){E.assert(wv(cn)),E.assert(!Ro(cn));let ji=RZe(zt,cn),ii=Lr,Hi=Ft;if(!M3(e,cn.pos,cn.end)){cn.endcn.pos)break;if(An.token.kind===ji){Hi=p.getLineAndCharacterOfPosition(An.token.pos).line,Un(An,zt,Lr,zt);let Ot;if(z!==-1)Ot=z;else{let Sn=Cp(An.token.pos,p);Ot=Kd.findFirstNonWhitespaceColumn(Sn,An.token.pos,p,o)}ii=Z(zt,Ft,Ot,o.indentSize)}else Un(An,zt,Lr,zt)}let Ye=-1;for(let An=0;Anoe(Kn.pos,Cn,!1))}Ot!==-1&&Sn&&(oe(cn.token.pos,Ot,Ye===1),O=An.line,z=Ot)}s.advance(),Jt=zt}}function _e(me,Oe,Qe,at){for(let ht of me){let Je=Ef(e,ht);switch(ht.kind){case 3:Je&&Y(ht,Oe,!Qe),Qe=!1;break;case 2:Qe&&Je&&at(ht),Qe=!1;break;case 4:Qe=!0;break}}return Qe}function $(me,Oe,Qe,at){for(let ht of me)if(aL(ht.kind)&&Ef(e,ht)){let Je=p.getLineAndCharacterOfPosition(ht.pos);H(ht,Je,Oe,Qe,at)}}function H(me,Oe,Qe,at,ht){let Je=g(me),lt=0;if(!Je)if(C)lt=K(me,Oe.line,Qe,C,D,w,at,ht);else{let Jt=p.getLineAndCharacterOfPosition(e.pos);ve(Jt.line,Oe.line)}return C=me,x=me.end,w=Qe,D=Oe.line,lt}function K(me,Oe,Qe,at,ht,Je,lt,Jt){S.updateContext(at,Je,me,Qe,lt);let Gt=c(S),Tn=S.options.trimTrailingWhitespace!==!1,Un=0;return Gt?nx(Gt,cn=>{if(Un=mt(cn,at,ht,me,Oe),Jt)switch(Un){case 2:Qe.getStart(p)===me.pos&&Jt.recomputeIndentation(!1,lt);break;case 1:Qe.getStart(p)===me.pos&&Jt.recomputeIndentation(!0,lt);break;default:E.assert(Un===0)}Tn=Tn&&!(cn.action&16)&&cn.flags!==1}):Tn=Tn&&me.kind!==1,Oe!==ht&&Tn&&ve(ht,Oe,at),Un}function oe(me,Oe,Qe){let at=Hfe(Oe,o);if(Qe)be(me,0,at);else{let ht=p.getLineAndCharacterOfPosition(me),Je=Z0(ht.line,p);(Oe!==Se(Je,ht.character)||se(at,Je))&&be(Je,ht.character,at)}}function Se(me,Oe){let Qe=0;for(let at=0;at0){let ii=Hfe(ji,o);be(Ft,Lr.character,ii)}else he(Ft,Lr.character)}}function ve(me,Oe,Qe){for(let at=me;atJe)continue;let lt=xe(ht,Je);lt!==-1&&(E.assert(lt===ht||!Md(p.text.charCodeAt(lt-1))),he(lt,Je+1-lt))}}function xe(me,Oe){let Qe=Oe;for(;Qe>=me&&Md(p.text.charCodeAt(Qe));)Qe--;return Qe!==Oe?Qe+1:-1}function Me(me){let Oe=C?C.end:e.pos;for(let Qe of me)aL(Qe.kind)&&(OeEA(g,t)||t===g.end&&(g.kind===2||t===e.getFullWidth()))}function RZe(e,t){switch(e.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(e.typeParameters===t)return 30;if(e.parameters===t)return 21;break;case 213:case 214:if(e.typeArguments===t)return 30;if(e.arguments===t)return 21;break;case 263:case 231:case 264:case 265:if(e.typeParameters===t)return 30;break;case 183:case 215:case 186:case 233:case 205:if(e.typeArguments===t)return 30;break;case 187:return 19}return 0}function jZe(e){switch(e){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function Hfe(e,t){if((!vQ||vQ.tabSize!==t.tabSize||vQ.indentSize!==t.indentSize)&&(vQ={tabSize:t.tabSize,indentSize:t.indentSize},PN=wN=void 0),t.convertTabsToSpaces){let i,s=Math.floor(e/t.indentSize),o=e%t.indentSize;return wN||(wN=[]),wN[s]===void 0?(i=FA(" ",t.indentSize*s),wN[s]=i):i=wN[s],o?i+FA(" ",o):i}else{let i=Math.floor(e/t.tabSize),s=e-i*t.tabSize,o;return PN||(PN=[]),PN[i]===void 0?PN[i]=o=FA(" ",i):o=PN[i],s?o+FA(" ",s):o}}var vQ,PN,wN,BZe=ze({"src/services/formatting/formatting.ts"(){"use strict";qr(),AN()}}),Kd,JZe=ze({"src/services/formatting/smartIndenter.ts"(){"use strict";qr(),AN(),(e=>{let t;(Y=>{Y[Y.Unknown=-1]="Unknown"})(t||(t={}));function n(Y,ve,xe,Me=!1){if(Y>ve.text.length)return u(xe);if(xe.indentStyle===0)return 0;let ke=ol(Y,ve,void 0,!0),he=CDe(ve,Y,ke||null);if(he&&he.kind===3)return i(ve,Y,xe,he);if(!ke)return u(xe);if(CH(ke.kind)&&ke.getStart(ve)<=Y&&Y=0),ke<=he)return H(Z0(he,Y),ve,Y,xe);let be=Z0(ke,Y),{column:_t,character:mt}=$(be,ve,Y,xe);return _t===0?_t:Y.text.charCodeAt(be+mt)===42?_t-1:_t}function s(Y,ve,xe){let Me=ve;for(;Me>0;){let he=Y.text.charCodeAt(Me);if(!Kg(he))break;Me--}let ke=Cp(Me,Y);return H(ke,Me,Y,xe)}function o(Y,ve,xe,Me,ke,he){let be,_t=xe;for(;_t;){if(vH(_t,ve,Y)&&Se(he,_t,be,Y,!0)){let me=C(_t,Y),Oe=x(xe,_t,Me,Y),Qe=Oe!==0?ke&&Oe===2?he.indentSize:0:Me!==me.line?he.indentSize:0;return f(_t,me,void 0,Qe,Y,!0,he)}let mt=Z(_t,Y,he,!0);if(mt!==-1)return mt;be=_t,_t=_t.parent}return u(he)}function c(Y,ve,xe,Me){let ke=xe.getLineAndCharacterOfPosition(Y.getStart(xe));return f(Y,ke,ve,0,xe,!1,Me)}e.getIndentationForNode=c;function u(Y){return Y.baseIndentSize||0}e.getBaseIndentation=u;function f(Y,ve,xe,Me,ke,he,be){var _t;let mt=Y.parent;for(;mt;){let me=!0;if(xe){let ht=Y.getStart(ke);me=htxe.end}let Oe=g(mt,Y,ke),Qe=Oe.line===ve.line||D(mt,Y,ve.line,ke);if(me){let ht=(_t=V(Y,ke))==null?void 0:_t[0],Je=!!ht&&C(ht,ke).line>Oe.line,lt=Z(Y,ke,be,Je);if(lt!==-1||(lt=y(Y,mt,ve,Qe,ke,be),lt!==-1))return lt+Me}Se(be,mt,Y,ke,he)&&!Qe&&(Me+=be.indentSize);let at=w(mt,Y,ve.line,ke);Y=mt,mt=Y.parent,ve=at?ke.getLineAndCharacterOfPosition(Y.getStart(ke)):Oe}return Me+u(be)}function g(Y,ve,xe){let Me=V(ve,xe),ke=Me?Me.pos:Y.getStart(xe);return xe.getLineAndCharacterOfPosition(ke)}function p(Y,ve,xe){let Me=uoe(Y);return Me&&Me.listItemIndex>0?ae(Me.list.getChildren(),Me.listItemIndex-1,ve,xe):-1}function y(Y,ve,xe,Me,ke,he){return(ku(Y)||WP(Y))&&(ve.kind===312||!Me)?_e(xe,ke,he):-1}let S;(Y=>{Y[Y.Unknown=0]="Unknown",Y[Y.OpenBrace=1]="OpenBrace",Y[Y.CloseBrace=2]="CloseBrace"})(S||(S={}));function x(Y,ve,xe,Me){let ke=mb(Y,ve,Me);if(!ke)return 0;if(ke.kind===19)return 1;if(ke.kind===20){let he=C(ke,Me).line;return xe===he?2:0}return 0}function C(Y,ve){return ve.getLineAndCharacterOfPosition(Y.getStart(ve))}function w(Y,ve,xe,Me){if(!(Ws(Y)&&gs(Y.arguments,ve)))return!1;let ke=Y.expression.getEnd();return Ka(Me,ke).line===xe}e.isArgumentAndStartLineOverlapsExpressionBeingCalled=w;function D(Y,ve,xe,Me){if(Y.kind===245&&Y.elseStatement===ve){let ke=Ya(Y,93,Me);return E.assert(ke!==void 0),C(ke,Me).line===xe}return!1}e.childStartsOnTheSameLineWithElseInIfStatement=D;function O(Y,ve,xe,Me){if(DC(Y)&&(ve===Y.whenTrue||ve===Y.whenFalse)){let ke=Ka(Me,Y.condition.end).line;if(ve===Y.whenTrue)return xe===ke;{let he=C(Y.whenTrue,Me).line,be=Ka(Me,Y.whenTrue.end).line;return ke===he&&be===xe}}return!1}e.childIsUnindentedBranchOfConditionalExpression=O;function z(Y,ve,xe,Me){if(Dm(Y)){if(!Y.arguments)return!1;let ke=xr(Y.arguments,mt=>mt.pos===ve.pos);if(!ke)return!1;let he=Y.arguments.indexOf(ke);if(he===0)return!1;let be=Y.arguments[he-1],_t=Ka(Me,be.getEnd()).line;if(xe===_t)return!0}return!1}e.argumentStartsOnSameLineAsPreviousArgument=z;function V(Y,ve){return Y.parent&&J(Y.getStart(ve),Y.getEnd(),Y.parent,ve)}e.getContainingList=V;function X(Y,ve,xe){return ve&&J(Y,Y,ve,xe)}function J(Y,ve,xe,Me){switch(xe.kind){case 183:return ke(xe.typeArguments);case 210:return ke(xe.properties);case 209:return ke(xe.elements);case 187:return ke(xe.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return ke(xe.typeParameters)||ke(xe.parameters);case 177:return ke(xe.parameters);case 263:case 231:case 264:case 265:case 352:return ke(xe.typeParameters);case 214:case 213:return ke(xe.typeArguments)||ke(xe.arguments);case 261:return ke(xe.declarations);case 275:case 279:return ke(xe.elements);case 206:case 207:return ke(xe.elements)}function ke(he){return he&&DA(ie(xe,he,Me),Y,ve)?he:void 0}}function ie(Y,ve,xe){let Me=Y.getChildren(xe);for(let ke=1;ke=0&&ve=0;be--){if(Y[be].kind===28)continue;if(xe.getLineAndCharacterOfPosition(Y[be].end).line!==he.line)return _e(he,xe,Me);he=C(Y[be],xe)}return-1}function _e(Y,ve,xe){let Me=ve.getPositionOfLineAndCharacter(Y.line,0);return H(Me,Me+Y.character,ve,xe)}function $(Y,ve,xe,Me){let ke=0,he=0;for(let be=Y;beAfe,FormattingRequestKind:()=>wfe,RuleAction:()=>Ife,RuleFlags:()=>Ffe,SmartIndenter:()=>Kd,anyContext:()=>LM,createTextRangeWithKind:()=>yQ,formatDocument:()=>wZe,formatNodeGivenIndentation:()=>MZe,formatOnClosingCurly:()=>PZe,formatOnEnter:()=>CZe,formatOnOpeningCurly:()=>DZe,formatOnSemicolon:()=>EZe,formatSelection:()=>AZe,getAllRules:()=>eDe,getFormatContext:()=>gZe,getFormattingScanner:()=>Nfe,getIndentationString:()=>Hfe,getRangeOfEnclosingComment:()=>CDe});var AN=ze({"src/services/_namespaces/ts.formatting.ts"(){"use strict";MYe(),RYe(),jYe(),mZe(),kZe(),BZe(),JZe()}}),qr=ze({"src/services/_namespaces/ts.ts"(){"use strict";Rs(),vA(),rje(),Pje(),Ije(),ixe(),Uje(),qje(),Zje(),cBe(),lBe(),_Be(),vBe(),bBe(),JVe(),zVe(),UVe(),uWe(),fWe(),la(),H_e(),l3e(),FXe(),jXe(),tQe(),Pxe(),Xxe(),xQe(),AQe(),Vm(),jQe(),_Ye(),vYe(),TYe(),LYe(),AN()}});function zZe(){return PDe??(PDe=new zp(ps))}function EDe(e,t,n,i,s){let o=t?"DeprecationError: ":"DeprecationWarning: ";return o+=`'${e}' `,o+=i?`has been deprecated since v${i}`:"is deprecated",o+=t?" and can no longer be used.":n?` and will no longer be usable after v${n}.`:".",o+=s?` ${vg(s,[e])}`:"",o}function VZe(e,t,n,i){let s=EDe(e,!0,t,n,i);return()=>{throw new TypeError(s)}}function WZe(e,t,n,i){let s=!1;return()=>{DDe&&!s&&(E.log.warn(EDe(e,!1,t,n,i)),s=!0)}}function UZe(e,t={}){let n=typeof t.typeScriptVersion=="string"?new zp(t.typeScriptVersion):t.typeScriptVersion??zZe(),i=typeof t.errorAfter=="string"?new zp(t.errorAfter):t.errorAfter,s=typeof t.warnAfter=="string"?new zp(t.warnAfter):t.warnAfter,o=typeof t.since=="string"?new zp(t.since):t.since??s,c=t.error||i&&n.compareTo(i)>=0,u=!s||n.compareTo(s)>=0;return c?VZe(e,i,o,t.message):u?WZe(e,i,o,t.message):Fa}function qZe(e,t){return function(){return e(),t.apply(this,arguments)}}function Gfe(e,t){let n=UZe(t?.name??E.getFunctionName(e),t);return qZe(n,e)}var DDe,PDe,wDe=ze({"src/deprecatedCompat/deprecate.ts"(){"use strict";SQ(),DDe=!0}});function bQ(e,t,n,i){if(Object.defineProperty(o,"name",{...Object.getOwnPropertyDescriptor(o,"name"),value:e}),i)for(let c of Object.keys(i)){let u=+c;!isNaN(u)&&so(t,`${u}`)&&(t[u]=Gfe(t[u],{...i[u],name:e}))}let s=HZe(t,n);return o;function o(...c){let u=s(c),f=u!==void 0?t[u]:void 0;if(typeof f=="function")return f(...c);throw new TypeError("Invalid arguments")}}function HZe(e,t){return n=>{for(let i=0;so(e,`${i}`)&&so(t,`${i}`);i++){let s=t[i];if(s(n))return i}}}function ADe(e){return{overload:t=>({bind:n=>({finish:()=>bQ(e,t,n),deprecate:i=>({finish:()=>bQ(e,t,n,i)})})})}}var GZe=ze({"src/deprecatedCompat/deprecations.ts"(){"use strict";SQ(),wDe()}}),$Ze=ze({"src/deprecatedCompat/5.0/identifierProperties.ts"(){"use strict";SQ(),wDe(),fne(e=>{let t=e.getIdentifierConstructor();so(t.prototype,"originalKeywordKind")||Object.defineProperty(t.prototype,"originalKeywordKind",{get:Gfe(function(){return s1(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),so(t.prototype,"isInJSDocNamespace")||Object.defineProperty(t.prototype,"isInJSDocNamespace",{get:Gfe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),SQ=ze({"src/deprecatedCompat/_namespaces/ts.ts"(){"use strict";Rs(),GZe(),$Ze()}}),XZe=ze({"src/typingsInstallerCore/_namespaces/ts.ts"(){"use strict";Rs(),vA(),Xfe()}});function NDe(e,t,n,i){try{let s=WC(t,Qr(e,"index.d.ts"),{moduleResolution:2},n);return s.resolvedModule&&s.resolvedModule.resolvedFileName}catch(s){i.isEnabled()&&i.writeLine(`Failed to resolve ${t} in folder '${e}': ${s.message}`);return}}function QZe(e,t,n,i){let s=!1;for(let o=n.length;o>0;){let c=IDe(e,t,n,o);o=c.remaining,s=i(c.command)||s}return s}function IDe(e,t,n,i){let s=n.length-i,o,c=i;for(;o=`${e} install --ignore-scripts ${(c===n.length?n:n.slice(s,s+c)).join(" ")} --save-dev --user-agent="typesInstaller/${t}"`,!(o.length<8e3);)c=c-Math.floor(c/2);return{command:o,remaining:i-c}}function FDe(e){return`@types/${e}@ts${Qi}`}var ODe,LDe,YZe=ze({"src/typingsInstallerCore/typingsInstaller.ts"(){"use strict";XZe(),Xfe(),ODe={isEnabled:()=>!1,writeLine:Fa},LDe=class{constructor(e,t,n,i,s,o=ODe){this.installTypingHost=e,this.globalCachePath=t,this.safeListPath=n,this.typesMapLocation=i,this.throttleLimit=s,this.log=o,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${t}', safe file path '${n}', types map path ${i}`),this.processCacheLocation(this.globalCachePath)}closeProject(e){this.closeWatchers(e.projectName)}closeWatchers(e){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}'`),!this.projectWatchers.get(e)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${e}'`);return}this.projectWatchers.delete(e),this.sendResponse({kind:yA,projectName:e,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${e}' - done.`)}install(e){this.log.isEnabled()&&this.log.writeLine(`Got install request${n6(e)}`),e.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${e.cachePath}', loading cached information...`),this.processCacheLocation(e.cachePath)),this.safeList===void 0&&this.initializeSafeList();let t=Eg.discoverTypings(this.installTypingHost,this.log.isEnabled()?n=>this.log.writeLine(n):void 0,e.fileNames,e.projectRootPath,this.safeList,this.packageNameToTypingLocation,e.typeAcquisition,e.unresolvedImports,this.typesRegistry,e.compilerOptions);this.watchFiles(e.projectName,t.filesToWatch),t.newTypingNames.length?this.installTypings(e,e.cachePath||this.globalCachePath,t.cachedTypingPaths,t.newTypingNames):(this.sendResponse(this.createSetTypings(e,t.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}initializeSafeList(){if(this.typesMapLocation){let e=Eg.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(e){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=e;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=Eg.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(e){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${e}'`),this.knownCachesSet.has(e)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}let t=Qr(e,"package.json"),n=Qr(e,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${t}'...`),this.installTypingHost.fileExists(t)&&this.installTypingHost.fileExists(n)){let i=JSON.parse(this.installTypingHost.readFile(t)),s=JSON.parse(this.installTypingHost.readFile(n));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${t}':${n6(i)}`),this.log.writeLine(`Loaded content of '${n}':${n6(s)}`)),i.devDependencies&&s.dependencies)for(let o in i.devDependencies){if(!so(s.dependencies,o))continue;let c=Mc(o);if(!c)continue;let u=NDe(e,c,this.installTypingHost,this.log);if(!u){this.missingTypingsSet.add(c);continue}let f=this.packageNameToTypingLocation.get(c);if(f){if(f.typingLocation===u)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${c} from '${u}' conflicts with existing typing file '${f}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${c}' => '${u}'`);let g=jI(s.dependencies,o),p=g&&g.version;if(!p)continue;let y={typingLocation:u,version:new zp(p)};this.packageNameToTypingLocation.set(c,y)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${e}'`),this.knownCachesSet.add(e)}filterTypings(e){return Ri(e,t=>{let n=qC(t);if(this.missingTypingsSet.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' is in missingTypingsSet - skipping...`);return}let i=Eg.validatePackageName(t);if(i!==Eg.NameValidationResult.Ok){this.missingTypingsSet.add(n),this.log.isEnabled()&&this.log.writeLine(Eg.renderPackageNameValidationFailure(i,t));return}if(!this.typesRegistry.has(n)){this.log.isEnabled()&&this.log.writeLine(`'${t}':: Entry for package '${n}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(n)&&Eg.isTypingUpToDate(this.packageNameToTypingLocation.get(n),this.typesRegistry.get(n))){this.log.isEnabled()&&this.log.writeLine(`'${t}':: '${n}' already has an up-to-date typing - skipping...`);return}return n})}ensurePackageDirectoryExists(e){let t=Qr(e,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${t}`),this.installTypingHost.fileExists(t)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${t}' is missing, creating new one...`),this.ensureDirectoryExists(e,this.installTypingHost),this.installTypingHost.writeFile(t,'{ "private": true }'))}installTypings(e,t,n,i){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(i)}`);let s=this.filterTypings(i);if(s.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(e,n));return}this.ensurePackageDirectoryExists(t);let o=this.installRunCount;this.installRunCount++,this.sendResponse({kind:zq,eventId:o,typingsInstallerVersion:ps,projectName:e.projectName});let c=s.map(FDe);this.installTypingsAsync(o,c,t,u=>{try{if(!u){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(s)}`);for(let g of s)this.missingTypingsSet.add(g);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(c)}`);let f=[];for(let g of s){let p=NDe(t,g,this.installTypingHost,this.log);if(!p){this.missingTypingsSet.add(g);continue}let y=this.typesRegistry.get(g),S=new zp(y[`ts${Qi}`]||y[this.latestDistTag]),x={typingLocation:p,version:S};this.packageNameToTypingLocation.set(g,x),f.push(p)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(f)}`),this.sendResponse(this.createSetTypings(e,n.concat(f)))}finally{let f={kind:Vq,eventId:o,projectName:e.projectName,packagesToInstall:c,installSuccess:u,typingsInstallerVersion:ps};this.sendResponse(f)}})}ensureDirectoryExists(e,t){let n=Xr(e);t.directoryExists(n)||this.ensureDirectoryExists(n,t),t.directoryExists(e)||t.createDirectory(e)}watchFiles(e,t){if(!t.length){this.closeWatchers(e);return}let n=this.projectWatchers.get(e),i=new Set(t);!n||pg(i,s=>!n.has(s))||pg(n,s=>!i.has(s))?(this.projectWatchers.set(e,i),this.sendResponse({kind:yA,projectName:e,files:t})):this.sendResponse({kind:yA,projectName:e,files:void 0})}createSetTypings(e,t){return{projectName:e.projectName,typeAcquisition:e.typeAcquisition,compilerOptions:e.compilerOptions,typings:t,unresolvedImports:e.unresolvedImports,kind:V9}}installTypingsAsync(e,t,n,i){this.pendingRunRequests.unshift({requestId:e,packageNames:t,cwd:n,onRequestCompleted:i}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,e.onRequestCompleted(t),this.executeWithThrottling()})}}}}}),$fe={};Jn($fe,{TypingsInstaller:()=>LDe,getNpmCommandForInstallation:()=>IDe,installNpmPackages:()=>QZe,typingsName:()=>FDe});var ZZe=ze({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){"use strict";YZe()}}),Xfe=ze({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){"use strict";U9(),ZZe()}}),KZe=ze({"src/server/types.ts"(){"use strict"}});function MDe(e,t,n,i){return{projectName:e.getProjectName(),fileNames:e.getFileNames(!0,!0).concat(e.getExcludedFiles()),compilerOptions:e.getCompilationSettings(),typeAcquisition:t,unresolvedImports:n,projectRootPath:e.getCurrentDirectory(),cachePath:i,kind:"discover"}}function Uo(e){return Ys(e)}function NN(e,t,n){let i=I_(e)?e:cs(e,t);return n(i)}function RDe(e){return e}function jDe(){let e=new Map;return{get(t){return e.get(t)},set(t,n){e.set(t,n)},contains(t){return e.has(t)},remove(t){e.delete(t)}}}function Qfe(e){return/dev\/null\/inferredProject\d+\*/.test(e)}function Yfe(e){return`/dev/null/inferredProject${e}*`}function Zfe(e){return`/dev/null/autoImportProviderProject${e}*`}function Kfe(e){return`/dev/null/auxiliaryProject${e}*`}function epe(){return[]}var xQ,tl,TQ,f0,eKe=ze({"src/server/utilitiesPublic.ts"(){"use strict";B1(),xQ=(e=>(e[e.terse=0]="terse",e[e.normal=1]="normal",e[e.requestTime=2]="requestTime",e[e.verbose=3]="verbose",e))(xQ||{}),tl=epe(),TQ=(e=>(e.Err="Err",e.Info="Info",e.Perf="Perf",e))(TQ||{}),(e=>{function t(){throw new Error("No Project.")}e.ThrowNoProject=t;function n(){throw new Error("The project's language service is disabled.")}e.ThrowProjectLanguageServiceDisabled=n;function i(s,o){throw new Error(`Project '${o.getProjectName()}' does not contain document '${s}'`)}e.ThrowProjectDoesNotContainDocument=i})(f0||(f0={}))}});function kQ(e){let t=Mc(e);return t==="tsconfig.json"||t==="jsconfig.json"?t:void 0}function BDe(e,t,n){if(!e||e.length===0)return;if(e[0]===t){e.splice(0,1);return}let i=Rh(e,t,No,n);i>=0&&e.splice(i,1)}var CQ,EQ,tKe=ze({"src/server/utilities.ts"(){"use strict";B1(),wT(),CQ=class J7e{constructor(t,n){this.host=t,this.pendingTimeouts=new Map,this.logger=n.hasLevel(3)?n:void 0}schedule(t,n,i){let s=this.pendingTimeouts.get(t);s&&this.host.clearTimeout(s),this.pendingTimeouts.set(t,this.host.setTimeout(J7e.run,n,t,this,i)),this.logger&&this.logger.info(`Scheduled: ${t}${s?", Cancelled earlier one":""}`)}cancel(t){let n=this.pendingTimeouts.get(t);return n?(this.host.clearTimeout(n),this.pendingTimeouts.delete(t)):!1}static run(t,n,i){var s,o;(s=Lu)==null||s.logStartScheduledOperation(t),n.pendingTimeouts.delete(t),n.logger&&n.logger.info(`Running: ${t}`),i(),(o=Lu)==null||o.logStopScheduledOperation()}},EQ=class z7e{constructor(t,n,i){this.host=t,this.delay=n,this.logger=i}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(z7e.run,this.delay,this))}static run(t){var n,i;t.timerId=void 0,(n=Lu)==null||n.logStartScheduledOperation("GC collect");let s=t.logger.hasLevel(2),o=s&&t.host.getMemoryUsage();if(t.host.gc(),s){let c=t.host.getMemoryUsage();t.logger.perftrc(`GC::before ${o}, after ${c}`)}(i=Lu)==null||i.logStopScheduledOperation()}}}}),DQ,tpe,npe,rpe,ipe,spe,ape,ope,cpe,lpe,upe,_pe,fpe,ppe,dpe=ze({"src/server/protocol.ts"(){"use strict";DQ=(e=>(e.JsxClosingTag="jsxClosingTag",e.LinkedEditingRange="linkedEditingRange",e.Brace="brace",e.BraceFull="brace-full",e.BraceCompletion="braceCompletion",e.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",e.Change="change",e.Close="close",e.Completions="completions",e.CompletionInfo="completionInfo",e.CompletionsFull="completions-full",e.CompletionDetails="completionEntryDetails",e.CompletionDetailsFull="completionEntryDetails-full",e.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",e.CompileOnSaveEmitFile="compileOnSaveEmitFile",e.Configure="configure",e.Definition="definition",e.DefinitionFull="definition-full",e.DefinitionAndBoundSpan="definitionAndBoundSpan",e.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",e.Implementation="implementation",e.ImplementationFull="implementation-full",e.EmitOutput="emit-output",e.Exit="exit",e.FileReferences="fileReferences",e.FileReferencesFull="fileReferences-full",e.Format="format",e.Formatonkey="formatonkey",e.FormatFull="format-full",e.FormatonkeyFull="formatonkey-full",e.FormatRangeFull="formatRange-full",e.Geterr="geterr",e.GeterrForProject="geterrForProject",e.SemanticDiagnosticsSync="semanticDiagnosticsSync",e.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",e.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",e.NavBar="navbar",e.NavBarFull="navbar-full",e.Navto="navto",e.NavtoFull="navto-full",e.NavTree="navtree",e.NavTreeFull="navtree-full",e.DocumentHighlights="documentHighlights",e.DocumentHighlightsFull="documentHighlights-full",e.Open="open",e.Quickinfo="quickinfo",e.QuickinfoFull="quickinfo-full",e.References="references",e.ReferencesFull="references-full",e.Reload="reload",e.Rename="rename",e.RenameInfoFull="rename-full",e.RenameLocationsFull="renameLocations-full",e.Saveto="saveto",e.SignatureHelp="signatureHelp",e.SignatureHelpFull="signatureHelp-full",e.FindSourceDefinition="findSourceDefinition",e.Status="status",e.TypeDefinition="typeDefinition",e.ProjectInfo="projectInfo",e.ReloadProjects="reloadProjects",e.Unknown="unknown",e.OpenExternalProject="openExternalProject",e.OpenExternalProjects="openExternalProjects",e.CloseExternalProject="closeExternalProject",e.SynchronizeProjectList="synchronizeProjectList",e.ApplyChangedToOpenFiles="applyChangedToOpenFiles",e.UpdateOpen="updateOpen",e.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",e.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",e.Cleanup="cleanup",e.GetOutliningSpans="getOutliningSpans",e.GetOutliningSpansFull="outliningSpans",e.TodoComments="todoComments",e.Indentation="indentation",e.DocCommentTemplate="docCommentTemplate",e.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",e.NameOrDottedNameSpan="nameOrDottedNameSpan",e.BreakpointStatement="breakpointStatement",e.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",e.GetCodeFixes="getCodeFixes",e.GetCodeFixesFull="getCodeFixes-full",e.GetCombinedCodeFix="getCombinedCodeFix",e.GetCombinedCodeFixFull="getCombinedCodeFix-full",e.ApplyCodeActionCommand="applyCodeActionCommand",e.GetSupportedCodeFixes="getSupportedCodeFixes",e.GetApplicableRefactors="getApplicableRefactors",e.GetEditsForRefactor="getEditsForRefactor",e.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",e.GetEditsForRefactorFull="getEditsForRefactor-full",e.OrganizeImports="organizeImports",e.OrganizeImportsFull="organizeImports-full",e.GetEditsForFileRename="getEditsForFileRename",e.GetEditsForFileRenameFull="getEditsForFileRename-full",e.ConfigurePlugin="configurePlugin",e.SelectionRange="selectionRange",e.SelectionRangeFull="selectionRange-full",e.ToggleLineComment="toggleLineComment",e.ToggleLineCommentFull="toggleLineComment-full",e.ToggleMultilineComment="toggleMultilineComment",e.ToggleMultilineCommentFull="toggleMultilineComment-full",e.CommentSelection="commentSelection",e.CommentSelectionFull="commentSelection-full",e.UncommentSelection="uncommentSelection",e.UncommentSelectionFull="uncommentSelection-full",e.PrepareCallHierarchy="prepareCallHierarchy",e.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",e.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",e.ProvideInlayHints="provideInlayHints",e.WatchChange="watchChange",e))(DQ||{}),tpe=(e=>(e.All="All",e.SortAndCombine="SortAndCombine",e.RemoveUnused="RemoveUnused",e))(tpe||{}),npe=(e=>(e.FixedPollingInterval="FixedPollingInterval",e.PriorityPollingInterval="PriorityPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e.UseFsEvents="UseFsEvents",e.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",e))(npe||{}),rpe=(e=>(e.UseFsEvents="UseFsEvents",e.FixedPollingInterval="FixedPollingInterval",e.DynamicPriorityPolling="DynamicPriorityPolling",e.FixedChunkSizePolling="FixedChunkSizePolling",e))(rpe||{}),ipe=(e=>(e.FixedInterval="FixedInterval",e.PriorityInterval="PriorityInterval",e.DynamicPriority="DynamicPriority",e.FixedChunkSize="FixedChunkSize",e))(ipe||{}),spe=(e=>(e[e.Invoked=1]="Invoked",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",e))(spe||{}),ape=(e=>(e.None="None",e.Block="Block",e.Smart="Smart",e))(ape||{}),ope=(e=>(e.Ignore="ignore",e.Insert="insert",e.Remove="remove",e))(ope||{}),cpe=(e=>(e.None="None",e.Preserve="Preserve",e.ReactNative="ReactNative",e.React="React",e))(cpe||{}),lpe=(e=>(e.None="None",e.CommonJS="CommonJS",e.AMD="AMD",e.UMD="UMD",e.System="System",e.ES6="ES6",e.ES2015="ES2015",e.ESNext="ESNext",e))(lpe||{}),upe=(e=>(e.Classic="Classic",e.Node="Node",e))(upe||{}),_pe=(e=>(e.Crlf="Crlf",e.Lf="Lf",e))(_pe||{}),fpe=(e=>(e.ES3="ES3",e.ES5="ES5",e.ES6="ES6",e.ES2015="ES2015",e.ES2016="ES2016",e.ES2017="ES2017",e.ES2018="ES2018",e.ES2019="ES2019",e.ES2020="ES2020",e.ES2021="ES2021",e.ES2022="ES2022",e.ESNext="ESNext",e))(fpe||{}),ppe=(e=>(e[e.comment=1]="comment",e[e.identifier=2]="identifier",e[e.keyword=3]="keyword",e[e.numericLiteral=4]="numericLiteral",e[e.operator=5]="operator",e[e.stringLiteral=6]="stringLiteral",e[e.regularExpressionLiteral=7]="regularExpressionLiteral",e[e.whiteSpace=8]="whiteSpace",e[e.text=9]="text",e[e.punctuation=10]="punctuation",e[e.className=11]="className",e[e.enumName=12]="enumName",e[e.interfaceName=13]="interfaceName",e[e.moduleName=14]="moduleName",e[e.typeParameterName=15]="typeParameterName",e[e.typeAliasName=16]="typeAliasName",e[e.parameterName=17]="parameterName",e[e.docCommentTagName=18]="docCommentTagName",e[e.jsxOpenTagName=19]="jsxOpenTagName",e[e.jsxCloseTagName=20]="jsxCloseTagName",e[e.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",e[e.jsxAttribute=22]="jsxAttribute",e[e.jsxText=23]="jsxText",e[e.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",e[e.bigintLiteral=25]="bigintLiteral",e))(ppe||{})}}),mpe={};Jn(mpe,{ClassificationType:()=>ppe,CommandTypes:()=>DQ,CompletionTriggerKind:()=>spe,IndentStyle:()=>ape,JsxEmit:()=>cpe,ModuleKind:()=>lpe,ModuleResolutionKind:()=>upe,NewLineKind:()=>_pe,OrganizeImportsMode:()=>tpe,PollingWatchKind:()=>ipe,ScriptTarget:()=>fpe,SemicolonPreference:()=>ope,WatchDirectoryKind:()=>rpe,WatchFileKind:()=>npe});var nKe=ze({"src/server/_namespaces/ts.server.protocol.ts"(){"use strict";dpe()}});function IN(e){return e[0]==="^"||(e.includes("walkThroughSnippet:/")||e.includes("untitled:/"))&&Mc(e)[0]==="^"||e.includes(":^")&&!e.includes(Oo)}function JDe(e){return!e||ON(e)?f0.ThrowNoProject():e}function rKe(e){E.assert(typeof e=="number",`Expected position ${e} to be a number.`),E.assert(e>=0,"Expected position to be non-negative.")}function iKe(e){E.assert(typeof e.line=="number",`Expected line ${e.line} to be a number.`),E.assert(typeof e.offset=="number",`Expected offset ${e.offset} to be a number.`),E.assert(e.line>0,`Expected line to be non-${e.line===0?"zero":"negative"}`),E.assert(e.offset>0,`Expected offset to be non-${e.offset===0?"zero":"negative"}`)}var PQ,wQ,sKe=ze({"src/server/scriptInfo.ts"(){"use strict";B1(),wT(),PQ=class{constructor(e,t,n){this.host=e,this.info=t,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=n||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(e){this.svc=void 0,this.text=e,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(e,t,n){this.switchToScriptVersionCache().edit(e,t-e,n),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(e){return E.assert(e!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=s6(this.svc.getSnapshot())),this.text!==e?(this.useText(e),this.ownFileText=!1,!0):!1}reloadWithFileText(e){let{text:t,fileSize:n}=e||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(e):{text:"",fileSize:void 0},i=this.reload(t);return this.fileSize=n,this.ownFileText=!e||e===this.info.fileName,i}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var e;return((e=this.tryUseScriptVersionCache())==null?void 0:e.getSnapshot())||(this.textSnapshot??(this.textSnapshot=H9.fromString(E.checkDefined(this.text))))}getAbsolutePositionAndLineText(e){let t=this.tryUseScriptVersionCache();if(t)return t.getAbsolutePositionAndLineText(e);let n=this.getLineMap();return e<=n.length?{absolutePosition:n[e-1],lineText:this.text.substring(n[e-1],n[e])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(e){let t=this.tryUseScriptVersionCache();if(t)return t.lineToTextSpan(e);let n=this.getLineMap(),i=n[e],s=e+1t===void 0?t=this.host.readFile(n)||"":t;if(!O2(this.info.fileName)){let s=this.host.getFileSize?this.host.getFileSize(n):i().length;if(s>HM)return E.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${n} for info ${this.info.fileName}: fileSize: ${s}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(n,s),{text:"",fileSize:s}}return{text:i()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=sR.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=sR.fromString(E.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(E.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return E.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=dx(E.checkDefined(this.text)))}getLineInfo(){let e=this.tryUseScriptVersionCache();if(e)return{getLineCount:()=>e.getLineCount(),getLineText:n=>e.getAbsolutePositionAndLineText(n+1).lineText};let t=this.getLineMap();return yU(this.text,t)}},wQ=class{constructor(e,t,n,i,s,o){this.host=e,this.fileName=t,this.scriptKind=n,this.hasMixedContent=i,this.path=s,this.containingProjects=[],this.isDynamic=IN(t),this.textStorage=new PQ(e,this,o),(i||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=n||eF(t)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(e){this.textStorage.isOpen=!0,e!==void 0&&this.textStorage.reload(e)&&this.markContainingProjectsAsDirty()}close(e=!0){this.textStorage.isOpen=!1,e&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){E.assert(!!this.containingProjects.length);let e=this.containingProjects[0],t=this.host.realpath(this.path);t&&(this.realpath=e.toPath(t),this.realpath!==this.path&&e.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(e){let t=!this.isAttached(e);return t&&(this.containingProjects.push(e),e.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),e.onFileAddedOrRemoved(this.isSymlink())),t}isAttached(e){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===e;case 2:return this.containingProjects[0]===e||this.containingProjects[1]===e;default:return gs(this.containingProjects,e)}}detachFromProject(e){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===e?(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===e&&(e.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:o2(this.containingProjects,e)&&e.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(let e of this.containingProjects){j1(e)&&e.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);let t=e.getRootFilesMap().get(this.path);e.removeFile(this,!1,!1),e.onFileAddedOrRemoved(this.isSymlink()),t&&!E6(e)&&e.addMissingFileRoot(t.fileName)}og(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return f0.ThrowNoProject();case 1:return JDe(this.containingProjects[0]);default:let e,t,n,i,s;for(let o=0;o!e.isOrphan())}isContainedByBackgroundProject(){return ft(this.containingProjects,ON)}lineToTextSpan(e){return this.textStorage.lineToTextSpan(e)}lineOffsetToPosition(e,t,n){return this.textStorage.lineOffsetToPosition(e,t,n)}positionToLineOffset(e){rKe(e);let t=this.textStorage.positionToLineOffset(e);return iKe(t),t}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!os(this.sourceMapFilePath)&&(Cf(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function zDe(e,t){if(e===t||(e||tl).length===0&&(t||tl).length===0)return!0;let n=new Map,i=0;for(let s of e)n.get(s)!==!0&&(n.set(s,!0),i++);for(let s of t){let o=n.get(s);if(o===void 0)return!1;o===!0&&(n.set(s,!1),i--)}return i===0}function aKe(e,t){return e.enable!==t.enable||!zDe(e.include,t.include)||!zDe(e.exclude,t.exclude)}function oKe(e,t){return m1(e)!==m1(t)}function cKe(e,t){return e===t?!1:!cd(e,t)}var zM,AQ,lKe=ze({"src/server/typingsCache.ts"(){"use strict";B1(),wT(),zM={isKnownTypesPackageName:ld,installPackage:Ts,enqueueInstallTypingsRequest:Fa,attach:Fa,onProjectClosed:Fa,globalTypingsCacheLocation:void 0},AQ=class{constructor(e){this.installer=e,this.perProjectCache=new Map}isKnownTypesPackageName(e){return this.installer.isKnownTypesPackageName(e)}installPackage(e){return this.installer.installPackage(e)}enqueueInstallTypingsForProject(e,t,n){let i=e.getTypeAcquisition();if(!i||!i.enable)return;let s=this.perProjectCache.get(e.getProjectName());(n||!s||aKe(i,s.typeAcquisition)||oKe(e.getCompilationSettings(),s.compilerOptions)||cKe(t,s.unresolvedImports))&&(this.perProjectCache.set(e.getProjectName(),{compilerOptions:e.getCompilationSettings(),typeAcquisition:i,typings:s?s.typings:tl,unresolvedImports:t,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(e,i,t))}updateTypingsForProject(e,t,n,i,s){let o=sx(s);return this.perProjectCache.set(e,{compilerOptions:t,typeAcquisition:n,typings:o,unresolvedImports:i,poisoned:!1}),!n||!n.enable?tl:o}onProjectClosed(e){this.perProjectCache.delete(e.getProjectName()),this.installer.onProjectClosed(e)}}}});function FN(e,t=!1){let n={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(let i of e){let s=t?i.textStorage.getTelemetryFileSize():0;switch(i.scriptKind){case 1:n.js+=1,n.jsSize+=s;break;case 2:n.jsx+=1,n.jsxSize+=s;break;case 3:Jl(i.fileName)?(n.dts+=1,n.dtsSize+=s):(n.ts+=1,n.tsSize+=s);break;case 4:n.tsx+=1,n.tsxSize+=s;break;case 7:n.deferred+=1,n.deferredSize+=s;break}}return n}function uKe(e){let t=FN(e.getScriptInfos());return t.js>0&&t.ts===0&&t.tsx===0}function gpe(e){let t=FN(e.getRootScriptInfos());return t.ts===0&&t.tsx===0}function hpe(e){let t=FN(e.getScriptInfos());return t.ts===0&&t.tsx===0}function ype(e){return!e.some(t=>nc(t,".ts")&&!Jl(t)||nc(t,".tsx"))}function vpe(e){return e.generatedFilePath!==void 0}function _Ke(e,t){var n,i;let s=e.getSourceFiles();(n=Wn)==null||n.push(Wn.Phase.Session,"getUnresolvedImports",{count:s.length});let o=e.getTypeChecker().getAmbientModules().map(u=>hp(u.getName())),c=k4(oa(s,u=>fKe(e,u,o,t)));return(i=Wn)==null||i.pop(),c}function fKe(e,t,n,i){return T4(i,t.path,()=>{let s;return e.forEachResolvedModule(({resolvedModule:o},c)=>{(!o||!NE(o.extension))&&!Al(c)&&!n.some(u=>u===c)&&(s=_n(s,Y8(c).packageName))},t),s||tl})}function E6(e){return e.projectKind===0}function j1(e){return e.projectKind===1}function NQ(e){return e.projectKind===2}function ON(e){return e.projectKind===3||e.projectKind===4}var cD,uS,IQ,FQ,OQ,LQ,MQ,VM,pKe=ze({"src/server/project.ts"(){"use strict";B1(),B1(),wT(),cD=(e=>(e[e.Inferred=0]="Inferred",e[e.Configured=1]="Configured",e[e.External=2]="External",e[e.AutoImportProvider=3]="AutoImportProvider",e[e.Auxiliary=4]="Auxiliary",e))(cD||{}),uS=class V7e{constructor(t,n,i,s,o,c,u,f,g,p,y){switch(this.projectKind=n,this.projectService=i,this.documentRegistry=s,this.compilerOptions=u,this.compileOnSaveEnabled=f,this.watchOptions=g,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=ld,this.dirty=!1,this.typingFiles=tl,this.moduleSpecifierCache=Npe(this),this.createHash=Js(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=Eg.nonRelativeModuleNameForTypingCache,this.projectName=t,this.directoryStructureHost=p,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(y),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new _$(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(o||m1(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=cM(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),i.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:E.assertNever(i.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();let S=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=x=>this.writeLog(x):S.trace&&(this.trace=x=>S.trace(x)),this.realpath=Js(S,S.realpath),this.resolutionCache=xq(this,this.currentDirectory,!0),this.languageService=dle(this,this.documentRegistry,this.projectService.serverMode),c&&this.disableLanguageService(c),this.markAsDirty(),ON(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(t){}isNonTsProject(){return Af(this),hpe(this)}isJsOnlyProject(){return Af(this),uKe(this)}static resolveModule(t,n,i,s){return V7e.importServicePluginSync({name:t},[n],i,s).resolvedModule}static importServicePluginSync(t,n,i,s){E.assertIsDefined(i.require);let o,c;for(let u of n){let f=Su(i.resolvePath(Qr(u,"node_modules")));s(`Loading ${t.name} from ${u} (resolved to ${f})`);let g=i.require(f,t.name);if(!g.error){c=g.module;break}let p=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to load module '${t.name}' from ${f}: ${p}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}static async importServicePluginAsync(t,n,i,s){E.assertIsDefined(i.importPlugin);let o,c;for(let u of n){let f=Qr(u,"node_modules");s(`Dynamically importing ${t.name} from ${u} (resolved to ${f})`);let g;try{g=await i.importPlugin(f,t.name)}catch(y){g={module:void 0,error:y}}if(!g.error){c=g.module;break}let p=g.error.stack||g.error.message||JSON.stringify(g.error);(o??(o=[])).push(`Failed to dynamically import module '${t.name}' from ${f}: ${p}`)}return{pluginConfigEntry:t,resolvedModule:c,errorLogs:o}}isKnownTypesPackageName(t){return this.typingsCache.isKnownTypesPackageName(t)}installPackage(t){return this.typingsCache.installPackage({...t,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=Zz(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return Ve;let t;return this.rootFilesMap.forEach(n=>{(this.languageServiceEnabled||n.info&&n.info.isScriptOpen())&&(t||(t=[])).push(n.fileName)}),Nr(t,this.typingFiles)||Ve}getOrCreateScriptInfoAndAttachToProject(t){let n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);if(n){let i=this.rootFilesMap.get(n.path);i&&i.info!==n&&(this.rootFiles.push(n),i.info=n),n.attachToProject(this)}return n}getScriptKind(t){let n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&n.scriptKind}getScriptVersion(t){let n=this.projectService.getOrCreateScriptInfoNotOpenedByClient(t,this.currentDirectory,this.directoryStructureHost);return n&&n.getLatestVersion()}getScriptSnapshot(t){let n=this.getOrCreateScriptInfoAndAttachToProject(t);if(n)return n.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){let t=Xr(Ys(this.projectService.getExecutingFilePath()));return Qr(t,EP(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(t,n,i,s,o){return this.directoryStructureHost.readDirectory(t,n,i,s,o)}readFile(t){return this.projectService.host.readFile(t)}writeFile(t,n){return this.projectService.host.writeFile(t,n)}fileExists(t){let n=this.toPath(t);return!this.isWatchedMissingFile(n)&&this.directoryStructureHost.fileExists(t)}resolveModuleNameLiterals(t,n,i,s,o,c){return this.resolutionCache.resolveModuleNameLiterals(t,n,i,s,o,c)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(t,n,i,s,o,c){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(t,n,i,s,o,c)}resolveLibrary(t,n,i,s){return this.resolutionCache.resolveLibrary(t,n,i,s)}directoryExists(t){return this.directoryStructureHost.directoryExists(t)}getDirectories(t){return this.directoryStructureHost.getDirectories(t)}getCachedDirectoryStructureHost(){}toPath(t){return xo(t,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),dl.FailedLookupLocations,this)}watchAffectingFileLocation(t,n){return this.projectService.watchFactory.watchFile(t,n,2e3,this.projectService.getWatchOptions(this),dl.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(t,n,i){return this.projectService.watchFactory.watchDirectory(t,n,i,this.projectService.getWatchOptions(this),dl.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(t){return this.projectService.openFiles.has(t)}writeLog(t){this.projectService.logger.info(t)}log(t){this.writeLog(t)}error(t){this.projectService.logger.msg(t,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return Fr(this.projectErrors,t=>!t.file)||tl}getAllProjectErrors(){return this.projectErrors||tl}setProjectErrors(t){this.projectErrors=t}getLanguageService(t=!0){return t&&Af(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(t,n){return this.projectService.getDocumentPositionMapper(this,t,n)}getSourceFileLike(t){return this.projectService.getSourceFileLike(t,this)}shouldEmitFile(t){return t&&!t.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(t.path)}getCompileOnSaveAffectedFileList(t){return this.languageServiceEnabled?(Af(this),this.builderState=Kp.create(this.program,this.builderState,!0),Ri(Kp.getFilesAffectedBy(this.builderState,this.program,t.path,this.cancellationToken,this.projectService.host),n=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(n.path))?n.fileName:void 0)):[]}emitFile(t,n){if(!this.languageServiceEnabled||!this.shouldEmitFile(t))return{emitSkipped:!0,diagnostics:tl};let{emitSkipped:i,diagnostics:s,outputFiles:o}=this.getLanguageService().getEmitOutput(t.fileName);if(!i){for(let c of o){let u=cs(c.name,this.currentDirectory);n(u,c.text,c.writeByteOrderMark)}if(this.builderState&&qf(this.compilerOptions)){let c=o.filter(u=>Jl(u.name));if(c.length===1){let u=this.program.getSourceFile(t.fileName),f=this.projectService.host.createHash?this.projectService.host.createHash(c[0].text):I4(c[0].text);Kp.updateSignatureOfFile(this.builderState,f,u.resolvedPath)}}}return{emitSkipped:i,diagnostics:s}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(let t of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(t.fileName);this.program.forEachResolvedProjectReference(t=>this.detachScriptInfoFromProject(t.sourceFile.fileName)),this.program=void 0}}disableLanguageService(t){this.languageServiceEnabled&&(E.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=t,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(t){return!t||!t.include?t:{...t,include:this.removeExistingTypings(t.include)}}getExternalFiles(t){return sx(oa(this.plugins,n=>{if(typeof n.module.getExternalFiles=="function")try{return n.module.getExternalFiles(this,t||0)}catch(i){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${i}`),i.stack&&this.projectService.logger.info(i.stack)}}))}getSourceFile(t){if(this.program)return this.program.getSourceFileByPath(t)}getSourceFileOrConfigFile(t){let n=this.program.getCompilerOptions();return t===n.configFilePath?n.configFile:this.getSourceFile(t)}close(){this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),Qt(this.externalFiles,t=>this.detachScriptInfoIfNotRoot(t));for(let t of this.rootFiles)t.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(d_(this.missingFilesMap,fd),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(t){let n=this.projectService.getScriptInfo(t);n&&!this.isRoot(n)&&n.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(t=>t.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Kt(this.program.getSourceFiles(),t=>{let n=this.projectService.getScriptInfoForPath(t.resolvedPath);return E.assert(!!n,"getScriptInfo",()=>`scriptInfo for a file '${t.fileName}' Path: '${t.path}' / '${t.resolvedPath}' is missing.`),n}):this.rootFiles}getExcludedFiles(){return tl}getFileNames(t,n){if(!this.program)return[];if(!this.languageServiceEnabled){let s=this.getRootFiles();if(this.compilerOptions){let o=mle(this.compilerOptions);o&&(s||(s=[])).push(o)}return s}let i=[];for(let s of this.program.getSourceFiles())t&&this.program.isSourceFileFromExternalLibrary(s)||i.push(s.fileName);if(!n){let s=this.program.getCompilerOptions().configFile;if(s&&(i.push(s.fileName),s.extendedSourceFiles))for(let o of s.extendedSourceFiles)i.push(o)}return i}getFileNamesWithRedirectInfo(t){return this.getFileNames().map(n=>({fileName:n,isSourceOfProjectReferenceRedirect:t&&this.isSourceOfProjectReferenceRedirect(n)}))}hasConfigFile(t){if(this.program&&this.languageServiceEnabled){let n=this.program.getCompilerOptions().configFile;if(n){if(t===n.fileName)return!0;if(n.extendedSourceFiles){for(let i of n.extendedSourceFiles)if(t===i)return!0}}}return!1}containsScriptInfo(t){if(this.isRoot(t))return!0;if(!this.program)return!1;let n=this.program.getSourceFileByPath(t.path);return!!n&&n.resolvedPath===t.path}containsFile(t,n){let i=this.projectService.getScriptInfoForNormalizedPath(t);return i&&(i.isScriptOpen()||!n)?this.containsScriptInfo(i):!1}isRoot(t){var n;return this.rootFilesMap&&((n=this.rootFilesMap.get(t.path))==null?void 0:n.info)===t}addRoot(t,n){E.assert(!this.isRoot(t)),this.rootFiles.push(t),this.rootFilesMap.set(t.path,{fileName:n||t.fileName,info:t}),t.attachToProject(this),this.markAsDirty()}addMissingFileRoot(t){let n=this.projectService.toPath(t);this.rootFilesMap.set(n,{fileName:t}),this.markAsDirty()}removeFile(t,n,i){this.isRoot(t)&&this.removeRoot(t),n?this.resolutionCache.removeResolutionsOfFile(t.path):this.resolutionCache.invalidateResolutionOfFile(t.path),this.cachedUnresolvedImportsPerFile.delete(t.path),i&&t.detachFromProject(this),this.markAsDirty()}registerFileUpdate(t){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(t)}markFileAsDirty(t){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(t)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var t;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(t=this.autoImportProviderHost)==null||t.markAsDirty()}onPackageJsonChange(t){var n;(n=this.packageJsonsForAutoImport)!=null&&n.has(t)&&(this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty())}onFileAddedOrRemoved(t){this.hasAddedorRemovedFiles=!0,t&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateGraph(){var t,n,i,s,o;(t=Wn)==null||t.push(Wn.Phase.Session,"updateGraph",{name:this.projectName,kind:cD[this.projectKind]}),(n=Lu)==null||n.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();let c=this.updateGraphWorker(),u=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;let f=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||tl;for(let p of f)this.cachedUnresolvedImportsPerFile.delete(p);this.languageServiceEnabled&&this.projectService.serverMode===0?((c||f.length)&&(this.lastCachedUnresolvedImportsList=_Ke(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,u)):this.lastCachedUnresolvedImportsList=void 0;let g=this.projectProgramVersion===0&&c;return c&&this.projectProgramVersion++,u&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(i=this.autoImportProviderHost)==null||i.markAsDirty()),g&&this.getPackageJsonAutoImportProvider(),(s=Lu)==null||s.logStopUpdateGraph(),(o=Wn)==null||o.pop(),!c}updateTypingFiles(t){HI(t,this.typingFiles,D4(!this.useCaseSensitiveFileNames()),Fa,n=>this.detachScriptInfoFromProject(n))&&(this.typingFiles=t,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&d_(this.typingWatchers,fd),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:W9})}watchTypingLocations(t){if(!t){this.typingWatchers.isInvoked=!1;return}if(!t.length){this.closeWatchingTypingLocations();return}let n=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;let i=(s,o)=>{let c=this.toPath(s);n.delete(c),this.typingWatchers.has(c)||this.typingWatchers.set(c,o==="FileWatcher"?this.projectService.watchFactory.watchFile(s,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),dl.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(s,u=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!nc(u,".json"))return this.writeLog("Ignoring files that are not *.json");if(t1(u,Qr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),dl.TypingInstallerLocationDirectory,this))};for(let s of t){let o=Mc(s);if(o==="package.json"||o==="bower.json"){i(s,"FileWatcher");continue}if(Cm(this.currentDirectory,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){let c=s.indexOf(Oo,this.currentDirectory.length+1);i(c!==-1?s.substr(0,c):s,"DirectoryWatcher");continue}if(Cm(this.projectService.typingsInstaller.globalTypingsCacheLocation,s,this.currentDirectory,!this.useCaseSensitiveFileNames())){i(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}i(s,"DirectoryWatcher")}n.forEach((s,o)=>{s.close(),this.typingWatchers.delete(o)})}getCurrentProgram(){return this.program}removeExistingTypings(t){let n=FO(this.getCompilerOptions(),this.directoryStructureHost);return t.filter(i=>!n.includes(i))}updateGraphWorker(){var t,n;let i=this.languageService.getCurrentProgram();E.assert(i===this.program),E.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);let s=So(),{hasInvalidatedResolutions:o,hasInvalidatedLibResolutions:c}=this.resolutionCache.createHasInvalidatedResolutions(ld,ld);this.hasInvalidatedResolutions=o,this.hasInvalidatedLibResolutions=c,this.resolutionCache.startCachingPerDirectoryResolution(),this.program=this.languageService.getProgram(),this.dirty=!1,(t=Wn)==null||t.push(Wn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,i),(n=Wn)==null||n.pop(),E.assert(i===void 0||this.program!==void 0);let u=!1;if(this.program&&(!i||this.program!==i&&this.program.structureIsReused!==2)){if(u=!0,i){for(let p of i.getSourceFiles()){let y=this.program.getSourceFileByPath(p.resolvedPath);(!y||p.resolvedPath===p.path&&y.resolvedPath!==p.path)&&this.detachScriptInfoFromProject(p.fileName,!!this.program.getSourceFileByPath(p.path),!0)}i.forEachResolvedProjectReference(p=>{this.program.getResolvedProjectReferenceByPath(p.sourceFile.path)||this.detachScriptInfoFromProject(p.sourceFile.fileName,void 0,!0)})}if(qU(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),p=>this.addMissingFileWatcher(p)),this.generatedFilesMap){let p=lo(this.compilerOptions);vpe(this.generatedFilesMap)?(!p||!this.isValidGeneratedFileWatcher(zu(p)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():p?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((y,S)=>{let x=this.program.getSourceFileByPath(S);(!x||x.resolvedPath!==S||!this.isValidGeneratedFileWatcher(D5(x.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),y))&&(Cf(y),this.generatedFilesMap.delete(S))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||i&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&i&&this.program&&pg(this.changedFilesForExportMapCache,p=>{let y=i.getSourceFileByPath(p),S=this.program.getSourceFileByPath(p);return!y||!S?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(y,S,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());let f=this.externalFiles||tl;this.externalFiles=this.getExternalFiles(),HI(this.externalFiles,f,D4(!this.useCaseSensitiveFileNames()),p=>{let y=this.projectService.getOrCreateScriptInfoNotOpenedByClient(p,this.currentDirectory,this.directoryStructureHost);y?.attachToProject(this)},p=>this.detachScriptInfoFromProject(p));let g=So()-s;return this.sendPerformanceEvent("UpdateGraph",g),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${u}${this.program?` structureIsReused:: ${n7[this.program.structureIsReused]}`:""} Elapsed: ${g}ms`),this.projectService.logger.isTestLogger?this.program!==i?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==i&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),u}sendPerformanceEvent(t,n){this.projectService.sendPerformanceEvent(t,n)}detachScriptInfoFromProject(t,n,i){let s=this.projectService.getScriptInfo(t);s&&(s.detachFromProject(this),n||this.resolutionCache.removeResolutionsOfFile(s.path,i))}addMissingFileWatcher(t){var n;if(j1(this)){let s=this.projectService.configFileExistenceInfoCache.get(t);if((n=s?.config)!=null&&n.projects.has(this.canonicalConfigFilePath))return e6}let i=this.projectService.watchFactory.watchFile(t,(s,o)=>{j1(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(s,t,o),o===0&&this.missingFilesMap.has(t)&&(this.missingFilesMap.delete(t),i.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),dl.MissingFile,this);return i}isWatchedMissingFile(t){return!!this.missingFilesMap&&this.missingFilesMap.has(t)}addGeneratedFileWatch(t,n){if(lo(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(t));else{let i=this.toPath(n);if(this.generatedFilesMap){if(vpe(this.generatedFilesMap)){E.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(i))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(i,this.createGeneratedFileWatcher(t))}}createGeneratedFileWatcher(t){return{generatedFilePath:this.toPath(t),watcher:this.projectService.watchFactory.watchFile(t,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),dl.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(t,n){return this.toPath(t)===n.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(vpe(this.generatedFilesMap)?Cf(this.generatedFilesMap):d_(this.generatedFilesMap,Cf),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(t){let n=this.projectService.getScriptInfoForPath(this.toPath(t));return n&&!n.isAttached(this)?f0.ThrowProjectDoesNotContainDocument(t,this):n}getScriptInfo(t){return this.projectService.getScriptInfo(t)}filesToString(t){return this.filesToStringWorker(t,!0,!1)}filesToStringWorker(t,n,i){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending -`;if(!this.program)return` Files (0) NoProgram -`;let s=this.program.getSourceFiles(),o=` Files (${s.length}) -`;if(t){for(let c of s)o+=` ${c.fileName}${i?` ${c.version} ${JSON.stringify(c.text)}`:""} -`;n&&(o+=` - -`,Cq(this.program,c=>o+=` ${c} -`))}return o}print(t,n,i){this.writeLog(`Project '${this.projectName}' (${cD[this.projectKind]})`),this.writeLog(this.filesToStringWorker(t&&this.projectService.logger.hasLevel(3),n&&this.projectService.logger.hasLevel(3),i&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1)}setCompilerOptions(t){var n;if(t){t.allowNonTsExtensions=!0;let i=this.compilerOptions;this.compilerOptions=t,this.setInternalCompilerOptionsForEmittingJsFiles(),(n=this.noDtsResolutionProject)==null||n.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),J7(i,t)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(t){this.watchOptions=t}getWatchOptions(){return this.watchOptions}setTypeAcquisition(t){t&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(t))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(t,n){var i,s;let o=n?f=>hs(f.entries(),([g,p])=>({fileName:g,isSourceOfProjectReferenceRedirect:p})):f=>hs(f.keys());this.isInitialLoadPending()||Af(this);let c={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:E6(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},u=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&t===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!u)return{info:c,projectErrors:this.getGlobalProjectErrors()};let f=this.lastReportedFileNames,g=((i=this.externalFiles)==null?void 0:i.map(w=>({fileName:Uo(w),isSourceOfProjectReferenceRedirect:!1})))||tl,p=jh(this.getFileNamesWithRedirectInfo(!!n).concat(g),w=>w.fileName,w=>w.isSourceOfProjectReferenceRedirect),y=new Map,S=new Map,x=u?hs(u.keys()):[],C=[];return $l(p,(w,D)=>{f.has(D)?n&&w!==f.get(D)&&C.push({fileName:D,isSourceOfProjectReferenceRedirect:w}):y.set(D,w)}),$l(f,(w,D)=>{p.has(D)||S.set(D,w)}),this.lastReportedFileNames=p,this.lastReportedVersion=this.projectProgramVersion,{info:c,changes:{added:o(y),removed:o(S),updated:n?x.map(w=>({fileName:w,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(w)})):x,updatedRedirects:n?C:void 0},projectErrors:this.getGlobalProjectErrors()}}else{let f=this.getFileNamesWithRedirectInfo(!!n),g=((s=this.externalFiles)==null?void 0:s.map(y=>({fileName:Uo(y),isSourceOfProjectReferenceRedirect:!1})))||tl,p=f.concat(g);return this.lastReportedFileNames=jh(p,y=>y.fileName,y=>y.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:c,files:n?p:p.map(y=>y.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(t){aP(this.rootFiles,t),this.rootFilesMap.delete(t.path)}isSourceOfProjectReferenceRedirect(t){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(t)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,Qr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(t){if(!this.projectService.globalPlugins.length)return;let n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();for(let s of this.projectService.globalPlugins)s&&(t.plugins&&t.plugins.some(o=>o.name===s)||(this.projectService.logger.info(`Loading global plugin ${s}`),this.enablePlugin({name:s,global:!0},i)))}enablePlugin(t,n){this.projectService.requestEnablePlugin(this,t,n)}enableProxy(t,n){try{if(typeof t!="function"){this.projectService.logger.info(`Skipped loading plugin ${n.name} because it did not expose a proper factory function`);return}let i={config:n,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},s=t({typescript:cPe}),o=s.create(i);for(let c of Object.keys(this.languageService))c in o||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${c} in created LS. Patching.`),o[c]=this.languageService[c]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=o,this.plugins.push({name:n.name,module:s})}catch(i){this.projectService.logger.info(`Plugin activation failed: ${i}`)}}onPluginConfigurationChanged(t,n){this.plugins.filter(i=>i.name===t).forEach(i=>{i.module.onConfigurationChanged&&i.module.onConfigurationChanged(n)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(t,n){return this.projectService.serverMode!==0?tl:this.projectService.getPackageJsonsVisibleToFile(t,n)}getNearestAncestorDirectoryWithPackageJson(t){return this.projectService.getNearestAncestorDirectoryWithPackageJson(t)}getPackageJsonsForAutoImport(t){let n=this.getPackageJsonsVisibleToFile(Qr(this.currentDirectory,YC),t);return this.packageJsonsForAutoImport=new Set(n.map(i=>i.fileName)),n}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=lG(this))}clearCachedExportInfoMap(){var t;(t=this.exportMapCache)==null||t.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||WA(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var t,n;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((t=this.projectService.host.realpath)==null?void 0:t.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(n=this.projectService.host.trace)==null?void 0:n.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var t,n,i;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Af(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}let s=this.includePackageJsonAutoImports();if(s){(t=Wn)==null||t.push(Wn.Phase.Session,"getPackageJsonAutoImportProvider");let o=So();if(this.autoImportProviderHost=LQ.create(s,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Af(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",So()-o),(n=Wn)==null||n.pop(),this.autoImportProviderHost.getCurrentProgram();(i=Wn)==null||i.pop()}}isDefaultProjectForOpenFiles(){return!!$l(this.projectService.openFiles,(t,n)=>this.projectService.tryGetDefaultProjectForFile(Uo(n))===this)}watchNodeModulesForPackageJsonChanges(t){return this.projectService.watchPackageJsonsInNodeModules(this.toPath(t),this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(t){return E.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new FQ(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==t&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[t]),this.noDtsResolutionProject.rootFile=t),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Ve,lib:Ve,noLib:!0}}},IQ=class extends uS{constructor(e,t,n,i,s,o,c){super(e.newInferredProjectName(),0,e,t,void 0,void 0,n,!1,i,e.host,o),this._isJsInferredProject=!1,this.typeAcquisition=c,this.projectRootPath=s&&e.toCanonicalFileName(s),!s&&!e.useSingleInferredProject&&(this.canonicalCurrentDirectory=e.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(e){e!==this._isJsInferredProject&&(this._isJsInferredProject=e,this.setCompilerOptions())}setCompilerOptions(e){if(!e&&!this.getCompilationSettings())return;let t=DH(e||this.getCompilationSettings());this._isJsInferredProject&&typeof t.maxNodeModuleJsDepth!="number"?t.maxNodeModuleJsDepth=2:this._isJsInferredProject||(t.maxNodeModuleJsDepth=void 0),t.allowJs=!0,super.setCompilerOptions(t)}addRoot(e){E.assert(e.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(e),!this._isJsInferredProject&&e.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!e.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(e)}removeRoot(e){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e),super.removeRoot(e),!this.isOrphan()&&this._isJsInferredProject&&e.isJavaScript()&&hi(this.getRootScriptInfos(),t=>!t.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){Qt(this.getRootScriptInfos(),e=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(e)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:gpe(this),include:Ve,exclude:Ve}}},FQ=class extends uS{constructor(e,t,n,i){super(e.newAuxiliaryProjectName(),4,e,t,!1,void 0,n,!1,void 0,e.host,i)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},OQ=class hhe extends uS{constructor(t,n,i,s){super(t.projectService.newAutoImportProviderProjectName(),3,t.projectService,i,!1,void 0,s,!1,t.getWatchOptions(),t.projectService.host,t.currentDirectory),this.hostProject=t,this.rootFileNames=n,this.useSourceOfProjectReferenceRedirect=Js(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Js(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(t,n,i,s){var o,c;if(!t)return Ve;let u=n.getCurrentProgram();if(!u)return Ve;let f=So(),g,p,y=Qr(n.currentDirectory,YC),S=n.getPackageJsonsForAutoImport(Qr(n.currentDirectory,y));for(let D of S)(o=D.dependencies)==null||o.forEach((O,z)=>C(z)),(c=D.peerDependencies)==null||c.forEach((O,z)=>C(z));let x=0;if(g){let D=n.getSymlinkCache();for(let O of hs(g.keys())){if(t===2&&x>this.maxDependencies)return n.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Ve;let z=XW(O,n.currentDirectory,s,i,u.getModuleResolutionCache());if(z){let X=w(z,u,D);if(X){p=es(p,X),x+=X.length?1:0;continue}}if(!Qt([n.currentDirectory,n.getGlobalTypingsCacheLocation()],X=>{if(X){let J=XW(`@types/${O}`,X,s,i,u.getModuleResolutionCache());if(J){let ie=w(J,u,D);return p=es(p,ie),x+=ie?.length?1:0,!0}}})&&z&&s.allowJs&&s.maxNodeModuleJsDepth){let X=w(z,u,D,!0);p=es(p,X),x+=X?.length?1:0}}}return p?.length&&n.log(`AutoImportProviderProject: found ${p.length} root files in ${x} dependencies in ${So()-f} ms`),p||Ve;function C(D){ts(D,"@types/")||(g||(g=new Set)).add(D)}function w(D,O,z,V){var X;let J=eU(D,s,i,O.getModuleResolutionCache(),V);if(J){let ie=(X=i.realpath)==null?void 0:X.call(i,D.packageDirectory),B=ie?n.toPath(ie):void 0,Z=B&&B!==n.toPath(D.packageDirectory);return Z&&z.setSymlinkedDirectory(D.packageDirectory,{real:wl(ie),realPath:wl(B)}),Ri(J,ae=>{let _e=Z?ae.replace(D.packageDirectory,ie):ae;if(!O.getSourceFile(_e)&&!(Z&&O.getSourceFile(ae)))return _e})}}}static create(t,n,i,s){if(t===0)return;let o={...n.getCompilerOptions(),...this.compilerOptionsOverrides},c=this.getRootFileNames(t,n,i,o);if(c.length)return new hhe(n,c,s,o)}isEmpty(){return!ft(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let t=this.rootFileNames;t||(t=hhe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,t),this.rootFileNames=t;let n=this.getCurrentProgram(),i=super.updateGraph();return n&&n!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),i}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var t;return!!((t=this.rootFileNames)!=null&&t.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||Ve}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var t;return(t=this.hostProject.getCurrentProgram())==null?void 0:t.getModuleResolutionCache()}},OQ.maxDependencies=10,OQ.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Ve,lib:Ve,noLib:!0},LQ=OQ,MQ=class extends uS{constructor(e,t,n,i,s){super(e,1,n,i,!1,void 0,{},!1,void 0,s,Xr(e)),this.canonicalConfigFilePath=t,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=Yg,this.sendLoadingProjectFinish=!1}setCompilerHost(e){this.compilerHost=e}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(e){let t=Ys(e),n=this.projectService.toCanonicalFileName(t),i=this.projectService.configFileExistenceInfoCache.get(n);return i||this.projectService.configFileExistenceInfoCache.set(n,i={exists:this.projectService.host.fileExists(t)}),this.projectService.ensureParsedConfigUptoDate(t,n,i,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(t,i,this),i.exists?i.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(e){this.releaseParsedConfig(this.projectService.toCanonicalFileName(Ys(e)))}releaseParsedConfig(e){this.projectService.stopWatchingWildCards(e,this),this.projectService.releaseParsedConfig(e,this)}updateGraph(){let e=this.isInitialLoadPending();this.isInitialLoadPending=ld;let t=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let n;switch(t){case 1:this.openFileWatchTriggered.clear(),n=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();let i=E.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,i,e,!1),n=!0;break;default:n=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),n}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(e){this.projectReferences=e,this.potentialProjectReferences=void 0}setPotentialProjectReference(e){E.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(e)}getResolvedProjectReferenceToRedirect(e){let t=this.getCurrentProgram();return t&&t.getResolvedProjectReferenceToRedirect(e)}forEachResolvedProjectReference(e){var t;return(t=this.getCurrentProgram())==null?void 0:t.forEachResolvedProjectReference(e)}enablePluginsWithOptions(e){var t;if(this.plugins.length=0,!((t=e.plugins)!=null&&t.length)&&!this.projectService.globalPlugins.length)return;let n=this.projectService.host;if(!n.require&&!n.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}let i=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){let s=Xr(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${s} to search paths`),i.unshift(s)}if(e.plugins)for(let s of e.plugins)this.enablePlugin(s,i);return this.enableGlobalPlugins(e)}getGlobalProjectErrors(){return Fr(this.projectErrors,e=>!e.file)||tl}getAllProjectErrors(){return this.projectErrors||tl}setProjectErrors(e){this.projectErrors=e}close(){this.projectService.configFileExistenceInfoCache.forEach((e,t)=>this.releaseParsedConfig(t)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(e){return P6(this,e.path,t=>ET(t,e)?t:void 0,0)}hasOpenRef(){var e;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;let t=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((e=t.openFilesImpactedByConfigFile)!=null&&e.size):!!t.openFilesImpactedByConfigFile&&$l(t.openFilesImpactedByConfigFile,(n,i)=>{let s=this.projectService.getScriptInfoForPath(i);return this.containsScriptInfo(s)||!!P6(this,s.path,o=>o.containsScriptInfo(s),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return m3(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(e){xO(e,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},VM=class extends uS{constructor(e,t,n,i,s,o,c,u){super(e,2,t,n,!0,s,i,o,u,t.host,Xr(c||Su(e))),this.externalProjectName=e,this.compileOnSaveEnabled=o,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){let e=super.updateGraph();return this.projectService.sendProjectTelemetry(this),e}getExcludedFiles(){return this.excludedFiles}}}});function VDe(e){let t=new Map;for(let n of e)if(typeof n.type=="object"){let i=n.type;i.forEach(s=>{E.assert(typeof s=="number")}),t.set(n.name,i)}return t}function D6(e){return os(e.indentStyle)&&(e.indentStyle=XDe.get(e.indentStyle.toLowerCase()),E.assert(e.indentStyle!==void 0)),e}function WM(e){return GDe.forEach((t,n)=>{let i=e[n];os(i)&&(e[n]=t.get(i.toLowerCase()))}),e}function LN(e,t){let n,i;return JC.forEach(s=>{let o=e[s.name];if(o===void 0)return;let c=$De.get(s.name);(n||(n={}))[s.name]=c?os(o)?c.get(o.toLowerCase()):o:$2(s,o,t||"",i||(i=[]))}),n&&{watchOptions:n,errors:i}}function bpe(e){let t;return U8.forEach(n=>{let i=e[n.name];i!==void 0&&((t||(t={}))[n.name]=i)}),t}function RQ(e){return os(e)?jQ(e):e}function jQ(e){switch(e){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function Spe(e){let{lazyConfiguredProjectsFromExternalProject:t,...n}=e;return n}function WDe(e,t){for(let n of t)if(n.getProjectName()===e)return n}function UM(e){return!!e.containingProjects}function dKe(e){return!!e.configFileInfo}function P6(e,t,n,i,s){var o;let c=(o=e.getCurrentProgram())==null?void 0:o.getResolvedProjectReferences();if(!c)return;let u,f=t?e.getResolvedProjectReferenceToRedirect(t):void 0;if(f){let p=Uo(f.sourceFile.fileName),y=e.projectService.findConfiguredProjectByProjectName(p);if(y){let S=n(y);if(S)return S}else if(i!==0){u=new Map;let S=xpe(c,e.getCompilerOptions(),(x,C)=>f===x?g(x,C):void 0,i,e.projectService,u);if(S)return S;u.clear()}}return xpe(c,e.getCompilerOptions(),(p,y)=>f!==p?g(p,y):void 0,i,e.projectService,u);function g(p,y){let S=Uo(p.sourceFile.fileName),x=e.projectService.findConfiguredProjectByProjectName(S)||(y===0?void 0:y===1?e.projectService.createConfiguredProject(S):y===2?e.projectService.createAndLoadConfiguredProject(S,s):E.assertNever(y));return x&&n(x)}}function xpe(e,t,n,i,s,o){let c=t.disableReferencedProjectLoad?0:i;return Qt(e,u=>{if(!u)return;let f=Uo(u.sourceFile.fileName),g=s.toCanonicalFileName(f),p=o?.get(g);if(p!==void 0&&p>=c)return;let y=n(u,c);return y||((o||(o=new Map)).set(g,c),u.references&&xpe(u.references,u.commandLine.options,n,c,s,o))})}function UDe(e,t){return e.potentialProjectReferences&&pg(e.potentialProjectReferences,t)}function mKe(e,t,n,i){return e.getCurrentProgram()?e.forEachResolvedProjectReference(t):e.isInitialLoadPending()?UDe(e,i):Qt(e.getProjectReferences(),n)}function Tpe(e,t,n){let i=n&&e.projectService.configuredProjects.get(n);return i&&t(i)}function qDe(e,t){return mKe(e,n=>Tpe(e,t,n.sourceFile.path),n=>Tpe(e,t,e.toPath(QC(n))),n=>Tpe(e,t,n))}function gKe(e,t){return`${os(t)?`Config: ${t} `:t?`Project: ${t.getProjectName()} `:""}WatchType: ${e}`}function HDe(e){return!e.isScriptOpen()&&e.mTime!==void 0}function ET(e,t){return e.containsScriptInfo(t)&&!e.isSourceOfProjectReferenceRedirect(t.path)}function Af(e){return e.invalidateResolutionsOfFailedLookupLocations(),e.dirty&&e.updateGraph()}function kpe(e){j1(e)&&(e.projectOptions=!0)}function Cpe(e){let t=1;return()=>e(t++)}function Epe(){return{idToCallbacks:new Map,pathToId:new Map}}function hKe(e,t){if(!t||!e.eventHandler||!e.session)return;let n=Epe(),i=Epe(),s=Epe(),o=1;return e.session.addProtocolHandler("watchChange",S=>(g(S.arguments),{responseRequired:!1})),{watchFile:c,watchDirectory:u,getCurrentDirectory:()=>e.host.getCurrentDirectory(),useCaseSensitiveFileNames:e.host.useCaseSensitiveFileNames};function c(S,x){return f(n,S,x,C=>({eventName:KM,data:{id:C,path:S}}))}function u(S,x,C){return f(C?s:i,S,x,w=>({eventName:eR,data:{id:w,path:S,recursive:!!C}}))}function f({pathToId:S,idToCallbacks:x},C,w,D){let O=e.toPath(C),z=S.get(O);z||S.set(O,z=o++);let V=x.get(z);return V||(x.set(z,V=new Set),e.eventHandler(D(z))),V.add(w),{close(){let X=x.get(z);X?.delete(w)&&(X.size||(x.delete(z),S.delete(O),e.eventHandler({eventName:tR,data:{id:z}})))}}}function g({id:S,path:x,eventType:C}){p(S,x,C),y(i,S,x,C),y(s,S,x,C)}function p(S,x,C){var w;(w=n.idToCallbacks.get(S))==null||w.forEach(D=>{D(x,C==="create"?0:C==="delete"?2:1)})}function y({idToCallbacks:S},x,C,w){var D;w!=="update"&&((D=S.get(x))==null||D.forEach(O=>{O(C)}))}}function yKe(){let e;return{get(){return e},set(t){e=t},clear(){e=void 0}}}function Dpe(e){return e.kind!==void 0}function Ppe(e){e.print(!1,!1,!1)}var qM,HM,MN,GM,$M,XM,QM,YM,ZM,BQ,KM,eR,tR,wpe,GDe,$De,XDe,JQ,nR,rR,zQ,VQ,Ape,WQ,vKe=ze({"src/server/editorServices.ts"(){"use strict";B1(),wT(),dpe(),qM=20*1024*1024,HM=4*1024*1024,MN="projectsUpdatedInBackground",GM="projectLoadingStart",$M="projectLoadingFinish",XM="largeFileReferenced",QM="configFileDiag",YM="projectLanguageServiceState",ZM="projectInfo",BQ="openFileInfo",KM="createFileWatcher",eR="createDirectoryWatcher",tR="closeFileWatcher",wpe="*ensureProjectForOpenFiles*",GDe=VDe(Cg),$De=VDe(JC),XDe=new Map(Object.entries({none:0,block:1,smart:2})),JQ={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},nR={getFileName:e=>e,getScriptKind:(e,t)=>{let n;if(t){let i=O4(e);i&&ft(t,s=>s.extension===i?(n=s.scriptKind,!0):!1)}return n},hasMixedContent:(e,t)=>ft(t,n=>n.isMixedContent&&nc(e,n.extension))},rR={getFileName:e=>e.fileName,getScriptKind:e=>RQ(e.scriptKind),hasMixedContent:e=>!!e.hasMixedContent},zQ={close:Fa},VQ=(e=>(e[e.Find=0]="Find",e[e.FindCreate=1]="FindCreate",e[e.FindCreateLoad=2]="FindCreateLoad",e))(VQ||{}),Ape=class yhe{constructor(t){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=Cpe(Yfe),this.newAutoImportProviderProjectName=Cpe(Zfe),this.newAuxiliaryProjectName=Cpe(Kfe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=JQ,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.verifyDocumentRegistry=Fa,this.verifyProgram=Fa,this.onProjectCreation=Fa;var n;this.host=t.host,this.logger=t.logger,this.cancellationToken=t.cancellationToken,this.useSingleInferredProject=t.useSingleInferredProject,this.useInferredProjectPerProjectRoot=t.useInferredProjectPerProjectRoot,this.typingsInstaller=t.typingsInstaller||zM,this.throttleWaitMilliseconds=t.throttleWaitMilliseconds,this.eventHandler=t.eventHandler,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.globalPlugins=t.globalPlugins||tl,this.pluginProbeLocations=t.pluginProbeLocations||tl,this.allowLocalPluginLoads=!!t.allowLocalPluginLoads,this.typesMapLocation=t.typesMapLocation===void 0?Qr(Xr(this.getExecutingFilePath()),"typesMap.json"):t.typesMapLocation,this.session=t.session,this.jsDocParsingMode=t.jsDocParsingMode,t.serverMode!==void 0?this.serverMode=t.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=mf()),this.currentDirectory=Uo(this.host.getCurrentDirectory()),this.toCanonicalFileName=cu(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?wl(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new CQ(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new AQ(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:q9(this.host.newLine),preferences:Hf,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=gG(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);let i=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,s=i!==0?o=>this.logger.info(o):Fa;this.packageJsonCache=Ipe(this),this.watchFactory=this.serverMode!==0?{watchFile:t6,watchDirectory:t6}:HU(hKe(this,t.canUseWatchEvents)||this.host,i,s,gKe),(n=t.incrementalVerifier)==null||n.call(t,this)}toPath(t){return xo(t,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(t){return cs(t,this.host.getCurrentDirectory())}setDocument(t,n,i){let s=E.checkDefined(this.getScriptInfoForPath(n));s.cacheSourceFile={key:t,sourceFile:i}}getDocument(t,n){let i=this.getScriptInfoForPath(n);return i&&i.cacheSourceFile&&i.cacheSourceFile.key===t?i.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(t,n){if(!this.eventHandler)return;let i={eventName:YM,data:{project:t,languageServiceEnabled:n}};this.eventHandler(i)}loadTypesMap(){try{let t=this.host.readFile(this.typesMapLocation);if(t===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}let n=JSON.parse(t);for(let i of Object.keys(n.typesMap))n.typesMap[i].match=new RegExp(n.typesMap[i].match,"i");this.safelist=n.typesMap;for(let i in n.simpleMap)so(n.simpleMap,i)&&this.legacySafelist.set(i,n.simpleMap[i].toLowerCase())}catch(t){this.logger.info(`Error loading types map: ${t}`),this.safelist=JQ,this.legacySafelist.clear()}}updateTypingsForProject(t){let n=this.findProject(t.projectName);if(n)switch(t.kind){case V9:n.updateTypingFiles(this.typingsCache.updateTypingsForProject(t.projectName,t.compilerOptions,t.typeAcquisition,t.unresolvedImports,t.typings));return;case W9:this.typingsCache.enqueueInstallTypingsForProject(n,n.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(t){var n;(n=this.findProject(t.projectName))==null||n.watchTypingLocations(t.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(wpe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(t){if(t.markAsDirty(),ON(t))return;let n=t.getProjectName();this.pendingProjectUpdates.set(n,t),this.throttledOperations.schedule(n,250,()=>{this.pendingProjectUpdates.delete(n)&&Af(t)})}hasPendingProjectUpdate(t){return this.pendingProjectUpdates.has(t.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;let t={eventName:MN,data:{openFiles:hs(this.openFiles.keys(),n=>this.getScriptInfoForPath(n).fileName)}};this.eventHandler(t)}sendLargeFileReferencedEvent(t,n){if(!this.eventHandler)return;let i={eventName:XM,data:{file:t,fileSize:n,maxFileSize:HM}};this.eventHandler(i)}sendProjectLoadingStartEvent(t,n){if(!this.eventHandler)return;t.sendLoadingProjectFinish=!0;let i={eventName:GM,data:{project:t,reason:n}};this.eventHandler(i)}sendProjectLoadingFinishEvent(t){if(!this.eventHandler||!t.sendLoadingProjectFinish)return;t.sendLoadingProjectFinish=!1;let n={eventName:$M,data:{project:t}};this.eventHandler(n)}sendPerformanceEvent(t,n){this.performanceEventHandler&&this.performanceEventHandler({kind:t,durationMs:n})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(t){this.delayUpdateProjectGraph(t),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(t,n){if(t.length){for(let i of t)n&&i.clearSourceMapperCache(),this.delayUpdateProjectGraph(i);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(t,n){E.assert(n===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");let i=WM(t),s=LN(t,n),o=bpe(t);i.allowNonTsExtensions=!0;let c=n&&this.toCanonicalFileName(n);c?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(c,i),this.watchOptionsForInferredProjectsPerProjectRoot.set(c,s||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(c,o)):(this.compilerOptionsForInferredProjects=i,this.watchOptionsForInferredProjects=s,this.typeAcquisitionForInferredProjects=o);for(let u of this.inferredProjects)(c?u.projectRootPath===c:!u.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(u.projectRootPath))&&(u.setCompilerOptions(i),u.setTypeAcquisition(o),u.setWatchOptions(s?.watchOptions),u.setProjectErrors(s?.errors),u.compileOnSaveEnabled=i.compileOnSave,u.markAsDirty(),this.delayUpdateProjectGraph(u));this.delayEnsureProjectForOpenFiles()}findProject(t){if(t!==void 0)return Qfe(t)?WDe(t,this.inferredProjects):this.findExternalProjectByProjectName(t)||this.findConfiguredProjectByProjectName(Uo(t))}forEachProject(t){this.externalProjects.forEach(t),this.configuredProjects.forEach(t),this.inferredProjects.forEach(t)}forEachEnabledProject(t){this.forEachProject(n=>{!n.isOrphan()&&n.languageServiceEnabled&&t(n)})}getDefaultProjectForFile(t,n){return n?this.ensureDefaultProjectForFile(t):this.tryGetDefaultProjectForFile(t)}tryGetDefaultProjectForFile(t){let n=os(t)?this.getScriptInfoForNormalizedPath(t):t;return n&&!n.isOrphan()?n.getDefaultProject():void 0}ensureDefaultProjectForFile(t){return this.tryGetDefaultProjectForFile(t)||this.doEnsureDefaultProjectForFile(t)}doEnsureDefaultProjectForFile(t){this.ensureProjectStructuresUptoDate();let n=os(t)?this.getScriptInfoForNormalizedPath(t):t;return n?n.getDefaultProject():(this.logErrorForScriptInfoNotFound(os(t)?t:t.fileName),f0.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(t){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(t)}ensureProjectStructuresUptoDate(){let t=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();let n=i=>{t=Af(i)||t};this.externalProjects.forEach(n),this.configuredProjects.forEach(n),this.inferredProjects.forEach(n),t&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(t){let n=this.getScriptInfoForNormalizedPath(t);return n&&n.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(t){let n=this.getScriptInfoForNormalizedPath(t);return{...this.hostConfiguration.preferences,...n&&n.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(t,n){n===2?this.handleDeletedFile(t):t.isScriptOpen()||(t.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(t.containingProjects,!1),this.handleSourceMapProjects(t))}handleSourceMapProjects(t){if(t.sourceMapFilePath)if(os(t.sourceMapFilePath)){let n=this.getScriptInfoForPath(t.sourceMapFilePath);this.delayUpdateSourceInfoProjects(n&&n.sourceInfos)}else this.delayUpdateSourceInfoProjects(t.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(t.sourceInfos),t.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(t.declarationInfoPath)}delayUpdateSourceInfoProjects(t){t&&t.forEach((n,i)=>this.delayUpdateProjectsOfScriptInfoPath(i))}delayUpdateProjectsOfScriptInfoPath(t){let n=this.getScriptInfoForPath(t);n&&this.delayUpdateProjectGraphs(n.containingProjects,!0)}handleDeletedFile(t){if(this.stopWatchingScriptInfo(t),!t.isScriptOpen()){this.deleteScriptInfo(t);let n=t.containingProjects.slice();if(t.detachAllProjects(),this.delayUpdateProjectGraphs(n,!1),this.handleSourceMapProjects(t),t.closeSourceMapFileWatcher(),t.declarationInfoPath){let i=this.getScriptInfoForPath(t.declarationInfoPath);i&&(i.sourceMapFilePath=void 0)}}}watchWildcardDirectory(t,n,i,s){return this.watchFactory.watchDirectory(t,o=>{let c=this.toPath(o),u=s.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(o,c);Mc(c)==="package.json"&&!WA(c)&&(u&&u.fileExists||!u&&this.host.fileExists(c))&&(this.logger.info(`Config: ${i} Detected new package.json: ${o}`),this.onAddPackageJson(c));let f=this.findConfiguredProjectByProjectName(i);lA({watchedDirPath:t,fileOrDirectory:o,fileOrDirectoryPath:c,configFileName:i,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:s.parsedCommandLine.options,program:f?.getCurrentProgram()||s.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:g=>this.logger.info(g),toPath:g=>this.toPath(g),getScriptKind:f?g=>f.getScriptKind(g):void 0})||(s.updateLevel!==2&&(s.updateLevel=1),s.projects.forEach((g,p)=>{if(!g)return;let y=this.getConfiguredProjectByCanonicalConfigFilePath(p);if(!y)return;let S=f===y?1:0;if(!(y.pendingUpdateLevel!==void 0&&y.pendingUpdateLevel>S))if(this.openFiles.has(c))if(E.checkDefined(this.getScriptInfoForPath(c)).isAttached(y)){let C=Math.max(S,y.openFileWatchTriggered.get(c)||0);y.openFileWatchTriggered.set(c,C)}else y.pendingUpdateLevel=S,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(y);else y.pendingUpdateLevel=S,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(y)}))},n,this.getWatchOptionsFromProjectWatchOptions(s.parsedCommandLine.watchOptions),dl.WildcardDirectory,i)}delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,n){let i=this.configFileExistenceInfoCache.get(t);if(!i?.config)return!1;let s=!1;return i.config.updateLevel=2,i.config.projects.forEach((o,c)=>{let u=this.getConfiguredProjectByCanonicalConfigFilePath(c);if(u)if(s=!0,c===t){if(u.isInitialLoadPending())return;u.pendingUpdateLevel=2,u.pendingUpdateReason=n,this.delayUpdateProjectGraph(u)}else u.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(t)),this.delayUpdateProjectGraph(u)}),s}onConfigFileChanged(t,n){var i;let s=this.configFileExistenceInfoCache.get(t);if(n===2){s.exists=!1;let o=(i=s.config)!=null&&i.projects.has(t)?this.getConfiguredProjectByCanonicalConfigFilePath(t):void 0;o&&this.removeProject(o)}else s.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(t,"Change in config file detected"),this.reloadConfiguredProjectForFiles(s.openFilesImpactedByConfigFile,!1,!0,n!==2?No:Yg,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(t){switch(this.logger.info("`remove Project::"),t.print(!0,!0,!1),t.close(),E.shouldAssert(1)&&this.filenameToScriptInfo.forEach(n=>E.assert(!n.isAttached(t),"Found script Info still attached to project",()=>`${t.projectName}: ScriptInfos still attached: ${JSON.stringify(hs(gk(this.filenameToScriptInfo.values(),i=>i.isAttached(t)?{fileName:i.fileName,projects:i.containingProjects.map(s=>s.projectName),hasMixedContent:i.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(t.getProjectName()),t.projectKind){case 2:o2(this.externalProjects,t),this.projectToSizeMap.delete(t.getProjectName());break;case 1:this.configuredProjects.delete(t.canonicalConfigFilePath),this.projectToSizeMap.delete(t.canonicalConfigFilePath);break;case 0:o2(this.inferredProjects,t);break}}assignOrphanScriptInfoToInferredProject(t,n){E.assert(t.isOrphan());let i=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(t.isDynamic?n||this.currentDirectory:Xr(I_(t.fileName)?t.fileName:cs(t.fileName,n?this.getNormalizedAbsolutePath(n):this.currentDirectory)));if(i.addRoot(t),t.containingProjects[0]!==i&&(t.detachFromProject(i),t.containingProjects.unshift(i)),i.updateGraph(),!this.useSingleInferredProject&&!i.projectRootPath)for(let s of this.inferredProjects){if(s===i||s.isOrphan())continue;let o=s.getRootScriptInfos();E.assert(o.length===1||!!s.projectRootPath),o.length===1&&Qt(o[0].containingProjects,c=>c!==o[0].containingProjects[0]&&!c.isOrphan())&&s.removeFile(o[0],!0,!0)}return i}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((t,n)=>{let i=this.getScriptInfoForPath(n);i.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(i,t)})}closeOpenFile(t,n){let i=t.isDynamic?!1:this.host.fileExists(t.fileName);t.close(i),this.stopWatchingConfigFilesForClosedScriptInfo(t);let s=this.toCanonicalFileName(t.fileName);this.openFilesWithNonRootedDiskPath.get(s)===t&&this.openFilesWithNonRootedDiskPath.delete(s);let o=!1;for(let c of t.containingProjects){if(j1(c)){t.hasMixedContent&&t.registerFileUpdate();let u=c.openFileWatchTriggered.get(t.path);u!==void 0&&(c.openFileWatchTriggered.delete(t.path),c.pendingUpdateLevel!==void 0&&c.pendingUpdateLevelthis.onConfigFileChanged(n,g),2e3,this.getWatchOptionsFromProjectWatchOptions((o=(s=c?.config)==null?void 0:s.parsedCommandLine)==null?void 0:o.watchOptions),dl.ConfigFile,i));let u=c.config.projects;u.set(i.canonicalConfigFilePath,u.get(i.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(t){return t.openFilesImpactedByConfigFile&&$l(t.openFilesImpactedByConfigFile,No)}releaseParsedConfig(t,n){var i,s,o;let c=this.configFileExistenceInfoCache.get(t);(i=c.config)!=null&&i.projects.delete(n.canonicalConfigFilePath)&&((s=c.config)!=null&&s.projects.size||(c.config=void 0,UU(t,this.sharedExtendedConfigFileWatchers),E.checkDefined(c.watcher),(o=c.openFilesImpactedByConfigFile)!=null&&o.size?this.configFileExistenceImpactsRootOfInferredProject(c)?w9(bl(Xr(t)))||(c.watcher.close(),c.watcher=zQ):(c.watcher.close(),c.watcher=void 0):(c.watcher.close(),this.configFileExistenceInfoCache.delete(t))))}closeConfigFileWatcherOnReleaseOfOpenFile(t){t.watcher&&!t.config&&!this.configFileExistenceImpactsRootOfInferredProject(t)&&(t.watcher.close(),t.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(t){E.assert(!t.isScriptOpen()),this.forEachConfigFileLocation(t,n=>{var i,s,o;let c=this.configFileExistenceInfoCache.get(n);if(c){let u=(i=c.openFilesImpactedByConfigFile)==null?void 0:i.get(t.path);(s=c.openFilesImpactedByConfigFile)==null||s.delete(t.path),u&&this.closeConfigFileWatcherOnReleaseOfOpenFile(c),!((o=c.openFilesImpactedByConfigFile)!=null&&o.size)&&!c.config&&(E.assert(!c.watcher),this.configFileExistenceInfoCache.delete(n))}})}startWatchingConfigFilesForInferredProjectRoot(t){E.assert(t.isScriptOpen()),this.forEachConfigFileLocation(t,(n,i)=>{let s=this.configFileExistenceInfoCache.get(n);s||(s={exists:this.host.fileExists(i)},this.configFileExistenceInfoCache.set(n,s)),(s.openFilesImpactedByConfigFile||(s.openFilesImpactedByConfigFile=new Map)).set(t.path,!0),s.watcher||(s.watcher=w9(bl(Xr(n)))?this.watchFactory.watchFile(i,(o,c)=>this.onConfigFileChanged(n,c),2e3,this.hostConfiguration.watchOptions,dl.ConfigFileForInferredRoot):zQ)})}stopWatchingConfigFilesForInferredProjectRoot(t){this.forEachConfigFileLocation(t,n=>{var i;let s=this.configFileExistenceInfoCache.get(n);(i=s?.openFilesImpactedByConfigFile)!=null&&i.has(t.path)&&(E.assert(t.isScriptOpen()),s.openFilesImpactedByConfigFile.set(t.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(s))})}forEachConfigFileLocation(t,n){if(this.serverMode!==0)return;E.assert(!UM(t)||this.openFiles.has(t.path));let i=this.openFiles.get(t.path);if(E.checkDefined(this.getScriptInfo(t.path)).isDynamic)return;let o=Xr(t.fileName),c=()=>Cm(i,o,this.currentDirectory,!this.host.useCaseSensitiveFileNames),u=!i||!c(),f=!dKe(t);do{if(f){let p=NN(o,this.currentDirectory,this.toCanonicalFileName),y=Qr(o,"tsconfig.json"),S=n(Qr(p,"tsconfig.json"),y);if(S)return y;let x=Qr(o,"jsconfig.json");if(S=n(Qr(p,"jsconfig.json"),x),S)return x;if(m7(p))break}let g=Xr(o);if(g===o)break;o=g,f=!0}while(u||c())}findDefaultConfiguredProject(t){if(!t.isScriptOpen())return;let n=this.getConfigFileNameForFile(t),i=n&&this.findConfiguredProjectByProjectName(n);return i&&ET(i,t)?i:i?.getDefaultChildProjectFromProjectWithReferences(t)}getConfigFileNameForFile(t){if(UM(t)){E.assert(t.isScriptOpen());let i=this.configFileForOpenFiles.get(t.path);if(i!==void 0)return i||void 0}this.logger.info(`Search path: ${Xr(t.fileName)}`);let n=this.forEachConfigFileLocation(t,(i,s)=>this.configFileExists(s,i,t));return n?this.logger.info(`For info: ${t.fileName} :: Config file name: ${n}`):this.logger.info(`For info: ${t.fileName} :: No config files found.`),UM(t)&&this.configFileForOpenFiles.set(t.path,n||!1),n}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(Ppe),this.configuredProjects.forEach(Ppe),this.inferredProjects.forEach(Ppe),this.logger.info("Open files: "),this.openFiles.forEach((t,n)=>{let i=this.getScriptInfoForPath(n);this.logger.info(` FileName: ${i.fileName} ProjectRootPath: ${t}`),this.logger.info(` Projects: ${i.containingProjects.map(s=>s.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(t){let n=this.toCanonicalFileName(t);return this.getConfiguredProjectByCanonicalConfigFilePath(n)}getConfiguredProjectByCanonicalConfigFilePath(t){return this.configuredProjects.get(t)}findExternalProjectByProjectName(t){return WDe(t,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(t,n,i,s){if(n&&n.disableSizeLimit||!this.host.getFileSize)return;let o=qM;this.projectToSizeMap.set(t,0),this.projectToSizeMap.forEach(u=>o-=u||0);let c=0;for(let u of i){let f=s.getFileName(u);if(!O2(f)&&(c+=this.host.getFileSize(f),c>qM||c>o)){let g=i.map(p=>s.getFileName(p)).filter(p=>!O2(p)).map(p=>({name:p,size:this.host.getFileSize(p)})).sort((p,y)=>y.size-p.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${c}). Largest files: ${g.map(p=>`${p.name}:${p.size}`).join(", ")}`),f}}this.projectToSizeMap.set(t,c)}createExternalProject(t,n,i,s,o){let c=WM(i),u=LN(i,Xr(Su(t))),f=new VM(t,this,this.documentRegistry,c,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t,c,n,rR),i.compileOnSave===void 0?!0:i.compileOnSave,void 0,u?.watchOptions);return f.setProjectErrors(u?.errors),f.excludedFiles=o,this.addFilesToNonInferredProject(f,n,rR,s),this.externalProjects.push(f),f}sendProjectTelemetry(t){if(this.seenProjects.has(t.projectName)){kpe(t);return}if(this.seenProjects.set(t.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){kpe(t);return}let n=j1(t)?t.projectOptions:void 0;kpe(t);let i={projectId:this.host.createSHA256Hash(t.projectName),fileStats:FN(t.getScriptInfos(),!0),compilerOptions:die(t.getCompilationSettings()),typeAcquisition:o(t.getTypeAcquisition()),extends:n&&n.configHasExtendsProperty,files:n&&n.configHasFilesProperty,include:n&&n.configHasIncludeProperty,exclude:n&&n.configHasExcludeProperty,compileOnSave:t.compileOnSaveEnabled,configFileName:s(),projectType:t instanceof VM?"external":"configured",languageServiceEnabled:t.languageServiceEnabled,version:ps};this.eventHandler({eventName:ZM,data:i});function s(){return j1(t)&&kQ(t.getConfigFilePath())||"other"}function o({enable:c,include:u,exclude:f}){return{enable:c,include:u!==void 0&&u.length!==0,exclude:f!==void 0&&f.length!==0}}}addFilesToNonInferredProject(t,n,i,s){this.updateNonInferredProjectFiles(t,n,i),t.setTypeAcquisition(s),t.markAsDirty()}createConfiguredProject(t){var n;(n=Wn)==null||n.instant(Wn.Phase.Session,"createConfiguredProject",{configFilePath:t}),this.logger.info(`Creating configuration project ${t}`);let i=this.toCanonicalFileName(t),s=this.configFileExistenceInfoCache.get(i);s?s.exists=!0:this.configFileExistenceInfoCache.set(i,s={exists:!0}),s.config||(s.config={cachedDirectoryStructureHost:f9(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});let o=new MQ(t,i,this,this.documentRegistry,s.config.cachedDirectoryStructureHost);return this.configuredProjects.set(i,o),this.createConfigFileWatcherForParsedConfig(t,i,o),o}createConfiguredProjectWithDelayLoad(t,n){let i=this.createConfiguredProject(t);return i.pendingUpdateLevel=2,i.pendingUpdateReason=n,i}createAndLoadConfiguredProject(t,n){let i=this.createConfiguredProject(t);return this.loadConfiguredProject(i,n),i}createLoadAndUpdateConfiguredProject(t,n){let i=this.createAndLoadConfiguredProject(t,n);return i.updateGraph(),i}loadConfiguredProject(t,n){var i,s;(i=Wn)==null||i.push(Wn.Phase.Session,"loadConfiguredProject",{configFilePath:t.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(t,n);let o=Ys(t.getConfigFilePath()),c=this.ensureParsedConfigUptoDate(o,t.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath),t),u=c.config.parsedCommandLine;E.assert(!!u.fileNames);let f=u.options;t.projectOptions||(t.projectOptions={configHasExtendsProperty:u.raw.extends!==void 0,configHasFilesProperty:u.raw.files!==void 0,configHasIncludeProperty:u.raw.include!==void 0,configHasExcludeProperty:u.raw.exclude!==void 0}),t.canConfigFileJsonReportNoInputFiles=_3(u.raw),t.setProjectErrors(u.options.configFile.parseDiagnostics),t.updateReferences(u.projectReferences);let g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.canonicalConfigFilePath,f,u.fileNames,nR);g?(t.disableLanguageService(g),this.configFileExistenceInfoCache.forEach((y,S)=>this.stopWatchingWildCards(S,t))):(t.setCompilerOptions(f),t.setWatchOptions(u.watchOptions),t.enableLanguageService(),this.watchWildcards(o,c,t)),t.enablePluginsWithOptions(f);let p=u.fileNames.concat(t.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(t,p,nR,f,u.typeAcquisition,u.compileOnSave,u.watchOptions),(s=Wn)==null||s.pop()}ensureParsedConfigUptoDate(t,n,i,s){var o,c,u;if(i.config){if(!i.config.updateLevel)return i;if(i.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(t,i.config),i}let f=((o=i.config)==null?void 0:o.cachedDirectoryStructureHost)||f9(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),g=u3(t,C=>this.host.readFile(C)),p=O8(t,os(g)?g:""),y=p.parseDiagnostics;os(g)||y.push(g);let S=j8(p,f,Xr(t),{},t,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);S.errors.length&&y.push(...S.errors),this.logger.info(`Config: ${t} : ${JSON.stringify({rootNames:S.fileNames,options:S.options,watchOptions:S.watchOptions,projectReferences:S.projectReferences},void 0," ")}`);let x=(c=i.config)==null?void 0:c.parsedCommandLine;return i.config?(i.config.parsedCommandLine=S,i.config.watchedDirectoriesStale=!0,i.config.updateLevel=void 0):i.config={parsedCommandLine:S,cachedDirectoryStructureHost:f,projects:new Map},!x&&!rF(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(S.watchOptions))&&((u=i.watcher)==null||u.close(),i.watcher=void 0),this.createConfigFileWatcherForParsedConfig(t,n,s),p9(n,S.options,this.sharedExtendedConfigFileWatchers,(C,w)=>this.watchFactory.watchFile(C,()=>{var D;d9(this.extendedConfigCache,w,z=>this.toPath(z));let O=!1;(D=this.sharedExtendedConfigFileWatchers.get(w))==null||D.projects.forEach(z=>{O=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(z,`Change in extended config file ${C} detected`)||O}),O&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,dl.ExtendedConfigFile,t),C=>this.toPath(C)),i}watchWildcards(t,{exists:n,config:i},s){if(i.projects.set(s.canonicalConfigFilePath,!0),n){if(i.watchedDirectories&&!i.watchedDirectoriesStale)return;i.watchedDirectoriesStale=!1,cA(i.watchedDirectories||(i.watchedDirectories=new Map),new Map(Object.entries(i.parsedCommandLine.wildcardDirectories)),(o,c)=>this.watchWildcardDirectory(o,c,t,i))}else{if(i.watchedDirectoriesStale=!1,!i.watchedDirectories)return;d_(i.watchedDirectories,Cf),i.watchedDirectories=void 0}}stopWatchingWildCards(t,n){let i=this.configFileExistenceInfoCache.get(t);!i.config||!i.config.projects.get(n.canonicalConfigFilePath)||(i.config.projects.set(n.canonicalConfigFilePath,!1),!$l(i.config.projects,No)&&(i.config.watchedDirectories&&(d_(i.config.watchedDirectories,Cf),i.config.watchedDirectories=void 0),i.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(t,n,i){let s=t.getRootFilesMap(),o=new Map;for(let c of n){let u=i.getFileName(c),f=Uo(u),g=IN(f),p;if(!g&&!t.fileExists(u)){p=NN(f,this.currentDirectory,this.toCanonicalFileName);let y=s.get(p);y?(y.info&&(t.removeFile(y.info,!1,!0),y.info=void 0),y.fileName=f):s.set(p,{fileName:f})}else{let y=i.getScriptKind(c,this.hostConfiguration.extraFileExtensions),S=i.hasMixedContent(c,this.hostConfiguration.extraFileExtensions),x=E.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(f,t.currentDirectory,y,S,t.directoryStructureHost));p=x.path;let C=s.get(p);!C||C.info!==x?(t.addRoot(x,f),x.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(x)):C.fileName=f}o.set(p,!0)}s.size>o.size&&s.forEach((c,u)=>{o.has(u)||(c.info?t.removeFile(c.info,t.fileExists(u),!0):s.delete(u))})}updateRootAndOptionsOfNonInferredProject(t,n,i,s,o,c,u){t.setCompilerOptions(s),t.setWatchOptions(u),c!==void 0&&(t.compileOnSaveEnabled=c),this.addFilesToNonInferredProject(t,n,i,o)}reloadFileNamesOfConfiguredProject(t){let n=this.reloadFileNamesOfParsedConfig(t.getConfigFilePath(),this.configFileExistenceInfoCache.get(t.canonicalConfigFilePath).config);return t.updateErrorOnNoInputFiles(n),this.updateNonInferredProjectFiles(t,n.concat(t.getExternalFiles(1)),nR),t.markAsDirty(),t.updateGraph()}reloadFileNamesOfParsedConfig(t,n){if(n.updateLevel===void 0)return n.parsedCommandLine.fileNames;E.assert(n.updateLevel===1);let i=n.parsedCommandLine.options.configFile.configFileSpecs,s=f3(i,Xr(t),n.parsedCommandLine.options,n.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return n.parsedCommandLine={...n.parsedCommandLine,fileNames:s},s}setFileNamesOfAutpImportProviderOrAuxillaryProject(t,n){this.updateNonInferredProjectFiles(t,n,nR)}reloadConfiguredProject(t,n,i,s){let o=t.getCachedDirectoryStructureHost();s&&this.clearSemanticCache(t),o.clearCache();let c=t.getConfigFilePath();this.logger.info(`${i?"Loading":"Reloading"} configured project ${c}`),this.loadConfiguredProject(t,n),t.updateGraph(),this.sendConfigFileDiagEvent(t,c)}clearSemanticCache(t){t.resolutionCache.clear(),t.getLanguageService(!1).cleanupSemanticCache(),t.cleanupProgram(),t.markAsDirty()}sendConfigFileDiagEvent(t,n){if(!this.eventHandler||this.suppressDiagnosticEvents)return;let i=t.getLanguageService().getCompilerOptionsDiagnostics();i.push(...t.getAllProjectErrors()),this.eventHandler({eventName:QM,data:{configFileName:t.getConfigFilePath(),diagnostics:i,triggerFile:n}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(t,n){if(!this.useInferredProjectPerProjectRoot||t.isDynamic&&n===void 0)return;if(n){let s=this.toCanonicalFileName(n);for(let o of this.inferredProjects)if(o.projectRootPath===s)return o;return this.createInferredProject(n,!1,n)}let i;for(let s of this.inferredProjects)s.projectRootPath&&Cm(s.projectRootPath,t.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(i&&i.projectRootPath.length>s.projectRootPath.length||(i=s));return i}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(t){E.assert(!this.useSingleInferredProject);let n=this.toCanonicalFileName(this.getNormalizedAbsolutePath(t));for(let i of this.inferredProjects)if(!i.projectRootPath&&i.isOrphan()&&i.canonicalCurrentDirectory===n)return i;return this.createInferredProject(t)}createInferredProject(t,n,i){let s=i&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(i)||this.compilerOptionsForInferredProjects,o,c;i&&(o=this.watchOptionsForInferredProjectsPerProjectRoot.get(i),c=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(i)),o===void 0&&(o=this.watchOptionsForInferredProjects),c===void 0&&(c=this.typeAcquisitionForInferredProjects),o=o||void 0;let u=new IQ(this,this.documentRegistry,s,o?.watchOptions,i,t,c);return u.setProjectErrors(o?.errors),n?this.inferredProjects.unshift(u):this.inferredProjects.push(u),u}getOrCreateScriptInfoNotOpenedByClient(t,n,i){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Uo(t),n,void 0,void 0,i)}getScriptInfo(t){return this.getScriptInfoForNormalizedPath(Uo(t))}getScriptInfoOrConfig(t){let n=Uo(t),i=this.getScriptInfoForNormalizedPath(n);if(i)return i;let s=this.configuredProjects.get(this.toPath(t));return s&&s.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(t){let n=hs(this.filenameToScriptInfo.entries(),([i,s])=>({path:i,fileName:s.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(t)}. -All files are: ${JSON.stringify(n)}`,"Err")}getSymlinkedProjects(t){let n;if(this.realpathToScriptInfos){let s=t.getRealpathIfDifferent();s&&Qt(this.realpathToScriptInfos.get(s),i),Qt(this.realpathToScriptInfos.get(t.path),i)}return n;function i(s){if(s!==t)for(let o of s.containingProjects)o.languageServiceEnabled&&!o.isOrphan()&&!o.getCompilerOptions().preserveSymlinks&&!t.isAttached(o)&&(n?$l(n,(c,u)=>u===s.path?!1:gs(c,o))||n.add(s.path,o):(n=mf(),n.add(s.path,o)))}}watchClosedScriptInfo(t){if(E.assert(!t.fileWatcher),!t.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!ts(t.path,this.globalCacheLocationDirectoryPath))){let n=t.path.indexOf("/node_modules/");!this.host.getModifiedTime||n===-1?t.fileWatcher=this.watchFactory.watchFile(t.fileName,(i,s)=>this.onSourceFileChanged(t,s),500,this.hostConfiguration.watchOptions,dl.ClosedScriptInfo):(t.mTime=this.getModifiedTime(t),t.fileWatcher=this.watchClosedScriptInfoInNodeModules(t.path.substr(0,n)))}}createNodeModulesWatcher(t){let n=this.watchFactory.watchDirectory(t,s=>{var o;let c=P9(this.toPath(s));if(!c)return;let u=Mc(c);if((o=i.affectedModuleSpecifierCacheProjects)!=null&&o.size&&(u==="package.json"||u==="node_modules")&&i.affectedModuleSpecifierCacheProjects.forEach(f=>{var g,p;(p=(g=this.findProject(f))==null?void 0:g.getModuleSpecifierCache())==null||p.clear()}),i.refreshScriptInfoRefCount)if(t===c)this.refreshScriptInfosInDirectory(t);else{let f=this.getScriptInfoForPath(c);f?HDe(f)&&this.refreshScriptInfo(f):fx(c)||this.refreshScriptInfosInDirectory(c)}},1,this.hostConfiguration.watchOptions,dl.NodeModules),i={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var s;!i.refreshScriptInfoRefCount&&!((s=i.affectedModuleSpecifierCacheProjects)!=null&&s.size)&&(n.close(),this.nodeModulesWatchers.delete(t))}};return this.nodeModulesWatchers.set(t,i),i}watchPackageJsonsInNodeModules(t,n){let i=this.nodeModulesWatchers.get(t)||this.createNodeModulesWatcher(t);return(i.affectedModuleSpecifierCacheProjects||(i.affectedModuleSpecifierCacheProjects=new Set)).add(n.getProjectName()),{close:()=>{var s;(s=i.affectedModuleSpecifierCacheProjects)==null||s.delete(n.getProjectName()),i.close()}}}watchClosedScriptInfoInNodeModules(t){let n=t+"/node_modules",i=this.nodeModulesWatchers.get(n)||this.createNodeModulesWatcher(n);return i.refreshScriptInfoRefCount++,{close:()=>{i.refreshScriptInfoRefCount--,i.close()}}}getModifiedTime(t){return(this.host.getModifiedTime(t.path)||cg).getTime()}refreshScriptInfo(t){let n=this.getModifiedTime(t);if(n!==t.mTime){let i=XB(t.mTime,n);t.mTime=n,this.onSourceFileChanged(t,i)}}refreshScriptInfosInDirectory(t){t=t+Oo,this.filenameToScriptInfo.forEach(n=>{HDe(n)&&ts(n.path,t)&&this.refreshScriptInfo(n)})}stopWatchingScriptInfo(t){t.fileWatcher&&(t.fileWatcher.close(),t.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(t,n,i,s,o){if(I_(t)||IN(t))return this.getOrCreateScriptInfoWorker(t,n,!1,void 0,i,s,o);let c=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t));if(c)return c}getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,n,i,s,o){return this.getOrCreateScriptInfoWorker(t,n,!0,i,s,o)}getOrCreateScriptInfoForNormalizedPath(t,n,i,s,o,c){return this.getOrCreateScriptInfoWorker(t,this.currentDirectory,n,i,s,o,c)}getOrCreateScriptInfoWorker(t,n,i,s,o,c,u){E.assert(s===void 0||i,"ScriptInfo needs to be opened by client to be able to set its user defined content");let f=NN(t,n,this.toCanonicalFileName),g=this.getScriptInfoForPath(f);if(!g){let p=IN(t);if(E.assert(I_(t)||p||i,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:hs(this.openFilesWithNonRootedDiskPath.keys())})} -Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),E.assert(!I_(t)||this.currentDirectory===n||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(t)),"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:hs(this.openFilesWithNonRootedDiskPath.keys())})} -Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),E.assert(!p||this.currentDirectory===n||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:t,currentDirectory:n,hostCurrentDirectory:this.currentDirectory,openKeys:hs(this.openFilesWithNonRootedDiskPath.keys())})} -Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!i&&!p&&!(u||this.host).fileExists(t))return;g=new wQ(this.host,t,o,!!c,f,this.filenameToScriptInfoVersion.get(f)),this.filenameToScriptInfo.set(g.path,g),this.filenameToScriptInfoVersion.delete(g.path),i?!I_(t)&&(!p||this.currentDirectory!==n)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(t),g):this.watchClosedScriptInfo(g)}return i&&(this.stopWatchingScriptInfo(g),g.open(s),c&&g.registerFileUpdate()),g}getScriptInfoForNormalizedPath(t){return!I_(t)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(t))||this.getScriptInfoForPath(NN(t,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(t){return this.filenameToScriptInfo.get(t)}getDocumentPositionMapper(t,n,i){let s=this.getOrCreateScriptInfoNotOpenedByClient(n,t.currentDirectory,this.host);if(!s){i&&t.addGeneratedFileWatch(n,i);return}if(s.getSnapshot(),os(s.sourceMapFilePath)){let p=this.getScriptInfoForPath(s.sourceMapFilePath);if(p&&(p.getSnapshot(),p.documentPositionMapper!==void 0))return p.sourceInfos=this.addSourceInfoToSourceMap(i,t,p.sourceInfos),p.documentPositionMapper?p.documentPositionMapper:void 0;s.sourceMapFilePath=void 0}else if(s.sourceMapFilePath){s.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(i,t,s.sourceMapFilePath.sourceInfos);return}else if(s.sourceMapFilePath!==void 0)return;let o,c,u=(p,y)=>{let S=this.getOrCreateScriptInfoNotOpenedByClient(p,t.currentDirectory,this.host);if(!S){c=y;return}o=S;let x=S.getSnapshot();return S.documentPositionMapper!==void 0?S.documentPositionMapper:s6(x)},f=t.projectName,g=bG({getCanonicalFileName:this.toCanonicalFileName,log:p=>this.logger.info(p),getSourceFileLike:p=>this.getSourceFileLike(p,f,s)},s.fileName,s.textStorage.getLineInfo(),u);return u=void 0,o?(s.sourceMapFilePath=o.path,o.declarationInfoPath=s.path,o.documentPositionMapper=g||!1,o.sourceInfos=this.addSourceInfoToSourceMap(i,t,o.sourceInfos)):c?s.sourceMapFilePath={watcher:this.addMissingSourceMapFile(t.currentDirectory===this.currentDirectory?c:cs(c,t.currentDirectory),s.path),sourceInfos:this.addSourceInfoToSourceMap(i,t)}:s.sourceMapFilePath=!1,g}addSourceInfoToSourceMap(t,n,i){if(t){let s=this.getOrCreateScriptInfoNotOpenedByClient(t,n.currentDirectory,n.directoryStructureHost);(i||(i=new Set)).add(s.path)}return i}addMissingSourceMapFile(t,n){return this.watchFactory.watchFile(t,()=>{let s=this.getScriptInfoForPath(n);s&&s.sourceMapFilePath&&!os(s.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(s.containingProjects,!0),this.delayUpdateSourceInfoProjects(s.sourceMapFilePath.sourceInfos),s.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,dl.MissingSourceMapFile)}getSourceFileLike(t,n,i){let s=n.projectName?n:this.findProject(n);if(s){let c=s.toPath(t),u=s.getSourceFile(c);if(u&&u.resolvedPath===c)return u}let o=this.getOrCreateScriptInfoNotOpenedByClient(t,(s||this).currentDirectory,s?s.directoryStructureHost:this.host);if(o){if(i&&os(i.sourceMapFilePath)&&o!==i){let c=this.getScriptInfoForPath(i.sourceMapFilePath);c&&(c.sourceInfos||(c.sourceInfos=new Set)).add(o.path)}return o.cacheSourceFile?o.cacheSourceFile.sourceFile:(o.sourceFileLike||(o.sourceFileLike={get text(){return E.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:c=>{let u=o.positionToLineOffset(c);return{line:u.line-1,character:u.offset-1}},getPositionOfLineAndCharacter:(c,u,f)=>o.lineOffsetToPosition(c+1,u+1,f)}),o.sourceFileLike)}}setPerformanceEventHandler(t){this.performanceEventHandler=t}setHostConfiguration(t){var n;if(t.file){let i=this.getScriptInfoForNormalizedPath(Uo(t.file));i&&(i.setOptions(D6(t.formatOptions),t.preferences),this.logger.info(`Host configuration update for file ${t.file}`))}else{if(t.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=t.hostInfo,this.logger.info(`Host information ${t.hostInfo}`)),t.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...D6(t.formatOptions)},this.logger.info("Format host information updated")),t.preferences){let{lazyConfiguredProjectsFromExternalProject:i,includePackageJsonAutoImports:s}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...t.preferences},i&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.configuredProjects.forEach(o=>{o.hasExternalProjectRef()&&o.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(o.getProjectName())&&o.updateGraph()}),s!==t.preferences.includePackageJsonAutoImports&&this.invalidateProjectPackageJson(void 0)}t.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=t.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),t.watchOptions&&(this.hostConfiguration.watchOptions=(n=LN(t.watchOptions))==null?void 0:n.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(t){return this.getWatchOptionsFromProjectWatchOptions(t.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(t){return t&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...t}:t||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(t=>{this.openFiles.has(t.path)||t.fileWatcher&&this.onSourceFileChanged(t,this.host.fileExists(t.fileName)?1:2)}),this.pendingProjectUpdates.forEach((t,n)=>{this.throttledOperations.cancel(n),this.pendingProjectUpdates.delete(n)}),this.throttledOperations.cancel(wpe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(t=>{t.config&&(t.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,Yg,"User requested reload projects"),this.externalProjects.forEach(t=>{this.clearSemanticCache(t),t.updateGraph()}),this.inferredProjects.forEach(t=>this.clearSemanticCache(t)),this.ensureProjectForOpenFiles()}reloadConfiguredProjectForFiles(t,n,i,s,o){let c=new Map,u=f=>{c.has(f.canonicalConfigFilePath)||(c.set(f.canonicalConfigFilePath,!0),this.reloadConfiguredProject(f,o,!1,n))};t?.forEach((f,g)=>{if(this.configFileForOpenFiles.delete(g),!s(f))return;let p=this.getScriptInfoForPath(g);E.assert(p.isScriptOpen());let y=this.getConfigFileNameForFile(p);if(y){let S=this.findConfiguredProjectByProjectName(y)||this.createConfiguredProject(y);c.has(S.canonicalConfigFilePath)||(c.set(S.canonicalConfigFilePath,!0),i?(S.pendingUpdateLevel=2,S.pendingUpdateReason=o,n&&this.clearSemanticCache(S),this.delayUpdateProjectGraph(S)):(this.reloadConfiguredProject(S,o,!1,n),ET(S,p)||P6(S,p.path,C=>(u(C),ET(C,p)),1)&&P6(S,void 0,u,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(t){E.assert(t.containingProjects.length>0);let n=t.containingProjects[0];!n.isOrphan()&&E6(n)&&n.isRoot(t)&&Qt(t.containingProjects,i=>i!==n&&!i.isOrphan())&&n.removeFile(t,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((t,n)=>{let i=this.getScriptInfoForPath(n);i.isOrphan()?this.assignOrphanScriptInfoToInferredProject(i,t):this.removeRootOfInferredProjectIfNowPartOfOtherProject(i)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Af),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(t,n,i,s){return this.openClientFileWithNormalizedPath(Uo(t),n,i,!1,s?Uo(s):void 0)}getOriginalLocationEnsuringConfiguredProject(t,n){let i=t.isSourceOfProjectReferenceRedirect(n.fileName),s=i?n:t.getSourceMapper().tryGetSourcePosition(n);if(!s)return;let{fileName:o}=s,c=this.getScriptInfo(o);if(!c&&!this.host.fileExists(o))return;let u={fileName:Uo(o),path:this.toPath(o)},f=this.getConfigFileNameForFile(u);if(!f)return;let g=this.findConfiguredProjectByProjectName(f);if(!g){if(t.getCompilerOptions().disableReferencedProjectLoad)return i?n:c?.containingProjects.length?s:n;g=this.createAndLoadConfiguredProject(f,`Creating project for original file: ${u.fileName}${n!==s?" for location: "+n.fileName:""}`)}Af(g);let p=x=>{let C=this.getScriptInfo(o);return C&&ET(x,C)};if(g.isSolution()||!p(g)){if(g=P6(g,o,x=>(Af(x),p(x)?x:void 0),2,`Creating project referenced in solution ${g.projectName} to find possible configured project for original file: ${u.fileName}${n!==s?" for location: "+n.fileName:""}`),!g)return;if(g===t)return s}S(g);let y=this.getScriptInfo(o);if(!y||!y.containingProjects.length)return;return y.containingProjects.forEach(x=>{j1(x)&&S(x)}),s;function S(x){t.originalConfiguredProjects||(t.originalConfiguredProjects=new Set),t.originalConfiguredProjects.add(x.canonicalConfigFilePath)}}fileExists(t){return!!this.getScriptInfoForNormalizedPath(t)||this.host.fileExists(t)}findExternalProjectContainingOpenScriptInfo(t){return xr(this.externalProjects,n=>(Af(n),n.containsScriptInfo(t)))}getOrCreateOpenScriptInfo(t,n,i,s,o){let c=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(t,o?this.getNormalizedAbsolutePath(o):this.currentDirectory,n,i,s);return this.openFiles.set(c.path,o),c}assignProjectToOpenedScriptInfo(t){let n,i,s=this.findExternalProjectContainingOpenScriptInfo(t),o,c,u=!1;return!s&&this.serverMode===0&&(n=this.getConfigFileNameForFile(t),n&&(s=this.findConfiguredProjectByProjectName(n),s?Af(s):(s=this.createLoadAndUpdateConfiguredProject(n,`Creating possible configured project for ${t.fileName} to open`),u=!0),c=s.containsScriptInfo(t)?s:void 0,o=s,ET(s,t)||P6(s,t.path,f=>{if(Af(f),ss(o)?o.push(f):o=[s,f],ET(f,t))return c=f,f;!c&&f.containsScriptInfo(t)&&(c=f)},2,`Creating project referenced in solution ${s.projectName} to find possible configured project for ${t.fileName} to open`),c?(n=c.getConfigFilePath(),(c!==s||u)&&(i=c.getAllProjectErrors(),this.sendConfigFileDiagEvent(c,t.fileName))):n=void 0,this.createAncestorProjects(t,s))),t.containingProjects.forEach(Af),t.isOrphan()&&(ss(o)?o.forEach(f=>this.sendConfigFileDiagEvent(f,t.fileName)):o&&this.sendConfigFileDiagEvent(o,t.fileName),E.assert(this.openFiles.has(t.path)),this.assignOrphanScriptInfoToInferredProject(t,this.openFiles.get(t.path))),E.assert(!t.isOrphan()),{configFileName:n,configFileErrors:i,retainProjects:o}}createAncestorProjects(t,n){if(t.isAttached(n))for(;;){if(!n.isInitialLoadPending()&&(!n.getCompilerOptions().composite||n.getCompilerOptions().disableSolutionSearching))return;let i=this.getConfigFileNameForFile({fileName:n.getConfigFilePath(),path:t.path,configFileInfo:!0});if(!i)return;let s=this.findConfiguredProjectByProjectName(i)||this.createConfiguredProjectWithDelayLoad(i,`Creating project possibly referencing default composite project ${n.getProjectName()} of open file ${t.fileName}`);s.isInitialLoadPending()&&s.setPotentialProjectReference(n.canonicalConfigFilePath),n=s}}loadAncestorProjectTree(t){t=t||YZ(this.configuredProjects,(i,s)=>s.isInitialLoadPending()?void 0:[i,!0]);let n=new Set;for(let i of hs(this.configuredProjects.values()))UDe(i,s=>t.has(s))&&Af(i),this.ensureProjectChildren(i,t,n)}ensureProjectChildren(t,n,i){var s;if(!Yy(i,t.canonicalConfigFilePath)||t.getCompilerOptions().disableReferencedProjectLoad)return;let o=(s=t.getCurrentProgram())==null?void 0:s.getResolvedProjectReferences();if(o)for(let c of o){if(!c)continue;let u=rq(c.references,p=>n.has(p.sourceFile.path)?p:void 0);if(!u)continue;let f=Uo(c.sourceFile.fileName),g=t.projectService.findConfiguredProjectByProjectName(f)||t.projectService.createAndLoadConfiguredProject(f,`Creating project referenced by : ${t.projectName} as it references project ${u.sourceFile.fileName}`);Af(g),this.ensureProjectChildren(g,n,i)}}cleanupAfterOpeningFile(t){this.removeOrphanConfiguredProjects(t);for(let n of this.inferredProjects.slice())n.isOrphan()&&this.removeProject(n);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(t,n,i,s,o){let c=this.getOrCreateOpenScriptInfo(t,n,i,s,o),{retainProjects:u,...f}=this.assignProjectToOpenedScriptInfo(c);return this.cleanupAfterOpeningFile(u),this.telemetryOnOpenFile(c),this.printProjects(),f}removeOrphanConfiguredProjects(t){let n=new Map(this.configuredProjects),i=c=>{!c.isOrphan()&&c.originalConfiguredProjects&&c.originalConfiguredProjects.forEach((u,f)=>{let g=this.getConfiguredProjectByCanonicalConfigFilePath(f);return g&&o(g)})};t&&(ss(t)?t.forEach(o):o(t)),this.inferredProjects.forEach(i),this.externalProjects.forEach(i),this.configuredProjects.forEach(c=>{c.hasOpenRef()?o(c):n.has(c.canonicalConfigFilePath)&&qDe(c,u=>s(u)&&o(c))}),n.forEach(c=>this.removeProject(c));function s(c){return c.hasOpenRef()||!n.has(c.canonicalConfigFilePath)}function o(c){n.delete(c.canonicalConfigFilePath)&&(i(c),qDe(c,o))}}removeOrphanScriptInfos(){let t=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(n=>{if(!n.isScriptOpen()&&n.isOrphan()&&!n.isContainedByBackgroundProject()){if(!n.sourceMapFilePath)return;let i;if(os(n.sourceMapFilePath)){let s=this.getScriptInfoForPath(n.sourceMapFilePath);i=s&&s.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;if(!i||!pg(i,s=>{let o=this.getScriptInfoForPath(s);return!!o&&(o.isScriptOpen()||!o.isOrphan())}))return}if(t.delete(n.path),n.sourceMapFilePath){let i;if(os(n.sourceMapFilePath)){t.delete(n.sourceMapFilePath);let s=this.getScriptInfoForPath(n.sourceMapFilePath);i=s&&s.sourceInfos}else i=n.sourceMapFilePath.sourceInfos;i&&i.forEach((s,o)=>t.delete(o))}}),t.forEach(n=>{this.stopWatchingScriptInfo(n),this.deleteScriptInfo(n),n.closeSourceMapFileWatcher()})}telemetryOnOpenFile(t){if(this.serverMode!==0||!this.eventHandler||!t.isJavaScript()||!Hp(this.allJsFilesForOpenFileTelemetry,t.path))return;let n=this.ensureDefaultProjectForFile(t);if(!n.languageServiceEnabled)return;let i=n.getSourceFile(t.path),s=!!i&&!!i.checkJsDirective;this.eventHandler({eventName:BQ,data:{info:{checkJs:s}}})}closeClientFile(t,n){let i=this.getScriptInfoForNormalizedPath(Uo(t)),s=i?this.closeOpenFile(i,n):!1;return n||this.printProjects(),s}collectChanges(t,n,i,s){for(let o of n){let c=xr(t,u=>u.projectName===o.getProjectName());s.push(o.getChangesSinceVersion(c&&c.version,i))}}synchronizeProjectList(t,n){let i=[];return this.collectChanges(t,this.externalProjects,n,i),this.collectChanges(t,this.configuredProjects.values(),n,i),this.collectChanges(t,this.inferredProjects,n,i),i}applyChangesInOpenFiles(t,n,i){let s,o=!1;if(t)for(let u of t){let f=this.getOrCreateOpenScriptInfo(Uo(u.fileName),u.content,RQ(u.scriptKind),u.hasMixedContent,u.projectRootPath?Uo(u.projectRootPath):void 0);(s||(s=[])).push(f)}if(n)for(let u of n){let f=this.getScriptInfo(u.fileName);E.assert(!!f),this.applyChangesToFile(f,u.changes)}if(i)for(let u of i)o=this.closeClientFile(u,!0)||o;let c;s&&(c=oa(s,u=>this.assignProjectToOpenedScriptInfo(u).retainProjects)),o&&this.assignOrphanScriptInfosToInferredProject(),s?(this.cleanupAfterOpeningFile(c),s.forEach(u=>this.telemetryOnOpenFile(u)),this.printProjects()):bn(i)&&this.printProjects()}applyChangesToFile(t,n){for(let i of n)t.editContent(i.span.start,i.span.start+i.span.length,i.newText)}closeConfiguredProjectReferencedFromExternalProject(t){let n=this.findConfiguredProjectByProjectName(t);if(n&&(n.deleteExternalProjectReference(),!n.hasOpenRef())){this.removeProject(n);return}}closeExternalProject(t){let n=Uo(t),i=this.externalProjectToConfiguredProjectMap.get(n);if(i){for(let s of i)this.closeConfiguredProjectReferencedFromExternalProject(s);this.externalProjectToConfiguredProjectMap.delete(n)}else{let s=this.findExternalProjectByProjectName(t);s&&this.removeProject(s)}}openExternalProjects(t){let n=jh(this.externalProjects,i=>i.getProjectName(),i=>!0);pg(this.externalProjectToConfiguredProjectMap,i=>{n.set(i,!0)});for(let i of t)this.openExternalProject(i),n.delete(i.projectFileName);pg(n,i=>{this.closeExternalProject(i)})}static escapeFilenameForRegex(t){return t.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=JQ}applySafeList(t){let{rootFiles:n}=t,i=t.typeAcquisition;if(E.assert(!!i,"proj.typeAcquisition should be set by now"),i.enable===!1||i.disableFilenameBasedTypeAcquisition)return[];let s=i.include||(i.include=[]),o=[],c=n.map(p=>Su(p.fileName)),u=[];for(let p of Object.keys(this.safelist)){let y=this.safelist[p];for(let S of c)if(y.match.test(S)){if(this.logger.info(`Excluding files based on rule ${p} matching file '${S}'`),y.types)for(let x of y.types)s.includes(x)||s.push(x);if(y.exclude)for(let x of y.exclude){let C=S.replace(y.match,(...w)=>x.map(D=>typeof D=="number"?os(w[D])?yhe.escapeFilenameForRegex(w[D]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${p} - not enough groups`),"\\*"):D).join(""));o.includes(C)||o.push(C)}else{let x=yhe.escapeFilenameForRegex(S);o.includes(x)||o.push(x)}}}let f=o.map(p=>new RegExp(p,"i")),g=[];for(let p=0;py.test(c[p])))u.push(c[p]);else{let y=!1;if(i.enable){let S=Mc(Od(c[p]));if(nc(S,"js")){let x=zu(S),C=Rj(x),w=this.legacySafelist.get(C);w!==void 0&&(this.logger.info(`Excluded '${c[p]}' because it matched ${C} from the legacy safelist`),u.push(c[p]),y=!0,s.includes(w)||s.push(w))}}y||(/^.+[.-]min\.js$/.test(c[p])?u.push(c[p]):g.push(t.rootFiles[p]))}return t.rootFiles=g,u}openExternalProject(t){t.typeAcquisition=t.typeAcquisition||{},t.typeAcquisition.include=t.typeAcquisition.include||[],t.typeAcquisition.exclude=t.typeAcquisition.exclude||[],t.typeAcquisition.enable===void 0&&(t.typeAcquisition.enable=ype(t.rootFiles.map(u=>u.fileName)));let n=this.applySafeList(t),i,s=[];for(let u of t.rootFiles){let f=Uo(u.fileName);kQ(f)?this.serverMode===0&&this.host.fileExists(f)&&(i||(i=[])).push(f):s.push(u)}i&&i.sort();let o=this.findExternalProjectByProjectName(t.projectFileName),c;if(o){if(o.excludedFiles=n,!i){let u=WM(t.options),f=LN(t.options,o.getCurrentDirectory()),g=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(t.projectFileName,u,t.rootFiles,rR);g?o.disableLanguageService(g):o.enableLanguageService(),o.setProjectErrors(f?.errors),this.updateRootAndOptionsOfNonInferredProject(o,t.rootFiles,rR,u,t.typeAcquisition,t.options.compileOnSave,f?.watchOptions),o.updateGraph();return}this.closeExternalProject(t.projectFileName)}else if(this.externalProjectToConfiguredProjectMap.get(t.projectFileName))if(!i)this.closeExternalProject(t.projectFileName);else{let u=this.externalProjectToConfiguredProjectMap.get(t.projectFileName),f=0,g=0;for(;fp||((c||(c=[])).push(y),g++),f++)}for(let p=g;pthis.logger.info(c));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let o=this.pendingPluginEnablements.get(t);o||this.pendingPluginEnablements.set(t,o=[]),o.push(s);return}this.endEnablePlugin(t,uS.importServicePluginSync(n,i,this.host,s=>this.logger.info(s)))}endEnablePlugin(t,{pluginConfigEntry:n,resolvedModule:i,errorLogs:s}){var o;if(i){let c=(o=this.currentPluginConfigOverrides)==null?void 0:o.get(n.name);if(c){let u=n.name;n=c,n.name=u}t.enableProxy(i,n)}else Qt(s,c=>this.logger.info(c)),this.logger.info(`Couldn't find ${n.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;let t=hs(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(t),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(t){E.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Kt(t,([n,i])=>this.enableRequestedPluginsForProjectAsync(n,i))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(t,n){let i=await Promise.all(n);if(!t.isClosed()){for(let s of i)this.endEnablePlugin(t,s);this.delayUpdateProjectGraph(t)}}configurePlugin(t){this.forEachEnabledProject(n=>n.onPluginConfigurationChanged(t.pluginName,t.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(t.pluginName,t.configuration)}getPackageJsonsVisibleToFile(t,n){let i=this.packageJsonCache,s=n&&this.toPath(n),o=this.toPath(t),c=[],u=f=>{switch(i.directoryHasPackageJson(f)){case 3:return i.searchDirectoryAndAncestors(f),u(f);case-1:let g=Qr(f,"package.json");this.watchPackageJsonFile(g);let p=i.getInDirectory(f);p&&c.push(p)}if(s&&s===f)return!0};return Ld(Xr(o),u),c}getNearestAncestorDirectoryWithPackageJson(t){return Ld(t,n=>{switch(this.packageJsonCache.directoryHasPackageJson(this.toPath(n))){case-1:return n;case 0:return;case 3:return this.host.fileExists(Qr(n,"package.json"))?n:void 0}})}watchPackageJsonFile(t){let n=this.packageJsonFilesMap||(this.packageJsonFilesMap=new Map);n.has(t)||(this.invalidateProjectPackageJson(t),n.set(t,this.watchFactory.watchFile(t,(i,s)=>{let o=this.toPath(i);switch(s){case 0:return E.fail();case 1:this.packageJsonCache.addOrUpdate(o),this.invalidateProjectPackageJson(o);break;case 2:this.packageJsonCache.delete(o),this.invalidateProjectPackageJson(o),n.get(o).close(),n.delete(o)}},250,this.hostConfiguration.watchOptions,dl.PackageJson)))}onAddPackageJson(t){this.packageJsonCache.addOrUpdate(t),this.watchPackageJsonFile(t)}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}invalidateProjectPackageJson(t){this.configuredProjects.forEach(n),this.inferredProjects.forEach(n),this.externalProjects.forEach(n);function n(i){t?i.onPackageJsonChange(t):i.onAutoImportProviderSettingsChanged()}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=yKe())}},Ape.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,WQ=Ape}});function Npe(e){let t,n,i,s={get(f,g,p,y){if(!(!n||i!==c(f,p,y)))return n.get(g)},set(f,g,p,y,S,x){if(o(f,p,y).set(g,u(S,x,!1)),x){for(let C of S)if(C.isInNodeModules){let w=C.path.substring(0,C.path.indexOf(zm)+zm.length-1);t?.has(w)||(t||(t=new Map)).set(w,e.watchNodeModulesForPackageJsonChanges(w))}}},setModulePaths(f,g,p,y,S){let x=o(f,p,y),C=x.get(g);C?C.modulePaths=S:x.set(g,u(S,void 0,void 0))},setBlockedByPackageJsonDependencies(f,g,p,y,S){let x=o(f,p,y),C=x.get(g);C?C.isBlockedByPackageJsonDependencies=S:x.set(g,u(void 0,void 0,S))},clear(){t?.forEach(f=>f.close()),n?.clear(),t?.clear(),i=void 0},count(){return n?n.size:0}};return E.isDebugging&&Object.defineProperty(s,"__cache",{get:()=>n}),s;function o(f,g,p){let y=c(f,g,p);return n&&i!==y&&s.clear(),i=y,n||(n=new Map)}function c(f,g,p){return`${f},${g.importModuleSpecifierEnding},${g.importModuleSpecifierPreference},${p.overrideImportMode}`}function u(f,g,p){return{modulePaths:f,moduleSpecifiers:g,isBlockedByPackageJsonDependencies:p}}}var bKe=ze({"src/server/moduleSpecifierCache.ts"(){"use strict";B1()}});function Ipe(e){let t=new Map,n=new Map;return{addOrUpdate:i,forEach:t.forEach.bind(t),get:t.get.bind(t),delete:o=>{t.delete(o),n.set(Xr(o),!0)},getInDirectory:o=>t.get(Qr(o,"package.json"))||void 0,directoryHasPackageJson:s,searchDirectoryAndAncestors:o=>{Ld(o,c=>{if(s(c)!==3)return!0;let u=e.toPath(Qr(c,"package.json"));VA(e,u)?i(u):n.set(c,!0)})}};function i(o){let c=E.checkDefined(YH(o,e.host));t.set(o,c),n.delete(Xr(o))}function s(o){return t.has(Qr(o,"package.json"))?-1:n.has(o)?0:3}}var SKe=ze({"src/server/packageJsonCache.ts"(){"use strict";B1()}});function xKe(e){let t=e[0],n=e[1];return(1e9*t+n)/1e6}function QDe(e,t){if((E6(e)||NQ(e))&&e.isJsOnlyProject()){let n=e.getScriptInfoForNormalizedPath(t);return n&&!n.isJavaScript()}return!1}function TKe(e){return qf(e)||!!e.emitDecoratorMetadata}function YDe(e,t,n){let i=t.getScriptInfoForNormalizedPath(e);return{start:i.positionToLineOffset(n.start),end:i.positionToLineOffset(n.start+n.length),text:Qd(n.messageText,` -`),code:n.code,category:_2(n),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,source:n.source,relatedInformation:Kt(n.relatedInformation,UQ)}}function UQ(e){return e.file?{span:{start:RN(Ka(e.file,e.start)),end:RN(Ka(e.file,e.start+e.length)),file:e.file.fileName},message:Qd(e.messageText,` -`),category:_2(e),code:e.code}:{message:Qd(e.messageText,` -`),category:_2(e),code:e.code}}function RN(e){return{line:e.line+1,offset:e.character+1}}function jN(e,t){let n=e.file&&RN(Ka(e.file,e.start)),i=e.file&&RN(Ka(e.file,e.start+e.length)),s=Qd(e.messageText,` -`),{code:o,source:c}=e,u=_2(e),f={start:n,end:i,text:s,code:o,category:u,reportsUnnecessary:e.reportsUnnecessary,reportsDeprecated:e.reportsDeprecated,source:c,relatedInformation:Kt(e.relatedInformation,UQ)};return t?{...f,fileName:e.file&&e.file.fileName}:f}function kKe(e,t){return e.every(n=>Dc(n.span)i(o,e));return!ss(n)&&n.symLinkedProjects&&n.symLinkedProjects.forEach((o,c)=>{let u=t(c);s.push(...oa(o,f=>i(f,u)))}),ix(s,B0)}function qQ(){return Lj(({textSpan:e})=>e.start+100003*e.length,mL)}function EKe(e,t,n,i,s,o){let c=ZDe(e,t,n,!0,(g,p)=>g.getLanguageService().findRenameLocations(p.fileName,p.pos,i,s,o),(g,p)=>p(lD(g)));if(ss(c))return c;let u=[],f=qQ();return c.forEach((g,p)=>{for(let y of g)!f.has(y)&&!HQ(lD(y),p)&&(u.push(y),f.add(y))}),u}function DKe(e,t,n){let i=e.getLanguageService().getDefinitionAtPosition(t.fileName,t.pos,!1,n),s=i&&Pl(i);return s&&!s.isLocal?{fileName:s.fileName,pos:s.textSpan.start}:void 0}function PKe(e,t,n,i){var s,o;let c=ZDe(e,t,n,!1,(p,y)=>(i.info(`Finding references to ${y.fileName} position ${y.pos} in project ${p.getProjectName()}`),p.getLanguageService().findReferences(y.fileName,y.pos)),(p,y)=>{y(lD(p.definition));for(let S of p.references)y(lD(S))});if(ss(c))return c;let u=c.get(t);if(((o=(s=u?.[0])==null?void 0:s.references[0])==null?void 0:o.isDefinition)===void 0)c.forEach(p=>{for(let y of p)for(let S of y.references)delete S.isDefinition});else{let p=qQ();for(let S of u)for(let x of S.references)if(x.isDefinition){p.add(x);break}let y=new Set;for(;;){let S=!1;if(c.forEach((x,C)=>{if(y.has(C))return;C.getLanguageService().updateIsDefinitionOfReferencedSymbols(x,p)&&(y.add(C),S=!0)}),!S)break}c.forEach((S,x)=>{if(!y.has(x))for(let C of S)for(let w of C.references)w.isDefinition=!1})}let f=[],g=qQ();return c.forEach((p,y)=>{for(let S of p){let x=HQ(lD(S.definition),y),C=x===void 0?S.definition:{...S.definition,textSpan:Gl(x.pos,S.definition.textSpan.length),fileName:x.fileName,contextSpan:NKe(S.definition,y)},w=xr(f,D=>mL(D.definition,C));w||(w={definition:C,references:[]},f.push(w));for(let D of S.references)!g.has(D)&&!HQ(lD(D),y)&&(g.add(D),w.references.push(D))}}),f.filter(p=>p.references.length!==0)}function Lpe(e,t,n){for(let i of ss(e)?e:e.projects)n(i,t);!ss(e)&&e.symLinkedProjects&&e.symLinkedProjects.forEach((i,s)=>{for(let o of i)n(o,s)})}function ZDe(e,t,n,i,s,o){let c=new Map,u=JI();u.enqueue({project:t,location:n}),Lpe(e,n.fileName,(w,D)=>{let O={fileName:D,pos:n.pos};u.enqueue({project:w,location:O})});let f=t.projectService,g=t.getCancellationToken(),p=DKe(t,n,i),y=Yu(()=>t.isSourceOfProjectReferenceRedirect(p.fileName)?p:t.getLanguageService().getSourceMapper().tryGetGeneratedPosition(p)),S=Yu(()=>t.isSourceOfProjectReferenceRedirect(p.fileName)?p:t.getLanguageService().getSourceMapper().tryGetSourcePosition(p)),x=new Set;e:for(;!u.isEmpty();){for(;!u.isEmpty();){if(g.isCancellationRequested())break e;let{project:w,location:D}=u.dequeue();if(c.has(w)||KDe(w,D)||(Af(w),!w.containsFile(Uo(D.fileName))))continue;let O=C(w,D);c.set(w,O??tl),x.add(AKe(w))}p&&(f.loadAncestorProjectTree(x),f.forEachEnabledProject(w=>{if(g.isCancellationRequested()||c.has(w))return;let D=wKe(p,w,y,S);D&&u.enqueue({project:w,location:D})}))}if(c.size===1)return Aj(c.values());return c;function C(w,D){let O=s(w,D);if(O){for(let z of O)o(z,V=>{let X=f.getOriginalLocationEnsuringConfiguredProject(w,V);if(!X)return;let J=f.getScriptInfo(X.fileName);for(let B of J.containingProjects)!B.isOrphan()&&!c.has(B)&&u.enqueue({project:B,location:X});let ie=f.getSymlinkedProjects(J);ie&&ie.forEach((B,Z)=>{for(let ae of B)!ae.isOrphan()&&!c.has(ae)&&u.enqueue({project:ae,location:{fileName:Z,pos:X.pos}})})});return O}}}function wKe(e,t,n,i){if(t.containsFile(Uo(e.fileName))&&!KDe(t,e))return e;let s=n();if(s&&t.containsFile(Uo(s.fileName)))return s;let o=i();return o&&t.containsFile(Uo(o.fileName))?o:void 0}function KDe(e,t){if(!t)return!1;let n=e.getLanguageService().getProgram();if(!n)return!1;let i=n.getSourceFile(t.fileName);return!!i&&i.resolvedPath!==i.path&&i.resolvedPath!==e.toPath(t.fileName)}function AKe(e){return j1(e)?e.canonicalConfigFilePath:e.getProjectName()}function lD({fileName:e,textSpan:t}){return{fileName:e,pos:t.start}}function HQ(e,t){return z3(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function ePe(e,t){return gL(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function NKe(e,t){return BH(e,t.getSourceMapper(),n=>t.projectService.fileExists(n))}function Wm(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Dc(e))}}function Mpe(e,t,n){let i=Wm(e,n),s=t&&Wm(t,n);return s?{...i,contextStart:s.start,contextEnd:s.end}:i}function IKe(e,t){return{start:tPe(t,e.span.start),end:tPe(t,Dc(e.span)),newText:e.newText}}function tPe(e,t){return Dpe(e)?OKe(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function FKe(e,t){let n=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:n,wordPattern:e.wordPattern}:{ranges:n}}function OKe(e){return{line:e.line+1,offset:e.character+1}}function LKe(e){E.assert(e.textChanges.length===1);let t=Da(e.textChanges);return E.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function Rpe(e,t,n,i){let s=MKe(e,t,i),{line:o,character:c}=kk(dx(s),n);return{line:o+1,offset:c+1}}function MKe(e,t,n){for(let{fileName:i,textChanges:s}of n)if(i===t)for(let o=s.length-1;o>=0;o--){let{newText:c,span:{start:u,length:f}}=s[o];e=e.slice(0,u)+c+e.slice(u+f)}return e}function nPe(e,{fileName:t,textSpan:n,contextSpan:i,isWriteAccess:s,isDefinition:o},{disableLineTextInReferences:c}){let u=E.checkDefined(e.getScriptInfo(t)),f=Mpe(n,i,u),g=c?void 0:RKe(u,f);return{file:t,...f,lineText:g,isWriteAccess:s,isDefinition:o}}function RKe(e,t){let n=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(n.start,Dc(n)).replace(/\r|\n/g,"")}function jKe(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var jpe,Bpe,rPe,Jpe,iPe,zpe,BKe=ze({"src/server/session.ts"(){"use strict";B1(),wT(),dpe(),jpe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},Bpe=DQ,rPe=class{constructor(e){this.operationHost=e}startNew(e){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(e)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(e,t){let n=this.requestId;E.assert(n===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(n,()=>this.executeAction(t))},e))}delay(e,t,n){let i=this.requestId;E.assert(i===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(i,()=>this.executeAction(n))},t,e))}executeAction(e){var t,n,i,s,o,c;let u=!1;try{this.operationHost.isCancellationRequested()?(u=!0,(t=Wn)==null||t.instant(Wn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((n=Wn)==null||n.push(Wn.Phase.Session,"stepAction",{seq:this.requestId}),e(this),(i=Wn)==null||i.pop())}catch(f){(s=Wn)==null||s.popAll(),u=!0,f instanceof xk?(o=Wn)==null||o.instant(Wn.Phase.Session,"stepCanceled",{seq:this.requestId}):((c=Wn)==null||c.instant(Wn.Phase.Session,"stepError",{seq:this.requestId,message:f.message}),this.operationHost.logError(f,`delayed processing of request ${this.requestId}`))}(u||!this.hasPendingWork())&&this.complete()}setTimerHandle(e){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=e}setImmediateId(e){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=e}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},Jpe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],iPe=[...Jpe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],zpe=class GZ{constructor(t){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{let o={version:ps};return this.requiredResponse(o)},openExternalProject:o=>(this.projectService.openExternalProject(o.arguments),this.requiredResponse(!0)),openExternalProjects:o=>(this.projectService.openExternalProjects(o.arguments.projects),this.requiredResponse(!0)),closeExternalProject:o=>(this.projectService.closeExternalProject(o.arguments.projectFileName),this.requiredResponse(!0)),synchronizeProjectList:o=>{let c=this.projectService.synchronizeProjectList(o.arguments.knownProjects,o.arguments.includeProjectReferenceRedirectInfo);if(!c.some(f=>f.projectErrors&&f.projectErrors.length!==0))return this.requiredResponse(c);let u=Kt(c,f=>!f.projectErrors||f.projectErrors.length===0?f:{info:f.info,changes:f.changes,files:f.files,projectErrors:this.convertToDiagnosticsWithLinePosition(f.projectErrors,void 0)});return this.requiredResponse(u)},updateOpen:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles&&S4(o.arguments.openFiles,c=>({fileName:c.file,content:c.fileContent,scriptKind:c.scriptKindName,projectRootPath:c.projectRootPath})),o.arguments.changedFiles&&S4(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:gk(Pj(c.textChanges),u=>{let f=E.checkDefined(this.projectService.getScriptInfo(c.fileName)),g=f.lineOffsetToPosition(u.start.line,u.start.offset),p=f.lineOffsetToPosition(u.end.line,u.end.offset);return g>=0?{span:{start:g,length:p-g},newText:u.newText}:void 0})})),o.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:o=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(o.arguments.openFiles,o.arguments.changedFiles&&S4(o.arguments.changedFiles,c=>({fileName:c.fileName,changes:Pj(c.changes)})),o.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:o=>this.requiredResponse(this.getDefinition(o.arguments,!0)),"definition-full":o=>this.requiredResponse(this.getDefinition(o.arguments,!1)),definitionAndBoundSpan:o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!0)),"definitionAndBoundSpan-full":o=>this.requiredResponse(this.getDefinitionAndBoundSpan(o.arguments,!1)),findSourceDefinition:o=>this.requiredResponse(this.findSourceDefinition(o.arguments)),"emit-output":o=>this.requiredResponse(this.getEmitOutput(o.arguments)),typeDefinition:o=>this.requiredResponse(this.getTypeDefinition(o.arguments)),implementation:o=>this.requiredResponse(this.getImplementation(o.arguments,!0)),"implementation-full":o=>this.requiredResponse(this.getImplementation(o.arguments,!1)),references:o=>this.requiredResponse(this.getReferences(o.arguments,!0)),"references-full":o=>this.requiredResponse(this.getReferences(o.arguments,!1)),rename:o=>this.requiredResponse(this.getRenameLocations(o.arguments,!0)),"renameLocations-full":o=>this.requiredResponse(this.getRenameLocations(o.arguments,!1)),"rename-full":o=>this.requiredResponse(this.getRenameInfo(o.arguments)),open:o=>(this.openClientFile(Uo(o.arguments.file),o.arguments.fileContent,jQ(o.arguments.scriptKindName),o.arguments.projectRootPath?Uo(o.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!0)),"quickinfo-full":o=>this.requiredResponse(this.getQuickInfoWorker(o.arguments,!1)),getOutliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!0)),outliningSpans:o=>this.requiredResponse(this.getOutliningSpans(o.arguments,!1)),todoComments:o=>this.requiredResponse(this.getTodoComments(o.arguments)),indentation:o=>this.requiredResponse(this.getIndentation(o.arguments)),nameOrDottedNameSpan:o=>this.requiredResponse(this.getNameOrDottedNameSpan(o.arguments)),breakpointStatement:o=>this.requiredResponse(this.getBreakpointStatement(o.arguments)),braceCompletion:o=>this.requiredResponse(this.isValidBraceCompletion(o.arguments)),docCommentTemplate:o=>this.requiredResponse(this.getDocCommentTemplate(o.arguments)),getSpanOfEnclosingComment:o=>this.requiredResponse(this.getSpanOfEnclosingComment(o.arguments)),fileReferences:o=>this.requiredResponse(this.getFileReferences(o.arguments,!0)),"fileReferences-full":o=>this.requiredResponse(this.getFileReferences(o.arguments,!1)),format:o=>this.requiredResponse(this.getFormattingEditsForRange(o.arguments)),formatonkey:o=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(o.arguments)),"format-full":o=>this.requiredResponse(this.getFormattingEditsForDocumentFull(o.arguments)),"formatonkey-full":o=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(o.arguments)),"formatRange-full":o=>this.requiredResponse(this.getFormattingEditsForRangeFull(o.arguments)),completionInfo:o=>this.requiredResponse(this.getCompletions(o.arguments,"completionInfo")),completions:o=>this.requiredResponse(this.getCompletions(o.arguments,"completions")),"completions-full":o=>this.requiredResponse(this.getCompletions(o.arguments,"completions-full")),completionEntryDetails:o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!1)),"completionEntryDetails-full":o=>this.requiredResponse(this.getCompletionEntryDetails(o.arguments,!0)),compileOnSaveAffectedFileList:o=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(o.arguments)),compileOnSaveEmitFile:o=>this.requiredResponse(this.emitFile(o.arguments)),signatureHelp:o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!0)),"signatureHelp-full":o=>this.requiredResponse(this.getSignatureHelpItems(o.arguments,!1)),"compilerOptionsDiagnostics-full":o=>this.requiredResponse(this.getCompilerOptionsDiagnostics(o.arguments)),"encodedSyntacticClassifications-full":o=>this.requiredResponse(this.getEncodedSyntacticClassifications(o.arguments)),"encodedSemanticClassifications-full":o=>this.requiredResponse(this.getEncodedSemanticClassifications(o.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:o=>this.requiredResponse(this.getSemanticDiagnosticsSync(o.arguments)),syntacticDiagnosticsSync:o=>this.requiredResponse(this.getSyntacticDiagnosticsSync(o.arguments)),suggestionDiagnosticsSync:o=>this.requiredResponse(this.getSuggestionDiagnosticsSync(o.arguments)),geterr:o=>(this.errorCheck.startNew(c=>this.getDiagnostics(c,o.arguments.delay,o.arguments.files)),this.notRequired()),geterrForProject:o=>(this.errorCheck.startNew(c=>this.getDiagnosticsForProject(c,o.arguments.delay,o.arguments.file)),this.notRequired()),change:o=>(this.change(o.arguments),this.notRequired()),configure:o=>(this.projectService.setHostConfiguration(o.arguments),this.doOutput(void 0,"configure",o.seq,!0),this.notRequired()),reload:o=>(this.reload(o.arguments,o.seq),this.requiredResponse({reloadFinished:!0})),saveto:o=>{let c=o.arguments;return this.saveToTmp(c.file,c.tmpfile),this.notRequired()},close:o=>{let c=o.arguments;return this.closeClientFile(c.file),this.notRequired()},navto:o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!0)),"navto-full":o=>this.requiredResponse(this.getNavigateToItems(o.arguments,!1)),brace:o=>this.requiredResponse(this.getBraceMatching(o.arguments,!0)),"brace-full":o=>this.requiredResponse(this.getBraceMatching(o.arguments,!1)),navbar:o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!0)),"navbar-full":o=>this.requiredResponse(this.getNavigationBarItems(o.arguments,!1)),navtree:o=>this.requiredResponse(this.getNavigationTree(o.arguments,!0)),"navtree-full":o=>this.requiredResponse(this.getNavigationTree(o.arguments,!1)),documentHighlights:o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!0)),"documentHighlights-full":o=>this.requiredResponse(this.getDocumentHighlights(o.arguments,!1)),compilerOptionsForInferredProjects:o=>(this.setCompilerOptionsForInferredProjects(o.arguments),this.requiredResponse(!0)),projectInfo:o=>this.requiredResponse(this.getProjectInfo(o.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:o=>this.requiredResponse(this.getJsxClosingTag(o.arguments)),linkedEditingRange:o=>this.requiredResponse(this.getLinkedEditingRange(o.arguments)),getCodeFixes:o=>this.requiredResponse(this.getCodeFixes(o.arguments,!0)),"getCodeFixes-full":o=>this.requiredResponse(this.getCodeFixes(o.arguments,!1)),getCombinedCodeFix:o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!0)),"getCombinedCodeFix-full":o=>this.requiredResponse(this.getCombinedCodeFix(o.arguments,!1)),applyCodeActionCommand:o=>this.requiredResponse(this.applyCodeActionCommand(o.arguments)),getSupportedCodeFixes:o=>this.requiredResponse(this.getSupportedCodeFixes(o.arguments)),getApplicableRefactors:o=>this.requiredResponse(this.getApplicableRefactors(o.arguments)),getEditsForRefactor:o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!0)),getMoveToRefactoringFileSuggestions:o=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(o.arguments)),"getEditsForRefactor-full":o=>this.requiredResponse(this.getEditsForRefactor(o.arguments,!1)),organizeImports:o=>this.requiredResponse(this.organizeImports(o.arguments,!0)),"organizeImports-full":o=>this.requiredResponse(this.organizeImports(o.arguments,!1)),getEditsForFileRename:o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!0)),"getEditsForFileRename-full":o=>this.requiredResponse(this.getEditsForFileRename(o.arguments,!1)),configurePlugin:o=>(this.configurePlugin(o.arguments),this.doOutput(void 0,"configurePlugin",o.seq,!0),this.notRequired()),selectionRange:o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!0)),"selectionRange-full":o=>this.requiredResponse(this.getSmartSelectionRange(o.arguments,!1)),prepareCallHierarchy:o=>this.requiredResponse(this.prepareCallHierarchy(o.arguments)),provideCallHierarchyIncomingCalls:o=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(o.arguments)),provideCallHierarchyOutgoingCalls:o=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(o.arguments)),toggleLineComment:o=>this.requiredResponse(this.toggleLineComment(o.arguments,!0)),"toggleLineComment-full":o=>this.requiredResponse(this.toggleLineComment(o.arguments,!1)),toggleMultilineComment:o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!0)),"toggleMultilineComment-full":o=>this.requiredResponse(this.toggleMultilineComment(o.arguments,!1)),commentSelection:o=>this.requiredResponse(this.commentSelection(o.arguments,!0)),"commentSelection-full":o=>this.requiredResponse(this.commentSelection(o.arguments,!1)),uncommentSelection:o=>this.requiredResponse(this.uncommentSelection(o.arguments,!0)),"uncommentSelection-full":o=>this.requiredResponse(this.uncommentSelection(o.arguments,!1)),provideInlayHints:o=>this.requiredResponse(this.provideInlayHints(o.arguments))})),this.host=t.host,this.cancellationToken=t.cancellationToken,this.typingsInstaller=t.typingsInstaller||zM,this.byteLength=t.byteLength,this.hrtime=t.hrtime,this.logger=t.logger,this.canUseEvents=t.canUseEvents,this.suppressDiagnosticEvents=t.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=t.noGetErrOnBackgroundUpdate;let{throttleWaitMilliseconds:n}=t;this.eventHandler=this.canUseEvents?t.eventHandler||(o=>this.defaultEventHandler(o)):void 0;let i={executeWithRequestId:(o,c)=>this.executeWithRequestId(o,c),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(o,c)=>this.logError(o,c),sendRequestCompletedEvent:o=>this.sendRequestCompletedEvent(o),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new rPe(i);let s={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:t.useSingleInferredProject,useInferredProjectPerProjectRoot:t.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:n,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:t.globalPlugins,pluginProbeLocations:t.pluginProbeLocations,allowLocalPluginLoads:t.allowLocalPluginLoads,typesMapLocation:t.typesMapLocation,serverMode:t.serverMode,session:this,canUseWatchEvents:t.canUseWatchEvents,incrementalVerifier:t.incrementalVerifier};switch(this.projectService=new WQ(s),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new EQ(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:Jpe.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:iPe.forEach(o=>this.handlers.set(o,c=>{throw new Error(`Request: ${c.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:E.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(t){this.event({request_seq:t},"requestCompleted")}addPerformanceData(t,n){this.performanceData||(this.performanceData={}),this.performanceData[t]=(this.performanceData[t]??0)+n}performanceEventHandler(t){switch(t.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",t.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",t.durationMs);break}}defaultEventHandler(t){switch(t.eventName){case MN:this.projectsUpdatedInBackgroundEvent(t.data.openFiles);break;case GM:this.event({projectName:t.data.project.getProjectName(),reason:t.data.reason},t.eventName);break;case $M:this.event({projectName:t.data.project.getProjectName()},t.eventName);break;case XM:case KM:case eR:case tR:this.event(t.data,t.eventName);break;case QM:this.event({triggerFile:t.data.triggerFile,configFile:t.data.configFileName,diagnostics:Kt(t.data.diagnostics,n=>jN(n,!0))},t.eventName);break;case YM:{this.event({projectName:t.data.project.getProjectName(),languageServiceEnabled:t.data.languageServiceEnabled},t.eventName);break}case ZM:{let n="telemetry";this.event({telemetryEventName:t.eventName,payload:t.data},n);break}}}projectsUpdatedInBackgroundEvent(t){this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${t}`),t.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&this.errorCheck.startNew(n=>this.updateErrorCheck(n,t,100,!0)),this.event({openFiles:t},MN))}logError(t,n){this.logErrorWorker(t,n)}logErrorWorker(t,n,i){let s="Exception on executing command "+n;if(t.message&&(s+=`: -`+O3(t.message),t.stack&&(s+=` -`+O3(t.stack))),this.logger.hasLevel(3)){if(i)try{let{file:o,project:c}=this.getFileAndProject(i),u=c.getScriptInfoForNormalizedPath(o);if(u){let f=s6(u.getSnapshot());s+=` - -File text of ${i.file}:${O3(f)} -`}}catch{}if(t.ProgramFiles){s+=` - -Program files: ${JSON.stringify(t.ProgramFiles)} -`,s+=` - -Projects:: -`;let o=0,c=u=>{s+=` -Project '${u.projectName}' (${cD[u.projectKind]}) ${o} -`,s+=u.filesToString(!0),s+=` ------------------------------------------------ -`,o++};this.projectService.externalProjects.forEach(c),this.projectService.configuredProjects.forEach(c),this.projectService.inferredProjects.forEach(c)}}this.logger.msg(s,"Err")}send(t){if(t.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(t)}`);return}this.writeMessage(t)}writeMessage(t){var n;let i=Fpe(t,this.logger,this.byteLength,this.host.newLine);(n=Lu)==null||n.logEvent(`Response message size: ${i.length}`),this.host.write(i)}event(t,n){this.send(Ope(n,t))}doOutput(t,n,i,s,o){let c={seq:0,type:"response",command:n,request_seq:i,success:s,performanceData:this.performanceData};if(s){let u;if(ss(t))c.body=t,u=t.metadata,delete t.metadata;else if(typeof t=="object")if(t.metadata){let{metadata:f,...g}=t;c.body=g,u=f}else c.body=t;else c.body=t;u&&(c.metadata=u)}else E.assert(t===void 0);o&&(c.message=o),this.send(c)}semanticCheck(t,n){var i,s;(i=Wn)==null||i.push(Wn.Phase.Session,"semanticCheck",{file:t,configFilePath:n.canonicalConfigFilePath});let o=QDe(n,t)?tl:n.getLanguageService().getSemanticDiagnostics(t).filter(c=>!!c.file);this.sendDiagnosticsEvent(t,n,o,"semanticDiag"),(s=Wn)==null||s.pop()}syntacticCheck(t,n){var i,s;(i=Wn)==null||i.push(Wn.Phase.Session,"syntacticCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSyntacticDiagnostics(t),"syntaxDiag"),(s=Wn)==null||s.pop()}suggestionCheck(t,n){var i,s;(i=Wn)==null||i.push(Wn.Phase.Session,"suggestionCheck",{file:t,configFilePath:n.canonicalConfigFilePath}),this.sendDiagnosticsEvent(t,n,n.getLanguageService().getSuggestionDiagnostics(t),"suggestionDiag"),(s=Wn)==null||s.pop()}sendDiagnosticsEvent(t,n,i,s){try{this.event({file:t,diagnostics:i.map(o=>YDe(t,n,o))},s)}catch(o){this.logError(o,s)}}updateErrorCheck(t,n,i,s=!0){E.assert(!this.suppressDiagnosticEvents);let o=this.changeSeq,c=Math.min(i,200),u=0,f=()=>{u++,n.length>u&&t.delay("checkOne",c,g)},g=()=>{if(this.changeSeq!==o)return;let p=n[u];if(os(p)&&(p=this.toPendingErrorCheck(p),!p)){f();return}let{fileName:y,project:S}=p;if(Af(S),!!S.containsFile(y,s)&&(this.syntacticCheck(y,S),this.changeSeq===o)){if(S.projectService.serverMode!==0){f();return}t.immediate("semanticCheck",()=>{if(this.semanticCheck(y,S),this.changeSeq===o){if(this.getPreferences(y).disableSuggestions){f();return}t.immediate("suggestionCheck",()=>{this.suggestionCheck(y,S),f()})}})}};n.length>u&&this.changeSeq===o&&t.delay("checkOne",i,g)}cleanProjects(t,n){if(n){this.logger.info(`cleaning ${t}`);for(let i of n)i.getLanguageService(!1).cleanupSemanticCache(),i.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",hs(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t);return i.getEncodedSyntacticClassifications(n,t)}getEncodedSemanticClassifications(t){let{file:n,project:i}=this.getFileAndProject(t),s=t.format==="2020"?"2020":"original";return i.getLanguageService().getEncodedSemanticClassifications(n,t,s)}getProject(t){return t===void 0?void 0:this.projectService.findProject(t)}getConfigFileAndProject(t){let n=this.getProject(t.projectFileName),i=Uo(t.file);return{configFile:n&&n.hasConfigFile(i)?i:void 0,project:n}}getConfigFileDiagnostics(t,n,i){let s=n.getAllProjectErrors(),o=n.getLanguageService().getCompilerOptionsDiagnostics(),c=Fr(es(s,o),u=>!!u.file&&u.file.fileName===t);return i?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):Kt(c,u=>jN(u,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(t){return t.map(n=>({message:Qd(n.messageText,this.host.newLine),start:n.start,length:n.length,category:_2(n),code:n.code,source:n.source,startLocation:n.file&&RN(Ka(n.file,n.start)),endLocation:n.file&&RN(Ka(n.file,n.start+n.length)),reportsUnnecessary:n.reportsUnnecessary,reportsDeprecated:n.reportsDeprecated,relatedInformation:Kt(n.relatedInformation,UQ)}))}getCompilerOptionsDiagnostics(t){let n=this.getProject(t.projectFileName);return this.convertToDiagnosticsWithLinePosition(Fr(n.getLanguageService().getCompilerOptionsDiagnostics(),i=>!i.file),void 0)}convertToDiagnosticsWithLinePosition(t,n){return t.map(i=>({message:Qd(i.messageText,this.host.newLine),start:i.start,length:i.length,category:_2(i),code:i.code,source:i.source,startLocation:n&&n.positionToLineOffset(i.start),endLocation:n&&n.positionToLineOffset(i.start+i.length),reportsUnnecessary:i.reportsUnnecessary,reportsDeprecated:i.reportsDeprecated,relatedInformation:Kt(i.relatedInformation,UQ)}))}getDiagnosticsWorker(t,n,i,s){let{project:o,file:c}=this.getFileAndProject(t);if(n&&QDe(o,c))return tl;let u=o.getScriptInfoForNormalizedPath(c),f=i(o,c);return s?this.convertToDiagnosticsWithLinePosition(f,u):f.map(g=>YDe(c,o,g))}getDefinition(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapDefinitionInfoLocations(s.getLanguageService().getDefinitionAtPosition(i,o)||tl,s);return n?this.mapDefinitionInfo(c,s):c.map(GZ.mapToOriginalLocation)}mapDefinitionInfoLocations(t,n){return t.map(i=>{let s=ePe(i,n);return s?{...s,containerKind:i.containerKind,containerName:i.containerName,kind:i.kind,name:i.name,failedAliasResolution:i.failedAliasResolution,...i.unverified&&{unverified:i.unverified}}:i})}getDefinitionAndBoundSpan(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=E.checkDefined(s.getScriptInfo(i)),u=s.getLanguageService().getDefinitionAndBoundSpan(i,o);if(!u||!u.definitions)return{definitions:tl,textSpan:void 0};let f=this.mapDefinitionInfoLocations(u.definitions,s),{textSpan:g}=u;return n?{definitions:this.mapDefinitionInfo(f,s),textSpan:Wm(g,c)}:{definitions:f.map(GZ.mapToOriginalLocation),textSpan:g}}findSourceDefinition(t){var n;let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDefinitionAtPosition(i,o),u=this.mapDefinitionInfoLocations(c||tl,s).slice();if(this.projectService.serverMode===0&&(!ft(u,x=>Uo(x.fileName)!==i&&!x.isAmbient)||ft(u,x=>!!x.failedAliasResolution))){let x=Lj(O=>O.textSpan.start,mL);u?.forEach(O=>x.add(O));let C=s.getNoDtsResolutionProject(i),w=C.getLanguageService(),D=(n=w.getDefinitionAtPosition(i,o,!0,!1))==null?void 0:n.filter(O=>Uo(O.fileName)!==i);if(ft(D))for(let O of D){if(O.unverified){let z=y(O,s.getLanguageService().getProgram(),w.getProgram());if(ft(z)){for(let V of z)x.add(V);continue}}x.add(O)}else{let O=u.filter(z=>Uo(z.fileName)!==i&&z.isAmbient);for(let z of ft(O)?O:p()){let V=g(z.fileName,i,C);if(!V)continue;let X=this.projectService.getOrCreateScriptInfoNotOpenedByClient(V,C.currentDirectory,C.directoryStructureHost);if(!X)continue;C.containsScriptInfo(X)||(C.addRoot(X),C.updateGraph());let J=w.getProgram(),ie=E.checkDefined(J.getSourceFile(V));for(let B of S(z.name,ie,J))x.add(B)}}u=hs(x.values())}return u=u.filter(x=>!x.isAmbient&&!x.failedAliasResolution),this.mapDefinitionInfo(u,s);function g(x,C,w){var D,O,z;let V=oF(x);if(V&&x.lastIndexOf(zm)===V.topLevelNodeModulesIndex){let X=x.substring(0,V.packageRootIndex),J=(D=s.getModuleResolutionCache())==null?void 0:D.getPackageJsonInfoCache(),ie=s.getCompilationSettings(),B=Q8(cs(X+"/package.json",s.getCurrentDirectory()),X8(J,s,ie));if(!B)return;let Z=eU(B,{moduleResolution:2},s,s.getModuleResolutionCache()),ae=x.substring(V.topLevelPackageNameIndex+1,V.packageRootIndex),_e=h3(K8(ae)),$=s.toPath(x);if(Z&&ft(Z,H=>s.toPath(H)===$))return(O=w.resolutionCache.resolveSingleModuleNameWithoutWatching(_e,C).resolvedModule)==null?void 0:O.resolvedFileName;{let H=x.substring(V.packageRootIndex+1),K=`${_e}/${zu(H)}`;return(z=w.resolutionCache.resolveSingleModuleNameWithoutWatching(K,C).resolvedModule)==null?void 0:z.resolvedFileName}}}function p(){let x=s.getLanguageService(),C=x.getProgram(),w=m_(C.getSourceFile(i),o);return($a(w)||Ie(w))&&ho(w.parent)&&une(w,D=>{var O;if(D===w)return;let z=(O=x.getDefinitionAtPosition(i,D.getStart(),!0,!1))==null?void 0:O.filter(V=>Uo(V.fileName)!==i&&V.isAmbient).map(V=>({fileName:V.fileName,name:gp(w)}));if(ft(z))return z})||tl}function y(x,C,w){var D;let O=w.getSourceFile(x.fileName);if(!O)return;let z=m_(C.getSourceFile(i),o),V=C.getTypeChecker().getSymbolAtLocation(z),X=V&&Zo(V,276);if(!X)return;let J=((D=X.propertyName)==null?void 0:D.text)||X.name.text;return S(J,O,w)}function S(x,C,w){let D=Eo.Core.getTopMostDeclarationNamesInFile(x,C);return Ri(D,O=>{let z=w.getTypeChecker().getSymbolAtLocation(O),V=cE(O);if(z&&V)return S6.createDefinitionInfo(V,w.getTypeChecker(),z,V,!0)})}}getEmitOutput(t){let{file:n,project:i}=this.getFileAndProject(t);if(!i.shouldEmitFile(i.getScriptInfo(n)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};let s=i.getLanguageService().getEmitOutput(n);return t.richResponse?{...s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(s.diagnostics):s.diagnostics.map(o=>jN(o,!0))}:s}mapJSDocTagInfo(t,n,i){return t?t.map(s=>{var o;return{...s,text:i?this.mapDisplayParts(s.text,n):(o=s.text)==null?void 0:o.map(c=>c.text).join("")}}):[]}mapDisplayParts(t,n){return t?t.map(i=>i.kind!=="linkName"?i:{...i,target:this.toFileSpan(i.target.fileName,i.target.textSpan,n)}):[]}mapSignatureHelpItems(t,n,i){return t.map(s=>({...s,documentation:this.mapDisplayParts(s.documentation,n),parameters:s.parameters.map(o=>({...o,documentation:this.mapDisplayParts(o.documentation,n)})),tags:this.mapJSDocTagInfo(s.tags,n,i)}))}mapDefinitionInfo(t,n){return t.map(i=>({...this.toFileSpanWithContext(i.fileName,i.textSpan,i.contextSpan,n),...i.unverified&&{unverified:i.unverified}}))}static mapToOriginalLocation(t){return t.originalFileName?(E.assert(t.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...t,fileName:t.originalFileName,textSpan:t.originalTextSpan,targetFileName:t.fileName,targetTextSpan:t.textSpan,contextSpan:t.originalContextSpan,targetContextSpan:t.contextSpan}):t}toFileSpan(t,n,i){let s=i.getLanguageService(),o=s.toLineColumnOffset(t,n.start),c=s.toLineColumnOffset(t,Dc(n));return{file:t,start:{line:o.line+1,offset:o.character+1},end:{line:c.line+1,offset:c.character+1}}}toFileSpanWithContext(t,n,i,s){let o=this.toFileSpan(t,n,s),c=i&&this.toFileSpan(t,i,s);return c?{...o,contextStart:c.start,contextEnd:c.end}:o}getTypeDefinition(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),o=this.mapDefinitionInfoLocations(i.getLanguageService().getTypeDefinitionAtPosition(n,s)||tl,i);return this.mapDefinitionInfo(o,i)}mapImplementationLocations(t,n){return t.map(i=>{let s=ePe(i,n);return s?{...s,kind:i.kind,displayParts:i.displayParts}:i})}getImplementation(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=this.mapImplementationLocations(s.getLanguageService().getImplementationAtPosition(i,o)||tl,s);return n?c.map(({fileName:u,textSpan:f,contextSpan:g})=>this.toFileSpanWithContext(u,f,g,s)):c.map(GZ.mapToOriginalLocation)}getSyntacticDiagnosticsSync(t){let{configFile:n}=this.getConfigFileAndProject(t);return n?tl:this.getDiagnosticsWorker(t,!1,(i,s)=>i.getLanguageService().getSyntacticDiagnostics(s),!!t.includeLinePosition)}getSemanticDiagnosticsSync(t){let{configFile:n,project:i}=this.getConfigFileAndProject(t);return n?this.getConfigFileDiagnostics(n,i,!!t.includeLinePosition):this.getDiagnosticsWorker(t,!0,(s,o)=>s.getLanguageService().getSemanticDiagnostics(o).filter(c=>!!c.file),!!t.includeLinePosition)}getSuggestionDiagnosticsSync(t){let{configFile:n}=this.getConfigFileAndProject(t);return n?tl:this.getDiagnosticsWorker(t,!0,(i,s)=>i.getLanguageService().getSuggestionDiagnostics(s),!!t.includeLinePosition)}getJsxClosingTag(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=i.getJsxClosingTagAtPosition(n,s);return o===void 0?void 0:{newText:o.newText,caretOffset:0}}getLinkedEditingRange(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=i.getLinkedEditingRangeAtPosition(n,s),c=this.projectService.getScriptInfoForNormalizedPath(n);if(!(c===void 0||o===void 0))return FKe(o,c)}getDocumentHighlights(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.getPositionInFile(t,i),c=s.getLanguageService().getDocumentHighlights(i,o,t.filesToSearch);return c?n?c.map(({fileName:u,highlightSpans:f})=>{let g=s.getScriptInfo(u);return{file:u,highlightSpans:f.map(({textSpan:p,kind:y,contextSpan:S})=>({...Mpe(p,S,g),kind:y}))}}):c:tl}provideInlayHints(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);return i.getLanguageService().provideInlayHints(n,t,this.getPreferences(n)).map(c=>{let{position:u,displayParts:f}=c;return{...c,position:s.positionToLineOffset(u),displayParts:f?.map(({text:g,span:p,file:y})=>{if(p){E.assertIsDefined(y,"Target file should be defined together with its span.");let S=this.projectService.getScriptInfo(y);return{text:g,span:{start:S.positionToLineOffset(p.start),end:S.positionToLineOffset(p.start+p.length),file:y}}}else return{text:g}})}})}setCompilerOptionsForInferredProjects(t){this.projectService.setCompilerOptionsForInferredProjects(t.options,t.projectRootPath)}getProjectInfo(t){return this.getProjectInfoWorker(t.file,t.projectFileName,t.needFileNameList,!1)}getProjectInfoWorker(t,n,i,s){let{project:o}=this.getFileAndProjectWorker(t,n);return Af(o),{configFileName:o.getProjectName(),languageServiceDisabled:!o.languageServiceEnabled,fileNames:i?o.getFileNames(!1,s):void 0}}getRenameInfo(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getPositionInFile(t,n),o=this.getPreferences(n);return i.getLanguageService().getRenameInfo(n,s,o)}getProjects(t,n,i){let s,o;if(t.projectFileName){let c=this.getProject(t.projectFileName);c&&(s=[c])}else{let c=n?this.projectService.getScriptInfoEnsuringProjectsUptoDate(t.file):this.projectService.getScriptInfo(t.file);if(c)n||this.projectService.ensureDefaultProjectForFile(c);else return i?tl:(this.projectService.logErrorForScriptInfoNotFound(t.file),f0.ThrowNoProject());s=c.containingProjects,o=this.projectService.getSymlinkedProjects(c)}return s=Fr(s,c=>c.languageServiceEnabled&&!c.isOrphan()),!i&&(!s||!s.length)&&!o?(this.projectService.logErrorForScriptInfoNotFound(t.file??t.projectFileName),f0.ThrowNoProject()):o?{projects:s,symLinkedProjects:o}:s}getDefaultProject(t){if(t.projectFileName){let i=this.getProject(t.projectFileName);if(i)return i;if(!t.file)return f0.ThrowNoProject()}return this.projectService.getScriptInfo(t.file).getDefaultProject()}getRenameLocations(t,n){let i=Uo(t.file),s=this.getPositionInFile(t,i),o=this.getProjects(t),c=this.getDefaultProject(t),u=this.getPreferences(i),f=this.mapRenameInfo(c.getLanguageService().getRenameInfo(i,s,u),E.checkDefined(this.projectService.getScriptInfo(i)));if(!f.canRename)return n?{info:f,locs:[]}:[];let g=EKe(o,c,{fileName:t.file,pos:s},!!t.findInStrings,!!t.findInComments,u);return n?{info:f,locs:this.toSpanGroups(g)}:g}mapRenameInfo(t,n){if(t.canRename){let{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:u,kindModifiers:f,triggerSpan:g}=t;return{canRename:i,fileToRename:s,displayName:o,fullDisplayName:c,kind:u,kindModifiers:f,triggerSpan:Wm(g,n)}}else return t}toSpanGroups(t){let n=new Map;for(let{fileName:i,textSpan:s,contextSpan:o,originalContextSpan:c,originalTextSpan:u,originalFileName:f,...g}of t){let p=n.get(i);p||n.set(i,p={file:i,locs:[]});let y=E.checkDefined(this.projectService.getScriptInfo(i));p.locs.push({...Mpe(s,o,y),...g})}return hs(n.values())}getReferences(t,n){let i=Uo(t.file),s=this.getProjects(t),o=this.getPositionInFile(t,i),c=PKe(s,this.getDefaultProject(t),{fileName:t.file,pos:o},this.logger);if(!n)return c;let u=this.getPreferences(i),f=this.getDefaultProject(t),g=f.getScriptInfoForNormalizedPath(i),p=f.getLanguageService().getQuickInfoAtPosition(i,o),y=p?oN(p.displayParts):"",S=p&&p.textSpan,x=S?g.positionToLineOffset(S.start).offset:0,C=S?g.getSnapshot().getText(S.start,Dc(S)):"";return{refs:oa(c,D=>D.references.map(O=>nPe(this.projectService,O,u))),symbolName:C,symbolStartOffset:x,symbolDisplayString:y}}getFileReferences(t,n){let i=this.getProjects(t),s=t.file,o=this.getPreferences(Uo(s)),c=[],u=qQ();return Lpe(i,void 0,g=>{if(g.getCancellationToken().isCancellationRequested())return;let p=g.getLanguageService().getFileReferences(s);if(p)for(let y of p)u.has(y)||(c.push(y),u.add(y))}),n?{refs:c.map(g=>nPe(this.projectService,g,o)),symbolName:`"${t.file}"`}:c}openClientFile(t,n,i,s){this.projectService.openClientFileWithNormalizedPath(t,n,i,!1,s)}getPosition(t,n){return t.position!==void 0?t.position:n.lineOffsetToPosition(t.line,t.offset)}getPositionInFile(t,n){let i=this.projectService.getScriptInfoForNormalizedPath(n);return this.getPosition(t,i)}getFileAndProject(t){return this.getFileAndProjectWorker(t.file,t.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(t){let{file:n,project:i}=this.getFileAndProject(t);return{file:n,languageService:i.getLanguageService(!1)}}getFileAndProjectWorker(t,n){let i=Uo(t),s=this.getProject(n)||this.projectService.ensureDefaultProjectForFile(i);return{file:i,project:s}}getOutliningSpans(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getOutliningSpans(i);if(n){let c=this.projectService.getScriptInfoForNormalizedPath(i);return o.map(u=>({textSpan:Wm(u.textSpan,c),hintSpan:Wm(u.hintSpan,c),bannerText:u.bannerText,autoCollapse:u.autoCollapse,kind:u.kind}))}else return o}getTodoComments(t){let{file:n,project:i}=this.getFileAndProject(t);return i.getLanguageService().getTodoComments(n,t.descriptors)}getDocCommentTemplate(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getDocCommentTemplateAtPosition(n,s,this.getPreferences(n),this.getFormatOptions(n))}getSpanOfEnclosingComment(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.onlyMultiLine,o=this.getPositionInFile(t,n);return i.getSpanOfEnclosingComment(n,o,s)}getIndentation(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n),o=t.options?D6(t.options):this.getFormatOptions(n),c=i.getIndentationAtPosition(n,s,o);return{position:s,indentation:c}}getBreakpointStatement(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getBreakpointStatementAtPosition(n,s)}getNameOrDottedNameSpan(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.getNameOrDottedNameSpan(n,s,s)}isValidBraceCompletion(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.getPositionInFile(t,n);return i.isValidBraceCompletionAtPosition(n,s,t.openingBrace.charCodeAt(0))}getQuickInfoWorker(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=s.getLanguageService().getQuickInfoAtPosition(i,this.getPosition(t,o));if(!c)return;let u=!!this.getPreferences(i).displayPartsForJSDoc;if(n){let f=oN(c.displayParts);return{kind:c.kind,kindModifiers:c.kindModifiers,start:o.positionToLineOffset(c.textSpan.start),end:o.positionToLineOffset(Dc(c.textSpan)),displayString:f,documentation:u?this.mapDisplayParts(c.documentation,s):oN(c.documentation),tags:this.mapJSDocTagInfo(c.tags,s,u)}}else return u?c:{...c,tags:this.mapJSDocTagInfo(c.tags,s,!1)}}getFormattingEditsForRange(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),o=s.lineOffsetToPosition(t.line,t.offset),c=s.lineOffsetToPosition(t.endLine,t.endOffset),u=i.getFormattingEditsForRange(n,o,c,this.getFormatOptions(n));if(u)return u.map(f=>this.convertTextChangeToCodeEdit(f,s))}getFormattingEditsForRangeFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?D6(t.options):this.getFormatOptions(n);return i.getFormattingEditsForRange(n,t.position,t.endPosition,s)}getFormattingEditsForDocumentFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?D6(t.options):this.getFormatOptions(n);return i.getFormattingEditsForDocument(n,s)}getFormattingEditsAfterKeystrokeFull(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=t.options?D6(t.options):this.getFormatOptions(n);return i.getFormattingEditsAfterKeystroke(n,t.position,t.key,s)}getFormattingEditsAfterKeystroke(t){let{file:n,languageService:i}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(n),o=s.lineOffsetToPosition(t.line,t.offset),c=this.getFormatOptions(n),u=i.getFormattingEditsAfterKeystroke(n,o,t.key,c);if(t.key===` -`&&(!u||u.length===0||kKe(u,o))){let{lineText:f,absolutePosition:g}=s.textStorage.getAbsolutePositionAndLineText(t.line);if(f&&f.search("\\S")<0){let p=i.getIndentationAtPosition(n,o,c),y=0,S,x;for(S=0,x=f.length;S({start:s.positionToLineOffset(f.span.start),end:s.positionToLineOffset(Dc(f.span)),newText:f.newText?f.newText:""}))}getCompletions(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getLanguageService().getCompletionsAtPosition(i,c,{...Spe(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},s.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(n==="completions-full")return u;let f=t.prefix||"",g=Ri(u.entries,y=>{if(u.isMemberCompletion||ts(y.name.toLowerCase(),f.toLowerCase())){let{name:S,kind:x,kindModifiers:C,sortText:w,insertText:D,filterText:O,replacementSpan:z,hasAction:V,source:X,sourceDisplay:J,labelDetails:ie,isSnippet:B,isRecommended:Z,isPackageJsonImport:ae,isImportStatementCompletion:_e,data:$}=y,H=z?Wm(z,o):void 0;return{name:S,kind:x,kindModifiers:C,sortText:w,insertText:D,filterText:O,replacementSpan:H,isSnippet:B,hasAction:V||void 0,source:X,sourceDisplay:J,labelDetails:ie,isRecommended:Z,isPackageJsonImport:ae,isImportStatementCompletion:_e,data:$}}});return n==="completions"?(u.metadata&&(g.metadata=u.metadata),g):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&Wm(u.optionalReplacementSpan,o),entries:g}}getCompletionEntryDetails(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.projectService.getFormatCodeOptions(i),f=!!this.getPreferences(i).displayPartsForJSDoc,g=Ri(t.entryNames,p=>{let{name:y,source:S,data:x}=typeof p=="string"?{name:p,source:void 0,data:void 0}:p;return s.getLanguageService().getCompletionEntryDetails(i,c,y,u,S,this.getPreferences(i),x?Vs(x,jKe):void 0)});return n?f?g:g.map(p=>({...p,tags:this.mapJSDocTagInfo(p.tags,s,!1)})):g.map(p=>({...p,codeActions:Kt(p.codeActions,y=>this.mapCodeAction(y)),documentation:this.mapDisplayParts(p.documentation,s),tags:this.mapJSDocTagInfo(p.tags,s,f)}))}getCompileOnSaveAffectedFileList(t){let n=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?CKe(i,s=>this.projectService.getScriptInfoForPath(s),n,(s,o)=>{if(!s.compileOnSaveEnabled||!s.languageServiceEnabled||s.isOrphan())return;let c=s.getCompilationSettings();if(!(c.noEmit||Jl(o.fileName)&&!TKe(c)))return{projectFileName:s.getProjectName(),fileNames:s.getCompileOnSaveAffectedFileList(o),projectUsesOutFile:!!lo(c)}}):tl}emitFile(t){let{file:n,project:i}=this.getFileAndProject(t);if(i||f0.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;let s=i.getScriptInfo(n),{emitSkipped:o,diagnostics:c}=i.emitFile(s,(u,f,g)=>this.host.writeFile(u,f,g));return t.richResponse?{emitSkipped:o,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):c.map(u=>jN(u,!0))}:!o}getSignatureHelpItems(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getLanguageService().getSignatureHelpItems(i,c,t),f=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&n){let g=u.applicableSpan;return{...u,applicableSpan:{start:o.positionToLineOffset(g.start),end:o.positionToLineOffset(g.start+g.length)},items:this.mapSignatureHelpItems(u.items,s,f)}}else return f||!u?u:{...u,items:u.items.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,s,!1)}))}}toPendingErrorCheck(t){let n=Uo(t),i=this.projectService.tryGetDefaultProjectForFile(n);return i&&{fileName:n,project:i}}getDiagnostics(t,n,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,n)}change(t){let n=this.projectService.getScriptInfo(t.file);E.assert(!!n),n.textStorage.switchToScriptVersionCache();let i=n.lineOffsetToPosition(t.line,t.offset),s=n.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(n,ZZ({span:{start:i,length:s-i},newText:t.insertString})))}reload(t,n){let i=Uo(t.file),s=t.tmpfile===void 0?void 0:Uo(t.tmpfile),o=this.projectService.getScriptInfoForNormalizedPath(i);o&&(this.changeSeq++,o.reloadFromFile(s)&&this.doOutput(void 0,"reload",n,!0))}saveToTmp(t,n){let i=this.projectService.getScriptInfo(t);i&&i.saveTo(n)}closeClientFile(t){if(!t)return;let n=Ys(t);this.projectService.closeClientFile(n)}mapLocationNavigationBarItems(t,n){return Kt(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(s=>Wm(s,n)),childItems:this.mapLocationNavigationBarItems(i.childItems,n),indent:i.indent}))}getNavigationBarItems(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationBarItems(i);return o?n?this.mapLocationNavigationBarItems(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}toLocationNavigationTree(t,n){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>Wm(i,n)),nameSpan:t.nameSpan&&Wm(t.nameSpan,n),childItems:Kt(t.childItems,i=>this.toLocationNavigationTree(i,n))}}getNavigationTree(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=s.getNavigationTree(i);return o?n?this.toLocationNavigationTree(o,this.projectService.getScriptInfoForNormalizedPath(i)):o:void 0}getNavigateToItems(t,n){let i=this.getFullNavigateToItems(t);return n?oa(i,({project:s,navigateToItems:o})=>o.map(c=>{let u=s.getScriptInfo(c.fileName),f={name:c.name,kind:c.kind,kindModifiers:c.kindModifiers,isCaseSensitive:c.isCaseSensitive,matchKind:c.matchKind,file:c.fileName,start:u.positionToLineOffset(c.textSpan.start),end:u.positionToLineOffset(Dc(c.textSpan))};return c.kindModifiers&&c.kindModifiers!==""&&(f.kindModifiers=c.kindModifiers),c.containerName&&c.containerName.length>0&&(f.containerName=c.containerName),c.containerKind&&c.containerKind.length>0&&(f.containerKind=c.containerKind),f})):oa(i,({navigateToItems:s})=>s)}getFullNavigateToItems(t){let{currentFileOnly:n,searchValue:i,maxResultCount:s,projectFileName:o}=t;if(n){E.assertIsDefined(t.file);let{file:S,project:x}=this.getFileAndProject(t);return[{project:x,navigateToItems:x.getLanguageService().getNavigateToItems(i,s,S)}]}let c=this.getHostPreferences(),u=[],f=new Map;if(!t.file&&!o)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(S=>g(S));else{let S=this.getProjects(t);Lpe(S,void 0,x=>g(x))}return u;function g(S){let x=S.getLanguageService().getNavigateToItems(i,s,void 0,S.isNonTsProject(),c.excludeLibrarySymbolsInNavTo),C=Fr(x,w=>p(w)&&!HQ(lD(w),S));C.length&&u.push({project:S,navigateToItems:C})}function p(S){let x=S.name;if(!f.has(x))return f.set(x,[S]),!0;let C=f.get(x);for(let w of C)if(y(w,S))return!1;return C.push(S),!0}function y(S,x){return S===x?!0:!S||!x?!1:S.containerKind===x.containerKind&&S.containerName===x.containerName&&S.fileName===x.fileName&&S.isCaseSensitive===x.isCaseSensitive&&S.kind===x.kind&&S.kindModifiers===x.kindModifiers&&S.matchKind===x.matchKind&&S.name===x.name&&S.textSpan.start===x.textSpan.start&&S.textSpan.length===x.textSpan.length}}getSupportedCodeFixes(t){if(!t)return i$();if(t.file){let{file:i,project:s}=this.getFileAndProject(t);return s.getLanguageService().getSupportedCodeFixes(i)}let n=this.getProject(t.projectFileName);return n||f0.ThrowNoProject(),n.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,n){let i,s;return this.isLocation(t)?i=o(t):s=this.getRange(t,n),E.checkDefined(i===void 0?s:i);function o(c){return c.position!==void 0?c.position:n.lineOffsetToPosition(c.line,c.offset)}}getRange(t,n){let{startPosition:i,endPosition:s}=this.getStartAndEndPosition(t,n);return{pos:i,end:s}}getApplicableRefactors(t){let{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getApplicableRefactors(n,this.extractPositionOrRange(t,s),this.getPreferences(n),t.triggerReason,t.kind,t.includeInteractiveActions)}getEditsForRefactor(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),c=s.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,o),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(c===void 0)return{edits:[]};if(n){let{renameFilename:u,renameLocation:f,edits:g}=c,p;if(u!==void 0&&f!==void 0){let y=s.getScriptInfoForNormalizedPath(Uo(u));p=Rpe(s6(y.getSnapshot()),u,f,g)}return{renameLocation:p,renameFilename:u,edits:this.mapTextChangesToCodeEdits(g),notApplicableReason:c.notApplicableReason}}return c}getMoveToRefactoringFileSuggestions(t){let{file:n,project:i}=this.getFileAndProject(t),s=i.getScriptInfoForNormalizedPath(n);return i.getLanguageService().getMoveToRefactoringFileSuggestions(n,this.extractPositionOrRange(t,s),this.getPreferences(n))}organizeImports(t,n){E.assert(t.scope.type==="file");let{file:i,project:s}=this.getFileAndProject(t.scope.args),o=s.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return n?this.mapTextChangesToCodeEdits(o):o}getEditsForFileRename(t,n){let i=Uo(t.oldFilePath),s=Uo(t.newFilePath),o=this.getHostFormatOptions(),c=this.getHostPreferences(),u=new Set,f=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(g=>{let p=g.getLanguageService().getEditsForFileRename(i,s,o,c),y=[];for(let S of p)u.has(S.fileName)||(f.push(S),y.push(S.fileName));for(let S of y)u.add(S)}),n?f.map(g=>this.mapTextChangeToCodeEdit(g)):f}getCodeFixes(t,n){let{file:i,project:s}=this.getFileAndProject(t),o=s.getScriptInfoForNormalizedPath(i),{startPosition:c,endPosition:u}=this.getStartAndEndPosition(t,o),f;try{f=s.getLanguageService().getCodeFixesAtPosition(i,c,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(g){let p=s.getLanguageService(),y=[...p.getSyntacticDiagnostics(i),...p.getSemanticDiagnostics(i),...p.getSuggestionDiagnostics(i)].map(x=>PP(c,u-c,x.start,x.length)&&x.code),S=t.errorCodes.find(x=>!y.includes(x));throw S!==void 0&&(g.message=`BADCLIENT: Bad error code, ${S} not found in range ${c}..${u} (found: ${y.join(", ")}); could have caused this error: -${g.message}`),g}return n?f.map(g=>this.mapCodeFixAction(g)):f}getCombinedCodeFix({scope:t,fixId:n},i){E.assert(t.type==="file");let{file:s,project:o}=this.getFileAndProject(t.args),c=o.getLanguageService().getCombinedCodeFix({type:"file",fileName:s},n,this.getFormatOptions(s),this.getPreferences(s));return i?{changes:this.mapTextChangesToCodeEdits(c.changes),commands:c.commands}:c}applyCodeActionCommand(t){let n=t.command;for(let i of cx(n)){let{file:s,project:o}=this.getFileAndProject(i);o.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(s)).then(c=>{},c=>{})}return{}}getStartAndEndPosition(t,n){let i,s;return t.startPosition!==void 0?i=t.startPosition:(i=n.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?s=t.endPosition:(s=n.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=s),{startPosition:i,endPosition:s}}mapCodeAction({description:t,changes:n,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(n),commands:i}}mapCodeFixAction({fixName:t,description:n,changes:i,commands:s,fixId:o,fixAllDescription:c}){return{fixName:t,description:n,changes:this.mapTextChangesToCodeEdits(i),commands:s,fixId:o,fixAllDescription:c}}mapTextChangesToCodeEdits(t){return t.map(n=>this.mapTextChangeToCodeEdit(n))}mapTextChangeToCodeEdit(t){let n=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!n&&(n||this.projectService.logErrorForScriptInfoNotFound(t.fileName),E.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!n}))),n?{fileName:t.fileName,textChanges:t.textChanges.map(i=>IKe(i,n))}:LKe(t)}convertTextChangeToCodeEdit(t,n){return{start:n.positionToLineOffset(t.span.start),end:n.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,o),u=s.getBraceMatchingAtPosition(i,c);return u?n?u.map(f=>Wm(f,o)):u:void 0}getDiagnosticsForProject(t,n,i){if(this.suppressDiagnosticEvents)return;let{fileNames:s,languageServiceDisabled:o}=this.getProjectInfoWorker(i,void 0,!0,!0);if(o)return;let c=s.filter(w=>!w.includes("lib.d.ts"));if(c.length===0)return;let u=[],f=[],g=[],p=[],y=Uo(i),S=this.projectService.ensureDefaultProjectForFile(y);for(let w of c)this.getCanonicalFileName(w)===this.getCanonicalFileName(i)?u.push(w):this.projectService.getScriptInfo(w).isScriptOpen()?f.push(w):Jl(w)?p.push(w):g.push(w);let C=[...u,...f,...g,...p].map(w=>({fileName:w,project:S}));this.updateErrorCheck(t,C,n,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,n){let{locations:i}=t,{file:s,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),c=E.checkDefined(this.projectService.getScriptInfo(s));return Kt(i,u=>{let f=this.getPosition(u,c),g=o.getSmartSelectionRange(s,f);return n?this.mapSelectionRange(g,c):g})}toggleLineComment(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfo(i),c=this.getRange(t,o),u=s.toggleLineComment(i,c);if(n){let f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}toggleMultilineComment(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.toggleMultilineComment(i,c);if(n){let f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}commentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.commentSelection(i,c);if(n){let f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}uncommentSelection(t,n){let{file:i,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),o=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,o),u=s.uncommentSelection(i,c);if(n){let f=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(g=>this.convertTextChangeToCodeEdit(g,f))}return u}mapSelectionRange(t,n){let i={textSpan:Wm(t.textSpan,n)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,n)),i}getScriptInfoFromProjectService(t){let n=Uo(t),i=this.projectService.getScriptInfoForNormalizedPath(n);return i||(this.projectService.logErrorForScriptInfoNotFound(n),f0.ThrowNoProject())}toProtocolCallHierarchyItem(t){let n=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:Wm(t.span,n),selectionSpan:Wm(t.selectionSpan,n)}}toProtocolCallHierarchyIncomingCall(t){let n=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>Wm(i,n))}}toProtocolCallHierarchyOutgoingCall(t,n){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>Wm(i,n))}}prepareCallHierarchy(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(n);if(s){let o=this.getPosition(t,s),c=i.getLanguageService().prepareCallHierarchy(n,o);return c&&eG(c,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyIncomingCalls(n,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyIncomingCall(c))}provideCallHierarchyOutgoingCalls(t){let{file:n,project:i}=this.getFileAndProject(t),s=this.getScriptInfoFromProjectService(n);return i.getLanguageService().provideCallHierarchyOutgoingCalls(n,this.getPosition(t,s)).map(c=>this.toProtocolCallHierarchyOutgoingCall(c,s))}getCanonicalFileName(t){let n=this.host.useCaseSensitiveFileNames?t:Od(t);return Ys(n)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(t){return{response:t,responseRequired:!0}}addProtocolHandler(t,n){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,n)}setCurrentRequest(t){E.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){E.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,n){try{return this.setCurrentRequest(t),n()}finally{this.resetCurrentRequest(t)}}executeCommand(t){let n=this.handlers.get(t.command);if(n){let i=this.executeWithRequestId(t.seq,()=>n(t));return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${n6(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var n,i,s,o,c,u,f,g,p,y,S;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let x;this.logger.hasLevel(2)&&(x=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${O3(this.toStringMessage(t))}`));let C,w;try{C=this.parseMessage(t),w=C.arguments&&C.arguments.file?C.arguments:void 0,(n=Wn)==null||n.instant(Wn.Phase.Session,"request",{seq:C.seq,command:C.command}),(i=Lu)==null||i.logStartCommand(""+C.command,this.toStringMessage(t).substring(0,100)),(s=Wn)==null||s.push(Wn.Phase.Session,"executeCommand",{seq:C.seq,command:C.command},!0);let{response:D,responseRequired:O}=this.executeCommand(C);if((o=Wn)==null||o.pop(),this.logger.hasLevel(2)){let z=xKe(this.hrtime(x)).toFixed(4);O?this.logger.perftrc(`${C.seq}::${C.command}: elapsed time (in milliseconds) ${z}`):this.logger.perftrc(`${C.seq}::${C.command}: async elapsed time (in milliseconds) ${z}`)}(c=Lu)==null||c.logStopCommand(""+C.command,"Success"),(u=Wn)==null||u.instant(Wn.Phase.Session,"response",{seq:C.seq,command:C.command,success:!!D}),D?this.doOutput(D,C.command,C.seq,!0):O&&this.doOutput(void 0,C.command,C.seq,!1,"No content available.")}catch(D){if((f=Wn)==null||f.popAll(),D instanceof xk){(g=Lu)==null||g.logStopCommand(""+(C&&C.command),"Canceled: "+D),(p=Wn)==null||p.instant(Wn.Phase.Session,"commandCanceled",{seq:C?.seq,command:C?.command}),this.doOutput({canceled:!0},C.command,C.seq,!0);return}this.logErrorWorker(D,this.toStringMessage(t),w),(y=Lu)==null||y.logStopCommand(""+(C&&C.command),"Error: "+D),(S=Wn)==null||S.instant(Wn.Phase.Session,"commandError",{seq:C?.seq,command:C?.command,message:D.message}),this.doOutput(void 0,C?C.command:"unknown",C?C.seq:0,!1,"Error processing request. "+D.message+` -`+D.stack)}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),DT,GQ,sPe,aPe,iR,sR,Vpe,uD,PT,BN,JKe=ze({"src/server/scriptVersionCache.ts"(){"use strict";B1(),wT(),DT=4,GQ=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(GQ||{}),sPe=class{constructor(){this.goSubtree=!0,this.lineIndex=new uD,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new PT,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;let i=uD.linesFromText(e).lines;i.length>1&&i[i.length-1]===""&&i.pop();let s,o;for(let u=this.endBranch.length-1;u>=0;u--)this.endBranch[u].updateCounts(),this.endBranch[u].charCount()===0&&(o=this.endBranch[u],u>0?s=this.endBranch[u-1]:s=this.branchNode);o&&s.remove(o);let c=this.startPath[this.startPath.length-1];if(i.length>0)if(c.text=i[0],i.length>1){let u=new Array(i.length-1),f=c;for(let y=1;y=0;){let y=this.startPath[g];u=y.insertAt(f,u),g--,f=y}let p=u.length;for(;p>0;){let y=new PT;y.add(this.lineIndex.root),u=y.insertAt(this.lineIndex.root,u),p=u.length,this.lineIndex.root=y}this.lineIndex.root.updateCounts()}else for(let u=this.startPath.length-2;u>=0;u--)this.startPath[u].updateCounts();else{this.startPath[this.startPath.length-2].remove(c);for(let f=this.startPath.length-2;f>=0;f--)this.startPath[f].updateCounts()}return this.lineIndex}post(e,t,n){n===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,n,i,s){let o=this.stack[this.stack.length-1];this.state===2&&s===1&&(this.state=1,this.branchNode=o,this.lineCollectionAtBranch=n);let c;function u(f){return f.isLeaf()?new BN(""):new PT}switch(s){case 0:this.goSubtree=!1,this.state!==4&&o.add(n);break;case 1:this.state===4?this.goSubtree=!1:(c=u(n),o.add(c),this.startPath.push(c));break;case 2:this.state!==4?(c=u(n),o.add(c),this.startPath.push(c)):n.isLeaf()||(c=u(n),o.add(c),this.endBranch.push(c));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:n.isLeaf()||(c=u(n),o.add(c),this.endBranch.push(c));break;case 5:this.goSubtree=!1,this.state!==1&&o.add(n);break}this.goSubtree&&this.stack.push(c)}leaf(e,t,n){this.state===1?this.initialText=n.text.substring(0,e):this.state===2?(this.initialText=n.text.substring(0,e),this.trailingText=n.text.substring(e+t)):this.trailingText=n.text.substring(e+t)}},aPe=class{constructor(e,t,n){this.pos=e,this.deleteLen=t,this.insertedText=n}getTextChangeRange(){return wP(Gl(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},iR=class ex{constructor(){this.changes=[],this.versions=new Array(ex.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(tthis.currentVersion))return t%ex.maxVersions}currentVersionToIndex(){return this.currentVersion%ex.maxVersions}edit(t,n,i){this.changes.push(new aPe(t,n,i)),(this.changes.length>ex.changeNumberThreshold||n>ex.changeLengthThreshold||i&&i.length>ex.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let n=t.index;for(let i of this.changes)n=n.edit(i.pos,i.deleteLen,i.insertedText);t=new Vpe(this.currentVersion+1,this,n,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=ex.maxVersions&&(this.minVersion=this.currentVersion-ex.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,n){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(n-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){let n=this._getSnapshot().index,{lineText:i,absolutePosition:s}=n.lineNumberToInfo(t+1),o=i!==void 0?i.length:n.absolutePositionOfStartOfLine(t+2)-s;return Gl(s,o)}getTextChangesBetweenVersions(t,n){if(t=this.minVersion){let i=[];for(let s=t+1;s<=n;s++){let o=this.versions[this.versionToIndex(s)];for(let c of o.changesSincePreviousVersion)i.push(c.getTextChangeRange())}return $K(i)}else return;else return qP}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){let n=new ex,i=new Vpe(0,n,new uD);n.versions[n.currentVersion]=i;let s=uD.linesFromText(t);return i.index.load(s.lines),n}},iR.changeNumberThreshold=8,iR.changeLengthThreshold=256,iR.maxVersions=8,sR=iR,Vpe=class W7e{constructor(t,n,i,s=tl){this.version=t,this.cache=n,this.index=i,this.changesSincePreviousVersion=s}getText(t,n){return this.index.getText(t,n-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof W7e&&this.cache===t.cache)return this.version<=t.version?qP:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},uD=class vhe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){let{oneBasedLine:n,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:n,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){let n=this.getLineCount();if(t<=n){let{position:i,leaf:s}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:s&&s.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){let n=[];for(let i=0;i0&&t{i=i.concat(c.text.substring(s,s+o))}}),i}getLength(){return this.root.charCount()}every(t,n,i){i||(i=this.root.charCount());let s={goSubtree:!0,done:!1,leaf(o,c,u){t(u,o,c)||(this.done=!0)}};return this.walk(n,i-n,s),!s.done}edit(t,n,i){if(this.root.charCount()===0)return E.assert(n===0),i!==void 0?(this.load(vhe.linesFromText(i).lines),this):void 0;{let s;if(this.checkEdits){let u=this.getText(0,this.root.charCount());s=u.slice(0,t)+i+u.slice(t+n)}let o=new sPe,c=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;let u=this.getText(t,1);i?i=u+i:i=u,n=0,c=!0}else if(n>0){let u=t+n,{zeroBasedColumn:f,lineText:g}=this.positionToColumnAndLineText(u);f===0&&(n+=g.length,i=i?i+g:g)}if(this.root.walk(t,n,o),o.insertLines(i,c),this.checkEdits){let u=o.lineIndex.getText(0,o.lineIndex.getLength());E.assert(s===u,"buffer edit mismatch")}return o.lineIndex}}static buildTreeFromBottom(t){if(t.length0?i[s]=o:i.pop(),{lines:i,lineMap:n}}},PT=class bhe{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(let t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,n,i,s,o){return i.pre&&i.pre(t,n,this.children[s],this,o),i.goSubtree?(this.children[s].walk(t,n,i),i.post&&i.post(t,n,this.children[s],this,o)):i.goSubtree=!0,i.done}skipChild(t,n,i,s,o){s.pre&&!s.done&&(s.pre(t,n,this.children[i],this,o),s.goSubtree=!0)}walk(t,n,i){let s=0,o=this.children[s].charCount(),c=t;for(;c>=o;)this.skipChild(c,n,s,i,0),c-=o,s++,o=this.children[s].charCount();if(c+n<=o){if(this.execWalk(c,n,i,s,2))return}else{if(this.execWalk(c,o-c,i,s,1))return;let u=n-(o-c);for(s++,o=this.children[s].charCount();u>o;){if(this.execWalk(0,o,i,s,3))return;u-=o,s++,o=this.children[s].charCount()}if(u>0&&this.execWalk(0,u,i,s,4))return}if(i.pre){let u=this.children.length;if(sn)return o.isLeaf()?{oneBasedLine:t,zeroBasedColumn:n,lineText:o.text}:o.charOffsetToLineInfo(t,n);n-=o.charCount(),t+=o.lineCount()}let i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};let s=E.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:s.charCount(),lineText:void 0}}lineNumberToInfo(t,n){for(let i of this.children){let s=i.lineCount();if(s>=t)return i.isLeaf()?{position:n,leaf:i}:i.lineNumberToInfo(t,n);t-=s,n+=i.charCount()}return{position:n,leaf:void 0}}splitAfter(t){let n,i=this.children.length;t++;let s=t;if(t=0;S--)f[S].children.length===0&&f.pop()}c&&f.push(c),this.updateCounts();for(let p=0;pW9,ActionPackageInstalled:()=>qae,ActionSet:()=>V9,ActionWatchTypingLocations:()=>yA,Arguments:()=>Wq,AutoImportProviderProject:()=>LQ,AuxiliaryProject:()=>FQ,CharRangeSection:()=>GQ,CloseFileWatcherEvent:()=>tR,CommandNames:()=>Bpe,ConfigFileDiagEvent:()=>QM,ConfiguredProject:()=>MQ,CreateDirectoryWatcherEvent:()=>eR,CreateFileWatcherEvent:()=>KM,Errors:()=>f0,EventBeginInstallTypes:()=>zq,EventEndInstallTypes:()=>Vq,EventInitializationFailed:()=>Gae,EventTypesRegistry:()=>Hae,ExternalProject:()=>VM,GcTimer:()=>EQ,InferredProject:()=>IQ,LargeFileReferencedEvent:()=>XM,LineIndex:()=>uD,LineLeaf:()=>BN,LineNode:()=>PT,LogLevel:()=>xQ,Msg:()=>TQ,OpenFileInfoTelemetryEvent:()=>BQ,Project:()=>uS,ProjectInfoTelemetryEvent:()=>ZM,ProjectKind:()=>cD,ProjectLanguageServiceStateEvent:()=>YM,ProjectLoadingFinishEvent:()=>$M,ProjectLoadingStartEvent:()=>GM,ProjectReferenceProjectLoadKind:()=>VQ,ProjectService:()=>WQ,ProjectsUpdatedInBackgroundEvent:()=>MN,ScriptInfo:()=>wQ,ScriptVersionCache:()=>sR,Session:()=>zpe,TextStorage:()=>PQ,ThrottledOperations:()=>CQ,TypingsCache:()=>AQ,allFilesAreJsOrDts:()=>hpe,allRootFilesAreJsOrDts:()=>gpe,asNormalizedPath:()=>RDe,convertCompilerOptions:()=>WM,convertFormatOptions:()=>D6,convertScriptKindName:()=>jQ,convertTypeAcquisition:()=>bpe,convertUserPreferences:()=>Spe,convertWatchOptions:()=>LN,countEachFileTypes:()=>FN,createInstallTypingsRequest:()=>MDe,createModuleSpecifierCache:()=>Npe,createNormalizedPathMap:()=>jDe,createPackageJsonCache:()=>Ipe,createSortedArray:()=>epe,emptyArray:()=>tl,findArgument:()=>wSe,forEachResolvedProjectReferenceProject:()=>P6,formatDiagnosticToProtocol:()=>jN,formatMessage:()=>Fpe,getBaseConfigFileName:()=>kQ,getLocationInNewDocument:()=>Rpe,hasArgument:()=>PSe,hasNoTypeScriptSource:()=>ype,indent:()=>O3,isBackgroundProject:()=>ON,isConfigFile:()=>Dpe,isConfiguredProject:()=>j1,isDynamicFileName:()=>IN,isExternalProject:()=>NQ,isInferredProject:()=>E6,isInferredProjectName:()=>Qfe,makeAutoImportProviderProjectName:()=>Zfe,makeAuxiliaryProjectName:()=>Kfe,makeInferredProjectName:()=>Yfe,maxFileSize:()=>HM,maxProgramSizeForNonTsFiles:()=>qM,normalizedPathToPath:()=>NN,nowString:()=>ASe,nullCancellationToken:()=>jpe,nullTypingsInstaller:()=>zM,projectContainsInfoDirectly:()=>ET,protocol:()=>mpe,removeSorted:()=>BDe,stringifyIndented:()=>n6,toEvent:()=>Ope,toNormalizedPath:()=>Uo,tryConvertScriptKindName:()=>RQ,typingsInstaller:()=>$fe,updateProjectIfDirty:()=>Af});var wT=ze({"src/server/_namespaces/ts.server.ts"(){"use strict";U9(),Xfe(),KZe(),eKe(),tKe(),nKe(),sKe(),lKe(),pKe(),vKe(),bKe(),SKe(),BKe(),JKe()}}),cPe={};Jn(cPe,{ANONYMOUS:()=>LL,AccessFlags:()=>yB,AssertionLevel:()=>Wj,AssignmentDeclarationKind:()=>DB,AssignmentKind:()=>yV,Associativity:()=>bV,BreakpointResolver:()=>f$,BuilderFileEmit:()=>yq,BuilderProgramKind:()=>vq,BuilderState:()=>Kp,BundleFileSectionKind:()=>qB,CallHierarchy:()=>yT,CharacterCodes:()=>jB,CheckFlags:()=>pB,CheckMode:()=>qO,ClassificationType:()=>cH,ClassificationTypeNames:()=>oH,CommentDirectiveType:()=>Zj,Comparison:()=>Aa,CompletionInfoFlags:()=>eH,CompletionTriggerKind:()=>Xq,Completions:()=>TT,ContainerFlags:()=>lU,ContextFlags:()=>iB,Debug:()=>E,DiagnosticCategory:()=>_P,Diagnostics:()=>d,DocumentHighlights:()=>jL,ElementFlags:()=>hB,EmitFlags:()=>u7,EmitHint:()=>VB,EmitOnly:()=>eB,EndOfLineState:()=>rH,EnumKind:()=>fB,ExitStatus:()=>tB,ExportKind:()=>pG,Extension:()=>BB,ExternalEmitHelpers:()=>zB,FileIncludeKind:()=>t7,FilePreprocessingDiagnosticsKind:()=>Kj,FileSystemEntryKind:()=>YB,FileWatcherEventKind:()=>QB,FindAllReferences:()=>Eo,FlattenLevel:()=>PU,FlowFlags:()=>uP,ForegroundColorEscapeSequences:()=>uq,FunctionFlags:()=>vV,GeneratedIdentifierFlags:()=>e7,GetLiteralTextFlags:()=>mV,GoToDefinition:()=>S6,HighlightSpanKind:()=>Yq,IdentifierNameMap:()=>cT,IdentifierNameMultiMap:()=>DU,ImportKind:()=>fG,ImportsNotUsedAsValues:()=>FB,IndentStyle:()=>Zq,IndexFlags:()=>vB,IndexKind:()=>xB,InferenceFlags:()=>CB,InferencePriority:()=>kB,InlayHintKind:()=>Qq,InlayHints:()=>rQ,InternalEmitFlags:()=>JB,InternalSymbolName:()=>dB,InvalidatedProjectKind:()=>Jq,JSDocParsingMode:()=>$B,JsDoc:()=>R1,JsTyping:()=>Eg,JsxEmit:()=>IB,JsxFlags:()=>Qj,JsxReferenceKind:()=>bB,LanguageServiceMode:()=>Hq,LanguageVariant:()=>MB,LexicalEnvironmentFlags:()=>UB,ListFormat:()=>HB,LogLevel:()=>qj,MemberOverrideStatus:()=>nB,ModifierFlags:()=>ZI,ModuleDetectionKind:()=>PB,ModuleInstanceState:()=>cU,ModuleKind:()=>N4,ModuleResolutionKind:()=>Tk,ModuleSpecifierEnding:()=>DV,NavigateTo:()=>hce,NavigationBar:()=>Dce,NewLineKind:()=>OB,NodeBuilderFlags:()=>sB,NodeCheckFlags:()=>mB,NodeFactoryFlags:()=>LV,NodeFlags:()=>YI,NodeResolutionFeatures:()=>sU,ObjectFlags:()=>s7,OperationCanceledException:()=>xk,OperatorPrecedence:()=>SV,OrganizeImports:()=>ed,OrganizeImportsMode:()=>$q,OuterExpressionKinds:()=>WB,OutliningElementsCollector:()=>oQ,OutliningSpanKind:()=>tH,OutputFileType:()=>nH,PackageJsonAutoImportPreference:()=>qq,PackageJsonDependencyGroup:()=>Uq,PatternMatchKind:()=>BL,PollingInterval:()=>_7,PollingWatchKind:()=>NB,PragmaKindFlags:()=>GB,PrivateIdentifierKind:()=>VV,ProcessLevel:()=>IU,ProgramUpdateLevel:()=>GU,QuotePreference:()=>aG,RelationComparisonResult:()=>KI,Rename:()=>OM,ScriptElementKind:()=>sH,ScriptElementKindModifier:()=>aH,ScriptKind:()=>o7,ScriptSnapshot:()=>H9,ScriptTarget:()=>LB,SemanticClassificationFormat:()=>Gq,SemanticMeaning:()=>sG,SemicolonPreference:()=>Kq,SignatureCheckMode:()=>HO,SignatureFlags:()=>a7,SignatureHelp:()=>TN,SignatureKind:()=>SB,SmartSelectionRange:()=>uQ,SnippetKind:()=>l7,SortKind:()=>Vj,StructureIsReused:()=>n7,SymbolAccessibility:()=>cB,SymbolDisplay:()=>_0,SymbolDisplayPartKind:()=>bA,SymbolFlags:()=>r7,SymbolFormatFlags:()=>oB,SyntaxKind:()=>QI,SyntheticSymbolKind:()=>lB,Ternary:()=>EB,ThrottledCancellationToken:()=>_$,TokenClass:()=>iH,TokenFlags:()=>Yj,TransformFlags:()=>c7,TypeFacts:()=>UO,TypeFlags:()=>i7,TypeFormatFlags:()=>aB,TypeMapKind:()=>TB,TypePredicateKind:()=>uB,TypeReferenceSerializationKind:()=>_B,UnionReduction:()=>rB,UpToDateStatusType:()=>Mq,VarianceFlags:()=>gB,Version:()=>zp,VersionRange:()=>oP,WatchDirectoryFlags:()=>RB,WatchDirectoryKind:()=>AB,WatchFileKind:()=>wB,WatchLogLevel:()=>$U,WatchType:()=>dl,accessPrivateIdentifier:()=>use,addDisposableResourceHelper:()=>HF,addEmitFlags:()=>Mm,addEmitHelper:()=>Bx,addEmitHelpers:()=>oh,addInternalEmitFlags:()=>Rx,addNodeFactoryPatcher:()=>$ye,addObjectAllocatorPatcher:()=>fne,addRange:()=>Nr,addRelatedInfo:()=>ga,addSyntheticLeadingComment:()=>UE,addSyntheticTrailingComment:()=>vF,addToSeen:()=>Hp,advancedAsyncSuperHelper:()=>p8,affectsDeclarationPathOptionDeclarations:()=>WW,affectsEmitOptionDeclarations:()=>VW,allKeysStartWithDot:()=>jO,altDirectorySeparator:()=>vP,and:()=>UI,append:()=>_n,appendIfUnique:()=>Xg,arrayFrom:()=>hs,arrayIsEqualTo:()=>cd,arrayIsHomogeneous:()=>Nne,arrayIsSorted:()=>eK,arrayOf:()=>rK,arrayReverseIterator:()=>Pj,arrayToMap:()=>jh,arrayToMultiMap:()=>iP,arrayToNumericMap:()=>sK,arraysEqual:()=>tP,assertType:()=>whe,assign:()=>C4,assignHelper:()=>EF,asyncDelegator:()=>PF,asyncGeneratorHelper:()=>DF,asyncSuperHelper:()=>f8,asyncValues:()=>wF,attachFileToDiagnostics:()=>Ix,awaitHelper:()=>Jx,awaiterHelper:()=>NF,base64decode:()=>ene,base64encode:()=>Kte,binarySearch:()=>Rh,binarySearchKey:()=>ax,bindSourceFile:()=>Vie,breakIntoCharacterSpans:()=>uce,breakIntoWordSpans:()=>_ce,buildLinkParts:()=>Foe,buildOpts:()=>DO,buildOverload:()=>ADe,bundlerModuleNameResolver:()=>Aie,canBeConvertedToAsync:()=>kG,canHaveDecorators:()=>G2,canHaveExportModifier:()=>Xw,canHaveFlowNode:()=>vw,canHaveIllegalDecorators:()=>hW,canHaveIllegalModifiers:()=>Hre,canHaveIllegalType:()=>k1e,canHaveIllegalTypeParameters:()=>qre,canHaveJSDoc:()=>bw,canHaveLocals:()=>Pm,canHaveModifiers:()=>Yp,canHaveSymbol:()=>Rd,canJsonReportNoInputFiles:()=>_3,canProduceDiagnostics:()=>a9,canUsePropertyAccess:()=>_V,canWatchAffectingLocation:()=>hae,canWatchAtTypes:()=>gae,canWatchDirectoryOrFile:()=>w9,cartesianProduct:()=>gK,cast:()=>Vs,chainBundle:()=>Zp,chainDiagnosticMessages:()=>ys,changeAnyExtension:()=>hP,changeCompilerHostLikeToUseCache:()=>_A,changeExtension:()=>g1,changesAffectModuleResolution:()=>J7,changesAffectingProgramStructure:()=>Ree,childIsDecorated:()=>rE,classElementOrClassElementParameterIsDecorated:()=>rz,classHasClassThisAssignment:()=>wU,classHasDeclaredOrExplicitlyAssignedName:()=>AU,classHasExplicitlyAssignedName:()=>r9,classOrConstructorParameterIsDecorated:()=>Hh,classPrivateFieldGetHelper:()=>WF,classPrivateFieldInHelper:()=>qF,classPrivateFieldSetHelper:()=>UF,classicNameResolver:()=>jie,classifier:()=>ble,cleanExtendedConfigCache:()=>d9,clear:()=>og,clearMap:()=>d_,clearSharedExtendedConfigFileWatcher:()=>UU,climbPastPropertyAccess:()=>$9,climbPastPropertyOrElementAccess:()=>aoe,clone:()=>Fj,cloneCompilerOptions:()=>DH,closeFileWatcher:()=>fd,closeFileWatcherOf:()=>Cf,codefix:()=>fu,collapseTextChangeRangesAcrossMultipleVersions:()=>$K,collectExternalModuleInfo:()=>TU,combine:()=>hk,combinePaths:()=>Qr,commentPragmas:()=>fP,commonOptionsWithBuild:()=>V8,commonPackageFolders:()=>TV,compact:()=>rP,compareBooleans:()=>kv,compareDataObjects:()=>qz,compareDiagnostics:()=>PE,compareDiagnosticsSkipRelatedInformation:()=>V5,compareEmitHelpers:()=>cre,compareNumberOfDirectorySeparators:()=>Hw,comparePaths:()=>t1,comparePathsCaseInsensitive:()=>n0e,comparePathsCaseSensitive:()=>t0e,comparePatternKeys:()=>rU,compareProperties:()=>fK,compareStringsCaseInsensitive:()=>VI,compareStringsCaseInsensitiveEslintCompatible:()=>lK,compareStringsCaseSensitive:()=>Ou,compareStringsCaseSensitiveUI:()=>sP,compareTextSpans:()=>zI,compareValues:()=>Io,compileOnSaveCommandLineOption:()=>J8,compilerOptionsAffectDeclarationPath:()=>Tne,compilerOptionsAffectEmit:()=>xne,compilerOptionsAffectSemanticDiagnostics:()=>Sne,compilerOptionsDidYouMeanDiagnostics:()=>q8,compilerOptionsIndicateEsModules:()=>FH,compose:()=>Dhe,computeCommonSourceDirectoryOfFilenames:()=>$se,computeLineAndCharacterOfPosition:()=>kk,computeLineOfPosition:()=>M4,computeLineStarts:()=>dx,computePositionOfLineAndCharacter:()=>y7,computeSignature:()=>K2,computeSignatureWithDiagnostics:()=>dq,computeSuggestionDiagnostics:()=>SG,concatenate:()=>es,concatenateDiagnosticMessageChains:()=>gne,consumesNodeCoreModules:()=>PL,contains:()=>gs,containsIgnoredPath:()=>ME,containsObjectRestOrSpread:()=>N8,containsParseError:()=>jk,containsPath:()=>Cm,convertCompilerOptionsForTelemetry:()=>die,convertCompilerOptionsFromJson:()=>Dve,convertJsonOption:()=>$2,convertToBase64:()=>Zte,convertToJson:()=>R8,convertToObject:()=>uie,convertToOptionsWithAbsolutePaths:()=>MW,convertToRelativePath:()=>L4,convertToTSConfig:()=>pve,convertTypeAcquisitionFromJson:()=>Pve,copyComments:()=>iS,copyEntries:()=>z7,copyLeadingComments:()=>l6,copyProperties:()=>Oj,copyTrailingAsLeadingComments:()=>JA,copyTrailingComments:()=>U3,couldStartTrivia:()=>jK,countWhere:()=>Lh,createAbstractBuilder:()=>M2e,createAccessorPropertyBackingField:()=>vW,createAccessorPropertyGetRedirector:()=>eie,createAccessorPropertySetRedirector:()=>tie,createBaseNodeFactory:()=>Hne,createBinaryExpressionTrampoline:()=>hO,createBindingHelper:()=>vC,createBuildInfo:()=>aA,createBuilderProgram:()=>mq,createBuilderProgramUsingProgramBuildInfo:()=>dae,createBuilderStatusReporter:()=>Nae,createCacheWithRedirects:()=>YW,createCacheableExportInfoMap:()=>lG,createCachedDirectoryStructureHost:()=>f9,createClassNamedEvaluationHelperBlock:()=>mse,createClassThisAssignmentBlock:()=>pse,createClassifier:()=>KSe,createCommentDirectivesMap:()=>Wee,createCompilerDiagnostic:()=>Tc,createCompilerDiagnosticForInvalidCustomType:()=>sie,createCompilerDiagnosticFromMessageChain:()=>z5,createCompilerHost:()=>Xse,createCompilerHostFromProgramHost:()=>Iq,createCompilerHostWorker:()=>YU,createDetachedDiagnostic:()=>_C,createDiagnosticCollection:()=>iC,createDiagnosticForFileFromMessageChain:()=>ZJ,createDiagnosticForNode:()=>vr,createDiagnosticForNodeArray:()=>zk,createDiagnosticForNodeArrayFromMessageChain:()=>ZP,createDiagnosticForNodeFromMessageChain:()=>nh,createDiagnosticForNodeInSourceFile:()=>pp,createDiagnosticForRange:()=>tte,createDiagnosticMessageChainFromDiagnostic:()=>ete,createDiagnosticReporter:()=>mA,createDocumentPositionMapper:()=>ise,createDocumentRegistry:()=>Koe,createDocumentRegistryInternal:()=>gG,createEmitAndSemanticDiagnosticsBuilderProgram:()=>bq,createEmitHelperFactory:()=>ore,createEmptyExports:()=>T8,createExpressionForJsxElement:()=>jre,createExpressionForJsxFragment:()=>Bre,createExpressionForObjectLiteralElementLike:()=>Jre,createExpressionForPropertyName:()=>_W,createExpressionFromEntityName:()=>k8,createExternalHelpersImportDeclarationIfNeeded:()=>dW,createFileDiagnostic:()=>Nl,createFileDiagnosticFromMessageChain:()=>X7,createForOfBindingStatement:()=>uW,createGetCanonicalFileName:()=>cu,createGetSourceFile:()=>XU,createGetSymbolAccessibilityDiagnosticForNode:()=>r0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Bse,createGetSymbolWalker:()=>Wie,createIncrementalCompilerHost:()=>Oq,createIncrementalProgram:()=>wae,createInputFiles:()=>Qye,createInputFilesWithFilePaths:()=>FV,createInputFilesWithFileTexts:()=>OV,createJsxFactoryExpression:()=>lW,createLanguageService:()=>dle,createLanguageServiceSourceFile:()=>lM,createMemberAccessForPropertyName:()=>H2,createModeAwareCache:()=>sT,createModeAwareCacheKey:()=>g3,createModuleNotFoundChain:()=>MJ,createModuleResolutionCache:()=>VC,createModuleResolutionLoader:()=>nq,createModuleResolutionLoaderUsingGlobalCache:()=>Sae,createModuleSpecifierResolutionHost:()=>rS,createMultiMap:()=>mf,createNodeConverters:()=>$ne,createNodeFactory:()=>i8,createOptionNameMap:()=>bO,createOverload:()=>bQ,createPackageJsonImportFilter:()=>G3,createPackageJsonInfo:()=>YH,createParenthesizerRules:()=>Gne,createPatternMatcher:()=>ice,createPrependNodes:()=>cq,createPrinter:()=>N1,createPrinterWithDefaults:()=>VU,createPrinterWithRemoveComments:()=>fb,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>WU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>oA,createProgram:()=>b9,createProgramHost:()=>Fq,createPropertyNameNodeForIdentifierOrLiteral:()=>aF,createQueue:()=>JI,createRange:()=>Wf,createRedirectedBuilderProgram:()=>hq,createResolutionCache:()=>xq,createRuntimeTypeSerializer:()=>bse,createScanner:()=>Vh,createSemanticDiagnosticsBuilderProgram:()=>L2e,createSet:()=>Lj,createSolutionBuilder:()=>Z2e,createSolutionBuilderHost:()=>Q2e,createSolutionBuilderWithWatch:()=>K2e,createSolutionBuilderWithWatchHost:()=>Y2e,createSortedArray:()=>Dj,createSourceFile:()=>F8,createSourceMapGenerator:()=>ese,createSourceMapSource:()=>Yye,createSuperAccessVariableStatement:()=>s9,createSymbolTable:()=>Gs,createSymlinkCache:()=>Zz,createSystemWatchFunctions:()=>NK,createTextChange:()=>NA,createTextChangeFromStartLength:()=>cL,createTextChangeRange:()=>wP,createTextRangeFromNode:()=>AH,createTextRangeFromSpan:()=>oL,createTextSpan:()=>Gl,createTextSpanFromBounds:()=>Xc,createTextSpanFromNode:()=>g_,createTextSpanFromRange:()=>fy,createTextSpanFromStringLiteralLikeContent:()=>wH,createTextWriter:()=>Nw,createTokenRange:()=>Vz,createTypeChecker:()=>$ie,createTypeReferenceDirectiveResolutionCache:()=>OO,createTypeReferenceResolutionLoader:()=>h9,createUnparsedSourceFile:()=>IV,createWatchCompilerHost:()=>G2e,createWatchCompilerHostOfConfigFile:()=>Eae,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Dae,createWatchFactory:()=>Nq,createWatchHost:()=>Aq,createWatchProgram:()=>$2e,createWatchStatusReporter:()=>xae,createWriteFileMeasuringIO:()=>QU,declarationNameToString:()=>co,decodeMappings:()=>bU,decodedTextSpanIntersectsWith:()=>PP,decorateHelper:()=>SF,deduplicate:()=>ix,defaultIncludeSpec:()=>AO,defaultInitCompilerOptions:()=>PO,defaultMaximumTruncationLength:()=>Kw,detectSortCaseSensitivity:()=>MI,diagnosticCategoryName:()=>_2,diagnosticToString:()=>aS,directoryProbablyExists:()=>_d,directorySeparator:()=>Oo,displayPart:()=>D_,displayPartsToString:()=>oN,disposeEmitNodes:()=>MV,disposeResourcesHelper:()=>GF,documentSpansEqual:()=>mL,dumpTracingLegend:()=>PK,elementAt:()=>Jh,elideNodes:()=>Kre,emitComments:()=>zte,emitDetachedComments:()=>Vte,emitFiles:()=>l9,emitFilesAndReportErrors:()=>F9,emitFilesAndReportErrorsAndGetExitStatus:()=>Cae,emitModuleKindIsNonNodeESM:()=>W5,emitNewLineBeforeLeadingCommentOfPosition:()=>Jte,emitNewLineBeforeLeadingComments:()=>jte,emitNewLineBeforeLeadingCommentsOfPosition:()=>Bte,emitSkippedWithNoDiagnostics:()=>E9,emitUsingBuildInfo:()=>Use,emptyArray:()=>Ve,emptyFileSystemEntries:()=>mF,emptyMap:()=>$I,emptyOptions:()=>Hf,emptySet:()=>yK,endsWith:()=>Sc,ensurePathIsNonModuleName:()=>Cv,ensureScriptKind:()=>K5,ensureTrailingDirectorySeparator:()=>wl,entityNameToString:()=>O_,enumerateInsertsAndDeletes:()=>HI,equalOwnProperties:()=>iK,equateStringsCaseInsensitive:()=>lx,equateStringsCaseSensitive:()=>ux,equateValues:()=>B0,esDecorateHelper:()=>kF,escapeJsxAttributeString:()=>Pz,escapeLeadingUnderscores:()=>Yo,escapeNonAsciiString:()=>Aw,escapeSnippetText:()=>Zv,escapeString:()=>p1,every:()=>hi,expandPreOrPostfixIncrementOrDecrementExpression:()=>_O,explainFiles:()=>Cq,explainIfFileIsRedirectAndImpliedFormat:()=>Eq,exportAssignmentIsAlias:()=>eC,exportStarHelper:()=>VF,expressionResultIsUnused:()=>Fne,extend:()=>BI,extendsHelper:()=>IF,extensionFromPath:()=>Lx,extensionIsTS:()=>nF,extensionsNotSupportingExtensionlessResolution:()=>r8,externalHelpersModuleNameText:()=>sy,factory:()=>I,fileExtensionIs:()=>nc,fileExtensionIsOneOf:()=>$c,fileIncludeReasonToDiagnostics:()=>wq,fileShouldUseJavaScriptRequire:()=>iG,filter:()=>Fr,filterMutate:()=>xj,filterSemanticDiagnostics:()=>S9,find:()=>xr,findAncestor:()=>Fn,findBestPatternMatch:()=>Bj,findChildOfKind:()=>Ya,findComputedPropertyNameCacheAssignment:()=>yO,findConfigFile:()=>Gse,findContainingList:()=>K9,findDiagnosticForNode:()=>qoe,findFirstNonJsxWhitespaceToken:()=>_oe,findIndex:()=>Qo,findLast:()=>Bp,findLastIndex:()=>a2,findListItemInfo:()=>uoe,findMap:()=>rx,findModifier:()=>a6,findNextToken:()=>mb,findPackageJson:()=>Woe,findPackageJsons:()=>QH,findPrecedingMatchingToken:()=>sL,findPrecedingToken:()=>ol,findSuperStatementIndexPath:()=>e9,findTokenOnLeftOfPosition:()=>nL,findUseStrictPrologue:()=>pW,first:()=>Da,firstDefined:()=>ba,firstDefinedIterator:()=>df,firstIterator:()=>Aj,firstOrOnly:()=>tG,firstOrUndefined:()=>Pl,firstOrUndefinedIterator:()=>RI,fixupCompilerOptions:()=>EG,flatMap:()=>oa,flatMapIterator:()=>Tj,flatMapToMutable:()=>x4,flatten:()=>Jp,flattenCommaList:()=>nie,flattenDestructuringAssignment:()=>Q2,flattenDestructuringBinding:()=>_b,flattenDiagnosticMessageText:()=>Qd,forEach:()=>Qt,forEachAncestor:()=>jee,forEachAncestorDirectory:()=>Ld,forEachChild:()=>vs,forEachChildRecursively:()=>l3,forEachEmittedFile:()=>JU,forEachEnclosingBlockScopeContainer:()=>Yee,forEachEntry:()=>$l,forEachExternalModuleToImportFrom:()=>_G,forEachImportClauseDeclaration:()=>y5,forEachKey:()=>pg,forEachLeadingCommentRange:()=>TP,forEachNameInAccessChainWalkingLeft:()=>une,forEachPropertyAssignment:()=>qk,forEachResolvedProjectReference:()=>rq,forEachReturnStatement:()=>Rv,forEachRight:()=>nx,forEachTrailingCommentRange:()=>kP,forEachTsConfigPropArray:()=>nw,forEachUnique:()=>jH,forEachYieldExpression:()=>rte,forSomeAncestorDirectory:()=>yye,formatColorAndReset:()=>pb,formatDiagnostic:()=>ZU,formatDiagnostics:()=>h2e,formatDiagnosticsWithColorAndContext:()=>Qse,formatGeneratedName:()=>E1,formatGeneratedNamePart:()=>RC,formatLocation:()=>KU,formatMessage:()=>$z,formatStringFromArgs:()=>vg,formatting:()=>ml,fullTripleSlashAMDReferencePathRegEx:()=>hV,fullTripleSlashReferencePathRegEx:()=>gV,generateDjb2Hash:()=>I4,generateTSConfig:()=>yve,generatorHelper:()=>BF,getAdjustedReferenceLocation:()=>SH,getAdjustedRenameLocation:()=>tL,getAliasDeclarationFromName:()=>hz,getAllAccessorDeclarations:()=>N2,getAllDecoratorsOfClass:()=>CU,getAllDecoratorsOfClassElement:()=>n9,getAllJSDocTags:()=>gJ,getAllJSDocTagsOfKind:()=>N0e,getAllKeys:()=>Che,getAllProjectOutputs:()=>c9,getAllSuperTypeNodes:()=>lE,getAllUnscopedEmitHelpers:()=>zV,getAllowJSCompilerOption:()=>m1,getAllowSyntheticDefaultImports:()=>Fx,getAncestor:()=>f1,getAnyExtensionFromPath:()=>O4,getAreDeclarationMapsEnabled:()=>q5,getAssignedExpandoInitializer:()=>bx,getAssignedName:()=>_J,getAssignedNameOfIdentifier:()=>T3,getAssignmentDeclarationKind:()=>mc,getAssignmentDeclarationPropertyAccessKind:()=>dw,getAssignmentTargetKind:()=>kx,getAutomaticTypeDirectiveNames:()=>FO,getBaseFileName:()=>Mc,getBinaryOperatorPrecedence:()=>ww,getBuildInfo:()=>u9,getBuildInfoFileVersionMap:()=>gq,getBuildInfoText:()=>Wse,getBuildOrderFromAnyBuildOrder:()=>j9,getBuilderCreationParameters:()=>D9,getBuilderFileEmit:()=>_y,getCheckFlags:()=>lc,getClassExtendsHeritageElement:()=>Vv,getClassLikeDeclarationOfSymbol:()=>ah,getCombinedLocalAndExportSymbolFlags:()=>CE,getCombinedModifierFlags:()=>Dv,getCombinedNodeFlags:()=>Wh,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>lJ,getCommentRange:()=>Ud,getCommonSourceDirectory:()=>w3,getCommonSourceDirectoryOfConfig:()=>A3,getCompilerOptionValue:()=>G5,getCompilerOptionsDiffValue:()=>gve,getConditions:()=>ab,getConfigFileParsingDiagnostics:()=>Z2,getConstantValue:()=>ere,getContainerFlags:()=>oU,getContainerNode:()=>tS,getContainingClass:()=>Rl,getContainingClassExcludingClassDecorators:()=>i5,getContainingClassStaticBlock:()=>fte,getContainingFunction:()=>yf,getContainingFunctionDeclaration:()=>_te,getContainingFunctionOrClassStaticBlock:()=>r5,getContainingNodeArray:()=>One,getContainingObjectLiteralElement:()=>cN,getContextualTypeFromParent:()=>bL,getContextualTypeFromParentOrAncestorTypeNode:()=>eL,getCurrentTime:()=>hA,getDeclarationDiagnostics:()=>Jse,getDeclarationEmitExtensionForPath:()=>Fw,getDeclarationEmitOutputFilePath:()=>Fte,getDeclarationEmitOutputFilePathWorker:()=>D5,getDeclarationFromName:()=>cE,getDeclarationModifierFlagsFromSymbol:()=>Uf,getDeclarationOfKind:()=>Zo,getDeclarationsOfKind:()=>Lee,getDeclaredExpandoInitializer:()=>uw,getDecorators:()=>U0,getDefaultCompilerOptions:()=>cM,getDefaultExportInfoWorker:()=>RL,getDefaultFormatCodeSettings:()=>q9,getDefaultLibFileName:()=>EP,getDefaultLibFilePath:()=>mle,getDefaultLikeExportInfo:()=>ML,getDiagnosticText:()=>ave,getDiagnosticsWithinSpan:()=>Hoe,getDirectoryPath:()=>Xr,getDirectoryToWatchFailedLookupLocation:()=>Sq,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>vae,getDocumentPositionMapper:()=>bG,getESModuleInterop:()=>Om,getEditsForFileRename:()=>tce,getEffectiveBaseTypeNode:()=>Bd,getEffectiveConstraintOfTypeParameter:()=>wk,getEffectiveContainerForJSDocTemplateTag:()=>v5,getEffectiveImplementsTypeNodes:()=>tC,getEffectiveInitializer:()=>lw,getEffectiveJSDocHost:()=>D2,getEffectiveModifierFlags:()=>Ju,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Hte,getEffectiveModifierFlagsNoCache:()=>Gte,getEffectiveReturnTypeNode:()=>yp,getEffectiveSetAccessorTypeAnnotationNode:()=>Rte,getEffectiveTypeAnnotationNode:()=>Xl,getEffectiveTypeParameterDeclarations:()=>q0,getEffectiveTypeRoots:()=>m3,getElementOrPropertyAccessArgumentExpressionOrName:()=>h5,getElementOrPropertyAccessName:()=>rh,getElementsOfBindingOrAssignmentPattern:()=>MC,getEmitDeclarations:()=>qf,getEmitFlags:()=>Sa,getEmitHelpers:()=>bF,getEmitModuleDetectionKind:()=>hne,getEmitModuleKind:()=>Ql,getEmitModuleResolutionKind:()=>Yl,getEmitScriptTarget:()=>La,getEmitStandardClassFields:()=>bne,getEnclosingBlockScopeContainer:()=>Nm,getEnclosingContainer:()=>YJ,getEncodedSemanticClassifications:()=>dG,getEncodedSyntacticClassifications:()=>mG,getEndLinePosition:()=>$P,getEntityNameFromTypeNode:()=>sw,getEntrypointsFromPackageJsonInfo:()=>eU,getErrorCountForSummary:()=>N9,getErrorSpanForNode:()=>Lv,getErrorSummaryText:()=>Tae,getEscapedTextOfIdentifierOrLiteral:()=>fE,getEscapedTextOfJsxAttributeName:()=>JE,getEscapedTextOfJsxNamespacedName:()=>Mx,getExpandoInitializer:()=>u1,getExportAssignmentExpression:()=>yz,getExportInfoMap:()=>qA,getExportNeedsImportStarHelper:()=>sse,getExpressionAssociativity:()=>kz,getExpressionPrecedence:()=>dE,getExternalHelpersModuleName:()=>E8,getExternalModuleImportEqualsDeclarationExpression:()=>iE,getExternalModuleName:()=>Qk,getExternalModuleNameFromDeclaration:()=>Nte,getExternalModuleNameFromPath:()=>Az,getExternalModuleNameLiteral:()=>tT,getExternalModuleRequireArgument:()=>sz,getFallbackOptions:()=>uA,getFileEmitOutput:()=>rae,getFileMatcherPatterns:()=>Z5,getFileNamesFromConfigSpecs:()=>f3,getFileWatcherEventKind:()=>XB,getFilesInErrorForSummary:()=>I9,getFirstConstructorWithBody:()=>yg,getFirstIdentifier:()=>tf,getFirstNonSpaceCharacterPosition:()=>Roe,getFirstProjectOutput:()=>zU,getFixableErrorSpanExpression:()=>KH,getFormatCodeSettingsForWriting:()=>IL,getFullWidth:()=>HP,getFunctionFlags:()=>Sl,getHeritageClause:()=>Cw,getHostSignatureFromJSDoc:()=>_1,getIdentifierAutoGenerate:()=>n1e,getIdentifierGeneratedImportReference:()=>are,getIdentifierTypeArguments:()=>M2,getImmediatelyInvokedFunctionExpression:()=>T2,getImpliedNodeFormatForFile:()=>pA,getImpliedNodeFormatForFileWorker:()=>aq,getImportNeedsImportDefaultHelper:()=>xU,getImportNeedsImportStarHelper:()=>ZO,getIndentSize:()=>aC,getIndentString:()=>C5,getInferredLibraryNameResolveFrom:()=>v9,getInitializedVariables:()=>kE,getInitializerOfBinaryExpression:()=>uz,getInitializerOfBindingOrAssignmentElement:()=>P8,getInterfaceBaseTypeNodes:()=>uE,getInternalEmitFlags:()=>Wp,getInvokedExpression:()=>o5,getIsolatedModules:()=>pd,getJSDocAugmentsTag:()=>ree,getJSDocClassTag:()=>fJ,getJSDocCommentRanges:()=>ez,getJSDocCommentsAndTags:()=>fz,getJSDocDeprecatedTag:()=>pJ,getJSDocDeprecatedTagNoCache:()=>uee,getJSDocEnumTag:()=>dJ,getJSDocHost:()=>Tx,getJSDocImplementsTags:()=>iee,getJSDocOverrideTagNoCache:()=>lee,getJSDocParameterTags:()=>Pk,getJSDocParameterTagsNoCache:()=>KK,getJSDocPrivateTag:()=>E0e,getJSDocPrivateTagNoCache:()=>aee,getJSDocProtectedTag:()=>D0e,getJSDocProtectedTagNoCache:()=>oee,getJSDocPublicTag:()=>C0e,getJSDocPublicTagNoCache:()=>see,getJSDocReadonlyTag:()=>P0e,getJSDocReadonlyTagNoCache:()=>cee,getJSDocReturnTag:()=>_ee,getJSDocReturnType:()=>NP,getJSDocRoot:()=>oE,getJSDocSatisfiesExpressionType:()=>pV,getJSDocSatisfiesTag:()=>mJ,getJSDocTags:()=>c1,getJSDocTagsNoCache:()=>A0e,getJSDocTemplateTag:()=>w0e,getJSDocThisTag:()=>k7,getJSDocType:()=>o1,getJSDocTypeAliasName:()=>gW,getJSDocTypeAssertionType:()=>pO,getJSDocTypeParameterDeclarations:()=>N5,getJSDocTypeParameterTags:()=>eee,getJSDocTypeParameterTagsNoCache:()=>tee,getJSDocTypeTag:()=>a1,getJSXImplicitImportBase:()=>X5,getJSXRuntimeImport:()=>Q5,getJSXTransformEnabled:()=>$5,getKeyForCompilerOptions:()=>QW,getLanguageVariant:()=>zw,getLastChild:()=>Hz,getLeadingCommentRanges:()=>lg,getLeadingCommentRangesOfNode:()=>KJ,getLeftmostAccessExpression:()=>DE,getLeftmostExpression:()=>uC,getLibraryNameFromLibFileName:()=>iq,getLineAndCharacterOfPosition:()=>Ka,getLineInfo:()=>yU,getLineOfLocalPosition:()=>gE,getLineOfLocalPositionFromLineMap:()=>w2,getLineStartPositionForPosition:()=>Cp,getLineStarts:()=>Zg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>sne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>ine,getLinesBetweenPositions:()=>R4,getLinesBetweenRangeEndAndRangeStart:()=>Wz,getLinesBetweenRangeEndPositions:()=>gye,getLiteralText:()=>Uee,getLocalNameForExternalImport:()=>LC,getLocalSymbolForExportDefault:()=>cC,getLocaleSpecificMessage:()=>ds,getLocaleTimeString:()=>gA,getMappedContextSpan:()=>BH,getMappedDocumentSpan:()=>gL,getMappedLocation:()=>z3,getMatchedFileSpec:()=>Dq,getMatchedIncludeSpec:()=>Pq,getMeaningFromDeclaration:()=>SA,getMeaningFromLocation:()=>eS,getMembersOfDeclaration:()=>ite,getModeForFileReference:()=>g9,getModeForResolutionAtIndex:()=>eq,getModeForUsageLocation:()=>vd,getModifiedTime:()=>_x,getModifiers:()=>Pv,getModuleInstanceState:()=>fh,getModuleNameStringLiteralAt:()=>T9,getModuleSpecifierEndingPreference:()=>rV,getModuleSpecifierResolverHost:()=>OH,getNameForExportedSymbol:()=>wL,getNameFromIndexInfo:()=>Zee,getNameFromPropertyName:()=>OA,getNameOfAccessExpression:()=>cne,getNameOfCompilerOptionValue:()=>OW,getNameOfDeclaration:()=>us,getNameOfExpando:()=>cz,getNameOfJSDocTypedef:()=>ZK,getNameOrArgument:()=>pw,getNameTable:()=>a$,getNamesForExportedSymbol:()=>Goe,getNamespaceDeclarationNode:()=>Yk,getNewLineCharacter:()=>Yh,getNewLineKind:()=>UA,getNewLineOrDefaultFromHost:()=>c0,getNewTargetContainer:()=>dte,getNextJSDocCommentLocation:()=>pz,getNodeForGeneratedName:()=>A8,getNodeId:()=>Va,getNodeKind:()=>db,getNodeModifiers:()=>j3,getNodeModulePathParts:()=>oF,getNonAssignedNameOfDeclaration:()=>T7,getNonAssignmentOperatorForCompoundAssignment:()=>b3,getNonAugmentationDeclaration:()=>qJ,getNonDecoratorTokenPosOfNode:()=>JJ,getNormalizedAbsolutePath:()=>cs,getNormalizedAbsolutePathWithoutRoot:()=>tJ,getNormalizedPathComponents:()=>gP,getObjectFlags:()=>Ir,getOperator:()=>Ez,getOperatorAssociativity:()=>Cz,getOperatorPrecedence:()=>Pw,getOptionFromName:()=>wW,getOptionsForLibraryResolution:()=>ZW,getOptionsNameMap:()=>BC,getOrCreateEmitNode:()=>uu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Ure,getOrUpdate:()=>T4,getOriginalNode:()=>cc,getOriginalNodeId:()=>_u,getOriginalSourceFile:()=>aye,getOutputDeclarationFileName:()=>P3,getOutputExtension:()=>o9,getOutputFileNames:()=>d2e,getOutputPathsFor:()=>D3,getOutputPathsForBundle:()=>E3,getOwnEmitOutputFilePath:()=>Ite,getOwnKeys:()=>Qg,getOwnValues:()=>ox,getPackageJsonInfo:()=>ob,getPackageJsonTypesVersionsPaths:()=>IO,getPackageJsonsVisibleToFile:()=>Uoe,getPackageNameFromTypesPackageName:()=>h3,getPackageScopeForPath:()=>Q8,getParameterSymbolFromJSDoc:()=>Sw,getParameterTypeNode:()=>wye,getParentNodeInSpan:()=>MA,getParseTreeNode:()=>ls,getParsedCommandLineOfConfigFile:()=>L8,getPathComponents:()=>bl,getPathComponentsRelativeTo:()=>rJ,getPathFromPathComponents:()=>z0,getPathUpdater:()=>yG,getPathsBasePath:()=>P5,getPatternFromSpec:()=>tV,getPendingEmitKind:()=>ZC,getPositionOfLineAndCharacter:()=>SP,getPossibleGenericSignatures:()=>TH,getPossibleOriginalInputExtensionForExtension:()=>Ote,getPossibleTypeArgumentsInfo:()=>kH,getPreEmitDiagnostics:()=>g2e,getPrecedingNonSpaceCharacterPosition:()=>yL,getPrivateIdentifier:()=>EU,getProperties:()=>kU,getProperty:()=>jI,getPropertyArrayElementValue:()=>ute,getPropertyAssignmentAliasLikeExpression:()=>Dte,getPropertyNameForPropertyNameNode:()=>P2,getPropertyNameForUniqueESSymbol:()=>iye,getPropertyNameFromType:()=>xp,getPropertyNameOfBindingOrAssignmentElement:()=>mW,getPropertySymbolFromBindingElement:()=>dL,getPropertySymbolsFromContextualType:()=>uM,getQuoteFromPreference:()=>MH,getQuotePreference:()=>Df,getRangesWhere:()=>Ej,getRefactorContextSpan:()=>mT,getReferencedFileLocation:()=>N3,getRegexFromPattern:()=>ry,getRegularExpressionForWildcard:()=>wE,getRegularExpressionsForWildcards:()=>Y5,getRelativePathFromDirectory:()=>Em,getRelativePathFromFile:()=>yP,getRelativePathToDirectoryOrUrl:()=>px,getRenameLocation:()=>BA,getReplacementSpanForContextToken:()=>PH,getResolutionDiagnostic:()=>lq,getResolutionModeOverride:()=>$C,getResolveJsonModule:()=>$v,getResolvePackageJsonExports:()=>Qz,getResolvePackageJsonImports:()=>Tye,getResolvedExternalModuleName:()=>E5,getRestIndicatorOfBindingOrAssignmentElement:()=>mO,getRestParameterElementType:()=>tz,getRightMostAssignedExpression:()=>_w,getRootDeclaration:()=>Fm,getRootDirectoryOfResolutionCache:()=>bae,getRootLength:()=>km,getRootPathSplitLength:()=>J2e,getScriptKind:()=>UH,getScriptKindFromFileName:()=>eF,getScriptTargetFeatures:()=>fF,getSelectedEffectiveModifierFlags:()=>Px,getSelectedSyntacticModifierFlags:()=>Ute,getSemanticClassifications:()=>Yoe,getSemanticJsxChildren:()=>rC,getSetAccessorTypeAnnotationNode:()=>Lte,getSetAccessorValueParameter:()=>hE,getSetExternalModuleIndicator:()=>Vw,getShebang:()=>b7,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>_z,getSingleVariableOfVariableStatement:()=>Kk,getSnapshotText:()=>s6,getSnippetElement:()=>RV,getSourceFileOfModule:()=>W7,getSourceFileOfNode:()=>Mn,getSourceFilePathInNewDir:()=>w5,getSourceFilePathInNewDirWorker:()=>A5,getSourceFileVersionAsHashFromText:()=>O9,getSourceFilesToEmit:()=>Nz,getSourceMapRange:()=>y1,getSourceMapper:()=>pce,getSourceTextOfNodeFromSourceFile:()=>Fv,getSpanOfTokenAtPosition:()=>Im,getSpellingSuggestion:()=>P4,getStartPositionOfLine:()=>Z0,getStartPositionOfRange:()=>TE,getStartsOnNewLine:()=>WE,getStaticPropertiesAndClassStaticBlock:()=>t9,getStrictOptionValue:()=>bp,getStringComparer:()=>D4,getSuperCallFromStatement:()=>KO,getSuperContainer:()=>rw,getSupportedCodeFixes:()=>i$,getSupportedExtensions:()=>AE,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>qw,getSwitchedType:()=>$H,getSymbolId:()=>ta,getSymbolNameForPrivateIdentifier:()=>Ew,getSymbolTarget:()=>Loe,getSyntacticClassifications:()=>Zoe,getSyntacticModifierFlags:()=>ty,getSyntacticModifierFlagsNoCache:()=>Lz,getSynthesizedDeepClone:()=>jo,getSynthesizedDeepCloneWithReplacements:()=>jA,getSynthesizedDeepClones:()=>gb,getSynthesizedDeepClonesWithReplacements:()=>qH,getSyntheticLeadingComments:()=>yC,getSyntheticTrailingComments:()=>l8,getTargetLabel:()=>X9,getTargetOfBindingOrAssignmentElement:()=>uy,getTemporaryModuleResolutionState:()=>X8,getTextOfConstantValue:()=>qee,getTextOfIdentifierOrLiteral:()=>gp,getTextOfJSDocComment:()=>FP,getTextOfJsxAttributeName:()=>Zw,getTextOfJsxNamespacedName:()=>zE,getTextOfNode:()=>Qc,getTextOfNodeFromSourceText:()=>Y4,getTextOfPropertyName:()=>Jk,getThisContainer:()=>__,getThisParameter:()=>Uv,getTokenAtPosition:()=>qi,getTokenPosOfNode:()=>b2,getTokenSourceMapRange:()=>e1e,getTouchingPropertyName:()=>m_,getTouchingToken:()=>R3,getTrailingCommentRanges:()=>n1,getTrailingSemicolonDeferringWriter:()=>wz,getTransformFlagsSubtreeExclusions:()=>Xne,getTransformers:()=>jU,getTsBuildInfoEmitOutputFilePath:()=>i0,getTsConfigObjectLiteralExpression:()=>tE,getTsConfigPropArrayElementValue:()=>n5,getTypeAnnotationNode:()=>Mte,getTypeArgumentOrTypeParameterList:()=>voe,getTypeKeywordOfTypeOnlyImport:()=>RH,getTypeNode:()=>ire,getTypeNodeIfAccessible:()=>H3,getTypeParameterFromJsDoc:()=>Ste,getTypeParameterOwner:()=>b0e,getTypesPackageName:()=>BO,getUILocale:()=>uK,getUniqueName:()=>sS,getUniqueSymbolId:()=>Moe,getUseDefineForClassFields:()=>Uw,getWatchErrorSummaryDiagnosticMessage:()=>Tq,getWatchFactory:()=>HU,group:()=>E4,groupBy:()=>aK,guessIndentation:()=>Fee,handleNoEmitOptions:()=>oq,hasAbstractModifier:()=>Gv,hasAccessorModifier:()=>zd,hasAmbientModifier:()=>Oz,hasChangesInResolutions:()=>RJ,hasChildOfKind:()=>PA,hasContextSensitiveParameters:()=>sF,hasDecorators:()=>Vf,hasDocComment:()=>hoe,hasDynamicName:()=>ey,hasEffectiveModifier:()=>M_,hasEffectiveModifiers:()=>I5,hasEffectiveReadonlyModifier:()=>yE,hasExtension:()=>fx,hasIndexSignature:()=>GH,hasInitializer:()=>Q0,hasInvalidEscape:()=>Dz,hasJSDocNodes:()=>Z_,hasJSDocParameterTags:()=>nee,hasJSFileExtension:()=>Xv,hasJsonModuleEmitEnabled:()=>U5,hasOnlyExpressionInitializer:()=>y2,hasOverrideModifier:()=>F5,hasPossibleExternalModuleReference:()=>Qee,hasProperty:()=>so,hasPropertyAccessExpressionWithName:()=>TA,hasQuestionToken:()=>xx,hasRecordedExternalHelpers:()=>Wre,hasResolutionModeOverride:()=>Bne,hasRestParameter:()=>FJ,hasScopeMarker:()=>Cee,hasStaticModifier:()=>Yc,hasSyntacticModifier:()=>Mr,hasSyntacticModifiers:()=>Wte,hasTSFileExtension:()=>O2,hasTabstop:()=>Mne,hasTrailingDirectorySeparator:()=>zh,hasType:()=>j7,hasTypeArguments:()=>K0e,hasZeroOrOneAsteriskCharacter:()=>Yz,helperString:()=>JV,hostGetCanonicalFileName:()=>$h,hostUsesCaseSensitiveFileNames:()=>Iw,idText:()=>ur,identifierIsThisKeyword:()=>Fz,identifierToKeywordKind:()=>s1,identity:()=>No,identitySourceMapConsumer:()=>YO,ignoreSourceNewlines:()=>BV,ignoredPaths:()=>mP,importDefaultHelper:()=>zF,importFromModuleSpecifier:()=>aE,importNameElisionDisabled:()=>Xz,importStarHelper:()=>_8,indexOfAnyCharCode:()=>XZ,indexOfNode:()=>Bk,indicesOf:()=>nP,inferredTypesContainingFile:()=>YC,injectClassNamedEvaluationHelperBlockIfMissing:()=>i9,injectClassThisAssignmentIfMissing:()=>dse,insertImports:()=>J3,insertLeadingStatement:()=>b1e,insertSorted:()=>j0,insertStatementAfterCustomPrologue:()=>v2,insertStatementAfterStandardPrologue:()=>W0e,insertStatementsAfterCustomPrologue:()=>jJ,insertStatementsAfterStandardPrologue:()=>Am,intersperse:()=>Tv,intrinsicTagNameToString:()=>dV,introducesArgumentsExoticObject:()=>cte,inverseJsxOptionMap:()=>p3,isAbstractConstructorSymbol:()=>ane,isAbstractModifier:()=>mre,isAccessExpression:()=>ho,isAccessibilityModifier:()=>EH,isAccessor:()=>G0,isAccessorModifier:()=>hre,isAliasSymbolDeclaration:()=>tye,isAliasableExpression:()=>kw,isAmbientModule:()=>lu,isAmbientPropertyDeclaration:()=>GJ,isAnonymousFunctionDefinition:()=>pE,isAnyDirectorySeparator:()=>ZB,isAnyImportOrBareOrAccessedRequire:()=>Xee,isAnyImportOrReExport:()=>QP,isAnyImportSyntax:()=>S2,isAnySupportedFileExtension:()=>Pye,isApplicableVersionedTypesKey:()=>Z8,isArgumentExpressionOfElementAccess:()=>mH,isArray:()=>ss,isArrayBindingElement:()=>I7,isArrayBindingOrAssignmentElement:()=>JP,isArrayBindingOrAssignmentPattern:()=>DJ,isArrayBindingPattern:()=>j2,isArrayLiteralExpression:()=>Vu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>a0,isArrayTypeNode:()=>KF,isArrowFunction:()=>Co,isAsExpression:()=>h8,isAssertClause:()=>Cre,isAssertEntry:()=>f1e,isAssertionExpression:()=>h2,isAssertsKeyword:()=>pre,isAssignmentDeclaration:()=>sE,isAssignmentExpression:()=>pl,isAssignmentOperator:()=>Xh,isAssignmentPattern:()=>$4,isAssignmentTarget:()=>hg,isAsteriskToken:()=>d8,isAsyncFunction:()=>_E,isAsyncModifier:()=>HE,isAutoAccessorPropertyDeclaration:()=>u_,isAwaitExpression:()=>cy,isAwaitKeyword:()=>GV,isBigIntLiteral:()=>$F,isBinaryExpression:()=>Yn,isBinaryOperatorToken:()=>Zre,isBindableObjectDefinePropertyCall:()=>C2,isBindableStaticAccessExpression:()=>Jv,isBindableStaticElementAccessExpression:()=>g5,isBindableStaticNameExpression:()=>E2,isBindingElement:()=>Ma,isBindingElementOfBareOrAccessedRequire:()=>hte,isBindingName:()=>m2,isBindingOrAssignmentElement:()=>vee,isBindingOrAssignmentPattern:()=>jP,isBindingPattern:()=>Ms,isBlock:()=>Ds,isBlockOrCatchScoped:()=>zJ,isBlockScope:()=>$J,isBlockScopedContainerTopLevel:()=>$ee,isBooleanLiteral:()=>G4,isBreakOrContinueStatement:()=>U4,isBreakStatement:()=>l1e,isBuildInfoFile:()=>Vse,isBuilderProgram:()=>kae,isBundle:()=>eW,isBundleFileTextLike:()=>lne,isCallChain:()=>p2,isCallExpression:()=>Ws,isCallExpressionTarget:()=>lH,isCallLikeExpression:()=>Iv,isCallLikeOrFunctionLikeExpression:()=>PJ,isCallOrNewExpression:()=>Dm,isCallOrNewExpressionTarget:()=>uH,isCallSignatureDeclaration:()=>SC,isCallToHelper:()=>qE,isCaseBlock:()=>t3,isCaseClause:()=>PC,isCaseKeyword:()=>yre,isCaseOrDefaultClause:()=>M7,isCatchClause:()=>ib,isCatchClauseVariableDeclaration:()=>Lne,isCatchClauseVariableDeclarationOrBindingElement:()=>VJ,isCheckJsEnabledForFile:()=>$w,isChildOfNodeWithKind:()=>U0e,isCircularBuildOrder:()=>_T,isClassDeclaration:()=>Zc,isClassElement:()=>Ml,isClassExpression:()=>Bl,isClassInstanceProperty:()=>gee,isClassLike:()=>ei,isClassMemberModifier:()=>kJ,isClassNamedEvaluationHelperBlock:()=>uT,isClassOrTypeElement:()=>N7,isClassStaticBlockDeclaration:()=>rc,isClassThisAssignmentBlock:()=>x3,isCollapsedRange:()=>mye,isColonToken:()=>_re,isCommaExpression:()=>C8,isCommaListExpression:()=>KE,isCommaSequence:()=>s3,isCommaToken:()=>ure,isComment:()=>aL,isCommonJsExportPropertyAssignment:()=>e5,isCommonJsExportedExpression:()=>ate,isCompoundAssignment:()=>v3,isComputedNonLiteralName:()=>YP,isComputedPropertyName:()=>Na,isConciseBody:()=>O7,isConditionalExpression:()=>DC,isConditionalTypeNode:()=>CC,isConstTypeReference:()=>eh,isConstructSignatureDeclaration:()=>g8,isConstructorDeclaration:()=>Cc,isConstructorTypeNode:()=>XE,isContextualKeyword:()=>S5,isContinueStatement:()=>c1e,isCustomPrologue:()=>tw,isDebuggerStatement:()=>u1e,isDeclaration:()=>ku,isDeclarationBindingElement:()=>RP,isDeclarationFileName:()=>Jl,isDeclarationName:()=>ih,isDeclarationNameOfEnumOrNamespace:()=>Uz,isDeclarationReadonly:()=>Q7,isDeclarationStatement:()=>wee,isDeclarationWithTypeParameterChildren:()=>QJ,isDeclarationWithTypeParameters:()=>XJ,isDecorator:()=>Zl,isDecoratorTarget:()=>ioe,isDefaultClause:()=>S8,isDefaultImport:()=>Sx,isDefaultModifier:()=>YF,isDefaultedExpandoInitializer:()=>yte,isDeleteExpression:()=>Sre,isDeleteTarget:()=>gz,isDeprecatedDeclaration:()=>AL,isDestructuringAssignment:()=>Qh,isDiagnosticWithLocation:()=>ZH,isDiskPathRoot:()=>KB,isDoStatement:()=>a1e,isDocumentRegistryEntry:()=>HA,isDotDotDotToken:()=>XF,isDottedName:()=>bE,isDynamicName:()=>k5,isESSymbolIdentifier:()=>sye,isEffectiveExternalModule:()=>vx,isEffectiveModuleDeclaration:()=>Gee,isEffectiveStrictModeSourceFile:()=>HJ,isElementAccessChain:()=>hJ,isElementAccessExpression:()=>ko,isEmittedFileOfProgram:()=>Hse,isEmptyArrayLiteral:()=>Yte,isEmptyBindingElement:()=>QK,isEmptyBindingPattern:()=>XK,isEmptyObjectLiteral:()=>Jz,isEmptyStatement:()=>YV,isEmptyStringLiteral:()=>iz,isEntityName:()=>Y_,isEntityNameExpression:()=>gc,isEnumConst:()=>Mv,isEnumDeclaration:()=>T1,isEnumMember:()=>sb,isEqualityOperatorKind:()=>SL,isEqualsGreaterThanToken:()=>fre,isExclamationToken:()=>m8,isExcludedFile:()=>fie,isExclusivelyTypeOnlyImportOrExport:()=>tq,isExpandoPropertyDeclaration:()=>lF,isExportAssignment:()=>hc,isExportDeclaration:()=>Kc,isExportModifier:()=>Wx,isExportName:()=>fO,isExportNamespaceAsDefaultDeclaration:()=>H7,isExportOrDefaultModifier:()=>w8,isExportSpecifier:()=>Eu,isExportsIdentifier:()=>k2,isExportsOrModuleExportsOrAlias:()=>cb,isExpression:()=>ut,isExpressionNode:()=>mg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>coe,isExpressionOfOptionalChainRoot:()=>D7,isExpressionStatement:()=>Il,isExpressionWithTypeArguments:()=>t0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Mw,isExternalModule:()=>Bc,isExternalModuleAugmentation:()=>Ov,isExternalModuleImportEqualsDeclaration:()=>l1,isExternalModuleIndicator:()=>zP,isExternalModuleNameRelative:()=>Al,isExternalModuleReference:()=>Bm,isExternalModuleSymbol:()=>IA,isExternalOrCommonJsModule:()=>K_,isFileLevelReservedGeneratedIdentifier:()=>MP,isFileLevelUniqueName:()=>U7,isFileProbablyExternalModule:()=>I8,isFirstDeclarationOfSymbolParameter:()=>JH,isFixablePromiseHandler:()=>TG,isForInOrOfStatement:()=>Ok,isForInStatement:()=>iO,isForInitializer:()=>zf,isForOfStatement:()=>y8,isForStatement:()=>z2,isFunctionBlock:()=>jv,isFunctionBody:()=>AJ,isFunctionDeclaration:()=>al,isFunctionExpression:()=>uo,isFunctionExpressionOrArrowFunction:()=>Yv,isFunctionLike:()=>As,isFunctionLikeDeclaration:()=>To,isFunctionLikeKind:()=>hx,isFunctionLikeOrClassStaticBlockDeclaration:()=>Nk,isFunctionOrConstructorTypeNode:()=>yee,isFunctionOrModuleBlock:()=>CJ,isFunctionSymbol:()=>bte,isFunctionTypeNode:()=>Tg,isFutureReservedKeyword:()=>nye,isGeneratedIdentifier:()=>Lo,isGeneratedPrivateIdentifier:()=>d2,isGetAccessor:()=>X0,isGetAccessorDeclaration:()=>Sf,isGetOrSetAccessorDeclaration:()=>C7,isGlobalDeclaration:()=>$Se,isGlobalScopeAugmentation:()=>jd,isGrammarError:()=>Vee,isHeritageClause:()=>rf,isHoistedFunction:()=>Z7,isHoistedVariableStatement:()=>K7,isIdentifier:()=>Ie,isIdentifierANonContextualKeyword:()=>x5,isIdentifierName:()=>Ete,isIdentifierOrThisTypeNode:()=>$re,isIdentifierPart:()=>r1,isIdentifierStart:()=>ug,isIdentifierText:()=>hf,isIdentifierTypePredicate:()=>lte,isIdentifierTypeReference:()=>Ane,isIfStatement:()=>J2,isIgnoredFileFromWildCardWatching:()=>lA,isImplicitGlob:()=>eV,isImportAttribute:()=>Ere,isImportAttributeName:()=>mee,isImportAttributes:()=>sO,isImportCall:()=>ef,isImportClause:()=>Rm,isImportDeclaration:()=>kl,isImportEqualsDeclaration:()=>Kl,isImportKeyword:()=>$E,isImportMeta:()=>Wk,isImportOrExportSpecifier:()=>gx,isImportOrExportSpecifierName:()=>Ooe,isImportSpecifier:()=>E_,isImportTypeAssertionContainer:()=>_1e,isImportTypeNode:()=>ch,isImportableFile:()=>uG,isInComment:()=>s0,isInCompoundLikeAssignment:()=>dz,isInExpressionContext:()=>l5,isInJSDoc:()=>ow,isInJSFile:()=>Qn,isInJSXText:()=>moe,isInJsonFile:()=>_5,isInNonReferenceComment:()=>xoe,isInReferenceComment:()=>Soe,isInRightSideOfInternalImportEqualsDeclaration:()=>G9,isInString:()=>nS,isInTemplateString:()=>xH,isInTopLevelContext:()=>s5,isInTypeQuery:()=>A2,isIncrementalCompilation:()=>Ww,isIndexSignatureDeclaration:()=>R2,isIndexedAccessTypeNode:()=>$x,isInferTypeNode:()=>qx,isInfinityOrNaNString:()=>RE,isInitializedProperty:()=>rA,isInitializedVariable:()=>Jw,isInsideJsxElement:()=>iL,isInsideJsxElementOrAttribute:()=>doe,isInsideNodeModules:()=>WA,isInsideTemplateLiteral:()=>AA,isInstanceOfExpression:()=>O5,isInstantiatedModule:()=>pU,isInterfaceDeclaration:()=>Wu,isInternalDeclaration:()=>MU,isInternalModuleImportEqualsDeclaration:()=>Gk,isInternalName:()=>fW,isIntersectionTypeNode:()=>kC,isIntrinsicJsxName:()=>sC,isIterationStatement:()=>$0,isJSDoc:()=>Qp,isJSDocAllType:()=>Nre,isJSDocAugmentsTag:()=>NC,isJSDocAuthorTag:()=>g1e,isJSDocCallbackTag:()=>nW,isJSDocClassTag:()=>Fre,isJSDocCommentContainingNode:()=>R7,isJSDocConstructSignature:()=>Zk,isJSDocDeprecatedTag:()=>oW,isJSDocEnumTag:()=>x8,isJSDocFunctionType:()=>AC,isJSDocImplementsTag:()=>cW,isJSDocIndexSignature:()=>f5,isJSDocLikeText:()=>SW,isJSDocLink:()=>wre,isJSDocLinkCode:()=>Are,isJSDocLinkLike:()=>yx,isJSDocLinkPlain:()=>d1e,isJSDocMemberName:()=>k1,isJSDocNameReference:()=>r3,isJSDocNamepathType:()=>m1e,isJSDocNamespaceBody:()=>j0e,isJSDocNode:()=>Lk,isJSDocNonNullableType:()=>aO,isJSDocNullableType:()=>wC,isJSDocOptionalParameter:()=>Yw,isJSDocOptionalType:()=>tW,isJSDocOverloadTag:()=>IC,isJSDocOverrideTag:()=>cO,isJSDocParameterTag:()=>gd,isJSDocPrivateTag:()=>iW,isJSDocPropertyLikeTag:()=>OP,isJSDocPropertyTag:()=>Lre,isJSDocProtectedTag:()=>sW,isJSDocPublicTag:()=>rW,isJSDocReadonlyTag:()=>aW,isJSDocReturnTag:()=>lO,isJSDocSatisfiesExpression:()=>fV,isJSDocSatisfiesTag:()=>uO,isJSDocSeeTag:()=>h1e,isJSDocSignature:()=>C1,isJSDocTag:()=>Mk,isJSDocTemplateTag:()=>hd,isJSDocThisTag:()=>Ore,isJSDocThrowsTag:()=>v1e,isJSDocTypeAlias:()=>mp,isJSDocTypeAssertion:()=>a3,isJSDocTypeExpression:()=>q2,isJSDocTypeLiteral:()=>eT,isJSDocTypeTag:()=>i3,isJSDocTypedefTag:()=>FC,isJSDocUnknownTag:()=>y1e,isJSDocUnknownType:()=>Ire,isJSDocVariadicType:()=>oO,isJSXTagName:()=>Hk,isJsonEqual:()=>rF,isJsonSourceFile:()=>dp,isJsxAttribute:()=>$d,isJsxAttributeLike:()=>L7,isJsxAttributeName:()=>jne,isJsxAttributes:()=>rb,isJsxChild:()=>UP,isJsxClosingElement:()=>tb,isJsxClosingFragment:()=>Dre,isJsxElement:()=>kg,isJsxExpression:()=>n3,isJsxFragment:()=>nb,isJsxNamespacedName:()=>md,isJsxOpeningElement:()=>Gd,isJsxOpeningFragment:()=>Zx,isJsxOpeningLikeElement:()=>Zu,isJsxOpeningLikeElementTagName:()=>soe,isJsxSelfClosingElement:()=>W2,isJsxSpreadAttribute:()=>Kx,isJsxTagNameExpression:()=>X4,isJsxText:()=>zx,isJumpStatementTarget:()=>kA,isKeyword:()=>p_,isKeywordOrPunctuation:()=>b5,isKnownSymbol:()=>Dw,isLabelName:()=>pH,isLabelOfLabeledStatement:()=>fH,isLabeledStatement:()=>eb,isLateVisibilityPaintedStatement:()=>$7,isLeftHandSideExpression:()=>x_,isLeftHandSideOfAssignment:()=>dye,isLet:()=>Y7,isLineBreak:()=>xu,isLiteralComputedPropertyDeclarationName:()=>Tw,isLiteralExpression:()=>Av,isLiteralExpressionOfObject:()=>xJ,isLiteralImportTypeNode:()=>K0,isLiteralKind:()=>q4,isLiteralLikeAccess:()=>m5,isLiteralLikeElementAccess:()=>fw,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Q9,isLiteralTypeLikeExpression:()=>C1e,isLiteralTypeLiteral:()=>Tee,isLiteralTypeNode:()=>S1,isLocalName:()=>uh,isLogicalOperator:()=>$te,isLogicalOrCoalescingAssignmentExpression:()=>Mz,isLogicalOrCoalescingAssignmentOperator:()=>vE,isLogicalOrCoalescingBinaryExpression:()=>Lw,isLogicalOrCoalescingBinaryOperator:()=>Ow,isMappedTypeNode:()=>YE,isMemberName:()=>_g,isMetaProperty:()=>ZE,isMethodDeclaration:()=>kc,isMethodOrAccessor:()=>Ik,isMethodSignature:()=>xg,isMinusToken:()=>HV,isMissingDeclaration:()=>p1e,isModifier:()=>ra,isModifierKind:()=>Uh,isModifierLike:()=>Mo,isModuleAugmentationExternal:()=>UJ,isModuleBlock:()=>Hd,isModuleBody:()=>Eee,isModuleDeclaration:()=>Pc,isModuleExportsAccessExpression:()=>gg,isModuleIdentifier:()=>lz,isModuleName:()=>Yre,isModuleOrEnumDeclaration:()=>VP,isModuleReference:()=>Nee,isModuleSpecifierLike:()=>pL,isModuleWithStringLiteralName:()=>G7,isNameOfFunctionDeclaration:()=>hH,isNameOfModuleDeclaration:()=>gH,isNamedClassElement:()=>hee,isNamedDeclaration:()=>Ru,isNamedEvaluation:()=>L_,isNamedEvaluationSource:()=>Sz,isNamedExportBindings:()=>vJ,isNamedExports:()=>kp,isNamedImportBindings:()=>NJ,isNamedImports:()=>lh,isNamedImportsOrExports:()=>J5,isNamedTupleMember:()=>QE,isNamespaceBody:()=>R0e,isNamespaceExport:()=>jm,isNamespaceExportDeclaration:()=>b8,isNamespaceImport:()=>ly,isNamespaceReexportDeclaration:()=>gte,isNewExpression:()=>Kv,isNewExpressionTarget:()=>L3,isNoSubstitutionTemplateLiteral:()=>Vx,isNode:()=>I0e,isNodeArray:()=>wv,isNodeArrayMultiLine:()=>rne,isNodeDescendantOf:()=>zv,isNodeKind:()=>LP,isNodeLikeSystem:()=>zj,isNodeModulesDirectory:()=>m7,isNodeWithPossibleHoistedDeclaration:()=>Tte,isNonContextualKeyword:()=>bz,isNonExportDefaultModifier:()=>D1e,isNonGlobalAmbientModule:()=>WJ,isNonGlobalDeclaration:()=>Qoe,isNonNullAccess:()=>Rne,isNonNullChain:()=>P7,isNonNullExpression:()=>Qx,isNonStaticMethodOrAccessorWithPrivateName:()=>ase,isNotEmittedOrPartiallyEmittedNode:()=>M0e,isNotEmittedStatement:()=>KV,isNullishCoalesce:()=>yJ,isNumber:()=>Bh,isNumericLiteral:()=>R_,isNumericLiteralName:()=>Sg,isObjectBindingElementWithoutPropertyName:()=>LA,isObjectBindingOrAssignmentElement:()=>BP,isObjectBindingOrAssignmentPattern:()=>EJ,isObjectBindingPattern:()=>Gp,isObjectLiteralElement:()=>IJ,isObjectLiteralElementLike:()=>th,isObjectLiteralExpression:()=>xa,isObjectLiteralMethod:()=>qp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>t5,isObjectTypeDeclaration:()=>Nx,isOctalDigit:()=>v7,isOmittedExpression:()=>xl,isOptionalChain:()=>Tu,isOptionalChainRoot:()=>V4,isOptionalDeclaration:()=>BE,isOptionalJSDocPropertyLikeTag:()=>Qw,isOptionalTypeNode:()=>$V,isOuterExpression:()=>dO,isOutermostOptionalChain:()=>W4,isOverrideModifier:()=>gre,isPackedArrayLiteral:()=>lV,isParameter:()=>ms,isParameterDeclaration:()=>Wv,isParameterOrCatchClauseVariable:()=>uV,isParameterPropertyDeclaration:()=>F_,isParameterPropertyModifier:()=>H4,isParenthesizedExpression:()=>C_,isParenthesizedTypeNode:()=>Hx,isParseTreeNode:()=>z4,isPartOfTypeNode:()=>dg,isPartOfTypeQuery:()=>u5,isPartiallyEmittedExpression:()=>rO,isPatternMatch:()=>WI,isPinnedComment:()=>q7,isPlainJsFile:()=>GP,isPlusToken:()=>qV,isPossiblyTypeArgumentPosition:()=>wA,isPostfixUnaryExpression:()=>QV,isPrefixUnaryExpression:()=>x1,isPrivateIdentifier:()=>Di,isPrivateIdentifierClassElementDeclaration:()=>ju,isPrivateIdentifierPropertyAccessExpression:()=>Ak,isPrivateIdentifierSymbol:()=>Pte,isProgramBundleEmitBuildInfo:()=>cae,isProgramUptoDate:()=>sq,isPrologueDirective:()=>Up,isPropertyAccessChain:()=>E7,isPropertyAccessEntityNameExpression:()=>Rw,isPropertyAccessExpression:()=>Cr,isPropertyAccessOrQualifiedName:()=>See,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>bee,isPropertyAssignment:()=>el,isPropertyDeclaration:()=>Is,isPropertyName:()=>Rc,isPropertyNameLiteral:()=>Jd,isPropertySignature:()=>bf,isProtoSetter:()=>wte,isPrototypeAccess:()=>ny,isPrototypePropertyAssignment:()=>mw,isPunctuation:()=>vz,isPushOrUnshiftIdentifier:()=>xz,isQualifiedName:()=>k_,isQuestionDotToken:()=>QF,isQuestionOrExclamationToken:()=>Gre,isQuestionOrPlusOrMinusToken:()=>Qre,isQuestionToken:()=>oy,isRawSourceMap:()=>nse,isReadonlyKeyword:()=>dre,isReadonlyKeywordOrPlusOrMinusToken:()=>Xre,isRecognizedTripleSlashComment:()=>BJ,isReferenceFileLocation:()=>XC,isReferencedFile:()=>I1,isRegularExpressionLiteral:()=>WV,isRequireCall:()=>T_,isRequireVariableStatement:()=>oz,isRestParameter:()=>fg,isRestTypeNode:()=>XV,isReturnStatement:()=>$p,isReturnStatementWithFixablePromiseHandler:()=>JL,isRightSideOfAccessExpression:()=>Bz,isRightSideOfInstanceofExpression:()=>Qte,isRightSideOfPropertyAccess:()=>r6,isRightSideOfQualifiedName:()=>ooe,isRightSideOfQualifiedNameOrPropertyAccess:()=>SE,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Xte,isRootedDiskPath:()=>I_,isSameEntityName:()=>$k,isSatisfiesExpression:()=>xre,isScopeMarker:()=>kee,isSemicolonClassElement:()=>Tre,isSetAccessor:()=>qh,isSetAccessorDeclaration:()=>j_,isShebangTrivia:()=>iJ,isShiftOperatorOrHigher:()=>yW,isShorthandAmbientModuleSymbol:()=>Z4,isShorthandPropertyAssignment:()=>sf,isSignedNumericLiteral:()=>T5,isSimpleCopiableExpression:()=>ub,isSimpleInlineableExpression:()=>Xd,isSingleOrDoubleQuote:()=>cw,isSourceFile:()=>Li,isSourceFileFromLibrary:()=>$3,isSourceFileJS:()=>Bu,isSourceFileNotJS:()=>G0e,isSourceFileNotJson:()=>az,isSourceMapping:()=>rse,isSpecialPropertyDeclaration:()=>vte,isSpreadAssignment:()=>n0,isSpreadElement:()=>qd,isStatement:()=>Ai,isStatementButNotDeclaration:()=>WP,isStatementOrBlock:()=>Aee,isStatementWithLocals:()=>zee,isStatic:()=>zs,isStaticModifier:()=>Ux,isString:()=>os,isStringAKeyword:()=>rye,isStringANonContextualKeyword:()=>Cx,isStringAndEmptyAnonymousObjectIntersection:()=>boe,isStringDoubleQuoted:()=>d5,isStringLiteral:()=>ca,isStringLiteralLike:()=>$a,isStringLiteralOrJsxExpression:()=>Iee,isStringLiteralOrTemplate:()=>zoe,isStringOrNumericLiteralLike:()=>vf,isStringOrRegularExpressionOrTemplateLiteral:()=>CH,isStringTextContainingNode:()=>TJ,isSuperCall:()=>x2,isSuperKeyword:()=>GE,isSuperOrSuperProperty:()=>H0e,isSuperProperty:()=>f_,isSupportedSourceFileName:()=>Ene,isSwitchStatement:()=>v8,isSyntaxList:()=>OC,isSyntheticExpression:()=>s1e,isSyntheticReference:()=>Yx,isTagName:()=>dH,isTaggedTemplateExpression:()=>B2,isTaggedTemplateTag:()=>roe,isTemplateExpression:()=>tO,isTemplateHead:()=>bC,isTemplateLiteral:()=>Fk,isTemplateLiteralKind:()=>H0,isTemplateLiteralToken:()=>pee,isTemplateLiteralTypeNode:()=>i1e,isTemplateLiteralTypeSpan:()=>vre,isTemplateMiddle:()=>lre,isTemplateMiddleOrTemplateTail:()=>w7,isTemplateSpan:()=>e3,isTemplateTail:()=>UV,isTextWhiteSpaceLike:()=>Eoe,isThis:()=>i6,isThisContainerOrFunctionBlock:()=>pte,isThisIdentifier:()=>Hv,isThisInTypeQuery:()=>Dx,isThisInitializedDeclaration:()=>a5,isThisInitializedObjectBindingExpression:()=>mte,isThisProperty:()=>iw,isThisTypeNode:()=>eO,isThisTypeParameter:()=>jE,isThisTypePredicate:()=>q0e,isThrowStatement:()=>ZV,isToken:()=>mx,isTokenKind:()=>SJ,isTraceEnabled:()=>_h,isTransientSymbol:()=>wm,isTrivia:()=>nC,isTryStatement:()=>V2,isTupleTypeNode:()=>TC,isTypeAlias:()=>yw,isTypeAliasDeclaration:()=>Xp,isTypeAssertionExpression:()=>bre,isTypeDeclaration:()=>mC,isTypeElement:()=>g2,isTypeKeyword:()=>B3,isTypeKeywordToken:()=>NH,isTypeKeywordTokenOrIdentifier:()=>lL,isTypeLiteralNode:()=>nf,isTypeNode:()=>Ei,isTypeNodeKind:()=>Gz,isTypeOfExpression:()=>EC,isTypeOnlyExportDeclaration:()=>dee,isTypeOnlyImportDeclaration:()=>A7,isTypeOnlyImportOrExportDeclaration:()=>Nv,isTypeOperatorNode:()=>Gx,isTypeParameterDeclaration:()=>Ko,isTypePredicateNode:()=>ZF,isTypeQueryNode:()=>xC,isTypeReferenceNode:()=>Tp,isTypeReferenceType:()=>B7,isTypeUsableAsPropertyName:()=>Sp,isUMDExportSymbol:()=>B5,isUnaryExpression:()=>wJ,isUnaryExpressionWithWrite:()=>xee,isUnicodeIdentifierStart:()=>h7,isUnionTypeNode:()=>b1,isUnparsedNode:()=>bJ,isUnparsedPrepend:()=>Pre,isUnparsedSource:()=>U2,isUnparsedTextLike:()=>fee,isUrl:()=>OK,isValidBigIntString:()=>iF,isValidESSymbolDeclaration:()=>ote,isValidTypeOnlyAliasUseSite:()=>h1,isValueSignatureDeclaration:()=>kte,isVarAwaitUsing:()=>KP,isVarConst:()=>Vk,isVarUsing:()=>ew,isVariableDeclaration:()=>Ni,isVariableDeclarationInVariableStatement:()=>eE,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Bv,isVariableDeclarationInitializedToRequire:()=>p5,isVariableDeclarationList:()=>Tl,isVariableLike:()=>Uk,isVariableLikeOrAccessor:()=>ste,isVariableStatement:()=>uc,isVoidExpression:()=>Xx,isWatchSet:()=>hye,isWhileStatement:()=>o1e,isWhiteSpaceLike:()=>Kg,isWhiteSpaceSingleLine:()=>Md,isWithStatement:()=>kre,isWriteAccess:()=>Ax,isWriteOnlyAccess:()=>j5,isYieldExpression:()=>nO,jsxModeNeedsExplicitImport:()=>rG,keywordPart:()=>J_,last:()=>Pa,lastOrUndefined:()=>qo,length:()=>bn,libMap:()=>kO,libs:()=>z8,lineBreakPart:()=>c6,linkNamePart:()=>Ioe,linkPart:()=>VH,linkTextPart:()=>hL,listFiles:()=>kq,loadModuleFromGlobalCache:()=>Bie,loadWithModeAwareCache:()=>fA,makeIdentifierFromModuleName:()=>Hee,makeImport:()=>o0,makeImportIfNecessary:()=>Coe,makeStringLiteral:()=>dT,mangleScopedPackageName:()=>qC,map:()=>Kt,mapAllOrFail:()=>kj,mapDefined:()=>Ri,mapDefinedEntries:()=>YZ,mapDefinedIterator:()=>gk,mapEntries:()=>KZ,mapIterator:()=>S4,mapOneOrMany:()=>eG,mapToDisplayParts:()=>py,matchFiles:()=>nV,matchPatternOrExact:()=>iV,matchedText:()=>mK,matchesExclude:()=>TO,maybeBind:()=>Js,maybeSetLocalizedDiagnosticMessages:()=>mne,memoize:()=>Yu,memoizeCached:()=>cK,memoizeOne:()=>xm,memoizeWeak:()=>Ehe,metadataHelper:()=>xF,min:()=>Mj,minAndMax:()=>Pne,missingFileModifiedTime:()=>cg,modifierToFlag:()=>wx,modifiersToFlags:()=>Vd,moduleOptionDeclaration:()=>BW,moduleResolutionIsEqualTo:()=>Bee,moduleResolutionNameAndModeGetter:()=>dA,moduleResolutionOptionDeclarations:()=>CO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Ox,moduleResolutionUsesNodeModules:()=>uL,moduleSpecifiers:()=>lb,moveEmitHelpers:()=>nre,moveRangeEnd:()=>M5,moveRangePastDecorators:()=>Zh,moveRangePastModifiers:()=>Wd,moveRangePos:()=>d1,moveSyntheticComments:()=>Kne,mutateMap:()=>lC,mutateMapSkippingNewValues:()=>sh,needsParentheses:()=>vL,needsScopeMarker:()=>F7,newCaseClauseTracker:()=>FL,newPrivateEnvironment:()=>lse,noEmitNotification:()=>iA,noEmitSubstitution:()=>C3,noTransformers:()=>BU,noTruncationMaximumTruncationLength:()=>_F,nodeCanBeDecorated:()=>c5,nodeHasName:()=>AP,nodeIsDecorated:()=>nE,nodeIsMissing:()=>dc,nodeIsPresent:()=>fp,nodeIsSynthesized:()=>Ro,nodeModuleNameResolver:()=>Nie,nodeModulesPathPart:()=>zm,nodeNextJsonConfigResolver:()=>Iie,nodeOrChildIsDecorated:()=>aw,nodeOverlapsWithStartEnd:()=>Y9,nodePosToString:()=>B0e,nodeSeenTracker:()=>pT,nodeStartsNewLexicalEnvironment:()=>Tz,nodeToDisplayParts:()=>VSe,noop:()=>Fa,noopFileWatcher:()=>e6,normalizePath:()=>Ys,normalizeSlashes:()=>Su,not:()=>qI,notImplemented:()=>Ts,notImplementedResolver:()=>_9,nullNodeConverters:()=>AV,nullParenthesizerRules:()=>wV,nullTransformationContext:()=>yd,objectAllocator:()=>jl,operatorPart:()=>V3,optionDeclarations:()=>Cg,optionMapToObject:()=>FW,optionsAffectingProgramStructure:()=>UW,optionsForBuild:()=>HW,optionsForWatch:()=>JC,optionsHaveChanges:()=>Rk,optionsHaveModuleResolutionChanges:()=>Mee,or:()=>ud,orderedRemoveItem:()=>aP,orderedRemoveItemAt:()=>Ky,outFile:()=>lo,packageIdToPackageName:()=>V7,packageIdToString:()=>Y0,paramHelper:()=>TF,parameterIsThisKeyword:()=>qv,parameterNamePart:()=>Poe,parseBaseNodeFactory:()=>CW,parseBigInt:()=>wne,parseBuildCommand:()=>sve,parseCommandLine:()=>rve,parseCommandLineWorker:()=>PW,parseConfigFileTextToJson:()=>AW,parseConfigFileWithSystem:()=>V2e,parseConfigHostFromCompilerHostLike:()=>x9,parseCustomTypeOption:()=>SO,parseIsolatedEntityName:()=>nT,parseIsolatedJSDocComment:()=>iie,parseJSDocTypeExpressionForTests:()=>U1e,parseJsonConfigFileContent:()=>vve,parseJsonSourceFileConfigFileContent:()=>j8,parseJsonText:()=>O8,parseListTypeOption:()=>aie,parseNodeFactory:()=>Jm,parseNodeModuleFromPath:()=>$8,parsePackageName:()=>Y8,parsePseudoBigInt:()=>FE,parseValidBigInt:()=>cV,patchWriteFileEnsuringDirectory:()=>IK,pathContainsNodeModules:()=>aT,pathIsAbsolute:()=>F4,pathIsBareSpecifier:()=>eJ,pathIsRelative:()=>Q_,patternText:()=>dK,perfLogger:()=>Lu,performIncrementalCompilation:()=>H2e,performance:()=>EK,plainJSErrors:()=>C9,positionBelongsToNode:()=>vH,positionIsASICandidate:()=>TL,positionIsSynthesized:()=>dd,positionsAreOnSameLine:()=>vp,preProcessFile:()=>mxe,probablyUsesSemicolons:()=>zA,processCommentPragmas:()=>TW,processPragmasIntoFields:()=>kW,processTaggedTemplateExpression:()=>NU,programContainsEsModules:()=>koe,programContainsModules:()=>Toe,projectReferenceIsEqualTo:()=>LJ,propKeyHelper:()=>MF,propertyNamePart:()=>woe,pseudoBigIntToString:()=>Qv,punctuationPart:()=>Pu,pushIfUnique:()=>lp,quote:()=>q3,quotePreferenceFromString:()=>LH,rangeContainsPosition:()=>CA,rangeContainsPositionExclusive:()=>EA,rangeContainsRange:()=>Ef,rangeContainsRangeExclusive:()=>loe,rangeContainsStartEnd:()=>DA,rangeEndIsOnSameLineAsRangeStart:()=>Bw,rangeEndPositionsAreOnSameLine:()=>tne,rangeEquals:()=>wj,rangeIsOnSingleLine:()=>I2,rangeOfNode:()=>aV,rangeOfTypeParameters:()=>oV,rangeOverlapsWithStartEnd:()=>M3,rangeStartIsOnSameLineAsRangeEnd:()=>nne,rangeStartPositionsAreOnSameLine:()=>R5,readBuilderProgram:()=>R9,readConfigFile:()=>M8,readHelper:()=>OF,readJson:()=>xE,readJsonConfigFile:()=>lie,readJsonOrUndefined:()=>zz,reduceEachLeadingCommentRange:()=>BK,reduceEachTrailingCommentRange:()=>JK,reduceLeft:()=>Fu,reduceLeftIterator:()=>Fd,reducePathComponents:()=>f2,refactor:()=>hT,regExpEscape:()=>Cye,relativeComplement:()=>tK,removeAllComments:()=>o8,removeEmitHelper:()=>t1e,removeExtension:()=>Gw,removeFileExtension:()=>zu,removeIgnoredPath:()=>P9,removeMinAndVersionNumbers:()=>Rj,removeOptionality:()=>goe,removePrefix:()=>w4,removeSuffix:()=>yk,removeTrailingDirectorySeparator:()=>e1,repeatString:()=>FA,replaceElement:()=>Ij,resolutionExtensionIsTSOrJson:()=>NE,resolveConfigFileProjectName:()=>Lq,resolveJSModule:()=>wie,resolveLibrary:()=>LO,resolveModuleName:()=>WC,resolveModuleNameFromCache:()=>nbe,resolvePackageNameToPackageJson:()=>XW,resolvePath:()=>V0,resolveProjectReferencePath:()=>QC,resolveTripleslashReference:()=>m9,resolveTypeReferenceDirective:()=>Eie,resolvingEmptyArray:()=>uF,restHelper:()=>AF,returnFalse:()=>ld,returnNoopFileWatcher:()=>t6,returnTrue:()=>Yg,returnUndefined:()=>Zy,returnsPromise:()=>xG,runInitializersHelper:()=>CF,sameFlatMap:()=>QZ,sameMap:()=>sl,sameMapping:()=>Ube,scanShebangTrivia:()=>sJ,scanTokenAtPosition:()=>nte,scanner:()=>wu,screenStartingMessageCodes:()=>M9,semanticDiagnosticsOptionDeclarations:()=>zW,serializeCompilerOptions:()=>LW,server:()=>oPe,servicesVersion:()=>gle,setCommentRange:()=>jc,setConfigFileInOptions:()=>RW,setConstantValue:()=>tre,setEachParent:()=>dC,setEmitFlags:()=>$n,setFunctionNameHelper:()=>RF,setGetSourceFileAsHashVersioned:()=>L9,setIdentifierAutoGenerate:()=>u8,setIdentifierGeneratedImportReference:()=>sre,setIdentifierTypeArguments:()=>e0,setInternalEmitFlags:()=>c8,setLocalizedDiagnosticMessages:()=>dne,setModuleDefaultHelper:()=>JF,setNodeFlags:()=>Ine,setObjectAllocator:()=>pne,setOriginalNode:()=>or,setParent:()=>Ta,setParentRecursive:()=>iy,setPrivateIdentifier:()=>X2,setSnippetElement:()=>jV,setSourceMapRange:()=>Ca,setStackTraceLimit:()=>Ghe,setStartsOnNewLine:()=>yF,setSyntheticLeadingComments:()=>v1,setSyntheticTrailingComments:()=>jx,setSys:()=>Zhe,setSysLog:()=>AK,setTextRange:()=>nt,setTextRangeEnd:()=>pC,setTextRangePos:()=>OE,setTextRangePosEnd:()=>Lm,setTextRangePosWidth:()=>LE,setTokenSourceMapRange:()=>Zne,setTypeNode:()=>rre,setUILocale:()=>_K,setValueDeclaration:()=>gw,shouldAllowImportingTsExtension:()=>HC,shouldPreserveConstEnums:()=>F2,shouldResolveJsRequire:()=>H5,shouldUseUriStyleNodeCoreModules:()=>NL,showModuleSpecifier:()=>one,signatureHasLiteralTypes:()=>dU,signatureHasRestParameter:()=>Du,signatureToDisplayParts:()=>WH,single:()=>Nj,singleElementArray:()=>c2,singleIterator:()=>ZZ,singleOrMany:()=>Sm,singleOrUndefined:()=>bm,skipAlias:()=>Cu,skipAssertions:()=>x1e,skipConstraint:()=>IH,skipOuterExpressions:()=>wc,skipParentheses:()=>eo,skipPartiallyEmittedExpressions:()=>Vp,skipTrivia:()=>ma,skipTypeChecking:()=>IE,skipTypeParentheses:()=>mz,skipWhile:()=>hK,sliceAfter:()=>sV,some:()=>ft,sort:()=>sx,sortAndDeduplicate:()=>k4,sortAndDeduplicateDiagnostics:()=>Ek,sourceFileAffectingCompilerOptions:()=>EO,sourceFileMayBeEmitted:()=>Ex,sourceMapCommentRegExp:()=>XO,sourceMapCommentRegExpDontCareLineStart:()=>SU,spacePart:()=>_c,spanMap:()=>Cj,spreadArrayHelper:()=>LF,stableSort:()=>Mh,startEndContainsRange:()=>yH,startEndOverlapsWithStartEnd:()=>Z9,startOnNewLine:()=>Uu,startTracing:()=>DK,startsWith:()=>ts,startsWithDirectory:()=>nJ,startsWithUnderscore:()=>nG,startsWithUseStrict:()=>zre,stringContainsAt:()=>Xoe,stringToToken:()=>Ev,stripQuotes:()=>hp,supportedDeclarationExtensions:()=>t8,supportedJSExtensions:()=>EV,supportedJSExtensionsFlat:()=>hC,supportedLocaleDirectories:()=>OJ,supportedTSExtensions:()=>gC,supportedTSExtensionsFlat:()=>CV,supportedTSImplementationExtensions:()=>n8,suppressLeadingAndTrailingTrivia:()=>z_,suppressLeadingTrivia:()=>HH,suppressTrailingTrivia:()=>joe,symbolEscapedNameNoDefault:()=>fL,symbolName:()=>xc,symbolNameNoDefault:()=>_L,symbolPart:()=>Doe,symbolToDisplayParts:()=>W3,syntaxMayBeASICandidate:()=>cG,syntaxRequiresTrailingSemicolonOrASI:()=>xL,sys:()=>Hl,sysLog:()=>pP,tagNamesAreEquivalent:()=>D1,takeWhile:()=>GI,targetOptionDeclaration:()=>W8,templateObjectHelper:()=>FF,testFormatSettings:()=>noe,textChangeRangeIsUnchanged:()=>GK,textChangeRangeNewSpan:()=>J4,textChanges:()=>er,textOrKeywordPart:()=>zH,textPart:()=>Pf,textRangeContainsPositionInclusive:()=>DP,textSpanContainsPosition:()=>cJ,textSpanContainsTextSpan:()=>WK,textSpanEnd:()=>Dc,textSpanIntersection:()=>HK,textSpanIntersectsWith:()=>x7,textSpanIntersectsWithPosition:()=>qK,textSpanIntersectsWithTextSpan:()=>v0e,textSpanIsEmpty:()=>VK,textSpanOverlap:()=>UK,textSpanOverlapsWith:()=>y0e,textSpansEqual:()=>o6,textToKeywordObj:()=>CP,timestamp:()=>So,toArray:()=>cx,toBuilderFileEmit:()=>fae,toBuilderStateFileInfoForMultiEmit:()=>_ae,toEditorSettings:()=>aN,toFileNameLowerCase:()=>Od,toLowerCase:()=>oK,toPath:()=>xo,toProgramEmitPending:()=>pae,tokenIsIdentifierOrKeyword:()=>Mu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>RK,tokenToString:()=>Zs,trace:()=>Zi,tracing:()=>Wn,tracingEnabled:()=>lP,transform:()=>dke,transformClassFields:()=>vse,transformDeclarations:()=>RU,transformECMAScriptModule:()=>LU,transformES2015:()=>Ose,transformES2016:()=>Fse,transformES2017:()=>Tse,transformES2018:()=>kse,transformES2019:()=>Cse,transformES2020:()=>Ese,transformES2021:()=>Dse,transformES5:()=>Lse,transformESDecorators:()=>xse,transformESNext:()=>Pse,transformGenerators:()=>Mse,transformJsx:()=>Ise,transformLegacyDecorators:()=>Sse,transformModule:()=>OU,transformNamedEvaluation:()=>B_,transformNodeModule:()=>jse,transformNodes:()=>sA,transformSystemModule:()=>Rse,transformTypeScript:()=>yse,transpile:()=>Txe,transpileModule:()=>dce,transpileOptionValueCompilerOptions:()=>qW,tryAddToSet:()=>Yy,tryAndIgnoreErrors:()=>EL,tryCast:()=>Ur,tryDirectoryExists:()=>CL,tryExtractTSExtension:()=>L5,tryFileExists:()=>VA,tryGetClassExtendingExpressionWithTypeArguments:()=>Rz,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>jz,tryGetDirectories:()=>kL,tryGetExtensionFromPath:()=>bg,tryGetImportFromModuleSpecifier:()=>hw,tryGetJSDocSatisfiesTypeNode:()=>cF,tryGetModuleNameFromFile:()=>D8,tryGetModuleSpecifierFromDeclaration:()=>Xk,tryGetNativePerformanceHooks:()=>TK,tryGetPropertyAccessOrIdentifierToString:()=>jw,tryGetPropertyNameOfBindingOrAssignmentElement:()=>gO,tryGetSourceMappingURL:()=>tse,tryGetTextOfPropertyName:()=>K4,tryIOAndConsumeErrors:()=>DL,tryParsePattern:()=>fC,tryParsePatterns:()=>tF,tryParseRawSourceMap:()=>vU,tryReadDirectory:()=>XH,tryReadFile:()=>u3,tryRemoveDirectoryPrefix:()=>Kz,tryRemoveExtension:()=>Dne,tryRemovePrefix:()=>Jj,tryRemoveSuffix:()=>pK,typeAcquisitionDeclarations:()=>U8,typeAliasNamePart:()=>Aoe,typeDirectiveIsEqualTo:()=>Jee,typeKeywords:()=>OL,typeParameterNamePart:()=>Noe,typeReferenceResolutionNameAndModeGetter:()=>k9,typeToDisplayParts:()=>RA,unchangedPollThresholds:()=>dP,unchangedTextChangeRange:()=>qP,unescapeLeadingUnderscores:()=>Ci,unmangleScopedPackageName:()=>K8,unorderedRemoveItem:()=>o2,unorderedRemoveItemAt:()=>jj,unreachableCodeIsError:()=>yne,unusedLabelIsError:()=>vne,unwrapInnermostStatementOfLabel:()=>nz,updateErrorForNoInputFiles:()=>xO,updateLanguageServiceSourceFile:()=>s$,updateMissingFilePathsWatch:()=>qU,updatePackageJsonWatch:()=>m2e,updateResolutionField:()=>zC,updateSharedExtendedConfigFileWatcher:()=>p9,updateSourceFile:()=>xW,updateWatchingWildcardDirectories:()=>cA,usesExtensionsOnImports:()=>Cne,usingSingleLineStringWriter:()=>Q4,utf16EncodeAsString:()=>Ck,validateLocaleAndSetLanguage:()=>S0e,valuesHelper:()=>jF,version:()=>ps,versionMajorMinor:()=>Qi,visitArray:()=>tA,visitCommaListElements:()=>nA,visitEachChild:()=>on,visitFunctionBody:()=>kf,visitIterationBody:()=>Ku,visitLexicalEnvironment:()=>$O,visitNode:()=>Ge,visitNodes:()=>Dn,visitParameterList:()=>Ac,walkUpBindingElementsAndPatterns:()=>Dk,walkUpLexicalEnvironments:()=>cse,walkUpOuterExpressions:()=>Vre,walkUpParenthesizedExpressions:()=>Gh,walkUpParenthesizedTypes:()=>xw,walkUpParenthesizedTypesAndGetParentAndChild:()=>Cte,whitespaceOrMapCommentRegExp:()=>QO,writeCommentRange:()=>oC,writeFile:()=>mE,writeFileEnsuringDirectories:()=>Iz,zipWith:()=>od});var B1=ze({"src/server/_namespaces/ts.ts"(){"use strict";Rs(),vA(),qr(),SQ(),wT()}}),lPe={};Jn(lPe,{ActionInvalidate:()=>W9,ActionPackageInstalled:()=>qae,ActionSet:()=>V9,ActionWatchTypingLocations:()=>yA,Arguments:()=>Wq,AutoImportProviderProject:()=>LQ,AuxiliaryProject:()=>FQ,CharRangeSection:()=>GQ,CloseFileWatcherEvent:()=>tR,CommandNames:()=>Bpe,ConfigFileDiagEvent:()=>QM,ConfiguredProject:()=>MQ,CreateDirectoryWatcherEvent:()=>eR,CreateFileWatcherEvent:()=>KM,Errors:()=>f0,EventBeginInstallTypes:()=>zq,EventEndInstallTypes:()=>Vq,EventInitializationFailed:()=>Gae,EventTypesRegistry:()=>Hae,ExternalProject:()=>VM,GcTimer:()=>EQ,InferredProject:()=>IQ,LargeFileReferencedEvent:()=>XM,LineIndex:()=>uD,LineLeaf:()=>BN,LineNode:()=>PT,LogLevel:()=>xQ,Msg:()=>TQ,OpenFileInfoTelemetryEvent:()=>BQ,Project:()=>uS,ProjectInfoTelemetryEvent:()=>ZM,ProjectKind:()=>cD,ProjectLanguageServiceStateEvent:()=>YM,ProjectLoadingFinishEvent:()=>$M,ProjectLoadingStartEvent:()=>GM,ProjectReferenceProjectLoadKind:()=>VQ,ProjectService:()=>WQ,ProjectsUpdatedInBackgroundEvent:()=>MN,ScriptInfo:()=>wQ,ScriptVersionCache:()=>sR,Session:()=>zpe,TextStorage:()=>PQ,ThrottledOperations:()=>CQ,TypingsCache:()=>AQ,allFilesAreJsOrDts:()=>hpe,allRootFilesAreJsOrDts:()=>gpe,asNormalizedPath:()=>RDe,convertCompilerOptions:()=>WM,convertFormatOptions:()=>D6,convertScriptKindName:()=>jQ,convertTypeAcquisition:()=>bpe,convertUserPreferences:()=>Spe,convertWatchOptions:()=>LN,countEachFileTypes:()=>FN,createInstallTypingsRequest:()=>MDe,createModuleSpecifierCache:()=>Npe,createNormalizedPathMap:()=>jDe,createPackageJsonCache:()=>Ipe,createSortedArray:()=>epe,emptyArray:()=>tl,findArgument:()=>wSe,forEachResolvedProjectReferenceProject:()=>P6,formatDiagnosticToProtocol:()=>jN,formatMessage:()=>Fpe,getBaseConfigFileName:()=>kQ,getLocationInNewDocument:()=>Rpe,hasArgument:()=>PSe,hasNoTypeScriptSource:()=>ype,indent:()=>O3,isBackgroundProject:()=>ON,isConfigFile:()=>Dpe,isConfiguredProject:()=>j1,isDynamicFileName:()=>IN,isExternalProject:()=>NQ,isInferredProject:()=>E6,isInferredProjectName:()=>Qfe,makeAutoImportProviderProjectName:()=>Zfe,makeAuxiliaryProjectName:()=>Kfe,makeInferredProjectName:()=>Yfe,maxFileSize:()=>HM,maxProgramSizeForNonTsFiles:()=>qM,normalizedPathToPath:()=>NN,nowString:()=>ASe,nullCancellationToken:()=>jpe,nullTypingsInstaller:()=>zM,projectContainsInfoDirectly:()=>ET,protocol:()=>mpe,removeSorted:()=>BDe,stringifyIndented:()=>n6,toEvent:()=>Ope,toNormalizedPath:()=>Uo,tryConvertScriptKindName:()=>RQ,typingsInstaller:()=>$fe,updateProjectIfDirty:()=>Af});var zKe=ze({"src/typescript/_namespaces/ts.server.ts"(){"use strict";U9(),wT()}}),uPe={};Jn(uPe,{ANONYMOUS:()=>LL,AccessFlags:()=>yB,AssertionLevel:()=>Wj,AssignmentDeclarationKind:()=>DB,AssignmentKind:()=>yV,Associativity:()=>bV,BreakpointResolver:()=>f$,BuilderFileEmit:()=>yq,BuilderProgramKind:()=>vq,BuilderState:()=>Kp,BundleFileSectionKind:()=>qB,CallHierarchy:()=>yT,CharacterCodes:()=>jB,CheckFlags:()=>pB,CheckMode:()=>qO,ClassificationType:()=>cH,ClassificationTypeNames:()=>oH,CommentDirectiveType:()=>Zj,Comparison:()=>Aa,CompletionInfoFlags:()=>eH,CompletionTriggerKind:()=>Xq,Completions:()=>TT,ContainerFlags:()=>lU,ContextFlags:()=>iB,Debug:()=>E,DiagnosticCategory:()=>_P,Diagnostics:()=>d,DocumentHighlights:()=>jL,ElementFlags:()=>hB,EmitFlags:()=>u7,EmitHint:()=>VB,EmitOnly:()=>eB,EndOfLineState:()=>rH,EnumKind:()=>fB,ExitStatus:()=>tB,ExportKind:()=>pG,Extension:()=>BB,ExternalEmitHelpers:()=>zB,FileIncludeKind:()=>t7,FilePreprocessingDiagnosticsKind:()=>Kj,FileSystemEntryKind:()=>YB,FileWatcherEventKind:()=>QB,FindAllReferences:()=>Eo,FlattenLevel:()=>PU,FlowFlags:()=>uP,ForegroundColorEscapeSequences:()=>uq,FunctionFlags:()=>vV,GeneratedIdentifierFlags:()=>e7,GetLiteralTextFlags:()=>mV,GoToDefinition:()=>S6,HighlightSpanKind:()=>Yq,IdentifierNameMap:()=>cT,IdentifierNameMultiMap:()=>DU,ImportKind:()=>fG,ImportsNotUsedAsValues:()=>FB,IndentStyle:()=>Zq,IndexFlags:()=>vB,IndexKind:()=>xB,InferenceFlags:()=>CB,InferencePriority:()=>kB,InlayHintKind:()=>Qq,InlayHints:()=>rQ,InternalEmitFlags:()=>JB,InternalSymbolName:()=>dB,InvalidatedProjectKind:()=>Jq,JSDocParsingMode:()=>$B,JsDoc:()=>R1,JsTyping:()=>Eg,JsxEmit:()=>IB,JsxFlags:()=>Qj,JsxReferenceKind:()=>bB,LanguageServiceMode:()=>Hq,LanguageVariant:()=>MB,LexicalEnvironmentFlags:()=>UB,ListFormat:()=>HB,LogLevel:()=>qj,MemberOverrideStatus:()=>nB,ModifierFlags:()=>ZI,ModuleDetectionKind:()=>PB,ModuleInstanceState:()=>cU,ModuleKind:()=>N4,ModuleResolutionKind:()=>Tk,ModuleSpecifierEnding:()=>DV,NavigateTo:()=>hce,NavigationBar:()=>Dce,NewLineKind:()=>OB,NodeBuilderFlags:()=>sB,NodeCheckFlags:()=>mB,NodeFactoryFlags:()=>LV,NodeFlags:()=>YI,NodeResolutionFeatures:()=>sU,ObjectFlags:()=>s7,OperationCanceledException:()=>xk,OperatorPrecedence:()=>SV,OrganizeImports:()=>ed,OrganizeImportsMode:()=>$q,OuterExpressionKinds:()=>WB,OutliningElementsCollector:()=>oQ,OutliningSpanKind:()=>tH,OutputFileType:()=>nH,PackageJsonAutoImportPreference:()=>qq,PackageJsonDependencyGroup:()=>Uq,PatternMatchKind:()=>BL,PollingInterval:()=>_7,PollingWatchKind:()=>NB,PragmaKindFlags:()=>GB,PrivateIdentifierKind:()=>VV,ProcessLevel:()=>IU,ProgramUpdateLevel:()=>GU,QuotePreference:()=>aG,RelationComparisonResult:()=>KI,Rename:()=>OM,ScriptElementKind:()=>sH,ScriptElementKindModifier:()=>aH,ScriptKind:()=>o7,ScriptSnapshot:()=>H9,ScriptTarget:()=>LB,SemanticClassificationFormat:()=>Gq,SemanticMeaning:()=>sG,SemicolonPreference:()=>Kq,SignatureCheckMode:()=>HO,SignatureFlags:()=>a7,SignatureHelp:()=>TN,SignatureKind:()=>SB,SmartSelectionRange:()=>uQ,SnippetKind:()=>l7,SortKind:()=>Vj,StructureIsReused:()=>n7,SymbolAccessibility:()=>cB,SymbolDisplay:()=>_0,SymbolDisplayPartKind:()=>bA,SymbolFlags:()=>r7,SymbolFormatFlags:()=>oB,SyntaxKind:()=>QI,SyntheticSymbolKind:()=>lB,Ternary:()=>EB,ThrottledCancellationToken:()=>_$,TokenClass:()=>iH,TokenFlags:()=>Yj,TransformFlags:()=>c7,TypeFacts:()=>UO,TypeFlags:()=>i7,TypeFormatFlags:()=>aB,TypeMapKind:()=>TB,TypePredicateKind:()=>uB,TypeReferenceSerializationKind:()=>_B,UnionReduction:()=>rB,UpToDateStatusType:()=>Mq,VarianceFlags:()=>gB,Version:()=>zp,VersionRange:()=>oP,WatchDirectoryFlags:()=>RB,WatchDirectoryKind:()=>AB,WatchFileKind:()=>wB,WatchLogLevel:()=>$U,WatchType:()=>dl,accessPrivateIdentifier:()=>use,addDisposableResourceHelper:()=>HF,addEmitFlags:()=>Mm,addEmitHelper:()=>Bx,addEmitHelpers:()=>oh,addInternalEmitFlags:()=>Rx,addNodeFactoryPatcher:()=>$ye,addObjectAllocatorPatcher:()=>fne,addRange:()=>Nr,addRelatedInfo:()=>ga,addSyntheticLeadingComment:()=>UE,addSyntheticTrailingComment:()=>vF,addToSeen:()=>Hp,advancedAsyncSuperHelper:()=>p8,affectsDeclarationPathOptionDeclarations:()=>WW,affectsEmitOptionDeclarations:()=>VW,allKeysStartWithDot:()=>jO,altDirectorySeparator:()=>vP,and:()=>UI,append:()=>_n,appendIfUnique:()=>Xg,arrayFrom:()=>hs,arrayIsEqualTo:()=>cd,arrayIsHomogeneous:()=>Nne,arrayIsSorted:()=>eK,arrayOf:()=>rK,arrayReverseIterator:()=>Pj,arrayToMap:()=>jh,arrayToMultiMap:()=>iP,arrayToNumericMap:()=>sK,arraysEqual:()=>tP,assertType:()=>whe,assign:()=>C4,assignHelper:()=>EF,asyncDelegator:()=>PF,asyncGeneratorHelper:()=>DF,asyncSuperHelper:()=>f8,asyncValues:()=>wF,attachFileToDiagnostics:()=>Ix,awaitHelper:()=>Jx,awaiterHelper:()=>NF,base64decode:()=>ene,base64encode:()=>Kte,binarySearch:()=>Rh,binarySearchKey:()=>ax,bindSourceFile:()=>Vie,breakIntoCharacterSpans:()=>uce,breakIntoWordSpans:()=>_ce,buildLinkParts:()=>Foe,buildOpts:()=>DO,buildOverload:()=>ADe,bundlerModuleNameResolver:()=>Aie,canBeConvertedToAsync:()=>kG,canHaveDecorators:()=>G2,canHaveExportModifier:()=>Xw,canHaveFlowNode:()=>vw,canHaveIllegalDecorators:()=>hW,canHaveIllegalModifiers:()=>Hre,canHaveIllegalType:()=>k1e,canHaveIllegalTypeParameters:()=>qre,canHaveJSDoc:()=>bw,canHaveLocals:()=>Pm,canHaveModifiers:()=>Yp,canHaveSymbol:()=>Rd,canJsonReportNoInputFiles:()=>_3,canProduceDiagnostics:()=>a9,canUsePropertyAccess:()=>_V,canWatchAffectingLocation:()=>hae,canWatchAtTypes:()=>gae,canWatchDirectoryOrFile:()=>w9,cartesianProduct:()=>gK,cast:()=>Vs,chainBundle:()=>Zp,chainDiagnosticMessages:()=>ys,changeAnyExtension:()=>hP,changeCompilerHostLikeToUseCache:()=>_A,changeExtension:()=>g1,changesAffectModuleResolution:()=>J7,changesAffectingProgramStructure:()=>Ree,childIsDecorated:()=>rE,classElementOrClassElementParameterIsDecorated:()=>rz,classHasClassThisAssignment:()=>wU,classHasDeclaredOrExplicitlyAssignedName:()=>AU,classHasExplicitlyAssignedName:()=>r9,classOrConstructorParameterIsDecorated:()=>Hh,classPrivateFieldGetHelper:()=>WF,classPrivateFieldInHelper:()=>qF,classPrivateFieldSetHelper:()=>UF,classicNameResolver:()=>jie,classifier:()=>ble,cleanExtendedConfigCache:()=>d9,clear:()=>og,clearMap:()=>d_,clearSharedExtendedConfigFileWatcher:()=>UU,climbPastPropertyAccess:()=>$9,climbPastPropertyOrElementAccess:()=>aoe,clone:()=>Fj,cloneCompilerOptions:()=>DH,closeFileWatcher:()=>fd,closeFileWatcherOf:()=>Cf,codefix:()=>fu,collapseTextChangeRangesAcrossMultipleVersions:()=>$K,collectExternalModuleInfo:()=>TU,combine:()=>hk,combinePaths:()=>Qr,commentPragmas:()=>fP,commonOptionsWithBuild:()=>V8,commonPackageFolders:()=>TV,compact:()=>rP,compareBooleans:()=>kv,compareDataObjects:()=>qz,compareDiagnostics:()=>PE,compareDiagnosticsSkipRelatedInformation:()=>V5,compareEmitHelpers:()=>cre,compareNumberOfDirectorySeparators:()=>Hw,comparePaths:()=>t1,comparePathsCaseInsensitive:()=>n0e,comparePathsCaseSensitive:()=>t0e,comparePatternKeys:()=>rU,compareProperties:()=>fK,compareStringsCaseInsensitive:()=>VI,compareStringsCaseInsensitiveEslintCompatible:()=>lK,compareStringsCaseSensitive:()=>Ou,compareStringsCaseSensitiveUI:()=>sP,compareTextSpans:()=>zI,compareValues:()=>Io,compileOnSaveCommandLineOption:()=>J8,compilerOptionsAffectDeclarationPath:()=>Tne,compilerOptionsAffectEmit:()=>xne,compilerOptionsAffectSemanticDiagnostics:()=>Sne,compilerOptionsDidYouMeanDiagnostics:()=>q8,compilerOptionsIndicateEsModules:()=>FH,compose:()=>Dhe,computeCommonSourceDirectoryOfFilenames:()=>$se,computeLineAndCharacterOfPosition:()=>kk,computeLineOfPosition:()=>M4,computeLineStarts:()=>dx,computePositionOfLineAndCharacter:()=>y7,computeSignature:()=>K2,computeSignatureWithDiagnostics:()=>dq,computeSuggestionDiagnostics:()=>SG,concatenate:()=>es,concatenateDiagnosticMessageChains:()=>gne,consumesNodeCoreModules:()=>PL,contains:()=>gs,containsIgnoredPath:()=>ME,containsObjectRestOrSpread:()=>N8,containsParseError:()=>jk,containsPath:()=>Cm,convertCompilerOptionsForTelemetry:()=>die,convertCompilerOptionsFromJson:()=>Dve,convertJsonOption:()=>$2,convertToBase64:()=>Zte,convertToJson:()=>R8,convertToObject:()=>uie,convertToOptionsWithAbsolutePaths:()=>MW,convertToRelativePath:()=>L4,convertToTSConfig:()=>pve,convertTypeAcquisitionFromJson:()=>Pve,copyComments:()=>iS,copyEntries:()=>z7,copyLeadingComments:()=>l6,copyProperties:()=>Oj,copyTrailingAsLeadingComments:()=>JA,copyTrailingComments:()=>U3,couldStartTrivia:()=>jK,countWhere:()=>Lh,createAbstractBuilder:()=>M2e,createAccessorPropertyBackingField:()=>vW,createAccessorPropertyGetRedirector:()=>eie,createAccessorPropertySetRedirector:()=>tie,createBaseNodeFactory:()=>Hne,createBinaryExpressionTrampoline:()=>hO,createBindingHelper:()=>vC,createBuildInfo:()=>aA,createBuilderProgram:()=>mq,createBuilderProgramUsingProgramBuildInfo:()=>dae,createBuilderStatusReporter:()=>Nae,createCacheWithRedirects:()=>YW,createCacheableExportInfoMap:()=>lG,createCachedDirectoryStructureHost:()=>f9,createClassNamedEvaluationHelperBlock:()=>mse,createClassThisAssignmentBlock:()=>pse,createClassifier:()=>KSe,createCommentDirectivesMap:()=>Wee,createCompilerDiagnostic:()=>Tc,createCompilerDiagnosticForInvalidCustomType:()=>sie,createCompilerDiagnosticFromMessageChain:()=>z5,createCompilerHost:()=>Xse,createCompilerHostFromProgramHost:()=>Iq,createCompilerHostWorker:()=>YU,createDetachedDiagnostic:()=>_C,createDiagnosticCollection:()=>iC,createDiagnosticForFileFromMessageChain:()=>ZJ,createDiagnosticForNode:()=>vr,createDiagnosticForNodeArray:()=>zk,createDiagnosticForNodeArrayFromMessageChain:()=>ZP,createDiagnosticForNodeFromMessageChain:()=>nh,createDiagnosticForNodeInSourceFile:()=>pp,createDiagnosticForRange:()=>tte,createDiagnosticMessageChainFromDiagnostic:()=>ete,createDiagnosticReporter:()=>mA,createDocumentPositionMapper:()=>ise,createDocumentRegistry:()=>Koe,createDocumentRegistryInternal:()=>gG,createEmitAndSemanticDiagnosticsBuilderProgram:()=>bq,createEmitHelperFactory:()=>ore,createEmptyExports:()=>T8,createExpressionForJsxElement:()=>jre,createExpressionForJsxFragment:()=>Bre,createExpressionForObjectLiteralElementLike:()=>Jre,createExpressionForPropertyName:()=>_W,createExpressionFromEntityName:()=>k8,createExternalHelpersImportDeclarationIfNeeded:()=>dW,createFileDiagnostic:()=>Nl,createFileDiagnosticFromMessageChain:()=>X7,createForOfBindingStatement:()=>uW,createGetCanonicalFileName:()=>cu,createGetSourceFile:()=>XU,createGetSymbolAccessibilityDiagnosticForNode:()=>r0,createGetSymbolAccessibilityDiagnosticForNodeName:()=>Bse,createGetSymbolWalker:()=>Wie,createIncrementalCompilerHost:()=>Oq,createIncrementalProgram:()=>wae,createInputFiles:()=>Qye,createInputFilesWithFilePaths:()=>FV,createInputFilesWithFileTexts:()=>OV,createJsxFactoryExpression:()=>lW,createLanguageService:()=>dle,createLanguageServiceSourceFile:()=>lM,createMemberAccessForPropertyName:()=>H2,createModeAwareCache:()=>sT,createModeAwareCacheKey:()=>g3,createModuleNotFoundChain:()=>MJ,createModuleResolutionCache:()=>VC,createModuleResolutionLoader:()=>nq,createModuleResolutionLoaderUsingGlobalCache:()=>Sae,createModuleSpecifierResolutionHost:()=>rS,createMultiMap:()=>mf,createNodeConverters:()=>$ne,createNodeFactory:()=>i8,createOptionNameMap:()=>bO,createOverload:()=>bQ,createPackageJsonImportFilter:()=>G3,createPackageJsonInfo:()=>YH,createParenthesizerRules:()=>Gne,createPatternMatcher:()=>ice,createPrependNodes:()=>cq,createPrinter:()=>N1,createPrinterWithDefaults:()=>VU,createPrinterWithRemoveComments:()=>fb,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>WU,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>oA,createProgram:()=>b9,createProgramHost:()=>Fq,createPropertyNameNodeForIdentifierOrLiteral:()=>aF,createQueue:()=>JI,createRange:()=>Wf,createRedirectedBuilderProgram:()=>hq,createResolutionCache:()=>xq,createRuntimeTypeSerializer:()=>bse,createScanner:()=>Vh,createSemanticDiagnosticsBuilderProgram:()=>L2e,createSet:()=>Lj,createSolutionBuilder:()=>Z2e,createSolutionBuilderHost:()=>Q2e,createSolutionBuilderWithWatch:()=>K2e,createSolutionBuilderWithWatchHost:()=>Y2e,createSortedArray:()=>Dj,createSourceFile:()=>F8,createSourceMapGenerator:()=>ese,createSourceMapSource:()=>Yye,createSuperAccessVariableStatement:()=>s9,createSymbolTable:()=>Gs,createSymlinkCache:()=>Zz,createSystemWatchFunctions:()=>NK,createTextChange:()=>NA,createTextChangeFromStartLength:()=>cL,createTextChangeRange:()=>wP,createTextRangeFromNode:()=>AH,createTextRangeFromSpan:()=>oL,createTextSpan:()=>Gl,createTextSpanFromBounds:()=>Xc,createTextSpanFromNode:()=>g_,createTextSpanFromRange:()=>fy,createTextSpanFromStringLiteralLikeContent:()=>wH,createTextWriter:()=>Nw,createTokenRange:()=>Vz,createTypeChecker:()=>$ie,createTypeReferenceDirectiveResolutionCache:()=>OO,createTypeReferenceResolutionLoader:()=>h9,createUnparsedSourceFile:()=>IV,createWatchCompilerHost:()=>G2e,createWatchCompilerHostOfConfigFile:()=>Eae,createWatchCompilerHostOfFilesAndCompilerOptions:()=>Dae,createWatchFactory:()=>Nq,createWatchHost:()=>Aq,createWatchProgram:()=>$2e,createWatchStatusReporter:()=>xae,createWriteFileMeasuringIO:()=>QU,declarationNameToString:()=>co,decodeMappings:()=>bU,decodedTextSpanIntersectsWith:()=>PP,decorateHelper:()=>SF,deduplicate:()=>ix,defaultIncludeSpec:()=>AO,defaultInitCompilerOptions:()=>PO,defaultMaximumTruncationLength:()=>Kw,detectSortCaseSensitivity:()=>MI,diagnosticCategoryName:()=>_2,diagnosticToString:()=>aS,directoryProbablyExists:()=>_d,directorySeparator:()=>Oo,displayPart:()=>D_,displayPartsToString:()=>oN,disposeEmitNodes:()=>MV,disposeResourcesHelper:()=>GF,documentSpansEqual:()=>mL,dumpTracingLegend:()=>PK,elementAt:()=>Jh,elideNodes:()=>Kre,emitComments:()=>zte,emitDetachedComments:()=>Vte,emitFiles:()=>l9,emitFilesAndReportErrors:()=>F9,emitFilesAndReportErrorsAndGetExitStatus:()=>Cae,emitModuleKindIsNonNodeESM:()=>W5,emitNewLineBeforeLeadingCommentOfPosition:()=>Jte,emitNewLineBeforeLeadingComments:()=>jte,emitNewLineBeforeLeadingCommentsOfPosition:()=>Bte,emitSkippedWithNoDiagnostics:()=>E9,emitUsingBuildInfo:()=>Use,emptyArray:()=>Ve,emptyFileSystemEntries:()=>mF,emptyMap:()=>$I,emptyOptions:()=>Hf,emptySet:()=>yK,endsWith:()=>Sc,ensurePathIsNonModuleName:()=>Cv,ensureScriptKind:()=>K5,ensureTrailingDirectorySeparator:()=>wl,entityNameToString:()=>O_,enumerateInsertsAndDeletes:()=>HI,equalOwnProperties:()=>iK,equateStringsCaseInsensitive:()=>lx,equateStringsCaseSensitive:()=>ux,equateValues:()=>B0,esDecorateHelper:()=>kF,escapeJsxAttributeString:()=>Pz,escapeLeadingUnderscores:()=>Yo,escapeNonAsciiString:()=>Aw,escapeSnippetText:()=>Zv,escapeString:()=>p1,every:()=>hi,expandPreOrPostfixIncrementOrDecrementExpression:()=>_O,explainFiles:()=>Cq,explainIfFileIsRedirectAndImpliedFormat:()=>Eq,exportAssignmentIsAlias:()=>eC,exportStarHelper:()=>VF,expressionResultIsUnused:()=>Fne,extend:()=>BI,extendsHelper:()=>IF,extensionFromPath:()=>Lx,extensionIsTS:()=>nF,extensionsNotSupportingExtensionlessResolution:()=>r8,externalHelpersModuleNameText:()=>sy,factory:()=>I,fileExtensionIs:()=>nc,fileExtensionIsOneOf:()=>$c,fileIncludeReasonToDiagnostics:()=>wq,fileShouldUseJavaScriptRequire:()=>iG,filter:()=>Fr,filterMutate:()=>xj,filterSemanticDiagnostics:()=>S9,find:()=>xr,findAncestor:()=>Fn,findBestPatternMatch:()=>Bj,findChildOfKind:()=>Ya,findComputedPropertyNameCacheAssignment:()=>yO,findConfigFile:()=>Gse,findContainingList:()=>K9,findDiagnosticForNode:()=>qoe,findFirstNonJsxWhitespaceToken:()=>_oe,findIndex:()=>Qo,findLast:()=>Bp,findLastIndex:()=>a2,findListItemInfo:()=>uoe,findMap:()=>rx,findModifier:()=>a6,findNextToken:()=>mb,findPackageJson:()=>Woe,findPackageJsons:()=>QH,findPrecedingMatchingToken:()=>sL,findPrecedingToken:()=>ol,findSuperStatementIndexPath:()=>e9,findTokenOnLeftOfPosition:()=>nL,findUseStrictPrologue:()=>pW,first:()=>Da,firstDefined:()=>ba,firstDefinedIterator:()=>df,firstIterator:()=>Aj,firstOrOnly:()=>tG,firstOrUndefined:()=>Pl,firstOrUndefinedIterator:()=>RI,fixupCompilerOptions:()=>EG,flatMap:()=>oa,flatMapIterator:()=>Tj,flatMapToMutable:()=>x4,flatten:()=>Jp,flattenCommaList:()=>nie,flattenDestructuringAssignment:()=>Q2,flattenDestructuringBinding:()=>_b,flattenDiagnosticMessageText:()=>Qd,forEach:()=>Qt,forEachAncestor:()=>jee,forEachAncestorDirectory:()=>Ld,forEachChild:()=>vs,forEachChildRecursively:()=>l3,forEachEmittedFile:()=>JU,forEachEnclosingBlockScopeContainer:()=>Yee,forEachEntry:()=>$l,forEachExternalModuleToImportFrom:()=>_G,forEachImportClauseDeclaration:()=>y5,forEachKey:()=>pg,forEachLeadingCommentRange:()=>TP,forEachNameInAccessChainWalkingLeft:()=>une,forEachPropertyAssignment:()=>qk,forEachResolvedProjectReference:()=>rq,forEachReturnStatement:()=>Rv,forEachRight:()=>nx,forEachTrailingCommentRange:()=>kP,forEachTsConfigPropArray:()=>nw,forEachUnique:()=>jH,forEachYieldExpression:()=>rte,forSomeAncestorDirectory:()=>yye,formatColorAndReset:()=>pb,formatDiagnostic:()=>ZU,formatDiagnostics:()=>h2e,formatDiagnosticsWithColorAndContext:()=>Qse,formatGeneratedName:()=>E1,formatGeneratedNamePart:()=>RC,formatLocation:()=>KU,formatMessage:()=>$z,formatStringFromArgs:()=>vg,formatting:()=>ml,fullTripleSlashAMDReferencePathRegEx:()=>hV,fullTripleSlashReferencePathRegEx:()=>gV,generateDjb2Hash:()=>I4,generateTSConfig:()=>yve,generatorHelper:()=>BF,getAdjustedReferenceLocation:()=>SH,getAdjustedRenameLocation:()=>tL,getAliasDeclarationFromName:()=>hz,getAllAccessorDeclarations:()=>N2,getAllDecoratorsOfClass:()=>CU,getAllDecoratorsOfClassElement:()=>n9,getAllJSDocTags:()=>gJ,getAllJSDocTagsOfKind:()=>N0e,getAllKeys:()=>Che,getAllProjectOutputs:()=>c9,getAllSuperTypeNodes:()=>lE,getAllUnscopedEmitHelpers:()=>zV,getAllowJSCompilerOption:()=>m1,getAllowSyntheticDefaultImports:()=>Fx,getAncestor:()=>f1,getAnyExtensionFromPath:()=>O4,getAreDeclarationMapsEnabled:()=>q5,getAssignedExpandoInitializer:()=>bx,getAssignedName:()=>_J,getAssignedNameOfIdentifier:()=>T3,getAssignmentDeclarationKind:()=>mc,getAssignmentDeclarationPropertyAccessKind:()=>dw,getAssignmentTargetKind:()=>kx,getAutomaticTypeDirectiveNames:()=>FO,getBaseFileName:()=>Mc,getBinaryOperatorPrecedence:()=>ww,getBuildInfo:()=>u9,getBuildInfoFileVersionMap:()=>gq,getBuildInfoText:()=>Wse,getBuildOrderFromAnyBuildOrder:()=>j9,getBuilderCreationParameters:()=>D9,getBuilderFileEmit:()=>_y,getCheckFlags:()=>lc,getClassExtendsHeritageElement:()=>Vv,getClassLikeDeclarationOfSymbol:()=>ah,getCombinedLocalAndExportSymbolFlags:()=>CE,getCombinedModifierFlags:()=>Dv,getCombinedNodeFlags:()=>Wh,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>lJ,getCommentRange:()=>Ud,getCommonSourceDirectory:()=>w3,getCommonSourceDirectoryOfConfig:()=>A3,getCompilerOptionValue:()=>G5,getCompilerOptionsDiffValue:()=>gve,getConditions:()=>ab,getConfigFileParsingDiagnostics:()=>Z2,getConstantValue:()=>ere,getContainerFlags:()=>oU,getContainerNode:()=>tS,getContainingClass:()=>Rl,getContainingClassExcludingClassDecorators:()=>i5,getContainingClassStaticBlock:()=>fte,getContainingFunction:()=>yf,getContainingFunctionDeclaration:()=>_te,getContainingFunctionOrClassStaticBlock:()=>r5,getContainingNodeArray:()=>One,getContainingObjectLiteralElement:()=>cN,getContextualTypeFromParent:()=>bL,getContextualTypeFromParentOrAncestorTypeNode:()=>eL,getCurrentTime:()=>hA,getDeclarationDiagnostics:()=>Jse,getDeclarationEmitExtensionForPath:()=>Fw,getDeclarationEmitOutputFilePath:()=>Fte,getDeclarationEmitOutputFilePathWorker:()=>D5,getDeclarationFromName:()=>cE,getDeclarationModifierFlagsFromSymbol:()=>Uf,getDeclarationOfKind:()=>Zo,getDeclarationsOfKind:()=>Lee,getDeclaredExpandoInitializer:()=>uw,getDecorators:()=>U0,getDefaultCompilerOptions:()=>cM,getDefaultExportInfoWorker:()=>RL,getDefaultFormatCodeSettings:()=>q9,getDefaultLibFileName:()=>EP,getDefaultLibFilePath:()=>mle,getDefaultLikeExportInfo:()=>ML,getDiagnosticText:()=>ave,getDiagnosticsWithinSpan:()=>Hoe,getDirectoryPath:()=>Xr,getDirectoryToWatchFailedLookupLocation:()=>Sq,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>vae,getDocumentPositionMapper:()=>bG,getESModuleInterop:()=>Om,getEditsForFileRename:()=>tce,getEffectiveBaseTypeNode:()=>Bd,getEffectiveConstraintOfTypeParameter:()=>wk,getEffectiveContainerForJSDocTemplateTag:()=>v5,getEffectiveImplementsTypeNodes:()=>tC,getEffectiveInitializer:()=>lw,getEffectiveJSDocHost:()=>D2,getEffectiveModifierFlags:()=>Ju,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Hte,getEffectiveModifierFlagsNoCache:()=>Gte,getEffectiveReturnTypeNode:()=>yp,getEffectiveSetAccessorTypeAnnotationNode:()=>Rte,getEffectiveTypeAnnotationNode:()=>Xl,getEffectiveTypeParameterDeclarations:()=>q0,getEffectiveTypeRoots:()=>m3,getElementOrPropertyAccessArgumentExpressionOrName:()=>h5,getElementOrPropertyAccessName:()=>rh,getElementsOfBindingOrAssignmentPattern:()=>MC,getEmitDeclarations:()=>qf,getEmitFlags:()=>Sa,getEmitHelpers:()=>bF,getEmitModuleDetectionKind:()=>hne,getEmitModuleKind:()=>Ql,getEmitModuleResolutionKind:()=>Yl,getEmitScriptTarget:()=>La,getEmitStandardClassFields:()=>bne,getEnclosingBlockScopeContainer:()=>Nm,getEnclosingContainer:()=>YJ,getEncodedSemanticClassifications:()=>dG,getEncodedSyntacticClassifications:()=>mG,getEndLinePosition:()=>$P,getEntityNameFromTypeNode:()=>sw,getEntrypointsFromPackageJsonInfo:()=>eU,getErrorCountForSummary:()=>N9,getErrorSpanForNode:()=>Lv,getErrorSummaryText:()=>Tae,getEscapedTextOfIdentifierOrLiteral:()=>fE,getEscapedTextOfJsxAttributeName:()=>JE,getEscapedTextOfJsxNamespacedName:()=>Mx,getExpandoInitializer:()=>u1,getExportAssignmentExpression:()=>yz,getExportInfoMap:()=>qA,getExportNeedsImportStarHelper:()=>sse,getExpressionAssociativity:()=>kz,getExpressionPrecedence:()=>dE,getExternalHelpersModuleName:()=>E8,getExternalModuleImportEqualsDeclarationExpression:()=>iE,getExternalModuleName:()=>Qk,getExternalModuleNameFromDeclaration:()=>Nte,getExternalModuleNameFromPath:()=>Az,getExternalModuleNameLiteral:()=>tT,getExternalModuleRequireArgument:()=>sz,getFallbackOptions:()=>uA,getFileEmitOutput:()=>rae,getFileMatcherPatterns:()=>Z5,getFileNamesFromConfigSpecs:()=>f3,getFileWatcherEventKind:()=>XB,getFilesInErrorForSummary:()=>I9,getFirstConstructorWithBody:()=>yg,getFirstIdentifier:()=>tf,getFirstNonSpaceCharacterPosition:()=>Roe,getFirstProjectOutput:()=>zU,getFixableErrorSpanExpression:()=>KH,getFormatCodeSettingsForWriting:()=>IL,getFullWidth:()=>HP,getFunctionFlags:()=>Sl,getHeritageClause:()=>Cw,getHostSignatureFromJSDoc:()=>_1,getIdentifierAutoGenerate:()=>n1e,getIdentifierGeneratedImportReference:()=>are,getIdentifierTypeArguments:()=>M2,getImmediatelyInvokedFunctionExpression:()=>T2,getImpliedNodeFormatForFile:()=>pA,getImpliedNodeFormatForFileWorker:()=>aq,getImportNeedsImportDefaultHelper:()=>xU,getImportNeedsImportStarHelper:()=>ZO,getIndentSize:()=>aC,getIndentString:()=>C5,getInferredLibraryNameResolveFrom:()=>v9,getInitializedVariables:()=>kE,getInitializerOfBinaryExpression:()=>uz,getInitializerOfBindingOrAssignmentElement:()=>P8,getInterfaceBaseTypeNodes:()=>uE,getInternalEmitFlags:()=>Wp,getInvokedExpression:()=>o5,getIsolatedModules:()=>pd,getJSDocAugmentsTag:()=>ree,getJSDocClassTag:()=>fJ,getJSDocCommentRanges:()=>ez,getJSDocCommentsAndTags:()=>fz,getJSDocDeprecatedTag:()=>pJ,getJSDocDeprecatedTagNoCache:()=>uee,getJSDocEnumTag:()=>dJ,getJSDocHost:()=>Tx,getJSDocImplementsTags:()=>iee,getJSDocOverrideTagNoCache:()=>lee,getJSDocParameterTags:()=>Pk,getJSDocParameterTagsNoCache:()=>KK,getJSDocPrivateTag:()=>E0e,getJSDocPrivateTagNoCache:()=>aee,getJSDocProtectedTag:()=>D0e,getJSDocProtectedTagNoCache:()=>oee,getJSDocPublicTag:()=>C0e,getJSDocPublicTagNoCache:()=>see,getJSDocReadonlyTag:()=>P0e,getJSDocReadonlyTagNoCache:()=>cee,getJSDocReturnTag:()=>_ee,getJSDocReturnType:()=>NP,getJSDocRoot:()=>oE,getJSDocSatisfiesExpressionType:()=>pV,getJSDocSatisfiesTag:()=>mJ,getJSDocTags:()=>c1,getJSDocTagsNoCache:()=>A0e,getJSDocTemplateTag:()=>w0e,getJSDocThisTag:()=>k7,getJSDocType:()=>o1,getJSDocTypeAliasName:()=>gW,getJSDocTypeAssertionType:()=>pO,getJSDocTypeParameterDeclarations:()=>N5,getJSDocTypeParameterTags:()=>eee,getJSDocTypeParameterTagsNoCache:()=>tee,getJSDocTypeTag:()=>a1,getJSXImplicitImportBase:()=>X5,getJSXRuntimeImport:()=>Q5,getJSXTransformEnabled:()=>$5,getKeyForCompilerOptions:()=>QW,getLanguageVariant:()=>zw,getLastChild:()=>Hz,getLeadingCommentRanges:()=>lg,getLeadingCommentRangesOfNode:()=>KJ,getLeftmostAccessExpression:()=>DE,getLeftmostExpression:()=>uC,getLibraryNameFromLibFileName:()=>iq,getLineAndCharacterOfPosition:()=>Ka,getLineInfo:()=>yU,getLineOfLocalPosition:()=>gE,getLineOfLocalPositionFromLineMap:()=>w2,getLineStartPositionForPosition:()=>Cp,getLineStarts:()=>Zg,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>sne,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>ine,getLinesBetweenPositions:()=>R4,getLinesBetweenRangeEndAndRangeStart:()=>Wz,getLinesBetweenRangeEndPositions:()=>gye,getLiteralText:()=>Uee,getLocalNameForExternalImport:()=>LC,getLocalSymbolForExportDefault:()=>cC,getLocaleSpecificMessage:()=>ds,getLocaleTimeString:()=>gA,getMappedContextSpan:()=>BH,getMappedDocumentSpan:()=>gL,getMappedLocation:()=>z3,getMatchedFileSpec:()=>Dq,getMatchedIncludeSpec:()=>Pq,getMeaningFromDeclaration:()=>SA,getMeaningFromLocation:()=>eS,getMembersOfDeclaration:()=>ite,getModeForFileReference:()=>g9,getModeForResolutionAtIndex:()=>eq,getModeForUsageLocation:()=>vd,getModifiedTime:()=>_x,getModifiers:()=>Pv,getModuleInstanceState:()=>fh,getModuleNameStringLiteralAt:()=>T9,getModuleSpecifierEndingPreference:()=>rV,getModuleSpecifierResolverHost:()=>OH,getNameForExportedSymbol:()=>wL,getNameFromIndexInfo:()=>Zee,getNameFromPropertyName:()=>OA,getNameOfAccessExpression:()=>cne,getNameOfCompilerOptionValue:()=>OW,getNameOfDeclaration:()=>us,getNameOfExpando:()=>cz,getNameOfJSDocTypedef:()=>ZK,getNameOrArgument:()=>pw,getNameTable:()=>a$,getNamesForExportedSymbol:()=>Goe,getNamespaceDeclarationNode:()=>Yk,getNewLineCharacter:()=>Yh,getNewLineKind:()=>UA,getNewLineOrDefaultFromHost:()=>c0,getNewTargetContainer:()=>dte,getNextJSDocCommentLocation:()=>pz,getNodeForGeneratedName:()=>A8,getNodeId:()=>Va,getNodeKind:()=>db,getNodeModifiers:()=>j3,getNodeModulePathParts:()=>oF,getNonAssignedNameOfDeclaration:()=>T7,getNonAssignmentOperatorForCompoundAssignment:()=>b3,getNonAugmentationDeclaration:()=>qJ,getNonDecoratorTokenPosOfNode:()=>JJ,getNormalizedAbsolutePath:()=>cs,getNormalizedAbsolutePathWithoutRoot:()=>tJ,getNormalizedPathComponents:()=>gP,getObjectFlags:()=>Ir,getOperator:()=>Ez,getOperatorAssociativity:()=>Cz,getOperatorPrecedence:()=>Pw,getOptionFromName:()=>wW,getOptionsForLibraryResolution:()=>ZW,getOptionsNameMap:()=>BC,getOrCreateEmitNode:()=>uu,getOrCreateExternalHelpersModuleNameIfNeeded:()=>Ure,getOrUpdate:()=>T4,getOriginalNode:()=>cc,getOriginalNodeId:()=>_u,getOriginalSourceFile:()=>aye,getOutputDeclarationFileName:()=>P3,getOutputExtension:()=>o9,getOutputFileNames:()=>d2e,getOutputPathsFor:()=>D3,getOutputPathsForBundle:()=>E3,getOwnEmitOutputFilePath:()=>Ite,getOwnKeys:()=>Qg,getOwnValues:()=>ox,getPackageJsonInfo:()=>ob,getPackageJsonTypesVersionsPaths:()=>IO,getPackageJsonsVisibleToFile:()=>Uoe,getPackageNameFromTypesPackageName:()=>h3,getPackageScopeForPath:()=>Q8,getParameterSymbolFromJSDoc:()=>Sw,getParameterTypeNode:()=>wye,getParentNodeInSpan:()=>MA,getParseTreeNode:()=>ls,getParsedCommandLineOfConfigFile:()=>L8,getPathComponents:()=>bl,getPathComponentsRelativeTo:()=>rJ,getPathFromPathComponents:()=>z0,getPathUpdater:()=>yG,getPathsBasePath:()=>P5,getPatternFromSpec:()=>tV,getPendingEmitKind:()=>ZC,getPositionOfLineAndCharacter:()=>SP,getPossibleGenericSignatures:()=>TH,getPossibleOriginalInputExtensionForExtension:()=>Ote,getPossibleTypeArgumentsInfo:()=>kH,getPreEmitDiagnostics:()=>g2e,getPrecedingNonSpaceCharacterPosition:()=>yL,getPrivateIdentifier:()=>EU,getProperties:()=>kU,getProperty:()=>jI,getPropertyArrayElementValue:()=>ute,getPropertyAssignmentAliasLikeExpression:()=>Dte,getPropertyNameForPropertyNameNode:()=>P2,getPropertyNameForUniqueESSymbol:()=>iye,getPropertyNameFromType:()=>xp,getPropertyNameOfBindingOrAssignmentElement:()=>mW,getPropertySymbolFromBindingElement:()=>dL,getPropertySymbolsFromContextualType:()=>uM,getQuoteFromPreference:()=>MH,getQuotePreference:()=>Df,getRangesWhere:()=>Ej,getRefactorContextSpan:()=>mT,getReferencedFileLocation:()=>N3,getRegexFromPattern:()=>ry,getRegularExpressionForWildcard:()=>wE,getRegularExpressionsForWildcards:()=>Y5,getRelativePathFromDirectory:()=>Em,getRelativePathFromFile:()=>yP,getRelativePathToDirectoryOrUrl:()=>px,getRenameLocation:()=>BA,getReplacementSpanForContextToken:()=>PH,getResolutionDiagnostic:()=>lq,getResolutionModeOverride:()=>$C,getResolveJsonModule:()=>$v,getResolvePackageJsonExports:()=>Qz,getResolvePackageJsonImports:()=>Tye,getResolvedExternalModuleName:()=>E5,getRestIndicatorOfBindingOrAssignmentElement:()=>mO,getRestParameterElementType:()=>tz,getRightMostAssignedExpression:()=>_w,getRootDeclaration:()=>Fm,getRootDirectoryOfResolutionCache:()=>bae,getRootLength:()=>km,getRootPathSplitLength:()=>J2e,getScriptKind:()=>UH,getScriptKindFromFileName:()=>eF,getScriptTargetFeatures:()=>fF,getSelectedEffectiveModifierFlags:()=>Px,getSelectedSyntacticModifierFlags:()=>Ute,getSemanticClassifications:()=>Yoe,getSemanticJsxChildren:()=>rC,getSetAccessorTypeAnnotationNode:()=>Lte,getSetAccessorValueParameter:()=>hE,getSetExternalModuleIndicator:()=>Vw,getShebang:()=>b7,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>_z,getSingleVariableOfVariableStatement:()=>Kk,getSnapshotText:()=>s6,getSnippetElement:()=>RV,getSourceFileOfModule:()=>W7,getSourceFileOfNode:()=>Mn,getSourceFilePathInNewDir:()=>w5,getSourceFilePathInNewDirWorker:()=>A5,getSourceFileVersionAsHashFromText:()=>O9,getSourceFilesToEmit:()=>Nz,getSourceMapRange:()=>y1,getSourceMapper:()=>pce,getSourceTextOfNodeFromSourceFile:()=>Fv,getSpanOfTokenAtPosition:()=>Im,getSpellingSuggestion:()=>P4,getStartPositionOfLine:()=>Z0,getStartPositionOfRange:()=>TE,getStartsOnNewLine:()=>WE,getStaticPropertiesAndClassStaticBlock:()=>t9,getStrictOptionValue:()=>bp,getStringComparer:()=>D4,getSuperCallFromStatement:()=>KO,getSuperContainer:()=>rw,getSupportedCodeFixes:()=>i$,getSupportedExtensions:()=>AE,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>qw,getSwitchedType:()=>$H,getSymbolId:()=>ta,getSymbolNameForPrivateIdentifier:()=>Ew,getSymbolTarget:()=>Loe,getSyntacticClassifications:()=>Zoe,getSyntacticModifierFlags:()=>ty,getSyntacticModifierFlagsNoCache:()=>Lz,getSynthesizedDeepClone:()=>jo,getSynthesizedDeepCloneWithReplacements:()=>jA,getSynthesizedDeepClones:()=>gb,getSynthesizedDeepClonesWithReplacements:()=>qH,getSyntheticLeadingComments:()=>yC,getSyntheticTrailingComments:()=>l8,getTargetLabel:()=>X9,getTargetOfBindingOrAssignmentElement:()=>uy,getTemporaryModuleResolutionState:()=>X8,getTextOfConstantValue:()=>qee,getTextOfIdentifierOrLiteral:()=>gp,getTextOfJSDocComment:()=>FP,getTextOfJsxAttributeName:()=>Zw,getTextOfJsxNamespacedName:()=>zE,getTextOfNode:()=>Qc,getTextOfNodeFromSourceText:()=>Y4,getTextOfPropertyName:()=>Jk,getThisContainer:()=>__,getThisParameter:()=>Uv,getTokenAtPosition:()=>qi,getTokenPosOfNode:()=>b2,getTokenSourceMapRange:()=>e1e,getTouchingPropertyName:()=>m_,getTouchingToken:()=>R3,getTrailingCommentRanges:()=>n1,getTrailingSemicolonDeferringWriter:()=>wz,getTransformFlagsSubtreeExclusions:()=>Xne,getTransformers:()=>jU,getTsBuildInfoEmitOutputFilePath:()=>i0,getTsConfigObjectLiteralExpression:()=>tE,getTsConfigPropArrayElementValue:()=>n5,getTypeAnnotationNode:()=>Mte,getTypeArgumentOrTypeParameterList:()=>voe,getTypeKeywordOfTypeOnlyImport:()=>RH,getTypeNode:()=>ire,getTypeNodeIfAccessible:()=>H3,getTypeParameterFromJsDoc:()=>Ste,getTypeParameterOwner:()=>b0e,getTypesPackageName:()=>BO,getUILocale:()=>uK,getUniqueName:()=>sS,getUniqueSymbolId:()=>Moe,getUseDefineForClassFields:()=>Uw,getWatchErrorSummaryDiagnosticMessage:()=>Tq,getWatchFactory:()=>HU,group:()=>E4,groupBy:()=>aK,guessIndentation:()=>Fee,handleNoEmitOptions:()=>oq,hasAbstractModifier:()=>Gv,hasAccessorModifier:()=>zd,hasAmbientModifier:()=>Oz,hasChangesInResolutions:()=>RJ,hasChildOfKind:()=>PA,hasContextSensitiveParameters:()=>sF,hasDecorators:()=>Vf,hasDocComment:()=>hoe,hasDynamicName:()=>ey,hasEffectiveModifier:()=>M_,hasEffectiveModifiers:()=>I5,hasEffectiveReadonlyModifier:()=>yE,hasExtension:()=>fx,hasIndexSignature:()=>GH,hasInitializer:()=>Q0,hasInvalidEscape:()=>Dz,hasJSDocNodes:()=>Z_,hasJSDocParameterTags:()=>nee,hasJSFileExtension:()=>Xv,hasJsonModuleEmitEnabled:()=>U5,hasOnlyExpressionInitializer:()=>y2,hasOverrideModifier:()=>F5,hasPossibleExternalModuleReference:()=>Qee,hasProperty:()=>so,hasPropertyAccessExpressionWithName:()=>TA,hasQuestionToken:()=>xx,hasRecordedExternalHelpers:()=>Wre,hasResolutionModeOverride:()=>Bne,hasRestParameter:()=>FJ,hasScopeMarker:()=>Cee,hasStaticModifier:()=>Yc,hasSyntacticModifier:()=>Mr,hasSyntacticModifiers:()=>Wte,hasTSFileExtension:()=>O2,hasTabstop:()=>Mne,hasTrailingDirectorySeparator:()=>zh,hasType:()=>j7,hasTypeArguments:()=>K0e,hasZeroOrOneAsteriskCharacter:()=>Yz,helperString:()=>JV,hostGetCanonicalFileName:()=>$h,hostUsesCaseSensitiveFileNames:()=>Iw,idText:()=>ur,identifierIsThisKeyword:()=>Fz,identifierToKeywordKind:()=>s1,identity:()=>No,identitySourceMapConsumer:()=>YO,ignoreSourceNewlines:()=>BV,ignoredPaths:()=>mP,importDefaultHelper:()=>zF,importFromModuleSpecifier:()=>aE,importNameElisionDisabled:()=>Xz,importStarHelper:()=>_8,indexOfAnyCharCode:()=>XZ,indexOfNode:()=>Bk,indicesOf:()=>nP,inferredTypesContainingFile:()=>YC,injectClassNamedEvaluationHelperBlockIfMissing:()=>i9,injectClassThisAssignmentIfMissing:()=>dse,insertImports:()=>J3,insertLeadingStatement:()=>b1e,insertSorted:()=>j0,insertStatementAfterCustomPrologue:()=>v2,insertStatementAfterStandardPrologue:()=>W0e,insertStatementsAfterCustomPrologue:()=>jJ,insertStatementsAfterStandardPrologue:()=>Am,intersperse:()=>Tv,intrinsicTagNameToString:()=>dV,introducesArgumentsExoticObject:()=>cte,inverseJsxOptionMap:()=>p3,isAbstractConstructorSymbol:()=>ane,isAbstractModifier:()=>mre,isAccessExpression:()=>ho,isAccessibilityModifier:()=>EH,isAccessor:()=>G0,isAccessorModifier:()=>hre,isAliasSymbolDeclaration:()=>tye,isAliasableExpression:()=>kw,isAmbientModule:()=>lu,isAmbientPropertyDeclaration:()=>GJ,isAnonymousFunctionDefinition:()=>pE,isAnyDirectorySeparator:()=>ZB,isAnyImportOrBareOrAccessedRequire:()=>Xee,isAnyImportOrReExport:()=>QP,isAnyImportSyntax:()=>S2,isAnySupportedFileExtension:()=>Pye,isApplicableVersionedTypesKey:()=>Z8,isArgumentExpressionOfElementAccess:()=>mH,isArray:()=>ss,isArrayBindingElement:()=>I7,isArrayBindingOrAssignmentElement:()=>JP,isArrayBindingOrAssignmentPattern:()=>DJ,isArrayBindingPattern:()=>j2,isArrayLiteralExpression:()=>Vu,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>a0,isArrayTypeNode:()=>KF,isArrowFunction:()=>Co,isAsExpression:()=>h8,isAssertClause:()=>Cre,isAssertEntry:()=>f1e,isAssertionExpression:()=>h2,isAssertsKeyword:()=>pre,isAssignmentDeclaration:()=>sE,isAssignmentExpression:()=>pl,isAssignmentOperator:()=>Xh,isAssignmentPattern:()=>$4,isAssignmentTarget:()=>hg,isAsteriskToken:()=>d8,isAsyncFunction:()=>_E,isAsyncModifier:()=>HE,isAutoAccessorPropertyDeclaration:()=>u_,isAwaitExpression:()=>cy,isAwaitKeyword:()=>GV,isBigIntLiteral:()=>$F,isBinaryExpression:()=>Yn,isBinaryOperatorToken:()=>Zre,isBindableObjectDefinePropertyCall:()=>C2,isBindableStaticAccessExpression:()=>Jv,isBindableStaticElementAccessExpression:()=>g5,isBindableStaticNameExpression:()=>E2,isBindingElement:()=>Ma,isBindingElementOfBareOrAccessedRequire:()=>hte,isBindingName:()=>m2,isBindingOrAssignmentElement:()=>vee,isBindingOrAssignmentPattern:()=>jP,isBindingPattern:()=>Ms,isBlock:()=>Ds,isBlockOrCatchScoped:()=>zJ,isBlockScope:()=>$J,isBlockScopedContainerTopLevel:()=>$ee,isBooleanLiteral:()=>G4,isBreakOrContinueStatement:()=>U4,isBreakStatement:()=>l1e,isBuildInfoFile:()=>Vse,isBuilderProgram:()=>kae,isBundle:()=>eW,isBundleFileTextLike:()=>lne,isCallChain:()=>p2,isCallExpression:()=>Ws,isCallExpressionTarget:()=>lH,isCallLikeExpression:()=>Iv,isCallLikeOrFunctionLikeExpression:()=>PJ,isCallOrNewExpression:()=>Dm,isCallOrNewExpressionTarget:()=>uH,isCallSignatureDeclaration:()=>SC,isCallToHelper:()=>qE,isCaseBlock:()=>t3,isCaseClause:()=>PC,isCaseKeyword:()=>yre,isCaseOrDefaultClause:()=>M7,isCatchClause:()=>ib,isCatchClauseVariableDeclaration:()=>Lne,isCatchClauseVariableDeclarationOrBindingElement:()=>VJ,isCheckJsEnabledForFile:()=>$w,isChildOfNodeWithKind:()=>U0e,isCircularBuildOrder:()=>_T,isClassDeclaration:()=>Zc,isClassElement:()=>Ml,isClassExpression:()=>Bl,isClassInstanceProperty:()=>gee,isClassLike:()=>ei,isClassMemberModifier:()=>kJ,isClassNamedEvaluationHelperBlock:()=>uT,isClassOrTypeElement:()=>N7,isClassStaticBlockDeclaration:()=>rc,isClassThisAssignmentBlock:()=>x3,isCollapsedRange:()=>mye,isColonToken:()=>_re,isCommaExpression:()=>C8,isCommaListExpression:()=>KE,isCommaSequence:()=>s3,isCommaToken:()=>ure,isComment:()=>aL,isCommonJsExportPropertyAssignment:()=>e5,isCommonJsExportedExpression:()=>ate,isCompoundAssignment:()=>v3,isComputedNonLiteralName:()=>YP,isComputedPropertyName:()=>Na,isConciseBody:()=>O7,isConditionalExpression:()=>DC,isConditionalTypeNode:()=>CC,isConstTypeReference:()=>eh,isConstructSignatureDeclaration:()=>g8,isConstructorDeclaration:()=>Cc,isConstructorTypeNode:()=>XE,isContextualKeyword:()=>S5,isContinueStatement:()=>c1e,isCustomPrologue:()=>tw,isDebuggerStatement:()=>u1e,isDeclaration:()=>ku,isDeclarationBindingElement:()=>RP,isDeclarationFileName:()=>Jl,isDeclarationName:()=>ih,isDeclarationNameOfEnumOrNamespace:()=>Uz,isDeclarationReadonly:()=>Q7,isDeclarationStatement:()=>wee,isDeclarationWithTypeParameterChildren:()=>QJ,isDeclarationWithTypeParameters:()=>XJ,isDecorator:()=>Zl,isDecoratorTarget:()=>ioe,isDefaultClause:()=>S8,isDefaultImport:()=>Sx,isDefaultModifier:()=>YF,isDefaultedExpandoInitializer:()=>yte,isDeleteExpression:()=>Sre,isDeleteTarget:()=>gz,isDeprecatedDeclaration:()=>AL,isDestructuringAssignment:()=>Qh,isDiagnosticWithLocation:()=>ZH,isDiskPathRoot:()=>KB,isDoStatement:()=>a1e,isDocumentRegistryEntry:()=>HA,isDotDotDotToken:()=>XF,isDottedName:()=>bE,isDynamicName:()=>k5,isESSymbolIdentifier:()=>sye,isEffectiveExternalModule:()=>vx,isEffectiveModuleDeclaration:()=>Gee,isEffectiveStrictModeSourceFile:()=>HJ,isElementAccessChain:()=>hJ,isElementAccessExpression:()=>ko,isEmittedFileOfProgram:()=>Hse,isEmptyArrayLiteral:()=>Yte,isEmptyBindingElement:()=>QK,isEmptyBindingPattern:()=>XK,isEmptyObjectLiteral:()=>Jz,isEmptyStatement:()=>YV,isEmptyStringLiteral:()=>iz,isEntityName:()=>Y_,isEntityNameExpression:()=>gc,isEnumConst:()=>Mv,isEnumDeclaration:()=>T1,isEnumMember:()=>sb,isEqualityOperatorKind:()=>SL,isEqualsGreaterThanToken:()=>fre,isExclamationToken:()=>m8,isExcludedFile:()=>fie,isExclusivelyTypeOnlyImportOrExport:()=>tq,isExpandoPropertyDeclaration:()=>lF,isExportAssignment:()=>hc,isExportDeclaration:()=>Kc,isExportModifier:()=>Wx,isExportName:()=>fO,isExportNamespaceAsDefaultDeclaration:()=>H7,isExportOrDefaultModifier:()=>w8,isExportSpecifier:()=>Eu,isExportsIdentifier:()=>k2,isExportsOrModuleExportsOrAlias:()=>cb,isExpression:()=>ut,isExpressionNode:()=>mg,isExpressionOfExternalModuleImportEqualsDeclaration:()=>coe,isExpressionOfOptionalChainRoot:()=>D7,isExpressionStatement:()=>Il,isExpressionWithTypeArguments:()=>t0,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Mw,isExternalModule:()=>Bc,isExternalModuleAugmentation:()=>Ov,isExternalModuleImportEqualsDeclaration:()=>l1,isExternalModuleIndicator:()=>zP,isExternalModuleNameRelative:()=>Al,isExternalModuleReference:()=>Bm,isExternalModuleSymbol:()=>IA,isExternalOrCommonJsModule:()=>K_,isFileLevelReservedGeneratedIdentifier:()=>MP,isFileLevelUniqueName:()=>U7,isFileProbablyExternalModule:()=>I8,isFirstDeclarationOfSymbolParameter:()=>JH,isFixablePromiseHandler:()=>TG,isForInOrOfStatement:()=>Ok,isForInStatement:()=>iO,isForInitializer:()=>zf,isForOfStatement:()=>y8,isForStatement:()=>z2,isFunctionBlock:()=>jv,isFunctionBody:()=>AJ,isFunctionDeclaration:()=>al,isFunctionExpression:()=>uo,isFunctionExpressionOrArrowFunction:()=>Yv,isFunctionLike:()=>As,isFunctionLikeDeclaration:()=>To,isFunctionLikeKind:()=>hx,isFunctionLikeOrClassStaticBlockDeclaration:()=>Nk,isFunctionOrConstructorTypeNode:()=>yee,isFunctionOrModuleBlock:()=>CJ,isFunctionSymbol:()=>bte,isFunctionTypeNode:()=>Tg,isFutureReservedKeyword:()=>nye,isGeneratedIdentifier:()=>Lo,isGeneratedPrivateIdentifier:()=>d2,isGetAccessor:()=>X0,isGetAccessorDeclaration:()=>Sf,isGetOrSetAccessorDeclaration:()=>C7,isGlobalDeclaration:()=>$Se,isGlobalScopeAugmentation:()=>jd,isGrammarError:()=>Vee,isHeritageClause:()=>rf,isHoistedFunction:()=>Z7,isHoistedVariableStatement:()=>K7,isIdentifier:()=>Ie,isIdentifierANonContextualKeyword:()=>x5,isIdentifierName:()=>Ete,isIdentifierOrThisTypeNode:()=>$re,isIdentifierPart:()=>r1,isIdentifierStart:()=>ug,isIdentifierText:()=>hf,isIdentifierTypePredicate:()=>lte,isIdentifierTypeReference:()=>Ane,isIfStatement:()=>J2,isIgnoredFileFromWildCardWatching:()=>lA,isImplicitGlob:()=>eV,isImportAttribute:()=>Ere,isImportAttributeName:()=>mee,isImportAttributes:()=>sO,isImportCall:()=>ef,isImportClause:()=>Rm,isImportDeclaration:()=>kl,isImportEqualsDeclaration:()=>Kl,isImportKeyword:()=>$E,isImportMeta:()=>Wk,isImportOrExportSpecifier:()=>gx,isImportOrExportSpecifierName:()=>Ooe,isImportSpecifier:()=>E_,isImportTypeAssertionContainer:()=>_1e,isImportTypeNode:()=>ch,isImportableFile:()=>uG,isInComment:()=>s0,isInCompoundLikeAssignment:()=>dz,isInExpressionContext:()=>l5,isInJSDoc:()=>ow,isInJSFile:()=>Qn,isInJSXText:()=>moe,isInJsonFile:()=>_5,isInNonReferenceComment:()=>xoe,isInReferenceComment:()=>Soe,isInRightSideOfInternalImportEqualsDeclaration:()=>G9,isInString:()=>nS,isInTemplateString:()=>xH,isInTopLevelContext:()=>s5,isInTypeQuery:()=>A2,isIncrementalCompilation:()=>Ww,isIndexSignatureDeclaration:()=>R2,isIndexedAccessTypeNode:()=>$x,isInferTypeNode:()=>qx,isInfinityOrNaNString:()=>RE,isInitializedProperty:()=>rA,isInitializedVariable:()=>Jw,isInsideJsxElement:()=>iL,isInsideJsxElementOrAttribute:()=>doe,isInsideNodeModules:()=>WA,isInsideTemplateLiteral:()=>AA,isInstanceOfExpression:()=>O5,isInstantiatedModule:()=>pU,isInterfaceDeclaration:()=>Wu,isInternalDeclaration:()=>MU,isInternalModuleImportEqualsDeclaration:()=>Gk,isInternalName:()=>fW,isIntersectionTypeNode:()=>kC,isIntrinsicJsxName:()=>sC,isIterationStatement:()=>$0,isJSDoc:()=>Qp,isJSDocAllType:()=>Nre,isJSDocAugmentsTag:()=>NC,isJSDocAuthorTag:()=>g1e,isJSDocCallbackTag:()=>nW,isJSDocClassTag:()=>Fre,isJSDocCommentContainingNode:()=>R7,isJSDocConstructSignature:()=>Zk,isJSDocDeprecatedTag:()=>oW,isJSDocEnumTag:()=>x8,isJSDocFunctionType:()=>AC,isJSDocImplementsTag:()=>cW,isJSDocIndexSignature:()=>f5,isJSDocLikeText:()=>SW,isJSDocLink:()=>wre,isJSDocLinkCode:()=>Are,isJSDocLinkLike:()=>yx,isJSDocLinkPlain:()=>d1e,isJSDocMemberName:()=>k1,isJSDocNameReference:()=>r3,isJSDocNamepathType:()=>m1e,isJSDocNamespaceBody:()=>j0e,isJSDocNode:()=>Lk,isJSDocNonNullableType:()=>aO,isJSDocNullableType:()=>wC,isJSDocOptionalParameter:()=>Yw,isJSDocOptionalType:()=>tW,isJSDocOverloadTag:()=>IC,isJSDocOverrideTag:()=>cO,isJSDocParameterTag:()=>gd,isJSDocPrivateTag:()=>iW,isJSDocPropertyLikeTag:()=>OP,isJSDocPropertyTag:()=>Lre,isJSDocProtectedTag:()=>sW,isJSDocPublicTag:()=>rW,isJSDocReadonlyTag:()=>aW,isJSDocReturnTag:()=>lO,isJSDocSatisfiesExpression:()=>fV,isJSDocSatisfiesTag:()=>uO,isJSDocSeeTag:()=>h1e,isJSDocSignature:()=>C1,isJSDocTag:()=>Mk,isJSDocTemplateTag:()=>hd,isJSDocThisTag:()=>Ore,isJSDocThrowsTag:()=>v1e,isJSDocTypeAlias:()=>mp,isJSDocTypeAssertion:()=>a3,isJSDocTypeExpression:()=>q2,isJSDocTypeLiteral:()=>eT,isJSDocTypeTag:()=>i3,isJSDocTypedefTag:()=>FC,isJSDocUnknownTag:()=>y1e,isJSDocUnknownType:()=>Ire,isJSDocVariadicType:()=>oO,isJSXTagName:()=>Hk,isJsonEqual:()=>rF,isJsonSourceFile:()=>dp,isJsxAttribute:()=>$d,isJsxAttributeLike:()=>L7,isJsxAttributeName:()=>jne,isJsxAttributes:()=>rb,isJsxChild:()=>UP,isJsxClosingElement:()=>tb,isJsxClosingFragment:()=>Dre,isJsxElement:()=>kg,isJsxExpression:()=>n3,isJsxFragment:()=>nb,isJsxNamespacedName:()=>md,isJsxOpeningElement:()=>Gd,isJsxOpeningFragment:()=>Zx,isJsxOpeningLikeElement:()=>Zu,isJsxOpeningLikeElementTagName:()=>soe,isJsxSelfClosingElement:()=>W2,isJsxSpreadAttribute:()=>Kx,isJsxTagNameExpression:()=>X4,isJsxText:()=>zx,isJumpStatementTarget:()=>kA,isKeyword:()=>p_,isKeywordOrPunctuation:()=>b5,isKnownSymbol:()=>Dw,isLabelName:()=>pH,isLabelOfLabeledStatement:()=>fH,isLabeledStatement:()=>eb,isLateVisibilityPaintedStatement:()=>$7,isLeftHandSideExpression:()=>x_,isLeftHandSideOfAssignment:()=>dye,isLet:()=>Y7,isLineBreak:()=>xu,isLiteralComputedPropertyDeclarationName:()=>Tw,isLiteralExpression:()=>Av,isLiteralExpressionOfObject:()=>xJ,isLiteralImportTypeNode:()=>K0,isLiteralKind:()=>q4,isLiteralLikeAccess:()=>m5,isLiteralLikeElementAccess:()=>fw,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>Q9,isLiteralTypeLikeExpression:()=>C1e,isLiteralTypeLiteral:()=>Tee,isLiteralTypeNode:()=>S1,isLocalName:()=>uh,isLogicalOperator:()=>$te,isLogicalOrCoalescingAssignmentExpression:()=>Mz,isLogicalOrCoalescingAssignmentOperator:()=>vE,isLogicalOrCoalescingBinaryExpression:()=>Lw,isLogicalOrCoalescingBinaryOperator:()=>Ow,isMappedTypeNode:()=>YE,isMemberName:()=>_g,isMetaProperty:()=>ZE,isMethodDeclaration:()=>kc,isMethodOrAccessor:()=>Ik,isMethodSignature:()=>xg,isMinusToken:()=>HV,isMissingDeclaration:()=>p1e,isModifier:()=>ra,isModifierKind:()=>Uh,isModifierLike:()=>Mo,isModuleAugmentationExternal:()=>UJ,isModuleBlock:()=>Hd,isModuleBody:()=>Eee,isModuleDeclaration:()=>Pc,isModuleExportsAccessExpression:()=>gg,isModuleIdentifier:()=>lz,isModuleName:()=>Yre,isModuleOrEnumDeclaration:()=>VP,isModuleReference:()=>Nee,isModuleSpecifierLike:()=>pL,isModuleWithStringLiteralName:()=>G7,isNameOfFunctionDeclaration:()=>hH,isNameOfModuleDeclaration:()=>gH,isNamedClassElement:()=>hee,isNamedDeclaration:()=>Ru,isNamedEvaluation:()=>L_,isNamedEvaluationSource:()=>Sz,isNamedExportBindings:()=>vJ,isNamedExports:()=>kp,isNamedImportBindings:()=>NJ,isNamedImports:()=>lh,isNamedImportsOrExports:()=>J5,isNamedTupleMember:()=>QE,isNamespaceBody:()=>R0e,isNamespaceExport:()=>jm,isNamespaceExportDeclaration:()=>b8,isNamespaceImport:()=>ly,isNamespaceReexportDeclaration:()=>gte,isNewExpression:()=>Kv,isNewExpressionTarget:()=>L3,isNoSubstitutionTemplateLiteral:()=>Vx,isNode:()=>I0e,isNodeArray:()=>wv,isNodeArrayMultiLine:()=>rne,isNodeDescendantOf:()=>zv,isNodeKind:()=>LP,isNodeLikeSystem:()=>zj,isNodeModulesDirectory:()=>m7,isNodeWithPossibleHoistedDeclaration:()=>Tte,isNonContextualKeyword:()=>bz,isNonExportDefaultModifier:()=>D1e,isNonGlobalAmbientModule:()=>WJ,isNonGlobalDeclaration:()=>Qoe,isNonNullAccess:()=>Rne,isNonNullChain:()=>P7,isNonNullExpression:()=>Qx,isNonStaticMethodOrAccessorWithPrivateName:()=>ase,isNotEmittedOrPartiallyEmittedNode:()=>M0e,isNotEmittedStatement:()=>KV,isNullishCoalesce:()=>yJ,isNumber:()=>Bh,isNumericLiteral:()=>R_,isNumericLiteralName:()=>Sg,isObjectBindingElementWithoutPropertyName:()=>LA,isObjectBindingOrAssignmentElement:()=>BP,isObjectBindingOrAssignmentPattern:()=>EJ,isObjectBindingPattern:()=>Gp,isObjectLiteralElement:()=>IJ,isObjectLiteralElementLike:()=>th,isObjectLiteralExpression:()=>xa,isObjectLiteralMethod:()=>qp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>t5,isObjectTypeDeclaration:()=>Nx,isOctalDigit:()=>v7,isOmittedExpression:()=>xl,isOptionalChain:()=>Tu,isOptionalChainRoot:()=>V4,isOptionalDeclaration:()=>BE,isOptionalJSDocPropertyLikeTag:()=>Qw,isOptionalTypeNode:()=>$V,isOuterExpression:()=>dO,isOutermostOptionalChain:()=>W4,isOverrideModifier:()=>gre,isPackedArrayLiteral:()=>lV,isParameter:()=>ms,isParameterDeclaration:()=>Wv,isParameterOrCatchClauseVariable:()=>uV,isParameterPropertyDeclaration:()=>F_,isParameterPropertyModifier:()=>H4,isParenthesizedExpression:()=>C_,isParenthesizedTypeNode:()=>Hx,isParseTreeNode:()=>z4,isPartOfTypeNode:()=>dg,isPartOfTypeQuery:()=>u5,isPartiallyEmittedExpression:()=>rO,isPatternMatch:()=>WI,isPinnedComment:()=>q7,isPlainJsFile:()=>GP,isPlusToken:()=>qV,isPossiblyTypeArgumentPosition:()=>wA,isPostfixUnaryExpression:()=>QV,isPrefixUnaryExpression:()=>x1,isPrivateIdentifier:()=>Di,isPrivateIdentifierClassElementDeclaration:()=>ju,isPrivateIdentifierPropertyAccessExpression:()=>Ak,isPrivateIdentifierSymbol:()=>Pte,isProgramBundleEmitBuildInfo:()=>cae,isProgramUptoDate:()=>sq,isPrologueDirective:()=>Up,isPropertyAccessChain:()=>E7,isPropertyAccessEntityNameExpression:()=>Rw,isPropertyAccessExpression:()=>Cr,isPropertyAccessOrQualifiedName:()=>See,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>bee,isPropertyAssignment:()=>el,isPropertyDeclaration:()=>Is,isPropertyName:()=>Rc,isPropertyNameLiteral:()=>Jd,isPropertySignature:()=>bf,isProtoSetter:()=>wte,isPrototypeAccess:()=>ny,isPrototypePropertyAssignment:()=>mw,isPunctuation:()=>vz,isPushOrUnshiftIdentifier:()=>xz,isQualifiedName:()=>k_,isQuestionDotToken:()=>QF,isQuestionOrExclamationToken:()=>Gre,isQuestionOrPlusOrMinusToken:()=>Qre,isQuestionToken:()=>oy,isRawSourceMap:()=>nse,isReadonlyKeyword:()=>dre,isReadonlyKeywordOrPlusOrMinusToken:()=>Xre,isRecognizedTripleSlashComment:()=>BJ,isReferenceFileLocation:()=>XC,isReferencedFile:()=>I1,isRegularExpressionLiteral:()=>WV,isRequireCall:()=>T_,isRequireVariableStatement:()=>oz,isRestParameter:()=>fg,isRestTypeNode:()=>XV,isReturnStatement:()=>$p,isReturnStatementWithFixablePromiseHandler:()=>JL,isRightSideOfAccessExpression:()=>Bz,isRightSideOfInstanceofExpression:()=>Qte,isRightSideOfPropertyAccess:()=>r6,isRightSideOfQualifiedName:()=>ooe,isRightSideOfQualifiedNameOrPropertyAccess:()=>SE,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Xte,isRootedDiskPath:()=>I_,isSameEntityName:()=>$k,isSatisfiesExpression:()=>xre,isScopeMarker:()=>kee,isSemicolonClassElement:()=>Tre,isSetAccessor:()=>qh,isSetAccessorDeclaration:()=>j_,isShebangTrivia:()=>iJ,isShiftOperatorOrHigher:()=>yW,isShorthandAmbientModuleSymbol:()=>Z4,isShorthandPropertyAssignment:()=>sf,isSignedNumericLiteral:()=>T5,isSimpleCopiableExpression:()=>ub,isSimpleInlineableExpression:()=>Xd,isSingleOrDoubleQuote:()=>cw,isSourceFile:()=>Li,isSourceFileFromLibrary:()=>$3,isSourceFileJS:()=>Bu,isSourceFileNotJS:()=>G0e,isSourceFileNotJson:()=>az,isSourceMapping:()=>rse,isSpecialPropertyDeclaration:()=>vte,isSpreadAssignment:()=>n0,isSpreadElement:()=>qd,isStatement:()=>Ai,isStatementButNotDeclaration:()=>WP,isStatementOrBlock:()=>Aee,isStatementWithLocals:()=>zee,isStatic:()=>zs,isStaticModifier:()=>Ux,isString:()=>os,isStringAKeyword:()=>rye,isStringANonContextualKeyword:()=>Cx,isStringAndEmptyAnonymousObjectIntersection:()=>boe,isStringDoubleQuoted:()=>d5,isStringLiteral:()=>ca,isStringLiteralLike:()=>$a,isStringLiteralOrJsxExpression:()=>Iee,isStringLiteralOrTemplate:()=>zoe,isStringOrNumericLiteralLike:()=>vf,isStringOrRegularExpressionOrTemplateLiteral:()=>CH,isStringTextContainingNode:()=>TJ,isSuperCall:()=>x2,isSuperKeyword:()=>GE,isSuperOrSuperProperty:()=>H0e,isSuperProperty:()=>f_,isSupportedSourceFileName:()=>Ene,isSwitchStatement:()=>v8,isSyntaxList:()=>OC,isSyntheticExpression:()=>s1e,isSyntheticReference:()=>Yx,isTagName:()=>dH,isTaggedTemplateExpression:()=>B2,isTaggedTemplateTag:()=>roe,isTemplateExpression:()=>tO,isTemplateHead:()=>bC,isTemplateLiteral:()=>Fk,isTemplateLiteralKind:()=>H0,isTemplateLiteralToken:()=>pee,isTemplateLiteralTypeNode:()=>i1e,isTemplateLiteralTypeSpan:()=>vre,isTemplateMiddle:()=>lre,isTemplateMiddleOrTemplateTail:()=>w7,isTemplateSpan:()=>e3,isTemplateTail:()=>UV,isTextWhiteSpaceLike:()=>Eoe,isThis:()=>i6,isThisContainerOrFunctionBlock:()=>pte,isThisIdentifier:()=>Hv,isThisInTypeQuery:()=>Dx,isThisInitializedDeclaration:()=>a5,isThisInitializedObjectBindingExpression:()=>mte,isThisProperty:()=>iw,isThisTypeNode:()=>eO,isThisTypeParameter:()=>jE,isThisTypePredicate:()=>q0e,isThrowStatement:()=>ZV,isToken:()=>mx,isTokenKind:()=>SJ,isTraceEnabled:()=>_h,isTransientSymbol:()=>wm,isTrivia:()=>nC,isTryStatement:()=>V2,isTupleTypeNode:()=>TC,isTypeAlias:()=>yw,isTypeAliasDeclaration:()=>Xp,isTypeAssertionExpression:()=>bre,isTypeDeclaration:()=>mC,isTypeElement:()=>g2,isTypeKeyword:()=>B3,isTypeKeywordToken:()=>NH,isTypeKeywordTokenOrIdentifier:()=>lL,isTypeLiteralNode:()=>nf,isTypeNode:()=>Ei,isTypeNodeKind:()=>Gz,isTypeOfExpression:()=>EC,isTypeOnlyExportDeclaration:()=>dee,isTypeOnlyImportDeclaration:()=>A7,isTypeOnlyImportOrExportDeclaration:()=>Nv,isTypeOperatorNode:()=>Gx,isTypeParameterDeclaration:()=>Ko,isTypePredicateNode:()=>ZF,isTypeQueryNode:()=>xC,isTypeReferenceNode:()=>Tp,isTypeReferenceType:()=>B7,isTypeUsableAsPropertyName:()=>Sp,isUMDExportSymbol:()=>B5,isUnaryExpression:()=>wJ,isUnaryExpressionWithWrite:()=>xee,isUnicodeIdentifierStart:()=>h7,isUnionTypeNode:()=>b1,isUnparsedNode:()=>bJ,isUnparsedPrepend:()=>Pre,isUnparsedSource:()=>U2,isUnparsedTextLike:()=>fee,isUrl:()=>OK,isValidBigIntString:()=>iF,isValidESSymbolDeclaration:()=>ote,isValidTypeOnlyAliasUseSite:()=>h1,isValueSignatureDeclaration:()=>kte,isVarAwaitUsing:()=>KP,isVarConst:()=>Vk,isVarUsing:()=>ew,isVariableDeclaration:()=>Ni,isVariableDeclarationInVariableStatement:()=>eE,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>Bv,isVariableDeclarationInitializedToRequire:()=>p5,isVariableDeclarationList:()=>Tl,isVariableLike:()=>Uk,isVariableLikeOrAccessor:()=>ste,isVariableStatement:()=>uc,isVoidExpression:()=>Xx,isWatchSet:()=>hye,isWhileStatement:()=>o1e,isWhiteSpaceLike:()=>Kg,isWhiteSpaceSingleLine:()=>Md,isWithStatement:()=>kre,isWriteAccess:()=>Ax,isWriteOnlyAccess:()=>j5,isYieldExpression:()=>nO,jsxModeNeedsExplicitImport:()=>rG,keywordPart:()=>J_,last:()=>Pa,lastOrUndefined:()=>qo,length:()=>bn,libMap:()=>kO,libs:()=>z8,lineBreakPart:()=>c6,linkNamePart:()=>Ioe,linkPart:()=>VH,linkTextPart:()=>hL,listFiles:()=>kq,loadModuleFromGlobalCache:()=>Bie,loadWithModeAwareCache:()=>fA,makeIdentifierFromModuleName:()=>Hee,makeImport:()=>o0,makeImportIfNecessary:()=>Coe,makeStringLiteral:()=>dT,mangleScopedPackageName:()=>qC,map:()=>Kt,mapAllOrFail:()=>kj,mapDefined:()=>Ri,mapDefinedEntries:()=>YZ,mapDefinedIterator:()=>gk,mapEntries:()=>KZ,mapIterator:()=>S4,mapOneOrMany:()=>eG,mapToDisplayParts:()=>py,matchFiles:()=>nV,matchPatternOrExact:()=>iV,matchedText:()=>mK,matchesExclude:()=>TO,maybeBind:()=>Js,maybeSetLocalizedDiagnosticMessages:()=>mne,memoize:()=>Yu,memoizeCached:()=>cK,memoizeOne:()=>xm,memoizeWeak:()=>Ehe,metadataHelper:()=>xF,min:()=>Mj,minAndMax:()=>Pne,missingFileModifiedTime:()=>cg,modifierToFlag:()=>wx,modifiersToFlags:()=>Vd,moduleOptionDeclaration:()=>BW,moduleResolutionIsEqualTo:()=>Bee,moduleResolutionNameAndModeGetter:()=>dA,moduleResolutionOptionDeclarations:()=>CO,moduleResolutionSupportsPackageJsonExportsAndImports:()=>Ox,moduleResolutionUsesNodeModules:()=>uL,moduleSpecifiers:()=>lb,moveEmitHelpers:()=>nre,moveRangeEnd:()=>M5,moveRangePastDecorators:()=>Zh,moveRangePastModifiers:()=>Wd,moveRangePos:()=>d1,moveSyntheticComments:()=>Kne,mutateMap:()=>lC,mutateMapSkippingNewValues:()=>sh,needsParentheses:()=>vL,needsScopeMarker:()=>F7,newCaseClauseTracker:()=>FL,newPrivateEnvironment:()=>lse,noEmitNotification:()=>iA,noEmitSubstitution:()=>C3,noTransformers:()=>BU,noTruncationMaximumTruncationLength:()=>_F,nodeCanBeDecorated:()=>c5,nodeHasName:()=>AP,nodeIsDecorated:()=>nE,nodeIsMissing:()=>dc,nodeIsPresent:()=>fp,nodeIsSynthesized:()=>Ro,nodeModuleNameResolver:()=>Nie,nodeModulesPathPart:()=>zm,nodeNextJsonConfigResolver:()=>Iie,nodeOrChildIsDecorated:()=>aw,nodeOverlapsWithStartEnd:()=>Y9,nodePosToString:()=>B0e,nodeSeenTracker:()=>pT,nodeStartsNewLexicalEnvironment:()=>Tz,nodeToDisplayParts:()=>VSe,noop:()=>Fa,noopFileWatcher:()=>e6,normalizePath:()=>Ys,normalizeSlashes:()=>Su,not:()=>qI,notImplemented:()=>Ts,notImplementedResolver:()=>_9,nullNodeConverters:()=>AV,nullParenthesizerRules:()=>wV,nullTransformationContext:()=>yd,objectAllocator:()=>jl,operatorPart:()=>V3,optionDeclarations:()=>Cg,optionMapToObject:()=>FW,optionsAffectingProgramStructure:()=>UW,optionsForBuild:()=>HW,optionsForWatch:()=>JC,optionsHaveChanges:()=>Rk,optionsHaveModuleResolutionChanges:()=>Mee,or:()=>ud,orderedRemoveItem:()=>aP,orderedRemoveItemAt:()=>Ky,outFile:()=>lo,packageIdToPackageName:()=>V7,packageIdToString:()=>Y0,paramHelper:()=>TF,parameterIsThisKeyword:()=>qv,parameterNamePart:()=>Poe,parseBaseNodeFactory:()=>CW,parseBigInt:()=>wne,parseBuildCommand:()=>sve,parseCommandLine:()=>rve,parseCommandLineWorker:()=>PW,parseConfigFileTextToJson:()=>AW,parseConfigFileWithSystem:()=>V2e,parseConfigHostFromCompilerHostLike:()=>x9,parseCustomTypeOption:()=>SO,parseIsolatedEntityName:()=>nT,parseIsolatedJSDocComment:()=>iie,parseJSDocTypeExpressionForTests:()=>U1e,parseJsonConfigFileContent:()=>vve,parseJsonSourceFileConfigFileContent:()=>j8,parseJsonText:()=>O8,parseListTypeOption:()=>aie,parseNodeFactory:()=>Jm,parseNodeModuleFromPath:()=>$8,parsePackageName:()=>Y8,parsePseudoBigInt:()=>FE,parseValidBigInt:()=>cV,patchWriteFileEnsuringDirectory:()=>IK,pathContainsNodeModules:()=>aT,pathIsAbsolute:()=>F4,pathIsBareSpecifier:()=>eJ,pathIsRelative:()=>Q_,patternText:()=>dK,perfLogger:()=>Lu,performIncrementalCompilation:()=>H2e,performance:()=>EK,plainJSErrors:()=>C9,positionBelongsToNode:()=>vH,positionIsASICandidate:()=>TL,positionIsSynthesized:()=>dd,positionsAreOnSameLine:()=>vp,preProcessFile:()=>mxe,probablyUsesSemicolons:()=>zA,processCommentPragmas:()=>TW,processPragmasIntoFields:()=>kW,processTaggedTemplateExpression:()=>NU,programContainsEsModules:()=>koe,programContainsModules:()=>Toe,projectReferenceIsEqualTo:()=>LJ,propKeyHelper:()=>MF,propertyNamePart:()=>woe,pseudoBigIntToString:()=>Qv,punctuationPart:()=>Pu,pushIfUnique:()=>lp,quote:()=>q3,quotePreferenceFromString:()=>LH,rangeContainsPosition:()=>CA,rangeContainsPositionExclusive:()=>EA,rangeContainsRange:()=>Ef,rangeContainsRangeExclusive:()=>loe,rangeContainsStartEnd:()=>DA,rangeEndIsOnSameLineAsRangeStart:()=>Bw,rangeEndPositionsAreOnSameLine:()=>tne,rangeEquals:()=>wj,rangeIsOnSingleLine:()=>I2,rangeOfNode:()=>aV,rangeOfTypeParameters:()=>oV,rangeOverlapsWithStartEnd:()=>M3,rangeStartIsOnSameLineAsRangeEnd:()=>nne,rangeStartPositionsAreOnSameLine:()=>R5,readBuilderProgram:()=>R9,readConfigFile:()=>M8,readHelper:()=>OF,readJson:()=>xE,readJsonConfigFile:()=>lie,readJsonOrUndefined:()=>zz,reduceEachLeadingCommentRange:()=>BK,reduceEachTrailingCommentRange:()=>JK,reduceLeft:()=>Fu,reduceLeftIterator:()=>Fd,reducePathComponents:()=>f2,refactor:()=>hT,regExpEscape:()=>Cye,relativeComplement:()=>tK,removeAllComments:()=>o8,removeEmitHelper:()=>t1e,removeExtension:()=>Gw,removeFileExtension:()=>zu,removeIgnoredPath:()=>P9,removeMinAndVersionNumbers:()=>Rj,removeOptionality:()=>goe,removePrefix:()=>w4,removeSuffix:()=>yk,removeTrailingDirectorySeparator:()=>e1,repeatString:()=>FA,replaceElement:()=>Ij,resolutionExtensionIsTSOrJson:()=>NE,resolveConfigFileProjectName:()=>Lq,resolveJSModule:()=>wie,resolveLibrary:()=>LO,resolveModuleName:()=>WC,resolveModuleNameFromCache:()=>nbe,resolvePackageNameToPackageJson:()=>XW,resolvePath:()=>V0,resolveProjectReferencePath:()=>QC,resolveTripleslashReference:()=>m9,resolveTypeReferenceDirective:()=>Eie,resolvingEmptyArray:()=>uF,restHelper:()=>AF,returnFalse:()=>ld,returnNoopFileWatcher:()=>t6,returnTrue:()=>Yg,returnUndefined:()=>Zy,returnsPromise:()=>xG,runInitializersHelper:()=>CF,sameFlatMap:()=>QZ,sameMap:()=>sl,sameMapping:()=>Ube,scanShebangTrivia:()=>sJ,scanTokenAtPosition:()=>nte,scanner:()=>wu,screenStartingMessageCodes:()=>M9,semanticDiagnosticsOptionDeclarations:()=>zW,serializeCompilerOptions:()=>LW,server:()=>lPe,servicesVersion:()=>gle,setCommentRange:()=>jc,setConfigFileInOptions:()=>RW,setConstantValue:()=>tre,setEachParent:()=>dC,setEmitFlags:()=>$n,setFunctionNameHelper:()=>RF,setGetSourceFileAsHashVersioned:()=>L9,setIdentifierAutoGenerate:()=>u8,setIdentifierGeneratedImportReference:()=>sre,setIdentifierTypeArguments:()=>e0,setInternalEmitFlags:()=>c8,setLocalizedDiagnosticMessages:()=>dne,setModuleDefaultHelper:()=>JF,setNodeFlags:()=>Ine,setObjectAllocator:()=>pne,setOriginalNode:()=>or,setParent:()=>Ta,setParentRecursive:()=>iy,setPrivateIdentifier:()=>X2,setSnippetElement:()=>jV,setSourceMapRange:()=>Ca,setStackTraceLimit:()=>Ghe,setStartsOnNewLine:()=>yF,setSyntheticLeadingComments:()=>v1,setSyntheticTrailingComments:()=>jx,setSys:()=>Zhe,setSysLog:()=>AK,setTextRange:()=>nt,setTextRangeEnd:()=>pC,setTextRangePos:()=>OE,setTextRangePosEnd:()=>Lm,setTextRangePosWidth:()=>LE,setTokenSourceMapRange:()=>Zne,setTypeNode:()=>rre,setUILocale:()=>_K,setValueDeclaration:()=>gw,shouldAllowImportingTsExtension:()=>HC,shouldPreserveConstEnums:()=>F2,shouldResolveJsRequire:()=>H5,shouldUseUriStyleNodeCoreModules:()=>NL,showModuleSpecifier:()=>one,signatureHasLiteralTypes:()=>dU,signatureHasRestParameter:()=>Du,signatureToDisplayParts:()=>WH,single:()=>Nj,singleElementArray:()=>c2,singleIterator:()=>ZZ,singleOrMany:()=>Sm,singleOrUndefined:()=>bm,skipAlias:()=>Cu,skipAssertions:()=>x1e,skipConstraint:()=>IH,skipOuterExpressions:()=>wc,skipParentheses:()=>eo,skipPartiallyEmittedExpressions:()=>Vp,skipTrivia:()=>ma,skipTypeChecking:()=>IE,skipTypeParentheses:()=>mz,skipWhile:()=>hK,sliceAfter:()=>sV,some:()=>ft,sort:()=>sx,sortAndDeduplicate:()=>k4,sortAndDeduplicateDiagnostics:()=>Ek,sourceFileAffectingCompilerOptions:()=>EO,sourceFileMayBeEmitted:()=>Ex,sourceMapCommentRegExp:()=>XO,sourceMapCommentRegExpDontCareLineStart:()=>SU,spacePart:()=>_c,spanMap:()=>Cj,spreadArrayHelper:()=>LF,stableSort:()=>Mh,startEndContainsRange:()=>yH,startEndOverlapsWithStartEnd:()=>Z9,startOnNewLine:()=>Uu,startTracing:()=>DK,startsWith:()=>ts,startsWithDirectory:()=>nJ,startsWithUnderscore:()=>nG,startsWithUseStrict:()=>zre,stringContainsAt:()=>Xoe,stringToToken:()=>Ev,stripQuotes:()=>hp,supportedDeclarationExtensions:()=>t8,supportedJSExtensions:()=>EV,supportedJSExtensionsFlat:()=>hC,supportedLocaleDirectories:()=>OJ,supportedTSExtensions:()=>gC,supportedTSExtensionsFlat:()=>CV,supportedTSImplementationExtensions:()=>n8,suppressLeadingAndTrailingTrivia:()=>z_,suppressLeadingTrivia:()=>HH,suppressTrailingTrivia:()=>joe,symbolEscapedNameNoDefault:()=>fL,symbolName:()=>xc,symbolNameNoDefault:()=>_L,symbolPart:()=>Doe,symbolToDisplayParts:()=>W3,syntaxMayBeASICandidate:()=>cG,syntaxRequiresTrailingSemicolonOrASI:()=>xL,sys:()=>Hl,sysLog:()=>pP,tagNamesAreEquivalent:()=>D1,takeWhile:()=>GI,targetOptionDeclaration:()=>W8,templateObjectHelper:()=>FF,testFormatSettings:()=>noe,textChangeRangeIsUnchanged:()=>GK,textChangeRangeNewSpan:()=>J4,textChanges:()=>er,textOrKeywordPart:()=>zH,textPart:()=>Pf,textRangeContainsPositionInclusive:()=>DP,textSpanContainsPosition:()=>cJ,textSpanContainsTextSpan:()=>WK,textSpanEnd:()=>Dc,textSpanIntersection:()=>HK,textSpanIntersectsWith:()=>x7,textSpanIntersectsWithPosition:()=>qK,textSpanIntersectsWithTextSpan:()=>v0e,textSpanIsEmpty:()=>VK,textSpanOverlap:()=>UK,textSpanOverlapsWith:()=>y0e,textSpansEqual:()=>o6,textToKeywordObj:()=>CP,timestamp:()=>So,toArray:()=>cx,toBuilderFileEmit:()=>fae,toBuilderStateFileInfoForMultiEmit:()=>_ae,toEditorSettings:()=>aN,toFileNameLowerCase:()=>Od,toLowerCase:()=>oK,toPath:()=>xo,toProgramEmitPending:()=>pae,tokenIsIdentifierOrKeyword:()=>Mu,tokenIsIdentifierOrKeywordOrGreaterThan:()=>RK,tokenToString:()=>Zs,trace:()=>Zi,tracing:()=>Wn,tracingEnabled:()=>lP,transform:()=>dke,transformClassFields:()=>vse,transformDeclarations:()=>RU,transformECMAScriptModule:()=>LU,transformES2015:()=>Ose,transformES2016:()=>Fse,transformES2017:()=>Tse,transformES2018:()=>kse,transformES2019:()=>Cse,transformES2020:()=>Ese,transformES2021:()=>Dse,transformES5:()=>Lse,transformESDecorators:()=>xse,transformESNext:()=>Pse,transformGenerators:()=>Mse,transformJsx:()=>Ise,transformLegacyDecorators:()=>Sse,transformModule:()=>OU,transformNamedEvaluation:()=>B_,transformNodeModule:()=>jse,transformNodes:()=>sA,transformSystemModule:()=>Rse,transformTypeScript:()=>yse,transpile:()=>Txe,transpileModule:()=>dce,transpileOptionValueCompilerOptions:()=>qW,tryAddToSet:()=>Yy,tryAndIgnoreErrors:()=>EL,tryCast:()=>Ur,tryDirectoryExists:()=>CL,tryExtractTSExtension:()=>L5,tryFileExists:()=>VA,tryGetClassExtendingExpressionWithTypeArguments:()=>Rz,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>jz,tryGetDirectories:()=>kL,tryGetExtensionFromPath:()=>bg,tryGetImportFromModuleSpecifier:()=>hw,tryGetJSDocSatisfiesTypeNode:()=>cF,tryGetModuleNameFromFile:()=>D8,tryGetModuleSpecifierFromDeclaration:()=>Xk,tryGetNativePerformanceHooks:()=>TK,tryGetPropertyAccessOrIdentifierToString:()=>jw,tryGetPropertyNameOfBindingOrAssignmentElement:()=>gO,tryGetSourceMappingURL:()=>tse,tryGetTextOfPropertyName:()=>K4,tryIOAndConsumeErrors:()=>DL,tryParsePattern:()=>fC,tryParsePatterns:()=>tF,tryParseRawSourceMap:()=>vU,tryReadDirectory:()=>XH,tryReadFile:()=>u3,tryRemoveDirectoryPrefix:()=>Kz,tryRemoveExtension:()=>Dne,tryRemovePrefix:()=>Jj,tryRemoveSuffix:()=>pK,typeAcquisitionDeclarations:()=>U8,typeAliasNamePart:()=>Aoe,typeDirectiveIsEqualTo:()=>Jee,typeKeywords:()=>OL,typeParameterNamePart:()=>Noe,typeReferenceResolutionNameAndModeGetter:()=>k9,typeToDisplayParts:()=>RA,unchangedPollThresholds:()=>dP,unchangedTextChangeRange:()=>qP,unescapeLeadingUnderscores:()=>Ci,unmangleScopedPackageName:()=>K8,unorderedRemoveItem:()=>o2,unorderedRemoveItemAt:()=>jj,unreachableCodeIsError:()=>yne,unusedLabelIsError:()=>vne,unwrapInnermostStatementOfLabel:()=>nz,updateErrorForNoInputFiles:()=>xO,updateLanguageServiceSourceFile:()=>s$,updateMissingFilePathsWatch:()=>qU,updatePackageJsonWatch:()=>m2e,updateResolutionField:()=>zC,updateSharedExtendedConfigFileWatcher:()=>p9,updateSourceFile:()=>xW,updateWatchingWildcardDirectories:()=>cA,usesExtensionsOnImports:()=>Cne,usingSingleLineStringWriter:()=>Q4,utf16EncodeAsString:()=>Ck,validateLocaleAndSetLanguage:()=>S0e,valuesHelper:()=>jF,version:()=>ps,versionMajorMinor:()=>Qi,visitArray:()=>tA,visitCommaListElements:()=>nA,visitEachChild:()=>on,visitFunctionBody:()=>kf,visitIterationBody:()=>Ku,visitLexicalEnvironment:()=>$O,visitNode:()=>Ge,visitNodes:()=>Dn,visitParameterList:()=>Ac,walkUpBindingElementsAndPatterns:()=>Dk,walkUpLexicalEnvironments:()=>cse,walkUpOuterExpressions:()=>Vre,walkUpParenthesizedExpressions:()=>Gh,walkUpParenthesizedTypes:()=>xw,walkUpParenthesizedTypesAndGetParentAndChild:()=>Cte,whitespaceOrMapCommentRegExp:()=>QO,writeCommentRange:()=>oC,writeFile:()=>mE,writeFileEnsuringDirectories:()=>Iz,zipWith:()=>od});var _Pe=ze({"src/typescript/_namespaces/ts.ts"(){"use strict";Rs(),vA(),qr(),B1(),zKe()}}),VKe=ir({"src/typescript/typescript.ts"(e,t){_Pe(),_Pe(),typeof console<"u"&&(E.loggingHost={log(n,i){switch(n){case 1:return console.error(i);case 2:return console.warn(i);case 3:return console.log(i);case 4:return console.log(i)}}}),t.exports=uPe}});return VKe()})();typeof Sj<"u"&&Sj.exports&&(Sj.exports=_ft)});function HZ(){return HZ=Object.assign||function(Es){for(var rt=1;rtod?Tv:od}):void 0},Qt=Jn.map(function(df){var Fd=Qi.filter(function(Tv){return Tv.startsWith("lib."+df.toLowerCase())});if(Fd.length===0)return 0;var od=Qi.indexOf(Fd.pop());return od}),nx=bn(Qt)||0,ba=Math.max(bo,nx);return Qi.slice(0,ba+1)};var w7e=function(rt,ze,ir,Jn,Qi,ps,Aa){var bo=ps||fetch,bn=new Map,Qt=cft(rt,Jn),nx="https://typescript.azureedge.net/cdn/"+ze+"/typescript/lib/";function ba(hi){return Qi?Qi.compressToUTF16(hi):hi}function df(hi){return Qi?Qi.decompressFromUTF16(hi):hi}function Fd(){return Promise.all(Qt.map(function(hi){return bo(nx+hi).then(function(xr){return xr.text()})})).then(function(hi){hi.forEach(function(xr,Bp){return bn.set("/"+Qt[Bp],xr)})}).catch(function(){})}function od(){var hi=Aa||localStorage,xr=Object.keys(hi);return xr.forEach(function(Bp){Bp.startsWith("ts-lib-")&&!Bp.startsWith("ts-lib-"+ze)&&hi.removeItem(Bp)}),Promise.all(Qt.map(function(Bp){var Qo="ts-lib-"+ze+"-"+Bp,a2=hi.getItem(Qo);return a2?Promise.resolve(df(a2)):bo(nx+Bp).then(function(rx){return rx.text()}).then(function(rx){return hi.setItem(Qo,ba(rx)),rx}).catch(function(){})})).then(function(Bp){Bp.forEach(function(Qo,a2){if(Qo){var rx="/"+Qt[a2];bn.set(rx,Qo)}})})}var Tv=ir?od:Fd;return Tv().then(function(){return bn})};function UZ(Es){throw new Error("Method '"+Es+"' is not implemented.")}function qZ(Es,rt){return function(){for(var ze=arguments.length,ir=new Array(ze),Jn=0;Jn "+Es].concat(ir)),E7e("< "+ps),Qi}}var lft=function(rt){return HZ({},rt.getDefaultCompilerOptions(),{jsx:rt.JsxEmit.React,strict:!0,esModuleInterop:!0,module:rt.ModuleKind.ESNext,suppressOutputPathCheck:!0,skipLibCheck:!0,skipDefaultLibCheck:!0,moduleResolution:rt.ModuleResolutionKind.NodeJs})},D7e=function(rt){return rt.replace("/","/lib.").toLowerCase()};function A7e(Es){return{args:[],createDirectory:function(){return UZ("createDirectory")},directoryExists:qZ("directoryExists",function(rt){return Array.from(Es.keys()).some(function(ze){return ze.startsWith(rt)})}),exit:function(){return UZ("exit")},fileExists:qZ("fileExists",function(rt){return Es.has(rt)||Es.has(D7e(rt))}),getCurrentDirectory:function(){return"/"},getDirectories:function(){return[]},getExecutingFilePath:function(){return UZ("getExecutingFilePath")},readDirectory:qZ("readDirectory",function(rt){return rt==="/"?Array.from(Es.keys()):[]}),readFile:qZ("readFile",function(rt){return Es.get(rt)||Es.get(D7e(rt))}),resolvePath:function(ze){return ze},newLine:` -`,useCaseSensitiveFileNames:!0,write:function(){return UZ("write")},writeFile:function(ze,ir){Es.set(ze,ir)}}}function N7e(Es,rt,ze){var ir=new Map,Jn=function(Aa){return ir.set(Aa.fileName,Aa),Aa},Qi={compilerHost:HZ({},Es,{getCanonicalFileName:function(Aa){return Aa},getDefaultLibFileName:function(){return"/"+ze.getDefaultLibFileName(rt)},getDirectories:function(){return[]},getNewLine:function(){return Es.newLine},getSourceFile:function(Aa){return ir.get(Aa)||Jn(ze.createSourceFile(Aa,Es.readFile(Aa),rt.target||lft(ze).target,!1))},useCaseSensitiveFileNames:function(){return Es.useCaseSensitiveFileNames}}),updateFile:function(Aa){var bo=ir.has(Aa.fileName);return Es.writeFile(Aa.fileName,Aa.text),ir.set(Aa.fileName,Aa),bo}};return Qi}var LI=C7e(She());var Gn=C7e(She());var tx={nop:{id:"nop"},call:{id:"call"},last:{id:"last"},exit:{id:"exit"},unlock:{id:"unlock"},lock:{id:"lock"},label:{id:"label",in:[0]},jump:{id:"jump",in:[0]},wait:{id:"wait",in:[0]},compareItem:{id:"compare_item",exec:{true:"next",false:0},in:[1,2]},compareEntity:{id:"compare_entity",exec:{true:"next",false:0},in:[1,2]},isA:{id:"is_a",thisArg:1,exec:{true:"next",false:0},in:[1,2]},getType:{id:"get_type",in:[0],out:1},type:{id:"value_type",thisArg:0,exec:{"No Match":"next",Item:1,Entity:2,Component:3,Tech:4,Value:5,Coord:6},in:[0]},getFirstLocked0:{id:"get_first_locked_0",out:0},unitType:{id:"unit_type",thisArg:0,exec:{"No Unit":"next",Building:1,Bot:2,Construction:3},in:[0]},selectNearest:{id:"select_nearest",exec:{next:"next",A:0,B:1},in:[2,3],out:4},nearerThan:{id:"select_nearest",thisArg:2,exec:{true:0,false:1},in:[2,3]},entitiesInRange:{id:"for_entities_in_range",loop:!0,exec:{true:"next",false:5},in:[0,1,2,3],out:4},availableResearch:{id:"for_research",loop:!0,exec:{true:"next",false:1},out:0},getResearch:{id:"get_research",out:0},setResearch:{id:"set_research",in:[0]},clearResearch:{id:"clear_research",in:[0]},checkNumber:{id:"check_number",exec:{"=":"next",">":0,"<":1},in:[2,3]},setReg:{id:"set_reg",in:[0],out:1},setCompReg:{id:"set_comp_reg",in:[0,1,2]},getCompReg:{id:"get_comp_reg",in:[0,2],out:1},setNumber:{id:"set_number",in:[0,1],out:2},combineCoordinate:{id:"combine_coordinate",in:[0,1],out:2},separateCoordinate:{id:"separate_coordinate",in:[0],out:[1,2]},combineRegister:{id:"combine_register",in:[0,1,3,4],out:2},separateRegister:{id:"separate_register",in:[0],out:[1,2,3,4,5]},add:{id:"add",in:[0,1],out:2},sub:{id:"sub",in:[0,1],out:2},mul:{id:"mul",in:[0,1],out:2},div:{id:"div",in:[0,1],out:2},modulo:{id:"modulo",in:[0,1],out:2},getfreespace:{id:"getfreespace",thisArg:2,in:[0,2],out:1},haveFreeSpace:{id:"checkfreespace",exec:{false:0,true:"next"},in:[1]},lockSlots:{id:"lock_slots",in:[0,1]},unlockSlots:{id:"unlock_slots",in:[0]},getHealth:{id:"get_health",in:[0],out:[1,2,3]},getEntityAt:{id:"get_entity_at",in:[0],out:1},getGridEffeciency:{id:"get_grid_effeciency",out:0},getBattery:{id:"get_battery",out:0},getSelf:{id:"get_self",out:0},readSignal:{id:"read_signal",in:[0],out:1},readRadio:{id:"read_radio",in:[0],out:1},deprecatedSignals:{id:"for_signal",loop:!0,exec:{true:"next",false:2},in:[0],out:1},matchingSignals:{id:"for_signal_match",loop:!0,exec:{true:"next",false:3},in:[0],out:[1,2]},altitude:{id:"check_altitude",thisArg:0,exec:{false:"next",Valley:1,Plateau:2},in:[0]},inBlight:{id:"check_blightness",thisArg:0,exec:{true:1,false:"next"},in:[0]},fullHealth:{id:"check_health",thisArg:1,exec:{true:0,false:"next"},in:[1]},fullBattery:{id:"check_battery",thisArg:1,exec:{true:0,false:"next"},in:[1]},fullGridEfficiency:{id:"check_grid_effeciency",thisArg:1,exec:{true:0,false:"next"},in:[1]},count:{id:"count_item",thisArg:2,in:[0,2],out:1},countReserved:{id:"count_item",thisArg:2,c:2,in:[0,2],out:1},countAllSlots:{id:"count_slots",thisArg:1,in:[1],out:0},countStorageSlots:{id:"count_slots",thisArg:1,c:2,in:[1],out:0},countGasSlots:{id:"count_slots",thisArg:1,c:3,in:[1],out:0},countVirusSlots:{id:"count_slots",thisArg:1,c:4,in:[1],out:0},countAnomolySlots:{id:"count_slots",thisArg:1,c:5,in:[1],out:0},getMaxStack:{id:"get_max_stack",in:[0],out:1},hasItem:{id:"have_item",thisArg:2,autoSelf:!0,exec:{true:1,false:"next"},in:[0,2]},equip:{id:"equip_component",exec:{false:0,true:"next"},in:[1,2]},unequip:{id:"unequip_component",exec:{false:0,true:"next"},in:[1,2]},getClosestEntity:{id:"get_closest_entity",in:[0,1,2],out:3},match:{id:"match",thisArg:0,exec:{false:4,true:"next"},in:[0,1,2,3]},switch:{id:"switch",exec:{1:2,2:4,3:6,4:8,5:10,Default:"next"},in:[0,1,3,5,7,9]},drop:{id:"dodrop",in:[0,1]},dropSpecificAmount:{id:"dodrop",c:1,in:[0,1]},pickup:{id:"dopickup",in:[0,1]},requestItem:{id:"request_item",in:[0]},orderToSharedStorage:{id:"order_to_shared_storage"},requestWait:{id:"request_wait",in:[0]},getResourceNum:{id:"get_resource_num",in:[0],out:1},firstInventoryItem:{id:"get_inventory_item",exec:{true:"next",false:1},out:0},getInventoryItem:{id:"get_inventory_item_index",exec:{true:"next",false:2},in:[0],out:1},inventoryItems:{id:"for_inventory_item",loop:!0,exec:{true:"next",false:1},out:[0,2,3,4,5]},recipieIngredients:{id:"for_recipe_ingredients",loop:!0,exec:{true:"next",false:2},in:[0],out:1},getDistance:{id:"get_distance",thisArg:2,in:[0,2],out:1},orderTransfer:{id:"order_transfer",in:[0,1]},sameGrid:{id:"is_same_grid",thisArg:0,exec:{true:"next",false:2},in:[0,1]},isMoving:{id:"is_moving",thisArg:3,exec:{Moving:"next","Not Moving":0,"Path Blocked":1,"No Result":2},in:[3]},isFixed:{id:"is_fixed",exec:{true:"next",false:1},in:[0]},isEquipped:{id:"is_equipped",exec:{true:"next",false:1},in:[0],out:2},shutdown:{id:"shutdown"},turnon:{id:"turnon"},connect:{id:"connect"},disconnect:{id:"disconnect"},enableTransportRoute:{id:"enable_transport_route"},disableTransportRoute:{id:"disable_transport_route"},sortStorage:{id:"sort_storage"},unpackageAll:{id:"unpackage_all",thisArg:0,in:[0]},packageAll:{id:"package_all",thisArg:0,in:[0]},solve:{id:"solve",thisArg:0,exec:{true:2,false:"next"},in:[0],out:1},stop:{id:"stop"},getLocation:{id:"get_location",in:[0],out:1},moveEast:{id:"move_east",in:[0]},moveWest:{id:"move_west",in:[0]},moveNorth:{id:"move_north",in:[0]},moveSouth:{id:"move_south",in:[0]},domoveAsync:{id:"domove_async",in:[0]},domove:{id:"domove",in:[0]},domoveRange:{id:"domove_range",in:[0]},moveawayRange:{id:"moveaway_range",in:[0]},scout:{id:"scout"},radar:{id:"scan",exec:{true:"next",false:4},in:[0,1,2],out:3},mine:{id:"mine",exec:{ok:"next",unable:1,full:2},in:[0]},getStability:{id:"get_stability",out:0},percentValue:{id:"percent_value",in:[0,1],out:2},remapValue:{id:"remap_value",in:[0,1,2,3,4],out:5},daytime:{id:"is_daynight",exec:{true:0,false:1}},nighttime:{id:"is_daynight",exec:{false:0,true:1}},factionItemAmount:{id:"faction_item_amount",exec:{true:"next",false:2},in:[0],out:1},readkey:{id:"readkey",in:[0],out:1},canProduce:{id:"can_produce",exec:{true:0,false:"next"},in:[1]},getIngredients:{id:"get_ingredients",in:[0],out:[1,2,3]},notify:{id:"notify",special:"txt",in:[0]},resourceType:{id:"get_resource_item",thisArg:0,exec:{true:"next",false:2},in:[0],out:1},trust:{id:"gettrust",thisArg:3,exec:{false:"next",ally:0,neutral:1,enemy:2},in:[3]},gethome:{id:"gethome",out:0},ping:{id:"ping",in:[0]},build:{id:"build",special:"bp",exec:{true:"next",false:2},in:[0,1]},produce:{id:"produce",special:"bp"},setSignpost:{id:"set_signpost",special:"txt"},launch:{id:"launch"},land:{id:"land"},gatherInformation:{id:"gather_information",in:[0]},makeCarrier:{id:"make_carrier",exec:{true:"next",false:1},in:[0]},makeMiner:{id:"make_miner",exec:{true:"next",false:1},in:[0]},serveConstruction:{id:"serve_construction",exec:{true:"next",false:0}},makeProducer:{id:"make_producer",exec:{true:"next",false:4},in:[0,1,2,3]},makeTurretBots:{id:"make_turret_bots",exec:{true:"next",false:1},in:[0]}};var fft=["v_own_faction","v_ally_faction","v_enemy_faction","v_world_faction","v_bot","v_building","v_is_foundation","v_construction","v_droppeditem","v_resource","v_mineable","v_anomaly","v_valley","v_plateau","v_not_blight","v_blight","v_alien_faction","v_human_faction","v_robot_faction","v_bug_faction","v_solved","v_unsolved","v_can_loot","v_in_powergrid","v_mothership","v_damaged","v_infected","v_broken","v_unpowered","v_emergency","v_powereddown","v_pathblocked","v_idle"];function pft(Es,rt){let ze=new xhe(rt);Es.statements.forEach(ir=>{if(Gn.isFunctionDeclaration(ir)){let Jn=ir.name.text;if(ze.subs.has(Jn))throw new Error("sub ${subName} declared multiple times");ze.subs.set(Jn,ir)}else throw new Error(`unsupported node ${ir.kind} ${Gn.SyntaxKind[ir.kind]}`)});for(let ir of ze.subs.values())U7e(ir)&&ze.compileBehavior(ir,!0);for(let ir of ze.subs.values())U7e(ir)||ze.compileBehavior(ir,!1);return ze.asm()}var $Z=class{constructor(){this.regCounter=0;this.tempCounter=0;this.paramCounter=0;this.instructions=[];this.scope=new Map;this.outputs=[];this.haveBehavior=!1;this.loops=[]}addOutputParameter(){let rt=this.outputs.length,ze=this.paramCounter+1;this.paramCounter++;let ir=`p${ze}`;this.rawEmit(".pname",ir),this.rawEmit(".out",ir),this.outputs.push({name:`out${rt}`,reg:ir,refs:[]})}rawEmit(rt,...ze){this.instructions.push({name:rt,args:ze})}};function U7e(Es){return Es.modifiers?.some(rt=>rt.kind===Gn.SyntaxKind.ExportKeyword)||!1}var xhe=class{constructor(rt){this.typeChecker=rt;this.labelCounter=0;this.dynamicLabelCounter=0;this.subs=new Map;this.functionScopes=[];this.currentScope=new $Z;this.haveBehavior=!1}setupNewScope(){this.currentScope=new $Z,this.functionScopes.push(this.currentScope)}compileBehavior(rt,ze){let ir=rt.name.text;if(ze&&this.haveBehavior)throw new Error("only one behavior supported per file");this.haveBehavior=ze,this.setupNewScope(),this.#t(ir),ze||this.#r(".sub"),this.#r(".name",JSON.stringify(ir)),this.compileInstructions(rt)}countOutputs(rt){if(rt.type){if(Gn.isTypeReferenceNode(rt.type))return 1;if(Gn.isTupleTypeNode(rt.type))return rt.type.elements.length;this.#e("Unsupported return type.",rt.type)}return 0}compileInstructions(rt){rt.parameters.forEach((ir,Jn)=>{let Qi=ir.name.getText(),ps=`p${Jn+1}`;this.currentScope.paramCounter=Jn+1,this.#r(".pname",ps,Qi),this.variable(ir.name,ps)});let ze=this.countOutputs(rt);for(let ir=0;irps.instruction-Aa.instruction);Qi.refs[Qi.refs.length-1]?.dir=="w";){let ps=Qi.refs.pop();this.#o(ps,"nil")}Qi.refs.length!=0&&(Qi.refs.length==1&&Qi.refs[0].dir!="rw"||(Qi.start=Qi.refs[0].instruction,Qi.end=Qi.refs[Qi.refs.length-1].instruction,ze.push(Qi)))}ze.sort((Jn,Qi)=>Jn.start-Qi.start);let ir=[];for(let Jn=0;Jnthis.#o(ps,Qi.reg)),ir.push(Qi)}if(ir=ir.filter(Qi=>Qi.end>=Jn||(rt.unshift(Qi.reg),!1)),ir.length+ze.length==0)break}}comment(rt){this.currentScope.instructions[this.currentScope.instructions.length-1].comment=rt}compileStatement(rt){if(Gn.isExpressionStatement(rt))this.compileExpr(rt.expression);else if(Gn.isVariableStatement(rt))this.compileVarDecl(rt.declarationList);else if(Gn.isIfStatement(rt))this.compileIf(rt);else if(Gn.isReturnStatement(rt)){let ze=[];if(rt.expression){for(Gn.isArrayLiteralExpression(rt.expression)?rt.expression.elements.map(ir=>{ze.push(ir)}):ze.push(rt.expression);ze.length>this.currentScope.outputs.length;)this.currentScope.addOutputParameter();ze.forEach((ir,Jn)=>{this.compileExpr(ir,this.currentScope.outputs[Jn])})}this.#r(".ret")}else if(Gn.isBlock(rt))rt.statements.forEach(this.compileStatement.bind(this));else if(Gn.isSwitchStatement(rt))this.compileSwitch(rt);else if(Gn.isLabeledStatement(rt))if(Gn.isSwitchStatement(rt.statement))this.compileSwitch(rt.statement,rt.label.text);else if(Gn.isForOfStatement(rt.statement))this.compileForOf(rt.statement,rt.label.text);else if(Gn.isForStatement(rt.statement)||Gn.isWhileStatement(rt.statement)||Gn.isDoStatement(rt.statement))this.compileLoop(rt.statement,rt.label.text);else{let ze=this.#n();this.#c({label:rt.label.text,brk:ze,needLabel:!0},()=>{this.compileStatement(rt.statement),this.#t(ze)})}else if(Gn.isBreakOrContinueStatement(rt)){let ze=rt.kind==Gn.SyntaxKind.ContinueStatement,ir;for(let Jn=this.currentScope.loops.length-1;Jn>=0;Jn--)if(rt.label){if(this.currentScope.loops[Jn].label==rt.label.text){ir=this.currentScope.loops[Jn];break}}else if(ze){if(this.currentScope.loops[Jn].brk){ir=this.currentScope.loops[Jn];break}}else if(!this.currentScope.loops[Jn].needLabel){ir=this.currentScope.loops[Jn];break}!ir||ze&&!ir.cont?this.#e(`${Gn.SyntaxKind[rt.kind]} not in loop`,rt):ze?ir.cont==".ret"?this.#r(".ret"):ir.cont&&this.#s(ir.cont):ir.brk?this.#s(ir.brk):this.#r("last")}else Gn.isForOfStatement(rt)?this.compileForOf(rt):Gn.isForStatement(rt)||Gn.isWhileStatement(rt)||Gn.isDoStatement(rt)?this.compileLoop(rt):this.#e(`unsupported statement ${rt.kind} ${Gn.SyntaxKind[rt.kind]}`,rt)}#c(rt,ze){try{this.currentScope.loops.push(rt),ze()}finally{this.currentScope.loops.pop()}}compileForOf(rt,ze){(!Gn.isCallExpression(rt.expression)||!Gn.isIdentifier(rt.expression.expression))&&this.#e("expected function call",rt.expression);let ir=rt.expression.expression.text,Jn=tx[ir];Jn&&Jn.loop||this.#e("expected loop instruction",rt.expression);let Qi=Gn.isVariableDeclarationList(rt.initializer)?rt.initializer.declarations[0].name:rt.initializer,ps=[];Gn.isIdentifier(Qi)?ps=[this.variable(Qi)]:Gn.isArrayBindingPattern(Qi)?ps=Qi.elements.map(Qt=>Gn.isOmittedExpression(Qt)?void 0:this.variable(Qt.name)):this.#e("expected variable",Qi),ps.length>1&&(!Array.isArray(Jn.out)||ps.length>=Jn.out.length)&&this.#e("too many variables",Qi);let Aa=this.compileResolvedCall(rt.expression,ir,void 0,[...rt.expression.arguments],ps),bo=this.#n(),bn=this.#n();this.#i(Aa.exec.get(!0),bo),this.#i(Aa.exec.get(!1),bn),this.#c({label:ze,cont:".ret"},()=>{this.#t(bo),this.compileStatement(rt.statement),this.#r(".ret"),this.#t(bn)})}compileLoop(rt,ze){let ir=this.#n(),Jn=this.#n(),Qi=this.#n(),ps=this.#n();this.#c({label:ze,cont:Qi,brk:ps},()=>{Gn.isForStatement(rt)&&rt.initializer&&(Gn.isVariableDeclarationList(rt.initializer)?this.compileVarDecl(rt.initializer):this.compileExpr(rt.initializer)),Gn.isDoStatement(rt)&&this.#s(Jn),this.#t(ir);let Aa=Gn.isForStatement(rt)?rt.condition:rt.expression;if(Aa){let bo=this.#m(Aa);if(bo==null){let bn=this.compileCondition(Aa,void 0);this.#i(bn.ref,Jn),bn.variable.exec.forEach(Qt=>{this.#i(Qt,ps,!0)})}else bo||this.#s(ps)}this.#t(Jn),this.compileStatement(rt.statement),this.#t(Qi),Gn.isForStatement(rt)&&rt.incrementor&&this.compileExpr(rt.incrementor),this.#s(ir),this.#t(ps)})}compileExpr(rt,ze){if(Gn.isBinaryExpression(rt))switch(rt.operatorToken.kind){case Gn.SyntaxKind.PlusToken:case Gn.SyntaxKind.MinusToken:case Gn.SyntaxKind.AsteriskToken:case Gn.SyntaxKind.SlashToken:case Gn.SyntaxKind.PercentToken:return this.compileNumOp(rt,ze);case Gn.SyntaxKind.EqualsToken:if(Gn.isIdentifier(rt.left)){let ir=this.variable(rt.left);return this.compileExpr(rt.right,ir),ze?(this.#a(tx.setReg,ir,ze),ze.refs.push({instruction:this.currentScope.instructions.length,arg:0,dir:"w"})):ze=ir,ze}else if(Gn.isArrayLiteralExpression(rt.left)){Gn.isCallExpression(rt.right)||this.#e("expected function call",rt.right);let ir=rt.left.elements.map(Jn=>{if(!Gn.isOmittedExpression(Jn)){if(Gn.isIdentifier(Jn))return this.variable(Jn);this.#e(`unsupported array element ${Jn.kind} ${Gn.SyntaxKind[Jn.kind]}`,rt)}});return this.compileCall(rt.right,ir)}else this.#e(`unsupported assignment to ${rt.left.kind} ${Gn.SyntaxKind[rt.left.kind]}`,rt);default:this.#e(`unsupported binary expression ${rt.operatorToken.kind} ${Gn.SyntaxKind[rt.operatorToken.kind]}`,rt)}else{if(Gn.isCallExpression(rt))return this.compileCall(rt,[ze]);if(Gn.isPropertyAccessExpression(rt)){if(Gn.isIdentifier(rt.name))return rt.name.text==="num"?this.compileExpr(rt.expression,ze):this.compileResolvedCall(rt,rt.name.text,rt.expression,[],[ze])}else if(Gn.isIdentifier(rt)){if(rt.text=="self"&&!this.currentScope.scope.has(rt.text)){let ir=this.variable(rt);this.#a(tx.getSelf,ir)}return ze&&this.#a(tx.setReg,this.variable(rt),this.ref(ze,1,"w")),this.variable(rt)}else if(Gn.isNumericLiteral(rt)){let ir=Number(rt.text);if(ze)this.#a(tx.setReg,`${ir}`,this.ref(ze,1,"w"));else return{refs:[],name:"",reg:`${ir}`};return ze}else if(Gn.isStringLiteral(rt))return{refs:[],name:"",reg:JSON.stringify(rt.text)}}this.#e(`unsupported expression ${rt.kind} ${Gn.SyntaxKind[rt.kind]}`,rt)}compileNumOp(rt,ze){let ir=[rt.left,rt.right],Jn;switch(rt.operatorToken.kind){case Gn.SyntaxKind.PlusToken:Jn="add";break;case Gn.SyntaxKind.MinusToken:Jn="sub";break;case Gn.SyntaxKind.AsteriskToken:Jn="mul";break;case Gn.SyntaxKind.SlashToken:Jn="div";break;case Gn.SyntaxKind.PercentToken:Jn="modulo";break;default:this.#e(`unsupported binary expression ${rt.operatorToken.kind}`,rt)}return this.compileResolvedCall(rt,Jn,void 0,ir,[ze])}compileCall(rt,ze=[]){let ir,Jn;return Gn.isIdentifier(rt.expression)?Jn=rt.expression.text:Gn.isPropertyAccessExpression(rt.expression)?(Jn=rt.expression.name.text,ir=rt.expression.expression):this.#e(`unsupported call ${rt.expression.kind} ${Gn.SyntaxKind[rt.expression.kind]}`,rt),this.compileResolvedCall(rt,Jn,ir,[...rt.arguments],ze)}compileResolvedCall(rt,ze,ir,Jn=[],Qi=[]){let ps=Qi[0]||this.#_(),Aa=[],bo=tx[ze];if(!bo&&this.subs.has(ze)){let ba=this.subs.get(ze),df=[];for(let od=0;od{let Fd=Jn[df]?this.compileExpr(Jn[df]):"nil";Aa[ba]=Fd}),bo.thisArg!=null&&(bo.autoSelf&&ir&&Gn.isIdentifier(ir)&&ir.text=="self"?Aa[bo.thisArg]="nil":Aa[bo.thisArg]=ir?this.compileExpr(ir):"nil"),(typeof bo.out=="number"?[bo.out]:bo.out)?.forEach((ba,df)=>{let Fd=Qi[df]||"nil";Aa[ba]=Fd}),bo.exec!=null){ps.exec=new Map;for(let[ba,df]of Object.entries(bo.exec))ps.exec.set(ba.match(/^(true|false)$/)?ba=="true":ba,{instruction:this.currentScope.instructions.length,arg:df,dir:"w"})}for(let ba=0;ba{this.#o(ba,null)}),ps}compileSwitch(rt,ze){let ir=this.#n();this.#c({label:ze,brk:ir},()=>{let Jn;if(Gn.isIdentifier(rt.expression)?Jn=this.variable(rt.expression):Gn.isCallExpression(rt.expression)?Jn=this.compileCall(rt.expression):Gn.isPropertyAccessExpression(rt.expression)?Jn=this.compileResolvedCall(rt.expression,rt.expression.name.text,rt.expression.expression,[]):this.#d(rt,ir,ze),Jn){Jn.exec||this.#e("switch statement must use a flow control instruction",rt);for(let Qi of rt.caseBlock.clauses){let ps=this.#n();if(this.#t(ps),Gn.isCaseClause(Qi)){let Aa=this.#p(Qi.expression);this.#i(Jn.exec.get(Aa),ps)}else Jn.exec.forEach(Aa=>{this.#i(Aa,ps,!0)});Qi.statements.forEach(this.compileStatement,this)}}this.#t(ir)})}#p(rt){if(Gn.isStringLiteral(rt))return rt.text;if(rt.kind==Gn.SyntaxKind.TrueKeyword)return!0;if(rt.kind==Gn.SyntaxKind.FalseKeyword)return!1;this.#e(`unsupported case expression ${Gn.SyntaxKind[rt.kind]}`,rt)}#d(rt,ze,ir){let Jn=this.#_(),Qi=fft[this.dynamicLabelCounter++];Qi||this.#e("Too many switch statements",rt),this.#a(tx.setNumber,Qi,this.ref(this.compileExpr(rt.expression),1,"r"),this.ref(Jn,2,"w"));let ps=rt.caseBlock.clauses.find(bo=>Gn.isDefaultClause(bo));this.#a(tx.jump,this.ref(Jn,0,"r"));let Aa=ps&&this.#n();this.#s(Aa||ze);for(let bo of rt.caseBlock.clauses)Gn.isCaseClause(bo)?(Gn.isNumericLiteral(bo.expression)||this.#e(`unsupported switch expression ${Gn.SyntaxKind[rt.expression.kind]}`,rt),this.#a(tx.label,`${Qi}@${bo.expression.text}`)):this.#t(Aa),bo.statements.forEach(this.compileStatement,this)}compileIf(rt,ze,ir){if(rt.expression.kind===Gn.SyntaxKind.TrueKeyword){this.compileStatement(rt.thenStatement);return}else if(rt.expression.kind===Gn.SyntaxKind.FalseKeyword){rt.elseStatement&&this.compileStatement(rt.elseStatement);return}let{variable:Jn,ref:Qi}=this.compileCondition(rt.expression,ze),ps=ir||this.#n(),Aa=this.#n();if(this.#i(Qi,Aa),this.#t(Aa),this.compileStatement(rt.thenStatement),this.#s(ps),rt.elseStatement)if(Gn.isIfStatement(rt.elseStatement))this.compileIf(rt.elseStatement,Jn,ps);else{let bo=this.#n();Jn.exec?.forEach(bn=>{this.#i(bn,bo,!0)}),this.#t(bo),this.compileStatement(rt.elseStatement),this.#s(ps)}ir||(Jn.exec?.forEach(bo=>{this.#i(bo,ps,!0)}),this.#t(ps))}#s(rt){this.#r("jump",":"+rt)}#t(rt){this.#r(rt+":")}compileCondition(rt,ze){let ir,Jn,Qi,ps=()=>{ze&&this.#e("else clause does not match condition",rt)};if(Gn.isIdentifier(rt))ir=this.variable(rt),Jn=!0;else if(Gn.isCallExpression(rt))ps(),ir=this.compileCall(rt),Jn=!0;else{if(Gn.isPrefixUnaryExpression(rt))return rt.operator!==Gn.SyntaxKind.ExclamationToken&&this.#e("unsupported prefix operator",rt),this.#u(this.compileCondition(rt.operand,ze));if(Gn.isBinaryExpression(rt))switch(rt.operatorToken.kind){case Gn.SyntaxKind.EqualsToken:ps(),ir=this.compileExpr(rt),Jn=!0;break;case Gn.SyntaxKind.EqualsEqualsEqualsToken:case Gn.SyntaxKind.EqualsEqualsToken:return this.#l(rt,ze);case Gn.SyntaxKind.ExclamationEqualsToken:case Gn.SyntaxKind.ExclamationEqualsEqualsToken:return this.#u(this.#l(rt,ze));case Gn.SyntaxKind.LessThanEqualsToken:Qi="=";case Gn.SyntaxKind.LessThanToken:Jn="<",ps(),ir=this.compileResolvedCall(rt,"checkNumber",void 0,[OI(rt.left),OI(rt.right)]);break;case Gn.SyntaxKind.GreaterThanEqualsToken:Qi="=";case Gn.SyntaxKind.GreaterThanToken:Jn=">",ps(),ir=this.compileResolvedCall(rt,"checkNumber",void 0,[OI(rt.left),OI(rt.right)]);break;default:this.#e(`unsupported condition ${rt.operatorToken.getText()}`,rt)}else this.#e(`unsupported condition ${rt.kind} ${Gn.SyntaxKind[rt.kind]}`,rt)}let Aa=ir.exec.get(Jn);return Qi&&(Aa=Object.assign({},Aa,{extraArg:ir.exec.get(Qi).arg})),{variable:ir,ref:Aa}}#m(rt){switch(rt.kind){case Gn.SyntaxKind.TrueKeyword:return!0;case Gn.SyntaxKind.FalseKeyword:case Gn.SyntaxKind.NullKeyword:case Gn.SyntaxKind.UndefinedKeyword:return!1}if(Gn.isNumericLiteral(rt))return Number(rt.text)!=0}#l(rt,ze){let ir,Jn=!0,Qi=()=>{ze&&this.#e("else clause does not match condition",rt)};return rt.operatorToken.kind>=Gn.SyntaxKind.EqualsEqualsEqualsToken&&!(Gn.isLiteralExpression(rt.left)||Gn.isLiteralExpression(rt.right))?(Qi(),ir=this.compileResolvedCall(rt,"compareEntity",void 0,[rt.left,rt.right]),{variable:ir,ref:ir.exec.get(!0)}):rt.left.kind===Gn.SyntaxKind.TrueKeyword?this.compileCondition(rt.right,ze):rt.right.kind===Gn.SyntaxKind.TrueKeyword?this.compileCondition(rt.left,ze):(rt.left.kind===Gn.SyntaxKind.FalseKeyword?({variable:ir}=this.compileCondition(rt.right,ze),Jn=!1):rt.right.kind===Gn.SyntaxKind.FalseKeyword?({variable:ir}=this.compileCondition(rt.right,ze),Jn=!1):The(rt.left)||The(rt.right)?(Qi(),ir=this.compileResolvedCall(rt,"checkNumber",void 0,[OI(rt.left),OI(rt.right)]),Jn="="):Gn.isStringLiteral(rt.left)?(ir=ze||this.compileExpr(rt.right),Jn=rt.left.text):Gn.isStringLiteral(rt.right)?(ir=ze||this.compileExpr(rt.left),Jn=rt.right.text):(Qi(),ir=this.compileResolvedCall(rt,"compareEntity",void 0,[rt.left,rt.right])),{variable:ir,ref:ir.exec.get(Jn)})}#u({variable:rt,ref:ze}){let ir={false:"true",true:"false","<=":">","<":">=","=":"<>","<>":"=",">=":"<",">":"<="},Jn,Qi;if(rt.exec.forEach((Aa,bo)=>{Aa.arg===ze.arg?Jn=bo:Aa.arg===ze.extraArg&&(Qi=bo)}),!Jn)throw new Error("Invalid ref");let ps=ir[`${Jn}${Qi||""}`];if(!ps)throw new Error(`cannot negate ${Jn}`);return ps.length===2?(ze=Object.assign({},rt.exec.get(ps[0])),ze.extraArg=rt.exec.get(ps[1]).arg,{variable:rt,ref:ze}):ps.length===1?(ze=rt.exec.get(ps),{variable:rt,ref:ze}):(ze=rt.exec.get(JSON.parse(ps)),{variable:rt,ref:ze})}#e(rt,ze){let ir=Gn.getLineAndCharacterOfPosition(ze.getSourceFile(),ze.getStart()),Jn=ze.getSourceFile().fileName;throw new Error(`${Jn}:${ir.line+1}: ${rt}`)}#_(){return this.variable(`t${this.currentScope.tempCounter++}`)}compileVarDecl(rt){rt.declarations.forEach(ze=>{if(ze.initializer)if(Gn.isIdentifier(ze.name))this.compileExpr(ze.initializer,this.variable(ze.name));else if(Gn.isArrayBindingPattern(ze.name))if(Gn.isCallExpression(ze.initializer)){let ir=ze.name.elements.map(Jn=>{if(!Gn.isOmittedExpression(Jn)){if(Gn.isIdentifier(Jn.name))return this.variable(Jn.name);this.#e(`unsupported array element ${Jn.kind} ${Gn.SyntaxKind[Jn.kind]}`,ze)}});return this.compileCall(ze.initializer,ir)}else this.#e("only call expression are valid for array initializer",ze);else this.#e("Unable to bind object",ze)})}variable(rt,ze){let ir=typeof rt=="string"?rt:rt.text;return ir.match(/^(goto|store|visual|signal)$/)&&(ze=ir),this.currentScope.scope.has(ir)||this.currentScope.scope.set(ir,{name:ir,reg:ze??`r${this.currentScope.regCounter++}`,refs:[]}),this.currentScope.scope.get(ir)}ref(rt,ze,ir="rw"){let Jn=dft(rt)?rt:this.variable(rt);return Jn.refs.push({instruction:this.currentScope.instructions.length,arg:ze,dir:ir}),Jn}#n(){return`l${this.labelCounter++}`}#r(rt,...ze){this.currentScope.rawEmit(rt,...ze)}#a(rt,...ze){let ir=rt.id;if(ir=="get_distance")debugger;let Jn=ze.map((Qi,ps)=>typeof Qi=="string"?Qi:ir=="call"?this.ref(Qi,ps,"rw").reg:rt?.out==ps||Array.isArray(rt?.out)&&rt.out.includes(ps)?this.ref(Qi,ps,"w").reg:this.ref(Qi,ps,"r").reg);for(;Jn[Jn.length-1]=="nil";)Jn.pop();this.currentScope.instructions.push({name:ir,args:Jn})}#i(rt,ze,ir=!1){return this.#o(rt,":"+ze,ir)}#o(rt,ze,ir=!1){rt.extraArg&&this.#o({instruction:rt.instruction,arg:rt.extraArg,dir:rt.dir},ze,ir);let Jn=this.currentScope.instructions[rt.instruction];if(rt.arg==="next"){if(ir&&Jn.next!==null)return;Jn.next=ze;return}ir&&Jn.args[rt.arg]!==null||(Jn.args[rt.arg]=ze)}asm(){return this.functionScopes.flatMap(rt=>rt.instructions).map(mft).join(` -`)}};function dft(Es){return typeof Es.reg=="string"}function mft(Es){if(Es.name.endsWith(":"))return Es.name;let rt=Es.comment?" ; "+Es.comment:"",ze=Es.next?` - jump ${Es.next}`:"";return` ${Es.name} ${Es.args.join(", ")}${rt}${ze}`}var q7e={lib:["lib.es2023.d.ts"],target:Gn.ScriptTarget.ES2022};function gft(Es){Gn.getPreEmitDiagnostics(Es).forEach(rt=>{if(rt.file){let{line:ze,character:ir}=Gn.getLineAndCharacterOfPosition(rt.file,rt.start),Jn=Gn.flattenDiagnosticMessageText(rt.messageText,` -`);console.log(`${rt.file.fileName} (${ze+1},${ir+1}): ${Jn}`)}else console.log(Gn.flattenDiagnosticMessageText(rt.messageText,` -`))});for(let rt of Es.getSourceFiles())if(!rt.fileName.endsWith(".d.ts")){let ze=rt.fileName.substring(0,rt.fileName.length-3);try{return pft(rt,Es.getTypeChecker())}catch(ir){console.error(ir)}}throw new Error("No source file found")}function The(Es){return Gn.isNumericLiteral(Es)||Gn.isPropertyAccessExpression(Es)&&Gn.isIdentifier(Es.name)&&Es.name.text==="num"}function OI(Es){return Gn.isPropertyAccessExpression(Es)&&The(Es)?Es.expression:Es}var H7e=` -type Value = number & { - /** - * Switch based on type of value - */ - type: "No Match" | "Item" | "Entity" | "Component" | "Tech" | "Value" | "Coord"; - /** - * Divert program depending on unit type - */ - unitType: "No Unit" | "Building" | "Bot" | "Construction"; - /** - * Divert program depending on location of a unit - */ - altitude?: "Valley" | "Plateau"; - /** - * Divert program depending on location of a unit - */ - inBlight: boolean; - /** - * Checks the movement state of an entity - */ - isMoving: "Moving" | "Not Moving" | "Path Blocked" | "No Result"; - /** - * Gets the resource type from an resource node - */ - resourceType?: Value; - /** - * Gets the trust level of the unit towards you - */ - trust?: "ally" | "neutral" | "enemy"; - - /** - * Compares if an item of entity is of a specific type - */ - isA(type: Value): boolean; - /** - * Branches based on which unit is closer, optional branches for closer unit - */ - nearerThan(unit_b: Value): boolean; - /** - * Returns how many of the input item can fit in the inventory - * @param item Item to check can fit - * @returns Number of a specific item that can fit on a unit - */ - getfreespace(item: Value | Item): Value; - /** - * Check a units health - */ - fullHealth(): boolean; - /** - * Checks the Battery level of a unit - */ - fullBattery(): boolean; - /** - * Checks the Efficiency of the power grid the unit is on - */ - fullGridEfficiency(): boolean; - /** - * Counts the number of the passed item in its inventory - * @param item Item to count - * @returns Number of this item in inventory or empty if none exist - */ - count(item: Value | Item): Value; - /** - * Counts the number of the passed item in its inventory - * @param item Item to count - * @returns Number of this item in inventory or empty if none exist - */ - countReserved(item: Value | Item): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countAllSlots(): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countStorageSlots(): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countGasSlots(): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countVirusSlots(): Value; - /** - * Returns the number of slots in this unit of the given type - * @returns Number of slots of this type - */ - countAnomolySlots(): Value; - /** - * Checks if you have at least a specified amount of an item - * @param item Item to count - */ - hasItem(item: Value | ItemNum): boolean; - /** - * Filters the passed entity - * @param filter1? Filter to check - * @param filter2? Second Filter - * @param filter3? Third Filter - */ - match(filter1?: Value | RadarFilter, filter2?: Value | RadarFilter, filter3?: Value | RadarFilter): boolean; - /** - * Returns distance to a unit - * @param target Target unit - * @returns Unit and its distance in the numerical part of the value - */ - getDistance(target: Value): Value; - /** - * Checks if two entities are in the same power grid - * @param entity Second Entity - */ - sameGrid(entity: Value): boolean; - /** - * Attempt to solve explorable with inventory items - * @returns Missing repair item, scanner component or Unpowered - */ - solve(): Value | undefined; -} - -/** - * Instruction has been removed, behavior needs to be updated - */ -declare function nop(): void; -/** - * Stops execution of the behavior - */ -declare function exit(): never; -/** - * Run as many instructions as possible. Use wait instructions to throttle execution. - */ -declare function unlock(): void; -/** - * Run one instruction at a time - */ -declare function lock(): void; -/** - * Labels can be jumped to from anywhere in a behavior - * @param label Label identifier - */ -declare function label(label: Value | AnyValue): void; -/** - * Jumps execution to label with the same label id - * @param label Label identifier - */ -declare function jump(label: Value | AnyValue): void; -/** - * Pauses execution of the behavior until 1 or more ticks later - * @param time Number of ticks to wait - */ -declare function wait(time: Value | number): void; -/** - * Gets the type from an item or entity - */ -declare function getType(item_entity: Value): Value; -/** - * Gets the first item where the locked slot exists but there is no item in it - * @returns The first locked item id with no item - */ -declare function getFirstLocked0(): Value; -/** - * Performs code for all entities in visibility range of the unit - * @param range Range (up to units visibility range) - * @param filter1? Filter to check - * @param filter2? Second Filter - * @param filter3? Third Filter - * @returns Current Entity - */ -declare function entitiesInRange(range: Value | number, filter1?: Value | RadarFilter, filter2?: Value | RadarFilter, filter3?: Value | RadarFilter): IterableIterator; -/** - * Performs code for all researchable tech - * @returns Researchable Tech - */ -declare function availableResearch(): IterableIterator; -/** - * Returns the first active research tech - * @returns First active research - */ -declare function getResearch(): Value; -/** - * Returns the first active research tech - * @param tech First active research - */ -declare function setResearch(tech: Value): void; -/** - * Clears a research from queue, or entire queue if no tech passed - * @param tech Tech to remove from research queue - */ -declare function clearResearch(tech: Value): void; -/** - * Writes a value into a component register - * @param component_index Component and register number to set - * @param group_index? Component group index if multiple are equipped - */ -declare function setCompReg(value: Value | AnyValue, component_index: Value | CompNum, group_index?: Value | number): void; -/** - * Reads a value from a component register - * @param component_index Component and register number to set - * @param group_index? Component group index if multiple are equipped - */ -declare function getCompReg(component_index: Value | CompNum, group_index?: Value | number): Value; -/** - * Sets the numerical/coordinate part of a value - */ -declare function setNumber(value: Value, num_coord: Value | CoordNum): Value; -/** - * Returns a coordinate made from x and y values - */ -declare function combineCoordinate(x: Value | AnyValue, y: Value | AnyValue): Value; -/** - * Split a coordinate into x and y values - * @returns [x, y] - */ -declare function separateCoordinate(coordinate: Value | CoordNum): [Value, Value]; -/** - * Combine to make a register from separate parameters - */ -declare function combineRegister(num?: Value, entity?: Value, x?: Value, y?: Value): Value; -/** - * Split a register into separate parameters - * @returns [Num, Entity, ID, x, y] - */ -declare function separateRegister(register: Value): [Value, Value, Value, Value, Value]; -/** - * Adds a number or coordinate to another number or coordinate - */ -declare function add(to: Value | CoordNum, num: Value | CoordNum): Value; -/** - * Subtracts a number or coordinate from another number or coordinate - */ -declare function sub(from: Value | CoordNum, num: Value | CoordNum): Value; -/** - * Multiplies a number or coordinate from another number or coordinate - */ -declare function mul(to: Value | CoordNum, num: Value | CoordNum): Value; -/** - * Divides a number or coordinate from another number or coordinate - */ -declare function div(from: Value | CoordNum, num: Value | CoordNum): Value; -/** - * Get the remainder of a division - */ -declare function modulo(num: Value | CoordNum, by: Value | CoordNum): Value; -/** - * Checks if free space is available for an item and amount - * @param item Item and amount to check can fit - */ -declare function haveFreeSpace(item: Value | ItemNum): boolean; -/** - * Fix all storage slots or a specific item slot index - * @param item Item type to try fixing to the slots - * @param slot_index Individual slot to fix - */ -declare function lockSlots(item: Value | ItemNum, slot_index: Value | number): void; -/** - * Unfix all inventory slots or a specific item slot index - * @param slot_index Individual slot to unfix - */ -declare function unlockSlots(slot_index: Value | number): void; -/** - * Gets a units health as a percentage, current and max - * @param entity Entity to check - * @returns [Percentage of health remaining, Value of health remaining, Value of maximum health] - */ -declare function getHealth(entity: Value): [Value, Value, Value]; -/** - * Gets the best matching entity at a coordinate - * @param coordinate Coordinate to get Entity from - */ -declare function getEntityAt(coordinate: Value | CoordNum): Value; -/** - * Gets the value of the Grid Efficiency as a percent - */ -declare function getGridEffeciency(): Value; -/** - * Gets the value of the Battery level as a percent - */ -declare function getBattery(): Value; -/** - * Gets the value of the Unit executing the behavior - */ -declare function getSelf(): Value; -/** - * Reads the Signal register of another unit - * @param unit The owned unit to check for - * @returns Value of units Signal register - */ -declare function readSignal(unit: Value): Value; -/** - * Reads the Radio signal on a specified band - * @param band The band to check for - * @returns Value of the radio signal - */ -declare function readRadio(band: Value): Value; -/** - * *DEPRECATED* Use Loop Signal (Match) instead - * @param signal Signal - * @returns Entity with signal - */ -declare function deprecatedSignals(signal: Value): IterableIterator; -/** - * Loops through all units with a signal of similar type - * @param signal Signal - * @returns [Entity with signal, Found signal] - */ -declare function matchingSignals(signal: Value): IterableIterator<[Value, Value]>; -/** - * Returns the amount an item can stack to - * @param item Item to count - * @returns Max Stack - */ -declare function getMaxStack(item: Value | ItemNum): Value; -/** - * Equips a component if it exists - * @param component Component to equip - * @param slot_index? Individual slot to equip component from - */ -declare function equip(component: Value | Comp, slot_index?: Value | number): boolean; -/** - * Unequips a component if it exists - * @param component Component to unequip - * @param slot_index? Individual slot to try to unequip component from - */ -declare function unequip(component: Value | Comp, slot_index?: Value | number): boolean; -/** - * Gets the closest visible entity matching a filter - * @param filter1? Filter to check - * @param filter2? Second Filter - * @param filter3? Third Filter - * @returns Entity - */ -declare function getClosestEntity(filter1?: Value | RadarFilter, filter2?: Value | RadarFilter, filter3?: Value | RadarFilter): Value; -/** - * Drop off items at a unit or destination - -If a number is set it will drop off an amount to fill the target unit up to that amount -If unset it will try to drop off everything. - * @param destination Unit or destination to bring items to - * @param item_amount? Item and amount to drop off - */ -declare function drop(destination: Value, item_amount?: Value | ItemNum): void; -/** - * Drop off items at a unit or destination - -If a number is set it will drop off an amount to fill the target unit up to that amount -If unset it will try to drop off everything. - * @param destination Unit or destination to bring items to - * @param item_amount? Item and amount to drop off - */ -declare function dropSpecificAmount(destination: Value, item_amount?: Value | ItemNum): void; -/** - * Picks up a specific number of items from an entity - -Will try to pick up the specified amount, if no amount -is specified it will try to pick up everything. - * @param source Unit to take items from - * @param item_amount? Item and amount to pick up - */ -declare function pickup(source: Value, item_amount?: Value | ItemNum): void; -/** - * Requests an item if it doesn't exist in the inventory - * @param item Item and amount to order - */ -declare function requestItem(item: Value | ItemNum): void; -/** - * Request Inventory to be sent to nearest shared storage with corresponding locked slots - */ -declare function orderToSharedStorage(): void; -/** - * Requests an item and waits until it exists in inventory - * @param item Item and amount to order - */ -declare function requestWait(item: Value | ItemNum): void; -/** - * Gets the amount of resource - * @param resource Resource Node to check - */ -declare function getResourceNum(resource: Value): Value; -/** - * Reads the first item in your inventory - */ -declare function firstInventoryItem(): Value | undefined; -/** - * Reads the item contained in the specified slot index - * @param index Slot index - */ -declare function getInventoryItem(index: Value | number): Value | undefined; -/** - * Loops through Inventory - * @returns [Item Inventory, Items reserved for outgoing order or recipe, Items available, Space reserved for an incoming order, Remaining space] - */ -declare function inventoryItems(): IterableIterator<[Value, Value, Value, Value, Value]>; -/** - * Loops through Ingredients - * @returns Recipe Ingredient - */ -declare function recipieIngredients(recipe: Value | Item): IterableIterator; -/** - * Transfers an Item to another Unit - * @param target Target unit - * @param item Item and amount to transfer - */ -declare function orderTransfer(target: Value, item: Value | ItemNum): void; -/** - * Check if a specific item slot index is fixed - * @param slot_index Individual slot to check - */ -declare function isFixed(slot_index: Value | number): boolean; -/** - * Check if a specific component has been equipped - * @param component Component to check - * @returns Returns how many instances of a component equipped on this Unit - */ -declare function isEquipped(component: Value | Comp): Value | undefined; -/** - * Shuts down the power of the Unit - */ -declare function shutdown(): void; -/** - * Turns on the power of the Unit - */ -declare function turnon(): void; -/** - * Connects Units from Logistics Network - */ -declare function connect(): void; -/** - * Disconnects Units from Logistics Network - */ -declare function disconnect(): void; -/** - * Enable Unit to deliver on transport route - */ -declare function enableTransportRoute(): void; -/** - * Disable Unit to deliver on transport route - */ -declare function disableTransportRoute(): void; -/** - * Sorts Storage Containers on Unit - */ -declare function sortStorage(): void; -/** - * Tries to unpack all packaged items - */ -declare function unpackageAll(): void; -/** - * Tries to pack all packable units into items - */ -declare function packageAll(): void; -/** - * Stop movement and abort what is currently controlling the entities movement - */ -declare function stop(): void; -/** - * Gets location of a a seen entity - * @param entity Entity to get coordinates of - * @returns Coordinate of entity - */ -declare function getLocation(entity: Value): Value; -/** - * Moves towards a tile East of the current location at the specified distance - * @param number Number of tiles to move East - */ -declare function moveEast(number: Value | number): void; -/** - * Moves towards a tile West of the current location at the specified distance - * @param number Number of tiles to move West - */ -declare function moveWest(number: Value | number): void; -/** - * Moves towards a tile North of the current location at the specified distance - * @param number Number of tiles to move North - */ -declare function moveNorth(number: Value | number): void; -/** - * Moves towards a tile South of the current location at the specified distance - * @param number Number of tiles to move South - */ -declare function moveSouth(number: Value | number): void; -/** - * Move to another unit while continuing the program - * @param target Unit to move to - */ -declare function domoveAsync(target: Value): void; -/** - * Moves to another unit or within a range of another unit - * @param target Unit to move to, the number specifies the range in which to be in - */ -declare function domove(target: Value): void; -/** - * *DEPRECATED* Use Move Unit - * @param target Unit to move to, the number specifies the range in which to be in - */ -declare function domoveRange(target: Value): void; -/** - * Moves out of range of another unit - * @param target Unit to move away from - */ -declare function moveawayRange(target: Value): void; -/** - * Moves in a scouting pattern around the factions home location - */ -declare function scout(): void; -/** - * Scan for the closest unit that matches the filters - * @param filter_1? First filter - * @param filter_2? Second filter - * @param filter_3? Third filter - */ -declare function radar(filter_1?: Value | RadarFilter, filter_2?: Value | RadarFilter, filter_3?: Value | RadarFilter): Value | undefined; -/** - * Mines a single resource - * @param resource Resource to Mine - */ -declare function mine(resource: Value | ResourceNum): "ok" | "unable" | "full"; -/** - * Gets the current world stability - * @returns Stability - */ -declare function getStability(): Value; -/** - * Gives you the percent that value is of Max Value - * @param value Value to check - * @param max_value Max Value to get percentage of - * @returns Percent - */ -declare function percentValue(value: Value, max_value: Value): Value; -/** - * Remaps a value between two ranges - * @param value Value to Remap - * @param input_low Low value for input - * @param input_high High value for input - * @param target_low Low value for target - * @param target_high High value for target - * @returns Remapped value - */ -declare function remapValue(value: Value, input_low: Value, input_high: Value, target_low: Value, target_high: Value): Value; -/** - * Divert program depending time of day - */ -declare function daytime(): boolean; -/** - * Divert program depending time of day - */ -declare function nighttime(): boolean; -/** - * Counts the number of the passed item in your logistics network - * @param item Item to count - * @returns Number of this item in your faction - */ -declare function factionItemAmount(item: Value | Item): Value | undefined; -/** - * Attempts to reads the internal key of the unit - * @param frame Structure to read the key for - * @returns Number key of structure - */ -declare function readkey(frame: Value): Value; -/** - * Returns if a unit can produce an item - * @param item Production Item - */ -declare function canProduce(item: Value | Item): boolean; -/** - * Returns the ingredients required to produce an item - * @returns [First Ingredient, Second Ingredient, Third Ingredient] - */ -declare function getIngredients(product: Value | Item): [Value, Value, Value]; -/** - * Triggers a faction notification - * @param notify_value Notification Value - */ -declare function notify(notify_value: Value): void; -/** - * Triggers a faction notification - */ -declare function notify(text: string): void; -/** - * Triggers a faction notification - * @param notify_value Notification Value - */ -declare function notify(text: string, notify_value: Value): void; -/** - * Gets the factions home unit - * @returns Factions home unit - */ -declare function gethome(): Value; -/** - * Plays the Ping effect and notifies other players - * @param target Target unit - */ -declare function ping(target: Value): void; -/** - * Places a construction site for a specific structure - * @param coordinate Target location, or at currently location if not specified - * @param rotation? Building Rotation (0 to 3) (default 0) - */ -declare function build(coordinate: Value | CoordNum, rotation?: Value | number): boolean; -/** - * Sets a production component to produce a blueprint - */ -declare function produce(): void; -/** - * Set the signpost to specific text - */ -declare function setSignpost(text: string): void; -/** - * Launches a satellite if equipped on an AMAC - */ -declare function launch(): void; -/** - * Tells a satellite that has been launched to land - */ -declare function land(): void; -/** - * Collect information for running the auto base controller - * @param range Range of operation - */ -declare function gatherInformation(range: Value | number): void; -/** - * Construct carrier bots for delivering orders or to use for other tasks - * @param carriers Type and count of carriers to make - */ -declare function makeCarrier(carriers: Value | FrameNum): boolean; -/** - * Construct and equip miner components on available carrier bots - * @param resource_count Resource type and number of miners to maintain - */ -declare function makeMiner(resource_count: Value | ItemNum): boolean; -/** - * Produce materials needed in construction sites - */ -declare function serveConstruction(): boolean; -/** - * Build and maintain dedicated production buildings - * @param item_count Item type and number of producers to maintain - * @param component Production component - * @param building Building type to use as producer - * @param location Location offset from self - */ -declare function makeProducer(item_count: Value | ItemNum, component: Value | Comp, building: Value | Frame, location: Value | Coord): boolean; -/** - * Construct and equip turret components on available carrier bots - * @param number Number of turret bots to maintain - */ -declare function makeTurretBots(number: Value | number): boolean; - -declare const self: Value; -declare var goto: Value; -declare var store: Value; -declare var visual: Value; -declare var signal: Value; - -type AnyValue = Coord | ItemNum | FrameNum | RadarFilter; -type Coord = [number, number]; -type CoordNum = Coord | number; - -type RadarFilter = - | Resource - | "v_own_faction" - | "v_ally_faction" - | "v_enemy_faction" - | "v_world_faction" - | "v_bot" - | "v_building" - | "v_is_foundation" - | "v_construction" - | "v_droppeditem" - | "v_resource" - | "v_mineable" - | "v_anomaly" - | "v_valley" - | "v_plateau" - | "v_not_blight" - | "v_blight" - | "v_alien_faction" - | "v_human_faction" - | "v_robot_faction" - | "v_bug_faction" - | "v_solved" - | "v_unsolved" - | "v_can_loot" - | "v_in_powergrid" - | "v_mothership" - | "v_damaged" - | "v_infected" - | "v_broken" - | "v_unpowered" - | "v_emergency" - | "v_powereddown" - | "v_pathblocked" - | "v_idle"; - -type Item = - | Comp - | "metalore" - | "crystal" - | "laterite" - | "aluminiumrod" - | "aluminiumsheet" - | "silica" - | "fused_electrodes" - | "reinforced_plate" - | "optic_cable" - | "circuit_board" - | "infected_circuit_board" - | "obsidian" - | "metalbar" - | "metalplate" - | "foundationplate" - | "ldframe" - | "energized_plate" - | "hdframe" - | "beacon_frame" - | "refined_crystal" - | "crystal_powder" - | "obsidian_brick" - | "alien_artifact" - | "alien_artifact_research" - | "silicon" - | "wire" - | "cable" - | "icchip" - | "micropro" - | "cpu" - | "steelblock" - | "concreteslab" - | "ceramictiles" - | "polymer" - | "robot_datacube" - | "alien_datacube" - | "human_datacube" - | "blight_datacube" - | "virus_research_data" - | "empty_databank" - | "datacube_matrix" - | "robot_research" - | "human_research" - | "alien_research" - | "blight_research" - | "virus_research" - | "adv_data" - | "human_databank" - | "alien_databank" - | "drone_transfer_package" - | "drone_transfer_package2" - | "drone_miner_package" - | "drone_adv_miner_package" - | "drone_defense_package1" - | "flyer_package_m" - | "satellite_package" - | "blight_crystal" - | "blight_extraction" - | "blightbar" - | "blight_plasma" - | "microscope" - | "transformer" - | "smallreactor" - | "engine" - | "datakey" - | "alien_core" - | "bot_ai_core" - | "elain_ai_core" - | "broken_ai_core" - | "bug_carapace" - | "anomaly_particle" - | "anomaly_cluster" - | "resimulator_core" - | "power_petal" - | "phase_leaf" - | "virus_source_code" - | "rainbow_research"; - -type ItemNum = Item | number | { id: Item; num: number }; -type Comp = - | "c_refinery" - | "c_robotics_factory" - | "c_small_relay" - | "c_large_power_relay" - | "c_solar_panel" - | "c_capacitor" - | "c_higrade_capacitor" - | "c_small_battery" - | "c_shared_storage" - | "c_internal_storage" - | "c_autobase" - | "c_portablecrane" - | "c_internal_crane1" - | "c_internal_crane2" - | "c_radio_storage" - | "c_modulehealth_s" - | "c_modulehealth_m" - | "c_modulehealth_l" - | "c_modulevisibility_s" - | "c_modulevisibility_m" - | "c_modulevisibility_l" - | "c_moduleefficiency_s" - | "c_moduleefficiency_m" - | "c_moduleefficiency_l" - | "c_modulespeed_s" - | "c_modulespeed_m" - | "c_modulespeed_l" - | "c_particle_leaves" - | "c_glitch" - | "c_damageself" - | "c_small_storage" - | "c_destroyself" - | "c_phase_plant" - | "c_damage_plant" - | "c_damage_plant_internal" - | "c_large_storage" - | "c_fusion_generator" - | "c_battery" - | "c_large_battery" - | "c_large_power_transmitter" - | "c_medium_storage" - | "c_blight_container_i" - | "c_blight_container_s" - | "c_blight_container_m" - | "c_virus_decomposer" - | "c_alien_attack" - | "c_alien_extractor" - | "c_alien_factory" - | "c_human_refinery" - | "c_human_factory_robots" - | "c_human_science_analyzer_robots" - | "c_human_commandcenter" - | "c_human_barracks" - | "c_human_spaceport" - | "c_human_science" - | "c_alien_research"; -type CompNum = Comp | number | { id: Comp; num: number }; - -type Resource = - | "metalore" - | "crystal" - | "laterite" - | "silica" - | "obsidian" - | "alien_artifact" - | "alien_artifact_research" - | "blight_crystal" - | "blight_extraction" - | "bug_carapace"; -type ResourceNum = Resource | number | { id: Resource; num: number }; -type Frame = - | "f_building1x1a" - | "f_building1x1b" - | "f_building1x1c" - | "f_building1x1d" - | "f_building1x1f" - | "f_building1x1g" - | "f_building2x1a" - | "f_building2x1e" - | "f_building2x1f" - | "f_building2x1g" - | "f_building2x2b" - | "f_building2x2f" - | "f_bot_1s_as" - | "f_bot_1s_adw" - | "f_bot_2m_as" - | "f_bot_1s_a" - | "f_bot_1s_b" - | "f_bot_2s" - | "f_construction" - | "f_foundation" - | "f_human_foundation" - | "f_human_foundation_basic" - | "f_feature" - | "f_blocking_feature" - | "f_floating_feature" - | "f_dropped_resource" - | "f_building1x1e" - | "f_building2x1b" - | "f_building2x1c" - | "f_building2x1d" - | "f_building2x2a" - | "f_building2x2c" - | "f_building2x2d" - | "f_building2x2e" - | "f_building_pf" - | "f_transport_bot" - | "f_bot_1m1s" - | "f_bot_1m_b" - | "f_bot_1m_c" - | "f_bot_1l_a" - | "f_flyer_bot" - | "f_drone_transfer_a" - | "f_drone_transfer_a2" - | "f_drone_miner_a" - | "f_drone_adv_miner" - | "f_drone_defense_a" - | "f_flyer_m" - | "f_satellite" - | "f_building3x2a" - | "f_building3x2b" - | "f_building_fg" - | "f_human_flyer" - | "f_human_tank" - | "f_human_miner" - | "f_alienbot" - | "f_human_explorable_5x5_a" - | "f_carrier_bot"; -type FrameNum = Frame | number | { id: Frame; num: number }; -`;async function hpt(Es,rt=q7e){let ze=await w7e(rt,LI.version,!0,LI);ze.set("index.ts",Es),ze.set("behavior.d.ts",H7e);let ir=A7e(ze),Jn=N7e(ir,rt,LI);return LI.createProgram({rootNames:[...ze.keys()],options:rt,host:Jn.compilerHost})}export{q7e as CompilerOptions,gft as compileProgram,hpt as makeProgram}; -/*! Bundled license information: - -typescript/lib/typescript.js: - (*! ***************************************************************************** - Copyright (c) Microsoft Corporation. All rights reserved. - Licensed under the Apache License, Version 2.0 (the "License"); you may not use - this file except in compliance with the License. You may obtain a copy of the - License at http://www.apache.org/licenses/LICENSE-2.0 - - THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED - WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, - MERCHANTABLITY OR NON-INFRINGEMENT. - - See the Apache Version 2.0 License for specific language governing permissions - and limitations under the License. - ***************************************************************************** *) -*/