local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1
L0_1 = require
L1_1 = "Ui.PerformanceRollingSubtitles.PerformanceRollingSubtitlesDialogBinder"
L0_1(L1_1)
L0_1 = require
L1_1 = "Ui.PerformanceRollingSubtitles.Components.PerformanceRollingSubtitlesMainTitlePanel"
L0_1(L1_1)
L0_1 = require
L1_1 = "Ui.PerformanceRollingSubtitles.Components.PerformanceRollingSubtitlesMainTitlePanelBinder"
L0_1(L1_1)
L0_1 = require
L1_1 = "Ui.PerformanceRollingSubtitles.Components.PerformanceRollingSubtitlesActorPanel"
L0_1(L1_1)
L0_1 = require
L1_1 = "Ui.PerformanceRollingSubtitles.Components.PerformanceRollingSubtitlesActorPanelBinder"
L0_1(L1_1)
L0_1 = require
L1_1 = "Ui.PerformanceRollingSubtitles.Components.PerformanceRollingSubtitlesSpacePanel"
L0_1(L1_1)
L0_1 = require
L1_1 = "Ui.PerformanceRollingSubtitles.Components.PerformanceRollingSubtitlesSpacePanelBinder"
L0_1(L1_1)
L0_1 = require
L1_1 = "Ui.PerformanceRollingSubtitles.Components.PerformanceRollingSubtitlesSubTitlePanel"
L0_1(L1_1)
L0_1 = require
L1_1 = "Ui.PerformanceRollingSubtitles.Components.PerformanceRollingSubtitlesSubTitlePanelBinder"
L0_1(L1_1)
L0_1 = {}
L1_1 = CS
L1_1 = L1_1.RPG
L1_1 = L1_1.GameCore
L1_1 = L1_1.RollingSubtitlesPageType
L1_1 = L1_1.MainTitle
L1_1 = #L1_1
L0_1[L1_1] = 0
L1_1 = CS
L1_1 = L1_1.RPG
L1_1 = L1_1.GameCore
L1_1 = L1_1.RollingSubtitlesPageType
L1_1 = L1_1.SubTitle
L1_1 = #L1_1
L0_1[L1_1] = 1
L1_1 = CS
L1_1 = L1_1.RPG
L1_1 = L1_1.GameCore
L1_1 = L1_1.RollingSubtitlesPageType
L1_1 = L1_1.Actor
L1_1 = #L1_1
L0_1[L1_1] = 2
L1_1 = CS
L1_1 = L1_1.RPG
L1_1 = L1_1.GameCore
L1_1 = L1_1.RollingSubtitlesPageType
L1_1 = L1_1.Space
L1_1 = #L1_1
L0_1[L1_1] = 3
L1_1 = {}
L2_1 = CS
L2_1 = L2_1.RPG
L2_1 = L2_1.GameCore
L2_1 = L2_1.RollingSubtitlesPageType
L2_1 = L2_1.MainTitle
L2_1 = #L2_1
L3_1 = G
L3_1 = L3_1.PerformanceRollingSubtitlesMainTitlePanel
L1_1[L2_1] = L3_1
L2_1 = CS
L2_1 = L2_1.RPG
L2_1 = L2_1.GameCore
L2_1 = L2_1.RollingSubtitlesPageType
L2_1 = L2_1.SubTitle
L2_1 = #L2_1
L3_1 = G
L3_1 = L3_1.PerformanceRollingSubtitlesSubTitlePanel
L1_1[L2_1] = L3_1
L2_1 = CS
L2_1 = L2_1.RPG
L2_1 = L2_1.GameCore
L2_1 = L2_1.RollingSubtitlesPageType
L2_1 = L2_1.Actor
L2_1 = #L2_1
L3_1 = G
L3_1 = L3_1.PerformanceRollingSubtitlesActorPanel
L1_1[L2_1] = L3_1
L2_1 = CS
L2_1 = L2_1.RPG
L2_1 = L2_1.GameCore
L2_1 = L2_1.RollingSubtitlesPageType
L2_1 = L2_1.Space
L2_1 = #L2_1
L3_1 = G
L3_1 = L3_1.PerformanceRollingSubtitlesSpacePanel
L1_1[L2_1] = L3_1
L2_1 = {}
L3_1 = CS
L3_1 = L3_1.RPG
L3_1 = L3_1.GameCore
L3_1 = L3_1.RollingSubtitlesPageType
L3_1 = L3_1.MainTitle
L3_1 = #L3_1
L4_1 = G
L4_1 = L4_1.PerformanceRollingSubtitlesMainTitlePanelBinder
L2_1[L3_1] = L4_1
L3_1 = CS
L3_1 = L3_1.RPG
L3_1 = L3_1.GameCore
L3_1 = L3_1.RollingSubtitlesPageType
L3_1 = L3_1.SubTitle
L3_1 = #L3_1
L4_1 = G
L4_1 = L4_1.PerformanceRollingSubtitlesSubTitlePanelBinder
L2_1[L3_1] = L4_1
L3_1 = CS
L3_1 = L3_1.RPG
L3_1 = L3_1.GameCore
L3_1 = L3_1.RollingSubtitlesPageType
L3_1 = L3_1.Actor
L3_1 = #L3_1
L4_1 = G
L4_1 = L4_1.PerformanceRollingSubtitlesActorPanelBinder
L2_1[L3_1] = L4_1
L3_1 = CS
L3_1 = L3_1.RPG
L3_1 = L3_1.GameCore
L3_1 = L3_1.RollingSubtitlesPageType
L3_1 = L3_1.Space
L3_1 = #L3_1
L4_1 = G
L4_1 = L4_1.PerformanceRollingSubtitlesSpacePanelBinder
L2_1[L3_1] = L4_1
L3_1 = G
L3_1 = L3_1.Class
L4_1 = "PerformanceRollingSubtitlesDialog"
L5_1 = G
L5_1 = L5_1.UIController
L3_1 = L3_1(L4_1, L5_1)
function L4_1(A0_2)
  local L1_2, L2_2, L3_2
  L2_2 = A0_2
  L1_2 = A0_2._create_binder
  L3_2 = G
  L3_2 = L3_2.PerformanceRollingSubtitlesDialogBinder
  L1_2 = L1_2(L2_2, L3_2)
  A0_2._binder = L1_2
  L1_2 = G
  L1_2 = L1_2.ImportCsToLua
  L1_2 = L1_2.CS_RPG_Client_UILayer_Dialog
  A0_2._ui_layer = L1_2
  L1_2 = G
  L1_2 = L1_2.ImportCsToLua
  L1_2 = L1_2.TransitionStyle_AboveAndBelowBlack
  A0_2._transition_style = L1_2
