local home_board_replyuser = {
  [1] = {
    [-1] = -1,
    [-2] = -2,
    [-3] = {
      [-2] = -3,
      [-4] = -4
    },
    [-5] = -5,
    [-6] = -6
  },
  [2] = {
    [-1] = -7,
    [-2] = -2,
    [-3] = {
      [-2] = -3,
      [-4] = -8
    },
    [-5] = -5,
    [-6] = -9
  },
  [3] = {
    [-1] = -10,
    [-2] = -2,
    [-3] = {
      [-2] = -3,
      [-4] = -11
    },
    [-5] = -12,
    [-6] = -13
  }
}
local key_to_index_map = {
  id = -1,
  group = -2,
  message = -3,
  langKey = -4,
  Path = -5,
  replyHeroId = -6
}
local index_to_key_map = {}
for k, v in pairs(key_to_index_map) do
  index_to_key_map[v] = k
end
local value_to_index_map = {
  [1] = -1,
  [1001] = -2,
  lang_home_board_replyuser = -3,
  ["1_2_0"] = -4,
  ["UI/Atlas/Item/tex_icon_item_wood01.png"] = -5,
  [4] = -6,
  [2] = -7,
  ["2_2_0"] = -8,
  [5] = -9,
  [3] = -10,
  ["3_2_0"] = -11,
  ["UI/Atlas/Item/tex_icon_item_wood02.png"] = -12,
  [6] = -13
}
local index_to_value_map = {}
for k, v in pairs(value_to_index_map) do
  index_to_value_map[v] = k
end

local function SetReadonlyTable(t)
  for k, v in pairs(t) do
    if type(v) == "table" then
      t[k] = SetReadonlyTable(v)
    end
  end
  local mt = {
    __data = t,
    __index_to_key_map = index_to_key_map,
    __key_to_index_map = key_to_index_map,
    __index_to_value_map = index_to_value_map,
    __index = function(t, k)
      local tmt = getmetatable(t)
      local data = tmt.__data
      local value_index
      if tmt.__key_to_index_map[k] ~= nil then
        value_index = data[tmt.__key_to_index_map[k]]
      else
        value_index = data[k]
      end
      if type(value_index) == "table" then
        return value_index
      else
        return tmt.__index_to_value_map[value_index]
      end
    end,
    __newindex = function(t, k, v)
      errorf("attempt to modify a read-only talbe!", 2)
    end,
    __pairs = function(t, k)
      return function(t, k)
        local tmt = getmetatable(t)
        local data = tmt.__data
        local nk, nv
        if tmt.__key_to_index_map[k] ~= nil then
          local iter_key = tmt.__key_to_index_map[k]
          nk, nv = next(data, iter_key)
        else
          nk, nv = next(data, k)
        end
        local key, value
        if tmt.__index_to_key_map[nk] ~= nil then
          key = tmt.__index_to_key_map[nk]
        else
          key = nk
        end
        if type(nv) == "table" then
          value = nv
        else
          value = tmt.__index_to_value_map[nv]
        end
        return key, value
      end, t, nil
    end,
    __len = function(t)
      local tmt = getmetatable(t)
      local data = tmt.__data
      return #data
    end
  }
  t = setmetatable({}, mt)
  return t
end

home_board_replyuser = SetReadonlyTable(home_board_replyuser)
return home_board_replyuser
