-- ============================================================
--  Init.lua  |  v2.1.17
--  AzerothAngler — Namespace bootstrap
--  Author  : ForgeDMC
--  Updated : 2026-03-21
--  License : MIT
-- ============================================================
local addonName, ns = ...

_G.AzerothAngler = ns
ns.addonName = addonName

-- Embed ForgeDMC Toolkit into the addon namespace
ForgeTimer:Embed(ns)
ns.DB = nil
ns.state = {
    initialized       = false,
    activeTab         = "Overview",
    frame             = nil,
    compactFrame      = nil,
    debugFrame        = nil,
    minimapButton     = nil,
    bindingArmed      = false,
    doubleClickWatching = false,
    doubleClickWatchToken = 0,
    previousClickTime = 0,
    doubleClickHeldDown  = false,
    doubleClickHoldToken = 0,
    ignoreNextMouseUp    = false,
    doubleClickCastArmed = false,
    cvarsChanged      = false,
    pendingClear      = false,
    debugHandlerInstalled = false,
    previousErrorHandler  = nil,
    lastDebugNoticeAt     = 0,
}