end
L3_1.ctor = L4_1
function L4_1(A0_2, A1_2, A2_2, A3_2, A4_2)
  local L5_2, L6_2
  L5_2 = CS
  L5_2 = L5_2.RPG
  L5_2 = L5_2.GameCore
  L5_2 = L5_2.GameCoreConfigLoader
  L5_2 = L5_2.LoadPerformanceRollingSubtitlesConfig
  L6_2 = A1_2
  L5_2 = L5_2(L6_2)
  A0_2._config = L5_2
  L5_2 = A0_2._config
  L5_2 = L5_2.ActThePartTextmap
  A0_2._act_text_id = L5_2
  A0_2._cur_index = 0
  L5_2 = A2_2 or L5_2
  if A2_2 == nil or not A2_2 then
    L5_2 = 0
  end
  A0_2._prev_duration = L5_2
  L5_2 = A3_2 or L5_2
  if A3_2 == nil or not A3_2 then
    L5_2 = 0
  end
  A0_2._post_duration = L5_2
  L5_2 = A4_2 or L5_2
  if A4_2 == nil or not A4_2 then
    L5_2 = false
  end
  A0_2._is_go_next_immediately = L5_2
  A0_2._is_performance_start = true
end
L3_1.init = L4_1
function L4_1(A0_2)
  local L1_2, L2_2
  L2_2 = A0_2
  L1_2 = A0_2.add_tick
  L1_2(L2_2)
end
L3_1._on_load = L4_1
function L4_1(A0_2, A1_2)
  local L2_2, L3_2
  L2_2 = A0_2._is_performance_start
  if L2_2 then
    L2_2 = A0_2._prev_duration
    if 0 < L2_2 then
      L2_2 = A0_2._prev_duration
      L2_2 = L2_2 - A1_2
      A0_2._prev_duration = L2_2
    else
      A0_2._is_performance_start = false
      L3_2 = A0_2
      L2_2 = A0_2._refresh_view
      L2_2(L3_2)
    end
  end
  L2_2 = A0_2._is_performance_over
  if L2_2 then
    L2_2 = A0_2._post_duration
    if 0 < L2_2 then
      L2_2 = A0_2._post_duration
      L2_2 = L2_2 - A1_2
      A0_2._post_duration = L2_2
    else
      A0_2._is_performance_over = false
      L3_2 = A0_2
      L2_2 = A0_2.exit
      L2_2(L3_2)
    end
  end
