local introduction = {
  [10101] = {
    [-1] = -1,
    [-2] = -2,
    [-3] = -3,
    [-4] = {
      [-5] = -4,
      [-6] = -5
    },
    [-7] = {
      [-5] = -4,
      [-6] = -6
    },
    [-8] = -7,
    [-9] = -8
  },
  [10201] = {
    [-1] = -9,
    [-2] = -10,
    [-3] = -3,
    [-4] = {
      [-5] = -4,
      [-6] = -11
    },
    [-7] = {
      [-5] = -4,
      [-6] = -12
    },
    [-8] = -7,
    [-9] = -8
  },
  [20001] = {
    [-1] = -13,
    [-2] = -14,
    [-3] = -3,
    [-4] = {
      [-5] = -4,
      [-6] = -15
    },
    [-7] = {
      [-5] = -4,
      [-6] = -16
    },
    [-8] = -17,
    [-9] = -18
  },
  [20002] = {
    [-1] = -19,
    [-2] = -14,
    [-3] = -20,
    [-4] = {
      [-5] = -4,
      [-6] = -21
    },
    [-7] = {
      [-5] = -4,
      [-6] = -22
    },
    [-8] = -23,
    [-9] = -18
  }
}
local key_to_index_map = {
  id = -1,
  groupId = -2,
  page = -3,
  title = -4,
  group = -5,
  langKey = -6,
  content = -7,
  picture = -8,
  isPictureIntroduction = -9
}
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 = {
  [10101] = -1,
  [101] = -2,
  [1] = -3,
  lang_introduction = -4,
  ["10101_3_0"] = -5,
  ["10101_4_0"] = -6,
  [""] = -7,
  [false] = -8,
  [10201] = -9,
  [102] = -10,
  ["10201_3_0"] = -11,
  ["10201_4_0"] = -12,
  [20001] = -13,
  [200] = -14,
  ["20001_3_0"] = -15,
  ["20001_4_0"] = -16,
  ["UI/Texture/GuidePic/tex_guide_star_sand_scratches_01.png"] = -17,
  [true] = -18,
  [20002] = -19,
  [2] = -20,
  ["20002_3_0"] = -21,
  ["20002_4_0"] = -22,
  ["UI/Texture/GuidePic/tex_guide_star_sand_scratches_02.png"] = -23
}
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

introduction = SetReadonlyTable(introduction)
return introduction
