local _, ns = ...

-- Imported from HandyNotes_MapNotes_Instances (local install) to avoid runtime dependency.
-- Used as a fallback/open-map reference table for instance name -> zone mapID.
ns.staticInstanceOpenMapIDs = ns.staticInstanceOpenMapIDs or {
  ["Aberrus, the Shadowed Crucible"] = 2133,
  ["Ahn'kahet: The Old Kingdom"] = 115,
  ["Algeth'ar Academy"] = 2025,
  ["Amirdrassil, the Dream's Hope"] = 2200,
  ["Antorus, the Burning Thron"] = 947,
  ["Antorus, the Burning Throne"] = 885,
  ["Ara-Kara, City of Echoes"] = 2255,
  ["Arena der Leerennarbe"] = 2405,
  ["Assault on Violet Hold"] = 627,
  ["Atal'Dazar"] = 862,
  ["Auchenai Crypts"] = 108,
  ["Auchindoun"] = 535,
  ["Azjol-Nerub"] = 115,
  ["Baradin Hold"] = 244,
  ["Bastion of Twilight"] = 48,
  ["Battle of Dazar Alor"] = 1165,
  ["Battle of Dazar'alor"] = 862,
  ["Black Rook Hold"] = 641,
  ["Black Temple"] = 104,
  ["Blackfathom Deeps"] = 62,
  ["Blackmaul Slag Mines"] = 525,
  ["Blackrock Caverns"] = 34,
  ["Blackrock Depths"] = 35,
  ["Blackrock Foundry"] = 543,
  ["Blackwind Descent"] = 13,
  ["Blackwing Descent"] = 36,
  ["Blackwing Lair"] = 33,
  ["Bloodmaul Slag Mines"] = 572,
  ["Brackenhide Hollow"] = 2024,
  ["Castle Nathria"] = 1525,
  ["Cathedral of Eternal Night"] = 646,
  ["Cathedral of the Night"] = 619,
  ["Cinderbrew Meadery"] = 2248,
  ["City of Threads"] = 2255,
  ["Court of Stars"] = 680,
  ["Crucible of Storms"] = 942,
  ["Darkflame Cleft"] = 2214,
  ["Darkheart Thicket"] = 641,
  ["Das blendende Tal"] = 2413,
  ["Dawn of the Infinite"] = 2025,
  ["De Other Side"] = 1565,
  ["Deadmines"] = 55,
  ["Der Traumriss"] = 2413,
  ["Die Leerenspitze"] = 13,
  ["Dire Maul - Capital Gardens"] = 12,
  ["Dire Maul - Gordok Commons - North"] = 69,
  ["Dire Maul - Warpwood Quarter - East above Camp Mojache"] = 69,
  ["Dragon Soul"] = 75,
  ["Drak'Tharon Keep"] = 116,
  ["Eco-Dome Al'dani"] = 2371,
  ["End Time"] = 75,
  ["Eye of Azshara"] = 630,
  ["Firelands"] = 63,
  ["Freehold"] = 895,
  ["Gate of the Setting Sun"] = 422,
  ["Gnomeregan"] = 30,
  ["Grim Batol"] = 241,
  ["Grimrail Depot"] = 543,
  ["Gruul's Lair"] = 105,
  ["Gruul's Lairend"] = 101,
  ["Gundrak"] = 121,
  ["Halls of Atonement"] = 1525,
  ["Halls of Infusion"] = 2025,
  ["Halls of Lightning"] = 120,
  ["Halls of Origination"] = 249,
  ["Halls of Reflection"] = 118,
  ["Halls of Stone"] = 120,
  ["Halls of Valor"] = 634,
  ["Heart of Fear"] = 422,
  ["Hellfire Citadel"] = 534,
  ["Hellfire Ramparts"] = 100,
  ["Highmaul"] = 550,
  ["Hour of Twilight"] = 75,
  ["Icecrown Citadel"] = 113,
  ["Iron Docks"] = 543,
  ["Karazhan"] = 224,
  ["Kings' Rest"] = 862,
  ["Leerenspitze"] = 2405,
  ["Liberation of Undermine"] = 2346,
  ["Lost City of the Tol'vir"] = 249,
  ["Lost City of Tol'Vir"] = 12,
  ["Lower Blackrock Spire"] = 33,
  ["Magisters' Terrace"] = 122,
  ["Magisters'Terrace"] = 122,
  ["Magtheridon's Lair"] = 100,
  ["Maisarakavernen"] = 2437,
  ["Mana Tombs"] = 108,
  ["Mana-Tombs"] = 101,
  ["Manaforge Omega"] = 2371,
  ["Maraudon"] = 12,
  ["Maraudon Foulspore Cavern"] = 67,
  ["Maraudon Foulspore Cavern first Entrance"] = 68,
  ["Marsch auf Quel'Danas"] = 2424,
  ["Maw of Souls"] = 634,
  ["Mists of Tirna Scithe"] = 1565,
  ["Mogu'shan Palace"] = 371,
  ["Mogu'shan Palace (moved location cause of the LFR position)"] = 424,
  ["Mogu'Shan Vaults"] = 379,
  ["Molten Core"] = 35,
  ["Nalorakks Bau"] = 2437,
  ["Naxxramas"] = 116,
  ["Neltharion's Lair"] = 650,
  ["Neltharus"] = 2022,
  ["Nerub-ar Palace"] = 2255,
  ["Nexupunkt Xenas"] = 13,
  ["Nexuspunkt Xenas"] = 2405,
  ["Ny'alotha the Waking City"] = 390,
  ["Ny'Alotha, The Waking City"] = 12,
  ["Old Hillsbrad Foothills"] = 75,
  ["Onyxia's Lair"] = 12,
  ["Onyxias Lair"] = 199,
  ["Operation: Floodgate"] = 2214,
  ["Operation: Mechagon"] = 1462,
  ["Pit of Saron"] = 118,
  ["Plaguefall"] = 1536,
  ["Priory of the Sacred Flame"] = 2215,
  ["Ragefire"] = 1,
  ["Ragefire - Chasm of shadows"] = 86,
  ["Razorfen Downs"] = 199,
  ["Razorfen Kraul"] = 199,
  ["Return to Karazhan"] = 42,
  ["Ruby Life Pools"] = 2022,
  ["Ruins of Ahn'Qiraj"] = 81,
  ["Sanctum of Domination"] = 1543,
  ["Sanguine Depths"] = 1525,
  ["Scarlet Halls"] = 18,
  ["Scarlet Monastery"] = 18,
  ["Scholomance"] = 26,
  ["Seat of the Triumvirate"] = 882,
  ["Sepulcher of the First Ones"] = 1970,
  ["Serpentshrine Cavern"] = 102,
  ["Sethekk Halls"] = 108,
  ["Shado-Pan Monastery"] = 388,
  ["Shadow Labyrinth"] = 108,
  ["Shadowfang Keep"] = 25,
  ["Shadowmoon Burial Grounds"] = 539,
  ["Shrine of Storm"] = 942,
  ["Siege of Boralus"] = 1161,
  ["Siege of Niuzao Temple"] = 388,
  ["Siege of Orgrimmar"] = 371,
  ["Skyreach"] = 542,
  ["Spires of Ascension"] = 1533,
  ["Stormstout Brewery"] = 418,
  ["Stratholme"] = 23,
  ["Stratholme Service Entrance"] = 13,
  ["Sunwell Plateau"] = 122,
  ["Tazavesh, the Veiled Market"] = 2016,
  ["Temple of Ahn'Qiraj"] = 81,
  ["Temple of Sethraliss"] = 864,
  ["Temple of the Jade Serpent"] = 371,
  ["Terrace of Endless Spring"] = 371,
  ["Terrasse der Magister"] = 2424,
  ["Terrasse der Magisters"] = 13,
  ["The Arcatraz"] = 109,
  ["The Arcway"] = 680,
  ["The Azure Vault"] = 2024,
  ["The Bastion of Twilight"] = 13,
  ["The Battle of Mount Hyjal"] = 75,
  ["The Black Morass"] = 75,
  ["The Blood Furnace"] = 100,
  ["The Botanica"] = 109,
  ["The Culling of Stratholme"] = 75,
  ["The Dawnbreaker"] = 2215,
  ["The Emerald Nightmare"] = 641,
  ["The Eternal Palace"] = 1528,
  ["The Everbloom"] = 543,
  ["The Eye"] = 109,
  ["The Eye of Eternity"] = 114,
  ["The Forge of Souls"] = 118,
  ["The Mechanar"] = 109,
  ["The Motherlode"] = 862,
  ["The MOTHERLODE Alliance"] = 875,
  ["The MOTHERLODE HORDE"] = 1165,
  ["The Necrotic Wake"] = 1533,
  ["The Nexus"] = 114,
  ["The Nighthold"] = 680,
  ["The Nokhud Offensive"] = 2023,
  ["The Obsidian Sanctum"] = 115,
  ["The Oculus"] = 114,
  ["The Rookery"] = 2248,
  ["The Ruby Sanctum"] = 115,
  ["The Seat of the Triumvirate"] = 619,
  ["The Shattered Halls"] = 100,
  ["The Slave Pens"] = 102,
  ["The Steamvault"] = 102,
  ["The Stockade"] = 84,
  ["The Stonecore"] = 207,
  ["The Stonevault"] = 2214,
  ["The Temple of Atal'hakkar"] = 13,
  ["The Underbog"] = 102,
  ["The Underrot"] = 863,
  ["The Violet Hold"] = 125,
  ["The Vortex Pinnacle"] = 249,
  ["Theater of Pain"] = 1536,
  ["Throne of the Four Winds"] = 249,
  ["Throne of the Tides"] = 203,
  ["Throne of Thunder"] = 504,
  ["Throne of Tides"] = 13,
  ["TIcecrown Citadel"] = 118,
  ["Tol Dagor"] = 1169,
  ["Tomb of Sargeras"] = 646,
  ["Trial of the Champion"] = 120,
  ["Trial of the Crusader"] = 120,
  ["Trial of Valor"] = 634,
  ["Uldaman"] = 48,
  ["Uldaman: Legacy of Tyr"] = 15,
  ["Uldir"] = 863,
  ["Ulduar"] = 120,
  ["Upper Blackrock Spire"] = 33,
  ["Utgarde Keep"] = 117,
  ["Utgarde Pinnacle"] = 117,
  ["Vault of Archavon"] = 118,
  ["Vault of the Incarnates"] = 2025,
  ["Vault of the Wardens"] = 630,
  ["Violet Hold"] = 113,
  ["Wailing Caverns"] = 1,
  ["Waycrest Manor"] = 896,
  ["Well of Eternity"] = 75,
  ["Zul'Aman"] = 95,
  ["Zul'Farrak"] = 71,
  ["Zul'gurub"] = 50,

  -- BEGIN MIDNIGHT IMPORT (auto-generated)
  ["Den of Nalorakk"] = 2537,
  ["Magisters' Terrace"] = 2537,
  ["Maisara Caverns"] = 2537,
  ["March on Quel'Danas"] = 2537,
  ["Murder Row"] = 13,
  ["Nexus-Point Xenas"] = 2537,
  ["The Blinding Vale"] = 2537,
  ["The Dreamrift"] = 2537,
  ["The Voidspire"] = 2537,
  ["Voidscar Arena"] = 2537,
  ["Windrunner Spire"] = 2537,
  -- END MIDNIGHT IMPORT
}