end
L3_1._on_tick = L4_1
function L4_1(A0_2)
  local L1_2
  return
end
L3_1._in_control_exit_click = L4_1
function L4_1(A0_2)
  local L1_2, L2_2
  L1_2 = G
  L1_2 = L1_2.NotifyManager
  L1_2 = L1_2.notify
  L2_2 = G
  L2_2 = L2_2.CS
  L2_2 = L2_2.NotifyType
  L2_2 = L2_2.PerformanceRollingSubtitlesFinish
  L1_2(L2_2)
end
L3_1._on_dispose = L4_1
function L4_1(A0_2)
  local L1_2, L2_2, L3_2, L4_2
  L1_2 = A0_2._config
  L1_2 = L1_2.pageList
  L2_2 = A0_2._cur_index
  L1_2 = L1_2[L2_2]
  L2_2 = L1_2.displayMode
  L3_2 = CS
  L3_2 = L3_2.RPG
  L3_2 = L3_2.GameCore
  L3_2 = L3_2.RollingSubtitlesDisplayType
  L3_2 = L3_2.fullScreen
  if L2_2 == L3_2 then
    L3_2 = A0_2
    L2_2 = A0_2._set_fade_view
    L4_2 = L1_2
    L2_2(L3_2, L4_2)
  else
    L2_2 = L1_2.displayMode
    L3_2 = CS
    L3_2 = L3_2.RPG
    L3_2 = L3_2.GameCore
    L3_2 = L3_2.RollingSubtitlesDisplayType
    L3_2 = L3_2.Scroll
    if L2_2 == L3_2 then
      L3_2 = A0_2
      L2_2 = A0_2._set_scroll_view
      L4_2 = L1_2
      L2_2(L3_2, L4_2)
    end
  end
end
L3_1._refresh_view = L4_1
function L4_1(A0_2, A1_2, A2_2)
  local L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2
  L3_2 = {}
  A0_2._content_panel_table = L3_2
  L3_2 = 0
  L4_2 = A1_2.pageContent
  L4_2 = L4_2.Length
  L4_2 = L4_2 - 1
  L5_2 = 1
  for L6_2 = L3_2, L4_2, L5_2 do
    L7_2 = A1_2.pageContent
    L7_2 = L7_2[L6_2]
    L7_2 = L7_2.pageType
    L7_2 = #L7_2
    L7_2 = L0_1[L7_2]
    L8_2 = A2_2.MultiPrefabList
    L8_2 = L8_2[L7_2]
    L10_2 = A0_2
    L9_2 = A0_2.instantiate_object
    L11_2 = L8_2
    L12_2 = A2_2.transform
    L9_2 = L9_2(L10_2, L11_2, L12_2)
    L11_2 = A0_2
    L10_2 = A0_2.create_panel
    L12_2 = A1_2.pageContent
    L12_2 = L12_2[L6_2]
    L12_2 = L12_2.pageType
    L12_2 = #L12_2
    L12_2 = L1_1[L12_2]
    L13_2 = A1_2.pageContent
    L13_2 = L13_2[L6_2]
    L13_2 = L13_2.pageType
    L13_2 = #L13_2
    L13_2 = L2_1[L13_2]
    L10_2 = L10_2(L11_2, L12_2, L13_2)
    L12_2 = L10_2
    L11_2 = L10_2.bind
    L13_2 = L9_2
    L11_2(L12_2, L13_2)
    L12_2 = L10_2
    L11_2 = L10_2.setup_view
    L13_2 = A1_2.pageContent
    L13_2 = L13_2[L6_2]
    L11_2(L12_2, L13_2)
    L11_2 = A1_2.pageContent
    L11_2 = L11_2[L6_2]
    L11_2 = L11_2.pageType
    L11_2 = #L11_2
    L12_2 = CS
    L12_2 = L12_2.RPG
    L12_2 = L12_2.GameCore
    L12_2 = L12_2.RollingSubtitlesPageType
    L12_2 = L12_2.Actor
    L12_2 = #L12_2
    if L11_2 == L12_2 then
      L12_2 = L10_2
      L11_2 = L10_2.set_center_text
      L13_2 = A0_2._act_text_id
      L11_2(L12_2, L13_2)
    end
    L11_2 = table
    L11_2 = L11_2.insert
    L12_2 = A0_2._content_panel_table
    L13_2 = L10_2
    L11_2(L12_2, L13_2)
  end
end
L3_1._create_content_sequence = L4_1
function L4_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2
  L3_2 = A0_2
  L2_2 = A0_2._create_content_sequence
  L4_2 = A1_2
  L5_2 = A0_2._binder
  L5_2 = L5_2.scroll_prefab_load_meta
  L2_2(L3_2, L4_2, L5_2)
  function L2_2()
    local L0_3, L1_3
    L0_3 = A0_2
    L1_3 = L0_3
    L0_3 = L0_3._on_performance_finish
    L0_3(L1_3)
  end
  L3_2 = CS
  L3_2 = L3_2.RPG
  L3_2 = L3_2.Client
  L3_2 = L3_2.CoroutineUtils
  L3_2 = L3_2.InvokeNextFrame
  function L4_2()
    local L0_3, L1_3, L2_3, L3_3
    L0_3 = A0_2._binder
    L0_3 = L0_3.scroll_controller
    L1_3 = L0_3
    L0_3 = L0_3.StartScroll
    L2_3 = L2_2
    L3_3 = A1_2.scrollEffectParam
    L0_3(L1_3, L2_3, L3_3)
  end
  L3_2(L4_2)
end
L3_1._set_scroll_view = L4_1
function L4_1(A0_2, A1_2)
  local L2_2, L3_2, L4_2, L5_2, L6_2
  L3_2 = A0_2
  L2_2 = A0_2._create_content_sequence
  L4_2 = A1_2
  L5_2 = A0_2._binder
  L5_2 = L5_2.fade_prefab_load_meta
  L2_2(L3_2, L4_2, L5_2)
  function L2_2()
    local L0_3, L1_3
    L0_3 = A0_2
    L1_3 = L0_3
    L0_3 = L0_3._on_performance_finish
    L0_3(L1_3)
  end
  L3_2 = A0_2._binder
  L3_2 = L3_2.fade_controller
  L4_2 = L3_2
  L3_2 = L3_2.StartFade
  L5_2 = L2_2
  L6_2 = A1_2.fullScreenEffectParam
  L3_2(L4_2, L5_2, L6_2)
end
L3_1._set_fade_view = L4_1
function L4_1(A0_2)
  local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2
  L1_2 = 1
  L2_2 = A0_2._content_panel_table
  L2_2 = #L2_2
  L3_2 = 1
  for L4_2 = L1_2, L2_2, L3_2 do
    L5_2 = A0_2._content_panel_table
    L5_2 = L5_2[L4_2]
    L6_2 = L5_2
    L5_2 = L5_2.on_performance_finish
    L5_2(L6_2)
  end
  L1_2 = {}
  A0_2._content_panel_table = L1_2
  L1_2 = A0_2._cur_index
  L1_2 = L1_2 + 1
  A0_2._cur_index = L1_2
  L1_2 = A0_2._cur_index
  L2_2 = A0_2._config
  L2_2 = L2_2.pageList
  L2_2 = L2_2.Length
  if L1_2 >= L2_2 then
    L2_2 = A0_2
    L1_2 = A0_2._on_all_finish
    L1_2(L2_2)
  else
    L2_2 = A0_2
    L1_2 = A0_2._refresh_view
    L1_2(L2_2)
  end
end
L3_1._on_performance_finish = L4_1
function L4_1(A0_2)
  local L1_2, L2_2
  A0_2._is_performance_over = true
  L1_2 = A0_2._is_go_next_immediately
  if L1_2 then
    L1_2 = G
    L1_2 = L1_2.NotifyManager
    L1_2 = L1_2.notify
    L2_2 = G
    L2_2 = L2_2.CS
    L2_2 = L2_2.NotifyType
    L2_2 = L2_2.PerformanceRollingSubtitlesFinish
    L1_2(L2_2)
  end
end
L3_1._on_all_finish = L4_1
function L4_1(A0_2)
  local L1_2, L2_2, L3_2, L4_2
  L2_2 = A0_2
  L1_2 = A0_2._add_notify_handler
  L3_2 = G
  L3_2 = L3_2.CS
  L3_2 = L3_2.NotifyType
  L3_2 = L3_2.ClosePerformanceRollingSubtitlesDialog
  L4_2 = L3_1._OnClosePerformanceRollingSubtitlesDialog
  L1_2(L2_2, L3_2, L4_2)
end
L3_1._add_handlers = L4_1
function L4_1(A0_2, A1_2)
  local L2_2, L3_2
  L3_2 = A0_2
  L2_2 = A0_2.exit
  L2_2(L3_2)
end
L3_1._OnClosePerformanceRollingSubtitlesDialog = L4_1
return L3_1
