diff --git a/API.md b/API.md index b38257c..2868b5b 100644 --- a/API.md +++ b/API.md @@ -40,6 +40,7 @@ local meta = bds.meta.get_project_metadata() - [app.get_default_project_path](#appget_default_project_path) - [app.get_system_language](#appget_system_language) - [app.get_title_bar_metrics](#appget_title_bar_metrics) +- [app.log](#applog) - [app.notify_renderer_ready](#appnotify_renderer_ready) - [app.open_folder](#appopen_folder) - [app.read_project_metadata](#appread_project_metadata) @@ -202,6 +203,30 @@ nil -- or local result = bds.app.get_title_bar_metrics() ``` +### app.log + +Append a line to the script output stream. Multiple arguments are joined with spaces. Output appears in the desktop app's Output panel (and on stdout in the CLI); Lua's global `print` is routed the same way. + +**Parameters** + +- text (string, required) + +**Response specification** + +- Return type: `boolean` + +**Example response** + +```lua +true +``` + +**Example call** + +```lua +local result = bds.app.log("value") +``` + ### app.notify_renderer_ready Notify the host application that the renderer is ready. diff --git a/assets/css/shell.css b/assets/css/shell.css index 2f48d7f..da7c219 100644 --- a/assets/css/shell.css +++ b/assets/css/shell.css @@ -794,13 +794,3 @@ padding: 16px; } -.sidebar-header, -.assistant-header, -.panel-header { - display: flex; - justify-content: space-between; - gap: 12px; - padding: 16px 18px; - border-bottom: 1px solid var(--line); -} - diff --git a/assets/js/hooks/app_shell.js b/assets/js/hooks/app_shell.js index fbc01e2..586bf38 100644 --- a/assets/js/hooks/app_shell.js +++ b/assets/js/hooks/app_shell.js @@ -19,6 +19,7 @@ import { } from "../utils/shortcuts.js"; import { syncTitlebarOverlayInsets } from "../bridges/titlebar_overlay.js"; import { runMenuRuntimeCommand } from "../bridges/menu_runtime.js"; +import { copyTextToClipboard } from "../utils/clipboard.js"; export const AppShell = { mounted() { @@ -179,6 +180,10 @@ export const AppShell = { } }); + this.handleEvent("clipboard", ({ text }) => { + copyTextToClipboard(text || ""); + }); + window.addEventListener("bds:native-menu-action", this.handleNativeMenuAction); window.addEventListener("keydown", this.handleShortcutKeyDown, true); this.el.addEventListener("load", this.handleThumbnailLoad, true); diff --git a/assets/js/utils/clipboard.js b/assets/js/utils/clipboard.js new file mode 100644 index 0000000..c14d933 --- /dev/null +++ b/assets/js/utils/clipboard.js @@ -0,0 +1,27 @@ +// Copies text to the system clipboard, mirroring the old app's behavior: +// navigator.clipboard when available, with a hidden-textarea fallback for +// webviews that lack the async clipboard API. +export const copyTextToClipboard = async (text) => { + if (typeof navigator !== "undefined" && navigator.clipboard && typeof navigator.clipboard.writeText === "function") { + await navigator.clipboard.writeText(text); + return; + } + + if (typeof document === "undefined" || typeof document.createElement !== "function") { + return; + } + + const textArea = document.createElement("textarea"); + textArea.value = text; + textArea.setAttribute("readonly", ""); + textArea.style.position = "absolute"; + textArea.style.left = "-9999px"; + document.body.appendChild(textArea); + textArea.select(); + + if (typeof document.execCommand === "function") { + document.execCommand("copy"); + } + + document.body.removeChild(textArea); +}; diff --git a/lib/bds/cli/commands.ex b/lib/bds/cli/commands.ex index 78e3f48..35d4288 100644 --- a/lib/bds/cli/commands.ex +++ b/lib/bds/cli/commands.ex @@ -555,7 +555,8 @@ defmodule BDS.CLI.Commands do script.entrypoint || "main", args, timeout: Keyword.get(scripting_config, :job_timeout, :infinity), - max_reductions: Keyword.get(scripting_config, :job_max_reductions, :none) + max_reductions: Keyword.get(scripting_config, :job_max_reductions, :none), + on_output: fn text -> IO.puts(text) end ) do {:ok, nil} -> {:ok, "Script finished"} {:ok, result} -> {:ok, "Script finished: #{format_reason(result)}"} diff --git a/lib/bds/desktop/shell_live.ex b/lib/bds/desktop/shell_live.ex index 88fdf63..f748553 100644 --- a/lib/bds/desktop/shell_live.ex +++ b/lib/bds/desktop/shell_live.ex @@ -182,6 +182,7 @@ defmodule BDS.Desktop.ShellLive do |> assign(:shell_overlay, nil) |> assign(:git_run, nil) |> assign(:output_entries, []) + |> assign(:collapsed_task_groups, MapSet.new()) |> assign(:panel_post_links, %{backlinks: [], outlinks: []}) |> assign(:panel_git_entries, []) |> assign(:auto_save_timers, %{}) @@ -226,6 +227,38 @@ defmodule BDS.Desktop.ShellLive do {:noreply, refresh_layout(socket, workbench)} end + # Copy-all for the Output panel: entries are stored newest-first, so flip + # them back to chronological order before joining (old-app behavior). + def handle_event("copy_output", _params, socket) do + text = + socket.assigns.output_entries + |> Enum.reverse() + |> Enum.map_join("\n\n", & &1.message) + + {:noreply, push_event(socket, "clipboard", %{text: text})} + end + + def handle_event("toggle_task_group", %{"group" => group_id}, socket) do + collapsed = socket.assigns[:collapsed_task_groups] || MapSet.new() + + collapsed = + if MapSet.member?(collapsed, group_id), + do: MapSet.delete(collapsed, group_id), + else: MapSet.put(collapsed, group_id) + + {:noreply, assign(socket, :collapsed_task_groups, collapsed)} + end + + def handle_event("cancel_task", %{"id" => task_id}, socket) do + _ = BDS.Tasks.cancel_task(task_id) + + task_status = + BDS.Tasks.status_snapshot() + |> BDS.Desktop.ShellLive.TaskLocalization.localize_task_status(socket.assigns.page_language) + + {:noreply, assign(socket, :task_status, task_status)} + end + def handle_event("open_sidebar_item", %{"route" => _route, "id" => _id} = params, socket) do {:noreply, open_sidebar_item(socket, params, :preview)} end @@ -860,33 +893,66 @@ defmodule BDS.Desktop.ShellLive do end defp import_blogmark(socket, project_id, url, title) do - case Blogmark.receive_deep_link(project_id, url) do - {:ok, %{post: post, toasts: toasts, errors: errors}} -> - socket - |> reload_shell(socket.assigns.workbench) - |> open_sidebar_item( - %{ - "route" => "post", - "id" => post.id, - "title" => post.title, - "subtitle" => post.slug - }, - :pin - ) - |> append_blogmark_toasts(title, toasts) - |> append_blogmark_errors(title, errors) + # Transform scripts run in the sandbox process; collect anything they + # print/log so it lands in the Output panel like in the old app. + {:ok, output_sink} = Agent.start_link(fn -> [] end) - {:error, reason} -> - append_output_entry(socket, title, inspect(reason), url, "error") + sink = fn text -> Agent.update(output_sink, fn lines -> [text | lines] end) end + + try do + case Blogmark.receive_deep_link(project_id, url, on_output: sink) do + {:ok, %{post: post, toasts: toasts, errors: errors}} -> + script_output = Agent.get(output_sink, &Enum.reverse/1) + + socket + |> reload_shell(socket.assigns.workbench) + |> open_sidebar_item( + %{ + "route" => "post", + "id" => post.id, + "title" => post.title, + "subtitle" => post.slug + }, + :pin + ) + |> append_blogmark_script_output(title, script_output) + |> append_blogmark_toasts(title, toasts) + |> append_blogmark_errors(title, errors) + |> open_output_panel_when(script_output != [] or errors != []) + + {:error, reason} -> + append_output_entry(socket, title, inspect(reason), url, "error") + end + after + Agent.stop(output_sink) end end + defp append_blogmark_script_output(socket, title, lines) do + Enum.reduce(lines, socket, fn line, acc -> + append_output_entry(acc, title, line, nil, "info") + end) + end + defp append_blogmark_toasts(socket, title, toasts) do Enum.reduce(toasts, socket, fn message, acc -> append_output_entry(acc, title, message, nil, "info") end) end + # Old-app parity: transform errors or streamed script output open the + # bottom panel on the Output tab so the user actually sees them. + defp open_output_panel_when(socket, true) do + workbench = + socket.assigns.workbench + |> Workbench.set_panel_visible(true) + |> Workbench.set_panel_tab(:output) + + refresh_layout(socket, workbench) + end + + defp open_output_panel_when(socket, false), do: socket + defp append_blogmark_errors(socket, title, errors) do Enum.reduce(errors, socket, fn %{slug: slug, reason: reason}, acc -> append_output_entry(acc, title, inspect(reason), slug, "error") diff --git a/lib/bds/desktop/shell_live/notify.ex b/lib/bds/desktop/shell_live/notify.ex index aef233d..4a78014 100644 --- a/lib/bds/desktop/shell_live/notify.ex +++ b/lib/bds/desktop/shell_live/notify.ex @@ -20,6 +20,17 @@ defmodule BDS.Desktop.ShellLive.Notify do :ok end + @doc """ + Sends an output entry to a specific LiveView process. Needed when the + caller runs in a different process than the shell — e.g. script output + callbacks invoked inside the sandboxed script process. + """ + @spec output_to(pid(), String.t(), String.t(), String.t() | nil, String.t()) :: :ok + def output_to(pid, title, message, detail, level) when is_pid(pid) do + send(pid, {:editor_output, title, message, detail, level}) + :ok + end + @spec alert(String.t(), String.t()) :: :ok def alert(title, message) do send(self(), {:shell_alert, title, message}) diff --git a/lib/bds/desktop/shell_live/panel_renderer.ex b/lib/bds/desktop/shell_live/panel_renderer.ex index 5c4db52..1601d9b 100644 --- a/lib/bds/desktop/shell_live/panel_renderer.ex +++ b/lib/bds/desktop/shell_live/panel_renderer.ex @@ -10,6 +10,7 @@ defmodule BDS.Desktop.ShellLive.PanelRenderer do alias BDS.PostLinks alias BDS.Posts alias BDS.Posts.Post + alias BDS.UI.TaskGrouping use Gettext, backend: BDS.Gettext @doc "Render the active panel tab body." @@ -48,34 +49,122 @@ defmodule BDS.Desktop.ShellLive.PanelRenderer do end defp render_task_entries(assigns) do + entries = TaskGrouping.build_task_entries(Map.get(assigns.task_status, :tasks, [])) + collapsed = Map.get(assigns, :collapsed_task_groups) || MapSet.new() + + assigns = + assigns + |> assign(:task_entries, entries) + |> assign(:collapsed_task_groups, collapsed) + ~H""" - <%= if Enum.empty?(Map.get(@task_status, :tasks, [])) do %> + <%= if Enum.empty?(@task_entries) do %>
<%= dgettext("ui", "Tasks") %> <%= dgettext("ui", "No background tasks running") %>
<% else %>
- <%= for task <- Map.get(@task_status, :tasks, []) do %> -
-
- <%= task.name %> - <%= Map.get(task, :status_label, task.status |> to_string() |> String.capitalize()) %> -
- <%= task.message || task.group_name || "" %> - <%= if is_number(task.progress) do %> -
- - <%= Map.get(task, :progress_label, progress_percent(task.progress)) %> -
- <% end %> -
+ <%= for entry <- @task_entries do %> + <%= case entry do %> + <% {:single, task} -> %> + {render_task_row(assigns, task, false)} + <% {:group, group_id, group_name, tasks} -> %> + {render_task_group(assigns, group_id, group_name, tasks)} + <% end %> <% end %>
<% end %> """ end + defp render_task_group(assigns, group_id, group_name, tasks) do + summary = TaskGrouping.summarize_task_group(tasks) + expanded = not MapSet.member?(assigns.collapsed_task_groups, group_id) + + assigns = + assigns + |> assign(:group_id, group_id) + |> assign(:group_name, group_name) + |> assign(:group_tasks, tasks) + |> assign(:group_expanded, expanded) + |> assign(:group_meta, task_group_meta(summary)) + + ~H""" +
+ + <%= if @group_expanded do %> + <%= for task <- @group_tasks do %> + {render_task_row(assigns, task, true)} + <% end %> + <% end %> +
+ """ + end + + defp render_task_row(assigns, task, is_child) do + assigns = + assigns + |> assign(:task, task) + |> assign(:task_child?, is_child) + + ~H""" +
+
+ <%= @task.name %> + <%= Map.get(@task, :status_label, @task.status |> to_string() |> String.capitalize()) %> +
+ <%= @task.message || @task.group_name || "" %> + <%= if is_number(@task.progress) do %> +
+ + <%= Map.get(@task, :progress_label, progress_percent(@task.progress)) %> +
+ <% end %> + <%= if @task.status == :running do %> +
+ +
+ <% end %> +
+ """ + end + + # "NN% · X Running · Y Pending" — the breakdown only lists non-zero counts, + # like the old app's summarizeTaskGroup rendering. + defp task_group_meta(summary) do + parts = + [] + |> maybe_append_breakdown(summary.running, dgettext("ui", "Running")) + |> maybe_append_breakdown(summary.pending, dgettext("ui", "Pending")) + + suffix = if parts == [], do: "", else: " · " <> Enum.join(parts, " · ") + progress_percent(summary.progress) <> suffix + end + + defp maybe_append_breakdown(parts, count, _label) when count <= 0, do: parts + + defp maybe_append_breakdown(parts, count, label), + do: parts ++ ["#{count} #{label}"] + defp render_output_entries(assigns) do ~H""" <%= if Enum.empty?(@output_entries) do %> @@ -84,6 +173,16 @@ defmodule BDS.Desktop.ShellLive.PanelRenderer do <%= dgettext("ui", "No shell output yet") %> <% else %> +
+ +
<%= for entry <- @output_entries do %>
draft = current_draft(socket.assigns, script) + # The sandbox runs in its own process, so streamed script output is + # routed back to this LiveView explicitly. + live_view = self() + title = dgettext("ui", "Scripts") + case Scripting.execute_project_script( script.project_id, draft["content"] || "", draft["entrypoint"] || "main", - [] + [], + on_output: fn text -> Notify.output_to(live_view, title, text, nil, "info") end ) do {:ok, result} -> notify_output(socket, dgettext("ui", "Scripts"), inspect(result)) diff --git a/lib/bds/scripting/api_docs.ex b/lib/bds/scripting/api_docs.ex index 2f19e10..6d1204d 100644 --- a/lib/bds/scripting/api_docs.ex +++ b/lib/bds/scripting/api_docs.ex @@ -50,6 +50,14 @@ defmodule BDS.Scripting.ApiDocs do params: [], returns: "table | nil" }, + %{ + module: "app", + name: "log", + description: + "Append a line to the script output stream. Multiple arguments are joined with spaces. Output appears in the desktop app's Output panel (and on stdout in the CLI); Lua's global `print` is routed the same way.", + params: [%{name: "text", type: "string", required: true}], + returns: "boolean" + }, %{ module: "app", name: "notify_renderer_ready", diff --git a/lib/bds/scripting/capabilities.ex b/lib/bds/scripting/capabilities.ex index 8965f12..58eaa49 100644 --- a/lib/bds/scripting/capabilities.ex +++ b/lib/bds/scripting/capabilities.ex @@ -49,6 +49,7 @@ defmodule BDS.Scripting.Capabilities do get_system_language: zero_or_one_arg(fn _args -> I18n.current_ui_locale() end), get_default_project_path: zero_or_one_arg(fn _args -> project_path(project_id) end), get_title_bar_metrics: zero_or_one_arg(fn _args -> title_bar_metrics(opts) end), + log: BDS.Scripting.Lua.output_function(opts, [true]), notify_renderer_ready: zero_or_one_arg(fn _args -> notify_renderer_ready(opts) end), open_folder: one_arg(fn folder_path -> open_folder(folder_path, opts) end), read_project_metadata: one_arg(fn folder_path -> read_project_metadata(folder_path) end), diff --git a/lib/bds/scripting/lua.ex b/lib/bds/scripting/lua.ex index 76c240a..a61cae7 100644 --- a/lib/bds/scripting/lua.ex +++ b/lib/bds/scripting/lua.ex @@ -6,16 +6,20 @@ defmodule BDS.Scripting.Lua do and opt-in. """ + require Logger + @type source :: String.t() @type entrypoint :: String.t() @type args :: [term()] @type progress_event :: map() @type progress_callback :: (progress_event() -> any()) + @type output_callback :: (String.t() -> any()) @type execution_option :: {:timeout, non_neg_integer() | :infinity} | {:max_reductions, pos_integer() | :none} | {:spawn_opts, [term()]} | {:on_progress, progress_callback()} + | {:on_output, output_callback()} | {:capabilities, map()} @callback validate(source()) :: :ok | {:error, term()} @@ -48,12 +52,65 @@ defmodule BDS.Scripting.Lua do end end + @doc """ + Returns the sink script output (`print`, `bds.app.log`) is routed to: the + `:on_output` callback when given, otherwise a Logger-based default so script + output never leaks onto the console (where it would corrupt the TUI). + """ + @spec output_sink(keyword()) :: output_callback() + def output_sink(opts) when is_list(opts) do + case Keyword.get(opts, :on_output) do + callback when is_function(callback, 1) -> + callback + + _other -> + fn text -> Logger.debug("script output: #{text}") end + end + end + + @doc """ + Builds the Lua-callable function shared by the global `print` override and + the `bds.app.log` capability: joins all arguments with spaces and forwards + the line to the output sink. + """ + @spec output_function(keyword(), [term()]) :: (list(), lua_state() -> {list(), lua_state()}) + def output_function(opts, return_values \\ []) when is_list(opts) and is_list(return_values) do + sink = output_sink(opts) + + fn args, current_state -> + line = + args + |> :luerl.decode_list(current_state) + |> Enum.map_join(" ", &format_lua_value/1) + + sink.(line) + :luerl.encode_list(return_values, current_state) + end + end + + @doc "Formats a decoded Lua value the way Lua's `tostring` would present it." + @spec format_lua_value(term()) :: String.t() + def format_lua_value(nil), do: "nil" + def format_lua_value(true), do: "true" + def format_lua_value(false), do: "false" + def format_lua_value(value) when is_binary(value), do: value + + def format_lua_value(value) when is_float(value) do + if Float.round(value, 0) == value, + do: "#{trunc(value)}.0", + else: to_string(value) + end + + def format_lua_value(value) when is_integer(value), do: Integer.to_string(value) + def format_lua_value(value), do: inspect(value) + defp initial_state(opts) do state = :luerl_sandbox.init() capabilities = Keyword.get(opts, :capabilities, %{}) with {:ok, state} <- :luerl.set_table_keys_dec(["bds"], %{}, state), {:ok, state} <- install_progress_callback(state, Keyword.get(opts, :on_progress)), + {:ok, state} <- install_print_override(state, opts), {:ok, state} <- install_capabilities(state, capabilities) do {:ok, state} end @@ -85,6 +142,15 @@ defmodule BDS.Scripting.Lua do defp install_progress_callback(_state, callback), do: {:error, {:invalid_progress_callback, callback}} + # Replaces the built-in `print` (which would write straight to the BEAM + # console) with a function routed to the output sink. + defp install_print_override(state, opts) do + case :luerl.set_table_keys_dec(["print"], output_function(opts), state) do + {:ok, next_state} -> {:ok, next_state} + error -> {:error, {:print_override_install_failed, error}} + end + end + defp install_capabilities(state, capabilities) when capabilities in [%{}, []], do: {:ok, state} defp install_capabilities(state, capabilities) when is_map(capabilities) do diff --git a/lib/bds/ui/task_grouping.ex b/lib/bds/ui/task_grouping.ex new file mode 100644 index 0000000..fc4e5aa --- /dev/null +++ b/lib/bds/ui/task_grouping.ex @@ -0,0 +1,91 @@ +defmodule BDS.UI.TaskGrouping do + @moduledoc """ + Groups task snapshot entries for the bottom panel's Tasks tab, mirroring the + old app's `taskGrouping.ts`: tasks sharing a `group_id` collapse into one + group entry (ordered by first appearance), everything else stays a single + entry. Groups summarize to per-status counts plus an aggregate progress in + the 0.0..1.0 range. + """ + + @type task :: map() + @type entry :: {:single, task()} | {:group, String.t(), String.t(), [task()]} + @type summary :: %{ + total: non_neg_integer(), + running: non_neg_integer(), + pending: non_neg_integer(), + completed: non_neg_integer(), + failed: non_neg_integer(), + cancelled: non_neg_integer(), + progress: float() + } + + @spec build_task_entries([task()]) :: [entry()] + def build_task_entries(tasks) when is_list(tasks) do + {singles, groups} = + tasks + |> Enum.with_index() + |> Enum.reduce({[], %{}}, fn {task, index}, {singles, groups} -> + case Map.get(task, :group_id) do + nil -> + {[{index, task} | singles], groups} + + group_id -> + groups = + Map.update(groups, group_id, {index, Map.get(task, :group_name) || group_id, [task]}, fn {first_index, name, grouped} -> + {first_index, name, [task | grouped]} + end) + + {singles, groups} + end + end) + + single_entries = Enum.map(singles, fn {index, task} -> {index, {:single, task}} end) + + group_entries = + Enum.map(groups, fn {group_id, {index, name, grouped}} -> + {index, {:group, group_id, name, Enum.reverse(grouped)}} + end) + + (single_entries ++ group_entries) + |> Enum.sort_by(fn {index, _entry} -> index end) + |> Enum.map(fn {_index, entry} -> entry end) + end + + @spec summarize_task_group([task()]) :: summary() + def summarize_task_group(tasks) when is_list(tasks) do + base = %{total: 0, running: 0, pending: 0, completed: 0, failed: 0, cancelled: 0, progress: 0.0} + + summary = + Enum.reduce(tasks, base, fn task, acc -> + status = Map.get(task, :status) + + acc + |> Map.update!(:total, &(&1 + 1)) + |> count_status(status) + |> Map.update!(:progress, &(&1 + progress_contribution(task))) + end) + + if summary.total > 0 do + %{summary | progress: summary.progress / summary.total} + else + summary + end + end + + defp count_status(acc, status) when status in [:running, :pending, :completed, :failed, :cancelled], + do: Map.update!(acc, status, &(&1 + 1)) + + defp count_status(acc, _status), do: acc + + # Finished tasks count as fully done no matter their outcome, pending tasks + # contribute nothing yet (old-app getProgressContribution). + defp progress_contribution(%{status: status}) when status in [:completed, :failed, :cancelled], + do: 1.0 + + defp progress_contribution(%{status: :pending}), do: 0.0 + + defp progress_contribution(%{progress: progress}) when is_number(progress), + do: progress |> max(0.0) |> min(1.0) + + defp progress_contribution(_task), do: 0.0 +end diff --git a/priv/gettext/de/LC_MESSAGES/ui.po b/priv/gettext/de/LC_MESSAGES/ui.po index 14dd608..ff432b5 100644 --- a/priv/gettext/de/LC_MESSAGES/ui.po +++ b/priv/gettext/de/LC_MESSAGES/ui.po @@ -86,7 +86,7 @@ msgstr "KI-Einstellungen" #: lib/bds/tui.ex:1175 #: lib/bds/tui.ex:1178 #: lib/bds/tui.ex:1186 -#: lib/bds/tui.ex:2035 +#: lib/bds/tui.ex:2037 #, elixir-autogen, elixir-format msgid "AI Suggestions" msgstr "KI-Vorschlaege" @@ -343,7 +343,7 @@ msgstr "Autor" msgid "Auto" msgstr "Automatisch" -#: lib/bds/desktop/shell_live.ex:445 +#: lib/bds/desktop/shell_live.ex:478 #: lib/bds/desktop/shell_live/chat_editor.ex:234 #: lib/bds/desktop/shell_live/media_editor.ex:171 #: lib/bds/desktop/shell_live/media_editor.ex:364 @@ -368,7 +368,7 @@ msgstr "Automatisierungshilfen" msgid "Available languages" msgstr "Verfuegbare Sprachen" -#: lib/bds/desktop/shell_live/panel_renderer.ex:124 +#: lib/bds/desktop/shell_live/panel_renderer.ex:223 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:313 #, elixir-autogen, elixir-format msgid "Backlinks" @@ -441,6 +441,7 @@ msgstr "Die Bookmarklet-Kopierfunktion ist über die Desktop-Laufzeit und die ö #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:183 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:208 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:225 +#: lib/bds/desktop/shell_live/panel_renderer.ex:143 #, elixir-autogen, elixir-format msgid "Cancel" msgstr "Abbrechen" @@ -494,7 +495,7 @@ msgstr "Kategorie-Standards, Render-Flags und Template-Zuordnung" msgid "Category name is required" msgstr "Kategoriename ist erforderlich" -#: lib/bds/desktop/shell_live.ex:791 +#: lib/bds/desktop/shell_live.ex:824 #: lib/bds/desktop/shell_live/chat_editor.ex:87 #: lib/bds/desktop/shell_live/chat_editor.ex:233 #: lib/bds/desktop/shell_live/chat_editor.ex:323 @@ -575,7 +576,7 @@ msgid "Collapse unchanged diff hunks" msgstr "Unveränderte Diff-Blöcke einklappen" #: lib/bds/desktop/shell_live/overlay_manager.ex:423 -#: lib/bds/tui.ex:2131 +#: lib/bds/tui.ex:2133 #, elixir-autogen, elixir-format msgid "Command completed" msgstr "Befehl abgeschlossen" @@ -593,7 +594,7 @@ msgstr "Bestaetigen" #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:375 #: lib/bds/desktop/shell_live/script_editor_html/script_editor.html.heex:34 #: lib/bds/desktop/shell_live/template_editor_html/template_editor.html.heex:32 -#: lib/bds/tui.ex:1468 +#: lib/bds/tui.ex:1467 #: lib/bds/ui/settings_form.ex:137 #: lib/bds/ui/sidebar.ex:801 #, elixir-autogen, elixir-format @@ -606,6 +607,7 @@ msgid "Content Categories" msgstr "Inhaltskategorien" #: lib/bds/desktop/menu_bar.ex:226 +#: lib/bds/desktop/shell_live/panel_renderer.ex:183 #, elixir-autogen, elixir-format msgid "Copy" msgstr "Kopieren" @@ -1040,7 +1042,7 @@ msgid "Filename" msgstr "Dateiname" #: lib/bds/desktop/menu_bar.ex:254 -#: lib/bds/tui.ex:2095 +#: lib/bds/tui.ex:2097 #, elixir-autogen, elixir-format msgid "Fill Missing Translations" msgstr "Fehlende Übersetzungen ergänzen" @@ -1051,7 +1053,7 @@ msgid "Find" msgstr "Suchen" #: lib/bds/desktop/menu_bar.ex:255 -#: lib/bds/tui.ex:2098 +#: lib/bds/tui.ex:2100 #, elixir-autogen, elixir-format msgid "Find Duplicate Posts" msgstr "Doppelte Beiträge finden" @@ -1078,14 +1080,14 @@ msgid "Gallery" msgstr "Galerie" #: lib/bds/desktop/menu_bar.ex:256 -#: lib/bds/tui.ex:2079 +#: lib/bds/tui.ex:2081 #, elixir-autogen, elixir-format msgid "Generate Site" msgstr "Website generieren" -#: lib/bds/desktop/shell_live.ex:792 +#: lib/bds/desktop/shell_live.ex:825 #: lib/bds/desktop/shell_live/socket_state.ex:109 -#: lib/bds/tui.ex:1944 +#: lib/bds/tui.ex:1946 #: lib/bds/ui/sidebar.ex:826 #, elixir-autogen, elixir-format msgid "Git" @@ -1098,8 +1100,8 @@ msgid "Git Diff" msgstr "Git-Diff" #: lib/bds/desktop/shell_data.ex:228 -#: lib/bds/desktop/shell_live.ex:788 -#: lib/bds/desktop/shell_live/panel_renderer.ex:171 +#: lib/bds/desktop/shell_live.ex:821 +#: lib/bds/desktop/shell_live/panel_renderer.ex:270 #, elixir-autogen, elixir-format msgid "Git Log" msgstr "Git-Protokoll" @@ -1222,9 +1224,9 @@ msgstr "Importdefinitionen" msgid "Import failed: %{error}" msgstr "Import fehlgeschlagen: %{error}" -#: lib/bds/desktop/shell_live.ex:608 -#: lib/bds/desktop/shell_live.ex:904 -#: lib/bds/desktop/shell_live.ex:910 +#: lib/bds/desktop/shell_live.ex:641 +#: lib/bds/desktop/shell_live.ex:970 +#: lib/bds/desktop/shell_live.ex:976 #: lib/bds/desktop/shell_live/sidebar_create.ex:47 #, elixir-autogen, elixir-format msgid "Import media" @@ -1325,7 +1327,7 @@ msgstr "Verknüpfte Medien" msgid "Linked Posts" msgstr "Verknüpfte Beiträge" -#: lib/bds/desktop/shell_live/panel_renderer.ex:142 +#: lib/bds/desktop/shell_live/panel_renderer.ex:241 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:325 #, elixir-autogen, elixir-format msgid "Links To" @@ -1404,9 +1406,9 @@ msgstr "Maximale Beiträge pro Seite" #: lib/bds/desktop/shell_live/misc_editor.ex:762 #: lib/bds/desktop/shell_live/sidebar_components.ex:654 #: lib/bds/desktop/shell_live/sidebar_delete.ex:175 -#: lib/bds/tui.ex:1939 -#: lib/bds/tui.ex:2160 -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:1941 +#: lib/bds/tui.ex:2162 +#: lib/bds/tui.ex:2165 #: lib/bds/ui/registry.ex:30 #: lib/bds/ui/registry.ex:100 #: lib/bds/ui/sidebar.ex:578 @@ -1435,7 +1437,7 @@ msgid "Merge" msgstr "Zusammenführen" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:78 -#: lib/bds/tui.ex:1926 +#: lib/bds/tui.ex:1928 #: lib/bds/ui/sidebar.ex:787 #, elixir-autogen, elixir-format msgid "Merge Tags" @@ -1453,8 +1455,8 @@ msgstr "Metadaten" #: lib/bds/tui.ex:285 #: lib/bds/tui.ex:291 #: lib/bds/tui.ex:302 -#: lib/bds/tui.ex:1663 -#: lib/bds/tui.ex:2076 +#: lib/bds/tui.ex:1665 +#: lib/bds/tui.ex:2078 #: lib/bds/ui/registry.ex:111 #, elixir-autogen, elixir-format msgid "Metadata Diff" @@ -1532,12 +1534,12 @@ msgstr "Neue Vorlage" msgid "No Template" msgstr "Kein Template" -#: lib/bds/desktop/shell_live/panel_renderer.ex:55 +#: lib/bds/desktop/shell_live/panel_renderer.ex:64 #, elixir-autogen, elixir-format msgid "No background tasks running" msgstr "Keine Hintergrundaufgaben aktiv" -#: lib/bds/desktop/shell_live/panel_renderer.ex:179 +#: lib/bds/desktop/shell_live/panel_renderer.ex:278 #, elixir-autogen, elixir-format msgid "No commit subject" msgstr "Kein Commit-Betreff" @@ -1547,7 +1549,7 @@ msgstr "Kein Commit-Betreff" msgid "No folder selected" msgstr "Kein Ordner ausgewählt" -#: lib/bds/desktop/shell_live/panel_renderer.ex:172 +#: lib/bds/desktop/shell_live/panel_renderer.ex:271 #, elixir-autogen, elixir-format msgid "No git history yet" msgstr "Noch keine Git-Historie" @@ -1607,7 +1609,7 @@ msgstr "Keine verwaisten Dateien ausgewählt" msgid "No pages yet" msgstr "Noch keine Seiten" -#: lib/bds/desktop/shell_live/panel_renderer.ex:119 +#: lib/bds/desktop/shell_live/panel_renderer.ex:218 #, elixir-autogen, elixir-format msgid "No post links yet" msgstr "Noch keine Beitragsverweise" @@ -1632,7 +1634,7 @@ msgstr "Keine Reparaturaktion verfügbar" msgid "No settings match the current search" msgstr "Keine Einstellungen entsprechen der aktuellen Suche" -#: lib/bds/desktop/shell_live/panel_renderer.ex:84 +#: lib/bds/desktop/shell_live/panel_renderer.ex:173 #, elixir-autogen, elixir-format msgid "No shell output yet" msgstr "Noch keine Shell-Ausgabe" @@ -1801,7 +1803,7 @@ msgid "Open Settings" msgstr "Einstellungen öffnen" #: lib/bds/desktop/menu_bar.ex:217 -#: lib/bds/tui.ex:2100 +#: lib/bds/tui.ex:2102 #, elixir-autogen, elixir-format msgid "Open in Browser" msgstr "Im Browser öffnen" @@ -1832,8 +1834,8 @@ msgstr "Sonstige" msgid "Other (%{count})" msgstr "Andere (%{count})" -#: lib/bds/desktop/shell_live.ex:787 -#: lib/bds/desktop/shell_live/panel_renderer.ex:83 +#: lib/bds/desktop/shell_live.ex:820 +#: lib/bds/desktop/shell_live/panel_renderer.ex:172 #, elixir-autogen, elixir-format msgid "Output" msgstr "Ausgabe" @@ -1915,7 +1917,7 @@ msgid "Post" msgstr "Beitrag" #: lib/bds/desktop/shell_data.ex:231 -#: lib/bds/desktop/shell_live/panel_renderer.ex:118 +#: lib/bds/desktop/shell_live/panel_renderer.ex:217 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:310 #, elixir-autogen, elixir-format msgid "Post Links" @@ -1950,8 +1952,8 @@ msgstr "Beitrag gespeichert" #: lib/bds/desktop/menu_bar.ex:233 #: lib/bds/desktop/shell_live/misc_editor.ex:664 #: lib/bds/desktop/shell_live/misc_editor.ex:761 -#: lib/bds/tui.ex:1938 -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1955 #: lib/bds/ui/registry.ex:14 #: lib/bds/ui/sidebar.ex:271 #, elixir-autogen, elixir-format @@ -2081,14 +2083,14 @@ msgstr "Bereit zum Import:" #: lib/bds/desktop/menu_bar.ex:248 #: lib/bds/tui.ex:1016 -#: lib/bds/tui.ex:2080 +#: lib/bds/tui.ex:2082 #, elixir-autogen, elixir-format msgid "Rebuild Database" msgstr "Datenbank neu aufbauen" #: lib/bds/desktop/menu_bar.ex:250 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:381 -#: lib/bds/tui.ex:2084 +#: lib/bds/tui.ex:2086 #, elixir-autogen, elixir-format msgid "Rebuild Embedding Index" msgstr "Embedding-Index neu aufbauen" @@ -2146,7 +2148,7 @@ msgid "Refresh Translation" msgstr "Übersetzung aktualisieren" #: lib/bds/desktop/menu_bar.ex:252 -#: lib/bds/tui.ex:2087 +#: lib/bds/tui.ex:2089 #, elixir-autogen, elixir-format msgid "Regenerate Calendar" msgstr "Kalender neu erzeugen" @@ -2157,7 +2159,7 @@ msgid "Regenerate Missing Thumbnails" msgstr "Fehlende Vorschaubilder neu erzeugen" #: lib/bds/desktop/menu_bar.ex:249 -#: lib/bds/tui.ex:2081 +#: lib/bds/tui.ex:2083 #, elixir-autogen, elixir-format msgid "Reindex Text" msgstr "Text neu indizieren" @@ -2342,10 +2344,11 @@ msgstr "Scripting-Funktionen werden in der Neufassung auf Anwendungsebene konfig #: lib/bds/desktop/shell_live/script_editor.ex:175 #: lib/bds/desktop/shell_live/script_editor.ex:191 #: lib/bds/desktop/shell_live/script_editor.ex:194 -#: lib/bds/desktop/shell_live/script_editor.ex:216 -#: lib/bds/desktop/shell_live/script_editor.ex:219 -#: lib/bds/desktop/shell_live/script_editor.ex:234 -#: lib/bds/tui.ex:1941 +#: lib/bds/desktop/shell_live/script_editor.ex:212 +#: lib/bds/desktop/shell_live/script_editor.ex:222 +#: lib/bds/desktop/shell_live/script_editor.ex:225 +#: lib/bds/desktop/shell_live/script_editor.ex:240 +#: lib/bds/tui.ex:1943 #: lib/bds/ui/registry.ex:38 #: lib/bds/ui/sidebar.ex:63 #: lib/bds/ui/sidebar.ex:115 @@ -2452,7 +2455,7 @@ msgstr "Semantische Ähnlichkeit" #: lib/bds/desktop/shell_live/settings_editor/project_settings.ex:60 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:11 -#: lib/bds/tui.ex:1943 +#: lib/bds/tui.ex:1945 #: lib/bds/ui/registry.ex:86 #: lib/bds/ui/registry.ex:101 #: lib/bds/ui/sidebar.ex:795 @@ -2478,7 +2481,7 @@ msgstr "Website" #: lib/bds/desktop/shell_live/misc_editor.ex:412 #: lib/bds/tui.ex:318 #: lib/bds/tui.ex:320 -#: lib/bds/tui.ex:1668 +#: lib/bds/tui.ex:1670 #: lib/bds/ui/registry.ex:125 #, elixir-autogen, elixir-format msgid "Site Validation" @@ -2575,7 +2578,7 @@ msgid "System Prompt" msgstr "System-Prompt" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:16 -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #: lib/bds/ui/sidebar.ex:785 #, elixir-autogen, elixir-format msgid "Tag Cloud" @@ -2602,8 +2605,8 @@ msgstr "Schlagwortname" #: lib/bds/desktop/shell_live/tags_editor.ex:217 #: lib/bds/desktop/shell_live/tags_editor.ex:248 #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:11 -#: lib/bds/tui.ex:1920 -#: lib/bds/tui.ex:1942 +#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1944 #: lib/bds/ui/registry.ex:54 #: lib/bds/ui/registry.ex:103 #: lib/bds/ui/sidebar.ex:289 @@ -2613,8 +2616,8 @@ msgstr "Schlagwortname" msgid "Tags" msgstr "Tags" -#: lib/bds/desktop/shell_live.ex:786 -#: lib/bds/desktop/shell_live/panel_renderer.ex:54 +#: lib/bds/desktop/shell_live.ex:819 +#: lib/bds/desktop/shell_live/panel_renderer.ex:63 #: lib/bds/tui.ex:1220 #, elixir-autogen, elixir-format msgid "Tasks" @@ -2661,7 +2664,7 @@ msgstr "Template-Syntax ist gültig" #: lib/bds/desktop/shell_live/template_editor.ex:171 #: lib/bds/desktop/shell_live/template_editor.ex:176 #: lib/bds/desktop/shell_live/template_editor.ex:191 -#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1942 #: lib/bds/ui/registry.ex:46 #: lib/bds/ui/sidebar.ex:71 #: lib/bds/ui/sidebar.ex:122 @@ -2670,7 +2673,7 @@ msgstr "Template-Syntax ist gültig" msgid "Templates" msgstr "Vorlagen" -#: lib/bds/desktop/shell_live/panel_renderer.ex:194 +#: lib/bds/desktop/shell_live/panel_renderer.ex:293 #, elixir-autogen, elixir-format msgid "The shared lower panel is available for tasks, output, git details, and editor-specific diagnostics." msgstr "Das gemeinsame untere Panel steht für Aufgaben, Ausgabe, Git-Details und editorbezogene Diagnosen bereit." @@ -2885,7 +2888,7 @@ msgid "Updated URLs" msgstr "Aktualisierte URLs" #: lib/bds/desktop/menu_bar.ex:259 -#: lib/bds/tui.ex:2099 +#: lib/bds/tui.ex:2101 #, elixir-autogen, elixir-format msgid "Upload Site" msgstr "Website hochladen" @@ -2913,13 +2916,13 @@ msgid "Validate" msgstr "Validieren" #: lib/bds/desktop/menu_bar.ex:258 -#: lib/bds/tui.ex:2077 +#: lib/bds/tui.ex:2079 #, elixir-autogen, elixir-format msgid "Validate Site" msgstr "Website validieren" #: lib/bds/desktop/menu_bar.ex:253 -#: lib/bds/tui.ex:2090 +#: lib/bds/tui.ex:2092 #, elixir-autogen, elixir-format msgid "Validate Translations" msgstr "Übersetzungen validieren" @@ -3301,12 +3304,12 @@ msgstr "Willkommen beim KI-Assistenten" msgid "Comparing database and filesystem metadata" msgstr "Vergleicht Datenbank- und Dateisystem-Metadaten" -#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:717 #, elixir-autogen, elixir-format msgid "Added %{count} images to post" msgstr "%{count} Bilder zum Beitrag hinzugefügt" -#: lib/bds/desktop/shell_live.ex:652 +#: lib/bds/desktop/shell_live.ex:685 #, elixir-autogen, elixir-format msgid "Added %{title}" msgstr "%{title} hinzugefügt" @@ -3327,18 +3330,18 @@ msgstr "Endbenutzer-Anleitung für redaktionelle Arbeitsabläufe, Medien, Vorlag msgid "Image Import Concurrency" msgstr "Gleichzeitige Bildimporte" -#: lib/bds/desktop/shell_live.ex:444 -#: lib/bds/desktop/shell_live.ex:457 -#: lib/bds/desktop/shell_live.ex:651 -#: lib/bds/desktop/shell_live.ex:683 -#: lib/bds/desktop/shell_live.ex:694 -#: lib/bds/desktop/shell_live.ex:705 +#: lib/bds/desktop/shell_live.ex:477 +#: lib/bds/desktop/shell_live.ex:490 +#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:716 +#: lib/bds/desktop/shell_live.ex:727 +#: lib/bds/desktop/shell_live.ex:738 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:420 #, elixir-autogen, elixir-format msgid "Add Gallery Images" msgstr "Galerie-Bilder hinzufügen" -#: lib/bds/desktop/shell_live.ex:706 +#: lib/bds/desktop/shell_live.ex:739 #, elixir-autogen, elixir-format msgid "Failed to process %{path}: %{reason}" msgstr "%{path} konnte nicht verarbeitet werden: %{reason}" @@ -3400,7 +3403,7 @@ msgid "Commit" msgstr "Commit" #: lib/bds/desktop/shell_live/sidebar_components.ex:555 -#: lib/bds/tui.ex:1490 +#: lib/bds/tui.ex:1492 #, elixir-autogen, elixir-format msgid "Commit message" msgstr "Commit-Nachricht" @@ -3536,12 +3539,12 @@ msgstr "umbenannt" msgid "untracked" msgstr "nicht verfolgt" -#: lib/bds/desktop/shell_live.ex:812 +#: lib/bds/desktop/shell_live.ex:845 #, elixir-autogen, elixir-format msgid "Blogmark" msgstr "Blogmark" -#: lib/bds/desktop/shell_live.ex:855 +#: lib/bds/desktop/shell_live.ex:888 #, elixir-autogen, elixir-format msgid "Open a project before importing a blogmark." msgstr "Öffnen Sie ein Projekt, bevor Sie ein Blogmark importieren." @@ -3582,7 +3585,7 @@ msgstr "Tag löschen" msgid "Failed to copy bookmarklet to clipboard" msgstr "Bookmarklet konnte nicht in die Zwischenablage kopiert werden" -#: lib/bds/desktop/shell_live.ex:824 +#: lib/bds/desktop/shell_live.ex:857 #, elixir-autogen, elixir-format msgid "The project this blogmark targets does not exist here." msgstr "Das Projekt, auf das dieses Blogmark verweist, existiert hier nicht." @@ -3593,7 +3596,7 @@ msgid "Suggested tags" msgstr "Vorgeschlagene Tags" #: lib/bds/desktop/menu_bar.ex:257 -#: lib/bds/tui.ex:2078 +#: lib/bds/tui.ex:2080 #, elixir-autogen, elixir-format msgid "Force Render Site" msgstr "Website vollständig neu generieren" @@ -3690,12 +3693,12 @@ msgstr "OK" msgid "The endpoint returned no models. You can still type a model name manually." msgstr "Der Endpunkt hat keine Modelle zurückgegeben. Sie können einen Modellnamen weiterhin manuell eingeben." -#: lib/bds/tui.ex:2036 +#: lib/bds/tui.ex:2038 #, elixir-autogen, elixir-format msgid "AI is unavailable in airplane mode without a local endpoint." msgstr "KI ist im Flugmodus ohne lokalen Endpunkt nicht verfügbar." -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:2165 #, elixir-autogen, elixir-format msgid "Could not load this file." msgstr "Diese Datei konnte nicht geladen werden." @@ -3710,12 +3713,12 @@ msgstr "Die Bearbeitung dieses Eintrags ist in der Terminal-Oberfläche noch nic msgid "No suggestions returned." msgstr "Keine Vorschläge erhalten." -#: lib/bds/tui.ex:2160 +#: lib/bds/tui.ex:2162 #, elixir-autogen, elixir-format msgid "Only images can be previewed." msgstr "Nur Bilder können in der Vorschau angezeigt werden." -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1955 #, elixir-autogen, elixir-format msgid "Post not found." msgstr "Beitrag nicht gefunden." @@ -3725,18 +3728,18 @@ msgstr "Beitrag nicht gefunden." msgid "Press enter to preview %{name}." msgstr "Drücken Sie Enter, um %{name} in der Vorschau anzuzeigen." -#: lib/bds/tui.ex:2006 +#: lib/bds/tui.ex:2008 #, elixir-autogen, elixir-format msgid "Published." msgstr "Veröffentlicht." -#: lib/bds/tui.ex:2022 +#: lib/bds/tui.ex:2024 #, elixir-autogen, elixir-format msgid "Save before switching languages." msgstr "Speichern Sie vor dem Sprachwechsel." #: lib/bds/tui.ex:540 -#: lib/bds/tui.ex:2007 +#: lib/bds/tui.ex:2009 #, elixir-autogen, elixir-format msgid "Saved." msgstr "Gespeichert." @@ -3761,18 +3764,18 @@ msgstr "Titel (Strg+T zum Bearbeiten)" msgid "Title (editing — enter to confirm)" msgstr "Titel (Bearbeitung — Enter zum Bestätigen)" -#: lib/bds/tui.ex:1492 +#: lib/bds/tui.ex:1494 #, elixir-autogen, elixir-format msgid "Working…" msgstr "Wird bearbeitet…" -#: lib/bds/tui.ex:1514 +#: lib/bds/tui.ex:1516 #, elixir-autogen, elixir-format msgid "esc to close" msgstr "Esc zum Schließen" #: lib/bds/desktop/menu_bar.ex:83 -#: lib/bds/desktop/shell_live.ex:1110 +#: lib/bds/desktop/shell_live.ex:1176 #, elixir-autogen, elixir-format msgid "Connect to Server" msgstr "Mit Server verbinden" @@ -3793,7 +3796,7 @@ msgid "Disconnect from Server" msgstr "Verbindung zum Server trennen" #: lib/bds/desktop/menu_bar.ex:72 -#: lib/bds/desktop/shell_live.ex:1097 +#: lib/bds/desktop/shell_live.ex:1163 #, elixir-autogen, elixir-format msgid "Server address (user@host or user@host:port), public-key auth:" msgstr "Serveradresse (user@host oder user@host:port), Public-Key-Authentifizierung:" @@ -3803,12 +3806,12 @@ msgstr "Serveradresse (user@host oder user@host:port), Public-Key-Authentifizier msgid "Use the form user@host or user@host:port." msgstr "Verwenden Sie das Format user@host oder user@host:port." -#: lib/bds/tui.ex:1457 +#: lib/bds/tui.ex:1456 #, elixir-autogen, elixir-format msgid "Preview (ctrl+e to edit)" msgstr "Vorschau (ctrl+e zum Bearbeiten)" -#: lib/bds/tui.ex:1771 +#: lib/bds/tui.ex:1773 #, elixir-autogen, elixir-format msgid "ctrl+s save · ctrl+p publish · ctrl+e preview · ctrl+t title · ctrl+l language · ctrl+g AI · esc back" msgstr "Strg+S Speichern · Strg+P Veröffentlichen · Strg+E Vorschau · Strg+T Titel · Strg+L Sprache · Strg+G KI · Esc Zurück" @@ -3818,7 +3821,7 @@ msgstr "Strg+S Speichern · Strg+P Veröffentlichen · Strg+E Vorschau · Strg+T msgid "All tasks finished." msgstr "Alle Aufgaben abgeschlossen." -#: lib/bds/tui.ex:1540 +#: lib/bds/tui.ex:1542 #, elixir-autogen, elixir-format msgid "Commands — esc to close" msgstr "Befehle — Esc zum Schließen" @@ -3828,27 +3831,27 @@ msgstr "Befehle — Esc zum Schließen" msgid "Unknown command." msgstr "Unbekannter Befehl." -#: lib/bds/tui.ex:1530 +#: lib/bds/tui.ex:1532 #, elixir-autogen, elixir-format msgid "[report/apply in GUI]" msgstr "[Bericht/Anwenden in der GUI]" -#: lib/bds/tui.ex:1679 +#: lib/bds/tui.ex:1681 #, elixir-autogen, elixir-format msgid "%{diffs} differences · %{orphans} orphan files" msgstr "%{diffs} Unterschiede · %{orphans} verwaiste Dateien" -#: lib/bds/tui.ex:1711 +#: lib/bds/tui.ex:1713 #, elixir-autogen, elixir-format msgid "Expected %{expected} · Existing %{existing}" msgstr "Erwartet %{expected} · Vorhanden %{existing}" -#: lib/bds/tui.ex:1728 +#: lib/bds/tui.ex:1730 #, elixir-autogen, elixir-format msgid "Extra files (will be removed):" msgstr "Überzählige Dateien (werden entfernt):" -#: lib/bds/tui.ex:1724 +#: lib/bds/tui.ex:1726 #, elixir-autogen, elixir-format msgid "Missing pages (will be rendered):" msgstr "Fehlende Seiten (werden gerendert):" @@ -3863,27 +3866,27 @@ msgstr "Nichts anzuwenden." msgid "Nothing to repair." msgstr "Nichts zu reparieren." -#: lib/bds/tui.ex:1702 +#: lib/bds/tui.ex:1704 #, elixir-autogen, elixir-format msgid "Orphan files (not in database):" msgstr "Verwaiste Dateien (nicht in der Datenbank):" -#: lib/bds/tui.ex:1718 +#: lib/bds/tui.ex:1720 #, elixir-autogen, elixir-format msgid "Sitemap changed." msgstr "Sitemap geändert." -#: lib/bds/tui.ex:1732 +#: lib/bds/tui.ex:1734 #, elixir-autogen, elixir-format msgid "Updated posts (will be re-rendered):" msgstr "Aktualisierte Beiträge (werden neu gerendert):" -#: lib/bds/tui.ex:1669 +#: lib/bds/tui.ex:1671 #, elixir-autogen, elixir-format msgid "enter apply changes · esc close" msgstr "Enter Änderungen anwenden · Esc Schließen" -#: lib/bds/tui.ex:1664 +#: lib/bds/tui.ex:1666 #, elixir-autogen, elixir-format msgid "enter repair all from files · esc close" msgstr "Enter alles aus Dateien reparieren · Esc Schließen" @@ -3898,7 +3901,7 @@ msgstr "Importierter Blog" msgid "Not a folder: %{path}" msgstr "Kein Ordner: %{path}" -#: lib/bds/tui.ex:1606 +#: lib/bds/tui.ex:1608 #, elixir-autogen, elixir-format msgid "Projects — enter switch · o open existing · esc close" msgstr "Projekte — Enter Wechseln · O Bestehenden öffnen · Esc Schließen" @@ -3908,12 +3911,12 @@ msgstr "Projekte — Enter Wechseln · O Bestehenden öffnen · Esc Schließen" msgid "Switched to %{name}." msgstr "Zu %{name} gewechselt." -#: lib/bds/tui.ex:1634 +#: lib/bds/tui.ex:1636 #, elixir-autogen, elixir-format msgid "Matching folders" msgstr "Passende Ordner" -#: lib/bds/tui.ex:1572 +#: lib/bds/tui.ex:1574 #, elixir-autogen, elixir-format msgid "Open Existing Blog — type a folder path · tab complete · enter open · esc back" msgstr "Bestehenden Blog öffnen — Ordnerpfad eingeben · Tab Vervollständigen · Enter Öffnen · Esc Zurück" @@ -3933,7 +3936,7 @@ msgstr "Commit erstellt." msgid "Diff (pgup/pgdn scroll)" msgstr "Diff (Bild↑/Bild↓ blättern)" -#: lib/bds/tui.ex:1799 +#: lib/bds/tui.ex:1801 #, elixir-autogen, elixir-format msgid "No changes." msgstr "Keine Änderungen." @@ -4044,7 +4047,7 @@ msgstr "Theme" msgid "enter edit · ctrl+s save · esc close" msgstr "Enter Bearbeiten · Strg+S Speichern · Esc Schließen" -#: lib/bds/tui.ex:1750 +#: lib/bds/tui.ex:1752 #, elixir-autogen, elixir-format msgid "enter edit/toggle/cycle · ctrl+s save · esc close · ctrl+q quit" msgstr "Enter Bearbeiten/Umschalten/Wechseln · Strg+S Speichern · Esc Schließen · Strg+Q Beenden" @@ -4054,12 +4057,12 @@ msgstr "Enter Bearbeiten/Umschalten/Wechseln · Strg+S Speichern · Esc Schließ msgid "not supported yet" msgstr "noch nicht unterstützt" -#: lib/bds/tui.ex:1757 +#: lib/bds/tui.ex:1759 #, elixir-autogen, elixir-format msgid "c commit · u pull · s push · enter jump to file · pgup/pgdn scroll diff · 1-7 views · ctrl+q quit" msgstr "C Commit · U Pull · S Push · Enter Zur Datei springen · Bild↑/Bild↓ Diff blättern · 1-7 Ansichten · Strg+Q Beenden" -#: lib/bds/tui.ex:1764 +#: lib/bds/tui.ex:1766 #, elixir-autogen, elixir-format msgid "enter open · n new post · 1-7 views · p projects · / search · : commands (:? help) · r refresh · ctrl+q quit" msgstr "Enter Öffnen · N Neuer Beitrag · 1-7 Ansichten · P Projekte · / Suche · : Befehle (:? Hilfe) · R Aktualisieren · Strg+Q Beenden" @@ -4191,12 +4194,12 @@ msgstr "Das Ziel der Zusammenführung muss eines der markierten Schlagwörter se msgid "default" msgstr "Standard" -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #, elixir-autogen, elixir-format msgid "esc close" msgstr "Esc schließen" -#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1924 #, elixir-autogen, elixir-format msgid "n new · enter rename · c colour · t template · d delete · s sync · esc close" msgstr "n neu · Enter umbenennen · c Farbe · t Vorlage · d löschen · s synchronisieren · Esc schließen" @@ -4206,7 +4209,17 @@ msgstr "n neu · Enter umbenennen · c Farbe · t Vorlage · d löschen · s syn msgid "none" msgstr "keine" -#: lib/bds/tui.ex:1927 +#: lib/bds/tui.ex:1929 #, elixir-autogen, elixir-format msgid "space mark · m merge into selected · esc close" msgstr "Leertaste markieren · m in Auswahl zusammenführen · Esc schließen" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:157 +#, elixir-autogen, elixir-format +msgid "Pending" +msgstr "Ausstehend" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:156 +#, elixir-autogen, elixir-format +msgid "Running" +msgstr "Läuft" diff --git a/priv/gettext/en/LC_MESSAGES/ui.po b/priv/gettext/en/LC_MESSAGES/ui.po index 265604e..04339ea 100644 --- a/priv/gettext/en/LC_MESSAGES/ui.po +++ b/priv/gettext/en/LC_MESSAGES/ui.po @@ -86,7 +86,7 @@ msgstr "" #: lib/bds/tui.ex:1175 #: lib/bds/tui.ex:1178 #: lib/bds/tui.ex:1186 -#: lib/bds/tui.ex:2035 +#: lib/bds/tui.ex:2037 #, elixir-autogen, elixir-format msgid "AI Suggestions" msgstr "" @@ -343,7 +343,7 @@ msgstr "" msgid "Auto" msgstr "" -#: lib/bds/desktop/shell_live.ex:445 +#: lib/bds/desktop/shell_live.ex:478 #: lib/bds/desktop/shell_live/chat_editor.ex:234 #: lib/bds/desktop/shell_live/media_editor.ex:171 #: lib/bds/desktop/shell_live/media_editor.ex:364 @@ -368,7 +368,7 @@ msgstr "" msgid "Available languages" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:124 +#: lib/bds/desktop/shell_live/panel_renderer.ex:223 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:313 #, elixir-autogen, elixir-format msgid "Backlinks" @@ -441,6 +441,7 @@ msgstr "" #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:183 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:208 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:225 +#: lib/bds/desktop/shell_live/panel_renderer.ex:143 #, elixir-autogen, elixir-format msgid "Cancel" msgstr "" @@ -494,7 +495,7 @@ msgstr "" msgid "Category name is required" msgstr "" -#: lib/bds/desktop/shell_live.ex:791 +#: lib/bds/desktop/shell_live.ex:824 #: lib/bds/desktop/shell_live/chat_editor.ex:87 #: lib/bds/desktop/shell_live/chat_editor.ex:233 #: lib/bds/desktop/shell_live/chat_editor.ex:323 @@ -575,7 +576,7 @@ msgid "Collapse unchanged diff hunks" msgstr "" #: lib/bds/desktop/shell_live/overlay_manager.ex:423 -#: lib/bds/tui.ex:2131 +#: lib/bds/tui.ex:2133 #, elixir-autogen, elixir-format msgid "Command completed" msgstr "" @@ -593,7 +594,7 @@ msgstr "" #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:375 #: lib/bds/desktop/shell_live/script_editor_html/script_editor.html.heex:34 #: lib/bds/desktop/shell_live/template_editor_html/template_editor.html.heex:32 -#: lib/bds/tui.ex:1468 +#: lib/bds/tui.ex:1467 #: lib/bds/ui/settings_form.ex:137 #: lib/bds/ui/sidebar.ex:801 #, elixir-autogen, elixir-format @@ -606,6 +607,7 @@ msgid "Content Categories" msgstr "" #: lib/bds/desktop/menu_bar.ex:226 +#: lib/bds/desktop/shell_live/panel_renderer.ex:183 #, elixir-autogen, elixir-format msgid "Copy" msgstr "" @@ -1040,7 +1042,7 @@ msgid "Filename" msgstr "" #: lib/bds/desktop/menu_bar.ex:254 -#: lib/bds/tui.ex:2095 +#: lib/bds/tui.ex:2097 #, elixir-autogen, elixir-format msgid "Fill Missing Translations" msgstr "" @@ -1051,7 +1053,7 @@ msgid "Find" msgstr "" #: lib/bds/desktop/menu_bar.ex:255 -#: lib/bds/tui.ex:2098 +#: lib/bds/tui.ex:2100 #, elixir-autogen, elixir-format msgid "Find Duplicate Posts" msgstr "" @@ -1078,14 +1080,14 @@ msgid "Gallery" msgstr "" #: lib/bds/desktop/menu_bar.ex:256 -#: lib/bds/tui.ex:2079 +#: lib/bds/tui.ex:2081 #, elixir-autogen, elixir-format msgid "Generate Site" msgstr "" -#: lib/bds/desktop/shell_live.ex:792 +#: lib/bds/desktop/shell_live.ex:825 #: lib/bds/desktop/shell_live/socket_state.ex:109 -#: lib/bds/tui.ex:1944 +#: lib/bds/tui.ex:1946 #: lib/bds/ui/sidebar.ex:826 #, elixir-autogen, elixir-format msgid "Git" @@ -1098,8 +1100,8 @@ msgid "Git Diff" msgstr "" #: lib/bds/desktop/shell_data.ex:228 -#: lib/bds/desktop/shell_live.ex:788 -#: lib/bds/desktop/shell_live/panel_renderer.ex:171 +#: lib/bds/desktop/shell_live.ex:821 +#: lib/bds/desktop/shell_live/panel_renderer.ex:270 #, elixir-autogen, elixir-format msgid "Git Log" msgstr "" @@ -1222,9 +1224,9 @@ msgstr "" msgid "Import failed: %{error}" msgstr "" -#: lib/bds/desktop/shell_live.ex:608 -#: lib/bds/desktop/shell_live.ex:904 -#: lib/bds/desktop/shell_live.ex:910 +#: lib/bds/desktop/shell_live.ex:641 +#: lib/bds/desktop/shell_live.ex:970 +#: lib/bds/desktop/shell_live.ex:976 #: lib/bds/desktop/shell_live/sidebar_create.ex:47 #, elixir-autogen, elixir-format msgid "Import media" @@ -1325,7 +1327,7 @@ msgstr "" msgid "Linked Posts" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:142 +#: lib/bds/desktop/shell_live/panel_renderer.ex:241 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:325 #, elixir-autogen, elixir-format msgid "Links To" @@ -1404,9 +1406,9 @@ msgstr "" #: lib/bds/desktop/shell_live/misc_editor.ex:762 #: lib/bds/desktop/shell_live/sidebar_components.ex:654 #: lib/bds/desktop/shell_live/sidebar_delete.ex:175 -#: lib/bds/tui.ex:1939 -#: lib/bds/tui.ex:2160 -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:1941 +#: lib/bds/tui.ex:2162 +#: lib/bds/tui.ex:2165 #: lib/bds/ui/registry.ex:30 #: lib/bds/ui/registry.ex:100 #: lib/bds/ui/sidebar.ex:578 @@ -1435,7 +1437,7 @@ msgid "Merge" msgstr "" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:78 -#: lib/bds/tui.ex:1926 +#: lib/bds/tui.ex:1928 #: lib/bds/ui/sidebar.ex:787 #, elixir-autogen, elixir-format msgid "Merge Tags" @@ -1453,8 +1455,8 @@ msgstr "" #: lib/bds/tui.ex:285 #: lib/bds/tui.ex:291 #: lib/bds/tui.ex:302 -#: lib/bds/tui.ex:1663 -#: lib/bds/tui.ex:2076 +#: lib/bds/tui.ex:1665 +#: lib/bds/tui.ex:2078 #: lib/bds/ui/registry.ex:111 #, elixir-autogen, elixir-format msgid "Metadata Diff" @@ -1532,12 +1534,12 @@ msgstr "" msgid "No Template" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:55 +#: lib/bds/desktop/shell_live/panel_renderer.ex:64 #, elixir-autogen, elixir-format msgid "No background tasks running" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:179 +#: lib/bds/desktop/shell_live/panel_renderer.ex:278 #, elixir-autogen, elixir-format msgid "No commit subject" msgstr "" @@ -1547,7 +1549,7 @@ msgstr "" msgid "No folder selected" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:172 +#: lib/bds/desktop/shell_live/panel_renderer.ex:271 #, elixir-autogen, elixir-format msgid "No git history yet" msgstr "" @@ -1607,7 +1609,7 @@ msgstr "" msgid "No pages yet" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:119 +#: lib/bds/desktop/shell_live/panel_renderer.ex:218 #, elixir-autogen, elixir-format msgid "No post links yet" msgstr "" @@ -1632,7 +1634,7 @@ msgstr "" msgid "No settings match the current search" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:84 +#: lib/bds/desktop/shell_live/panel_renderer.ex:173 #, elixir-autogen, elixir-format msgid "No shell output yet" msgstr "" @@ -1801,7 +1803,7 @@ msgid "Open Settings" msgstr "" #: lib/bds/desktop/menu_bar.ex:217 -#: lib/bds/tui.ex:2100 +#: lib/bds/tui.ex:2102 #, elixir-autogen, elixir-format msgid "Open in Browser" msgstr "" @@ -1832,8 +1834,8 @@ msgstr "" msgid "Other (%{count})" msgstr "" -#: lib/bds/desktop/shell_live.ex:787 -#: lib/bds/desktop/shell_live/panel_renderer.ex:83 +#: lib/bds/desktop/shell_live.ex:820 +#: lib/bds/desktop/shell_live/panel_renderer.ex:172 #, elixir-autogen, elixir-format msgid "Output" msgstr "" @@ -1915,7 +1917,7 @@ msgid "Post" msgstr "" #: lib/bds/desktop/shell_data.ex:231 -#: lib/bds/desktop/shell_live/panel_renderer.ex:118 +#: lib/bds/desktop/shell_live/panel_renderer.ex:217 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:310 #, elixir-autogen, elixir-format msgid "Post Links" @@ -1950,8 +1952,8 @@ msgstr "" #: lib/bds/desktop/menu_bar.ex:233 #: lib/bds/desktop/shell_live/misc_editor.ex:664 #: lib/bds/desktop/shell_live/misc_editor.ex:761 -#: lib/bds/tui.ex:1938 -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1955 #: lib/bds/ui/registry.ex:14 #: lib/bds/ui/sidebar.ex:271 #, elixir-autogen, elixir-format @@ -2081,14 +2083,14 @@ msgstr "" #: lib/bds/desktop/menu_bar.ex:248 #: lib/bds/tui.ex:1016 -#: lib/bds/tui.ex:2080 +#: lib/bds/tui.ex:2082 #, elixir-autogen, elixir-format msgid "Rebuild Database" msgstr "" #: lib/bds/desktop/menu_bar.ex:250 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:381 -#: lib/bds/tui.ex:2084 +#: lib/bds/tui.ex:2086 #, elixir-autogen, elixir-format msgid "Rebuild Embedding Index" msgstr "" @@ -2146,7 +2148,7 @@ msgid "Refresh Translation" msgstr "" #: lib/bds/desktop/menu_bar.ex:252 -#: lib/bds/tui.ex:2087 +#: lib/bds/tui.ex:2089 #, elixir-autogen, elixir-format msgid "Regenerate Calendar" msgstr "" @@ -2157,7 +2159,7 @@ msgid "Regenerate Missing Thumbnails" msgstr "" #: lib/bds/desktop/menu_bar.ex:249 -#: lib/bds/tui.ex:2081 +#: lib/bds/tui.ex:2083 #, elixir-autogen, elixir-format msgid "Reindex Text" msgstr "" @@ -2342,10 +2344,11 @@ msgstr "" #: lib/bds/desktop/shell_live/script_editor.ex:175 #: lib/bds/desktop/shell_live/script_editor.ex:191 #: lib/bds/desktop/shell_live/script_editor.ex:194 -#: lib/bds/desktop/shell_live/script_editor.ex:216 -#: lib/bds/desktop/shell_live/script_editor.ex:219 -#: lib/bds/desktop/shell_live/script_editor.ex:234 -#: lib/bds/tui.ex:1941 +#: lib/bds/desktop/shell_live/script_editor.ex:212 +#: lib/bds/desktop/shell_live/script_editor.ex:222 +#: lib/bds/desktop/shell_live/script_editor.ex:225 +#: lib/bds/desktop/shell_live/script_editor.ex:240 +#: lib/bds/tui.ex:1943 #: lib/bds/ui/registry.ex:38 #: lib/bds/ui/sidebar.ex:63 #: lib/bds/ui/sidebar.ex:115 @@ -2452,7 +2455,7 @@ msgstr "" #: lib/bds/desktop/shell_live/settings_editor/project_settings.ex:60 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:11 -#: lib/bds/tui.ex:1943 +#: lib/bds/tui.ex:1945 #: lib/bds/ui/registry.ex:86 #: lib/bds/ui/registry.ex:101 #: lib/bds/ui/sidebar.ex:795 @@ -2478,7 +2481,7 @@ msgstr "" #: lib/bds/desktop/shell_live/misc_editor.ex:412 #: lib/bds/tui.ex:318 #: lib/bds/tui.ex:320 -#: lib/bds/tui.ex:1668 +#: lib/bds/tui.ex:1670 #: lib/bds/ui/registry.ex:125 #, elixir-autogen, elixir-format msgid "Site Validation" @@ -2575,7 +2578,7 @@ msgid "System Prompt" msgstr "" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:16 -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #: lib/bds/ui/sidebar.ex:785 #, elixir-autogen, elixir-format msgid "Tag Cloud" @@ -2602,8 +2605,8 @@ msgstr "" #: lib/bds/desktop/shell_live/tags_editor.ex:217 #: lib/bds/desktop/shell_live/tags_editor.ex:248 #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:11 -#: lib/bds/tui.ex:1920 -#: lib/bds/tui.ex:1942 +#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1944 #: lib/bds/ui/registry.ex:54 #: lib/bds/ui/registry.ex:103 #: lib/bds/ui/sidebar.ex:289 @@ -2613,8 +2616,8 @@ msgstr "" msgid "Tags" msgstr "" -#: lib/bds/desktop/shell_live.ex:786 -#: lib/bds/desktop/shell_live/panel_renderer.ex:54 +#: lib/bds/desktop/shell_live.ex:819 +#: lib/bds/desktop/shell_live/panel_renderer.ex:63 #: lib/bds/tui.ex:1220 #, elixir-autogen, elixir-format msgid "Tasks" @@ -2661,7 +2664,7 @@ msgstr "" #: lib/bds/desktop/shell_live/template_editor.ex:171 #: lib/bds/desktop/shell_live/template_editor.ex:176 #: lib/bds/desktop/shell_live/template_editor.ex:191 -#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1942 #: lib/bds/ui/registry.ex:46 #: lib/bds/ui/sidebar.ex:71 #: lib/bds/ui/sidebar.ex:122 @@ -2670,7 +2673,7 @@ msgstr "" msgid "Templates" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:194 +#: lib/bds/desktop/shell_live/panel_renderer.ex:293 #, elixir-autogen, elixir-format msgid "The shared lower panel is available for tasks, output, git details, and editor-specific diagnostics." msgstr "" @@ -2885,7 +2888,7 @@ msgid "Updated URLs" msgstr "" #: lib/bds/desktop/menu_bar.ex:259 -#: lib/bds/tui.ex:2099 +#: lib/bds/tui.ex:2101 #, elixir-autogen, elixir-format msgid "Upload Site" msgstr "" @@ -2913,13 +2916,13 @@ msgid "Validate" msgstr "" #: lib/bds/desktop/menu_bar.ex:258 -#: lib/bds/tui.ex:2077 +#: lib/bds/tui.ex:2079 #, elixir-autogen, elixir-format msgid "Validate Site" msgstr "" #: lib/bds/desktop/menu_bar.ex:253 -#: lib/bds/tui.ex:2090 +#: lib/bds/tui.ex:2092 #, elixir-autogen, elixir-format msgid "Validate Translations" msgstr "" @@ -3301,12 +3304,12 @@ msgstr "" msgid "Comparing database and filesystem metadata" msgstr "Comparing database and filesystem metadata" -#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:717 #, elixir-autogen, elixir-format msgid "Added %{count} images to post" msgstr "Added %{count} images to post" -#: lib/bds/desktop/shell_live.ex:652 +#: lib/bds/desktop/shell_live.ex:685 #, elixir-autogen, elixir-format msgid "Added %{title}" msgstr "Added %{title}" @@ -3327,18 +3330,18 @@ msgstr "" msgid "Image Import Concurrency" msgstr "Image Import Concurrency" -#: lib/bds/desktop/shell_live.ex:444 -#: lib/bds/desktop/shell_live.ex:457 -#: lib/bds/desktop/shell_live.ex:651 -#: lib/bds/desktop/shell_live.ex:683 -#: lib/bds/desktop/shell_live.ex:694 -#: lib/bds/desktop/shell_live.ex:705 +#: lib/bds/desktop/shell_live.ex:477 +#: lib/bds/desktop/shell_live.ex:490 +#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:716 +#: lib/bds/desktop/shell_live.ex:727 +#: lib/bds/desktop/shell_live.ex:738 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:420 #, elixir-autogen, elixir-format msgid "Add Gallery Images" msgstr "Add Gallery Images" -#: lib/bds/desktop/shell_live.ex:706 +#: lib/bds/desktop/shell_live.ex:739 #, elixir-autogen, elixir-format msgid "Failed to process %{path}: %{reason}" msgstr "Failed to process %{path}: %{reason}" @@ -3400,7 +3403,7 @@ msgid "Commit" msgstr "" #: lib/bds/desktop/shell_live/sidebar_components.ex:555 -#: lib/bds/tui.ex:1490 +#: lib/bds/tui.ex:1492 #, elixir-autogen, elixir-format msgid "Commit message" msgstr "" @@ -3536,12 +3539,12 @@ msgstr "" msgid "untracked" msgstr "" -#: lib/bds/desktop/shell_live.ex:812 +#: lib/bds/desktop/shell_live.ex:845 #, elixir-autogen, elixir-format, fuzzy msgid "Blogmark" msgstr "Blogmark" -#: lib/bds/desktop/shell_live.ex:855 +#: lib/bds/desktop/shell_live.ex:888 #, elixir-autogen, elixir-format msgid "Open a project before importing a blogmark." msgstr "" @@ -3582,7 +3585,7 @@ msgstr "" msgid "Failed to copy bookmarklet to clipboard" msgstr "" -#: lib/bds/desktop/shell_live.ex:824 +#: lib/bds/desktop/shell_live.ex:857 #, elixir-autogen, elixir-format msgid "The project this blogmark targets does not exist here." msgstr "" @@ -3593,7 +3596,7 @@ msgid "Suggested tags" msgstr "" #: lib/bds/desktop/menu_bar.ex:257 -#: lib/bds/tui.ex:2078 +#: lib/bds/tui.ex:2080 #, elixir-autogen, elixir-format msgid "Force Render Site" msgstr "" @@ -3690,12 +3693,12 @@ msgstr "" msgid "The endpoint returned no models. You can still type a model name manually." msgstr "" -#: lib/bds/tui.ex:2036 +#: lib/bds/tui.ex:2038 #, elixir-autogen, elixir-format msgid "AI is unavailable in airplane mode without a local endpoint." msgstr "" -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:2165 #, elixir-autogen, elixir-format, fuzzy msgid "Could not load this file." msgstr "" @@ -3710,12 +3713,12 @@ msgstr "" msgid "No suggestions returned." msgstr "" -#: lib/bds/tui.ex:2160 +#: lib/bds/tui.ex:2162 #, elixir-autogen, elixir-format msgid "Only images can be previewed." msgstr "" -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1955 #, elixir-autogen, elixir-format msgid "Post not found." msgstr "" @@ -3725,18 +3728,18 @@ msgstr "" msgid "Press enter to preview %{name}." msgstr "" -#: lib/bds/tui.ex:2006 +#: lib/bds/tui.ex:2008 #, elixir-autogen, elixir-format, fuzzy msgid "Published." msgstr "" -#: lib/bds/tui.ex:2022 +#: lib/bds/tui.ex:2024 #, elixir-autogen, elixir-format msgid "Save before switching languages." msgstr "" #: lib/bds/tui.ex:540 -#: lib/bds/tui.ex:2007 +#: lib/bds/tui.ex:2009 #, elixir-autogen, elixir-format, fuzzy msgid "Saved." msgstr "" @@ -3761,18 +3764,18 @@ msgstr "" msgid "Title (editing — enter to confirm)" msgstr "" -#: lib/bds/tui.ex:1492 +#: lib/bds/tui.ex:1494 #, elixir-autogen, elixir-format, fuzzy msgid "Working…" msgstr "" -#: lib/bds/tui.ex:1514 +#: lib/bds/tui.ex:1516 #, elixir-autogen, elixir-format msgid "esc to close" msgstr "" #: lib/bds/desktop/menu_bar.ex:83 -#: lib/bds/desktop/shell_live.ex:1110 +#: lib/bds/desktop/shell_live.ex:1176 #, elixir-autogen, elixir-format msgid "Connect to Server" msgstr "" @@ -3793,7 +3796,7 @@ msgid "Disconnect from Server" msgstr "" #: lib/bds/desktop/menu_bar.ex:72 -#: lib/bds/desktop/shell_live.ex:1097 +#: lib/bds/desktop/shell_live.ex:1163 #, elixir-autogen, elixir-format msgid "Server address (user@host or user@host:port), public-key auth:" msgstr "" @@ -3803,12 +3806,12 @@ msgstr "" msgid "Use the form user@host or user@host:port." msgstr "" -#: lib/bds/tui.ex:1457 +#: lib/bds/tui.ex:1456 #, elixir-autogen, elixir-format msgid "Preview (ctrl+e to edit)" msgstr "" -#: lib/bds/tui.ex:1771 +#: lib/bds/tui.ex:1773 #, elixir-autogen, elixir-format, fuzzy msgid "ctrl+s save · ctrl+p publish · ctrl+e preview · ctrl+t title · ctrl+l language · ctrl+g AI · esc back" msgstr "" @@ -3818,7 +3821,7 @@ msgstr "" msgid "All tasks finished." msgstr "" -#: lib/bds/tui.ex:1540 +#: lib/bds/tui.ex:1542 #, elixir-autogen, elixir-format msgid "Commands — esc to close" msgstr "" @@ -3828,27 +3831,27 @@ msgstr "" msgid "Unknown command." msgstr "" -#: lib/bds/tui.ex:1530 +#: lib/bds/tui.ex:1532 #, elixir-autogen, elixir-format msgid "[report/apply in GUI]" msgstr "" -#: lib/bds/tui.ex:1679 +#: lib/bds/tui.ex:1681 #, elixir-autogen, elixir-format msgid "%{diffs} differences · %{orphans} orphan files" msgstr "" -#: lib/bds/tui.ex:1711 +#: lib/bds/tui.ex:1713 #, elixir-autogen, elixir-format msgid "Expected %{expected} · Existing %{existing}" msgstr "" -#: lib/bds/tui.ex:1728 +#: lib/bds/tui.ex:1730 #, elixir-autogen, elixir-format msgid "Extra files (will be removed):" msgstr "" -#: lib/bds/tui.ex:1724 +#: lib/bds/tui.ex:1726 #, elixir-autogen, elixir-format msgid "Missing pages (will be rendered):" msgstr "" @@ -3863,27 +3866,27 @@ msgstr "" msgid "Nothing to repair." msgstr "" -#: lib/bds/tui.ex:1702 +#: lib/bds/tui.ex:1704 #, elixir-autogen, elixir-format msgid "Orphan files (not in database):" msgstr "" -#: lib/bds/tui.ex:1718 +#: lib/bds/tui.ex:1720 #, elixir-autogen, elixir-format msgid "Sitemap changed." msgstr "" -#: lib/bds/tui.ex:1732 +#: lib/bds/tui.ex:1734 #, elixir-autogen, elixir-format msgid "Updated posts (will be re-rendered):" msgstr "" -#: lib/bds/tui.ex:1669 +#: lib/bds/tui.ex:1671 #, elixir-autogen, elixir-format msgid "enter apply changes · esc close" msgstr "" -#: lib/bds/tui.ex:1664 +#: lib/bds/tui.ex:1666 #, elixir-autogen, elixir-format msgid "enter repair all from files · esc close" msgstr "" @@ -3898,7 +3901,7 @@ msgstr "" msgid "Not a folder: %{path}" msgstr "" -#: lib/bds/tui.ex:1606 +#: lib/bds/tui.ex:1608 #, elixir-autogen, elixir-format msgid "Projects — enter switch · o open existing · esc close" msgstr "" @@ -3908,12 +3911,12 @@ msgstr "" msgid "Switched to %{name}." msgstr "" -#: lib/bds/tui.ex:1634 +#: lib/bds/tui.ex:1636 #, elixir-autogen, elixir-format msgid "Matching folders" msgstr "" -#: lib/bds/tui.ex:1572 +#: lib/bds/tui.ex:1574 #, elixir-autogen, elixir-format, fuzzy msgid "Open Existing Blog — type a folder path · tab complete · enter open · esc back" msgstr "" @@ -3933,7 +3936,7 @@ msgstr "" msgid "Diff (pgup/pgdn scroll)" msgstr "" -#: lib/bds/tui.ex:1799 +#: lib/bds/tui.ex:1801 #, elixir-autogen, elixir-format, fuzzy msgid "No changes." msgstr "" @@ -4044,7 +4047,7 @@ msgstr "" msgid "enter edit · ctrl+s save · esc close" msgstr "" -#: lib/bds/tui.ex:1750 +#: lib/bds/tui.ex:1752 #, elixir-autogen, elixir-format msgid "enter edit/toggle/cycle · ctrl+s save · esc close · ctrl+q quit" msgstr "" @@ -4054,12 +4057,12 @@ msgstr "" msgid "not supported yet" msgstr "" -#: lib/bds/tui.ex:1757 +#: lib/bds/tui.ex:1759 #, elixir-autogen, elixir-format, fuzzy msgid "c commit · u pull · s push · enter jump to file · pgup/pgdn scroll diff · 1-7 views · ctrl+q quit" msgstr "" -#: lib/bds/tui.ex:1764 +#: lib/bds/tui.ex:1766 #, elixir-autogen, elixir-format, fuzzy msgid "enter open · n new post · 1-7 views · p projects · / search · : commands (:? help) · r refresh · ctrl+q quit" msgstr "" @@ -4191,12 +4194,12 @@ msgstr "" msgid "default" msgstr "" -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #, elixir-autogen, elixir-format, fuzzy msgid "esc close" msgstr "" -#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1924 #, elixir-autogen, elixir-format msgid "n new · enter rename · c colour · t template · d delete · s sync · esc close" msgstr "" @@ -4206,7 +4209,17 @@ msgstr "" msgid "none" msgstr "" -#: lib/bds/tui.ex:1927 +#: lib/bds/tui.ex:1929 #, elixir-autogen, elixir-format msgid "space mark · m merge into selected · esc close" msgstr "" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:157 +#, elixir-autogen, elixir-format +msgid "Pending" +msgstr "" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:156 +#, elixir-autogen, elixir-format, fuzzy +msgid "Running" +msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/ui.po b/priv/gettext/es/LC_MESSAGES/ui.po index c08bf52..e0e044d 100644 --- a/priv/gettext/es/LC_MESSAGES/ui.po +++ b/priv/gettext/es/LC_MESSAGES/ui.po @@ -86,7 +86,7 @@ msgstr "Configuración de IA" #: lib/bds/tui.ex:1175 #: lib/bds/tui.ex:1178 #: lib/bds/tui.ex:1186 -#: lib/bds/tui.ex:2035 +#: lib/bds/tui.ex:2037 #, elixir-autogen, elixir-format msgid "AI Suggestions" msgstr "Sugerencias de IA" @@ -343,7 +343,7 @@ msgstr "Autor" msgid "Auto" msgstr "Automático" -#: lib/bds/desktop/shell_live.ex:445 +#: lib/bds/desktop/shell_live.ex:478 #: lib/bds/desktop/shell_live/chat_editor.ex:234 #: lib/bds/desktop/shell_live/media_editor.ex:171 #: lib/bds/desktop/shell_live/media_editor.ex:364 @@ -368,7 +368,7 @@ msgstr "Ayudas de automatización" msgid "Available languages" msgstr "Idiomas disponibles" -#: lib/bds/desktop/shell_live/panel_renderer.ex:124 +#: lib/bds/desktop/shell_live/panel_renderer.ex:223 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:313 #, elixir-autogen, elixir-format msgid "Backlinks" @@ -441,6 +441,7 @@ msgstr "La copia del bookmarklet está conectada mediante el entorno de escritor #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:183 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:208 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:225 +#: lib/bds/desktop/shell_live/panel_renderer.ex:143 #, elixir-autogen, elixir-format msgid "Cancel" msgstr "Cancelar" @@ -494,7 +495,7 @@ msgstr "Valores predeterminados de categoría, opciones de renderizado y conexi msgid "Category name is required" msgstr "El nombre de la categoría es obligatorio" -#: lib/bds/desktop/shell_live.ex:791 +#: lib/bds/desktop/shell_live.ex:824 #: lib/bds/desktop/shell_live/chat_editor.ex:87 #: lib/bds/desktop/shell_live/chat_editor.ex:233 #: lib/bds/desktop/shell_live/chat_editor.ex:323 @@ -575,7 +576,7 @@ msgid "Collapse unchanged diff hunks" msgstr "Contraer bloques de diff sin cambios" #: lib/bds/desktop/shell_live/overlay_manager.ex:423 -#: lib/bds/tui.ex:2131 +#: lib/bds/tui.ex:2133 #, elixir-autogen, elixir-format msgid "Command completed" msgstr "Comando completado" @@ -593,7 +594,7 @@ msgstr "Confirmar" #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:375 #: lib/bds/desktop/shell_live/script_editor_html/script_editor.html.heex:34 #: lib/bds/desktop/shell_live/template_editor_html/template_editor.html.heex:32 -#: lib/bds/tui.ex:1468 +#: lib/bds/tui.ex:1467 #: lib/bds/ui/settings_form.ex:137 #: lib/bds/ui/sidebar.ex:801 #, elixir-autogen, elixir-format @@ -606,6 +607,7 @@ msgid "Content Categories" msgstr "Categorías de contenido" #: lib/bds/desktop/menu_bar.ex:226 +#: lib/bds/desktop/shell_live/panel_renderer.ex:183 #, elixir-autogen, elixir-format msgid "Copy" msgstr "Copiar" @@ -1040,7 +1042,7 @@ msgid "Filename" msgstr "Nombre de archivo" #: lib/bds/desktop/menu_bar.ex:254 -#: lib/bds/tui.ex:2095 +#: lib/bds/tui.ex:2097 #, elixir-autogen, elixir-format msgid "Fill Missing Translations" msgstr "Completar traducciones faltantes" @@ -1051,7 +1053,7 @@ msgid "Find" msgstr "Buscar" #: lib/bds/desktop/menu_bar.ex:255 -#: lib/bds/tui.ex:2098 +#: lib/bds/tui.ex:2100 #, elixir-autogen, elixir-format msgid "Find Duplicate Posts" msgstr "Buscar entradas duplicadas" @@ -1078,14 +1080,14 @@ msgid "Gallery" msgstr "Galeria" #: lib/bds/desktop/menu_bar.ex:256 -#: lib/bds/tui.ex:2079 +#: lib/bds/tui.ex:2081 #, elixir-autogen, elixir-format msgid "Generate Site" msgstr "Generar sitio" -#: lib/bds/desktop/shell_live.ex:792 +#: lib/bds/desktop/shell_live.ex:825 #: lib/bds/desktop/shell_live/socket_state.ex:109 -#: lib/bds/tui.ex:1944 +#: lib/bds/tui.ex:1946 #: lib/bds/ui/sidebar.ex:826 #, elixir-autogen, elixir-format msgid "Git" @@ -1098,8 +1100,8 @@ msgid "Git Diff" msgstr "Diff de Git" #: lib/bds/desktop/shell_data.ex:228 -#: lib/bds/desktop/shell_live.ex:788 -#: lib/bds/desktop/shell_live/panel_renderer.ex:171 +#: lib/bds/desktop/shell_live.ex:821 +#: lib/bds/desktop/shell_live/panel_renderer.ex:270 #, elixir-autogen, elixir-format msgid "Git Log" msgstr "Registro Git" @@ -1222,9 +1224,9 @@ msgstr "Definiciones de importación" msgid "Import failed: %{error}" msgstr "La importación falló: %{error}" -#: lib/bds/desktop/shell_live.ex:608 -#: lib/bds/desktop/shell_live.ex:904 -#: lib/bds/desktop/shell_live.ex:910 +#: lib/bds/desktop/shell_live.ex:641 +#: lib/bds/desktop/shell_live.ex:970 +#: lib/bds/desktop/shell_live.ex:976 #: lib/bds/desktop/shell_live/sidebar_create.ex:47 #, elixir-autogen, elixir-format msgid "Import media" @@ -1325,7 +1327,7 @@ msgstr "Medios vinculados" msgid "Linked Posts" msgstr "Publicaciones enlazadas" -#: lib/bds/desktop/shell_live/panel_renderer.ex:142 +#: lib/bds/desktop/shell_live/panel_renderer.ex:241 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:325 #, elixir-autogen, elixir-format msgid "Links To" @@ -1404,9 +1406,9 @@ msgstr "Máximo de publicaciones por página" #: lib/bds/desktop/shell_live/misc_editor.ex:762 #: lib/bds/desktop/shell_live/sidebar_components.ex:654 #: lib/bds/desktop/shell_live/sidebar_delete.ex:175 -#: lib/bds/tui.ex:1939 -#: lib/bds/tui.ex:2160 -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:1941 +#: lib/bds/tui.ex:2162 +#: lib/bds/tui.ex:2165 #: lib/bds/ui/registry.ex:30 #: lib/bds/ui/registry.ex:100 #: lib/bds/ui/sidebar.ex:578 @@ -1435,7 +1437,7 @@ msgid "Merge" msgstr "Fusionar" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:78 -#: lib/bds/tui.ex:1926 +#: lib/bds/tui.ex:1928 #: lib/bds/ui/sidebar.ex:787 #, elixir-autogen, elixir-format msgid "Merge Tags" @@ -1453,8 +1455,8 @@ msgstr "Metadatos" #: lib/bds/tui.ex:285 #: lib/bds/tui.ex:291 #: lib/bds/tui.ex:302 -#: lib/bds/tui.ex:1663 -#: lib/bds/tui.ex:2076 +#: lib/bds/tui.ex:1665 +#: lib/bds/tui.ex:2078 #: lib/bds/ui/registry.ex:111 #, elixir-autogen, elixir-format msgid "Metadata Diff" @@ -1532,12 +1534,12 @@ msgstr "Nueva plantilla" msgid "No Template" msgstr "Sin plantilla" -#: lib/bds/desktop/shell_live/panel_renderer.ex:55 +#: lib/bds/desktop/shell_live/panel_renderer.ex:64 #, elixir-autogen, elixir-format msgid "No background tasks running" msgstr "No hay tareas en segundo plano en ejecución" -#: lib/bds/desktop/shell_live/panel_renderer.ex:179 +#: lib/bds/desktop/shell_live/panel_renderer.ex:278 #, elixir-autogen, elixir-format msgid "No commit subject" msgstr "Sin asunto de commit" @@ -1547,7 +1549,7 @@ msgstr "Sin asunto de commit" msgid "No folder selected" msgstr "Ninguna carpeta seleccionada" -#: lib/bds/desktop/shell_live/panel_renderer.ex:172 +#: lib/bds/desktop/shell_live/panel_renderer.ex:271 #, elixir-autogen, elixir-format msgid "No git history yet" msgstr "Aún no hay historial de Git" @@ -1607,7 +1609,7 @@ msgstr "No hay archivos huérfanos seleccionados" msgid "No pages yet" msgstr "Aún no hay páginas" -#: lib/bds/desktop/shell_live/panel_renderer.ex:119 +#: lib/bds/desktop/shell_live/panel_renderer.ex:218 #, elixir-autogen, elixir-format msgid "No post links yet" msgstr "Aún no hay enlaces a artículos" @@ -1632,7 +1634,7 @@ msgstr "No hay ninguna acción de reparación disponible" msgid "No settings match the current search" msgstr "Ninguna configuración coincide con la búsqueda actual" -#: lib/bds/desktop/shell_live/panel_renderer.ex:84 +#: lib/bds/desktop/shell_live/panel_renderer.ex:173 #, elixir-autogen, elixir-format msgid "No shell output yet" msgstr "Aún no hay salida del shell" @@ -1801,7 +1803,7 @@ msgid "Open Settings" msgstr "Abrir Ajustes" #: lib/bds/desktop/menu_bar.ex:217 -#: lib/bds/tui.ex:2100 +#: lib/bds/tui.ex:2102 #, elixir-autogen, elixir-format msgid "Open in Browser" msgstr "Abrir en el navegador" @@ -1832,8 +1834,8 @@ msgstr "Otros" msgid "Other (%{count})" msgstr "Otros (%{count})" -#: lib/bds/desktop/shell_live.ex:787 -#: lib/bds/desktop/shell_live/panel_renderer.ex:83 +#: lib/bds/desktop/shell_live.ex:820 +#: lib/bds/desktop/shell_live/panel_renderer.ex:172 #, elixir-autogen, elixir-format msgid "Output" msgstr "Salida" @@ -1915,7 +1917,7 @@ msgid "Post" msgstr "Publicación" #: lib/bds/desktop/shell_data.ex:231 -#: lib/bds/desktop/shell_live/panel_renderer.ex:118 +#: lib/bds/desktop/shell_live/panel_renderer.ex:217 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:310 #, elixir-autogen, elixir-format msgid "Post Links" @@ -1950,8 +1952,8 @@ msgstr "Artículo guardado" #: lib/bds/desktop/menu_bar.ex:233 #: lib/bds/desktop/shell_live/misc_editor.ex:664 #: lib/bds/desktop/shell_live/misc_editor.ex:761 -#: lib/bds/tui.ex:1938 -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1955 #: lib/bds/ui/registry.ex:14 #: lib/bds/ui/sidebar.ex:271 #, elixir-autogen, elixir-format @@ -2081,14 +2083,14 @@ msgstr "Listo para importar:" #: lib/bds/desktop/menu_bar.ex:248 #: lib/bds/tui.ex:1016 -#: lib/bds/tui.ex:2080 +#: lib/bds/tui.ex:2082 #, elixir-autogen, elixir-format msgid "Rebuild Database" msgstr "Reconstruir base de datos" #: lib/bds/desktop/menu_bar.ex:250 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:381 -#: lib/bds/tui.ex:2084 +#: lib/bds/tui.ex:2086 #, elixir-autogen, elixir-format msgid "Rebuild Embedding Index" msgstr "Reconstruir índice de embeddings" @@ -2146,7 +2148,7 @@ msgid "Refresh Translation" msgstr "Actualizar traducción" #: lib/bds/desktop/menu_bar.ex:252 -#: lib/bds/tui.ex:2087 +#: lib/bds/tui.ex:2089 #, elixir-autogen, elixir-format msgid "Regenerate Calendar" msgstr "Regenerar calendario" @@ -2157,7 +2159,7 @@ msgid "Regenerate Missing Thumbnails" msgstr "Regenerar miniaturas faltantes" #: lib/bds/desktop/menu_bar.ex:249 -#: lib/bds/tui.ex:2081 +#: lib/bds/tui.ex:2083 #, elixir-autogen, elixir-format msgid "Reindex Text" msgstr "Reindexar texto" @@ -2342,10 +2344,11 @@ msgstr "Las capacidades de scripts se configuran en la capa de aplicación en la #: lib/bds/desktop/shell_live/script_editor.ex:175 #: lib/bds/desktop/shell_live/script_editor.ex:191 #: lib/bds/desktop/shell_live/script_editor.ex:194 -#: lib/bds/desktop/shell_live/script_editor.ex:216 -#: lib/bds/desktop/shell_live/script_editor.ex:219 -#: lib/bds/desktop/shell_live/script_editor.ex:234 -#: lib/bds/tui.ex:1941 +#: lib/bds/desktop/shell_live/script_editor.ex:212 +#: lib/bds/desktop/shell_live/script_editor.ex:222 +#: lib/bds/desktop/shell_live/script_editor.ex:225 +#: lib/bds/desktop/shell_live/script_editor.ex:240 +#: lib/bds/tui.ex:1943 #: lib/bds/ui/registry.ex:38 #: lib/bds/ui/sidebar.ex:63 #: lib/bds/ui/sidebar.ex:115 @@ -2452,7 +2455,7 @@ msgstr "Similitud semántica" #: lib/bds/desktop/shell_live/settings_editor/project_settings.ex:60 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:11 -#: lib/bds/tui.ex:1943 +#: lib/bds/tui.ex:1945 #: lib/bds/ui/registry.ex:86 #: lib/bds/ui/registry.ex:101 #: lib/bds/ui/sidebar.ex:795 @@ -2478,7 +2481,7 @@ msgstr "Sitio" #: lib/bds/desktop/shell_live/misc_editor.ex:412 #: lib/bds/tui.ex:318 #: lib/bds/tui.ex:320 -#: lib/bds/tui.ex:1668 +#: lib/bds/tui.ex:1670 #: lib/bds/ui/registry.ex:125 #, elixir-autogen, elixir-format msgid "Site Validation" @@ -2575,7 +2578,7 @@ msgid "System Prompt" msgstr "Prompt del sistema" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:16 -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #: lib/bds/ui/sidebar.ex:785 #, elixir-autogen, elixir-format msgid "Tag Cloud" @@ -2602,8 +2605,8 @@ msgstr "Nombre de la etiqueta" #: lib/bds/desktop/shell_live/tags_editor.ex:217 #: lib/bds/desktop/shell_live/tags_editor.ex:248 #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:11 -#: lib/bds/tui.ex:1920 -#: lib/bds/tui.ex:1942 +#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1944 #: lib/bds/ui/registry.ex:54 #: lib/bds/ui/registry.ex:103 #: lib/bds/ui/sidebar.ex:289 @@ -2613,8 +2616,8 @@ msgstr "Nombre de la etiqueta" msgid "Tags" msgstr "Etiquetas" -#: lib/bds/desktop/shell_live.ex:786 -#: lib/bds/desktop/shell_live/panel_renderer.ex:54 +#: lib/bds/desktop/shell_live.ex:819 +#: lib/bds/desktop/shell_live/panel_renderer.ex:63 #: lib/bds/tui.ex:1220 #, elixir-autogen, elixir-format msgid "Tasks" @@ -2661,7 +2664,7 @@ msgstr "La sintaxis de la plantilla es válida" #: lib/bds/desktop/shell_live/template_editor.ex:171 #: lib/bds/desktop/shell_live/template_editor.ex:176 #: lib/bds/desktop/shell_live/template_editor.ex:191 -#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1942 #: lib/bds/ui/registry.ex:46 #: lib/bds/ui/sidebar.ex:71 #: lib/bds/ui/sidebar.ex:122 @@ -2670,7 +2673,7 @@ msgstr "La sintaxis de la plantilla es válida" msgid "Templates" msgstr "Plantillas" -#: lib/bds/desktop/shell_live/panel_renderer.ex:194 +#: lib/bds/desktop/shell_live/panel_renderer.ex:293 #, elixir-autogen, elixir-format msgid "The shared lower panel is available for tasks, output, git details, and editor-specific diagnostics." msgstr "El panel inferior compartido está disponible para tareas, salida, detalles de Git y diagnósticos específicos del editor." @@ -2885,7 +2888,7 @@ msgid "Updated URLs" msgstr "URLs actualizadas" #: lib/bds/desktop/menu_bar.ex:259 -#: lib/bds/tui.ex:2099 +#: lib/bds/tui.ex:2101 #, elixir-autogen, elixir-format msgid "Upload Site" msgstr "Subir sitio" @@ -2913,13 +2916,13 @@ msgid "Validate" msgstr "Validar" #: lib/bds/desktop/menu_bar.ex:258 -#: lib/bds/tui.ex:2077 +#: lib/bds/tui.ex:2079 #, elixir-autogen, elixir-format msgid "Validate Site" msgstr "Validar sitio" #: lib/bds/desktop/menu_bar.ex:253 -#: lib/bds/tui.ex:2090 +#: lib/bds/tui.ex:2092 #, elixir-autogen, elixir-format msgid "Validate Translations" msgstr "Validar traducciones" @@ -3301,12 +3304,12 @@ msgstr "Bienvenido al asistente de IA" msgid "Comparing database and filesystem metadata" msgstr "Comparando metadatos de la base de datos y del sistema de archivos" -#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:717 #, elixir-autogen, elixir-format msgid "Added %{count} images to post" msgstr "%{count} imágenes añadidas a la publicación" -#: lib/bds/desktop/shell_live.ex:652 +#: lib/bds/desktop/shell_live.ex:685 #, elixir-autogen, elixir-format msgid "Added %{title}" msgstr "%{title} añadido" @@ -3327,18 +3330,18 @@ msgstr "Guía del usuario para flujos editoriales, medios, plantillas, traducci msgid "Image Import Concurrency" msgstr "Importación simultánea de imágenes" -#: lib/bds/desktop/shell_live.ex:444 -#: lib/bds/desktop/shell_live.ex:457 -#: lib/bds/desktop/shell_live.ex:651 -#: lib/bds/desktop/shell_live.ex:683 -#: lib/bds/desktop/shell_live.ex:694 -#: lib/bds/desktop/shell_live.ex:705 +#: lib/bds/desktop/shell_live.ex:477 +#: lib/bds/desktop/shell_live.ex:490 +#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:716 +#: lib/bds/desktop/shell_live.ex:727 +#: lib/bds/desktop/shell_live.ex:738 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:420 #, elixir-autogen, elixir-format msgid "Add Gallery Images" msgstr "Añadir imágenes a la galería" -#: lib/bds/desktop/shell_live.ex:706 +#: lib/bds/desktop/shell_live.ex:739 #, elixir-autogen, elixir-format msgid "Failed to process %{path}: %{reason}" msgstr "No se pudo procesar %{path}: %{reason}" @@ -3400,7 +3403,7 @@ msgid "Commit" msgstr "Commit" #: lib/bds/desktop/shell_live/sidebar_components.ex:555 -#: lib/bds/tui.ex:1490 +#: lib/bds/tui.ex:1492 #, elixir-autogen, elixir-format msgid "Commit message" msgstr "Mensaje de commit" @@ -3536,12 +3539,12 @@ msgstr "renombrado" msgid "untracked" msgstr "sin seguimiento" -#: lib/bds/desktop/shell_live.ex:812 +#: lib/bds/desktop/shell_live.ex:845 #, elixir-autogen, elixir-format msgid "Blogmark" msgstr "Blogmark" -#: lib/bds/desktop/shell_live.ex:855 +#: lib/bds/desktop/shell_live.ex:888 #, elixir-autogen, elixir-format msgid "Open a project before importing a blogmark." msgstr "Abre un proyecto antes de importar un blogmark." @@ -3582,7 +3585,7 @@ msgstr "Eliminar etiqueta" msgid "Failed to copy bookmarklet to clipboard" msgstr "Error al copiar el bookmarklet al portapapeles" -#: lib/bds/desktop/shell_live.ex:824 +#: lib/bds/desktop/shell_live.ex:857 #, elixir-autogen, elixir-format msgid "The project this blogmark targets does not exist here." msgstr "El proyecto al que apunta este blogmark no existe aquí." @@ -3593,7 +3596,7 @@ msgid "Suggested tags" msgstr "Etiquetas sugeridas" #: lib/bds/desktop/menu_bar.ex:257 -#: lib/bds/tui.ex:2078 +#: lib/bds/tui.ex:2080 #, elixir-autogen, elixir-format msgid "Force Render Site" msgstr "Forzar la regeneración del sitio" @@ -3690,12 +3693,12 @@ msgstr "OK" msgid "The endpoint returned no models. You can still type a model name manually." msgstr "El endpoint no devolvió ningún modelo. Aún puedes escribir el nombre de un modelo manualmente." -#: lib/bds/tui.ex:2036 +#: lib/bds/tui.ex:2038 #, elixir-autogen, elixir-format msgid "AI is unavailable in airplane mode without a local endpoint." msgstr "La IA no está disponible en modo avión sin un punto de conexión local." -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:2165 #, elixir-autogen, elixir-format msgid "Could not load this file." msgstr "No se pudo cargar este archivo." @@ -3710,12 +3713,12 @@ msgstr "La edición de este elemento aún no está disponible en la interfaz de msgid "No suggestions returned." msgstr "No se recibieron sugerencias." -#: lib/bds/tui.ex:2160 +#: lib/bds/tui.ex:2162 #, elixir-autogen, elixir-format msgid "Only images can be previewed." msgstr "Solo se pueden previsualizar imágenes." -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1955 #, elixir-autogen, elixir-format msgid "Post not found." msgstr "Entrada no encontrada." @@ -3725,18 +3728,18 @@ msgstr "Entrada no encontrada." msgid "Press enter to preview %{name}." msgstr "Pulsa Intro para previsualizar %{name}." -#: lib/bds/tui.ex:2006 +#: lib/bds/tui.ex:2008 #, elixir-autogen, elixir-format msgid "Published." msgstr "Publicado." -#: lib/bds/tui.ex:2022 +#: lib/bds/tui.ex:2024 #, elixir-autogen, elixir-format msgid "Save before switching languages." msgstr "Guarda antes de cambiar de idioma." #: lib/bds/tui.ex:540 -#: lib/bds/tui.ex:2007 +#: lib/bds/tui.ex:2009 #, elixir-autogen, elixir-format msgid "Saved." msgstr "Guardado." @@ -3761,18 +3764,18 @@ msgstr "Título (ctrl+t para editar)" msgid "Title (editing — enter to confirm)" msgstr "Título (edición — Intro para confirmar)" -#: lib/bds/tui.ex:1492 +#: lib/bds/tui.ex:1494 #, elixir-autogen, elixir-format msgid "Working…" msgstr "Procesando…" -#: lib/bds/tui.ex:1514 +#: lib/bds/tui.ex:1516 #, elixir-autogen, elixir-format msgid "esc to close" msgstr "esc para cerrar" #: lib/bds/desktop/menu_bar.ex:83 -#: lib/bds/desktop/shell_live.ex:1110 +#: lib/bds/desktop/shell_live.ex:1176 #, elixir-autogen, elixir-format msgid "Connect to Server" msgstr "Conectar al servidor" @@ -3793,7 +3796,7 @@ msgid "Disconnect from Server" msgstr "Desconectar del servidor" #: lib/bds/desktop/menu_bar.ex:72 -#: lib/bds/desktop/shell_live.ex:1097 +#: lib/bds/desktop/shell_live.ex:1163 #, elixir-autogen, elixir-format msgid "Server address (user@host or user@host:port), public-key auth:" msgstr "Dirección del servidor (user@host o user@host:port), autenticación de clave pública:" @@ -3803,12 +3806,12 @@ msgstr "Dirección del servidor (user@host o user@host:port), autenticación de msgid "Use the form user@host or user@host:port." msgstr "Usa el formato user@host o user@host:port." -#: lib/bds/tui.ex:1457 +#: lib/bds/tui.ex:1456 #, elixir-autogen, elixir-format msgid "Preview (ctrl+e to edit)" msgstr "Vista previa (ctrl+e para editar)" -#: lib/bds/tui.ex:1771 +#: lib/bds/tui.ex:1773 #, elixir-autogen, elixir-format msgid "ctrl+s save · ctrl+p publish · ctrl+e preview · ctrl+t title · ctrl+l language · ctrl+g AI · esc back" msgstr "ctrl+s guardar · ctrl+p publicar · ctrl+e vista previa · ctrl+t título · ctrl+l idioma · ctrl+g IA · esc volver" @@ -3818,7 +3821,7 @@ msgstr "ctrl+s guardar · ctrl+p publicar · ctrl+e vista previa · ctrl+t títu msgid "All tasks finished." msgstr "Todas las tareas han terminado." -#: lib/bds/tui.ex:1540 +#: lib/bds/tui.ex:1542 #, elixir-autogen, elixir-format msgid "Commands — esc to close" msgstr "Comandos — esc para cerrar" @@ -3828,27 +3831,27 @@ msgstr "Comandos — esc para cerrar" msgid "Unknown command." msgstr "Comando desconocido." -#: lib/bds/tui.ex:1530 +#: lib/bds/tui.ex:1532 #, elixir-autogen, elixir-format msgid "[report/apply in GUI]" msgstr "[informe/aplicación en la GUI]" -#: lib/bds/tui.ex:1679 +#: lib/bds/tui.ex:1681 #, elixir-autogen, elixir-format msgid "%{diffs} differences · %{orphans} orphan files" msgstr "%{diffs} diferencias · %{orphans} archivos huérfanos" -#: lib/bds/tui.ex:1711 +#: lib/bds/tui.ex:1713 #, elixir-autogen, elixir-format msgid "Expected %{expected} · Existing %{existing}" msgstr "Esperados %{expected} · Existentes %{existing}" -#: lib/bds/tui.ex:1728 +#: lib/bds/tui.ex:1730 #, elixir-autogen, elixir-format msgid "Extra files (will be removed):" msgstr "Archivos sobrantes (se eliminarán):" -#: lib/bds/tui.ex:1724 +#: lib/bds/tui.ex:1726 #, elixir-autogen, elixir-format msgid "Missing pages (will be rendered):" msgstr "Páginas faltantes (se generarán):" @@ -3863,27 +3866,27 @@ msgstr "Nada que aplicar." msgid "Nothing to repair." msgstr "Nada que reparar." -#: lib/bds/tui.ex:1702 +#: lib/bds/tui.ex:1704 #, elixir-autogen, elixir-format msgid "Orphan files (not in database):" msgstr "Archivos huérfanos (no están en la base de datos):" -#: lib/bds/tui.ex:1718 +#: lib/bds/tui.ex:1720 #, elixir-autogen, elixir-format msgid "Sitemap changed." msgstr "Sitemap modificado." -#: lib/bds/tui.ex:1732 +#: lib/bds/tui.ex:1734 #, elixir-autogen, elixir-format msgid "Updated posts (will be re-rendered):" msgstr "Entradas actualizadas (se volverán a generar):" -#: lib/bds/tui.ex:1669 +#: lib/bds/tui.ex:1671 #, elixir-autogen, elixir-format msgid "enter apply changes · esc close" msgstr "intro aplicar cambios · esc cerrar" -#: lib/bds/tui.ex:1664 +#: lib/bds/tui.ex:1666 #, elixir-autogen, elixir-format msgid "enter repair all from files · esc close" msgstr "intro reparar todo desde archivos · esc cerrar" @@ -3898,7 +3901,7 @@ msgstr "Blog importado" msgid "Not a folder: %{path}" msgstr "No es una carpeta: %{path}" -#: lib/bds/tui.ex:1606 +#: lib/bds/tui.ex:1608 #, elixir-autogen, elixir-format msgid "Projects — enter switch · o open existing · esc close" msgstr "Proyectos — intro cambiar · o abrir existente · esc cerrar" @@ -3908,12 +3911,12 @@ msgstr "Proyectos — intro cambiar · o abrir existente · esc cerrar" msgid "Switched to %{name}." msgstr "Cambiado a %{name}." -#: lib/bds/tui.ex:1634 +#: lib/bds/tui.ex:1636 #, elixir-autogen, elixir-format msgid "Matching folders" msgstr "Carpetas coincidentes" -#: lib/bds/tui.ex:1572 +#: lib/bds/tui.ex:1574 #, elixir-autogen, elixir-format msgid "Open Existing Blog — type a folder path · tab complete · enter open · esc back" msgstr "Abrir blog existente — escribe la ruta de una carpeta · tab completar · intro abrir · esc volver" @@ -3933,7 +3936,7 @@ msgstr "Commit realizado." msgid "Diff (pgup/pgdn scroll)" msgstr "Diff (pgup/pgdn para desplazar)" -#: lib/bds/tui.ex:1799 +#: lib/bds/tui.ex:1801 #, elixir-autogen, elixir-format msgid "No changes." msgstr "Sin cambios." @@ -4044,7 +4047,7 @@ msgstr "Tema" msgid "enter edit · ctrl+s save · esc close" msgstr "intro editar · ctrl+s guardar · esc cerrar" -#: lib/bds/tui.ex:1750 +#: lib/bds/tui.ex:1752 #, elixir-autogen, elixir-format msgid "enter edit/toggle/cycle · ctrl+s save · esc close · ctrl+q quit" msgstr "intro editar/alternar/ciclar · ctrl+s guardar · esc cerrar · ctrl+q salir" @@ -4054,12 +4057,12 @@ msgstr "intro editar/alternar/ciclar · ctrl+s guardar · esc cerrar · ctrl+q s msgid "not supported yet" msgstr "aún no compatible" -#: lib/bds/tui.ex:1757 +#: lib/bds/tui.ex:1759 #, elixir-autogen, elixir-format msgid "c commit · u pull · s push · enter jump to file · pgup/pgdn scroll diff · 1-7 views · ctrl+q quit" msgstr "c commit · u pull · s push · intro ir al archivo · pgup/pgdn desplazar el diff · 1-7 vistas · ctrl+q salir" -#: lib/bds/tui.ex:1764 +#: lib/bds/tui.ex:1766 #, elixir-autogen, elixir-format msgid "enter open · n new post · 1-7 views · p projects · / search · : commands (:? help) · r refresh · ctrl+q quit" msgstr "intro abrir · n nueva entrada · 1-7 vistas · p proyectos · / buscar · : comandos (:? ayuda) · r actualizar · ctrl+q salir" @@ -4191,12 +4194,12 @@ msgstr "El destino de la combinación debe ser una de las etiquetas marcadas" msgid "default" msgstr "predeterminado" -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #, elixir-autogen, elixir-format msgid "esc close" msgstr "esc cerrar" -#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1924 #, elixir-autogen, elixir-format msgid "n new · enter rename · c colour · t template · d delete · s sync · esc close" msgstr "n nuevo · intro renombrar · c color · t plantilla · d eliminar · s sincronizar · esc cerrar" @@ -4206,7 +4209,17 @@ msgstr "n nuevo · intro renombrar · c color · t plantilla · d eliminar · s msgid "none" msgstr "ninguno" -#: lib/bds/tui.ex:1927 +#: lib/bds/tui.ex:1929 #, elixir-autogen, elixir-format msgid "space mark · m merge into selected · esc close" msgstr "espacio marcar · m combinar en la selección · esc cerrar" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:157 +#, elixir-autogen, elixir-format +msgid "Pending" +msgstr "Pendiente" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:156 +#, elixir-autogen, elixir-format +msgid "Running" +msgstr "En curso" diff --git a/priv/gettext/fr/LC_MESSAGES/ui.po b/priv/gettext/fr/LC_MESSAGES/ui.po index 8c3506f..469c68f 100644 --- a/priv/gettext/fr/LC_MESSAGES/ui.po +++ b/priv/gettext/fr/LC_MESSAGES/ui.po @@ -86,7 +86,7 @@ msgstr "Paramètres IA" #: lib/bds/tui.ex:1175 #: lib/bds/tui.ex:1178 #: lib/bds/tui.ex:1186 -#: lib/bds/tui.ex:2035 +#: lib/bds/tui.ex:2037 #, elixir-autogen, elixir-format msgid "AI Suggestions" msgstr "Suggestions IA" @@ -343,7 +343,7 @@ msgstr "Auteur" msgid "Auto" msgstr "Automatique" -#: lib/bds/desktop/shell_live.ex:445 +#: lib/bds/desktop/shell_live.ex:478 #: lib/bds/desktop/shell_live/chat_editor.ex:234 #: lib/bds/desktop/shell_live/media_editor.ex:171 #: lib/bds/desktop/shell_live/media_editor.ex:364 @@ -368,7 +368,7 @@ msgstr "Aides d’automatisation" msgid "Available languages" msgstr "Langues disponibles" -#: lib/bds/desktop/shell_live/panel_renderer.ex:124 +#: lib/bds/desktop/shell_live/panel_renderer.ex:223 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:313 #, elixir-autogen, elixir-format msgid "Backlinks" @@ -441,6 +441,7 @@ msgstr "La copie du bookmarklet est reliée via l’environnement desktop et l #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:183 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:208 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:225 +#: lib/bds/desktop/shell_live/panel_renderer.ex:143 #, elixir-autogen, elixir-format msgid "Cancel" msgstr "Annuler" @@ -494,7 +495,7 @@ msgstr "Valeurs par défaut des catégories, options de rendu et liaison des mod msgid "Category name is required" msgstr "Le nom de la catégorie est requis" -#: lib/bds/desktop/shell_live.ex:791 +#: lib/bds/desktop/shell_live.ex:824 #: lib/bds/desktop/shell_live/chat_editor.ex:87 #: lib/bds/desktop/shell_live/chat_editor.ex:233 #: lib/bds/desktop/shell_live/chat_editor.ex:323 @@ -575,7 +576,7 @@ msgid "Collapse unchanged diff hunks" msgstr "Réduire les blocs de diff inchangés" #: lib/bds/desktop/shell_live/overlay_manager.ex:423 -#: lib/bds/tui.ex:2131 +#: lib/bds/tui.ex:2133 #, elixir-autogen, elixir-format msgid "Command completed" msgstr "Commande terminée" @@ -593,7 +594,7 @@ msgstr "Confirmer" #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:375 #: lib/bds/desktop/shell_live/script_editor_html/script_editor.html.heex:34 #: lib/bds/desktop/shell_live/template_editor_html/template_editor.html.heex:32 -#: lib/bds/tui.ex:1468 +#: lib/bds/tui.ex:1467 #: lib/bds/ui/settings_form.ex:137 #: lib/bds/ui/sidebar.ex:801 #, elixir-autogen, elixir-format @@ -606,6 +607,7 @@ msgid "Content Categories" msgstr "Catégories de contenu" #: lib/bds/desktop/menu_bar.ex:226 +#: lib/bds/desktop/shell_live/panel_renderer.ex:183 #, elixir-autogen, elixir-format msgid "Copy" msgstr "Copier" @@ -1040,7 +1042,7 @@ msgid "Filename" msgstr "Nom de fichier" #: lib/bds/desktop/menu_bar.ex:254 -#: lib/bds/tui.ex:2095 +#: lib/bds/tui.ex:2097 #, elixir-autogen, elixir-format msgid "Fill Missing Translations" msgstr "Compléter les traductions manquantes" @@ -1051,7 +1053,7 @@ msgid "Find" msgstr "Rechercher" #: lib/bds/desktop/menu_bar.ex:255 -#: lib/bds/tui.ex:2098 +#: lib/bds/tui.ex:2100 #, elixir-autogen, elixir-format msgid "Find Duplicate Posts" msgstr "Trouver les doublons" @@ -1078,14 +1080,14 @@ msgid "Gallery" msgstr "Galerie" #: lib/bds/desktop/menu_bar.ex:256 -#: lib/bds/tui.ex:2079 +#: lib/bds/tui.ex:2081 #, elixir-autogen, elixir-format msgid "Generate Site" msgstr "Générer le site" -#: lib/bds/desktop/shell_live.ex:792 +#: lib/bds/desktop/shell_live.ex:825 #: lib/bds/desktop/shell_live/socket_state.ex:109 -#: lib/bds/tui.ex:1944 +#: lib/bds/tui.ex:1946 #: lib/bds/ui/sidebar.ex:826 #, elixir-autogen, elixir-format msgid "Git" @@ -1098,8 +1100,8 @@ msgid "Git Diff" msgstr "Diff Git" #: lib/bds/desktop/shell_data.ex:228 -#: lib/bds/desktop/shell_live.ex:788 -#: lib/bds/desktop/shell_live/panel_renderer.ex:171 +#: lib/bds/desktop/shell_live.ex:821 +#: lib/bds/desktop/shell_live/panel_renderer.ex:270 #, elixir-autogen, elixir-format msgid "Git Log" msgstr "Journal Git" @@ -1222,9 +1224,9 @@ msgstr "Définitions d’import" msgid "Import failed: %{error}" msgstr "Échec de l’import : %{error}" -#: lib/bds/desktop/shell_live.ex:608 -#: lib/bds/desktop/shell_live.ex:904 -#: lib/bds/desktop/shell_live.ex:910 +#: lib/bds/desktop/shell_live.ex:641 +#: lib/bds/desktop/shell_live.ex:970 +#: lib/bds/desktop/shell_live.ex:976 #: lib/bds/desktop/shell_live/sidebar_create.ex:47 #, elixir-autogen, elixir-format msgid "Import media" @@ -1325,7 +1327,7 @@ msgstr "Médias liés" msgid "Linked Posts" msgstr "Articles liés" -#: lib/bds/desktop/shell_live/panel_renderer.ex:142 +#: lib/bds/desktop/shell_live/panel_renderer.ex:241 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:325 #, elixir-autogen, elixir-format msgid "Links To" @@ -1404,9 +1406,9 @@ msgstr "Nombre maximal d’articles par page" #: lib/bds/desktop/shell_live/misc_editor.ex:762 #: lib/bds/desktop/shell_live/sidebar_components.ex:654 #: lib/bds/desktop/shell_live/sidebar_delete.ex:175 -#: lib/bds/tui.ex:1939 -#: lib/bds/tui.ex:2160 -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:1941 +#: lib/bds/tui.ex:2162 +#: lib/bds/tui.ex:2165 #: lib/bds/ui/registry.ex:30 #: lib/bds/ui/registry.ex:100 #: lib/bds/ui/sidebar.ex:578 @@ -1435,7 +1437,7 @@ msgid "Merge" msgstr "Fusionner" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:78 -#: lib/bds/tui.ex:1926 +#: lib/bds/tui.ex:1928 #: lib/bds/ui/sidebar.ex:787 #, elixir-autogen, elixir-format msgid "Merge Tags" @@ -1453,8 +1455,8 @@ msgstr "Métadonnées" #: lib/bds/tui.ex:285 #: lib/bds/tui.ex:291 #: lib/bds/tui.ex:302 -#: lib/bds/tui.ex:1663 -#: lib/bds/tui.ex:2076 +#: lib/bds/tui.ex:1665 +#: lib/bds/tui.ex:2078 #: lib/bds/ui/registry.ex:111 #, elixir-autogen, elixir-format msgid "Metadata Diff" @@ -1532,12 +1534,12 @@ msgstr "Nouveau modèle" msgid "No Template" msgstr "Aucun template" -#: lib/bds/desktop/shell_live/panel_renderer.ex:55 +#: lib/bds/desktop/shell_live/panel_renderer.ex:64 #, elixir-autogen, elixir-format msgid "No background tasks running" msgstr "Aucune tâche d’arrière-plan en cours" -#: lib/bds/desktop/shell_live/panel_renderer.ex:179 +#: lib/bds/desktop/shell_live/panel_renderer.ex:278 #, elixir-autogen, elixir-format msgid "No commit subject" msgstr "Pas de sujet de commit" @@ -1547,7 +1549,7 @@ msgstr "Pas de sujet de commit" msgid "No folder selected" msgstr "Aucun dossier sélectionné" -#: lib/bds/desktop/shell_live/panel_renderer.ex:172 +#: lib/bds/desktop/shell_live/panel_renderer.ex:271 #, elixir-autogen, elixir-format msgid "No git history yet" msgstr "Pas encore d'historique Git" @@ -1607,7 +1609,7 @@ msgstr "Aucun fichier orphelin sélectionné" msgid "No pages yet" msgstr "Aucune page pour le moment" -#: lib/bds/desktop/shell_live/panel_renderer.ex:119 +#: lib/bds/desktop/shell_live/panel_renderer.ex:218 #, elixir-autogen, elixir-format msgid "No post links yet" msgstr "Pas encore de liens vers des articles" @@ -1632,7 +1634,7 @@ msgstr "Aucune action de réparation disponible" msgid "No settings match the current search" msgstr "Aucun paramètre ne correspond à la recherche actuelle" -#: lib/bds/desktop/shell_live/panel_renderer.ex:84 +#: lib/bds/desktop/shell_live/panel_renderer.ex:173 #, elixir-autogen, elixir-format msgid "No shell output yet" msgstr "Aucune sortie du shell pour l’instant" @@ -1801,7 +1803,7 @@ msgid "Open Settings" msgstr "Ouvrir les Réglages" #: lib/bds/desktop/menu_bar.ex:217 -#: lib/bds/tui.ex:2100 +#: lib/bds/tui.ex:2102 #, elixir-autogen, elixir-format msgid "Open in Browser" msgstr "Ouvrir dans le navigateur" @@ -1832,8 +1834,8 @@ msgstr "Autre" msgid "Other (%{count})" msgstr "Autres (%{count})" -#: lib/bds/desktop/shell_live.ex:787 -#: lib/bds/desktop/shell_live/panel_renderer.ex:83 +#: lib/bds/desktop/shell_live.ex:820 +#: lib/bds/desktop/shell_live/panel_renderer.ex:172 #, elixir-autogen, elixir-format msgid "Output" msgstr "Sortie" @@ -1915,7 +1917,7 @@ msgid "Post" msgstr "Article" #: lib/bds/desktop/shell_data.ex:231 -#: lib/bds/desktop/shell_live/panel_renderer.ex:118 +#: lib/bds/desktop/shell_live/panel_renderer.ex:217 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:310 #, elixir-autogen, elixir-format msgid "Post Links" @@ -1950,8 +1952,8 @@ msgstr "Article enregistré" #: lib/bds/desktop/menu_bar.ex:233 #: lib/bds/desktop/shell_live/misc_editor.ex:664 #: lib/bds/desktop/shell_live/misc_editor.ex:761 -#: lib/bds/tui.ex:1938 -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1955 #: lib/bds/ui/registry.ex:14 #: lib/bds/ui/sidebar.ex:271 #, elixir-autogen, elixir-format @@ -2081,14 +2083,14 @@ msgstr "Prêt à importer :" #: lib/bds/desktop/menu_bar.ex:248 #: lib/bds/tui.ex:1016 -#: lib/bds/tui.ex:2080 +#: lib/bds/tui.ex:2082 #, elixir-autogen, elixir-format msgid "Rebuild Database" msgstr "Reconstruire la base de données" #: lib/bds/desktop/menu_bar.ex:250 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:381 -#: lib/bds/tui.ex:2084 +#: lib/bds/tui.ex:2086 #, elixir-autogen, elixir-format msgid "Rebuild Embedding Index" msgstr "Reconstruire l’index d’embeddings" @@ -2146,7 +2148,7 @@ msgid "Refresh Translation" msgstr "Actualiser la traduction" #: lib/bds/desktop/menu_bar.ex:252 -#: lib/bds/tui.ex:2087 +#: lib/bds/tui.ex:2089 #, elixir-autogen, elixir-format msgid "Regenerate Calendar" msgstr "Régénérer le calendrier" @@ -2157,7 +2159,7 @@ msgid "Regenerate Missing Thumbnails" msgstr "Régénérer les vignettes manquantes" #: lib/bds/desktop/menu_bar.ex:249 -#: lib/bds/tui.ex:2081 +#: lib/bds/tui.ex:2083 #, elixir-autogen, elixir-format msgid "Reindex Text" msgstr "Réindexer le texte" @@ -2342,10 +2344,11 @@ msgstr "Les capacités de script sont configurées au niveau de l’application #: lib/bds/desktop/shell_live/script_editor.ex:175 #: lib/bds/desktop/shell_live/script_editor.ex:191 #: lib/bds/desktop/shell_live/script_editor.ex:194 -#: lib/bds/desktop/shell_live/script_editor.ex:216 -#: lib/bds/desktop/shell_live/script_editor.ex:219 -#: lib/bds/desktop/shell_live/script_editor.ex:234 -#: lib/bds/tui.ex:1941 +#: lib/bds/desktop/shell_live/script_editor.ex:212 +#: lib/bds/desktop/shell_live/script_editor.ex:222 +#: lib/bds/desktop/shell_live/script_editor.ex:225 +#: lib/bds/desktop/shell_live/script_editor.ex:240 +#: lib/bds/tui.ex:1943 #: lib/bds/ui/registry.ex:38 #: lib/bds/ui/sidebar.ex:63 #: lib/bds/ui/sidebar.ex:115 @@ -2452,7 +2455,7 @@ msgstr "Similarité sémantique" #: lib/bds/desktop/shell_live/settings_editor/project_settings.ex:60 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:11 -#: lib/bds/tui.ex:1943 +#: lib/bds/tui.ex:1945 #: lib/bds/ui/registry.ex:86 #: lib/bds/ui/registry.ex:101 #: lib/bds/ui/sidebar.ex:795 @@ -2478,7 +2481,7 @@ msgstr "Site" #: lib/bds/desktop/shell_live/misc_editor.ex:412 #: lib/bds/tui.ex:318 #: lib/bds/tui.ex:320 -#: lib/bds/tui.ex:1668 +#: lib/bds/tui.ex:1670 #: lib/bds/ui/registry.ex:125 #, elixir-autogen, elixir-format msgid "Site Validation" @@ -2575,7 +2578,7 @@ msgid "System Prompt" msgstr "Prompt système" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:16 -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #: lib/bds/ui/sidebar.ex:785 #, elixir-autogen, elixir-format msgid "Tag Cloud" @@ -2602,8 +2605,8 @@ msgstr "Nom du mot-clé" #: lib/bds/desktop/shell_live/tags_editor.ex:217 #: lib/bds/desktop/shell_live/tags_editor.ex:248 #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:11 -#: lib/bds/tui.ex:1920 -#: lib/bds/tui.ex:1942 +#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1944 #: lib/bds/ui/registry.ex:54 #: lib/bds/ui/registry.ex:103 #: lib/bds/ui/sidebar.ex:289 @@ -2613,8 +2616,8 @@ msgstr "Nom du mot-clé" msgid "Tags" msgstr "Tags" -#: lib/bds/desktop/shell_live.ex:786 -#: lib/bds/desktop/shell_live/panel_renderer.ex:54 +#: lib/bds/desktop/shell_live.ex:819 +#: lib/bds/desktop/shell_live/panel_renderer.ex:63 #: lib/bds/tui.ex:1220 #, elixir-autogen, elixir-format msgid "Tasks" @@ -2661,7 +2664,7 @@ msgstr "La syntaxe du template est valide" #: lib/bds/desktop/shell_live/template_editor.ex:171 #: lib/bds/desktop/shell_live/template_editor.ex:176 #: lib/bds/desktop/shell_live/template_editor.ex:191 -#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1942 #: lib/bds/ui/registry.ex:46 #: lib/bds/ui/sidebar.ex:71 #: lib/bds/ui/sidebar.ex:122 @@ -2670,7 +2673,7 @@ msgstr "La syntaxe du template est valide" msgid "Templates" msgstr "Modèles" -#: lib/bds/desktop/shell_live/panel_renderer.ex:194 +#: lib/bds/desktop/shell_live/panel_renderer.ex:293 #, elixir-autogen, elixir-format msgid "The shared lower panel is available for tasks, output, git details, and editor-specific diagnostics." msgstr "Le panneau inférieur partagé est disponible pour les tâches, la sortie, les détails Git et les diagnostics spécifiques à l’éditeur." @@ -2885,7 +2888,7 @@ msgid "Updated URLs" msgstr "URLs mises à jour" #: lib/bds/desktop/menu_bar.ex:259 -#: lib/bds/tui.ex:2099 +#: lib/bds/tui.ex:2101 #, elixir-autogen, elixir-format msgid "Upload Site" msgstr "Téléverser le site" @@ -2913,13 +2916,13 @@ msgid "Validate" msgstr "Valider" #: lib/bds/desktop/menu_bar.ex:258 -#: lib/bds/tui.ex:2077 +#: lib/bds/tui.ex:2079 #, elixir-autogen, elixir-format msgid "Validate Site" msgstr "Valider le site" #: lib/bds/desktop/menu_bar.ex:253 -#: lib/bds/tui.ex:2090 +#: lib/bds/tui.ex:2092 #, elixir-autogen, elixir-format msgid "Validate Translations" msgstr "Valider les traductions" @@ -3301,12 +3304,12 @@ msgstr "Bienvenue dans l’assistant IA" msgid "Comparing database and filesystem metadata" msgstr "Comparaison des métadonnées entre la base et le système de fichiers" -#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:717 #, elixir-autogen, elixir-format msgid "Added %{count} images to post" msgstr "%{count} images ajoutées à l'article" -#: lib/bds/desktop/shell_live.ex:652 +#: lib/bds/desktop/shell_live.ex:685 #, elixir-autogen, elixir-format msgid "Added %{title}" msgstr "%{title} ajouté" @@ -3327,18 +3330,18 @@ msgstr "Guide utilisateur pour les flux éditoriaux, médias, modèles, traducti msgid "Image Import Concurrency" msgstr "Importation simultanée d'images" -#: lib/bds/desktop/shell_live.ex:444 -#: lib/bds/desktop/shell_live.ex:457 -#: lib/bds/desktop/shell_live.ex:651 -#: lib/bds/desktop/shell_live.ex:683 -#: lib/bds/desktop/shell_live.ex:694 -#: lib/bds/desktop/shell_live.ex:705 +#: lib/bds/desktop/shell_live.ex:477 +#: lib/bds/desktop/shell_live.ex:490 +#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:716 +#: lib/bds/desktop/shell_live.ex:727 +#: lib/bds/desktop/shell_live.ex:738 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:420 #, elixir-autogen, elixir-format msgid "Add Gallery Images" msgstr "Ajouter des images à la galerie" -#: lib/bds/desktop/shell_live.ex:706 +#: lib/bds/desktop/shell_live.ex:739 #, elixir-autogen, elixir-format msgid "Failed to process %{path}: %{reason}" msgstr "Impossible de traiter %{path} : %{reason}" @@ -3400,7 +3403,7 @@ msgid "Commit" msgstr "Commit" #: lib/bds/desktop/shell_live/sidebar_components.ex:555 -#: lib/bds/tui.ex:1490 +#: lib/bds/tui.ex:1492 #, elixir-autogen, elixir-format msgid "Commit message" msgstr "Message de commit" @@ -3536,12 +3539,12 @@ msgstr "renommé" msgid "untracked" msgstr "non suivi" -#: lib/bds/desktop/shell_live.ex:812 +#: lib/bds/desktop/shell_live.ex:845 #, elixir-autogen, elixir-format msgid "Blogmark" msgstr "Blogmark" -#: lib/bds/desktop/shell_live.ex:855 +#: lib/bds/desktop/shell_live.ex:888 #, elixir-autogen, elixir-format msgid "Open a project before importing a blogmark." msgstr "Ouvrez un projet avant d’importer un blogmark." @@ -3582,7 +3585,7 @@ msgstr "Supprimer le tag" msgid "Failed to copy bookmarklet to clipboard" msgstr "Échec de la copie du bookmarklet dans le presse-papiers" -#: lib/bds/desktop/shell_live.ex:824 +#: lib/bds/desktop/shell_live.ex:857 #, elixir-autogen, elixir-format msgid "The project this blogmark targets does not exist here." msgstr "Le projet ciblé par ce blogmark n'existe pas ici." @@ -3593,7 +3596,7 @@ msgid "Suggested tags" msgstr "Tags suggérés" #: lib/bds/desktop/menu_bar.ex:257 -#: lib/bds/tui.ex:2078 +#: lib/bds/tui.ex:2080 #, elixir-autogen, elixir-format msgid "Force Render Site" msgstr "Forcer la régénération du site" @@ -3690,12 +3693,12 @@ msgstr "OK" msgid "The endpoint returned no models. You can still type a model name manually." msgstr "Le point de terminaison n'a renvoyé aucun modèle. Vous pouvez toujours saisir un nom de modèle manuellement." -#: lib/bds/tui.ex:2036 +#: lib/bds/tui.ex:2038 #, elixir-autogen, elixir-format msgid "AI is unavailable in airplane mode without a local endpoint." msgstr "L'IA n'est pas disponible en mode avion sans point de terminaison local." -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:2165 #, elixir-autogen, elixir-format msgid "Could not load this file." msgstr "Impossible de charger ce fichier." @@ -3710,12 +3713,12 @@ msgstr "La modification de cet élément n'est pas encore disponible dans l'inte msgid "No suggestions returned." msgstr "Aucune suggestion reçue." -#: lib/bds/tui.ex:2160 +#: lib/bds/tui.ex:2162 #, elixir-autogen, elixir-format msgid "Only images can be previewed." msgstr "Seules les images peuvent être prévisualisées." -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1955 #, elixir-autogen, elixir-format msgid "Post not found." msgstr "Article introuvable." @@ -3725,18 +3728,18 @@ msgstr "Article introuvable." msgid "Press enter to preview %{name}." msgstr "Appuyez sur Entrée pour prévisualiser %{name}." -#: lib/bds/tui.ex:2006 +#: lib/bds/tui.ex:2008 #, elixir-autogen, elixir-format msgid "Published." msgstr "Publié." -#: lib/bds/tui.ex:2022 +#: lib/bds/tui.ex:2024 #, elixir-autogen, elixir-format msgid "Save before switching languages." msgstr "Enregistrez avant de changer de langue." #: lib/bds/tui.ex:540 -#: lib/bds/tui.ex:2007 +#: lib/bds/tui.ex:2009 #, elixir-autogen, elixir-format msgid "Saved." msgstr "Enregistré." @@ -3761,18 +3764,18 @@ msgstr "Titre (ctrl+t pour modifier)" msgid "Title (editing — enter to confirm)" msgstr "Titre (édition — Entrée pour confirmer)" -#: lib/bds/tui.ex:1492 +#: lib/bds/tui.ex:1494 #, elixir-autogen, elixir-format msgid "Working…" msgstr "Traitement en cours…" -#: lib/bds/tui.ex:1514 +#: lib/bds/tui.ex:1516 #, elixir-autogen, elixir-format msgid "esc to close" msgstr "échap pour fermer" #: lib/bds/desktop/menu_bar.ex:83 -#: lib/bds/desktop/shell_live.ex:1110 +#: lib/bds/desktop/shell_live.ex:1176 #, elixir-autogen, elixir-format msgid "Connect to Server" msgstr "Se connecter au serveur" @@ -3793,7 +3796,7 @@ msgid "Disconnect from Server" msgstr "Se déconnecter du serveur" #: lib/bds/desktop/menu_bar.ex:72 -#: lib/bds/desktop/shell_live.ex:1097 +#: lib/bds/desktop/shell_live.ex:1163 #, elixir-autogen, elixir-format msgid "Server address (user@host or user@host:port), public-key auth:" msgstr "Adresse du serveur (user@host ou user@host:port), authentification par clé publique :" @@ -3803,12 +3806,12 @@ msgstr "Adresse du serveur (user@host ou user@host:port), authentification par c msgid "Use the form user@host or user@host:port." msgstr "Utilisez le format user@host ou user@host:port." -#: lib/bds/tui.ex:1457 +#: lib/bds/tui.ex:1456 #, elixir-autogen, elixir-format msgid "Preview (ctrl+e to edit)" msgstr "Aperçu (ctrl+e pour modifier)" -#: lib/bds/tui.ex:1771 +#: lib/bds/tui.ex:1773 #, elixir-autogen, elixir-format msgid "ctrl+s save · ctrl+p publish · ctrl+e preview · ctrl+t title · ctrl+l language · ctrl+g AI · esc back" msgstr "ctrl+s enregistrer · ctrl+p publier · ctrl+e aperçu · ctrl+t titre · ctrl+l langue · ctrl+g IA · échap retour" @@ -3818,7 +3821,7 @@ msgstr "ctrl+s enregistrer · ctrl+p publier · ctrl+e aperçu · ctrl+t titre msgid "All tasks finished." msgstr "Toutes les tâches sont terminées." -#: lib/bds/tui.ex:1540 +#: lib/bds/tui.ex:1542 #, elixir-autogen, elixir-format msgid "Commands — esc to close" msgstr "Commandes — échap pour fermer" @@ -3828,27 +3831,27 @@ msgstr "Commandes — échap pour fermer" msgid "Unknown command." msgstr "Commande inconnue." -#: lib/bds/tui.ex:1530 +#: lib/bds/tui.ex:1532 #, elixir-autogen, elixir-format msgid "[report/apply in GUI]" msgstr "[rapport/application dans la GUI]" -#: lib/bds/tui.ex:1679 +#: lib/bds/tui.ex:1681 #, elixir-autogen, elixir-format msgid "%{diffs} differences · %{orphans} orphan files" msgstr "%{diffs} différences · %{orphans} fichiers orphelins" -#: lib/bds/tui.ex:1711 +#: lib/bds/tui.ex:1713 #, elixir-autogen, elixir-format msgid "Expected %{expected} · Existing %{existing}" msgstr "Attendu %{expected} · Existant %{existing}" -#: lib/bds/tui.ex:1728 +#: lib/bds/tui.ex:1730 #, elixir-autogen, elixir-format msgid "Extra files (will be removed):" msgstr "Fichiers en trop (seront supprimés) :" -#: lib/bds/tui.ex:1724 +#: lib/bds/tui.ex:1726 #, elixir-autogen, elixir-format msgid "Missing pages (will be rendered):" msgstr "Pages manquantes (seront rendues) :" @@ -3863,27 +3866,27 @@ msgstr "Rien à appliquer." msgid "Nothing to repair." msgstr "Rien à réparer." -#: lib/bds/tui.ex:1702 +#: lib/bds/tui.ex:1704 #, elixir-autogen, elixir-format msgid "Orphan files (not in database):" msgstr "Fichiers orphelins (absents de la base de données) :" -#: lib/bds/tui.ex:1718 +#: lib/bds/tui.ex:1720 #, elixir-autogen, elixir-format msgid "Sitemap changed." msgstr "Sitemap modifié." -#: lib/bds/tui.ex:1732 +#: lib/bds/tui.ex:1734 #, elixir-autogen, elixir-format msgid "Updated posts (will be re-rendered):" msgstr "Articles mis à jour (seront rendus à nouveau) :" -#: lib/bds/tui.ex:1669 +#: lib/bds/tui.ex:1671 #, elixir-autogen, elixir-format msgid "enter apply changes · esc close" msgstr "entrée appliquer les modifications · échap fermer" -#: lib/bds/tui.ex:1664 +#: lib/bds/tui.ex:1666 #, elixir-autogen, elixir-format msgid "enter repair all from files · esc close" msgstr "entrée tout réparer depuis les fichiers · échap fermer" @@ -3898,7 +3901,7 @@ msgstr "Blog importé" msgid "Not a folder: %{path}" msgstr "Pas un dossier : %{path}" -#: lib/bds/tui.ex:1606 +#: lib/bds/tui.ex:1608 #, elixir-autogen, elixir-format msgid "Projects — enter switch · o open existing · esc close" msgstr "Projets — entrée changer · o ouvrir existant · échap fermer" @@ -3908,12 +3911,12 @@ msgstr "Projets — entrée changer · o ouvrir existant · échap fermer" msgid "Switched to %{name}." msgstr "Passage à %{name}." -#: lib/bds/tui.ex:1634 +#: lib/bds/tui.ex:1636 #, elixir-autogen, elixir-format msgid "Matching folders" msgstr "Dossiers correspondants" -#: lib/bds/tui.ex:1572 +#: lib/bds/tui.ex:1574 #, elixir-autogen, elixir-format msgid "Open Existing Blog — type a folder path · tab complete · enter open · esc back" msgstr "Ouvrir un blog existant — saisir le chemin d'un dossier · tab compléter · entrée ouvrir · échap retour" @@ -3933,7 +3936,7 @@ msgstr "Commit effectué." msgid "Diff (pgup/pgdn scroll)" msgstr "Diff (pgup/pgdn pour défiler)" -#: lib/bds/tui.ex:1799 +#: lib/bds/tui.ex:1801 #, elixir-autogen, elixir-format msgid "No changes." msgstr "Aucune modification." @@ -4044,7 +4047,7 @@ msgstr "Thème" msgid "enter edit · ctrl+s save · esc close" msgstr "entrée modifier · ctrl+s enregistrer · échap fermer" -#: lib/bds/tui.ex:1750 +#: lib/bds/tui.ex:1752 #, elixir-autogen, elixir-format msgid "enter edit/toggle/cycle · ctrl+s save · esc close · ctrl+q quit" msgstr "entrée modifier/basculer/parcourir · ctrl+s enregistrer · échap fermer · ctrl+q quitter" @@ -4054,12 +4057,12 @@ msgstr "entrée modifier/basculer/parcourir · ctrl+s enregistrer · échap ferm msgid "not supported yet" msgstr "pas encore pris en charge" -#: lib/bds/tui.ex:1757 +#: lib/bds/tui.ex:1759 #, elixir-autogen, elixir-format msgid "c commit · u pull · s push · enter jump to file · pgup/pgdn scroll diff · 1-7 views · ctrl+q quit" msgstr "c commit · u pull · s push · entrée aller au fichier · pgup/pgdn défiler le diff · 1-7 vues · ctrl+q quitter" -#: lib/bds/tui.ex:1764 +#: lib/bds/tui.ex:1766 #, elixir-autogen, elixir-format msgid "enter open · n new post · 1-7 views · p projects · / search · : commands (:? help) · r refresh · ctrl+q quit" msgstr "entrée ouvrir · n nouvel article · 1-7 vues · p projets · / rechercher · : commandes (:? aide) · r actualiser · ctrl+q quitter" @@ -4191,12 +4194,12 @@ msgstr "La cible de la fusion doit être l'un des mots-clés marqués" msgid "default" msgstr "par défaut" -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #, elixir-autogen, elixir-format msgid "esc close" msgstr "échap fermer" -#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1924 #, elixir-autogen, elixir-format msgid "n new · enter rename · c colour · t template · d delete · s sync · esc close" msgstr "n nouveau · entrée renommer · c couleur · t modèle · d supprimer · s synchroniser · échap fermer" @@ -4206,7 +4209,17 @@ msgstr "n nouveau · entrée renommer · c couleur · t modèle · d supprimer msgid "none" msgstr "aucune" -#: lib/bds/tui.ex:1927 +#: lib/bds/tui.ex:1929 #, elixir-autogen, elixir-format msgid "space mark · m merge into selected · esc close" msgstr "espace marquer · m fusionner dans la sélection · échap fermer" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:157 +#, elixir-autogen, elixir-format +msgid "Pending" +msgstr "En attente" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:156 +#, elixir-autogen, elixir-format +msgid "Running" +msgstr "En cours" diff --git a/priv/gettext/it/LC_MESSAGES/ui.po b/priv/gettext/it/LC_MESSAGES/ui.po index e3030af..9bbfce5 100644 --- a/priv/gettext/it/LC_MESSAGES/ui.po +++ b/priv/gettext/it/LC_MESSAGES/ui.po @@ -86,7 +86,7 @@ msgstr "Impostazioni IA" #: lib/bds/tui.ex:1175 #: lib/bds/tui.ex:1178 #: lib/bds/tui.ex:1186 -#: lib/bds/tui.ex:2035 +#: lib/bds/tui.ex:2037 #, elixir-autogen, elixir-format msgid "AI Suggestions" msgstr "Suggerimenti IA" @@ -343,7 +343,7 @@ msgstr "Autore" msgid "Auto" msgstr "Automatico" -#: lib/bds/desktop/shell_live.ex:445 +#: lib/bds/desktop/shell_live.ex:478 #: lib/bds/desktop/shell_live/chat_editor.ex:234 #: lib/bds/desktop/shell_live/media_editor.ex:171 #: lib/bds/desktop/shell_live/media_editor.ex:364 @@ -368,7 +368,7 @@ msgstr "Strumenti di automazione" msgid "Available languages" msgstr "Lingue disponibili" -#: lib/bds/desktop/shell_live/panel_renderer.ex:124 +#: lib/bds/desktop/shell_live/panel_renderer.ex:223 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:313 #, elixir-autogen, elixir-format msgid "Backlinks" @@ -441,6 +441,7 @@ msgstr "La copia del bookmarklet è collegata tramite il runtime desktop e l’U #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:183 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:208 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:225 +#: lib/bds/desktop/shell_live/panel_renderer.ex:143 #, elixir-autogen, elixir-format msgid "Cancel" msgstr "Annulla" @@ -494,7 +495,7 @@ msgstr "Valori predefiniti delle categorie, opzioni di rendering e collegamento msgid "Category name is required" msgstr "Il nome della categoria è obbligatorio" -#: lib/bds/desktop/shell_live.ex:791 +#: lib/bds/desktop/shell_live.ex:824 #: lib/bds/desktop/shell_live/chat_editor.ex:87 #: lib/bds/desktop/shell_live/chat_editor.ex:233 #: lib/bds/desktop/shell_live/chat_editor.ex:323 @@ -575,7 +576,7 @@ msgid "Collapse unchanged diff hunks" msgstr "Comprimi i blocchi diff invariati" #: lib/bds/desktop/shell_live/overlay_manager.ex:423 -#: lib/bds/tui.ex:2131 +#: lib/bds/tui.ex:2133 #, elixir-autogen, elixir-format msgid "Command completed" msgstr "Comando completato" @@ -593,7 +594,7 @@ msgstr "Conferma" #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:375 #: lib/bds/desktop/shell_live/script_editor_html/script_editor.html.heex:34 #: lib/bds/desktop/shell_live/template_editor_html/template_editor.html.heex:32 -#: lib/bds/tui.ex:1468 +#: lib/bds/tui.ex:1467 #: lib/bds/ui/settings_form.ex:137 #: lib/bds/ui/sidebar.ex:801 #, elixir-autogen, elixir-format @@ -606,6 +607,7 @@ msgid "Content Categories" msgstr "Categorie di contenuto" #: lib/bds/desktop/menu_bar.ex:226 +#: lib/bds/desktop/shell_live/panel_renderer.ex:183 #, elixir-autogen, elixir-format msgid "Copy" msgstr "Copia" @@ -1040,7 +1042,7 @@ msgid "Filename" msgstr "Nome file" #: lib/bds/desktop/menu_bar.ex:254 -#: lib/bds/tui.ex:2095 +#: lib/bds/tui.ex:2097 #, elixir-autogen, elixir-format msgid "Fill Missing Translations" msgstr "Completa traduzioni mancanti" @@ -1051,7 +1053,7 @@ msgid "Find" msgstr "Trova" #: lib/bds/desktop/menu_bar.ex:255 -#: lib/bds/tui.ex:2098 +#: lib/bds/tui.ex:2100 #, elixir-autogen, elixir-format msgid "Find Duplicate Posts" msgstr "Trova post duplicati" @@ -1078,14 +1080,14 @@ msgid "Gallery" msgstr "Galleria" #: lib/bds/desktop/menu_bar.ex:256 -#: lib/bds/tui.ex:2079 +#: lib/bds/tui.ex:2081 #, elixir-autogen, elixir-format msgid "Generate Site" msgstr "Genera sito" -#: lib/bds/desktop/shell_live.ex:792 +#: lib/bds/desktop/shell_live.ex:825 #: lib/bds/desktop/shell_live/socket_state.ex:109 -#: lib/bds/tui.ex:1944 +#: lib/bds/tui.ex:1946 #: lib/bds/ui/sidebar.ex:826 #, elixir-autogen, elixir-format msgid "Git" @@ -1098,8 +1100,8 @@ msgid "Git Diff" msgstr "Diff Git" #: lib/bds/desktop/shell_data.ex:228 -#: lib/bds/desktop/shell_live.ex:788 -#: lib/bds/desktop/shell_live/panel_renderer.ex:171 +#: lib/bds/desktop/shell_live.ex:821 +#: lib/bds/desktop/shell_live/panel_renderer.ex:270 #, elixir-autogen, elixir-format msgid "Git Log" msgstr "Log Git" @@ -1222,9 +1224,9 @@ msgstr "Definizioni di importazione" msgid "Import failed: %{error}" msgstr "Importazione non riuscita: %{error}" -#: lib/bds/desktop/shell_live.ex:608 -#: lib/bds/desktop/shell_live.ex:904 -#: lib/bds/desktop/shell_live.ex:910 +#: lib/bds/desktop/shell_live.ex:641 +#: lib/bds/desktop/shell_live.ex:970 +#: lib/bds/desktop/shell_live.ex:976 #: lib/bds/desktop/shell_live/sidebar_create.ex:47 #, elixir-autogen, elixir-format msgid "Import media" @@ -1325,7 +1327,7 @@ msgstr "Media collegati" msgid "Linked Posts" msgstr "Post collegati" -#: lib/bds/desktop/shell_live/panel_renderer.ex:142 +#: lib/bds/desktop/shell_live/panel_renderer.ex:241 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:325 #, elixir-autogen, elixir-format msgid "Links To" @@ -1404,9 +1406,9 @@ msgstr "Numero massimo di post per pagina" #: lib/bds/desktop/shell_live/misc_editor.ex:762 #: lib/bds/desktop/shell_live/sidebar_components.ex:654 #: lib/bds/desktop/shell_live/sidebar_delete.ex:175 -#: lib/bds/tui.ex:1939 -#: lib/bds/tui.ex:2160 -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:1941 +#: lib/bds/tui.ex:2162 +#: lib/bds/tui.ex:2165 #: lib/bds/ui/registry.ex:30 #: lib/bds/ui/registry.ex:100 #: lib/bds/ui/sidebar.ex:578 @@ -1435,7 +1437,7 @@ msgid "Merge" msgstr "Unisci" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:78 -#: lib/bds/tui.ex:1926 +#: lib/bds/tui.ex:1928 #: lib/bds/ui/sidebar.ex:787 #, elixir-autogen, elixir-format msgid "Merge Tags" @@ -1453,8 +1455,8 @@ msgstr "Metadati" #: lib/bds/tui.ex:285 #: lib/bds/tui.ex:291 #: lib/bds/tui.ex:302 -#: lib/bds/tui.ex:1663 -#: lib/bds/tui.ex:2076 +#: lib/bds/tui.ex:1665 +#: lib/bds/tui.ex:2078 #: lib/bds/ui/registry.ex:111 #, elixir-autogen, elixir-format msgid "Metadata Diff" @@ -1532,12 +1534,12 @@ msgstr "Nuovo modello" msgid "No Template" msgstr "Nessun template" -#: lib/bds/desktop/shell_live/panel_renderer.ex:55 +#: lib/bds/desktop/shell_live/panel_renderer.ex:64 #, elixir-autogen, elixir-format msgid "No background tasks running" msgstr "Nessuna attività in background in esecuzione" -#: lib/bds/desktop/shell_live/panel_renderer.ex:179 +#: lib/bds/desktop/shell_live/panel_renderer.ex:278 #, elixir-autogen, elixir-format msgid "No commit subject" msgstr "Nessun oggetto del commit" @@ -1547,7 +1549,7 @@ msgstr "Nessun oggetto del commit" msgid "No folder selected" msgstr "Nessuna cartella selezionata" -#: lib/bds/desktop/shell_live/panel_renderer.ex:172 +#: lib/bds/desktop/shell_live/panel_renderer.ex:271 #, elixir-autogen, elixir-format msgid "No git history yet" msgstr "Nessuna cronologia Git" @@ -1607,7 +1609,7 @@ msgstr "Nessun file orfano selezionato" msgid "No pages yet" msgstr "Nessuna pagina" -#: lib/bds/desktop/shell_live/panel_renderer.ex:119 +#: lib/bds/desktop/shell_live/panel_renderer.ex:218 #, elixir-autogen, elixir-format msgid "No post links yet" msgstr "Nessun collegamento ad articoli" @@ -1632,7 +1634,7 @@ msgstr "Nessuna azione di riparazione disponibile" msgid "No settings match the current search" msgstr "Nessuna impostazione corrisponde alla ricerca corrente" -#: lib/bds/desktop/shell_live/panel_renderer.ex:84 +#: lib/bds/desktop/shell_live/panel_renderer.ex:173 #, elixir-autogen, elixir-format msgid "No shell output yet" msgstr "Nessun output della shell per ora" @@ -1801,7 +1803,7 @@ msgid "Open Settings" msgstr "Apri Impostazioni" #: lib/bds/desktop/menu_bar.ex:217 -#: lib/bds/tui.ex:2100 +#: lib/bds/tui.ex:2102 #, elixir-autogen, elixir-format msgid "Open in Browser" msgstr "Apri nel browser" @@ -1832,8 +1834,8 @@ msgstr "Altro" msgid "Other (%{count})" msgstr "Altro (%{count})" -#: lib/bds/desktop/shell_live.ex:787 -#: lib/bds/desktop/shell_live/panel_renderer.ex:83 +#: lib/bds/desktop/shell_live.ex:820 +#: lib/bds/desktop/shell_live/panel_renderer.ex:172 #, elixir-autogen, elixir-format msgid "Output" msgstr "Output" @@ -1915,7 +1917,7 @@ msgid "Post" msgstr "Post" #: lib/bds/desktop/shell_data.ex:231 -#: lib/bds/desktop/shell_live/panel_renderer.ex:118 +#: lib/bds/desktop/shell_live/panel_renderer.ex:217 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:310 #, elixir-autogen, elixir-format msgid "Post Links" @@ -1950,8 +1952,8 @@ msgstr "Articolo salvato" #: lib/bds/desktop/menu_bar.ex:233 #: lib/bds/desktop/shell_live/misc_editor.ex:664 #: lib/bds/desktop/shell_live/misc_editor.ex:761 -#: lib/bds/tui.ex:1938 -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1955 #: lib/bds/ui/registry.ex:14 #: lib/bds/ui/sidebar.ex:271 #, elixir-autogen, elixir-format @@ -2081,14 +2083,14 @@ msgstr "Pronto per importare:" #: lib/bds/desktop/menu_bar.ex:248 #: lib/bds/tui.ex:1016 -#: lib/bds/tui.ex:2080 +#: lib/bds/tui.ex:2082 #, elixir-autogen, elixir-format msgid "Rebuild Database" msgstr "Ricostruisci database" #: lib/bds/desktop/menu_bar.ex:250 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:381 -#: lib/bds/tui.ex:2084 +#: lib/bds/tui.ex:2086 #, elixir-autogen, elixir-format msgid "Rebuild Embedding Index" msgstr "Ricostruisci indice embeddings" @@ -2146,7 +2148,7 @@ msgid "Refresh Translation" msgstr "Aggiorna traduzione" #: lib/bds/desktop/menu_bar.ex:252 -#: lib/bds/tui.ex:2087 +#: lib/bds/tui.ex:2089 #, elixir-autogen, elixir-format msgid "Regenerate Calendar" msgstr "Rigenera calendario" @@ -2157,7 +2159,7 @@ msgid "Regenerate Missing Thumbnails" msgstr "Rigenera miniature mancanti" #: lib/bds/desktop/menu_bar.ex:249 -#: lib/bds/tui.ex:2081 +#: lib/bds/tui.ex:2083 #, elixir-autogen, elixir-format msgid "Reindex Text" msgstr "Reindicizza testo" @@ -2342,10 +2344,11 @@ msgstr "Le capacità di scripting sono configurate a livello applicativo nella r #: lib/bds/desktop/shell_live/script_editor.ex:175 #: lib/bds/desktop/shell_live/script_editor.ex:191 #: lib/bds/desktop/shell_live/script_editor.ex:194 -#: lib/bds/desktop/shell_live/script_editor.ex:216 -#: lib/bds/desktop/shell_live/script_editor.ex:219 -#: lib/bds/desktop/shell_live/script_editor.ex:234 -#: lib/bds/tui.ex:1941 +#: lib/bds/desktop/shell_live/script_editor.ex:212 +#: lib/bds/desktop/shell_live/script_editor.ex:222 +#: lib/bds/desktop/shell_live/script_editor.ex:225 +#: lib/bds/desktop/shell_live/script_editor.ex:240 +#: lib/bds/tui.ex:1943 #: lib/bds/ui/registry.ex:38 #: lib/bds/ui/sidebar.ex:63 #: lib/bds/ui/sidebar.ex:115 @@ -2452,7 +2455,7 @@ msgstr "Somiglianza semantica" #: lib/bds/desktop/shell_live/settings_editor/project_settings.ex:60 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:11 -#: lib/bds/tui.ex:1943 +#: lib/bds/tui.ex:1945 #: lib/bds/ui/registry.ex:86 #: lib/bds/ui/registry.ex:101 #: lib/bds/ui/sidebar.ex:795 @@ -2478,7 +2481,7 @@ msgstr "Sito" #: lib/bds/desktop/shell_live/misc_editor.ex:412 #: lib/bds/tui.ex:318 #: lib/bds/tui.ex:320 -#: lib/bds/tui.ex:1668 +#: lib/bds/tui.ex:1670 #: lib/bds/ui/registry.ex:125 #, elixir-autogen, elixir-format msgid "Site Validation" @@ -2575,7 +2578,7 @@ msgid "System Prompt" msgstr "Prompt di sistema" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:16 -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #: lib/bds/ui/sidebar.ex:785 #, elixir-autogen, elixir-format msgid "Tag Cloud" @@ -2602,8 +2605,8 @@ msgstr "Nome del tag" #: lib/bds/desktop/shell_live/tags_editor.ex:217 #: lib/bds/desktop/shell_live/tags_editor.ex:248 #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:11 -#: lib/bds/tui.ex:1920 -#: lib/bds/tui.ex:1942 +#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1944 #: lib/bds/ui/registry.ex:54 #: lib/bds/ui/registry.ex:103 #: lib/bds/ui/sidebar.ex:289 @@ -2613,8 +2616,8 @@ msgstr "Nome del tag" msgid "Tags" msgstr "Tag" -#: lib/bds/desktop/shell_live.ex:786 -#: lib/bds/desktop/shell_live/panel_renderer.ex:54 +#: lib/bds/desktop/shell_live.ex:819 +#: lib/bds/desktop/shell_live/panel_renderer.ex:63 #: lib/bds/tui.ex:1220 #, elixir-autogen, elixir-format msgid "Tasks" @@ -2661,7 +2664,7 @@ msgstr "La sintassi del template è valida" #: lib/bds/desktop/shell_live/template_editor.ex:171 #: lib/bds/desktop/shell_live/template_editor.ex:176 #: lib/bds/desktop/shell_live/template_editor.ex:191 -#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1942 #: lib/bds/ui/registry.ex:46 #: lib/bds/ui/sidebar.ex:71 #: lib/bds/ui/sidebar.ex:122 @@ -2670,7 +2673,7 @@ msgstr "La sintassi del template è valida" msgid "Templates" msgstr "Template" -#: lib/bds/desktop/shell_live/panel_renderer.ex:194 +#: lib/bds/desktop/shell_live/panel_renderer.ex:293 #, elixir-autogen, elixir-format msgid "The shared lower panel is available for tasks, output, git details, and editor-specific diagnostics." msgstr "Il pannello inferiore condiviso è disponibile per attività, output, dettagli Git e diagnostica specifica dell’editor." @@ -2885,7 +2888,7 @@ msgid "Updated URLs" msgstr "URL aggiornati" #: lib/bds/desktop/menu_bar.ex:259 -#: lib/bds/tui.ex:2099 +#: lib/bds/tui.ex:2101 #, elixir-autogen, elixir-format msgid "Upload Site" msgstr "Carica sito" @@ -2913,13 +2916,13 @@ msgid "Validate" msgstr "Valida" #: lib/bds/desktop/menu_bar.ex:258 -#: lib/bds/tui.ex:2077 +#: lib/bds/tui.ex:2079 #, elixir-autogen, elixir-format msgid "Validate Site" msgstr "Valida sito" #: lib/bds/desktop/menu_bar.ex:253 -#: lib/bds/tui.ex:2090 +#: lib/bds/tui.ex:2092 #, elixir-autogen, elixir-format msgid "Validate Translations" msgstr "Valida traduzioni" @@ -3301,12 +3304,12 @@ msgstr "Benvenuto nell’assistente IA" msgid "Comparing database and filesystem metadata" msgstr "Confronto tra i metadati del database e del filesystem" -#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:717 #, elixir-autogen, elixir-format msgid "Added %{count} images to post" msgstr "%{count} immagini aggiunte al post" -#: lib/bds/desktop/shell_live.ex:652 +#: lib/bds/desktop/shell_live.ex:685 #, elixir-autogen, elixir-format msgid "Added %{title}" msgstr "%{title} aggiunto" @@ -3327,18 +3330,18 @@ msgstr "Guida per l'utente finale per flussi editoriali, media, modelli, traduzi msgid "Image Import Concurrency" msgstr "Importazione simultanea immagini" -#: lib/bds/desktop/shell_live.ex:444 -#: lib/bds/desktop/shell_live.ex:457 -#: lib/bds/desktop/shell_live.ex:651 -#: lib/bds/desktop/shell_live.ex:683 -#: lib/bds/desktop/shell_live.ex:694 -#: lib/bds/desktop/shell_live.ex:705 +#: lib/bds/desktop/shell_live.ex:477 +#: lib/bds/desktop/shell_live.ex:490 +#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:716 +#: lib/bds/desktop/shell_live.ex:727 +#: lib/bds/desktop/shell_live.ex:738 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:420 #, elixir-autogen, elixir-format msgid "Add Gallery Images" msgstr "Aggiungi immagini alla galleria" -#: lib/bds/desktop/shell_live.ex:706 +#: lib/bds/desktop/shell_live.ex:739 #, elixir-autogen, elixir-format msgid "Failed to process %{path}: %{reason}" msgstr "Impossibile elaborare %{path}: %{reason}" @@ -3400,7 +3403,7 @@ msgid "Commit" msgstr "Commit" #: lib/bds/desktop/shell_live/sidebar_components.ex:555 -#: lib/bds/tui.ex:1490 +#: lib/bds/tui.ex:1492 #, elixir-autogen, elixir-format msgid "Commit message" msgstr "Messaggio di commit" @@ -3536,12 +3539,12 @@ msgstr "rinominato" msgid "untracked" msgstr "non tracciato" -#: lib/bds/desktop/shell_live.ex:812 +#: lib/bds/desktop/shell_live.ex:845 #, elixir-autogen, elixir-format msgid "Blogmark" msgstr "Blogmark" -#: lib/bds/desktop/shell_live.ex:855 +#: lib/bds/desktop/shell_live.ex:888 #, elixir-autogen, elixir-format msgid "Open a project before importing a blogmark." msgstr "Apri un progetto prima di importare un blogmark." @@ -3582,7 +3585,7 @@ msgstr "Elimina tag" msgid "Failed to copy bookmarklet to clipboard" msgstr "Impossibile copiare il bookmarklet negli appunti" -#: lib/bds/desktop/shell_live.ex:824 +#: lib/bds/desktop/shell_live.ex:857 #, elixir-autogen, elixir-format msgid "The project this blogmark targets does not exist here." msgstr "Il progetto a cui punta questo blogmark non esiste qui." @@ -3593,7 +3596,7 @@ msgid "Suggested tags" msgstr "Tag suggeriti" #: lib/bds/desktop/menu_bar.ex:257 -#: lib/bds/tui.ex:2078 +#: lib/bds/tui.ex:2080 #, elixir-autogen, elixir-format msgid "Force Render Site" msgstr "Forza la rigenerazione del sito" @@ -3690,12 +3693,12 @@ msgstr "OK" msgid "The endpoint returned no models. You can still type a model name manually." msgstr "L'endpoint non ha restituito alcun modello. Puoi comunque digitare manualmente il nome di un modello." -#: lib/bds/tui.ex:2036 +#: lib/bds/tui.ex:2038 #, elixir-autogen, elixir-format msgid "AI is unavailable in airplane mode without a local endpoint." msgstr "L'IA non è disponibile in modalità aereo senza un endpoint locale." -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:2165 #, elixir-autogen, elixir-format msgid "Could not load this file." msgstr "Impossibile caricare questo file." @@ -3710,12 +3713,12 @@ msgstr "La modifica di questo elemento non è ancora disponibile nell'interfacci msgid "No suggestions returned." msgstr "Nessun suggerimento ricevuto." -#: lib/bds/tui.ex:2160 +#: lib/bds/tui.ex:2162 #, elixir-autogen, elixir-format msgid "Only images can be previewed." msgstr "Solo le immagini possono essere visualizzate in anteprima." -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1955 #, elixir-autogen, elixir-format msgid "Post not found." msgstr "Post non trovato." @@ -3725,18 +3728,18 @@ msgstr "Post non trovato." msgid "Press enter to preview %{name}." msgstr "Premi Invio per l'anteprima di %{name}." -#: lib/bds/tui.ex:2006 +#: lib/bds/tui.ex:2008 #, elixir-autogen, elixir-format msgid "Published." msgstr "Pubblicato." -#: lib/bds/tui.ex:2022 +#: lib/bds/tui.ex:2024 #, elixir-autogen, elixir-format msgid "Save before switching languages." msgstr "Salva prima di cambiare lingua." #: lib/bds/tui.ex:540 -#: lib/bds/tui.ex:2007 +#: lib/bds/tui.ex:2009 #, elixir-autogen, elixir-format msgid "Saved." msgstr "Salvato." @@ -3761,18 +3764,18 @@ msgstr "Titolo (ctrl+t per modificare)" msgid "Title (editing — enter to confirm)" msgstr "Titolo (modifica — Invio per confermare)" -#: lib/bds/tui.ex:1492 +#: lib/bds/tui.ex:1494 #, elixir-autogen, elixir-format msgid "Working…" msgstr "Elaborazione…" -#: lib/bds/tui.ex:1514 +#: lib/bds/tui.ex:1516 #, elixir-autogen, elixir-format msgid "esc to close" msgstr "esc per chiudere" #: lib/bds/desktop/menu_bar.ex:83 -#: lib/bds/desktop/shell_live.ex:1110 +#: lib/bds/desktop/shell_live.ex:1176 #, elixir-autogen, elixir-format msgid "Connect to Server" msgstr "Connetti al server" @@ -3793,7 +3796,7 @@ msgid "Disconnect from Server" msgstr "Disconnetti dal server" #: lib/bds/desktop/menu_bar.ex:72 -#: lib/bds/desktop/shell_live.ex:1097 +#: lib/bds/desktop/shell_live.ex:1163 #, elixir-autogen, elixir-format msgid "Server address (user@host or user@host:port), public-key auth:" msgstr "Indirizzo del server (user@host o user@host:port), autenticazione a chiave pubblica:" @@ -3803,12 +3806,12 @@ msgstr "Indirizzo del server (user@host o user@host:port), autenticazione a chia msgid "Use the form user@host or user@host:port." msgstr "Usa il formato user@host o user@host:port." -#: lib/bds/tui.ex:1457 +#: lib/bds/tui.ex:1456 #, elixir-autogen, elixir-format msgid "Preview (ctrl+e to edit)" msgstr "Anteprima (ctrl+e per modificare)" -#: lib/bds/tui.ex:1771 +#: lib/bds/tui.ex:1773 #, elixir-autogen, elixir-format msgid "ctrl+s save · ctrl+p publish · ctrl+e preview · ctrl+t title · ctrl+l language · ctrl+g AI · esc back" msgstr "ctrl+s salva · ctrl+p pubblica · ctrl+e anteprima · ctrl+t titolo · ctrl+l lingua · ctrl+g IA · esc indietro" @@ -3818,7 +3821,7 @@ msgstr "ctrl+s salva · ctrl+p pubblica · ctrl+e anteprima · ctrl+t titolo · msgid "All tasks finished." msgstr "Tutte le attività sono terminate." -#: lib/bds/tui.ex:1540 +#: lib/bds/tui.ex:1542 #, elixir-autogen, elixir-format msgid "Commands — esc to close" msgstr "Comandi — esc per chiudere" @@ -3828,27 +3831,27 @@ msgstr "Comandi — esc per chiudere" msgid "Unknown command." msgstr "Comando sconosciuto." -#: lib/bds/tui.ex:1530 +#: lib/bds/tui.ex:1532 #, elixir-autogen, elixir-format msgid "[report/apply in GUI]" msgstr "[report/applicazione nella GUI]" -#: lib/bds/tui.ex:1679 +#: lib/bds/tui.ex:1681 #, elixir-autogen, elixir-format msgid "%{diffs} differences · %{orphans} orphan files" msgstr "%{diffs} differenze · %{orphans} file orfani" -#: lib/bds/tui.ex:1711 +#: lib/bds/tui.ex:1713 #, elixir-autogen, elixir-format msgid "Expected %{expected} · Existing %{existing}" msgstr "Attesi %{expected} · Esistenti %{existing}" -#: lib/bds/tui.ex:1728 +#: lib/bds/tui.ex:1730 #, elixir-autogen, elixir-format msgid "Extra files (will be removed):" msgstr "File in eccesso (verranno rimossi):" -#: lib/bds/tui.ex:1724 +#: lib/bds/tui.ex:1726 #, elixir-autogen, elixir-format msgid "Missing pages (will be rendered):" msgstr "Pagine mancanti (verranno generate):" @@ -3863,27 +3866,27 @@ msgstr "Niente da applicare." msgid "Nothing to repair." msgstr "Niente da riparare." -#: lib/bds/tui.ex:1702 +#: lib/bds/tui.ex:1704 #, elixir-autogen, elixir-format msgid "Orphan files (not in database):" msgstr "File orfani (non presenti nel database):" -#: lib/bds/tui.ex:1718 +#: lib/bds/tui.ex:1720 #, elixir-autogen, elixir-format msgid "Sitemap changed." msgstr "Sitemap modificata." -#: lib/bds/tui.ex:1732 +#: lib/bds/tui.ex:1734 #, elixir-autogen, elixir-format msgid "Updated posts (will be re-rendered):" msgstr "Post aggiornati (verranno rigenerati):" -#: lib/bds/tui.ex:1669 +#: lib/bds/tui.ex:1671 #, elixir-autogen, elixir-format msgid "enter apply changes · esc close" msgstr "invio applica le modifiche · esc chiudi" -#: lib/bds/tui.ex:1664 +#: lib/bds/tui.ex:1666 #, elixir-autogen, elixir-format msgid "enter repair all from files · esc close" msgstr "invio ripara tutto dai file · esc chiudi" @@ -3898,7 +3901,7 @@ msgstr "Blog importato" msgid "Not a folder: %{path}" msgstr "Non è una cartella: %{path}" -#: lib/bds/tui.ex:1606 +#: lib/bds/tui.ex:1608 #, elixir-autogen, elixir-format msgid "Projects — enter switch · o open existing · esc close" msgstr "Progetti — invio cambia · o apri esistente · esc chiudi" @@ -3908,12 +3911,12 @@ msgstr "Progetti — invio cambia · o apri esistente · esc chiudi" msgid "Switched to %{name}." msgstr "Passato a %{name}." -#: lib/bds/tui.ex:1634 +#: lib/bds/tui.ex:1636 #, elixir-autogen, elixir-format msgid "Matching folders" msgstr "Cartelle corrispondenti" -#: lib/bds/tui.ex:1572 +#: lib/bds/tui.ex:1574 #, elixir-autogen, elixir-format msgid "Open Existing Blog — type a folder path · tab complete · enter open · esc back" msgstr "Apri blog esistente — digita il percorso di una cartella · tab completa · invio apri · esc indietro" @@ -3933,7 +3936,7 @@ msgstr "Commit eseguito." msgid "Diff (pgup/pgdn scroll)" msgstr "Diff (pgup/pgdn per scorrere)" -#: lib/bds/tui.ex:1799 +#: lib/bds/tui.ex:1801 #, elixir-autogen, elixir-format msgid "No changes." msgstr "Nessuna modifica." @@ -4044,7 +4047,7 @@ msgstr "Tema" msgid "enter edit · ctrl+s save · esc close" msgstr "invio modifica · ctrl+s salva · esc chiudi" -#: lib/bds/tui.ex:1750 +#: lib/bds/tui.ex:1752 #, elixir-autogen, elixir-format msgid "enter edit/toggle/cycle · ctrl+s save · esc close · ctrl+q quit" msgstr "invio modifica/attiva/cicla · ctrl+s salva · esc chiudi · ctrl+q esci" @@ -4054,12 +4057,12 @@ msgstr "invio modifica/attiva/cicla · ctrl+s salva · esc chiudi · ctrl+q esci msgid "not supported yet" msgstr "non ancora supportato" -#: lib/bds/tui.ex:1757 +#: lib/bds/tui.ex:1759 #, elixir-autogen, elixir-format msgid "c commit · u pull · s push · enter jump to file · pgup/pgdn scroll diff · 1-7 views · ctrl+q quit" msgstr "c commit · u pull · s push · invio vai al file · pgup/pgdn scorri il diff · 1-7 viste · ctrl+q esci" -#: lib/bds/tui.ex:1764 +#: lib/bds/tui.ex:1766 #, elixir-autogen, elixir-format msgid "enter open · n new post · 1-7 views · p projects · / search · : commands (:? help) · r refresh · ctrl+q quit" msgstr "invio apri · n nuovo post · 1-7 viste · p progetti · / cerca · : comandi (:? aiuto) · r aggiorna · ctrl+q esci" @@ -4191,12 +4194,12 @@ msgstr "La destinazione dell'unione deve essere uno dei tag contrassegnati" msgid "default" msgstr "predefinito" -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #, elixir-autogen, elixir-format msgid "esc close" msgstr "esc chiudi" -#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1924 #, elixir-autogen, elixir-format msgid "n new · enter rename · c colour · t template · d delete · s sync · esc close" msgstr "n nuovo · invio rinomina · c colore · t template · d elimina · s sincronizza · esc chiudi" @@ -4206,7 +4209,17 @@ msgstr "n nuovo · invio rinomina · c colore · t template · d elimina · s si msgid "none" msgstr "nessuno" -#: lib/bds/tui.ex:1927 +#: lib/bds/tui.ex:1929 #, elixir-autogen, elixir-format msgid "space mark · m merge into selected · esc close" msgstr "spazio contrassegna · m unisci nel selezionato · esc chiudi" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:157 +#, elixir-autogen, elixir-format +msgid "Pending" +msgstr "In attesa" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:156 +#, elixir-autogen, elixir-format +msgid "Running" +msgstr "In corso" diff --git a/priv/gettext/ui.pot b/priv/gettext/ui.pot index 11844cd..f42ded5 100644 --- a/priv/gettext/ui.pot +++ b/priv/gettext/ui.pot @@ -99,7 +99,7 @@ msgstr "" #: lib/bds/tui.ex:1175 #: lib/bds/tui.ex:1178 #: lib/bds/tui.ex:1186 -#: lib/bds/tui.ex:2035 +#: lib/bds/tui.ex:2037 #, elixir-autogen, elixir-format msgid "AI Suggestions" msgstr "" @@ -356,7 +356,7 @@ msgstr "" msgid "Auto" msgstr "" -#: lib/bds/desktop/shell_live.ex:445 +#: lib/bds/desktop/shell_live.ex:478 #: lib/bds/desktop/shell_live/chat_editor.ex:234 #: lib/bds/desktop/shell_live/media_editor.ex:171 #: lib/bds/desktop/shell_live/media_editor.ex:364 @@ -381,7 +381,7 @@ msgstr "" msgid "Available languages" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:124 +#: lib/bds/desktop/shell_live/panel_renderer.ex:223 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:313 #, elixir-autogen, elixir-format msgid "Backlinks" @@ -454,6 +454,7 @@ msgstr "" #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:183 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:208 #: lib/bds/desktop/shell_live/overlay_html/shell_overlay.html.heex:225 +#: lib/bds/desktop/shell_live/panel_renderer.ex:143 #, elixir-autogen, elixir-format msgid "Cancel" msgstr "" @@ -507,7 +508,7 @@ msgstr "" msgid "Category name is required" msgstr "" -#: lib/bds/desktop/shell_live.ex:791 +#: lib/bds/desktop/shell_live.ex:824 #: lib/bds/desktop/shell_live/chat_editor.ex:87 #: lib/bds/desktop/shell_live/chat_editor.ex:233 #: lib/bds/desktop/shell_live/chat_editor.ex:323 @@ -588,7 +589,7 @@ msgid "Collapse unchanged diff hunks" msgstr "" #: lib/bds/desktop/shell_live/overlay_manager.ex:423 -#: lib/bds/tui.ex:2131 +#: lib/bds/tui.ex:2133 #, elixir-autogen, elixir-format msgid "Command completed" msgstr "" @@ -606,7 +607,7 @@ msgstr "" #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:375 #: lib/bds/desktop/shell_live/script_editor_html/script_editor.html.heex:34 #: lib/bds/desktop/shell_live/template_editor_html/template_editor.html.heex:32 -#: lib/bds/tui.ex:1468 +#: lib/bds/tui.ex:1467 #: lib/bds/ui/settings_form.ex:137 #: lib/bds/ui/sidebar.ex:801 #, elixir-autogen, elixir-format @@ -619,6 +620,7 @@ msgid "Content Categories" msgstr "" #: lib/bds/desktop/menu_bar.ex:226 +#: lib/bds/desktop/shell_live/panel_renderer.ex:183 #, elixir-autogen, elixir-format msgid "Copy" msgstr "" @@ -1053,7 +1055,7 @@ msgid "Filename" msgstr "" #: lib/bds/desktop/menu_bar.ex:254 -#: lib/bds/tui.ex:2095 +#: lib/bds/tui.ex:2097 #, elixir-autogen, elixir-format msgid "Fill Missing Translations" msgstr "" @@ -1064,7 +1066,7 @@ msgid "Find" msgstr "" #: lib/bds/desktop/menu_bar.ex:255 -#: lib/bds/tui.ex:2098 +#: lib/bds/tui.ex:2100 #, elixir-autogen, elixir-format msgid "Find Duplicate Posts" msgstr "" @@ -1091,14 +1093,14 @@ msgid "Gallery" msgstr "" #: lib/bds/desktop/menu_bar.ex:256 -#: lib/bds/tui.ex:2079 +#: lib/bds/tui.ex:2081 #, elixir-autogen, elixir-format msgid "Generate Site" msgstr "" -#: lib/bds/desktop/shell_live.ex:792 +#: lib/bds/desktop/shell_live.ex:825 #: lib/bds/desktop/shell_live/socket_state.ex:109 -#: lib/bds/tui.ex:1944 +#: lib/bds/tui.ex:1946 #: lib/bds/ui/sidebar.ex:826 #, elixir-autogen, elixir-format msgid "Git" @@ -1111,8 +1113,8 @@ msgid "Git Diff" msgstr "" #: lib/bds/desktop/shell_data.ex:228 -#: lib/bds/desktop/shell_live.ex:788 -#: lib/bds/desktop/shell_live/panel_renderer.ex:171 +#: lib/bds/desktop/shell_live.ex:821 +#: lib/bds/desktop/shell_live/panel_renderer.ex:270 #, elixir-autogen, elixir-format msgid "Git Log" msgstr "" @@ -1235,9 +1237,9 @@ msgstr "" msgid "Import failed: %{error}" msgstr "" -#: lib/bds/desktop/shell_live.ex:608 -#: lib/bds/desktop/shell_live.ex:904 -#: lib/bds/desktop/shell_live.ex:910 +#: lib/bds/desktop/shell_live.ex:641 +#: lib/bds/desktop/shell_live.ex:970 +#: lib/bds/desktop/shell_live.ex:976 #: lib/bds/desktop/shell_live/sidebar_create.ex:47 #, elixir-autogen, elixir-format msgid "Import media" @@ -1338,7 +1340,7 @@ msgstr "" msgid "Linked Posts" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:142 +#: lib/bds/desktop/shell_live/panel_renderer.ex:241 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:325 #, elixir-autogen, elixir-format msgid "Links To" @@ -1417,9 +1419,9 @@ msgstr "" #: lib/bds/desktop/shell_live/misc_editor.ex:762 #: lib/bds/desktop/shell_live/sidebar_components.ex:654 #: lib/bds/desktop/shell_live/sidebar_delete.ex:175 -#: lib/bds/tui.ex:1939 -#: lib/bds/tui.ex:2160 -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:1941 +#: lib/bds/tui.ex:2162 +#: lib/bds/tui.ex:2165 #: lib/bds/ui/registry.ex:30 #: lib/bds/ui/registry.ex:100 #: lib/bds/ui/sidebar.ex:578 @@ -1448,7 +1450,7 @@ msgid "Merge" msgstr "" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:78 -#: lib/bds/tui.ex:1926 +#: lib/bds/tui.ex:1928 #: lib/bds/ui/sidebar.ex:787 #, elixir-autogen, elixir-format msgid "Merge Tags" @@ -1466,8 +1468,8 @@ msgstr "" #: lib/bds/tui.ex:285 #: lib/bds/tui.ex:291 #: lib/bds/tui.ex:302 -#: lib/bds/tui.ex:1663 -#: lib/bds/tui.ex:2076 +#: lib/bds/tui.ex:1665 +#: lib/bds/tui.ex:2078 #: lib/bds/ui/registry.ex:111 #, elixir-autogen, elixir-format msgid "Metadata Diff" @@ -1545,12 +1547,12 @@ msgstr "" msgid "No Template" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:55 +#: lib/bds/desktop/shell_live/panel_renderer.ex:64 #, elixir-autogen, elixir-format msgid "No background tasks running" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:179 +#: lib/bds/desktop/shell_live/panel_renderer.ex:278 #, elixir-autogen, elixir-format msgid "No commit subject" msgstr "" @@ -1560,7 +1562,7 @@ msgstr "" msgid "No folder selected" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:172 +#: lib/bds/desktop/shell_live/panel_renderer.ex:271 #, elixir-autogen, elixir-format msgid "No git history yet" msgstr "" @@ -1620,7 +1622,7 @@ msgstr "" msgid "No pages yet" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:119 +#: lib/bds/desktop/shell_live/panel_renderer.ex:218 #, elixir-autogen, elixir-format msgid "No post links yet" msgstr "" @@ -1645,7 +1647,7 @@ msgstr "" msgid "No settings match the current search" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:84 +#: lib/bds/desktop/shell_live/panel_renderer.ex:173 #, elixir-autogen, elixir-format msgid "No shell output yet" msgstr "" @@ -1814,7 +1816,7 @@ msgid "Open Settings" msgstr "" #: lib/bds/desktop/menu_bar.ex:217 -#: lib/bds/tui.ex:2100 +#: lib/bds/tui.ex:2102 #, elixir-autogen, elixir-format msgid "Open in Browser" msgstr "" @@ -1845,8 +1847,8 @@ msgstr "" msgid "Other (%{count})" msgstr "" -#: lib/bds/desktop/shell_live.ex:787 -#: lib/bds/desktop/shell_live/panel_renderer.ex:83 +#: lib/bds/desktop/shell_live.ex:820 +#: lib/bds/desktop/shell_live/panel_renderer.ex:172 #, elixir-autogen, elixir-format msgid "Output" msgstr "" @@ -1928,7 +1930,7 @@ msgid "Post" msgstr "" #: lib/bds/desktop/shell_data.ex:231 -#: lib/bds/desktop/shell_live/panel_renderer.ex:118 +#: lib/bds/desktop/shell_live/panel_renderer.ex:217 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:310 #, elixir-autogen, elixir-format msgid "Post Links" @@ -1963,8 +1965,8 @@ msgstr "" #: lib/bds/desktop/menu_bar.ex:233 #: lib/bds/desktop/shell_live/misc_editor.ex:664 #: lib/bds/desktop/shell_live/misc_editor.ex:761 -#: lib/bds/tui.ex:1938 -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1955 #: lib/bds/ui/registry.ex:14 #: lib/bds/ui/sidebar.ex:271 #, elixir-autogen, elixir-format @@ -2094,14 +2096,14 @@ msgstr "" #: lib/bds/desktop/menu_bar.ex:248 #: lib/bds/tui.ex:1016 -#: lib/bds/tui.ex:2080 +#: lib/bds/tui.ex:2082 #, elixir-autogen, elixir-format msgid "Rebuild Database" msgstr "" #: lib/bds/desktop/menu_bar.ex:250 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:381 -#: lib/bds/tui.ex:2084 +#: lib/bds/tui.ex:2086 #, elixir-autogen, elixir-format msgid "Rebuild Embedding Index" msgstr "" @@ -2159,7 +2161,7 @@ msgid "Refresh Translation" msgstr "" #: lib/bds/desktop/menu_bar.ex:252 -#: lib/bds/tui.ex:2087 +#: lib/bds/tui.ex:2089 #, elixir-autogen, elixir-format msgid "Regenerate Calendar" msgstr "" @@ -2170,7 +2172,7 @@ msgid "Regenerate Missing Thumbnails" msgstr "" #: lib/bds/desktop/menu_bar.ex:249 -#: lib/bds/tui.ex:2081 +#: lib/bds/tui.ex:2083 #, elixir-autogen, elixir-format msgid "Reindex Text" msgstr "" @@ -2355,10 +2357,11 @@ msgstr "" #: lib/bds/desktop/shell_live/script_editor.ex:175 #: lib/bds/desktop/shell_live/script_editor.ex:191 #: lib/bds/desktop/shell_live/script_editor.ex:194 -#: lib/bds/desktop/shell_live/script_editor.ex:216 -#: lib/bds/desktop/shell_live/script_editor.ex:219 -#: lib/bds/desktop/shell_live/script_editor.ex:234 -#: lib/bds/tui.ex:1941 +#: lib/bds/desktop/shell_live/script_editor.ex:212 +#: lib/bds/desktop/shell_live/script_editor.ex:222 +#: lib/bds/desktop/shell_live/script_editor.ex:225 +#: lib/bds/desktop/shell_live/script_editor.ex:240 +#: lib/bds/tui.ex:1943 #: lib/bds/ui/registry.ex:38 #: lib/bds/ui/sidebar.ex:63 #: lib/bds/ui/sidebar.ex:115 @@ -2465,7 +2468,7 @@ msgstr "" #: lib/bds/desktop/shell_live/settings_editor/project_settings.ex:60 #: lib/bds/desktop/shell_live/settings_editor_html/settings_editor.html.heex:11 -#: lib/bds/tui.ex:1943 +#: lib/bds/tui.ex:1945 #: lib/bds/ui/registry.ex:86 #: lib/bds/ui/registry.ex:101 #: lib/bds/ui/sidebar.ex:795 @@ -2491,7 +2494,7 @@ msgstr "" #: lib/bds/desktop/shell_live/misc_editor.ex:412 #: lib/bds/tui.ex:318 #: lib/bds/tui.ex:320 -#: lib/bds/tui.ex:1668 +#: lib/bds/tui.ex:1670 #: lib/bds/ui/registry.ex:125 #, elixir-autogen, elixir-format msgid "Site Validation" @@ -2588,7 +2591,7 @@ msgid "System Prompt" msgstr "" #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:16 -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #: lib/bds/ui/sidebar.ex:785 #, elixir-autogen, elixir-format msgid "Tag Cloud" @@ -2615,8 +2618,8 @@ msgstr "" #: lib/bds/desktop/shell_live/tags_editor.ex:217 #: lib/bds/desktop/shell_live/tags_editor.ex:248 #: lib/bds/desktop/shell_live/tags_editor_html/tags_editor.html.heex:11 -#: lib/bds/tui.ex:1920 -#: lib/bds/tui.ex:1942 +#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1944 #: lib/bds/ui/registry.ex:54 #: lib/bds/ui/registry.ex:103 #: lib/bds/ui/sidebar.ex:289 @@ -2626,8 +2629,8 @@ msgstr "" msgid "Tags" msgstr "" -#: lib/bds/desktop/shell_live.ex:786 -#: lib/bds/desktop/shell_live/panel_renderer.ex:54 +#: lib/bds/desktop/shell_live.ex:819 +#: lib/bds/desktop/shell_live/panel_renderer.ex:63 #: lib/bds/tui.ex:1220 #, elixir-autogen, elixir-format msgid "Tasks" @@ -2674,7 +2677,7 @@ msgstr "" #: lib/bds/desktop/shell_live/template_editor.ex:171 #: lib/bds/desktop/shell_live/template_editor.ex:176 #: lib/bds/desktop/shell_live/template_editor.ex:191 -#: lib/bds/tui.ex:1940 +#: lib/bds/tui.ex:1942 #: lib/bds/ui/registry.ex:46 #: lib/bds/ui/sidebar.ex:71 #: lib/bds/ui/sidebar.ex:122 @@ -2683,7 +2686,7 @@ msgstr "" msgid "Templates" msgstr "" -#: lib/bds/desktop/shell_live/panel_renderer.ex:194 +#: lib/bds/desktop/shell_live/panel_renderer.ex:293 #, elixir-autogen, elixir-format msgid "The shared lower panel is available for tasks, output, git details, and editor-specific diagnostics." msgstr "" @@ -2898,7 +2901,7 @@ msgid "Updated URLs" msgstr "" #: lib/bds/desktop/menu_bar.ex:259 -#: lib/bds/tui.ex:2099 +#: lib/bds/tui.ex:2101 #, elixir-autogen, elixir-format msgid "Upload Site" msgstr "" @@ -2926,13 +2929,13 @@ msgid "Validate" msgstr "" #: lib/bds/desktop/menu_bar.ex:258 -#: lib/bds/tui.ex:2077 +#: lib/bds/tui.ex:2079 #, elixir-autogen, elixir-format msgid "Validate Site" msgstr "" #: lib/bds/desktop/menu_bar.ex:253 -#: lib/bds/tui.ex:2090 +#: lib/bds/tui.ex:2092 #, elixir-autogen, elixir-format msgid "Validate Translations" msgstr "" @@ -3314,12 +3317,12 @@ msgstr "" msgid "Comparing database and filesystem metadata" msgstr "" -#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:717 #, elixir-autogen, elixir-format msgid "Added %{count} images to post" msgstr "" -#: lib/bds/desktop/shell_live.ex:652 +#: lib/bds/desktop/shell_live.ex:685 #, elixir-autogen, elixir-format msgid "Added %{title}" msgstr "" @@ -3340,18 +3343,18 @@ msgstr "" msgid "Image Import Concurrency" msgstr "" -#: lib/bds/desktop/shell_live.ex:444 -#: lib/bds/desktop/shell_live.ex:457 -#: lib/bds/desktop/shell_live.ex:651 -#: lib/bds/desktop/shell_live.ex:683 -#: lib/bds/desktop/shell_live.ex:694 -#: lib/bds/desktop/shell_live.ex:705 +#: lib/bds/desktop/shell_live.ex:477 +#: lib/bds/desktop/shell_live.ex:490 +#: lib/bds/desktop/shell_live.ex:684 +#: lib/bds/desktop/shell_live.ex:716 +#: lib/bds/desktop/shell_live.ex:727 +#: lib/bds/desktop/shell_live.ex:738 #: lib/bds/desktop/shell_live/post_editor_html/post_editor.html.heex:420 #, elixir-autogen, elixir-format msgid "Add Gallery Images" msgstr "" -#: lib/bds/desktop/shell_live.ex:706 +#: lib/bds/desktop/shell_live.ex:739 #, elixir-autogen, elixir-format msgid "Failed to process %{path}: %{reason}" msgstr "" @@ -3413,7 +3416,7 @@ msgid "Commit" msgstr "" #: lib/bds/desktop/shell_live/sidebar_components.ex:555 -#: lib/bds/tui.ex:1490 +#: lib/bds/tui.ex:1492 #, elixir-autogen, elixir-format msgid "Commit message" msgstr "" @@ -3549,12 +3552,12 @@ msgstr "" msgid "untracked" msgstr "" -#: lib/bds/desktop/shell_live.ex:812 +#: lib/bds/desktop/shell_live.ex:845 #, elixir-autogen, elixir-format msgid "Blogmark" msgstr "" -#: lib/bds/desktop/shell_live.ex:855 +#: lib/bds/desktop/shell_live.ex:888 #, elixir-autogen, elixir-format msgid "Open a project before importing a blogmark." msgstr "" @@ -3595,7 +3598,7 @@ msgstr "" msgid "Failed to copy bookmarklet to clipboard" msgstr "" -#: lib/bds/desktop/shell_live.ex:824 +#: lib/bds/desktop/shell_live.ex:857 #, elixir-autogen, elixir-format msgid "The project this blogmark targets does not exist here." msgstr "" @@ -3606,7 +3609,7 @@ msgid "Suggested tags" msgstr "" #: lib/bds/desktop/menu_bar.ex:257 -#: lib/bds/tui.ex:2078 +#: lib/bds/tui.ex:2080 #, elixir-autogen, elixir-format msgid "Force Render Site" msgstr "" @@ -3703,12 +3706,12 @@ msgstr "" msgid "The endpoint returned no models. You can still type a model name manually." msgstr "" -#: lib/bds/tui.ex:2036 +#: lib/bds/tui.ex:2038 #, elixir-autogen, elixir-format msgid "AI is unavailable in airplane mode without a local endpoint." msgstr "" -#: lib/bds/tui.ex:2163 +#: lib/bds/tui.ex:2165 #, elixir-autogen, elixir-format msgid "Could not load this file." msgstr "" @@ -3723,12 +3726,12 @@ msgstr "" msgid "No suggestions returned." msgstr "" -#: lib/bds/tui.ex:2160 +#: lib/bds/tui.ex:2162 #, elixir-autogen, elixir-format msgid "Only images can be previewed." msgstr "" -#: lib/bds/tui.ex:1953 +#: lib/bds/tui.ex:1955 #, elixir-autogen, elixir-format msgid "Post not found." msgstr "" @@ -3738,18 +3741,18 @@ msgstr "" msgid "Press enter to preview %{name}." msgstr "" -#: lib/bds/tui.ex:2006 +#: lib/bds/tui.ex:2008 #, elixir-autogen, elixir-format msgid "Published." msgstr "" -#: lib/bds/tui.ex:2022 +#: lib/bds/tui.ex:2024 #, elixir-autogen, elixir-format msgid "Save before switching languages." msgstr "" #: lib/bds/tui.ex:540 -#: lib/bds/tui.ex:2007 +#: lib/bds/tui.ex:2009 #, elixir-autogen, elixir-format msgid "Saved." msgstr "" @@ -3774,18 +3777,18 @@ msgstr "" msgid "Title (editing — enter to confirm)" msgstr "" -#: lib/bds/tui.ex:1492 +#: lib/bds/tui.ex:1494 #, elixir-autogen, elixir-format msgid "Working…" msgstr "" -#: lib/bds/tui.ex:1514 +#: lib/bds/tui.ex:1516 #, elixir-autogen, elixir-format msgid "esc to close" msgstr "" #: lib/bds/desktop/menu_bar.ex:83 -#: lib/bds/desktop/shell_live.ex:1110 +#: lib/bds/desktop/shell_live.ex:1176 #, elixir-autogen, elixir-format msgid "Connect to Server" msgstr "" @@ -3806,7 +3809,7 @@ msgid "Disconnect from Server" msgstr "" #: lib/bds/desktop/menu_bar.ex:72 -#: lib/bds/desktop/shell_live.ex:1097 +#: lib/bds/desktop/shell_live.ex:1163 #, elixir-autogen, elixir-format msgid "Server address (user@host or user@host:port), public-key auth:" msgstr "" @@ -3816,12 +3819,12 @@ msgstr "" msgid "Use the form user@host or user@host:port." msgstr "" -#: lib/bds/tui.ex:1457 +#: lib/bds/tui.ex:1456 #, elixir-autogen, elixir-format msgid "Preview (ctrl+e to edit)" msgstr "" -#: lib/bds/tui.ex:1771 +#: lib/bds/tui.ex:1773 #, elixir-autogen, elixir-format msgid "ctrl+s save · ctrl+p publish · ctrl+e preview · ctrl+t title · ctrl+l language · ctrl+g AI · esc back" msgstr "" @@ -3831,7 +3834,7 @@ msgstr "" msgid "All tasks finished." msgstr "" -#: lib/bds/tui.ex:1540 +#: lib/bds/tui.ex:1542 #, elixir-autogen, elixir-format msgid "Commands — esc to close" msgstr "" @@ -3841,27 +3844,27 @@ msgstr "" msgid "Unknown command." msgstr "" -#: lib/bds/tui.ex:1530 +#: lib/bds/tui.ex:1532 #, elixir-autogen, elixir-format msgid "[report/apply in GUI]" msgstr "" -#: lib/bds/tui.ex:1679 +#: lib/bds/tui.ex:1681 #, elixir-autogen, elixir-format msgid "%{diffs} differences · %{orphans} orphan files" msgstr "" -#: lib/bds/tui.ex:1711 +#: lib/bds/tui.ex:1713 #, elixir-autogen, elixir-format msgid "Expected %{expected} · Existing %{existing}" msgstr "" -#: lib/bds/tui.ex:1728 +#: lib/bds/tui.ex:1730 #, elixir-autogen, elixir-format msgid "Extra files (will be removed):" msgstr "" -#: lib/bds/tui.ex:1724 +#: lib/bds/tui.ex:1726 #, elixir-autogen, elixir-format msgid "Missing pages (will be rendered):" msgstr "" @@ -3876,27 +3879,27 @@ msgstr "" msgid "Nothing to repair." msgstr "" -#: lib/bds/tui.ex:1702 +#: lib/bds/tui.ex:1704 #, elixir-autogen, elixir-format msgid "Orphan files (not in database):" msgstr "" -#: lib/bds/tui.ex:1718 +#: lib/bds/tui.ex:1720 #, elixir-autogen, elixir-format msgid "Sitemap changed." msgstr "" -#: lib/bds/tui.ex:1732 +#: lib/bds/tui.ex:1734 #, elixir-autogen, elixir-format msgid "Updated posts (will be re-rendered):" msgstr "" -#: lib/bds/tui.ex:1669 +#: lib/bds/tui.ex:1671 #, elixir-autogen, elixir-format msgid "enter apply changes · esc close" msgstr "" -#: lib/bds/tui.ex:1664 +#: lib/bds/tui.ex:1666 #, elixir-autogen, elixir-format msgid "enter repair all from files · esc close" msgstr "" @@ -3911,7 +3914,7 @@ msgstr "" msgid "Not a folder: %{path}" msgstr "" -#: lib/bds/tui.ex:1606 +#: lib/bds/tui.ex:1608 #, elixir-autogen, elixir-format msgid "Projects — enter switch · o open existing · esc close" msgstr "" @@ -3921,12 +3924,12 @@ msgstr "" msgid "Switched to %{name}." msgstr "" -#: lib/bds/tui.ex:1634 +#: lib/bds/tui.ex:1636 #, elixir-autogen, elixir-format msgid "Matching folders" msgstr "" -#: lib/bds/tui.ex:1572 +#: lib/bds/tui.ex:1574 #, elixir-autogen, elixir-format msgid "Open Existing Blog — type a folder path · tab complete · enter open · esc back" msgstr "" @@ -3946,7 +3949,7 @@ msgstr "" msgid "Diff (pgup/pgdn scroll)" msgstr "" -#: lib/bds/tui.ex:1799 +#: lib/bds/tui.ex:1801 #, elixir-autogen, elixir-format msgid "No changes." msgstr "" @@ -4057,7 +4060,7 @@ msgstr "" msgid "enter edit · ctrl+s save · esc close" msgstr "" -#: lib/bds/tui.ex:1750 +#: lib/bds/tui.ex:1752 #, elixir-autogen, elixir-format msgid "enter edit/toggle/cycle · ctrl+s save · esc close · ctrl+q quit" msgstr "" @@ -4067,12 +4070,12 @@ msgstr "" msgid "not supported yet" msgstr "" -#: lib/bds/tui.ex:1757 +#: lib/bds/tui.ex:1759 #, elixir-autogen, elixir-format msgid "c commit · u pull · s push · enter jump to file · pgup/pgdn scroll diff · 1-7 views · ctrl+q quit" msgstr "" -#: lib/bds/tui.ex:1764 +#: lib/bds/tui.ex:1766 #, elixir-autogen, elixir-format msgid "enter open · n new post · 1-7 views · p projects · / search · : commands (:? help) · r refresh · ctrl+q quit" msgstr "" @@ -4204,12 +4207,12 @@ msgstr "" msgid "default" msgstr "" -#: lib/bds/tui.ex:1917 +#: lib/bds/tui.ex:1919 #, elixir-autogen, elixir-format msgid "esc close" msgstr "" -#: lib/bds/tui.ex:1922 +#: lib/bds/tui.ex:1924 #, elixir-autogen, elixir-format msgid "n new · enter rename · c colour · t template · d delete · s sync · esc close" msgstr "" @@ -4219,7 +4222,17 @@ msgstr "" msgid "none" msgstr "" -#: lib/bds/tui.ex:1927 +#: lib/bds/tui.ex:1929 #, elixir-autogen, elixir-format msgid "space mark · m merge into selected · esc close" msgstr "" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:157 +#, elixir-autogen, elixir-format +msgid "Pending" +msgstr "" + +#: lib/bds/desktop/shell_live/panel_renderer.ex:156 +#, elixir-autogen, elixir-format +msgid "Running" +msgstr "" diff --git a/priv/static/assets/app.css b/priv/static/assets/app.css index a2e9199..c39566b 100644 --- a/priv/static/assets/app.css +++ b/priv/static/assets/app.css @@ -1,2 +1,2 @@ /*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */ -@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-700:oklch(50.5% .213 27.518);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-semibold:600;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.ui-button{min-height:28px;font:inherit;cursor:pointer;-webkit-user-select:none;user-select:none;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;gap:6px;padding:4px 10px;line-height:1.2;display:inline-flex}.ui-button:hover:not(:disabled){background:var(--vscode-button-hoverBackground,#0e639c)}.ui-button:disabled{opacity:.5;cursor:not-allowed}.ui-button-primary{color:var(--vscode-button-foreground,#fff);background:var(--vscode-button-background,var(--vscode-focusBorder))}.ui-button-primary:hover:not(:disabled){background:var(--vscode-button-hoverBackground,#0e639c)}.ui-button-secondary{color:var(--vscode-button-secondaryForeground,var(--vscode-foreground));background:var(--vscode-button-secondaryBackground,#ffffff14);border-color:var(--vscode-button-border,transparent)}.ui-button-secondary:hover:not(:disabled){background:var(--vscode-button-secondaryHoverBackground,#4a4d51)}.ui-button-danger{color:var(--vscode-errorForeground,#f48771);border-color:var(--vscode-errorForeground,#f48771);background:0 0}@supports (color:color-mix(in lab, red, red)){.ui-button-danger{border-color:color-mix(in srgb,var(--vscode-errorForeground,#f48771)45%,transparent)}}.ui-button-danger:hover:not(:disabled){background:var(--vscode-errorForeground,#f48771)}@supports (color:color-mix(in lab, red, red)){.ui-button-danger:hover:not(:disabled){background:color-mix(in srgb,var(--vscode-errorForeground,#f48771)14%,transparent)}}.ui-button-compact{min-height:24px;padding:3px 8px;font-size:12px}.ui-input,.ui-textarea{border:1px solid var(--vscode-input-border,var(--vscode-panel-border));background:var(--vscode-input-background,#ffffff0f);width:100%;color:var(--vscode-input-foreground,var(--vscode-foreground));font:inherit;border-radius:4px;padding:8px 10px}.ui-textarea{resize:vertical;line-height:1.5}.ui-input:focus,.ui-textarea:focus{outline:1px solid var(--vscode-focusBorder,#007fd4);outline-offset:1px}.ui-input-readonly,.ui-input[readonly]{opacity:.7;cursor:not-allowed}.ui-input-disabled,.ui-input:disabled{opacity:.6;cursor:not-allowed}.ui-tab{color:var(--vscode-tab-inactiveForeground,var(--vscode-foreground));background:0 0;border:none}.ui-tab:hover,.ui-tab-active{color:var(--vscode-tab-activeForeground,var(--vscode-foreground))}.ui-badge{text-transform:uppercase;letter-spacing:.04em;border-radius:999px;align-items:center;padding:2px 8px;font-size:11px;font-weight:500;display:inline-flex}.ui-panel-entry{border:1px solid var(--vscode-panel-border);background-color:var(--vscode-sideBar-background);border-radius:4px}.ui-empty-state{color:var(--vscode-descriptionForeground);flex-direction:column;gap:6px;display:flex}.ui-editor-shell{background:var(--vscode-editor-background);flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.ui-editor-header{border-bottom:1px solid var(--vscode-panel-border);background:var(--vscode-tab-activeBackground);justify-content:space-between;align-items:flex-start;gap:12px;min-height:35px;padding:0 12px;display:flex}.ui-editor-tab-current{background:var(--vscode-tab-activeBackground);max-width:100%;color:var(--vscode-tab-activeForeground);border-radius:4px 4px 0 0;align-items:center;gap:6px;padding:6px 12px;display:inline-flex;overflow:hidden}.ui-editor-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.ui-toolbar{align-items:center;gap:12px;min-height:32px;display:flex}.ui-toolbar-group{align-items:center;gap:8px;min-width:0;display:flex}.ui-field-stack{flex-direction:column;gap:6px;min-width:0;display:flex}.ui-field-stack>label,.ui-field-label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;font-size:11px;font-weight:500}.ui-field-grid-2,.ui-field-grid-3{gap:16px;display:grid}.ui-dropdown-menu{background:var(--vscode-dropdown-background,var(--vscode-sideBar-background));border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));border-radius:6px;overflow:hidden;box-shadow:0 8px 24px #00000059}.ui-dropdown-item{width:100%;color:var(--vscode-dropdown-foreground,var(--vscode-foreground));cursor:pointer;text-align:left;background:0 0;border:none;align-items:flex-start;gap:10px;padding:10px 12px;transition:background .1s;display:flex}.ui-dropdown-item:hover:not(:disabled){background:var(--vscode-list-hoverBackground,#2a2d2e)}.ui-dropdown-item:disabled{opacity:.5;cursor:not-allowed}.ui-section-card{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px}@supports (color:color-mix(in lab, red, red)){.ui-section-card{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.btn-base{min-height:28px;font:inherit;cursor:pointer;-webkit-user-select:none;user-select:none;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;gap:6px;padding:4px 10px;line-height:1.2;display:inline-flex}.btn-theme-primary{color:var(--vscode-button-foreground,#fff);background:var(--vscode-button-background,var(--vscode-focusBorder))}.btn-theme-primary:hover{background:var(--vscode-button-hoverBackground,#0e639c)}.btn-theme-danger{color:var(--vscode-errorForeground,#f48771);border-color:var(--vscode-errorForeground,#f48771);background:0 0}@supports (color:color-mix(in lab, red, red)){.btn-theme-danger{border-color:color-mix(in srgb,var(--vscode-errorForeground,#f48771)45%,transparent)}}.btn-theme-danger:hover{background:var(--vscode-errorForeground,#f48771)}@supports (color:color-mix(in lab, red, red)){.btn-theme-danger:hover{background:color-mix(in srgb,var(--vscode-errorForeground,#f48771)14%,transparent)}}.panel-entry{border:1px solid var(--vscode-panel-border);background-color:var(--vscode-sideBar-background);border-radius:4px}.monaco-host{min-width:0;min-height:0;overflow:hidden}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing)*0)}.top-\[5px\]{top:5px}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.right-\[5px\]{right:5px}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.z-10{z-index:10}.z-50{z-index:50}.z-100{z-index:100}.col-start-1{grid-column-start:1}.col-end-1{grid-column-end:1}.row-start-1{grid-row-start:1}.row-end-2{grid-row-end:2}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.ml-1{margin-left:calc(var(--spacing)*1)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-3{height:calc(var(--spacing)*3)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-12{height:calc(var(--spacing)*12)}.h-\[14px\]{height:14px}.h-\[22px\]{height:22px}.h-\[35px\]{height:35px}.h-full{height:100%}.max-h-\[80vh\]{max-height:80vh}.max-h-screen{max-height:100vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[8rem\]{min-height:8rem}.min-h-\[16rem\]{min-height:16rem}.w-3{width:calc(var(--spacing)*3)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-\[14px\]{width:14px}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\[240px\]{max-width:240px}.max-w-full{max-width:100%}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-9{min-width:calc(var(--spacing)*9)}.min-w-56{min-width:calc(var(--spacing)*56)}.min-w-72{min-width:calc(var(--spacing)*72)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-center{transform-origin:50%}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.resize{resize:both}.resize-y{resize:vertical}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.\!border-\[\#5a2a2a\]{border-color:#5a2a2a!important}.border-\[\#3c3c3c\]{border-color:#3c3c3c}.border-red-200{border-color:var(--color-red-200)}.\!bg-\[\#3a2020\]{background-color:#3a2020!important}.\!bg-red-100{background-color:var(--color-red-100)!important}.bg-\[\#2d2d2d\]{background-color:#2d2d2d}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.p-\[5px\]{padding:5px}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-6{padding-block:calc(var(--spacing)*6)}.pt-2{padding-top:calc(var(--spacing)*2)}.pr-2{padding-right:calc(var(--spacing)*2)}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.\!text-red-300{color:var(--color-red-300)!important}.\!text-red-700{color:var(--color-red-700)!important}.text-\[\#f0f0f0\]{color:#f0f0f0}.text-black{color:var(--color-black)}.text-black\/50{color:#00000080}@supports (color:color-mix(in lab, red, red)){.text-black\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media (hover:hover){.group-hover\:opacity-70:is(:where(.group):hover *){opacity:.7}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-has-\[\[data-part\=\'title\'\]\]\/toast\:absolute:is(:where(.group\/toast):has([data-part=title]) *){position:absolute}@media (hover:hover){.hover\:text-black:hover{color:var(--color-black)}}.focus\:opacity-100:focus{opacity:1}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\:top-auto{top:auto}.sm\:bottom-auto{bottom:auto}.sm\:translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.sm\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sm\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}@media (min-width:48rem){.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.md\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}}@media (min-width:80rem){.xl\:grid-cols-\[minmax\(0\,2fr\)_minmax\(280px\,1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}.xl\:grid-cols-\[minmax\(320px\,1fr\)_minmax\(0\,1\.2fr\)\]{grid-template-columns:minmax(320px,1fr) minmax(0,1.2fr)}}@media (scripting:enabled){.\[\@media\(scripting\:enabled\)\]\:opacity-0{opacity:0}}}:root{--accent-color:#007acc;--accent-color-transparent:#007acc40;--vscode-editor-background:#1e1e1e;--vscode-editor-foreground:#ccc;--vscode-sideBar-background:#252526;--vscode-activityBar-background:#333;--vscode-activityBar-foreground:#fff;--vscode-panel-background:#1e1e1e;--vscode-titleBar-activeBackground:#252526;--vscode-titleBar-activeForeground:#ccc;--vscode-statusBar-background:#007acc;--vscode-statusBar-foreground:#fff;--vscode-tab-activeBackground:#1e1e1e;--vscode-tab-inactiveBackground:#2d2d2d;--vscode-tab-activeForeground:#fff;--vscode-tab-inactiveForeground:#969696;--vscode-editorGroupHeader-tabsBackground:#252526;--vscode-editorGroupHeader-tabsBorder:#1e1e1e;--vscode-toolbar-hoverBackground:#5a5d5e4f;--vscode-toolbar-activeBackground:#6366674f;--vscode-button-secondaryBackground:#ffffff14;--vscode-button-secondaryForeground:#ccc;--vscode-button-secondaryHoverBackground:#4a4d51;--vscode-foreground:#ccc;--vscode-descriptionForeground:#858585;--vscode-panel-border:#80808059;--vscode-sideBar-border:#80808059;--vscode-tab-border:#252526;--vscode-focusBorder:#007fd4;--vscode-input-background:#ffffff0f;--vscode-input-border:#ffffff1f;--vscode-list-hoverBackground:#2a2d2e;--vscode-list-activeSelectionBackground:#094771;--vscode-list-activeSelectionForeground:#fff;--vscode-activityBarBadge-background:#007acc;--vscode-activityBarBadge-foreground:#fff;--vscode-testing-iconPassed:#73c991;--vscode-editorWarning-foreground:#cca700;--vscode-input-foreground:#ccc;--vscode-input-placeholderForeground:#a6a6a6;--vscode-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;--vscode-font-size:13px;--panel-1:var(--vscode-editor-background);--panel-2:var(--vscode-sideBar-background);--panel-3:var(--vscode-input-background);--ink:var(--vscode-foreground);--line:var(--vscode-panel-border);--accent:var(--vscode-focusBorder);--accent-soft:var(--vscode-list-hoverBackground);--success:var(--vscode-testing-iconPassed);--sidebar-width:280px;--assistant-width:360px;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--vscode-editor-background);width:100%;height:100%;color:var(--vscode-foreground);margin:0}body{-webkit-user-select:none;user-select:none;font-family:var(--vscode-font-family);font-size:var(--vscode-font-size);overflow:hidden}body>[data-phx-session],body>[data-phx-main]{width:100%;height:100%;min-height:0}button{font-family:var(--vscode-font-family);font-size:var(--vscode-font-size);color:var(--vscode-button-foreground);background-color:var(--vscode-button-background);cursor:pointer;border:none;border-radius:2px;padding:6px 14px}button:hover{background-color:var(--vscode-button-hoverBackground)}button:focus{outline:1px solid var(--vscode-focusBorder);outline-offset:2px}button.secondary{background-color:var(--vscode-button-secondaryBackground)}button.secondary:hover{background-color:#4a4d51}button.compact{padding:4px 8px;font-size:12px}button.primary{color:var(--vscode-button-foreground,#fff);background-color:var(--vscode-button-background,#0e639c);font-weight:500}button.primary:hover{background-color:var(--vscode-button-hoverBackground,#17b)}button.success{background-color:#28a745}button.success:hover{background-color:#218838}button.danger{background-color:#dc3545}button.danger:hover{background-color:#c82333}button:disabled{opacity:.5;cursor:not-allowed}button svg,button svg *{pointer-events:none}.app{background-color:var(--vscode-editor-background);flex-direction:column;width:100%;height:100%;display:flex}.app-main{flex:1;min-height:0;display:flex;overflow:hidden}.app-content{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.window-titlebar{background-color:var(--vscode-editorGroupHeader-tabsBackground);border-bottom:1px solid var(--vscode-editorGroupHeader-tabsBorder);app-region:drag;-webkit-app-region:drag;height:34px;padding-right:calc(10px + var(--bds-titlebar-overlay-right,0px));flex-shrink:0;justify-content:space-between;align-items:center;display:flex;position:relative}.window-titlebar-menu-bar{app-region:no-drag;-webkit-app-region:no-drag;z-index:2;align-items:center;gap:2px;height:100%;margin-left:6px;display:flex}.window-titlebar-menu-group{align-items:center;height:100%;display:flex;position:relative}.window-titlebar-menu-bar.is-hidden{display:none}.window-titlebar.is-mac .window-titlebar-menu-bar{margin-left:max(var(--bds-titlebar-macos-left-inset,78px),calc(6px + var(--bds-titlebar-overlay-left,0px)))}.window-titlebar-menu-button{height:24px;color:var(--vscode-titleBar-activeForeground);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:0 8px;font-size:12px;line-height:1}.window-titlebar-menu-button:hover,.window-titlebar-action-button:hover,.window-titlebar-menu-button.is-active{background-color:var(--vscode-toolbar-hoverBackground)}.window-titlebar-menu-button:focus,.window-titlebar-menu-button:focus-visible,.window-titlebar-action-button:focus,.window-titlebar-action-button:focus-visible{box-shadow:none;outline:none}.window-titlebar-menu-dropdown{background-color:var(--vscode-menu-background,var(--vscode-editorWidget-background));border:1px solid var(--vscode-menu-border,var(--vscode-panel-border));min-width:210px;box-shadow:var(--vscode-widget-shadow,0 8px 24px #0006);app-region:no-drag;-webkit-app-region:no-drag;z-index:10;border-radius:6px;flex-direction:column;gap:2px;padding:6px;display:flex;position:absolute;top:30px;left:0}.window-titlebar-menu-item{color:var(--vscode-menu-foreground,var(--vscode-foreground));text-align:left;cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:space-between;align-items:center;gap:16px;padding:6px 8px;font-size:12px;display:flex}.window-titlebar-menu-item:focus,.window-titlebar-menu-item:focus-visible{box-shadow:none;background-color:var(--vscode-toolbar-hoverBackground);outline:none}.window-titlebar-menu-item:hover,.window-titlebar-menu-item.is-keyboard-active{background-color:var(--vscode-menu-selectionBackground,var(--vscode-toolbar-hoverBackground))}.window-titlebar-menu-item-accelerator{opacity:.8}.window-titlebar-menu-separator{background-color:var(--vscode-menu-separatorBackground,#ffffff14);height:1px;margin:4px 2px}.window-titlebar-drag-region{flex:1;height:100%}.window-titlebar-title{max-width:45%;height:100%;color:var(--vscode-titleBar-activeForeground);white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;pointer-events:none;justify-content:center;align-items:center;font-size:12px;font-weight:500;display:flex;position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.window-titlebar-actions{app-region:no-drag;-webkit-app-region:no-drag;align-items:center;height:100%;margin-right:6px;display:flex}.window-titlebar-action-button{width:30px;height:30px;color:var(--vscode-foreground);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:0;line-height:0;display:flex}.window-titlebar-sidebar-icon,.window-titlebar-panel-icon,.window-titlebar-assistant-icon{border:1.5px solid;border-radius:2px;width:14px;height:14px;display:block;position:relative;overflow:hidden}.window-titlebar-sidebar-icon:before{content:"";background-color:currentColor;width:1.5px;position:absolute;top:0;bottom:0;left:33.3333%;transform:translate(-50%)}.window-titlebar-panel-icon:before{content:"";background-color:currentColor;height:1.5px;position:absolute;top:66.6667%;left:0;right:0;transform:translateY(-50%)}.window-titlebar-assistant-icon:before{content:"";background-color:currentColor;width:1.5px;position:absolute;top:0;bottom:0;left:66.6667%;transform:translate(-50%)}.window-titlebar-sidebar-pane,.window-titlebar-panel-pane,.window-titlebar-assistant-pane{background-color:currentColor;transition:opacity .12s;position:absolute}.window-titlebar-sidebar-pane{width:33.3333%;height:100%;top:0;left:0}.window-titlebar-panel-pane{width:100%;height:33.3333%;bottom:0;left:0}.window-titlebar-assistant-pane{width:33.3333%;height:100%;top:0;right:0}.window-titlebar-sidebar-icon.is-inactive .window-titlebar-sidebar-pane,.window-titlebar-panel-icon.is-inactive .window-titlebar-panel-pane,.window-titlebar-assistant-icon.is-inactive .window-titlebar-assistant-pane{opacity:0}.panel-shell{border-top:1px solid var(--vscode-panel-border);background:var(--vscode-panel-background);flex-direction:column;height:200px;display:flex}.editor-toolbar-button.is-destructive{color:#f48771}.shell-overlay-backdrop,.gallery-overlay-backdrop{pointer-events:auto;z-index:10000;background:#000000ad;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.shell-overlay-dismiss{background:0 0;border:none;padding:0;position:absolute;inset:0}.gallery-overlay{z-index:1;background:#1e1e1e;border:1px solid #3c3c3c;border-radius:8px;flex-direction:column;width:min(980px,100vw - 48px);max-height:calc(100vh - 48px);display:flex;position:relative;overflow:hidden;box-shadow:0 8px 32px #0006}.insert-modal-media-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:16px;display:grid}.insert-modal-media-item{color:inherit;text-align:left;background:#252526;border:1px solid #3c3c3c;border-radius:8px;flex-direction:column;gap:8px;padding:10px;display:flex}.insert-modal-media-thumb{object-fit:cover;background:#ffffff0a;border-radius:6px;width:100%;min-height:112px}.insert-modal-media-title{color:#fff;font-weight:600}.language-picker-options{flex-direction:column;gap:8px;display:flex}.language-picker-option{width:100%;color:inherit;text-align:left;background:0 0;border:none;border-radius:4px;grid-template-columns:28px 1fr auto;align-items:center;gap:12px;padding:12px 16px;display:grid}.language-picker-label,.language-picker-status,.lightbox-counter{color:#9d9d9d;font-size:12px}.lightbox-counter{margin-top:4px}@media (max-width:720px){.insert-modal-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.panel-header{background-color:var(--vscode-sideBar-background);border-bottom:1px solid var(--vscode-panel-border);justify-content:space-between;align-items:center;height:35px;padding:0 8px;display:flex}.panel-tabs{align-items:stretch;height:100%;display:flex}.panel-tab{color:var(--vscode-descriptionForeground);cursor:pointer;background:0 0;border:none;padding:0 12px}.panel-tab.active{color:var(--vscode-tab-activeForeground)}.panel-close{color:var(--vscode-descriptionForeground);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:18px;display:flex}.panel-close:hover{background-color:var(--vscode-list-hoverBackground);color:var(--vscode-editor-foreground)}.panel-content{flex:1;padding:12px 14px;overflow:auto}.panel-entry{border-bottom:1px solid var(--vscode-panel-border);flex-direction:column;gap:4px;padding:10px 12px;display:flex}.output-list,.git-log-list,.task-list{flex-direction:column;display:flex}.task-entry-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.task-status{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);font-size:11px}.task-status-running{color:var(--vscode-terminal-ansiGreen,var(--vscode-statusBar-foreground))}.task-status-pending{color:var(--vscode-terminal-ansiYellow,var(--vscode-statusBar-foreground))}.panel-empty-state{justify-content:center;min-height:100%}.status-bar{background:var(--vscode-statusBar-background);height:22px;color:var(--vscode-statusBar-foreground);flex-shrink:0;justify-content:space-between;align-items:center;padding:0 8px;font-size:12px;display:flex}.status-bar-left,.status-bar-right{flex-shrink:0;align-items:center;gap:4px;display:flex}.status-bar-left{flex-shrink:1;min-width:0}.status-shell-controls{flex-shrink:0;align-items:stretch;gap:2px;display:flex}.status-shell-toggle-button{width:22px;height:100%;color:inherit;cursor:pointer;background:0 0;border:none;border-radius:3px;justify-content:center;align-items:center;padding:0;line-height:0;display:flex}.status-shell-toggle-button:hover{background-color:#ffffff1a}.status-shell-toggle-button:focus,.status-shell-toggle-button:focus-visible{outline:none;box-shadow:inset 0 0 0 1px #ffffff73}.status-shell-toggle-button .window-titlebar-sidebar-icon,.status-shell-toggle-button .window-titlebar-panel-icon,.status-shell-toggle-button .window-titlebar-assistant-icon{width:12px;height:12px}.status-bar-item{white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:6px;height:100%;padding:0 8px;display:flex;overflow:hidden}.status-bar-item:hover{background-color:#ffffff1a}.status-bar-task-button{color:inherit;cursor:pointer;background:0 0;border:none}.task-message-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.status-bar-item.theme-badge{border:1px solid #ffffff2e;border-radius:3px}.status-bar-item.language-badge{border:1px solid #ffffff2e;border-radius:3px;gap:4px}.status-bar-item.offline-badge{color:inherit;cursor:pointer;background:0 0;border:none;padding:0 4px;font-size:13px}.status-bar-item.offline-badge.active{color:#000;opacity:1;background-color:#e6a800;border-radius:3px;font-weight:600}.project-selector{flex-shrink:0;position:relative}.project-selector-trigger{height:22px;color:var(--vscode-statusBar-foreground);cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:flex}.project-selector-trigger:hover{background-color:#ffffff1a}.project-selector-trigger:focus{outline:none}.project-icon,.dropdown-arrow,.project-check-icon{flex-shrink:0}.project-name,.project-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-name{max-width:180px}.dropdown-arrow{opacity:.6}.project-dropdown{z-index:1000;background-color:#252526;border:1px solid #ffffff29;border-radius:4px;min-width:220px;margin-bottom:4px;position:absolute;bottom:100%;left:0;overflow:hidden;box-shadow:0 -4px 12px #0000004d}.project-dropdown-header{text-transform:uppercase;letter-spacing:.5px;color:var(--vscode-descriptionForeground);border-bottom:1px solid #ffffff1f;padding:8px 12px;font-size:11px;font-weight:600}.project-list{max-height:200px;overflow-y:auto}.project-item{width:100%;color:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:8px 12px;display:flex}.project-item:hover,.project-item.active{background-color:var(--vscode-list-hoverBackground)}.project-item.active .project-check-icon{color:#89d185}.project-dropdown-footer{border-top:1px solid #ffffff1f;gap:6px;padding:8px;display:grid}.create-project-btn,.existing-project-btn{width:100%;color:inherit;cursor:pointer;background-color:#ffffff1f;border:none;border-radius:4px;justify-content:center;align-items:center;gap:6px;padding:6px 12px;font-size:12px;display:flex}.create-project-btn:hover,.existing-project-btn:hover{background-color:#ffffff2e}.status-bar-language-select{color:inherit;font:inherit;background:0 0;border:none;padding:0}.status-bar-language-select:focus{outline:none}.status-bar-count{opacity:.85;font-size:11px}.status-bar-item.brand{font-weight:600}@media (max-width:960px){.editor-frame{grid-template-columns:minmax(0,1fr)}.editor-meta{border-left:none;border-top:1px solid var(--vscode-panel-border);padding-top:10px;padding-left:0}}.editor-section ul{margin:12px 0 0;padding-left:18px}.editor-toolbar{gap:10px;display:flex}.editor-meta{flex-direction:column;gap:12px;display:flex}.editor-meta-card,.panel-entry{padding:16px}.sidebar-header,.assistant-header,.panel-header{border-bottom:1px solid var(--line);justify-content:space-between;gap:12px;padding:16px 18px;display:flex}.activity-bar{background-color:var(--vscode-activityBar-background);border-right:1px solid var(--vscode-panel-border);flex-direction:column;justify-content:space-between;width:48px;height:100%;display:flex}.activity-bar-top,.activity-bar-bottom{flex-direction:column;align-items:center;padding:4px 0;display:flex}.activity-bar-item{width:48px;height:48px;color:var(--vscode-activityBar-foreground);opacity:.6;cursor:pointer;background:0 0;border:none;border-radius:0;justify-content:center;align-items:center;padding:0;display:flex;position:relative}.activity-bar-item:hover{opacity:1;background:0 0}.activity-bar-item.active{opacity:1}.activity-bar-item.active:before{content:"";background-color:var(--vscode-activityBar-foreground);width:2px;position:absolute;top:0;bottom:0;left:0}.activity-bar-badge{background-color:var(--vscode-activityBarBadge-background);min-width:16px;height:16px;color:var(--vscode-activityBarBadge-foreground);border-radius:8px;justify-content:center;align-items:center;padding:0 4px;font-size:10px;font-weight:600;display:flex;position:absolute;top:8px;right:8px}.activity-bar-item svg,.tab-icon svg{display:block}.sidebar-shell,.assistant-sidebar-shell{min-width:0;display:flex}.sidebar-shell{width:var(--sidebar-width)}.assistant-sidebar-shell{width:var(--assistant-width)}.sidebar,.assistant-sidebar{background:var(--vscode-sideBar-background);flex-direction:column;width:100%;min-width:0;height:100%;display:flex}.sidebar{border-right:1px solid var(--vscode-sideBar-border)}.assistant-sidebar{border-left:1px solid var(--vscode-sideBar-border)}.sidebar-shell.is-hidden,.assistant-sidebar-shell.is-hidden{width:0;overflow:hidden}.sidebar-shell.is-hidden .resizable-panel-divider,.assistant-sidebar-shell.is-hidden .resizable-panel-divider{display:none}.resizable-panel-divider{cursor:col-resize;background:0 0;width:4px;position:relative}.resizable-panel-divider:hover:after{background-color:var(--vscode-focusBorder)}.resizable-panel-divider:after{content:"";background-color:var(--vscode-panel-border);width:1px;position:absolute;top:0;bottom:0;left:1px}.assistant-header{border-bottom:1px solid var(--vscode-panel-border);flex-direction:column;gap:2px;padding:10px 12px;display:flex}.panel-entry span,.editor-meta-row span,.editor-subtitle,.sidebar-item span{color:var(--vscode-descriptionForeground)}.sidebar-content,.assistant-content{flex:1;padding:8px 0;overflow:auto}.sidebar-section{padding-bottom:10px}.sidebar-section-header{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);padding:0 12px 6px;font-size:11px}.sidebar-item{cursor:pointer;background:var(--vscode-sideBar-background);width:100%;color:var(--vscode-foreground);border:none;border-radius:4px;flex-direction:column;align-items:flex-start;gap:2px;padding:7px 12px;display:flex}.sidebar-item:hover{background:var(--vscode-list-hoverBackground)}.sidebar-item.selected{outline:1px solid var(--vscode-focusBorder);background:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.sidebar-badge{color:var(--vscode-testing-iconPassed);background:#6ecb8b29;border-radius:10px;margin-top:2px;padding:1px 6px}.sidebar-content{padding:0;overflow:hidden auto}.sidebar-section{margin-bottom:4px;padding-bottom:0}.sidebar-section-header{text-transform:uppercase;letter-spacing:.5px;color:var(--vscode-sideBar-foreground);justify-content:space-between;align-items:center;padding:8px 12px;font-size:11px;font-weight:600;display:flex}.sidebar-section-title{color:var(--vscode-descriptionForeground);align-items:center;gap:6px;padding:4px 12px;font-size:12px;display:flex}.section-icon{font-size:8px}.section-icon.status-draft{color:var(--vscode-editorWarning-foreground)}.section-icon.status-published{color:var(--vscode-testing-iconPassed)}.section-icon.status-archived{color:var(--vscode-descriptionForeground)}.sidebar-list{flex-direction:column;display:flex}.sidebar-item-row{align-items:stretch;display:flex}.sidebar-item{width:100%;color:inherit;cursor:pointer;text-align:left;background:0 0;border:none;border-left:2px solid #0000;border-radius:0;align-items:flex-start;gap:8px;padding:6px 12px;display:flex}.sidebar-item:hover{background-color:var(--vscode-list-hoverBackground)}.sidebar-item.selected{background-color:var(--vscode-list-activeSelectionBackground);border-left-color:var(--vscode-focusBorder);color:var(--vscode-list-activeSelectionForeground)}.sidebar-post-item{flex-direction:row}.sidebar-item.post-type-picture{background:linear-gradient(90deg,#8b5cf60d 0%,#0000 100%)}.sidebar-item.post-type-aside{background:linear-gradient(90deg,#f59e0b0d 0%,#0000 100%)}.sidebar-item.post-type-quote{background:linear-gradient(90deg,#22c55e0d 0%,#0000 100%)}.sidebar-item.post-type-link{background:linear-gradient(90deg,#3b82f60d 0%,#0000 100%)}.sidebar-item.post-type-video{background:linear-gradient(90deg,#ef44440d 0%,#0000 100%)}.post-type-icon{opacity:.85;flex-shrink:0;font-size:14px;line-height:1.4}.sidebar-item-content{flex-direction:column;flex:1;min-width:0;display:flex}.sidebar-item-title-row{align-items:center;gap:6px;display:flex}.sidebar-item-title{color:var(--vscode-sideBar-foreground);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.sidebar-item-language-badge{background:var(--vscode-badge-background);border-radius:999px;flex-shrink:0;min-width:18px;padding:1px 5px}@supports (color:color-mix(in lab, red, red)){.sidebar-item-language-badge{background:color-mix(in srgb,var(--vscode-badge-background)82%,transparent)}}.sidebar-item-language-badge{color:var(--vscode-badge-foreground);text-align:center;font-size:10px;font-weight:700}.sidebar-item-meta{color:var(--vscode-descriptionForeground);margin-top:2px;font-size:11px}.media-grid{grid-template-columns:1fr;gap:2px;padding:4px;display:grid}.media-item-row{align-items:stretch;gap:4px;display:flex}.media-item{width:100%;color:inherit;text-align:left;background:0 0;border:none;border-radius:4px;align-items:center;gap:8px;padding:6px 8px;display:flex}.media-item:hover{background-color:var(--vscode-list-hoverBackground)}.media-item.selected{background-color:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.media-thumbnail{background-color:var(--vscode-input-background);border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:20px;display:flex;overflow:hidden}.media-thumbnail.has-image{position:relative}.media-thumbnail-fallback{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.media-thumbnail-image{object-fit:cover;opacity:0;width:100%;height:100%;transition:opacity .15s;position:absolute;inset:0}.media-thumbnail.is-loaded .media-thumbnail-image{opacity:1}.media-thumbnail.is-loaded .media-thumbnail-fallback{opacity:0}.media-item-info{flex:1;min-width:0}.media-item-name{color:var(--vscode-sideBar-foreground);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.sidebar-item-row .sidebar-item,.media-item-row .media-item{flex:1;min-width:0}.sidebar-actions{gap:4px;display:flex}.sidebar-action{color:var(--vscode-sideBar-foreground);cursor:pointer;opacity:.7;background:0 0;border:none;border-radius:3px;justify-content:center;align-items:center;padding:2px;display:flex}.sidebar-action:hover{opacity:1;background-color:var(--vscode-list-hoverBackground)}.sidebar-action.active{background-color:var(--vscode-list-activeSelectionBackground);opacity:1}.search-box{align-items:center;gap:4px;padding:4px 12px 8px;display:flex;position:relative}.search-box input{background-color:var(--vscode-input-background);border:1px solid var(--vscode-input-border);min-width:0;color:var(--vscode-input-foreground);border-radius:3px;flex:1;padding:6px 28px 6px 8px;font-size:12px}.search-box input::placeholder{color:var(--vscode-input-placeholderForeground)}.search-box input:focus{border-color:var(--vscode-focusBorder);outline:none}.search-box button[type=submit]{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:.7;background:0 0;border:none;padding:4px;position:absolute;right:40px}.search-box button[type=submit]:hover{opacity:1}.search-box .clear-search{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:.7;background:0 0;border:none;padding:4px;font-size:10px;position:absolute;right:16px}.search-box .clear-search:hover{opacity:1}.calendar-view{border-bottom:1px solid var(--vscode-sideBar-border);padding:8px 12px}.calendar-header{text-transform:uppercase;letter-spacing:.5px;color:var(--vscode-descriptionForeground);justify-content:space-between;align-items:center;margin-bottom:8px;font-size:11px;font-weight:600;display:flex}.calendar-header.collapsible-header{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px;margin:0 -6px 8px;padding:4px 6px}.calendar-header.collapsible-header:hover{background-color:var(--vscode-list-hoverBackground)}.calendar-header.collapsible-header.collapsed{margin-bottom:0}.calendar-header .collapse-icon{opacity:.7;margin-right:4px;font-size:9px}.calendar-header .clear-filter{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:.7;background:0 0;border:none;padding:2px 4px;font-size:10px}.calendar-header .clear-filter:hover{opacity:1}.calendar-years{flex-direction:column;gap:2px;display:flex}.calendar-year-header{cursor:pointer;color:var(--vscode-sideBar-foreground);text-align:left;background:0 0;border-radius:3px;align-items:center;gap:6px;padding:4px 6px;font-size:12px;display:flex}.calendar-year-header:hover{background-color:var(--vscode-list-hoverBackground)}.calendar-year-header.selected{background-color:var(--vscode-list-activeSelectionBackground)}.calendar-year-header .expand-icon{color:var(--vscode-descriptionForeground);width:10px;font-size:8px}.calendar-year-header .year-label{flex:1}.calendar-year-header .year-count{color:var(--vscode-descriptionForeground);background-color:var(--vscode-badge-background);border-radius:8px;padding:1px 6px;font-size:10px}.calendar-months{flex-direction:column;gap:1px;margin-top:2px;padding-left:16px;display:flex}.calendar-month{cursor:pointer;color:var(--vscode-sideBar-foreground);text-align:left;background:0 0;border-radius:3px;justify-content:space-between;align-items:center;padding:3px 6px;font-size:12px;display:flex}.calendar-month:hover{background-color:var(--vscode-list-hoverBackground)}.calendar-month.selected{background-color:var(--vscode-list-activeSelectionBackground)}.calendar-month .month-count{color:var(--vscode-descriptionForeground);font-size:10px}.calendar-empty{color:var(--vscode-descriptionForeground);text-align:center;padding:8px;font-size:12px}.month-count,.sidebar-section-count{color:var(--vscode-descriptionForeground);font-size:10px}.filter-panel{border-bottom:1px solid var(--vscode-sideBar-border);padding:8px 12px}.filter-section{margin-bottom:12px}.filter-section:last-child{margin-bottom:0}.filter-header{text-transform:uppercase;letter-spacing:.5px;color:var(--vscode-descriptionForeground);align-items:center;margin-bottom:6px;font-size:11px;font-weight:600;display:flex}.filter-header.collapsible-header{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px;margin:0 -6px 6px;padding:4px 6px}.filter-header.collapsible-header:hover{background-color:var(--vscode-list-hoverBackground)}.filter-header.collapsible-header.collapsed{margin-bottom:0}.filter-header .collapse-icon{opacity:.7;margin-right:4px;font-size:9px}.filter-header .clear-filter{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:.7;background:0 0;border:none;margin-left:auto;padding:2px 4px;font-size:10px}.filter-header .clear-filter:hover{opacity:1}.filter-chips{flex-wrap:wrap;gap:4px;display:flex}.filter-chip{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground);cursor:pointer;border:none;border-radius:12px;padding:2px 8px;font-size:11px;transition:background-color .15s,opacity .15s}.filter-chip:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.filter-chip.active{background-color:var(--vscode-button-background,#0e639c);color:var(--vscode-button-foreground,#fff)}.filter-chip.has-color{border:1px solid #0000}.filter-chip.has-color:hover{opacity:.85}.filter-chip.has-color.active{box-shadow:0 0 0 2px var(--vscode-focusBorder,#007fd4)}.filter-status{color:var(--vscode-descriptionForeground);background-color:var(--vscode-list-hoverBackground);border-bottom:1px solid var(--vscode-sideBar-border);justify-content:space-between;align-items:center;padding:6px 12px;font-size:11px;display:flex}.filter-status button{color:var(--accent-color);cursor:pointer;background:0 0;border:none;padding:0;font-size:11px}.filter-status button:hover{background:0 0;text-decoration:underline}.sidebar-load-more{justify-content:center;padding:12px 16px;display:flex}.load-more-button{background-color:var(--vscode-button-secondaryBackground);width:100%;color:var(--vscode-button-secondaryForeground);cursor:pointer;border:none;border-radius:4px;padding:8px 16px;font-size:12px;transition:background-color .2s}.load-more-button:hover:not(:disabled){background-color:var(--vscode-button-secondaryHoverBackground)}.filter-section{padding-top:4px}.filter-header{width:100%;color:var(--vscode-foreground);text-align:left;background:0 0;padding:6px 0}.filter-chips{flex-flow:wrap}.filter-chip{background:var(--vscode-input-background);color:var(--vscode-foreground);border-radius:999px;padding:5px 10px}.filter-status{color:var(--vscode-descriptionForeground);justify-content:space-between;align-items:center;gap:12px;font-size:12px;display:flex}.filter-status button,.load-more-button{background:var(--vscode-input-background);color:var(--vscode-foreground);border-radius:6px;padding:6px 10px}.sidebar-load-more{padding-bottom:12px}.load-more-button{width:100%}.media-item-info{flex-direction:column;gap:2px;display:flex}.media-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.media-item-size{color:var(--vscode-descriptionForeground);font-size:12px}.chat-list-item{border:none;border-bottom:1px solid var(--vscode-sideBar-border);width:100%;color:inherit;text-align:left;background:0 0;align-items:center;padding:8px 12px;display:flex}.chat-list-item:hover{background:var(--vscode-list-hoverBackground)}.chat-list-item.active{background:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.chat-item-content{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.chat-item-open{min-width:0;color:inherit;text-align:left;background:0 0;border:none;flex:1;padding:0;display:flex}.chat-item-open:hover{background:0 0}.chat-item-open:focus-visible{outline:1px solid var(--vscode-focusBorder);outline-offset:2px}.chat-item-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-item-date{color:var(--vscode-descriptionForeground);font-size:12px}.sidebar-delete-button{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:1;background:0 0;border:none;flex-shrink:0;padding:0 6px;font-size:16px;line-height:1;transition:opacity .15s,color .15s}.sidebar-item-row:hover .sidebar-delete-button,.sidebar-item-row .sidebar-item.selected~.sidebar-delete-button,.media-item-row:hover .sidebar-delete-button,.media-item-row .media-item.selected~.sidebar-delete-button,.chat-list-item:hover .sidebar-delete-button,.chat-list-item.active .sidebar-delete-button{opacity:1}.sidebar-delete-button:hover{color:var(--vscode-errorForeground)}.sidebar-item-row .sidebar-item.selected~.sidebar-delete-button,.media-item-row .media-item.selected~.sidebar-delete-button{background-color:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.settings-nav-list{flex-direction:column;gap:6px;padding:0 12px 12px;display:flex}.settings-nav-entry{width:100%;color:inherit;text-align:left;background:0 0;border:none;border-radius:10px;align-items:center;gap:10px;padding:10px 12px;display:flex}.settings-nav-entry:hover{background:var(--vscode-list-hoverBackground)}.settings-nav-entry-icon{text-align:center;flex:0 0 18px;width:18px}.sidebar-empty{color:var(--vscode-descriptionForeground);padding:16px 12px}@media (max-width:820px){.dashboard-stats{grid-template-columns:1fr}.recent-post-item{flex-wrap:wrap;align-items:flex-start}.media-grid{grid-template-columns:1fr}}.git-sidebar{flex-direction:column;display:flex}.git-header{border-bottom:1px solid var(--vscode-sideBar-border);flex-direction:column;gap:6px;padding:8px 12px 12px;display:flex}.git-branch{color:var(--vscode-sideBar-foreground);font-size:13px;font-weight:600}.git-branch-icon{color:var(--vscode-descriptionForeground);flex-shrink:0;font-size:14px}.git-upstream{color:var(--vscode-badge-foreground);background:var(--vscode-badge-background);border-radius:999px;padding:1px 6px;font-size:11px}.git-ahead{color:var(--vscode-testing-iconPassed);font-size:11px}.git-behind{color:var(--vscode-notificationsInfoIcon-foreground);font-size:11px}.git-legend-item{color:var(--vscode-descriptionForeground);align-items:center;gap:4px;font-size:10px;display:flex}.git-sync-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.git-sync-synced{background-color:var(--vscode-testing-iconPassed)}.git-sync-local_only{background-color:var(--vscode-editorWarning-foreground)}.git-sync-remote_only{background-color:var(--vscode-notificationsInfoIcon-foreground)}.git-actions{border-bottom:1px solid var(--vscode-sideBar-border);padding:8px 12px}.git-action-button{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground);cursor:pointer;text-align:center;border:none;border-radius:4px;flex:1;padding:4px 8px;font-size:11px;transition:background-color .15s}.git-action-button:hover:not(:disabled){background-color:var(--vscode-button-secondaryHoverBackground)}.git-action-button:disabled{opacity:.5;cursor:default}.git-section{padding:0}.git-section-title{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-sideBar-foreground);justify-content:space-between;align-items:center;padding:8px 12px;font-size:11px;font-weight:600;display:flex}.git-section-count{color:var(--vscode-descriptionForeground);font-size:10px}.git-commit-form,.git-init-form{border-bottom:1px solid var(--vscode-sideBar-border);padding:8px 12px}.git-commit-form input,.git-init-form input{background-color:var(--vscode-input-background);border:1px solid var(--vscode-input-border);color:var(--vscode-input-foreground);border-radius:3px;padding:4px 8px;font-size:12px}.git-commit-form input::placeholder,.git-init-form input::placeholder{color:var(--vscode-input-placeholderForeground)}.git-commit-form input:focus,.git-init-form input:focus{border-color:var(--vscode-focusBorder);outline:none}.git-commit-form .git-action-button,.git-init-form .git-action-button{flex:1}.git-status-file{width:100%;color:var(--vscode-sideBar-foreground);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:0;padding:5px 12px;font-size:12px}.git-status-file:hover{background-color:var(--vscode-list-hoverBackground)}.git-status-path{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.git-status-badge{text-transform:uppercase;border-radius:4px;flex-shrink:0;padding:1px 5px;font-size:10px;font-weight:700}.git-status-added{color:var(--vscode-testing-iconPassed);background:var(--vscode-testing-iconPassed)}@supports (color:color-mix(in lab, red, red)){.git-status-added{background:color-mix(in srgb,var(--vscode-testing-iconPassed)15%,transparent)}}.git-status-modified{color:var(--vscode-editorWarning-foreground);background:var(--vscode-editorWarning-foreground)}@supports (color:color-mix(in lab, red, red)){.git-status-modified{background:color-mix(in srgb,var(--vscode-editorWarning-foreground)15%,transparent)}}.git-status-deleted{color:var(--vscode-errorForeground);background:var(--vscode-errorForeground)}@supports (color:color-mix(in lab, red, red)){.git-status-deleted{background:color-mix(in srgb,var(--vscode-errorForeground)15%,transparent)}}.git-status-renamed{color:var(--vscode-notificationsInfoIcon-foreground);background:var(--vscode-notificationsInfoIcon-foreground)}@supports (color:color-mix(in lab, red, red)){.git-status-renamed{background:color-mix(in srgb,var(--vscode-notificationsInfoIcon-foreground)15%,transparent)}}.git-status-untracked{color:var(--vscode-descriptionForeground);background:var(--vscode-descriptionForeground)}@supports (color:color-mix(in lab, red, red)){.git-status-untracked{background:color-mix(in srgb,var(--vscode-descriptionForeground)15%,transparent)}}.git-history-entry{width:100%;color:var(--vscode-sideBar-foreground);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:0;padding:5px 12px}.git-history-entry:hover{background-color:var(--vscode-list-hoverBackground)}.git-history-subject{color:var(--vscode-sideBar-foreground);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.git-history-meta{margin-top:2px}.git-history-hash,.git-history-author,.git-history-date{color:var(--vscode-descriptionForeground);font-size:10px}.git-history-hash{font-family:var(--vscode-editor-font-family)}.git-history-more{color:var(--vscode-descriptionForeground);text-align:center;padding:8px 12px;font-size:11px}.git-not-a-repo{padding:12px}.git-empty-hint{color:var(--vscode-descriptionForeground);padding:8px 12px;font-size:12px}.git-section+.git-section,.git-header+.git-actions{border-top:1px solid var(--vscode-sideBar-border)}.tab-bar{background-color:var(--vscode-editorGroupHeader-tabsBackground);border-bottom:1px solid var(--vscode-editorGroupHeader-tabsBorder);flex-shrink:0;align-items:center;height:35px;display:flex;position:relative;overflow:hidden}.tab-bar-tabs{flex:1;align-items:center;height:100%;display:flex;overflow:auto hidden}.tab-bar-tabs::-webkit-scrollbar{height:0;display:none}.tab-bar-empty{height:100%;color:var(--vscode-descriptionForeground);align-items:center;padding:0 12px;font-size:12px;display:flex}.tab{cursor:pointer;background-color:var(--vscode-tab-inactiveBackground);border:none;border-right:1px solid var(--vscode-tab-border);min-width:100px;max-width:180px;height:100%;color:var(--vscode-tab-inactiveForeground);-webkit-user-select:none;user-select:none;flex-shrink:0;align-items:center;gap:4px;padding:0 6px 0 10px;font-size:13px;display:flex;position:relative}.tab-select{min-width:0;height:100%;color:inherit;font:inherit;cursor:inherit;background:0 0;border:none;flex:1;align-items:center;gap:4px;padding:0;display:flex}.tab:hover{background-color:var(--vscode-list-hoverBackground)}.tab.active{background-color:var(--vscode-tab-activeBackground);color:var(--vscode-tab-activeForeground)}.tab.active:after{content:"";background-color:var(--vscode-focusBorder);height:1px;position:absolute;top:0;left:0;right:0}.tab.transient .tab-title{font-style:italic}.tab-actions{flex-shrink:0;align-items:center;gap:2px;margin-left:auto;display:flex}.tab-dirty-indicator{color:var(--vscode-editorWarning-foreground,#e2c08d);font-size:10px;line-height:1}.tab-icon{opacity:.85;flex-shrink:0;justify-content:center;align-items:center;display:flex}.tab-title,.status-bar-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tab-close{width:20px;height:20px;color:var(--vscode-icon-foreground,#c5c5c5);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:3px;flex-shrink:0;justify-content:center;align-items:center;padding:0;font-size:15px;line-height:1;display:flex}.tab:hover .tab-close,.tab.active .tab-close{opacity:.7}.tab-close:hover{background-color:var(--vscode-toolbar-hoverBackground);color:var(--vscode-tab-activeForeground);opacity:1!important}.tab-close:active{background-color:var(--vscode-toolbar-activeBackground,#6366674f)}.tab.dirty .tab-dirty-indicator{display:block}.tab.dirty .tab-close{display:none}.tab.dirty:hover .tab-close{opacity:.7;display:flex}.tab.dirty:hover .tab-dirty-indicator{display:none}.tab:focus-visible{outline:1px solid var(--vscode-focusBorder,#007fd4);outline-offset:-1px}.output-item-details{color:inherit;white-space:pre-wrap;-webkit-user-select:text;user-select:text;background:#ffffff08;border-radius:4px;margin:4px 0 0;padding:8px;font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace}.editor-shell{background:var(--vscode-editor-background);flex:1;min-height:0;overflow:auto}.editor-frame{grid-template-columns:minmax(0,1fr) 240px;gap:16px;padding:14px 16px;display:grid}.editor-main,.editor-meta,.panel-shell{min-width:0}.editor-kicker{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);font-size:11px}.editor-title{margin:10px 0 6px;font-size:24px;font-weight:600}.editor-subtitle{margin:0 0 14px}.editor-toolbar{gap:8px;margin-bottom:14px;display:flex}.editor-toolbar-button{border:1px solid var(--vscode-panel-border);color:var(--vscode-foreground);background:0 0;border-radius:3px;padding:4px 8px}.editor-toolbar-button:hover,.panel-tab:hover{background:var(--vscode-toolbar-hoverBackground)}.editor-section{padding-top:4px}.editor-section h2{margin:0 0 8px;font-size:16px}.editor-list{margin:0;padding-left:18px;line-height:1.5}.editor-list.compact li{margin-bottom:6px}.editor-meta{border-left:1px solid var(--vscode-panel-border);padding-left:16px}.editor-meta-row{border-bottom:1px solid var(--vscode-panel-border);flex-direction:column;gap:3px;padding:10px 0;display:flex}.post-editor .post-editor-markdown-surface,.scripts-monaco.monaco-editor-shell,.templates-monaco.monaco-editor-shell{background:var(--vscode-editor-background);min-height:0;color:var(--vscode-editor-foreground);border-color:var(--vscode-panel-border)}.post-editor .monaco-editor-instance,.scripts-monaco .monaco-editor-instance,.templates-monaco .monaco-editor-instance{background:var(--vscode-editor-background);min-height:0}.monaco-editor-shell .monaco-editor,.monaco-editor-shell .monaco-editor .margin,.monaco-editor-shell .monaco-editor-background,.monaco-editor-shell .monaco-editor .inputarea.ime-input{background-color:var(--vscode-editor-background)!important}.monaco-editor-shell .monaco-editor,.monaco-editor-shell .monaco-editor .view-line{color:var(--vscode-editor-foreground)!important}.monaco-editor-shell .monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground,#858585)!important}.monaco-editor-shell .monaco-editor .current-line,.monaco-editor-shell .monaco-editor .view-overlays .current-line{border-color:var(--vscode-editor-lineHighlightBorder,transparent)!important}.help-doc-view{--doc-bg:var(--panel-1,#1e1e1e);--doc-surface:var(--panel-2,#252526);--doc-border:var(--line,#3c3c3c);--doc-text:var(--vscode-editor-foreground,#d4d4d4);--doc-muted:var(--vscode-descriptionForeground,#9da3ad);--doc-link:var(--vscode-textLink-foreground,#9cdcfe);--doc-code-bg:var(--vscode-textCodeBlock-background,#0003);--doc-hover:var(--vscode-list-hoverBackground,#ffffff0f)}.help-doc-view .misc-editor-content{padding:0;overflow:hidden}.documentation-view,.documentation-scroll{background:var(--doc-bg,var(--vscode-editor-background))}.documentation-view{flex-direction:column;height:100%;min-height:0;display:flex}.documentation-scroll{flex:1;min-height:0;padding:28px 24px 40px;overflow:auto}.documentation-content{max-width:920px;color:var(--doc-text,var(--vscode-editor-foreground));margin:0 auto}.documentation-article,.help-doc-markdown{background:var(--doc-surface);border:1px solid var(--doc-border);border-radius:10px;padding:18px 20px 24px;box-shadow:0 10px 24px #0000002e}.documentation-content.markdown-body>.documentation-article>:first-child{margin-top:0}.documentation-content.markdown-body>.documentation-article>:last-child{margin-bottom:0}.documentation-content.markdown-body h1,.documentation-content.markdown-body h2,.documentation-content.markdown-body h3{color:var(--doc-text);border-bottom:1px solid var(--doc-border);padding-bottom:6px;line-height:1.25}.documentation-content.markdown-body h1{font-size:1.9rem}.documentation-content.markdown-body h2{margin-top:2rem;font-size:1.35rem}.documentation-content.markdown-body h3{margin-top:1.6rem;font-size:1.05rem}.documentation-content.markdown-body p,.documentation-content.markdown-body li,.documentation-content.markdown-body td,.documentation-content.markdown-body th{line-height:1.6}.documentation-content.markdown-body a{color:var(--doc-link);text-underline-offset:.14em;text-decoration-thickness:1px}.documentation-content.markdown-body a:hover{color:var(--doc-text)}.documentation-content.markdown-body hr{border:0;border-top:1px solid var(--doc-border);opacity:.8}.documentation-content.markdown-body code{background:var(--doc-code-bg);border-radius:4px;padding:.12em .4em;font:.92em/1.45 SFMono-Regular,Menlo,Monaco,Consolas,monospace}.documentation-content.markdown-body pre{background:var(--doc-code-bg);border:1px solid var(--doc-border);border-radius:8px;margin:.9rem 0 1.2rem;padding:14px 16px;overflow:auto}.documentation-content.markdown-body pre code{background:0 0;padding:0;font-size:.9em}.documentation-content.markdown-body blockquote{border-left:3px solid var(--doc-border);color:var(--doc-muted);margin:1rem 0;padding:0 0 0 12px}.documentation-content.markdown-body table{border-collapse:collapse;width:100%;margin:1rem 0 1.4rem;display:table}.documentation-content.markdown-body th,.documentation-content.markdown-body td{border:1px solid var(--doc-border);text-align:left;vertical-align:top;padding:8px 10px}.documentation-content.markdown-body th{background:var(--doc-hover);font-weight:700}.documentation-content.markdown-body ul,.documentation-content.markdown-body ol{margin:.85rem 0 1rem;padding-left:1.5rem;display:block}.documentation-content.markdown-body ul{list-style:outside}.documentation-content.markdown-body ol{list-style:decimal}.documentation-content.markdown-body li{margin:.3rem 0}.documentation-content.markdown-body li>ul,.documentation-content.markdown-body li>ol{margin-top:.35rem;margin-bottom:.35rem}.documentation-content.markdown-body strong{color:var(--doc-text)}.documentation-content.markdown-body img{max-width:100%;height:auto}.post-editor,.scripts-view-shell,.templates-view-shell{background-color:var(--vscode-editor-background);flex-direction:column;flex:1;display:flex;overflow:hidden}.post-editor .editor-tab-dirty{color:var(--vscode-notificationsWarningIcon-foreground,var(--vscode-editorWarning-foreground));font-size:10px}.post-editor .editor-tab-meta{color:var(--vscode-descriptionForeground);white-space:nowrap;font-size:11px}.post-editor .quick-actions-wrapper{display:inline-block;position:relative}.post-editor .quick-actions-btn{white-space:nowrap;align-items:center;gap:4px;display:flex}.post-editor .quick-actions-btn-icon{font-size:12px;line-height:1}.post-editor .quick-actions-divider{background:var(--vscode-dropdown-border,#454545);height:1px}.post-editor .quick-action-icon{flex-shrink:0;margin-top:2px;font-size:16px}.post-editor .quick-action-text strong{font-size:13px;font-weight:500}.post-editor .quick-action-text small{opacity:.7;font-size:11px}.post-editor .status-badge,.scripts-view-shell .status-badge,.templates-view-shell .status-badge{text-transform:uppercase;border-radius:10px;padding:2px 8px;font-size:11px;font-weight:500}.post-editor .status-badge.status-draft,.scripts-view-shell .status-badge.status-draft,.templates-view-shell .status-badge.status-draft{color:var(--vscode-notificationsWarningIcon-foreground,var(--vscode-editorWarning-foreground));background-color:#cca70033}.post-editor .status-badge.status-published,.scripts-view-shell .status-badge.status-published,.templates-view-shell .status-badge.status-published{color:var(--vscode-testing-iconPassed);background-color:#73c99133}.post-editor .status-badge.status-archived,.scripts-view-shell .status-badge.status-archived,.templates-view-shell .status-badge.status-archived{color:var(--vscode-descriptionForeground);background-color:#85858533}.post-editor .auto-save-indicator{color:var(--vscode-descriptionForeground);font-size:11px;font-style:italic}.post-editor .metadata-toggle{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;cursor:pointer;background:0 0;border:none;flex-shrink:0;align-items:center;gap:8px;padding:6px 4px;font-size:11px;font-weight:500;transition:color .15s;display:flex}.post-editor .metadata-toggle:hover{color:var(--vscode-foreground)}.post-editor .metadata-toggle-chevron{font-size:10px}.post-editor .editor-header-row.is-collapsed{display:none}.post-editor .editor-media-panel{flex-shrink:0;width:200px}.post-editor .editor-field label,.post-editor .editor-body label,.post-editor .post-editor-links-label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;font-size:11px;font-weight:500}.post-editor .editor-checkbox-label{text-transform:none;letter-spacing:0;color:var(--vscode-foreground);align-items:center;gap:8px;display:inline-flex}.post-editor .post-editor-input.is-readonly{opacity:.7;cursor:not-allowed}.post-editor .post-editor-excerpt{min-height:96px}.post-editor .tag-input-container{width:100%;position:relative}.post-editor .tag-input-container.is-disabled{opacity:.72}.post-editor .tag-input-wrapper{border:1px solid var(--vscode-input-border,#3c3c3c);background:var(--vscode-input-background,#3c3c3c);cursor:text;border-radius:4px;flex-wrap:wrap;align-items:center;gap:6px;min-height:38px;padding:6px 8px;display:flex}.post-editor .tag-input-wrapper:focus-within{border-color:var(--vscode-focusBorder,#007fd4);outline:none}.post-editor .tag-chip{background:var(--vscode-badge-background,#4d4d4d);border:1px solid var(--vscode-widget-border,#454545);color:var(--vscode-badge-foreground,#fff);white-space:nowrap;border-radius:4px;align-items:center;gap:4px;padding:3px 8px;font-size:.85rem;display:inline-flex}.post-editor .tag-chip.has-color{border-radius:12px;padding:3px 10px}.post-editor .tag-chip-remove{width:16px;height:16px;color:inherit;cursor:pointer;opacity:.6;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;margin-left:2px;padding:0;font-size:1rem;line-height:1;transition:opacity .15s,background .15s;display:inline-flex}.post-editor .tag-chip-remove:hover{opacity:1;background:#0000001a}.post-editor .tag-chip.has-color .tag-chip-remove:hover{background:#0003}.post-editor .tag-input-field{min-width:120px;color:var(--vscode-input-foreground,#ccc);background:0 0;border:none;outline:none;flex:1;padding:2px 4px;font-family:inherit;font-size:.9rem}.post-editor .tag-input-field::placeholder{color:var(--vscode-input-placeholderForeground,#a6a6a6)}.post-editor .tag-input-field:disabled{cursor:not-allowed}.post-editor .tag-suggestions{background:var(--vscode-dropdown-background,#3c3c3c);border:1px solid var(--vscode-widget-border,#454545);z-index:1000;border-radius:6px;max-height:240px;margin-top:4px;padding:4px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 4px 16px #00000080,0 0 0 1px #0003}.post-editor .tag-suggestion{width:100%;color:var(--vscode-dropdown-foreground,#f0f0f0);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:8px;padding:8px 12px;font-family:inherit;font-size:.9rem;transition:background .1s;display:flex}.post-editor .tag-suggestion:hover,.post-editor .tag-suggestion.selected{background:var(--vscode-list-hoverBackground,#2a2d2e)}.post-editor .tag-suggestion-color{border-radius:50%;flex-shrink:0;width:12px;height:12px}.post-editor .tag-suggestion-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.post-editor .tag-suggestion-section-label{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground,#a6a6a6);padding:4px 12px;font-size:.75rem}.post-editor .tag-suggestion.create-new{border-top:1px solid var(--vscode-widget-border,#454545);color:var(--vscode-notificationsInfoIcon-foreground,#75beff);margin-top:4px;padding:12px 8px 6px}.post-editor .tag-suggestion.create-new:first-child{border-top:none;margin-top:0;padding-top:8px}.post-editor .tag-suggestion-icon{border:1px dashed;border-radius:4px;justify-content:center;align-items:center;width:18px;height:18px;font-size:.9rem;font-weight:600;display:inline-flex}.post-editor .editor-language-row select{flex:1;min-width:0}.post-editor .editor-translation-flag{cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;flex:none;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:14px;line-height:1;display:inline-flex}.post-editor .editor-translation-flag.status-draft{opacity:.82}.post-editor .editor-translation-flag.status-archived{opacity:.45;filter:grayscale(.35)}.post-editor .editor-translation-flag.active{border-color:var(--vscode-testing-iconQueued,#cca700);background:var(--vscode-testing-iconQueued,#cca700)}@supports (color:color-mix(in lab, red, red)){.post-editor .editor-translation-flag.active{background:color-mix(in srgb,var(--vscode-testing-iconQueued,#cca700)14%,transparent)}}.post-editor .editor-translation-flag:hover{background:var(--vscode-list-hoverBackground)}@supports (color:color-mix(in lab, red, red)){.post-editor .editor-translation-flag:hover{background:color-mix(in srgb,var(--vscode-list-hoverBackground)75%,transparent)}}.post-editor .post-editor-links-panel,.post-editor .post-editor-side-panel{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px;padding:12px}@supports (color:color-mix(in lab, red, red)){.post-editor .post-editor-links-panel,.post-editor .post-editor-side-panel{background:color-mix(in srgb,var(--vscode-editor-background)82%,white 3%)}}.post-editor .post-editor-side-panel-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.post-editor .post-editor-links-columns{align-items:flex-start;gap:18px;margin-top:10px;display:flex}.post-editor .post-editor-links-columns>div{flex:1;min-width:0}.post-editor .post-editor-empty,.post-editor .post-editor-media-meta{color:var(--vscode-descriptionForeground);font-size:12px}.post-editor .post-editor-media-list{flex-direction:column;gap:8px;margin:10px 0 0;padding:0;list-style:none;display:flex}.post-editor .post-editor-media-item{background:#ffffff08;border-radius:6px;flex-direction:column;gap:2px;padding:8px 10px;display:flex}.post-editor .editor-body{flex-direction:column;flex:1;gap:4px;min-height:320px;display:flex}.post-editor .editor-toolbar{align-items:center;gap:8px;margin-bottom:8px;display:flex}.post-editor .editor-toolbar-left{flex:1;justify-content:flex-start;align-items:center;min-width:0;display:flex}.post-editor .editor-toolbar-center{flex:none;justify-content:center;align-items:center;display:flex}.post-editor .editor-toolbar-right{flex:1 0 auto;justify-content:flex-end;align-items:center;gap:6px;display:flex}.post-editor .editor-mode-toggle{gap:4px;display:flex}.post-editor .editor-mode-toggle button,.post-editor .editor-toolbar-button{cursor:pointer;border:none;border-radius:4px;padding:4px 12px;font-size:12px;transition:background-color .15s}.post-editor .editor-mode-toggle button{background-color:var(--vscode-button-secondaryBackground,#ffffff14);color:var(--vscode-button-secondaryForeground,var(--vscode-foreground))}.post-editor .editor-mode-toggle button:hover,.post-editor .editor-toolbar-button:hover{background-color:var(--vscode-button-secondaryHoverBackground,var(--vscode-toolbar-hoverBackground))}.post-editor .editor-mode-toggle button.active{background-color:var(--vscode-button-background,var(--accent-color));color:var(--vscode-button-foreground,#fff)}.post-editor .editor-toolbar-button{background:var(--vscode-button-secondaryBackground,#ffffff14);color:var(--vscode-button-secondaryForeground,var(--vscode-foreground))}.post-editor .editor-excerpt-panel.is-collapsed{display:none}.post-editor .editor-preview{background-color:var(--vscode-input-background);background-color:var(--vscode-input-background);border:none;border:1px solid var(--vscode-panel-border);border-radius:4px;flex:1;min-height:240px;padding:14px;line-height:1.6;position:relative;overflow:auto}.post-editor .editor-preview-frame{background:#fff;border:none;width:100%;min-height:520px}.post-editor .post-editor-markdown-surface{border:1px solid var(--vscode-input-border,var(--vscode-panel-border));background:var(--vscode-input-background);border-radius:4px;flex:1;min-height:380px;position:relative;overflow:hidden}.post-editor .monaco-editor-shell,.scripts-monaco.monaco-editor-shell,.templates-monaco.monaco-editor-shell{position:relative}.monaco-editor-instance{width:100%;height:100%;min-height:100%}.post-editor .monaco-editor-instance{min-height:380px}.scripts-monaco .monaco-editor-instance,.templates-monaco .monaco-editor-instance{min-height:420px}.monaco-editor-input{clip:rect(0,0,0,0);white-space:pre;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.post-editor .editor-footer{border-top:1px solid var(--vscode-panel-border);background-color:var(--vscode-sideBar-background);color:var(--vscode-descriptionForeground);flex-wrap:wrap;align-items:center;gap:16px;padding:8px 16px;font-size:12px;display:flex}@media (max-width:980px){.post-editor .editor-header,.scripts-view-shell .ui-editor-header,.templates-view-shell .ui-editor-header,.post-editor .metadata-toggle-header{flex-direction:column;align-items:flex-start;display:flex}.post-editor .editor-header-row,.post-editor .editor-field-row,.post-editor .post-editor-links-columns{flex-direction:column}.post-editor .editor-media-panel{width:100%}.post-editor .ui-editor-actions,.scripts-view-shell .ui-editor-actions,.templates-view-shell .ui-editor-actions{justify-content:flex-start}}.settings-view,.style-view{flex-direction:column;height:100%;display:flex}.settings-header,.style-view-header{border-bottom:1px solid var(--line,#3c3c3c);justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;display:flex}.settings-search input{width:min(320px,40vw)}.settings-content{flex-direction:column;gap:18px;padding:20px;display:flex;overflow:auto}.setting-section{border:1px solid var(--line,#3c3c3c);background:var(--panel-2,#252526);border-radius:12px}.setting-section-header{border-bottom:1px solid var(--line,#3c3c3c);padding:14px 16px}.setting-section-content{flex-direction:column;gap:14px;padding:16px;display:flex}.setting-row{grid-template-columns:minmax(180px,240px) minmax(0,1fr);align-items:start;gap:16px;display:grid}.setting-label{font-weight:600}.setting-control,.setting-input-group{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.setting-actions{flex-wrap:wrap;gap:10px;padding:0 16px 16px;display:flex}.style-theme-picker{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;padding:20px;display:grid}.style-theme-option{border:1px solid var(--line,#3c3c3c);background:var(--panel-2,#252526);text-align:left;cursor:pointer;border-radius:14px;padding:14px}.style-theme-option.selected{border-color:var(--accent-color);box-shadow:0 0 0 1px var(--accent-color)}.style-theme-swatch{flex-direction:column;gap:12px;display:flex}.style-theme-tones{grid-template-columns:2fr 1fr 1fr;gap:8px;display:grid}.style-theme-tone{border:1px solid #ffffff14;border-radius:10px;height:42px}.style-apply-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:0 20px 20px;display:flex}.style-preview-container{flex:1;min-height:0;padding:0 20px 20px}.style-preview-frame{border:1px solid var(--line,#3c3c3c);background:#fff;border-radius:14px;width:100%;height:100%;min-height:420px}@media (max-width:1100px){.setting-row{grid-template-columns:1fr}}.panel-shell{border-top:1px solid var(--line);min-height:160px;max-height:160px}.panel-shell.is-hidden{display:none}.panel-tabs{gap:2px;display:flex}.panel-tab{color:var(--vscode-tab-inactiveForeground);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0;padding:6px 12px;font-size:12px}.panel-tab:hover{color:var(--vscode-tab-activeForeground);background:0 0}.panel-tab.active{color:var(--vscode-tab-activeForeground);border-bottom-color:var(--vscode-focusBorder);background:0 0}.assistant-content{flex-direction:column;gap:12px;padding:12px;display:flex}.assistant-sidebar-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.assistant-sidebar-heading{flex-direction:column;gap:4px;display:flex}.assistant-sidebar-description,.assistant-sidebar-context-text,.assistant-sidebar-message-content{color:var(--vscode-descriptionForeground)}.assistant-sidebar-status{border:1px solid var(--vscode-panel-border);border-radius:999px;padding:2px 8px;font-size:11px;line-height:1.4}.assistant-sidebar-status.is-offline{color:var(--vscode-editor-foreground);background:#ffc4002e;border-color:#ffc40059}.assistant-sidebar-context{border:1px solid var(--vscode-panel-border);background:var(--vscode-editorWidget-background,#0003);border-radius:6px;flex-direction:column;gap:10px;padding:8px;display:flex}.assistant-sidebar-context-row{justify-content:space-between;gap:12px;display:flex}.assistant-sidebar-context-label,.assistant-sidebar-message-role{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);font-size:11px}.assistant-sidebar-context-value{text-align:right;color:var(--vscode-editor-foreground)}.assistant-sidebar-context-text,.assistant-sidebar-message-content{white-space:pre-wrap;margin:0}.assistant-sidebar-prompt-form,.assistant-sidebar-transcript{flex-direction:column;gap:10px;display:flex}.assistant-sidebar-prompt{resize:vertical;border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);width:100%;min-height:120px;color:var(--vscode-input-foreground);font:inherit;border-radius:6px;padding:10px}.assistant-sidebar-prompt:focus{outline:1px solid var(--vscode-focusBorder);outline-offset:1px}.assistant-sidebar-start-button{align-self:flex-start}.assistant-sidebar-start-button:disabled{cursor:default;opacity:.55}.assistant-sidebar-message{border:1px solid var(--vscode-panel-border);background:var(--vscode-editorWidget-background,#0003);border-bottom-width:1px;border-radius:6px;flex-direction:column;gap:6px;padding:12px;display:flex}.assistant-sidebar-message.user{background:var(--vscode-list-hoverBackground)}.assistant-sidebar-message.assistant{background:var(--vscode-editorWidget-background,#0003)}.status-bar{background-color:var(--vscode-statusBar-background);height:22px;color:var(--vscode-statusBar-foreground);-webkit-user-select:none;user-select:none;border-top:none;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:0;padding:0 8px;font-size:12px;display:flex}.status-bar-left,.status-bar-right{flex-shrink:0;align-items:center;gap:4px;min-width:0;display:flex}.status-bar-item{white-space:nowrap;text-overflow:ellipsis;background:0 0;border-radius:0;align-items:center;gap:6px;max-width:none;height:100%;padding:0 8px;font-size:12px;display:flex;overflow:hidden}.status-bar-item .task-message-text{text-overflow:ellipsis;white-space:nowrap;max-width:300px;overflow:hidden}.task-spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:10px;height:10px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.panel-content{padding:8px}.task-list{gap:4px}.output-list,.git-log-list{gap:6px}.task-entry{background-color:var(--vscode-sideBar-background);border-bottom:none;border-radius:4px;padding:8px}.output-entry{background-color:var(--vscode-sideBar-background);color:var(--vscode-editor-foreground);border-bottom:none;border-radius:4px;padding:8px;font-size:12px}@media (max-width:1100px){.editor-frame{grid-template-columns:1fr}.assistant-sidebar-shell{display:none}.dashboard-grid{grid-template-columns:1fr}}.text-muted{color:var(--vscode-descriptionForeground)}.editor-empty{background-color:var(--vscode-editor-background);flex:1;justify-content:center;align-items:flex-start;padding:40px 20px;display:flex;overflow-y:auto}.dashboard-content{width:100%;max-width:720px}.dashboard-content h1{color:var(--vscode-editor-foreground);margin:0 0 4px;font-size:24px;font-weight:400}.dashboard-content>.text-muted{margin-bottom:24px;display:block}.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px;display:grid}.stat-card{background-color:var(--vscode-sideBar-background);border-radius:6px;padding:16px}.stat-number{color:var(--vscode-editor-foreground);margin-bottom:4px;font-size:32px;font-weight:600;line-height:1}.stat-label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px;font-size:12px}.stat-breakdown{flex-wrap:wrap;gap:6px;display:flex}.stat-tag{background-color:var(--vscode-input-background);color:var(--vscode-descriptionForeground);border-radius:3px;padding:2px 8px;font-size:11px}.stat-published{color:var(--vscode-testing-iconPassed)}.stat-draft{color:var(--vscode-editorWarning-foreground)}.stat-archived{color:var(--vscode-descriptionForeground)}.dashboard-section{background-color:var(--vscode-sideBar-background);border-radius:6px;margin-bottom:12px;padding:16px}.dashboard-section h4{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;margin:0 0 12px;font-size:11px;font-weight:600}.timeline-chart{align-items:flex-end;gap:4px;height:100px;display:flex}.timeline-bar-container{flex-direction:column;flex:1;align-items:center;height:100%;display:flex}.timeline-bar{background-color:var(--vscode-activityBarBadge-background);border-radius:3px 3px 0 0;width:100%;max-width:40px;min-height:4px;margin-top:auto;transition:opacity .15s;position:relative}.timeline-bar:hover{opacity:.8}.timeline-bar-count{color:var(--vscode-descriptionForeground);font-size:10px;position:absolute;top:-16px;left:50%;transform:translate(-50%)}.timeline-bar-label{color:var(--vscode-descriptionForeground);flex-direction:column;align-items:center;margin-top:4px;font-size:9px;line-height:1.15;display:flex}.timeline-bar-label-month{white-space:nowrap}.timeline-bar-label-year{font-size:8px}.tag-cloud{flex-wrap:wrap;align-items:baseline;gap:6px 10px;line-height:1.6;display:flex}.dashboard-tag{background-color:var(--vscode-input-background);color:var(--vscode-editor-foreground);cursor:default;white-space:nowrap;border-radius:10px;padding:2px 8px;transition:opacity .15s}.dashboard-tag:hover{opacity:.75}.dashboard-tag.has-color{border-radius:12px}.dashboard-tag.has-color:hover{opacity:.85}.tag-cloud-more{font-size:11px}.tag-count{opacity:.5;margin-left:2px;font-size:10px}.dashboard-category{border:1px solid var(--vscode-input-border);font-size:12px}.recent-posts-list{flex-direction:column;display:flex}.recent-post-item{cursor:pointer;text-align:left;width:100%;color:inherit;background:0 0;border:none;border-radius:4px;align-items:center;gap:10px;padding:6px 8px;font-size:12px;display:flex}.recent-post-item:hover{background-color:var(--vscode-list-hoverBackground)}.recent-post-title{color:var(--vscode-editor-foreground);text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.recent-post-status{background-color:var(--vscode-input-background);text-transform:uppercase;letter-spacing:.3px;border-radius:3px;padding:1px 6px;font-size:10px}.recent-post-status.status-published{color:var(--vscode-testing-iconPassed)}.recent-post-status.status-draft{color:var(--vscode-editorWarning-foreground)}.recent-post-status.status-archived{color:var(--vscode-descriptionForeground)}.recent-post-date{color:var(--vscode-descriptionForeground);white-space:nowrap}.settings-view-shell,.style-view,.tags-view-shell,.scripts-view-shell,.templates-view-shell,.chat-panel{background:var(--vscode-editor-background);height:100%}.chat-panel{color:var(--vscode-editor-foreground)}.chat-panel-header{border-bottom:1px solid var(--vscode-panel-border);background:var(--vscode-sideBar-background)}.chat-panel-title{flex:1;gap:10px;min-width:0;font-size:14px;font-weight:600;overflow:visible}.chat-panel-title-main{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-panel-header-actions{align-items:center;gap:8px;display:flex}.chat-model-selector-wrap{min-width:0;display:inline-flex;position:relative}.chat-model-selector-button,.chat-model-selector-option{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);color:var(--vscode-input-foreground)}.chat-model-selector-menu{border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));background:var(--vscode-dropdown-background,var(--vscode-sideBar-background));color:var(--vscode-dropdown-foreground,var(--vscode-foreground));z-index:20;position:absolute;top:calc(100% + 4px);left:0;right:auto}.chat-panel .chat-model-selector-button.chat-model-selector-inline{align-items:center;gap:6px;display:inline-flex}.chat-panel .chat-model-selector-caret{font-size:10px;position:static}.chat-messages,.chat-surface-scroll{flex:1;min-height:0;overflow-y:auto}.chat-message{max-width:100%;margin-bottom:16px;display:flex}.chat-message.user{flex-direction:row-reverse}.chat-message-content{border:1px solid var(--vscode-panel-border);background:var(--vscode-sideBar-background);max-width:min(760px,100%);color:var(--vscode-editor-foreground);border-radius:6px;padding:12px 14px}.chat-panel .chat-message.user .chat-message-content{background:var(--vscode-button-background,var(--accent-color,#007acc));color:var(--vscode-button-foreground,var(--vscode-list-activeSelectionForeground,#fff));border:1px solid var(--vscode-button-background,var(--accent-color,#007acc));border-radius:6px;padding:12px 14px;line-height:1.35}.chat-tool-surface-table{border-collapse:collapse;width:100%}.chat-tool-surface-table th,.chat-tool-surface-table td{border-bottom:1px solid var(--vscode-panel-border);text-align:left;padding:6px 8px}.chat-tool-surface-json{border:1px solid var(--vscode-panel-border);background:var(--vscode-textCodeBlock-background);border-radius:4px;padding:10px 12px;overflow:auto}.chat-inline-surface{border:1px solid var(--vscode-panel-border);background:var(--vscode-sideBar-background);border-radius:6px;margin:10px 0;overflow:hidden}.chat-inline-surface-header{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--vscode-descriptionForeground);align-items:center;gap:8px;padding:8px 12px;font-size:12px;list-style:none;display:flex}.chat-inline-surface-header::-webkit-details-marker{display:none}.chat-inline-surface-header::marker{content:""}.chat-inline-surface-icon{opacity:.7;flex:none;font-size:14px;line-height:1}.chat-inline-surface-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--vscode-editor-foreground);flex:1;font-weight:500;overflow:hidden}.chat-inline-surface-dismiss{width:20px;height:20px;color:var(--vscode-descriptionForeground);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;font-size:16px;line-height:1;transition:opacity .15s;display:flex}.chat-inline-surface:hover .chat-inline-surface-dismiss{opacity:1}.chat-inline-surface-dismiss:hover{background:var(--vscode-toolbar-hoverBackground);color:var(--vscode-editor-foreground)}.chat-inline-surface-body{padding:0 12px 12px}.chat-inline-surface-body h3{color:var(--vscode-editor-foreground);margin:0 0 8px;font-size:13px;font-weight:600}.chat-surface-chart-type{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);margin:0 0 8px;font-size:11px;display:none}.chat-surface-chart-list{flex-direction:column;gap:6px;display:flex}.chat-surface-chart-row{flex-direction:column;gap:2px;display:flex}.chat-surface-chart-meta{justify-content:space-between;align-items:baseline;font-size:12px;display:flex}.chat-surface-chart-meta span:first-child{color:var(--vscode-editor-foreground)}.chat-surface-chart-meta span:last-child{color:var(--vscode-descriptionForeground);font-variant-numeric:tabular-nums}.chat-surface-chart-bar{background:#ffffff0f;border-radius:3px;height:6px;overflow:hidden}.chat-surface-chart-bar span{background:var(--accent-color);border-radius:3px;min-width:0;height:100%;transition:width .3s;display:block}.chat-surface-chart-bar-stacked{display:flex}.chat-surface-chart-bar-segment{min-width:0;height:100%;transition:width .3s;display:block}.chat-surface-chart-legend{flex-wrap:wrap;gap:10px;margin-top:8px;font-size:11px;display:flex}.chat-surface-chart-legend-item{color:var(--vscode-descriptionForeground);align-items:center;gap:4px;display:inline-flex}.chat-surface-chart-legend-swatch{border-radius:2px;width:10px;height:10px;display:inline-block}.chat-surface-chart-pie{flex-direction:column;align-items:center;gap:8px;display:flex}.chat-surface-chart-pie-svg{width:140px;height:140px}.chat-surface-chart-pie-slice{stroke:var(--vscode-editor-background,#1e1e1e);stroke-width:1px}.chat-surface-chart-donut-hole{fill:var(--vscode-editor-background,#1e1e1e)}.chat-surface-chart-donut-total{fill:var(--vscode-editor-foreground);font-size:16px;font-weight:600}.chat-surface-chart-line-svg{width:100%;height:auto}.chat-surface-chart-line-grid{stroke:#ffffff14;stroke-width:1px}.chat-surface-chart-line-y-label,.chat-surface-chart-line-x-label{fill:var(--vscode-descriptionForeground);font-size:9px}.chat-surface-chart-line-path{stroke:var(--accent-color);stroke-width:2px}.chat-surface-chart-area-fill{fill:var(--accent-color);opacity:.18}.chat-surface-chart-line-dot{fill:var(--accent-color)}.chat-surface-chart-heatmap{gap:2px;font-size:11px;display:grid}.chat-surface-chart-heatmap-col-label{text-align:center;opacity:.7;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-surface-chart-heatmap-row-label{text-align:right;opacity:.7;white-space:nowrap;text-overflow:ellipsis;max-width:80px;padding-right:4px;overflow:hidden}.chat-surface-chart-heatmap-cell{aspect-ratio:1;font-variant-numeric:tabular-nums;border-radius:2px;justify-content:center;align-items:center;min-width:14px;min-height:14px;font-size:10px;font-weight:500;display:flex}.chat-surface-card{flex-direction:column;gap:6px;display:flex}.chat-surface-subtitle{color:var(--vscode-descriptionForeground);margin:0;font-size:12px}.chat-surface-body{margin:0;font-size:13px;line-height:1.45}.chat-surface-actions{gap:8px;margin-top:8px;display:flex}.chat-surface-action-button{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);color:var(--vscode-editor-foreground);cursor:pointer;border-radius:4px;padding:4px 12px;font-size:12px}.chat-surface-action-button:hover{background:var(--vscode-list-hoverBackground)}.chat-surface-metric{flex-direction:column;gap:2px;display:flex}.chat-surface-metric-label{color:var(--vscode-descriptionForeground);font-size:12px}.chat-surface-metric-value{font-variant-numeric:tabular-nums;color:var(--vscode-editor-foreground);font-size:22px;font-weight:600}.chat-surface-list{margin:0;padding:0 0 0 18px;font-size:13px;line-height:1.5}.chat-surface-mindmap{margin:0;padding:0;font-size:13px;list-style:none}.chat-surface-mindmap li{border-bottom:1px solid var(--vscode-panel-border);padding:4px 0}.chat-surface-mindmap li:last-child{border-bottom:none}.chat-surface-mindmap strong{color:var(--vscode-editor-foreground);display:block}.chat-surface-mindmap-children{color:var(--vscode-descriptionForeground);padding-left:12px;font-size:12px;display:block}.chat-surface-tabs{flex-direction:column;display:flex}.chat-surface-tab-list{border-bottom:1px solid var(--vscode-panel-border);gap:0;display:flex}.chat-surface-tab-button{color:var(--vscode-descriptionForeground);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;padding:6px 12px;font-size:12px}.chat-surface-tab-button.active{color:var(--vscode-editor-foreground);border-bottom-color:var(--accent-color)}.chat-surface-tab-button:hover:not(.active){color:var(--vscode-editor-foreground)}.chat-surface-tab-panel{padding:10px 0 0}.chat-surface-form{flex-direction:column;gap:10px;display:flex}.chat-surface-form-field{color:var(--vscode-descriptionForeground);flex-direction:column;gap:4px;font-size:12px;display:flex}.chat-surface-form-field input,.chat-surface-form-field textarea,.chat-surface-form-field select{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);color:var(--vscode-input-foreground);font:inherit;border-radius:4px;padding:5px 8px}.chat-surface-form-field textarea{resize:vertical;min-height:60px}.chat-surface-form-checkbox{align-items:center;display:flex}.chat-surface-text{white-space:pre-wrap;font-size:13px;line-height:1.45}.chat-tool-surface-table-wrap{overflow-x:auto}.chat-panel .chat-input-container{--chat-input-line-height:22px;--chat-input-min-height:24px;border-top:1px solid var(--vscode-panel-border);background:var(--vscode-sideBar-background);padding:12px 16px}.chat-panel .chat-input-wrapper{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);border-radius:8px;min-height:40px;padding:6px 8px}.chat-panel .chat-input-wrapper:focus-within{border-color:var(--vscode-focusBorder)}.chat-panel .chat-input{box-sizing:border-box;height:var(--chat-input-min-height);min-height:var(--chat-input-min-height);line-height:var(--chat-input-line-height);resize:vertical;max-height:160px;color:var(--vscode-input-foreground);background:0 0;border:0;outline:none;flex:1;margin:0;padding:6px 8px;overflow-y:hidden}.chat-panel .chat-input:focus{outline:none}.chat-panel .chat-input::placeholder{color:var(--vscode-input-placeholderForeground)}.chat-panel .chat-send-button{flex:none;width:22px;max-width:22px;height:22px;max-height:22px;padding:0}.chat-panel .chat-send-button:disabled{opacity:.5}@media (max-width:720px){.chat-panel-header{flex-direction:column;align-items:stretch;padding:10px 12px}.chat-panel-title{flex-wrap:wrap;width:100%}.chat-model-selector-wrap{width:100%}.chat-panel .chat-model-selector-button.chat-model-selector-inline{justify-content:space-between;width:100%}.chat-messages{padding:12px}.chat-message-content{max-width:100%}.chat-panel .chat-input-container{padding:8px 12px}}.colour-picker-wrap{display:inline-flex;position:relative}.colour-picker-trigger{border:1px solid var(--vscode-input-border);cursor:pointer;border-radius:4px;flex-shrink:0;width:28px;height:28px;padding:0}.colour-picker-trigger:hover{opacity:.85}.colour-picker-popover{z-index:30;border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));background:var(--vscode-dropdown-background,var(--vscode-sideBar-background));border-radius:6px;width:196px;padding:8px;position:absolute;top:calc(100% + 4px);left:0;box-shadow:0 4px 12px #00000040}.colour-picker-grid{grid-template-columns:repeat(6,1fr);gap:4px;display:grid}.colour-picker-swatch{cursor:pointer;border:2px solid #0000;border-radius:4px;width:24px;height:24px;padding:0;transition:border-color .1s}.colour-picker-swatch:hover{border-color:var(--vscode-focusBorder)}.colour-picker-swatch.selected{border-color:var(--vscode-focusBorder);box-shadow:0 0 0 1px var(--vscode-focusBorder)}.colour-picker-custom{border-top:1px solid var(--vscode-panel-border);align-items:center;gap:6px;margin-top:8px;padding-top:8px;display:flex}.colour-picker-custom label{color:var(--vscode-descriptionForeground);white-space:nowrap;font-size:11px}.colour-picker-custom input{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);min-width:0;color:var(--vscode-input-foreground);border-radius:3px;flex:1;padding:2px 6px;font-family:monospace;font-size:12px}.overlay-root{pointer-events:none;z-index:10000;position:fixed;inset:0}.overlay-root:empty{display:none}.editor-shared-actions{margin-bottom:14px;position:relative}.ai-suggestions-modal-backdrop,.insert-modal-backdrop,.language-picker-modal-backdrop,.confirm-delete-modal-backdrop,.confirm-dialog-overlay,.git-run-backdrop,.gallery-overlay,.lightbox-overlay{pointer-events:auto;background:#000000ad;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.ai-suggestions-modal,.insert-modal,.language-picker-modal,.confirm-delete-modal,.confirm-dialog,.git-run-modal,.gallery-overlay-content{z-index:1;background:#1e1e1e;border:1px solid #3c3c3c;border-radius:8px;position:relative;box-shadow:0 8px 32px #0006}.git-run-modal{flex-direction:column;width:min(760px,100vw - 32px);max-height:calc(100vh - 48px);display:flex;overflow:hidden}.git-run-header{border-bottom:1px solid #3c3c3c;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.git-run-title{font-size:14px;font-family:var(--font-mono,monospace);margin:0}.git-run-status{font-size:12px;font-weight:600}.git-run-status.running{color:#d7ba7d}.git-run-status.ok{color:#4ec9b0}.git-run-status.fail{color:#f48771}.git-run-output{white-space:pre-wrap;word-break:break-word;min-height:160px;max-height:60vh;font-family:var(--font-mono,monospace);background:#141414;flex:1;margin:0;padding:12px 16px;font-size:12px;line-height:1.5;overflow:auto}.git-run-stdout{color:#d4d4d4}.git-run-stderr{color:#f48771}.git-run-footer{border-top:1px solid #3c3c3c;justify-content:flex-end;padding:12px 16px;display:flex}.ai-suggestions-modal,.language-picker-modal,.confirm-delete-modal,.confirm-dialog{flex-direction:column;width:min(680px,100vw - 32px);max-height:calc(100vh - 48px);display:flex}.insert-modal{flex-direction:column;width:min(680px,100vw - 32px);max-height:calc(100vh - 48px);display:flex;overflow:hidden}.gallery-overlay-content{flex-direction:column;width:min(980px,100vw - 48px);max-height:calc(100vh - 48px);display:flex;overflow:hidden}.ai-suggestions-modal-header,.language-picker-modal-header,.confirm-delete-modal-header,.insert-modal-header,.gallery-overlay-header{border-bottom:1px solid #3c3c3c;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.insert-modal-header{flex-direction:column;align-items:stretch;gap:12px}.insert-modal-header.media-header-only{flex-direction:row;align-items:center}.ai-suggestions-modal-header h2,.language-picker-modal-header h2,.confirm-delete-modal-header h2,.gallery-overlay-header h2,.insert-modal-title,.confirm-dialog h3{color:#fff;margin:0}.ai-suggestions-modal-close,.confirm-delete-modal-close,.gallery-overlay-close,.shared-popover-close,.lightbox-close{color:#c5c5c5;cursor:pointer;background:0 0;border:none;font-size:20px;line-height:1}.ai-suggestions-modal-body,.language-picker-modal-body,.confirm-delete-modal-body{padding:20px;overflow:auto}.ai-suggestions-list{flex-direction:column;gap:16px;display:flex}.ai-suggestion-item{background:#252526;border:1px solid #3c3c3c;border-radius:6px;gap:12px;padding:16px;display:flex}.ai-suggestion-checkbox{cursor:pointer;align-items:flex-start;display:flex;position:relative}.ai-suggestion-checkbox input{opacity:0;position:absolute}.checkmark{background:#1e1e1e;border:2px solid #555;border-radius:4px;justify-content:center;align-items:center;width:20px;height:20px;display:inline-flex}.ai-suggestion-checkbox input:checked+.checkmark,.ai-suggestion-checkbox input:checked~.checkmark{background:#0078d4;border-color:#0078d4}.ai-suggestion-checkbox input:checked+.checkmark:after,.ai-suggestion-checkbox input:checked~.checkmark:after{content:"✓";color:#fff;font-size:12px}.ai-suggestion-content{flex:1;min-width:0}.ai-suggestion-label{align-items:center;gap:8px;margin-bottom:8px;font-weight:600;display:flex}.ai-suggestion-has-value,.language-picker-badge,.insert-modal-similarity-badge{color:#c5c5c5;background:#ffffff14;border-radius:999px;align-items:center;padding:2px 6px;font-size:11px;display:inline-flex}.ai-suggestion-comparison{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;display:grid}.ai-suggestion-column{background:#ffffff08;border-radius:6px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.ai-suggestion-column.muted{color:#9d9d9d}.ai-suggestion-column.highlighted{color:#fff;border:1px solid #007acc66}.ai-suggestion-column-label{text-transform:uppercase;letter-spacing:.04em;font-size:11px}.ai-suggestion-arrow{color:#9d9d9d}.ai-suggestion-value{min-height:1.4em}.ai-suggestion-value.loading{color:var(--accent-color);font-style:italic}.ai-suggestions-error{color:#ff6b6b;background:#dc32321f;border:1px solid #dc323259;border-radius:6px;flex-direction:column;gap:4px;margin-bottom:16px;padding:12px 16px;display:flex}.ai-suggestions-modal-footer,.confirm-delete-modal-footer{border-top:1px solid #3c3c3c;justify-content:flex-end;gap:10px;padding:16px 20px;display:flex}.language-picker-row,.shared-popover-entry,.colour-swatch{cursor:pointer}.insert-modal-tabs{margin:0 -20px;display:flex}.insert-modal-tab{color:#9d9d9d;background:0 0;border:none;border-bottom:2px solid #0000;flex:1;padding:10px 16px}.insert-modal-tab.active{color:#fff;background:#252526;border-bottom-color:#0e639c}.insert-modal-search{border-bottom:1px solid #3c3c3c}.insert-modal-input,.shared-popover-input{color:#f0f0f0;width:100%;font:inherit;background:0 0;border:none;padding:14px 20px}.alert-modal-error{border-top:3px solid #ff6b6b}.menu-editor-header h2{margin:0}.menu-editor-header p{color:var(--vscode-descriptionForeground);margin:.25rem 0 0}.menu-editor-tree-wrap{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:6px;min-height:0;padding:.5rem}.menu-editor-toolbar{border-bottom:1px solid var(--vscode-panel-border);margin-bottom:.5rem;padding-bottom:.4rem}.menu-editor-tool{width:1.8rem;height:1.8rem;color:var(--vscode-foreground);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;padding:0;display:inline-flex}.menu-editor-tool:hover:not(:disabled){background:var(--vscode-toolbar-hoverBackground);border-color:var(--vscode-panel-border)}.menu-editor-tool:disabled{opacity:.45;cursor:not-allowed}.menu-editor-tree-shell{flex:1;min-height:0;overflow:auto}.menu-editor-tree-level{margin:0;padding:0;list-style:none}.menu-editor-tree-item{margin:0;padding:0}.menu-editor-row{--menu-editor-indent:calc(var(--menu-editor-depth)*1rem);padding:.3rem .45rem .3rem calc(.4rem + var(--menu-editor-indent));cursor:pointer;border-radius:4px;align-items:flex-start;gap:.5rem;display:flex;position:relative}.menu-editor-row.is-selected{background:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.menu-editor-row.is-dragging{opacity:.45}.menu-editor-row.is-drop-before:before,.menu-editor-row.is-drop-after:after{content:"";left:calc(.4rem + var(--menu-editor-indent));background:var(--vscode-focusBorder);height:2px;position:absolute;right:.45rem}.menu-editor-row.is-drop-before:before{top:0}.menu-editor-row.is-drop-after:after{bottom:0}.menu-editor-row.is-drop-inside{box-shadow:inset 0 0 0 1px var(--vscode-focusBorder);background:var(--vscode-list-hoverBackground)}.menu-editor-row-handle{width:1rem;min-width:1rem;color:var(--vscode-descriptionForeground);cursor:grab;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;display:inline-flex}.menu-editor-row-handle:active{cursor:grabbing}.menu-editor-row-kind{opacity:.9;justify-content:center;align-items:center;width:1rem;min-width:1rem;display:inline-flex}.menu-editor-row-title{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.menu-editor-row-title.is-editing{white-space:normal;text-overflow:clip;overflow:visible}.menu-editor-entry-form{display:block}.menu-editor-inline-input{border:1px solid var(--vscode-focusBorder);background:var(--vscode-input-background);width:100%;color:var(--vscode-input-foreground);border-radius:4px;min-height:1.8rem;padding:.25rem .45rem}.menu-editor-inline-search{border-top:1px solid var(--vscode-panel-border);flex-direction:column;gap:.4rem;max-height:18rem;margin-top:.5rem;padding-top:.5rem;display:flex;overflow:hidden}.menu-editor-inline-search-head{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.menu-editor-inline-search-head strong{font-size:.8rem;display:block}.menu-editor-inline-search-head span{color:var(--vscode-descriptionForeground);font-size:.75rem}.menu-editor-inline-actions{align-items:center;gap:.5rem;display:inline-flex}.menu-editor-inline-action{border:1px solid var(--vscode-button-border,transparent);background:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground);cursor:pointer;border-radius:4px;padding:.2rem .5rem}.menu-editor-inline-action:hover{background:var(--vscode-button-secondaryHoverBackground)}.menu-editor-picker-list{flex-direction:column;gap:.35rem;max-height:16rem;display:flex;overflow-y:auto}.menu-editor-picker-item{border:1px solid var(--vscode-panel-border);background:var(--vscode-input-background);width:100%;color:var(--vscode-input-foreground);text-align:left;cursor:pointer;border-radius:4px;justify-content:space-between;align-items:center;padding:.45rem .55rem;display:flex}.menu-editor-picker-item:hover{border-color:var(--vscode-focusBorder);background:var(--vscode-list-hoverBackground)}.menu-editor-picker-item small,.menu-editor-picker-state{color:var(--vscode-descriptionForeground)}.menu-editor-empty{color:var(--vscode-descriptionForeground);padding:.5rem .25rem}@media (max-width:720px){.menu-editor-inline-search-head{flex-direction:column;align-items:flex-start}.menu-editor-inline-actions{flex-wrap:wrap;justify-content:flex-start;width:100%}}[data-testid=media-editor] .editor-tab-dirty{color:var(--vscode-notificationsWarningIcon-foreground,var(--vscode-editorWarning-foreground));font-size:10px}[data-testid=media-editor] .ui-editor-actions button{padding:4px 10px;font-size:12px}[data-testid=media-editor] .ui-editor-actions button.danger:hover{background-color:var(--vscode-notificationsErrorIcon-foreground)}[data-testid=media-editor] .auto-save-indicator{color:var(--vscode-descriptionForeground);font-size:11px;font-style:italic}[data-testid=media-editor] .quick-actions-wrapper{position:relative}[data-testid=media-editor] .quick-actions-btn{align-items:center;gap:6px;display:inline-flex}[data-testid=media-editor] .quick-actions-btn-icon{font-size:12px;line-height:1}[data-testid=media-editor] .quick-actions-divider{background:var(--vscode-dropdown-border,#454545);height:1px}[data-testid=media-editor] .quick-action-icon{flex-shrink:0;margin-top:2px;font-size:16px}[data-testid=media-editor] .quick-action-text strong{font-size:13px;font-weight:500}[data-testid=media-editor] .quick-action-text small{opacity:.7;font-size:11px}[data-testid=media-editor]>.editor-content.media-editor{flex-direction:row;align-items:stretch;gap:24px}[data-testid=media-editor] .editor-field label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;font-size:11px;font-weight:500}[data-testid=media-editor] .post-editor-input.disabled,[data-testid=media-editor] .post-editor-input:disabled{opacity:.6;cursor:not-allowed}[data-testid=media-editor] .media-preview{background-color:var(--vscode-input-background);border-radius:8px;flex:1;justify-content:center;align-items:center;min-height:300px;display:flex;overflow:hidden}[data-testid=media-editor] .media-preview-placeholder{color:var(--vscode-descriptionForeground);flex-direction:column;align-items:center;gap:12px;display:flex}[data-testid=media-editor] .media-preview-image{box-sizing:border-box;justify-content:center;align-self:stretch;align-items:center;width:100%;height:100%;min-height:0;padding:16px;display:flex}[data-testid=media-editor] .media-preview-image img{object-fit:contain;border-radius:4px;max-width:100%;max-height:100%}[data-testid=media-editor] .media-details{flex-shrink:0;gap:12px;width:320px}[data-testid=media-editor] .media-details textarea{resize:vertical}[data-testid=media-editor] .linked-posts-section label{justify-content:space-between;align-items:center;display:flex}[data-testid=media-editor] .post-picker{background:var(--vscode-dropdown-background);border:1px solid var(--vscode-dropdown-border);border-radius:4px;max-height:250px;margin-top:8px;overflow-y:auto}[data-testid=media-editor] .post-picker-search{border-bottom:1px solid var(--vscode-dropdown-border);background:var(--vscode-dropdown-background);padding:8px;position:sticky;top:0}[data-testid=media-editor] .post-picker-search input{background:var(--vscode-input-background);border:1px solid var(--vscode-input-border);width:100%;color:var(--vscode-input-foreground);border-radius:3px;padding:6px 10px;font-size:12px}[data-testid=media-editor] .post-picker-search input:focus{border-color:var(--vscode-focusBorder);outline:none}[data-testid=media-editor] .post-picker-list{padding:4px}[data-testid=media-editor] .post-picker-item{cursor:pointer;width:100%;color:inherit;text-align:left;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:none;border-radius:3px;padding:6px 8px;font-size:12px;overflow:hidden}[data-testid=media-editor] .post-picker-item:hover{background:var(--vscode-list-hoverBackground)}[data-testid=media-editor] .post-picker-more{color:var(--vscode-descriptionForeground);padding:6px 8px;font-size:11px;font-style:italic}[data-testid=media-editor] .no-posts,[data-testid=media-editor] .no-linked-posts{color:var(--vscode-descriptionForeground);padding:12px 8px;font-size:12px;font-style:italic}[data-testid=media-editor] .linked-posts-list{flex-direction:column;gap:4px;margin-top:8px;display:flex}[data-testid=media-editor] .linked-post-item{background:var(--vscode-sideBar-background);border-radius:4px;justify-content:space-between;align-items:center;padding:6px 8px;display:flex}[data-testid=media-editor] .linked-post-title,[data-testid=media-editor] .linked-post-link{min-width:0;color:inherit;text-align:left;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:none;flex:1;padding:0;font-size:12px;overflow:hidden}[data-testid=media-editor] .linked-post-title:hover,[data-testid=media-editor] .linked-post-link:hover{color:var(--vscode-textLink-foreground);text-decoration:underline}[data-testid=media-editor] .linked-post-item .unlink-btn{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:0;background:0 0;border:none;padding:0 4px;font-size:14px;transition:opacity .1s}[data-testid=media-editor] .linked-post-item:hover .unlink-btn{opacity:1}[data-testid=media-editor] .linked-post-item .unlink-btn:hover{color:var(--vscode-errorForeground)}.translation-modal-backdrop{pointer-events:auto;z-index:10001;background:#000000ad;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.translation-modal{background:#1e1e1e;border:1px solid #3c3c3c;border-radius:8px;width:min(640px,100vw - 32px);box-shadow:0 8px 32px #0006}.translation-modal-header,.translation-modal-footer{justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.translation-modal-header{border-bottom:1px solid #3c3c3c}.translation-modal-footer{border-top:1px solid #3c3c3c;justify-content:flex-end;gap:10px}.translation-modal-body{flex-direction:column;gap:14px;padding:20px;display:flex}.translation-modal-close{color:#c5c5c5;cursor:pointer;background:0 0;border:none;font-size:20px;line-height:1}.import-analysis{color:var(--vscode-foreground);flex-direction:column;gap:16px;padding:18px 20px 26px;display:flex}.import-analysis-header{flex-direction:column;gap:8px;display:flex}.import-analysis-header p{color:var(--vscode-descriptionForeground);margin:0;font-size:13px;line-height:1.5}.import-definition-name{border:1px solid var(--vscode-input-border,transparent);background:var(--vscode-input-background);width:min(480px,100%);color:var(--vscode-input-foreground,var(--vscode-foreground));border-radius:6px;padding:10px 12px;font-size:18px;font-weight:600}.import-file-selectors{gap:12px;display:grid}.import-file-row{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px;grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;display:grid}@supports (color:color-mix(in lab, red, red)){.import-file-row{background:color-mix(in srgb,var(--vscode-editor-background)76%,var(--vscode-input-background))}}.import-file-row label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:600}.import-file-path{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--vscode-editor-font-family,ui-monospace,monospace);font-size:12px;overflow:hidden}.import-file-path.placeholder{color:var(--vscode-descriptionForeground)}.import-analysis select{border:1px solid var(--vscode-button-border,transparent);border-radius:6px;font-size:12px}.import-analysis button:disabled{opacity:.65;cursor:not-allowed}.import-loading{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:10px;align-items:center;gap:12px;padding:16px;display:flex}@supports (color:color-mix(in lab, red, red)){.import-loading{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.import-spinner{border:2px solid var(--vscode-descriptionForeground);border-top-color:var(--vscode-button-background,#0e639c);border-radius:50%;flex-shrink:0;width:18px;height:18px;animation:.8s linear infinite import-spinner-rotate}.import-progress{flex-direction:column;gap:2px;display:flex}.import-progress-step{color:var(--vscode-foreground);font-size:13px}.import-progress-detail{color:var(--vscode-descriptionForeground);font-size:11px}@keyframes import-spinner-rotate{to{transform:rotate(360deg)}}.import-site-info{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.import-site-info-item,.import-stat-card,.import-date-distribution,.import-detail-section,.import-execute-section{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:10px}@supports (color:color-mix(in lab, red, red)){.import-site-info-item,.import-stat-card,.import-date-distribution,.import-detail-section,.import-execute-section{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.import-site-info-item{flex-direction:column;gap:6px;padding:14px;display:flex}.info-label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.05em;font-size:11px;font-weight:600}.info-value{overflow-wrap:anywhere;font-size:13px;font-weight:500}.import-stat-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.import-stat-card{padding:14px}.import-stat-card h3,.import-date-distribution h3,.import-detail-section h3,.taxonomy-group h4{margin:0}.import-stat-number{margin-top:10px;font-size:28px;font-weight:700;line-height:1}.import-stat-breakdown,.import-execute-summary,.import-taxonomy-list{flex-wrap:wrap;gap:8px;display:flex}.import-stat-breakdown{margin-top:12px}.import-stat-tag,.import-count-tag,.import-taxonomy-pill,.macro-status-badge{border-radius:999px;align-items:center;gap:4px;padding:4px 9px;font-size:11px;font-weight:600;display:inline-flex}.stat-new,.import-taxonomy-pill.new-tax{color:#75beff;background:#75beff29}.stat-update,.stat-mapped,.import-taxonomy-pill.exists,.import-taxonomy-pill.mapped,.macro-status-badge.mapped,.import-execution-complete{color:#73c991;background:#73c99129}.stat-conflict{color:#ffb169;background:#ffa65729}.stat-duplicate,.stat-missing,.macro-status-badge.unmapped,.import-execution-error{color:#cca700;background:#cca70029}.import-date-distribution,.import-detail-section,.import-execute-section{padding:16px}.import-section-toggle{text-align:left;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:0;font-weight:600;display:flex;color:inherit!important;background:0 0!important;border:none!important;font-size:16px!important}.import-section-toggle:hover{opacity:.9;background:0 0!important}.toggle-icon{color:var(--vscode-descriptionForeground);font-size:12px}.distribution-bars{gap:10px;margin-top:14px;display:grid}.distribution-row{grid-template-columns:56px minmax(0,1fr) 72px;align-items:center;gap:10px;display:grid}.distribution-year,.distribution-count,.slug-cell{font-family:var(--vscode-editor-font-family,ui-monospace,monospace);font-size:11px}.distribution-bar-container{background:var(--vscode-input-background);border-radius:999px;height:10px;overflow:hidden}.distribution-bar{border-radius:inherit;min-width:8px;height:100%}.distribution-bar-posts{background:linear-gradient(90deg,#75beffcc,#75beff59)}.import-execute-section{justify-content:space-between;align-items:center;gap:16px;display:flex}.import-execute-summary{color:var(--vscode-descriptionForeground)}.import-execution-complete,.import-execution-error{border-radius:8px;padding:10px 12px;font-size:12px;font-weight:600}.import-execution-progress{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:10px;gap:10px;padding:16px;display:grid}@supports (color:color-mix(in lab, red, red)){.import-execution-progress{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.import-execution-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.import-execution-header h3{margin:0;font-size:14px}.import-progress-bar{background:var(--vscode-input-background);border-radius:999px;height:10px;overflow:hidden}.import-progress-fill{background:linear-gradient(90deg,#75beffd9,#75beff73);height:100%}.import-progress-info{flex-wrap:wrap;align-items:center;gap:12px;font-size:12px;display:flex}.import-phase{font-weight:600}.import-detail,.import-counter{color:var(--vscode-descriptionForeground)}.import-detail-table{border-collapse:collapse;width:100%;margin-top:14px}.import-detail-table th,.import-detail-table td{text-align:left;border-bottom:1px solid var(--vscode-panel-border);vertical-align:middle;padding:10px 8px;font-size:12px}.import-detail-table th{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.04em;font-size:11px}.import-detail-table .status-badge{text-transform:uppercase;letter-spacing:.04em;border-radius:999px;align-items:center;padding:4px 9px;font-size:10px;font-weight:700;display:inline-flex}.import-detail-table .status-badge.new{color:#75beff;background:#75beff29}.import-detail-table .status-badge.update{color:#73c991;background:#73c99129}.import-detail-table .status-badge.conflict{color:#ffb169;background:#ffa65729}.import-detail-table .status-badge.duplicate,.import-detail-table .status-badge.missing{color:#cca700;background:#cca70029}.categories-cell,.existing-match,.mime-type-cell,.post-type-cell{color:var(--vscode-descriptionForeground);font-size:11px}.mime-type-cell,.post-type-cell,.existing-match,.slug-cell{font-family:var(--vscode-editor-font-family,ui-monospace,monospace)}.resolution-select,.taxonomy-mapping-input{background:var(--vscode-dropdown-background,var(--vscode-input-background));min-width:150px;color:var(--vscode-dropdown-foreground,var(--vscode-foreground));border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));padding:6px 8px}.taxonomy-analyze-row{border-bottom:1px solid var(--vscode-panel-border);align-items:center;gap:12px;margin-top:12px;padding:0 0 12px;display:flex}.taxonomy-analyze-dropdown{position:relative}.taxonomy-analyze-btn{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.taxonomy-model-dropdown{background:var(--vscode-dropdown-background,var(--vscode-sideBar-background));border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));z-index:20;border-radius:6px;min-width:220px;max-height:280px;position:absolute;top:calc(100% + 6px);left:0;overflow-y:auto;box-shadow:0 10px 24px #0000003d}.taxonomy-model-option{text-align:left;width:100%;display:block;color:var(--vscode-foreground)!important;background:0 0!important;border:none!important;border-radius:0!important;padding:8px 12px!important}.taxonomy-model-option:hover{background:var(--vscode-list-hoverBackground)!important}.taxonomy-analyze-hint{color:var(--vscode-descriptionForeground);font-size:11px}.import-taxonomy-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px;display:grid}.taxonomy-group{flex-direction:column;gap:12px;display:flex}.import-taxonomy-entry,.import-taxonomy-edit-form{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.import-taxonomy-pill{cursor:default;border:none}button.import-taxonomy-pill{cursor:pointer}.mapped-target{background:#73c9911a}.taxonomy-mapping-arrow{color:var(--vscode-descriptionForeground);font-size:12px}.taxonomy-mapping-input{border-radius:6px;min-width:170px}.taxonomy-edit-btn,.taxonomy-clear-btn{justify-content:center;align-items:center;min-width:28px;min-height:28px;display:inline-flex;padding:0 8px!important}.taxonomy-edit-btn.ghost,.taxonomy-clear-btn{border:1px solid var(--vscode-panel-border)!important;color:var(--vscode-descriptionForeground)!important;background:0 0!important}.macros-list{gap:10px;margin-top:14px;display:grid}.macro-item{border:1px solid var(--vscode-panel-border);background:var(--vscode-input-background);border-radius:8px}.macro-item.unmapped{border-left:3px solid #cca700}.macro-header{align-items:center;gap:10px;padding:12px 14px;display:flex}.macro-name,.import-taxonomy-pill{font-family:var(--vscode-editor-font-family,ui-monospace,monospace)}.macro-count{color:var(--vscode-descriptionForeground);margin-left:auto;font-size:11px}.import-empty-state{color:var(--vscode-descriptionForeground);border:1px dashed var(--vscode-panel-border);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:56px 20px;display:flex}.import-empty-state p{margin:0;font-size:13px}@media (max-width:1100px){.import-site-info,.import-stat-cards,.import-taxonomy-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:780px){.import-analysis{padding:14px}.import-file-row,.distribution-row,.import-execute-section,.import-site-info,.import-stat-cards,.import-taxonomy-groups{grid-template-columns:1fr}.import-execute-section,.import-file-row{align-items:stretch}.import-analysis button,.resolution-select,.taxonomy-mapping-input{width:100%}.taxonomy-analyze-row{flex-direction:column;align-items:stretch}.import-taxonomy-entry,.import-taxonomy-edit-form{flex-direction:column;align-items:stretch;width:100%}}.misc-editor-shell{background:var(--vscode-editor-background)}.misc-editor-header{border-bottom:1px solid var(--vscode-panel-border);background:var(--vscode-tab-activeBackground);padding:12px 16px 8px}.misc-editor-header h2{margin:0;font-size:15px;font-weight:600}.misc-editor-header p{color:var(--vscode-descriptionForeground);margin:2px 0 0;font-size:12px}.misc-editor-actions{flex-shrink:0}.misc-editor-summary{border-bottom:1px solid var(--vscode-panel-border);padding:8px 16px}.misc-editor-content{padding:16px}.misc-summary-pill{background:var(--vscode-input-background);border:1px solid var(--vscode-panel-border);color:var(--vscode-foreground);border-radius:999px;align-items:center;gap:6px;padding:3px 10px;font-size:12px;display:inline-flex}.misc-summary-pill span{color:var(--vscode-descriptionForeground)}.misc-summary-pill strong{font-weight:600}.misc-card{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px;padding:14px 16px}@supports (color:color-mix(in lab, red, red)){.misc-card{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.misc-card h3{margin:0 0 8px;font-size:13px;font-weight:600}.misc-card p{color:var(--vscode-descriptionForeground);margin:0;font-size:12px}.misc-card ul{margin:6px 0 0;padding-left:18px;font-size:12px;line-height:1.6}.misc-columns{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.misc-list{flex-direction:column;gap:2px;display:flex}.misc-list-item{border-radius:4px;align-items:center;gap:10px;padding:8px 12px;display:flex}.misc-list-item:hover{background:var(--vscode-list-hoverBackground)}.duplicate-pair-row label{cursor:pointer;flex-shrink:0;align-items:center;gap:6px;display:flex}.duplicate-pair-row .linkish{color:var(--vscode-textLink-foreground,#3794ff);cursor:pointer;font:inherit;text-underline-offset:.14em;background:0 0;border:none;padding:0;text-decoration:underline;text-decoration-thickness:1px}.duplicate-pair-row .linkish:hover{color:var(--vscode-foreground)}.metadata-diff-tool{flex-direction:column;gap:12px;display:flex}.metadata-diff-tabs{border-bottom:1px solid var(--vscode-panel-border);gap:2px;display:flex}.metadata-diff-tab{color:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground));font:inherit;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;padding:7px 14px;font-size:12px;transition:color .12s,border-color .12s;display:inline-flex}.metadata-diff-tab:hover{color:var(--vscode-tab-activeForeground,var(--vscode-foreground))}.metadata-diff-tab.active{color:var(--vscode-tab-activeForeground,var(--vscode-foreground));border-bottom-color:var(--vscode-focusBorder,#007fd4)}.tab-badge{background:var(--vscode-activityBarBadge-background,#007acc);min-width:18px;height:18px;color:var(--vscode-activityBarBadge-foreground,#fff);border-radius:999px;justify-content:center;align-items:center;padding:0 5px;font-size:11px;font-weight:600;display:inline-flex}.metadata-diff-field-pills{flex-wrap:wrap;gap:6px;display:flex}.metadata-diff-field-pill{border:1px solid var(--vscode-panel-border);background:var(--vscode-input-background);border-radius:6px;align-items:stretch;transition:border-color .12s;display:flex;overflow:hidden}.metadata-diff-field-pill.active{border-color:var(--vscode-focusBorder,#007fd4);background:var(--vscode-focusBorder,#007fd4)}@supports (color:color-mix(in lab, red, red)){.metadata-diff-field-pill.active{background:color-mix(in srgb,var(--vscode-focusBorder,#007fd4)12%,transparent)}}.metadata-diff-field-pill-toggle{color:var(--vscode-foreground);font:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:4px 10px;font-size:12px;display:inline-flex}.metadata-diff-field-pill-toggle:hover{background:var(--vscode-list-hoverBackground)}.field-pill-label{font-weight:500}.field-pill-count{color:var(--vscode-descriptionForeground);font-size:11px;font-weight:600}.metadata-diff-field-pill-actions{border-left:1px solid var(--vscode-panel-border);align-items:center;gap:2px;padding:2px 4px;display:flex}.metadata-diff-action-button{min-height:22px!important;padding:2px 8px!important;font-size:11px!important}.metadata-diff-results{flex-direction:column;gap:12px;display:flex}.metadata-diff-empty p{text-align:center;padding:20px 0}.diff-item-list{flex-direction:column;gap:8px;display:flex}.diff-item-card{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px}@supports (color:color-mix(in lab, red, red)){.diff-item-card{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.diff-item-card{overflow:hidden}.diff-item-card.orphan-file{border-left:3px solid var(--vscode-editorWarning-foreground,#cca700)}.diff-item-header{background:var(--vscode-sideBar-background);justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 14px;display:flex}@supports (color:color-mix(in lab, red, red)){.diff-item-header{background:color-mix(in srgb,var(--vscode-sideBar-background)50%,transparent)}}.diff-item-header{border-bottom:1px solid var(--vscode-panel-border)}.diff-item-header strong{color:var(--vscode-foreground);font-size:13px;font-weight:600}.diff-item-meta{color:var(--vscode-descriptionForeground);margin-top:2px;font-size:11px}.diff-item-fields{padding:8px 14px}.diff-field-row{border-bottom:1px solid var(--vscode-panel-border);grid-template-columns:120px 1fr;gap:8px;padding:5px 0;display:grid}@supports (color:color-mix(in lab, red, red)){.diff-field-row{border-bottom:1px solid color-mix(in srgb,var(--vscode-panel-border)50%,transparent)}}.diff-field-row:last-child{border-bottom:none}.diff-field-name{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.04em;padding-top:3px;font-size:11px;font-weight:600}.diff-field-values{flex-direction:column;gap:3px;display:flex}.diff-field-value{word-break:break-word;align-items:baseline;gap:8px;font-size:12px;line-height:1.4;display:flex}.diff-field-value.db-value{color:var(--vscode-foreground)}.diff-field-value.file-value{color:var(--vscode-foreground);opacity:.82}.diff-source-label{text-transform:uppercase;letter-spacing:.04em;border-radius:3px;flex-shrink:0;min-width:28px;padding:1px 5px;font-size:10px;font-weight:700}.db-value .diff-source-label{background:var(--vscode-focusBorder,#007fd4)}@supports (color:color-mix(in lab, red, red)){.db-value .diff-source-label{background:color-mix(in srgb,var(--vscode-focusBorder,#007fd4)22%,transparent)}}.db-value .diff-source-label{color:var(--vscode-focusBorder,#007fd4)}.file-value .diff-source-label{background:var(--vscode-testing-iconPassed,#73c991)}@supports (color:color-mix(in lab, red, red)){.file-value .diff-source-label{background:color-mix(in srgb,var(--vscode-testing-iconPassed,#73c991)22%,transparent)}}.file-value .diff-source-label{color:var(--vscode-testing-iconPassed,#73c991)}.orphan-files-section{border:1px solid var(--vscode-editorWarning-foreground,#cca700)}@supports (color:color-mix(in lab, red, red)){.orphan-files-section{border:1px solid color-mix(in srgb,var(--vscode-editorWarning-foreground,#cca700)35%,transparent)}}.orphan-files-section{background:var(--vscode-editorWarning-foreground,#cca700);border-radius:8px;padding:14px 16px}@supports (color:color-mix(in lab, red, red)){.orphan-files-section{background:color-mix(in srgb,var(--vscode-editorWarning-foreground,#cca700)5%,var(--vscode-editor-background))}}.orphan-files-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.orphan-files-header h3{margin:0;font-size:13px;font-weight:600}.orphan-files-actions{align-items:center;gap:8px;display:flex}.orphan-path span{color:var(--vscode-descriptionForeground);font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px}.translation-validation-view{flex-direction:column;gap:16px;display:flex}.translation-validation-summary{background:var(--vscode-input-background);border:1px solid var(--vscode-panel-border);color:var(--vscode-descriptionForeground);border-radius:6px;padding:10px 14px;font-size:12px}.translation-validation-summary p{margin:0}.translation-validation-section h3{margin:0 0 8px;font-size:13px;font-weight:600}.translation-validation-empty{color:var(--vscode-descriptionForeground);font-size:12px}.translation-validation-list{flex-direction:column;gap:8px;display:flex}.translation-validation-card{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:6px;padding:10px 14px}@supports (color:color-mix(in lab, red, red)){.translation-validation-card{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.translation-validation-card-db{border-left:3px solid var(--vscode-focusBorder,#007fd4)}.translation-validation-card-file{border-left:3px solid var(--vscode-testing-iconPassed,#73c991)}.translation-validation-card-title{margin:0 0 6px;font-size:13px;font-weight:600}.translation-validation-card-meta{grid-template-columns:auto 1fr;gap:3px 12px;margin:0;font-size:12px;display:grid}.translation-validation-card-meta dt{color:var(--vscode-descriptionForeground);font-weight:500}.translation-validation-card-meta dd{margin:0}.translation-validation-actions{border-top:1px solid var(--vscode-panel-border);gap:8px;padding-top:8px;display:flex}.git-diff-view{flex-direction:column;gap:12px;height:100%;min-height:0;display:flex}.git-diff-empty{color:var(--vscode-descriptionForeground);text-align:center;padding:24px 0}.git-diff-toolbar{flex-shrink:0;align-items:center;gap:10px;display:flex}.git-diff-toolbar label{color:var(--vscode-descriptionForeground);flex-shrink:0;font-size:12px;font-weight:500}.git-diff-toolbar select{flex:1;min-width:0}.git-diff-editor{border:1px solid var(--vscode-panel-border);border-radius:4px;flex:1;min-height:0;overflow:hidden}.monaco-diff-editor-instance{width:100%;height:100%}@media (min-width:768px){.ui-field-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-field-grid-3{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1} \ No newline at end of file +@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1}}}@layer theme{:root,:host{--font-sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-100:oklch(93.6% .032 17.717);--color-red-200:oklch(88.5% .062 18.334);--color-red-300:oklch(80.8% .114 19.571);--color-red-700:oklch(50.5% .213 27.518);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-xs:20rem;--container-2xl:42rem;--text-xs:.75rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--font-weight-semibold:600;--tracking-wide:.025em;--radius-md:.375rem;--radius-lg:.5rem;--ease-in:cubic-bezier(.4,0,1,1);--ease-out:cubic-bezier(0,0,.2,1);--animate-spin:spin 1s linear infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components{.ui-button{min-height:28px;font:inherit;cursor:pointer;-webkit-user-select:none;user-select:none;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;gap:6px;padding:4px 10px;line-height:1.2;display:inline-flex}.ui-button:hover:not(:disabled){background:var(--vscode-button-hoverBackground,#0e639c)}.ui-button:disabled{opacity:.5;cursor:not-allowed}.ui-button-primary{color:var(--vscode-button-foreground,#fff);background:var(--vscode-button-background,var(--vscode-focusBorder))}.ui-button-primary:hover:not(:disabled){background:var(--vscode-button-hoverBackground,#0e639c)}.ui-button-secondary{color:var(--vscode-button-secondaryForeground,var(--vscode-foreground));background:var(--vscode-button-secondaryBackground,#ffffff14);border-color:var(--vscode-button-border,transparent)}.ui-button-secondary:hover:not(:disabled){background:var(--vscode-button-secondaryHoverBackground,#4a4d51)}.ui-button-danger{color:var(--vscode-errorForeground,#f48771);border-color:var(--vscode-errorForeground,#f48771);background:0 0}@supports (color:color-mix(in lab, red, red)){.ui-button-danger{border-color:color-mix(in srgb,var(--vscode-errorForeground,#f48771)45%,transparent)}}.ui-button-danger:hover:not(:disabled){background:var(--vscode-errorForeground,#f48771)}@supports (color:color-mix(in lab, red, red)){.ui-button-danger:hover:not(:disabled){background:color-mix(in srgb,var(--vscode-errorForeground,#f48771)14%,transparent)}}.ui-button-compact{min-height:24px;padding:3px 8px;font-size:12px}.ui-input,.ui-textarea{border:1px solid var(--vscode-input-border,var(--vscode-panel-border));background:var(--vscode-input-background,#ffffff0f);width:100%;color:var(--vscode-input-foreground,var(--vscode-foreground));font:inherit;border-radius:4px;padding:8px 10px}.ui-textarea{resize:vertical;line-height:1.5}.ui-input:focus,.ui-textarea:focus{outline:1px solid var(--vscode-focusBorder,#007fd4);outline-offset:1px}.ui-input-readonly,.ui-input[readonly]{opacity:.7;cursor:not-allowed}.ui-input-disabled,.ui-input:disabled{opacity:.6;cursor:not-allowed}.ui-tab{color:var(--vscode-tab-inactiveForeground,var(--vscode-foreground));background:0 0;border:none}.ui-tab:hover,.ui-tab-active{color:var(--vscode-tab-activeForeground,var(--vscode-foreground))}.ui-badge{text-transform:uppercase;letter-spacing:.04em;border-radius:999px;align-items:center;padding:2px 8px;font-size:11px;font-weight:500;display:inline-flex}.ui-panel-entry{border:1px solid var(--vscode-panel-border);background-color:var(--vscode-sideBar-background);border-radius:4px}.ui-empty-state{color:var(--vscode-descriptionForeground);flex-direction:column;gap:6px;display:flex}.ui-editor-shell{background:var(--vscode-editor-background);flex-direction:column;height:100%;min-height:0;display:flex;overflow:hidden}.ui-editor-header{border-bottom:1px solid var(--vscode-panel-border);background:var(--vscode-tab-activeBackground);justify-content:space-between;align-items:flex-start;gap:12px;min-height:35px;padding:0 12px;display:flex}.ui-editor-tab-current{background:var(--vscode-tab-activeBackground);max-width:100%;color:var(--vscode-tab-activeForeground);border-radius:4px 4px 0 0;align-items:center;gap:6px;padding:6px 12px;display:inline-flex;overflow:hidden}.ui-editor-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.ui-toolbar{align-items:center;gap:12px;min-height:32px;display:flex}.ui-toolbar-group{align-items:center;gap:8px;min-width:0;display:flex}.ui-field-stack{flex-direction:column;gap:6px;min-width:0;display:flex}.ui-field-stack>label,.ui-field-label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;font-size:11px;font-weight:500}.ui-field-grid-2,.ui-field-grid-3{gap:16px;display:grid}.ui-dropdown-menu{background:var(--vscode-dropdown-background,var(--vscode-sideBar-background));border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));border-radius:6px;overflow:hidden;box-shadow:0 8px 24px #00000059}.ui-dropdown-item{width:100%;color:var(--vscode-dropdown-foreground,var(--vscode-foreground));cursor:pointer;text-align:left;background:0 0;border:none;align-items:flex-start;gap:10px;padding:10px 12px;transition:background .1s;display:flex}.ui-dropdown-item:hover:not(:disabled){background:var(--vscode-list-hoverBackground,#2a2d2e)}.ui-dropdown-item:disabled{opacity:.5;cursor:not-allowed}.ui-section-card{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px}@supports (color:color-mix(in lab, red, red)){.ui-section-card{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.btn-base{min-height:28px;font:inherit;cursor:pointer;-webkit-user-select:none;user-select:none;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;gap:6px;padding:4px 10px;line-height:1.2;display:inline-flex}.btn-theme-primary{color:var(--vscode-button-foreground,#fff);background:var(--vscode-button-background,var(--vscode-focusBorder))}.btn-theme-primary:hover{background:var(--vscode-button-hoverBackground,#0e639c)}.btn-theme-danger{color:var(--vscode-errorForeground,#f48771);border-color:var(--vscode-errorForeground,#f48771);background:0 0}@supports (color:color-mix(in lab, red, red)){.btn-theme-danger{border-color:color-mix(in srgb,var(--vscode-errorForeground,#f48771)45%,transparent)}}.btn-theme-danger:hover{background:var(--vscode-errorForeground,#f48771)}@supports (color:color-mix(in lab, red, red)){.btn-theme-danger:hover{background:color-mix(in srgb,var(--vscode-errorForeground,#f48771)14%,transparent)}}.panel-entry{border:1px solid var(--vscode-panel-border);background-color:var(--vscode-sideBar-background);border-radius:4px}.monaco-host{min-width:0;min-height:0;overflow:hidden}}@layer utilities{.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.static{position:static}.top-0{top:calc(var(--spacing)*0)}.top-\[5px\]{top:5px}.top-full{top:100%}.right-0{right:calc(var(--spacing)*0)}.right-\[5px\]{right:5px}.bottom-0{bottom:calc(var(--spacing)*0)}.left-0{left:calc(var(--spacing)*0)}.left-1\/2{left:50%}.z-10{z-index:10}.z-50{z-index:50}.z-100{z-index:100}.col-start-1{grid-column-start:1}.col-end-1{grid-column-end:1}.row-start-1{grid-row-start:1}.row-end-2{grid-row-end:2}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.mt-2{margin-top:calc(var(--spacing)*2)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.ml-1{margin-left:calc(var(--spacing)*1)}.ml-4{margin-left:calc(var(--spacing)*4)}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.table{display:table}.h-3{height:calc(var(--spacing)*3)}.h-6{height:calc(var(--spacing)*6)}.h-8{height:calc(var(--spacing)*8)}.h-9{height:calc(var(--spacing)*9)}.h-12{height:calc(var(--spacing)*12)}.h-\[14px\]{height:14px}.h-\[22px\]{height:22px}.h-\[35px\]{height:35px}.h-full{height:100%}.max-h-\[80vh\]{max-height:80vh}.max-h-screen{max-height:100vh}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-\[8rem\]{min-height:8rem}.min-h-\[16rem\]{min-height:16rem}.w-3{width:calc(var(--spacing)*3)}.w-6{width:calc(var(--spacing)*6)}.w-8{width:calc(var(--spacing)*8)}.w-12{width:calc(var(--spacing)*12)}.w-\[14px\]{width:14px}.w-full{width:100%}.max-w-2xl{max-width:var(--container-2xl)}.max-w-\[240px\]{max-width:240px}.max-w-full{max-width:100%}.max-w-xs{max-width:var(--container-xs)}.min-w-0{min-width:calc(var(--spacing)*0)}.min-w-9{min-width:calc(var(--spacing)*9)}.min-w-56{min-width:calc(var(--spacing)*56)}.min-w-72{min-width:calc(var(--spacing)*72)}.flex-1{flex:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.origin-center{transform-origin:50%}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-4{--tw-translate-y:calc(var(--spacing)*4);translate:var(--tw-translate-x)var(--tw-translate-y)}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-spin{animation:var(--animate-spin)}.resize{resize:both}.resize-y{resize:vertical}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:calc(var(--spacing)*1)}.gap-1\.5{gap:calc(var(--spacing)*1.5)}.gap-2{gap:calc(var(--spacing)*2)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.rounded{border-radius:.25rem}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.\!border-\[\#5a2a2a\]{border-color:#5a2a2a!important}.border-\[\#3c3c3c\]{border-color:#3c3c3c}.border-red-200{border-color:var(--color-red-200)}.\!bg-\[\#3a2020\]{background-color:#3a2020!important}.\!bg-red-100{background-color:var(--color-red-100)!important}.bg-\[\#2d2d2d\]{background-color:#2d2d2d}.bg-white{background-color:var(--color-white)}.p-4{padding:calc(var(--spacing)*4)}.p-\[5px\]{padding:5px}.px-2{padding-inline:calc(var(--spacing)*2)}.px-3{padding-inline:calc(var(--spacing)*3)}.px-4{padding-inline:calc(var(--spacing)*4)}.py-1{padding-block:calc(var(--spacing)*1)}.py-2{padding-block:calc(var(--spacing)*2)}.py-3{padding-block:calc(var(--spacing)*3)}.py-6{padding-block:calc(var(--spacing)*6)}.pt-2{padding-top:calc(var(--spacing)*2)}.pr-2{padding-right:calc(var(--spacing)*2)}.text-left{text-align:left}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-5{--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-6{--tw-leading:calc(var(--spacing)*6);line-height:calc(var(--spacing)*6)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-wide{--tw-tracking:var(--tracking-wide);letter-spacing:var(--tracking-wide)}.whitespace-nowrap{white-space:nowrap}.\!text-red-300{color:var(--color-red-300)!important}.\!text-red-700{color:var(--color-red-700)!important}.text-\[\#f0f0f0\]{color:#f0f0f0}.text-black{color:var(--color-black)}.text-black\/50{color:#00000080}@supports (color:color-mix(in lab, red, red)){.text-black\/50{color:color-mix(in oklab,var(--color-black)50%,transparent)}}.uppercase{text-transform:uppercase}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-100{opacity:1}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in{--tw-ease:var(--ease-in);transition-timing-function:var(--ease-in)}.ease-out{--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}@media (hover:hover){.group-hover\:opacity-70:is(:where(.group):hover *){opacity:.7}.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}}.group-has-\[\[data-part\=\'title\'\]\]\/toast\:absolute:is(:where(.group\/toast):has([data-part=title]) *){position:absolute}@media (hover:hover){.hover\:text-black:hover{color:var(--color-black)}}.focus\:opacity-100:focus{opacity:1}.focus\:ring-1:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media (min-width:40rem){.sm\:top-auto{top:auto}.sm\:bottom-auto{bottom:auto}.sm\:translate-y-0{--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.sm\:scale-95{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.sm\:scale-100{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}}@media (min-width:48rem){.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) auto}.md\:grid-cols-\[minmax\(0\,1fr\)_minmax\(0\,1fr\)_auto\]{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}}@media (min-width:80rem){.xl\:grid-cols-\[minmax\(0\,2fr\)_minmax\(280px\,1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(280px,1fr)}.xl\:grid-cols-\[minmax\(320px\,1fr\)_minmax\(0\,1\.2fr\)\]{grid-template-columns:minmax(320px,1fr) minmax(0,1.2fr)}}@media (scripting:enabled){.\[\@media\(scripting\:enabled\)\]\:opacity-0{opacity:0}}}:root{--accent-color:#007acc;--accent-color-transparent:#007acc40;--vscode-editor-background:#1e1e1e;--vscode-editor-foreground:#ccc;--vscode-sideBar-background:#252526;--vscode-activityBar-background:#333;--vscode-activityBar-foreground:#fff;--vscode-panel-background:#1e1e1e;--vscode-titleBar-activeBackground:#252526;--vscode-titleBar-activeForeground:#ccc;--vscode-statusBar-background:#007acc;--vscode-statusBar-foreground:#fff;--vscode-tab-activeBackground:#1e1e1e;--vscode-tab-inactiveBackground:#2d2d2d;--vscode-tab-activeForeground:#fff;--vscode-tab-inactiveForeground:#969696;--vscode-editorGroupHeader-tabsBackground:#252526;--vscode-editorGroupHeader-tabsBorder:#1e1e1e;--vscode-toolbar-hoverBackground:#5a5d5e4f;--vscode-toolbar-activeBackground:#6366674f;--vscode-button-secondaryBackground:#ffffff14;--vscode-button-secondaryForeground:#ccc;--vscode-button-secondaryHoverBackground:#4a4d51;--vscode-foreground:#ccc;--vscode-descriptionForeground:#858585;--vscode-panel-border:#80808059;--vscode-sideBar-border:#80808059;--vscode-tab-border:#252526;--vscode-focusBorder:#007fd4;--vscode-input-background:#ffffff0f;--vscode-input-border:#ffffff1f;--vscode-list-hoverBackground:#2a2d2e;--vscode-list-activeSelectionBackground:#094771;--vscode-list-activeSelectionForeground:#fff;--vscode-activityBarBadge-background:#007acc;--vscode-activityBarBadge-foreground:#fff;--vscode-testing-iconPassed:#73c991;--vscode-editorWarning-foreground:#cca700;--vscode-input-foreground:#ccc;--vscode-input-placeholderForeground:#a6a6a6;--vscode-font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Open Sans","Helvetica Neue",sans-serif;--vscode-font-size:13px;--panel-1:var(--vscode-editor-background);--panel-2:var(--vscode-sideBar-background);--panel-3:var(--vscode-input-background);--ink:var(--vscode-foreground);--line:var(--vscode-panel-border);--accent:var(--vscode-focusBorder);--accent-soft:var(--vscode-list-hoverBackground);--success:var(--vscode-testing-iconPassed);--sidebar-width:280px;--assistant-width:360px;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--vscode-editor-background);width:100%;height:100%;color:var(--vscode-foreground);margin:0}body{-webkit-user-select:none;user-select:none;font-family:var(--vscode-font-family);font-size:var(--vscode-font-size);overflow:hidden}body>[data-phx-session],body>[data-phx-main]{width:100%;height:100%;min-height:0}button{font-family:var(--vscode-font-family);font-size:var(--vscode-font-size);color:var(--vscode-button-foreground);background-color:var(--vscode-button-background);cursor:pointer;border:none;border-radius:2px;padding:6px 14px}button:hover{background-color:var(--vscode-button-hoverBackground)}button:focus{outline:1px solid var(--vscode-focusBorder);outline-offset:2px}button.secondary{background-color:var(--vscode-button-secondaryBackground)}button.secondary:hover{background-color:#4a4d51}button.compact{padding:4px 8px;font-size:12px}button.primary{color:var(--vscode-button-foreground,#fff);background-color:var(--vscode-button-background,#0e639c);font-weight:500}button.primary:hover{background-color:var(--vscode-button-hoverBackground,#17b)}button.success{background-color:#28a745}button.success:hover{background-color:#218838}button.danger{background-color:#dc3545}button.danger:hover{background-color:#c82333}button:disabled{opacity:.5;cursor:not-allowed}button svg,button svg *{pointer-events:none}.app{background-color:var(--vscode-editor-background);flex-direction:column;width:100%;height:100%;display:flex}.app-main{flex:1;min-height:0;display:flex;overflow:hidden}.app-content{flex-direction:column;flex:1;min-width:0;display:flex;overflow:hidden}.window-titlebar{background-color:var(--vscode-editorGroupHeader-tabsBackground);border-bottom:1px solid var(--vscode-editorGroupHeader-tabsBorder);app-region:drag;-webkit-app-region:drag;height:34px;padding-right:calc(10px + var(--bds-titlebar-overlay-right,0px));flex-shrink:0;justify-content:space-between;align-items:center;display:flex;position:relative}.window-titlebar-menu-bar{app-region:no-drag;-webkit-app-region:no-drag;z-index:2;align-items:center;gap:2px;height:100%;margin-left:6px;display:flex}.window-titlebar-menu-group{align-items:center;height:100%;display:flex;position:relative}.window-titlebar-menu-bar.is-hidden{display:none}.window-titlebar.is-mac .window-titlebar-menu-bar{margin-left:max(var(--bds-titlebar-macos-left-inset,78px),calc(6px + var(--bds-titlebar-overlay-left,0px)))}.window-titlebar-menu-button{height:24px;color:var(--vscode-titleBar-activeForeground);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:0 8px;font-size:12px;line-height:1}.window-titlebar-menu-button:hover,.window-titlebar-action-button:hover,.window-titlebar-menu-button.is-active{background-color:var(--vscode-toolbar-hoverBackground)}.window-titlebar-menu-button:focus,.window-titlebar-menu-button:focus-visible,.window-titlebar-action-button:focus,.window-titlebar-action-button:focus-visible{box-shadow:none;outline:none}.window-titlebar-menu-dropdown{background-color:var(--vscode-menu-background,var(--vscode-editorWidget-background));border:1px solid var(--vscode-menu-border,var(--vscode-panel-border));min-width:210px;box-shadow:var(--vscode-widget-shadow,0 8px 24px #0006);app-region:no-drag;-webkit-app-region:no-drag;z-index:10;border-radius:6px;flex-direction:column;gap:2px;padding:6px;display:flex;position:absolute;top:30px;left:0}.window-titlebar-menu-item{color:var(--vscode-menu-foreground,var(--vscode-foreground));text-align:left;cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:space-between;align-items:center;gap:16px;padding:6px 8px;font-size:12px;display:flex}.window-titlebar-menu-item:focus,.window-titlebar-menu-item:focus-visible{box-shadow:none;background-color:var(--vscode-toolbar-hoverBackground);outline:none}.window-titlebar-menu-item:hover,.window-titlebar-menu-item.is-keyboard-active{background-color:var(--vscode-menu-selectionBackground,var(--vscode-toolbar-hoverBackground))}.window-titlebar-menu-item-accelerator{opacity:.8}.window-titlebar-menu-separator{background-color:var(--vscode-menu-separatorBackground,#ffffff14);height:1px;margin:4px 2px}.window-titlebar-drag-region{flex:1;height:100%}.window-titlebar-title{max-width:45%;height:100%;color:var(--vscode-titleBar-activeForeground);white-space:nowrap;text-overflow:ellipsis;-webkit-user-select:none;user-select:none;pointer-events:none;justify-content:center;align-items:center;font-size:12px;font-weight:500;display:flex;position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.window-titlebar-actions{app-region:no-drag;-webkit-app-region:no-drag;align-items:center;height:100%;margin-right:6px;display:flex}.window-titlebar-action-button{width:30px;height:30px;color:var(--vscode-foreground);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;padding:0;line-height:0;display:flex}.window-titlebar-sidebar-icon,.window-titlebar-panel-icon,.window-titlebar-assistant-icon{border:1.5px solid;border-radius:2px;width:14px;height:14px;display:block;position:relative;overflow:hidden}.window-titlebar-sidebar-icon:before{content:"";background-color:currentColor;width:1.5px;position:absolute;top:0;bottom:0;left:33.3333%;transform:translate(-50%)}.window-titlebar-panel-icon:before{content:"";background-color:currentColor;height:1.5px;position:absolute;top:66.6667%;left:0;right:0;transform:translateY(-50%)}.window-titlebar-assistant-icon:before{content:"";background-color:currentColor;width:1.5px;position:absolute;top:0;bottom:0;left:66.6667%;transform:translate(-50%)}.window-titlebar-sidebar-pane,.window-titlebar-panel-pane,.window-titlebar-assistant-pane{background-color:currentColor;transition:opacity .12s;position:absolute}.window-titlebar-sidebar-pane{width:33.3333%;height:100%;top:0;left:0}.window-titlebar-panel-pane{width:100%;height:33.3333%;bottom:0;left:0}.window-titlebar-assistant-pane{width:33.3333%;height:100%;top:0;right:0}.window-titlebar-sidebar-icon.is-inactive .window-titlebar-sidebar-pane,.window-titlebar-panel-icon.is-inactive .window-titlebar-panel-pane,.window-titlebar-assistant-icon.is-inactive .window-titlebar-assistant-pane{opacity:0}.panel-shell{border-top:1px solid var(--vscode-panel-border);background:var(--vscode-panel-background);flex-direction:column;height:200px;display:flex}.editor-toolbar-button.is-destructive{color:#f48771}.shell-overlay-backdrop,.gallery-overlay-backdrop{pointer-events:auto;z-index:10000;background:#000000ad;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.shell-overlay-dismiss{background:0 0;border:none;padding:0;position:absolute;inset:0}.gallery-overlay{z-index:1;background:#1e1e1e;border:1px solid #3c3c3c;border-radius:8px;flex-direction:column;width:min(980px,100vw - 48px);max-height:calc(100vh - 48px);display:flex;position:relative;overflow:hidden;box-shadow:0 8px 32px #0006}.insert-modal-media-grid{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:16px;display:grid}.insert-modal-media-item{color:inherit;text-align:left;background:#252526;border:1px solid #3c3c3c;border-radius:8px;flex-direction:column;gap:8px;padding:10px;display:flex}.insert-modal-media-thumb{object-fit:cover;background:#ffffff0a;border-radius:6px;width:100%;min-height:112px}.insert-modal-media-title{color:#fff;font-weight:600}.language-picker-options{flex-direction:column;gap:8px;display:flex}.language-picker-option{width:100%;color:inherit;text-align:left;background:0 0;border:none;border-radius:4px;grid-template-columns:28px 1fr auto;align-items:center;gap:12px;padding:12px 16px;display:grid}.language-picker-label,.language-picker-status,.lightbox-counter{color:#9d9d9d;font-size:12px}.lightbox-counter{margin-top:4px}@media (max-width:720px){.insert-modal-media-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.panel-header{background-color:var(--vscode-sideBar-background);border-bottom:1px solid var(--vscode-panel-border);justify-content:space-between;align-items:center;height:35px;padding:0 8px;display:flex}.panel-tabs{align-items:stretch;height:100%;display:flex}.panel-tab{color:var(--vscode-descriptionForeground);cursor:pointer;background:0 0;border:none;padding:0 12px}.panel-tab.active{color:var(--vscode-tab-activeForeground)}.panel-close{color:var(--vscode-descriptionForeground);cursor:pointer;background:0 0;border:none;border-radius:4px;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:18px;display:flex}.panel-close:hover{background-color:var(--vscode-list-hoverBackground);color:var(--vscode-editor-foreground)}.panel-content{flex:1;padding:12px 14px;overflow:auto}.panel-entry{border-bottom:1px solid var(--vscode-panel-border);flex-direction:column;gap:4px;padding:10px 12px;display:flex}.output-list,.git-log-list,.task-list{flex-direction:column;display:flex}.task-entry-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.task-status{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);font-size:11px}.task-status-running{color:var(--vscode-terminal-ansiGreen,var(--vscode-statusBar-foreground))}.task-status-pending{color:var(--vscode-terminal-ansiYellow,var(--vscode-statusBar-foreground))}.panel-empty-state{justify-content:center;min-height:100%}.status-bar{background:var(--vscode-statusBar-background);height:22px;color:var(--vscode-statusBar-foreground);flex-shrink:0;justify-content:space-between;align-items:center;padding:0 8px;font-size:12px;display:flex}.status-bar-left,.status-bar-right{flex-shrink:0;align-items:center;gap:4px;display:flex}.status-bar-left{flex-shrink:1;min-width:0}.status-shell-controls{flex-shrink:0;align-items:stretch;gap:2px;display:flex}.status-shell-toggle-button{width:22px;height:100%;color:inherit;cursor:pointer;background:0 0;border:none;border-radius:3px;justify-content:center;align-items:center;padding:0;line-height:0;display:flex}.status-shell-toggle-button:hover{background-color:#ffffff1a}.status-shell-toggle-button:focus,.status-shell-toggle-button:focus-visible{outline:none;box-shadow:inset 0 0 0 1px #ffffff73}.status-shell-toggle-button .window-titlebar-sidebar-icon,.status-shell-toggle-button .window-titlebar-panel-icon,.status-shell-toggle-button .window-titlebar-assistant-icon{width:12px;height:12px}.status-bar-item{white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:6px;height:100%;padding:0 8px;display:flex;overflow:hidden}.status-bar-item:hover{background-color:#ffffff1a}.status-bar-task-button{color:inherit;cursor:pointer;background:0 0;border:none}.task-message-text{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.status-bar-item.theme-badge{border:1px solid #ffffff2e;border-radius:3px}.status-bar-item.language-badge{border:1px solid #ffffff2e;border-radius:3px;gap:4px}.status-bar-item.offline-badge{color:inherit;cursor:pointer;background:0 0;border:none;padding:0 4px;font-size:13px}.status-bar-item.offline-badge.active{color:#000;opacity:1;background-color:#e6a800;border-radius:3px;font-weight:600}.project-selector{flex-shrink:0;position:relative}.project-selector-trigger{height:22px;color:var(--vscode-statusBar-foreground);cursor:pointer;text-align:left;background:0 0;border:none;align-items:center;gap:6px;padding:0 8px;font-size:12px;display:flex}.project-selector-trigger:hover{background-color:#ffffff1a}.project-selector-trigger:focus{outline:none}.project-icon,.dropdown-arrow,.project-check-icon{flex-shrink:0}.project-name,.project-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.project-name{max-width:180px}.dropdown-arrow{opacity:.6}.project-dropdown{z-index:1000;background-color:#252526;border:1px solid #ffffff29;border-radius:4px;min-width:220px;margin-bottom:4px;position:absolute;bottom:100%;left:0;overflow:hidden;box-shadow:0 -4px 12px #0000004d}.project-dropdown-header{text-transform:uppercase;letter-spacing:.5px;color:var(--vscode-descriptionForeground);border-bottom:1px solid #ffffff1f;padding:8px 12px;font-size:11px;font-weight:600}.project-list{max-height:200px;overflow-y:auto}.project-item{width:100%;color:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:8px;padding:8px 12px;display:flex}.project-item:hover,.project-item.active{background-color:var(--vscode-list-hoverBackground)}.project-item.active .project-check-icon{color:#89d185}.project-dropdown-footer{border-top:1px solid #ffffff1f;gap:6px;padding:8px;display:grid}.create-project-btn,.existing-project-btn{width:100%;color:inherit;cursor:pointer;background-color:#ffffff1f;border:none;border-radius:4px;justify-content:center;align-items:center;gap:6px;padding:6px 12px;font-size:12px;display:flex}.create-project-btn:hover,.existing-project-btn:hover{background-color:#ffffff2e}.status-bar-language-select{color:inherit;font:inherit;background:0 0;border:none;padding:0}.status-bar-language-select:focus{outline:none}.status-bar-count{opacity:.85;font-size:11px}.status-bar-item.brand{font-weight:600}@media (max-width:960px){.editor-frame{grid-template-columns:minmax(0,1fr)}.editor-meta{border-left:none;border-top:1px solid var(--vscode-panel-border);padding-top:10px;padding-left:0}}.editor-section ul{margin:12px 0 0;padding-left:18px}.editor-toolbar{gap:10px;display:flex}.editor-meta{flex-direction:column;gap:12px;display:flex}.editor-meta-card,.panel-entry{padding:16px}.activity-bar{background-color:var(--vscode-activityBar-background);border-right:1px solid var(--vscode-panel-border);flex-direction:column;justify-content:space-between;width:48px;height:100%;display:flex}.activity-bar-top,.activity-bar-bottom{flex-direction:column;align-items:center;padding:4px 0;display:flex}.activity-bar-item{width:48px;height:48px;color:var(--vscode-activityBar-foreground);opacity:.6;cursor:pointer;background:0 0;border:none;border-radius:0;justify-content:center;align-items:center;padding:0;display:flex;position:relative}.activity-bar-item:hover{opacity:1;background:0 0}.activity-bar-item.active{opacity:1}.activity-bar-item.active:before{content:"";background-color:var(--vscode-activityBar-foreground);width:2px;position:absolute;top:0;bottom:0;left:0}.activity-bar-badge{background-color:var(--vscode-activityBarBadge-background);min-width:16px;height:16px;color:var(--vscode-activityBarBadge-foreground);border-radius:8px;justify-content:center;align-items:center;padding:0 4px;font-size:10px;font-weight:600;display:flex;position:absolute;top:8px;right:8px}.activity-bar-item svg,.tab-icon svg{display:block}.sidebar-shell,.assistant-sidebar-shell{min-width:0;display:flex}.sidebar-shell{width:var(--sidebar-width)}.assistant-sidebar-shell{width:var(--assistant-width)}.sidebar,.assistant-sidebar{background:var(--vscode-sideBar-background);flex-direction:column;width:100%;min-width:0;height:100%;display:flex}.sidebar{border-right:1px solid var(--vscode-sideBar-border)}.assistant-sidebar{border-left:1px solid var(--vscode-sideBar-border)}.sidebar-shell.is-hidden,.assistant-sidebar-shell.is-hidden{width:0;overflow:hidden}.sidebar-shell.is-hidden .resizable-panel-divider,.assistant-sidebar-shell.is-hidden .resizable-panel-divider{display:none}.resizable-panel-divider{cursor:col-resize;background:0 0;width:4px;position:relative}.resizable-panel-divider:hover:after{background-color:var(--vscode-focusBorder)}.resizable-panel-divider:after{content:"";background-color:var(--vscode-panel-border);width:1px;position:absolute;top:0;bottom:0;left:1px}.assistant-header{border-bottom:1px solid var(--vscode-panel-border);flex-direction:column;gap:2px;padding:10px 12px;display:flex}.panel-entry span,.editor-meta-row span,.editor-subtitle,.sidebar-item span{color:var(--vscode-descriptionForeground)}.sidebar-content,.assistant-content{flex:1;padding:8px 0;overflow:auto}.sidebar-section{padding-bottom:10px}.sidebar-section-header{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);padding:0 12px 6px;font-size:11px}.sidebar-item{cursor:pointer;background:var(--vscode-sideBar-background);width:100%;color:var(--vscode-foreground);border:none;border-radius:4px;flex-direction:column;align-items:flex-start;gap:2px;padding:7px 12px;display:flex}.sidebar-item:hover{background:var(--vscode-list-hoverBackground)}.sidebar-item.selected{outline:1px solid var(--vscode-focusBorder);background:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.sidebar-badge{color:var(--vscode-testing-iconPassed);background:#6ecb8b29;border-radius:10px;margin-top:2px;padding:1px 6px}.sidebar-content{padding:0;overflow:hidden auto}.sidebar-section{margin-bottom:4px;padding-bottom:0}.sidebar-section-header{text-transform:uppercase;letter-spacing:.5px;color:var(--vscode-sideBar-foreground);justify-content:space-between;align-items:center;padding:8px 12px;font-size:11px;font-weight:600;display:flex}.sidebar-section-title{color:var(--vscode-descriptionForeground);align-items:center;gap:6px;padding:4px 12px;font-size:12px;display:flex}.section-icon{font-size:8px}.section-icon.status-draft{color:var(--vscode-editorWarning-foreground)}.section-icon.status-published{color:var(--vscode-testing-iconPassed)}.section-icon.status-archived{color:var(--vscode-descriptionForeground)}.sidebar-list{flex-direction:column;display:flex}.sidebar-item-row{align-items:stretch;display:flex}.sidebar-item{width:100%;color:inherit;cursor:pointer;text-align:left;background:0 0;border:none;border-left:2px solid #0000;border-radius:0;align-items:flex-start;gap:8px;padding:6px 12px;display:flex}.sidebar-item:hover{background-color:var(--vscode-list-hoverBackground)}.sidebar-item.selected{background-color:var(--vscode-list-activeSelectionBackground);border-left-color:var(--vscode-focusBorder);color:var(--vscode-list-activeSelectionForeground)}.sidebar-post-item{flex-direction:row}.sidebar-item.post-type-picture{background:linear-gradient(90deg,#8b5cf60d 0%,#0000 100%)}.sidebar-item.post-type-aside{background:linear-gradient(90deg,#f59e0b0d 0%,#0000 100%)}.sidebar-item.post-type-quote{background:linear-gradient(90deg,#22c55e0d 0%,#0000 100%)}.sidebar-item.post-type-link{background:linear-gradient(90deg,#3b82f60d 0%,#0000 100%)}.sidebar-item.post-type-video{background:linear-gradient(90deg,#ef44440d 0%,#0000 100%)}.post-type-icon{opacity:.85;flex-shrink:0;font-size:14px;line-height:1.4}.sidebar-item-content{flex-direction:column;flex:1;min-width:0;display:flex}.sidebar-item-title-row{align-items:center;gap:6px;display:flex}.sidebar-item-title{color:var(--vscode-sideBar-foreground);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.sidebar-item-language-badge{background:var(--vscode-badge-background);border-radius:999px;flex-shrink:0;min-width:18px;padding:1px 5px}@supports (color:color-mix(in lab, red, red)){.sidebar-item-language-badge{background:color-mix(in srgb,var(--vscode-badge-background)82%,transparent)}}.sidebar-item-language-badge{color:var(--vscode-badge-foreground);text-align:center;font-size:10px;font-weight:700}.sidebar-item-meta{color:var(--vscode-descriptionForeground);margin-top:2px;font-size:11px}.media-grid{grid-template-columns:1fr;gap:2px;padding:4px;display:grid}.media-item-row{align-items:stretch;gap:4px;display:flex}.media-item{width:100%;color:inherit;text-align:left;background:0 0;border:none;border-radius:4px;align-items:center;gap:8px;padding:6px 8px;display:flex}.media-item:hover{background-color:var(--vscode-list-hoverBackground)}.media-item.selected{background-color:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.media-thumbnail{background-color:var(--vscode-input-background);border-radius:4px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:20px;display:flex;overflow:hidden}.media-thumbnail.has-image{position:relative}.media-thumbnail-fallback{justify-content:center;align-items:center;width:100%;height:100%;display:flex}.media-thumbnail-image{object-fit:cover;opacity:0;width:100%;height:100%;transition:opacity .15s;position:absolute;inset:0}.media-thumbnail.is-loaded .media-thumbnail-image{opacity:1}.media-thumbnail.is-loaded .media-thumbnail-fallback{opacity:0}.media-item-info{flex:1;min-width:0}.media-item-name{color:var(--vscode-sideBar-foreground);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.sidebar-item-row .sidebar-item,.media-item-row .media-item{flex:1;min-width:0}.sidebar-actions{gap:4px;display:flex}.sidebar-action{color:var(--vscode-sideBar-foreground);cursor:pointer;opacity:.7;background:0 0;border:none;border-radius:3px;justify-content:center;align-items:center;padding:2px;display:flex}.sidebar-action:hover{opacity:1;background-color:var(--vscode-list-hoverBackground)}.sidebar-action.active{background-color:var(--vscode-list-activeSelectionBackground);opacity:1}.search-box{align-items:center;gap:4px;padding:4px 12px 8px;display:flex;position:relative}.search-box input{background-color:var(--vscode-input-background);border:1px solid var(--vscode-input-border);min-width:0;color:var(--vscode-input-foreground);border-radius:3px;flex:1;padding:6px 28px 6px 8px;font-size:12px}.search-box input::placeholder{color:var(--vscode-input-placeholderForeground)}.search-box input:focus{border-color:var(--vscode-focusBorder);outline:none}.search-box button[type=submit]{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:.7;background:0 0;border:none;padding:4px;position:absolute;right:40px}.search-box button[type=submit]:hover{opacity:1}.search-box .clear-search{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:.7;background:0 0;border:none;padding:4px;font-size:10px;position:absolute;right:16px}.search-box .clear-search:hover{opacity:1}.calendar-view{border-bottom:1px solid var(--vscode-sideBar-border);padding:8px 12px}.calendar-header{text-transform:uppercase;letter-spacing:.5px;color:var(--vscode-descriptionForeground);justify-content:space-between;align-items:center;margin-bottom:8px;font-size:11px;font-weight:600;display:flex}.calendar-header.collapsible-header{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px;margin:0 -6px 8px;padding:4px 6px}.calendar-header.collapsible-header:hover{background-color:var(--vscode-list-hoverBackground)}.calendar-header.collapsible-header.collapsed{margin-bottom:0}.calendar-header .collapse-icon{opacity:.7;margin-right:4px;font-size:9px}.calendar-header .clear-filter{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:.7;background:0 0;border:none;padding:2px 4px;font-size:10px}.calendar-header .clear-filter:hover{opacity:1}.calendar-years{flex-direction:column;gap:2px;display:flex}.calendar-year-header{cursor:pointer;color:var(--vscode-sideBar-foreground);text-align:left;background:0 0;border-radius:3px;align-items:center;gap:6px;padding:4px 6px;font-size:12px;display:flex}.calendar-year-header:hover{background-color:var(--vscode-list-hoverBackground)}.calendar-year-header.selected{background-color:var(--vscode-list-activeSelectionBackground)}.calendar-year-header .expand-icon{color:var(--vscode-descriptionForeground);width:10px;font-size:8px}.calendar-year-header .year-label{flex:1}.calendar-year-header .year-count{color:var(--vscode-descriptionForeground);background-color:var(--vscode-badge-background);border-radius:8px;padding:1px 6px;font-size:10px}.calendar-months{flex-direction:column;gap:1px;margin-top:2px;padding-left:16px;display:flex}.calendar-month{cursor:pointer;color:var(--vscode-sideBar-foreground);text-align:left;background:0 0;border-radius:3px;justify-content:space-between;align-items:center;padding:3px 6px;font-size:12px;display:flex}.calendar-month:hover{background-color:var(--vscode-list-hoverBackground)}.calendar-month.selected{background-color:var(--vscode-list-activeSelectionBackground)}.calendar-month .month-count{color:var(--vscode-descriptionForeground);font-size:10px}.calendar-empty{color:var(--vscode-descriptionForeground);text-align:center;padding:8px;font-size:12px}.month-count,.sidebar-section-count{color:var(--vscode-descriptionForeground);font-size:10px}.filter-panel{border-bottom:1px solid var(--vscode-sideBar-border);padding:8px 12px}.filter-section{margin-bottom:12px}.filter-section:last-child{margin-bottom:0}.filter-header{text-transform:uppercase;letter-spacing:.5px;color:var(--vscode-descriptionForeground);align-items:center;margin-bottom:6px;font-size:11px;font-weight:600;display:flex}.filter-header.collapsible-header{cursor:pointer;-webkit-user-select:none;user-select:none;border-radius:3px;margin:0 -6px 6px;padding:4px 6px}.filter-header.collapsible-header:hover{background-color:var(--vscode-list-hoverBackground)}.filter-header.collapsible-header.collapsed{margin-bottom:0}.filter-header .collapse-icon{opacity:.7;margin-right:4px;font-size:9px}.filter-header .clear-filter{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:.7;background:0 0;border:none;margin-left:auto;padding:2px 4px;font-size:10px}.filter-header .clear-filter:hover{opacity:1}.filter-chips{flex-wrap:wrap;gap:4px;display:flex}.filter-chip{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground);cursor:pointer;border:none;border-radius:12px;padding:2px 8px;font-size:11px;transition:background-color .15s,opacity .15s}.filter-chip:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.filter-chip.active{background-color:var(--vscode-button-background,#0e639c);color:var(--vscode-button-foreground,#fff)}.filter-chip.has-color{border:1px solid #0000}.filter-chip.has-color:hover{opacity:.85}.filter-chip.has-color.active{box-shadow:0 0 0 2px var(--vscode-focusBorder,#007fd4)}.filter-status{color:var(--vscode-descriptionForeground);background-color:var(--vscode-list-hoverBackground);border-bottom:1px solid var(--vscode-sideBar-border);justify-content:space-between;align-items:center;padding:6px 12px;font-size:11px;display:flex}.filter-status button{color:var(--accent-color);cursor:pointer;background:0 0;border:none;padding:0;font-size:11px}.filter-status button:hover{background:0 0;text-decoration:underline}.sidebar-load-more{justify-content:center;padding:12px 16px;display:flex}.load-more-button{background-color:var(--vscode-button-secondaryBackground);width:100%;color:var(--vscode-button-secondaryForeground);cursor:pointer;border:none;border-radius:4px;padding:8px 16px;font-size:12px;transition:background-color .2s}.load-more-button:hover:not(:disabled){background-color:var(--vscode-button-secondaryHoverBackground)}.filter-section{padding-top:4px}.filter-header{width:100%;color:var(--vscode-foreground);text-align:left;background:0 0;padding:6px 0}.filter-chips{flex-flow:wrap}.filter-chip{background:var(--vscode-input-background);color:var(--vscode-foreground);border-radius:999px;padding:5px 10px}.filter-status{color:var(--vscode-descriptionForeground);justify-content:space-between;align-items:center;gap:12px;font-size:12px;display:flex}.filter-status button,.load-more-button{background:var(--vscode-input-background);color:var(--vscode-foreground);border-radius:6px;padding:6px 10px}.sidebar-load-more{padding-bottom:12px}.load-more-button{width:100%}.media-item-info{flex-direction:column;gap:2px;display:flex}.media-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.media-item-size{color:var(--vscode-descriptionForeground);font-size:12px}.chat-list-item{border:none;border-bottom:1px solid var(--vscode-sideBar-border);width:100%;color:inherit;text-align:left;background:0 0;align-items:center;padding:8px 12px;display:flex}.chat-list-item:hover{background:var(--vscode-list-hoverBackground)}.chat-list-item.active{background:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.chat-item-content{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.chat-item-open{min-width:0;color:inherit;text-align:left;background:0 0;border:none;flex:1;padding:0;display:flex}.chat-item-open:hover{background:0 0}.chat-item-open:focus-visible{outline:1px solid var(--vscode-focusBorder);outline-offset:2px}.chat-item-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-item-date{color:var(--vscode-descriptionForeground);font-size:12px}.sidebar-delete-button{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:1;background:0 0;border:none;flex-shrink:0;padding:0 6px;font-size:16px;line-height:1;transition:opacity .15s,color .15s}.sidebar-item-row:hover .sidebar-delete-button,.sidebar-item-row .sidebar-item.selected~.sidebar-delete-button,.media-item-row:hover .sidebar-delete-button,.media-item-row .media-item.selected~.sidebar-delete-button,.chat-list-item:hover .sidebar-delete-button,.chat-list-item.active .sidebar-delete-button{opacity:1}.sidebar-delete-button:hover{color:var(--vscode-errorForeground)}.sidebar-item-row .sidebar-item.selected~.sidebar-delete-button,.media-item-row .media-item.selected~.sidebar-delete-button{background-color:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.settings-nav-list{flex-direction:column;gap:6px;padding:0 12px 12px;display:flex}.settings-nav-entry{width:100%;color:inherit;text-align:left;background:0 0;border:none;border-radius:10px;align-items:center;gap:10px;padding:10px 12px;display:flex}.settings-nav-entry:hover{background:var(--vscode-list-hoverBackground)}.settings-nav-entry-icon{text-align:center;flex:0 0 18px;width:18px}.sidebar-empty{color:var(--vscode-descriptionForeground);padding:16px 12px}@media (max-width:820px){.dashboard-stats{grid-template-columns:1fr}.recent-post-item{flex-wrap:wrap;align-items:flex-start}.media-grid{grid-template-columns:1fr}}.git-sidebar{flex-direction:column;display:flex}.git-header{border-bottom:1px solid var(--vscode-sideBar-border);flex-direction:column;gap:6px;padding:8px 12px 12px;display:flex}.git-branch{color:var(--vscode-sideBar-foreground);font-size:13px;font-weight:600}.git-branch-icon{color:var(--vscode-descriptionForeground);flex-shrink:0;font-size:14px}.git-upstream{color:var(--vscode-badge-foreground);background:var(--vscode-badge-background);border-radius:999px;padding:1px 6px;font-size:11px}.git-ahead{color:var(--vscode-testing-iconPassed);font-size:11px}.git-behind{color:var(--vscode-notificationsInfoIcon-foreground);font-size:11px}.git-legend-item{color:var(--vscode-descriptionForeground);align-items:center;gap:4px;font-size:10px;display:flex}.git-sync-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.git-sync-synced{background-color:var(--vscode-testing-iconPassed)}.git-sync-local_only{background-color:var(--vscode-editorWarning-foreground)}.git-sync-remote_only{background-color:var(--vscode-notificationsInfoIcon-foreground)}.git-actions{border-bottom:1px solid var(--vscode-sideBar-border);padding:8px 12px}.git-action-button{background-color:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground);cursor:pointer;text-align:center;border:none;border-radius:4px;flex:1;padding:4px 8px;font-size:11px;transition:background-color .15s}.git-action-button:hover:not(:disabled){background-color:var(--vscode-button-secondaryHoverBackground)}.git-action-button:disabled{opacity:.5;cursor:default}.git-section{padding:0}.git-section-title{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-sideBar-foreground);justify-content:space-between;align-items:center;padding:8px 12px;font-size:11px;font-weight:600;display:flex}.git-section-count{color:var(--vscode-descriptionForeground);font-size:10px}.git-commit-form,.git-init-form{border-bottom:1px solid var(--vscode-sideBar-border);padding:8px 12px}.git-commit-form input,.git-init-form input{background-color:var(--vscode-input-background);border:1px solid var(--vscode-input-border);color:var(--vscode-input-foreground);border-radius:3px;padding:4px 8px;font-size:12px}.git-commit-form input::placeholder,.git-init-form input::placeholder{color:var(--vscode-input-placeholderForeground)}.git-commit-form input:focus,.git-init-form input:focus{border-color:var(--vscode-focusBorder);outline:none}.git-commit-form .git-action-button,.git-init-form .git-action-button{flex:1}.git-status-file{width:100%;color:var(--vscode-sideBar-foreground);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:0;padding:5px 12px;font-size:12px}.git-status-file:hover{background-color:var(--vscode-list-hoverBackground)}.git-status-path{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.git-status-badge{text-transform:uppercase;border-radius:4px;flex-shrink:0;padding:1px 5px;font-size:10px;font-weight:700}.git-status-added{color:var(--vscode-testing-iconPassed);background:var(--vscode-testing-iconPassed)}@supports (color:color-mix(in lab, red, red)){.git-status-added{background:color-mix(in srgb,var(--vscode-testing-iconPassed)15%,transparent)}}.git-status-modified{color:var(--vscode-editorWarning-foreground);background:var(--vscode-editorWarning-foreground)}@supports (color:color-mix(in lab, red, red)){.git-status-modified{background:color-mix(in srgb,var(--vscode-editorWarning-foreground)15%,transparent)}}.git-status-deleted{color:var(--vscode-errorForeground);background:var(--vscode-errorForeground)}@supports (color:color-mix(in lab, red, red)){.git-status-deleted{background:color-mix(in srgb,var(--vscode-errorForeground)15%,transparent)}}.git-status-renamed{color:var(--vscode-notificationsInfoIcon-foreground);background:var(--vscode-notificationsInfoIcon-foreground)}@supports (color:color-mix(in lab, red, red)){.git-status-renamed{background:color-mix(in srgb,var(--vscode-notificationsInfoIcon-foreground)15%,transparent)}}.git-status-untracked{color:var(--vscode-descriptionForeground);background:var(--vscode-descriptionForeground)}@supports (color:color-mix(in lab, red, red)){.git-status-untracked{background:color-mix(in srgb,var(--vscode-descriptionForeground)15%,transparent)}}.git-history-entry{width:100%;color:var(--vscode-sideBar-foreground);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:0;padding:5px 12px}.git-history-entry:hover{background-color:var(--vscode-list-hoverBackground)}.git-history-subject{color:var(--vscode-sideBar-foreground);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.git-history-meta{margin-top:2px}.git-history-hash,.git-history-author,.git-history-date{color:var(--vscode-descriptionForeground);font-size:10px}.git-history-hash{font-family:var(--vscode-editor-font-family)}.git-history-more{color:var(--vscode-descriptionForeground);text-align:center;padding:8px 12px;font-size:11px}.git-not-a-repo{padding:12px}.git-empty-hint{color:var(--vscode-descriptionForeground);padding:8px 12px;font-size:12px}.git-section+.git-section,.git-header+.git-actions{border-top:1px solid var(--vscode-sideBar-border)}.tab-bar{background-color:var(--vscode-editorGroupHeader-tabsBackground);border-bottom:1px solid var(--vscode-editorGroupHeader-tabsBorder);flex-shrink:0;align-items:center;height:35px;display:flex;position:relative;overflow:hidden}.tab-bar-tabs{flex:1;align-items:center;height:100%;display:flex;overflow:auto hidden}.tab-bar-tabs::-webkit-scrollbar{height:0;display:none}.tab-bar-empty{height:100%;color:var(--vscode-descriptionForeground);align-items:center;padding:0 12px;font-size:12px;display:flex}.tab{cursor:pointer;background-color:var(--vscode-tab-inactiveBackground);border:none;border-right:1px solid var(--vscode-tab-border);min-width:100px;max-width:180px;height:100%;color:var(--vscode-tab-inactiveForeground);-webkit-user-select:none;user-select:none;flex-shrink:0;align-items:center;gap:4px;padding:0 6px 0 10px;font-size:13px;display:flex;position:relative}.tab-select{min-width:0;height:100%;color:inherit;font:inherit;cursor:inherit;background:0 0;border:none;flex:1;align-items:center;gap:4px;padding:0;display:flex}.tab:hover{background-color:var(--vscode-list-hoverBackground)}.tab.active{background-color:var(--vscode-tab-activeBackground);color:var(--vscode-tab-activeForeground)}.tab.active:after{content:"";background-color:var(--vscode-focusBorder);height:1px;position:absolute;top:0;left:0;right:0}.tab.transient .tab-title{font-style:italic}.tab-actions{flex-shrink:0;align-items:center;gap:2px;margin-left:auto;display:flex}.tab-dirty-indicator{color:var(--vscode-editorWarning-foreground,#e2c08d);font-size:10px;line-height:1}.tab-icon{opacity:.85;flex-shrink:0;justify-content:center;align-items:center;display:flex}.tab-title,.status-bar-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tab-close{width:20px;height:20px;color:var(--vscode-icon-foreground,#c5c5c5);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:3px;flex-shrink:0;justify-content:center;align-items:center;padding:0;font-size:15px;line-height:1;display:flex}.tab:hover .tab-close,.tab.active .tab-close{opacity:.7}.tab-close:hover{background-color:var(--vscode-toolbar-hoverBackground);color:var(--vscode-tab-activeForeground);opacity:1!important}.tab-close:active{background-color:var(--vscode-toolbar-activeBackground,#6366674f)}.tab.dirty .tab-dirty-indicator{display:block}.tab.dirty .tab-close{display:none}.tab.dirty:hover .tab-close{opacity:.7;display:flex}.tab.dirty:hover .tab-dirty-indicator{display:none}.tab:focus-visible{outline:1px solid var(--vscode-focusBorder,#007fd4);outline-offset:-1px}.output-item-details{color:inherit;white-space:pre-wrap;-webkit-user-select:text;user-select:text;background:#ffffff08;border-radius:4px;margin:4px 0 0;padding:8px;font:11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace}.editor-shell{background:var(--vscode-editor-background);flex:1;min-height:0;overflow:auto}.editor-frame{grid-template-columns:minmax(0,1fr) 240px;gap:16px;padding:14px 16px;display:grid}.editor-main,.editor-meta,.panel-shell{min-width:0}.editor-kicker{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);font-size:11px}.editor-title{margin:10px 0 6px;font-size:24px;font-weight:600}.editor-subtitle{margin:0 0 14px}.editor-toolbar{gap:8px;margin-bottom:14px;display:flex}.editor-toolbar-button{border:1px solid var(--vscode-panel-border);color:var(--vscode-foreground);background:0 0;border-radius:3px;padding:4px 8px}.editor-toolbar-button:hover,.panel-tab:hover{background:var(--vscode-toolbar-hoverBackground)}.editor-section{padding-top:4px}.editor-section h2{margin:0 0 8px;font-size:16px}.editor-list{margin:0;padding-left:18px;line-height:1.5}.editor-list.compact li{margin-bottom:6px}.editor-meta{border-left:1px solid var(--vscode-panel-border);padding-left:16px}.editor-meta-row{border-bottom:1px solid var(--vscode-panel-border);flex-direction:column;gap:3px;padding:10px 0;display:flex}.post-editor .post-editor-markdown-surface,.scripts-monaco.monaco-editor-shell,.templates-monaco.monaco-editor-shell{background:var(--vscode-editor-background);min-height:0;color:var(--vscode-editor-foreground);border-color:var(--vscode-panel-border)}.post-editor .monaco-editor-instance,.scripts-monaco .monaco-editor-instance,.templates-monaco .monaco-editor-instance{background:var(--vscode-editor-background);min-height:0}.monaco-editor-shell .monaco-editor,.monaco-editor-shell .monaco-editor .margin,.monaco-editor-shell .monaco-editor-background,.monaco-editor-shell .monaco-editor .inputarea.ime-input{background-color:var(--vscode-editor-background)!important}.monaco-editor-shell .monaco-editor,.monaco-editor-shell .monaco-editor .view-line{color:var(--vscode-editor-foreground)!important}.monaco-editor-shell .monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground,#858585)!important}.monaco-editor-shell .monaco-editor .current-line,.monaco-editor-shell .monaco-editor .view-overlays .current-line{border-color:var(--vscode-editor-lineHighlightBorder,transparent)!important}.help-doc-view{--doc-bg:var(--panel-1,#1e1e1e);--doc-surface:var(--panel-2,#252526);--doc-border:var(--line,#3c3c3c);--doc-text:var(--vscode-editor-foreground,#d4d4d4);--doc-muted:var(--vscode-descriptionForeground,#9da3ad);--doc-link:var(--vscode-textLink-foreground,#9cdcfe);--doc-code-bg:var(--vscode-textCodeBlock-background,#0003);--doc-hover:var(--vscode-list-hoverBackground,#ffffff0f)}.help-doc-view .misc-editor-content{padding:0;overflow:hidden}.documentation-view,.documentation-scroll{background:var(--doc-bg,var(--vscode-editor-background))}.documentation-view{flex-direction:column;height:100%;min-height:0;display:flex}.documentation-scroll{flex:1;min-height:0;padding:28px 24px 40px;overflow:auto}.documentation-content{max-width:920px;color:var(--doc-text,var(--vscode-editor-foreground));margin:0 auto}.documentation-article,.help-doc-markdown{background:var(--doc-surface);border:1px solid var(--doc-border);border-radius:10px;padding:18px 20px 24px;box-shadow:0 10px 24px #0000002e}.documentation-content.markdown-body>.documentation-article>:first-child{margin-top:0}.documentation-content.markdown-body>.documentation-article>:last-child{margin-bottom:0}.documentation-content.markdown-body h1,.documentation-content.markdown-body h2,.documentation-content.markdown-body h3{color:var(--doc-text);border-bottom:1px solid var(--doc-border);padding-bottom:6px;line-height:1.25}.documentation-content.markdown-body h1{font-size:1.9rem}.documentation-content.markdown-body h2{margin-top:2rem;font-size:1.35rem}.documentation-content.markdown-body h3{margin-top:1.6rem;font-size:1.05rem}.documentation-content.markdown-body p,.documentation-content.markdown-body li,.documentation-content.markdown-body td,.documentation-content.markdown-body th{line-height:1.6}.documentation-content.markdown-body a{color:var(--doc-link);text-underline-offset:.14em;text-decoration-thickness:1px}.documentation-content.markdown-body a:hover{color:var(--doc-text)}.documentation-content.markdown-body hr{border:0;border-top:1px solid var(--doc-border);opacity:.8}.documentation-content.markdown-body code{background:var(--doc-code-bg);border-radius:4px;padding:.12em .4em;font:.92em/1.45 SFMono-Regular,Menlo,Monaco,Consolas,monospace}.documentation-content.markdown-body pre{background:var(--doc-code-bg);border:1px solid var(--doc-border);border-radius:8px;margin:.9rem 0 1.2rem;padding:14px 16px;overflow:auto}.documentation-content.markdown-body pre code{background:0 0;padding:0;font-size:.9em}.documentation-content.markdown-body blockquote{border-left:3px solid var(--doc-border);color:var(--doc-muted);margin:1rem 0;padding:0 0 0 12px}.documentation-content.markdown-body table{border-collapse:collapse;width:100%;margin:1rem 0 1.4rem;display:table}.documentation-content.markdown-body th,.documentation-content.markdown-body td{border:1px solid var(--doc-border);text-align:left;vertical-align:top;padding:8px 10px}.documentation-content.markdown-body th{background:var(--doc-hover);font-weight:700}.documentation-content.markdown-body ul,.documentation-content.markdown-body ol{margin:.85rem 0 1rem;padding-left:1.5rem;display:block}.documentation-content.markdown-body ul{list-style:outside}.documentation-content.markdown-body ol{list-style:decimal}.documentation-content.markdown-body li{margin:.3rem 0}.documentation-content.markdown-body li>ul,.documentation-content.markdown-body li>ol{margin-top:.35rem;margin-bottom:.35rem}.documentation-content.markdown-body strong{color:var(--doc-text)}.documentation-content.markdown-body img{max-width:100%;height:auto}.post-editor,.scripts-view-shell,.templates-view-shell{background-color:var(--vscode-editor-background);flex-direction:column;flex:1;display:flex;overflow:hidden}.post-editor .editor-tab-dirty{color:var(--vscode-notificationsWarningIcon-foreground,var(--vscode-editorWarning-foreground));font-size:10px}.post-editor .editor-tab-meta{color:var(--vscode-descriptionForeground);white-space:nowrap;font-size:11px}.post-editor .quick-actions-wrapper{display:inline-block;position:relative}.post-editor .quick-actions-btn{white-space:nowrap;align-items:center;gap:4px;display:flex}.post-editor .quick-actions-btn-icon{font-size:12px;line-height:1}.post-editor .quick-actions-divider{background:var(--vscode-dropdown-border,#454545);height:1px}.post-editor .quick-action-icon{flex-shrink:0;margin-top:2px;font-size:16px}.post-editor .quick-action-text strong{font-size:13px;font-weight:500}.post-editor .quick-action-text small{opacity:.7;font-size:11px}.post-editor .status-badge,.scripts-view-shell .status-badge,.templates-view-shell .status-badge{text-transform:uppercase;border-radius:10px;padding:2px 8px;font-size:11px;font-weight:500}.post-editor .status-badge.status-draft,.scripts-view-shell .status-badge.status-draft,.templates-view-shell .status-badge.status-draft{color:var(--vscode-notificationsWarningIcon-foreground,var(--vscode-editorWarning-foreground));background-color:#cca70033}.post-editor .status-badge.status-published,.scripts-view-shell .status-badge.status-published,.templates-view-shell .status-badge.status-published{color:var(--vscode-testing-iconPassed);background-color:#73c99133}.post-editor .status-badge.status-archived,.scripts-view-shell .status-badge.status-archived,.templates-view-shell .status-badge.status-archived{color:var(--vscode-descriptionForeground);background-color:#85858533}.post-editor .auto-save-indicator{color:var(--vscode-descriptionForeground);font-size:11px;font-style:italic}.post-editor .metadata-toggle{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;cursor:pointer;background:0 0;border:none;flex-shrink:0;align-items:center;gap:8px;padding:6px 4px;font-size:11px;font-weight:500;transition:color .15s;display:flex}.post-editor .metadata-toggle:hover{color:var(--vscode-foreground)}.post-editor .metadata-toggle-chevron{font-size:10px}.post-editor .editor-header-row.is-collapsed{display:none}.post-editor .editor-media-panel{flex-shrink:0;width:200px}.post-editor .editor-field label,.post-editor .editor-body label,.post-editor .post-editor-links-label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;font-size:11px;font-weight:500}.post-editor .editor-checkbox-label{text-transform:none;letter-spacing:0;color:var(--vscode-foreground);align-items:center;gap:8px;display:inline-flex}.post-editor .post-editor-input.is-readonly{opacity:.7;cursor:not-allowed}.post-editor .post-editor-excerpt{min-height:96px}.post-editor .tag-input-container{width:100%;position:relative}.post-editor .tag-input-container.is-disabled{opacity:.72}.post-editor .tag-input-wrapper{border:1px solid var(--vscode-input-border,#3c3c3c);background:var(--vscode-input-background,#3c3c3c);cursor:text;border-radius:4px;flex-wrap:wrap;align-items:center;gap:6px;min-height:38px;padding:6px 8px;display:flex}.post-editor .tag-input-wrapper:focus-within{border-color:var(--vscode-focusBorder,#007fd4);outline:none}.post-editor .tag-chip{background:var(--vscode-badge-background,#4d4d4d);border:1px solid var(--vscode-widget-border,#454545);color:var(--vscode-badge-foreground,#fff);white-space:nowrap;border-radius:4px;align-items:center;gap:4px;padding:3px 8px;font-size:.85rem;display:inline-flex}.post-editor .tag-chip.has-color{border-radius:12px;padding:3px 10px}.post-editor .tag-chip-remove{width:16px;height:16px;color:inherit;cursor:pointer;opacity:.6;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;margin-left:2px;padding:0;font-size:1rem;line-height:1;transition:opacity .15s,background .15s;display:inline-flex}.post-editor .tag-chip-remove:hover{opacity:1;background:#0000001a}.post-editor .tag-chip.has-color .tag-chip-remove:hover{background:#0003}.post-editor .tag-input-field{min-width:120px;color:var(--vscode-input-foreground,#ccc);background:0 0;border:none;outline:none;flex:1;padding:2px 4px;font-family:inherit;font-size:.9rem}.post-editor .tag-input-field::placeholder{color:var(--vscode-input-placeholderForeground,#a6a6a6)}.post-editor .tag-input-field:disabled{cursor:not-allowed}.post-editor .tag-suggestions{background:var(--vscode-dropdown-background,#3c3c3c);border:1px solid var(--vscode-widget-border,#454545);z-index:1000;border-radius:6px;max-height:240px;margin-top:4px;padding:4px;position:absolute;top:100%;left:0;right:0;overflow-y:auto;box-shadow:0 4px 16px #00000080,0 0 0 1px #0003}.post-editor .tag-suggestion{width:100%;color:var(--vscode-dropdown-foreground,#f0f0f0);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:4px;align-items:center;gap:8px;padding:8px 12px;font-family:inherit;font-size:.9rem;transition:background .1s;display:flex}.post-editor .tag-suggestion:hover,.post-editor .tag-suggestion.selected{background:var(--vscode-list-hoverBackground,#2a2d2e)}.post-editor .tag-suggestion-color{border-radius:50%;flex-shrink:0;width:12px;height:12px}.post-editor .tag-suggestion-name{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.post-editor .tag-suggestion-section-label{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground,#a6a6a6);padding:4px 12px;font-size:.75rem}.post-editor .tag-suggestion.create-new{border-top:1px solid var(--vscode-widget-border,#454545);color:var(--vscode-notificationsInfoIcon-foreground,#75beff);margin-top:4px;padding:12px 8px 6px}.post-editor .tag-suggestion.create-new:first-child{border-top:none;margin-top:0;padding-top:8px}.post-editor .tag-suggestion-icon{border:1px dashed;border-radius:4px;justify-content:center;align-items:center;width:18px;height:18px;font-size:.9rem;font-weight:600;display:inline-flex}.post-editor .editor-language-row select{flex:1;min-width:0}.post-editor .editor-translation-flag{cursor:pointer;background:0 0;border:1px solid #0000;border-radius:999px;flex:none;justify-content:center;align-items:center;width:24px;height:24px;padding:0;font-size:14px;line-height:1;display:inline-flex}.post-editor .editor-translation-flag.status-draft{opacity:.82}.post-editor .editor-translation-flag.status-archived{opacity:.45;filter:grayscale(.35)}.post-editor .editor-translation-flag.active{border-color:var(--vscode-testing-iconQueued,#cca700);background:var(--vscode-testing-iconQueued,#cca700)}@supports (color:color-mix(in lab, red, red)){.post-editor .editor-translation-flag.active{background:color-mix(in srgb,var(--vscode-testing-iconQueued,#cca700)14%,transparent)}}.post-editor .editor-translation-flag:hover{background:var(--vscode-list-hoverBackground)}@supports (color:color-mix(in lab, red, red)){.post-editor .editor-translation-flag:hover{background:color-mix(in srgb,var(--vscode-list-hoverBackground)75%,transparent)}}.post-editor .post-editor-links-panel,.post-editor .post-editor-side-panel{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px;padding:12px}@supports (color:color-mix(in lab, red, red)){.post-editor .post-editor-links-panel,.post-editor .post-editor-side-panel{background:color-mix(in srgb,var(--vscode-editor-background)82%,white 3%)}}.post-editor .post-editor-side-panel-header{justify-content:space-between;align-items:center;gap:10px;display:flex}.post-editor .post-editor-links-columns{align-items:flex-start;gap:18px;margin-top:10px;display:flex}.post-editor .post-editor-links-columns>div{flex:1;min-width:0}.post-editor .post-editor-empty,.post-editor .post-editor-media-meta{color:var(--vscode-descriptionForeground);font-size:12px}.post-editor .post-editor-media-list{flex-direction:column;gap:8px;margin:10px 0 0;padding:0;list-style:none;display:flex}.post-editor .post-editor-media-item{background:#ffffff08;border-radius:6px;flex-direction:column;gap:2px;padding:8px 10px;display:flex}.post-editor .editor-body{flex-direction:column;flex:1;gap:4px;min-height:320px;display:flex}.post-editor .editor-toolbar{align-items:center;gap:8px;margin-bottom:8px;display:flex}.post-editor .editor-toolbar-left{flex:1;justify-content:flex-start;align-items:center;min-width:0;display:flex}.post-editor .editor-toolbar-center{flex:none;justify-content:center;align-items:center;display:flex}.post-editor .editor-toolbar-right{flex:1 0 auto;justify-content:flex-end;align-items:center;gap:6px;display:flex}.post-editor .editor-mode-toggle{gap:4px;display:flex}.post-editor .editor-mode-toggle button,.post-editor .editor-toolbar-button{cursor:pointer;border:none;border-radius:4px;padding:4px 12px;font-size:12px;transition:background-color .15s}.post-editor .editor-mode-toggle button{background-color:var(--vscode-button-secondaryBackground,#ffffff14);color:var(--vscode-button-secondaryForeground,var(--vscode-foreground))}.post-editor .editor-mode-toggle button:hover,.post-editor .editor-toolbar-button:hover{background-color:var(--vscode-button-secondaryHoverBackground,var(--vscode-toolbar-hoverBackground))}.post-editor .editor-mode-toggle button.active{background-color:var(--vscode-button-background,var(--accent-color));color:var(--vscode-button-foreground,#fff)}.post-editor .editor-toolbar-button{background:var(--vscode-button-secondaryBackground,#ffffff14);color:var(--vscode-button-secondaryForeground,var(--vscode-foreground))}.post-editor .editor-excerpt-panel.is-collapsed{display:none}.post-editor .editor-preview{background-color:var(--vscode-input-background);background-color:var(--vscode-input-background);border:none;border:1px solid var(--vscode-panel-border);border-radius:4px;flex:1;min-height:240px;padding:14px;line-height:1.6;position:relative;overflow:auto}.post-editor .editor-preview-frame{background:#fff;border:none;width:100%;min-height:520px}.post-editor .post-editor-markdown-surface{border:1px solid var(--vscode-input-border,var(--vscode-panel-border));background:var(--vscode-input-background);border-radius:4px;flex:1;min-height:380px;position:relative;overflow:hidden}.post-editor .monaco-editor-shell,.scripts-monaco.monaco-editor-shell,.templates-monaco.monaco-editor-shell{position:relative}.monaco-editor-instance{width:100%;height:100%;min-height:100%}.post-editor .monaco-editor-instance{min-height:380px}.scripts-monaco .monaco-editor-instance,.templates-monaco .monaco-editor-instance{min-height:420px}.monaco-editor-input{clip:rect(0,0,0,0);white-space:pre;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.post-editor .editor-footer{border-top:1px solid var(--vscode-panel-border);background-color:var(--vscode-sideBar-background);color:var(--vscode-descriptionForeground);flex-wrap:wrap;align-items:center;gap:16px;padding:8px 16px;font-size:12px;display:flex}@media (max-width:980px){.post-editor .editor-header,.scripts-view-shell .ui-editor-header,.templates-view-shell .ui-editor-header,.post-editor .metadata-toggle-header{flex-direction:column;align-items:flex-start;display:flex}.post-editor .editor-header-row,.post-editor .editor-field-row,.post-editor .post-editor-links-columns{flex-direction:column}.post-editor .editor-media-panel{width:100%}.post-editor .ui-editor-actions,.scripts-view-shell .ui-editor-actions,.templates-view-shell .ui-editor-actions{justify-content:flex-start}}.settings-view,.style-view{flex-direction:column;height:100%;display:flex}.settings-header,.style-view-header{border-bottom:1px solid var(--line,#3c3c3c);justify-content:space-between;align-items:center;gap:16px;padding:18px 20px;display:flex}.settings-search input{width:min(320px,40vw)}.settings-content{flex-direction:column;gap:18px;padding:20px;display:flex;overflow:auto}.setting-section{border:1px solid var(--line,#3c3c3c);background:var(--panel-2,#252526);border-radius:12px}.setting-section-header{border-bottom:1px solid var(--line,#3c3c3c);padding:14px 16px}.setting-section-content{flex-direction:column;gap:14px;padding:16px;display:flex}.setting-row{grid-template-columns:minmax(180px,240px) minmax(0,1fr);align-items:start;gap:16px;display:grid}.setting-label{font-weight:600}.setting-control,.setting-input-group{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.setting-actions{flex-wrap:wrap;gap:10px;padding:0 16px 16px;display:flex}.style-theme-picker{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;padding:20px;display:grid}.style-theme-option{border:1px solid var(--line,#3c3c3c);background:var(--panel-2,#252526);text-align:left;cursor:pointer;border-radius:14px;padding:14px}.style-theme-option.selected{border-color:var(--accent-color);box-shadow:0 0 0 1px var(--accent-color)}.style-theme-swatch{flex-direction:column;gap:12px;display:flex}.style-theme-tones{grid-template-columns:2fr 1fr 1fr;gap:8px;display:grid}.style-theme-tone{border:1px solid #ffffff14;border-radius:10px;height:42px}.style-apply-row{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:0 20px 20px;display:flex}.style-preview-container{flex:1;min-height:0;padding:0 20px 20px}.style-preview-frame{border:1px solid var(--line,#3c3c3c);background:#fff;border-radius:14px;width:100%;height:100%;min-height:420px}@media (max-width:1100px){.setting-row{grid-template-columns:1fr}}.panel-shell{border-top:1px solid var(--line);min-height:160px;max-height:160px}.panel-shell.is-hidden{display:none}.panel-tabs{gap:2px;display:flex}.panel-tab{color:var(--vscode-tab-inactiveForeground);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0;padding:6px 12px;font-size:12px}.panel-tab:hover{color:var(--vscode-tab-activeForeground);background:0 0}.panel-tab.active{color:var(--vscode-tab-activeForeground);border-bottom-color:var(--vscode-focusBorder);background:0 0}.assistant-content{flex-direction:column;gap:12px;padding:12px;display:flex}.assistant-sidebar-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.assistant-sidebar-heading{flex-direction:column;gap:4px;display:flex}.assistant-sidebar-description,.assistant-sidebar-context-text,.assistant-sidebar-message-content{color:var(--vscode-descriptionForeground)}.assistant-sidebar-status{border:1px solid var(--vscode-panel-border);border-radius:999px;padding:2px 8px;font-size:11px;line-height:1.4}.assistant-sidebar-status.is-offline{color:var(--vscode-editor-foreground);background:#ffc4002e;border-color:#ffc40059}.assistant-sidebar-context{border:1px solid var(--vscode-panel-border);background:var(--vscode-editorWidget-background,#0003);border-radius:6px;flex-direction:column;gap:10px;padding:8px;display:flex}.assistant-sidebar-context-row{justify-content:space-between;gap:12px;display:flex}.assistant-sidebar-context-label,.assistant-sidebar-message-role{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);font-size:11px}.assistant-sidebar-context-value{text-align:right;color:var(--vscode-editor-foreground)}.assistant-sidebar-context-text,.assistant-sidebar-message-content{white-space:pre-wrap;margin:0}.assistant-sidebar-prompt-form,.assistant-sidebar-transcript{flex-direction:column;gap:10px;display:flex}.assistant-sidebar-prompt{resize:vertical;border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);width:100%;min-height:120px;color:var(--vscode-input-foreground);font:inherit;border-radius:6px;padding:10px}.assistant-sidebar-prompt:focus{outline:1px solid var(--vscode-focusBorder);outline-offset:1px}.assistant-sidebar-start-button{align-self:flex-start}.assistant-sidebar-start-button:disabled{cursor:default;opacity:.55}.assistant-sidebar-message{border:1px solid var(--vscode-panel-border);background:var(--vscode-editorWidget-background,#0003);border-bottom-width:1px;border-radius:6px;flex-direction:column;gap:6px;padding:12px;display:flex}.assistant-sidebar-message.user{background:var(--vscode-list-hoverBackground)}.assistant-sidebar-message.assistant{background:var(--vscode-editorWidget-background,#0003)}.status-bar{background-color:var(--vscode-statusBar-background);height:22px;color:var(--vscode-statusBar-foreground);-webkit-user-select:none;user-select:none;border-top:none;flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:0;padding:0 8px;font-size:12px;display:flex}.status-bar-left,.status-bar-right{flex-shrink:0;align-items:center;gap:4px;min-width:0;display:flex}.status-bar-item{white-space:nowrap;text-overflow:ellipsis;background:0 0;border-radius:0;align-items:center;gap:6px;max-width:none;height:100%;padding:0 8px;font-size:12px;display:flex;overflow:hidden}.status-bar-item .task-message-text{text-overflow:ellipsis;white-space:nowrap;max-width:300px;overflow:hidden}.task-spinner{border:2px solid #ffffff4d;border-top-color:#fff;border-radius:50%;width:10px;height:10px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.panel-content{padding:8px}.task-list{gap:4px}.output-list,.git-log-list{gap:6px}.task-entry{background-color:var(--vscode-sideBar-background);border-bottom:none;border-radius:4px;padding:8px}.output-entry{background-color:var(--vscode-sideBar-background);color:var(--vscode-editor-foreground);border-bottom:none;border-radius:4px;padding:8px;font-size:12px}@media (max-width:1100px){.editor-frame{grid-template-columns:1fr}.assistant-sidebar-shell{display:none}.dashboard-grid{grid-template-columns:1fr}}.text-muted{color:var(--vscode-descriptionForeground)}.editor-empty{background-color:var(--vscode-editor-background);flex:1;justify-content:center;align-items:flex-start;padding:40px 20px;display:flex;overflow-y:auto}.dashboard-content{width:100%;max-width:720px}.dashboard-content h1{color:var(--vscode-editor-foreground);margin:0 0 4px;font-size:24px;font-weight:400}.dashboard-content>.text-muted{margin-bottom:24px;display:block}.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px;display:grid}.stat-card{background-color:var(--vscode-sideBar-background);border-radius:6px;padding:16px}.stat-number{color:var(--vscode-editor-foreground);margin-bottom:4px;font-size:32px;font-weight:600;line-height:1}.stat-label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;margin-bottom:10px;font-size:12px}.stat-breakdown{flex-wrap:wrap;gap:6px;display:flex}.stat-tag{background-color:var(--vscode-input-background);color:var(--vscode-descriptionForeground);border-radius:3px;padding:2px 8px;font-size:11px}.stat-published{color:var(--vscode-testing-iconPassed)}.stat-draft{color:var(--vscode-editorWarning-foreground)}.stat-archived{color:var(--vscode-descriptionForeground)}.dashboard-section{background-color:var(--vscode-sideBar-background);border-radius:6px;margin-bottom:12px;padding:16px}.dashboard-section h4{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;margin:0 0 12px;font-size:11px;font-weight:600}.timeline-chart{align-items:flex-end;gap:4px;height:100px;display:flex}.timeline-bar-container{flex-direction:column;flex:1;align-items:center;height:100%;display:flex}.timeline-bar{background-color:var(--vscode-activityBarBadge-background);border-radius:3px 3px 0 0;width:100%;max-width:40px;min-height:4px;margin-top:auto;transition:opacity .15s;position:relative}.timeline-bar:hover{opacity:.8}.timeline-bar-count{color:var(--vscode-descriptionForeground);font-size:10px;position:absolute;top:-16px;left:50%;transform:translate(-50%)}.timeline-bar-label{color:var(--vscode-descriptionForeground);flex-direction:column;align-items:center;margin-top:4px;font-size:9px;line-height:1.15;display:flex}.timeline-bar-label-month{white-space:nowrap}.timeline-bar-label-year{font-size:8px}.tag-cloud{flex-wrap:wrap;align-items:baseline;gap:6px 10px;line-height:1.6;display:flex}.dashboard-tag{background-color:var(--vscode-input-background);color:var(--vscode-editor-foreground);cursor:default;white-space:nowrap;border-radius:10px;padding:2px 8px;transition:opacity .15s}.dashboard-tag:hover{opacity:.75}.dashboard-tag.has-color{border-radius:12px}.dashboard-tag.has-color:hover{opacity:.85}.tag-cloud-more{font-size:11px}.tag-count{opacity:.5;margin-left:2px;font-size:10px}.dashboard-category{border:1px solid var(--vscode-input-border);font-size:12px}.recent-posts-list{flex-direction:column;display:flex}.recent-post-item{cursor:pointer;text-align:left;width:100%;color:inherit;background:0 0;border:none;border-radius:4px;align-items:center;gap:10px;padding:6px 8px;font-size:12px;display:flex}.recent-post-item:hover{background-color:var(--vscode-list-hoverBackground)}.recent-post-title{color:var(--vscode-editor-foreground);text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.recent-post-status{background-color:var(--vscode-input-background);text-transform:uppercase;letter-spacing:.3px;border-radius:3px;padding:1px 6px;font-size:10px}.recent-post-status.status-published{color:var(--vscode-testing-iconPassed)}.recent-post-status.status-draft{color:var(--vscode-editorWarning-foreground)}.recent-post-status.status-archived{color:var(--vscode-descriptionForeground)}.recent-post-date{color:var(--vscode-descriptionForeground);white-space:nowrap}.settings-view-shell,.style-view,.tags-view-shell,.scripts-view-shell,.templates-view-shell,.chat-panel{background:var(--vscode-editor-background);height:100%}.chat-panel{color:var(--vscode-editor-foreground)}.chat-panel-header{border-bottom:1px solid var(--vscode-panel-border);background:var(--vscode-sideBar-background)}.chat-panel-title{flex:1;gap:10px;min-width:0;font-size:14px;font-weight:600;overflow:visible}.chat-panel-title-main{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-panel-header-actions{align-items:center;gap:8px;display:flex}.chat-model-selector-wrap{min-width:0;display:inline-flex;position:relative}.chat-model-selector-button,.chat-model-selector-option{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);color:var(--vscode-input-foreground)}.chat-model-selector-menu{border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));background:var(--vscode-dropdown-background,var(--vscode-sideBar-background));color:var(--vscode-dropdown-foreground,var(--vscode-foreground));z-index:20;position:absolute;top:calc(100% + 4px);left:0;right:auto}.chat-panel .chat-model-selector-button.chat-model-selector-inline{align-items:center;gap:6px;display:inline-flex}.chat-panel .chat-model-selector-caret{font-size:10px;position:static}.chat-messages,.chat-surface-scroll{flex:1;min-height:0;overflow-y:auto}.chat-message{max-width:100%;margin-bottom:16px;display:flex}.chat-message.user{flex-direction:row-reverse}.chat-message-content{border:1px solid var(--vscode-panel-border);background:var(--vscode-sideBar-background);max-width:min(760px,100%);color:var(--vscode-editor-foreground);border-radius:6px;padding:12px 14px}.chat-panel .chat-message.user .chat-message-content{background:var(--vscode-button-background,var(--accent-color,#007acc));color:var(--vscode-button-foreground,var(--vscode-list-activeSelectionForeground,#fff));border:1px solid var(--vscode-button-background,var(--accent-color,#007acc));border-radius:6px;padding:12px 14px;line-height:1.35}.chat-tool-surface-table{border-collapse:collapse;width:100%}.chat-tool-surface-table th,.chat-tool-surface-table td{border-bottom:1px solid var(--vscode-panel-border);text-align:left;padding:6px 8px}.chat-tool-surface-json{border:1px solid var(--vscode-panel-border);background:var(--vscode-textCodeBlock-background);border-radius:4px;padding:10px 12px;overflow:auto}.chat-inline-surface{border:1px solid var(--vscode-panel-border);background:var(--vscode-sideBar-background);border-radius:6px;margin:10px 0;overflow:hidden}.chat-inline-surface-header{cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--vscode-descriptionForeground);align-items:center;gap:8px;padding:8px 12px;font-size:12px;list-style:none;display:flex}.chat-inline-surface-header::-webkit-details-marker{display:none}.chat-inline-surface-header::marker{content:""}.chat-inline-surface-icon{opacity:.7;flex:none;font-size:14px;line-height:1}.chat-inline-surface-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--vscode-editor-foreground);flex:1;font-weight:500;overflow:hidden}.chat-inline-surface-dismiss{width:20px;height:20px;color:var(--vscode-descriptionForeground);cursor:pointer;opacity:0;background:0 0;border:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:0;font-size:16px;line-height:1;transition:opacity .15s;display:flex}.chat-inline-surface:hover .chat-inline-surface-dismiss{opacity:1}.chat-inline-surface-dismiss:hover{background:var(--vscode-toolbar-hoverBackground);color:var(--vscode-editor-foreground)}.chat-inline-surface-body{padding:0 12px 12px}.chat-inline-surface-body h3{color:var(--vscode-editor-foreground);margin:0 0 8px;font-size:13px;font-weight:600}.chat-surface-chart-type{text-transform:uppercase;letter-spacing:.04em;color:var(--vscode-descriptionForeground);margin:0 0 8px;font-size:11px;display:none}.chat-surface-chart-list{flex-direction:column;gap:6px;display:flex}.chat-surface-chart-row{flex-direction:column;gap:2px;display:flex}.chat-surface-chart-meta{justify-content:space-between;align-items:baseline;font-size:12px;display:flex}.chat-surface-chart-meta span:first-child{color:var(--vscode-editor-foreground)}.chat-surface-chart-meta span:last-child{color:var(--vscode-descriptionForeground);font-variant-numeric:tabular-nums}.chat-surface-chart-bar{background:#ffffff0f;border-radius:3px;height:6px;overflow:hidden}.chat-surface-chart-bar span{background:var(--accent-color);border-radius:3px;min-width:0;height:100%;transition:width .3s;display:block}.chat-surface-chart-bar-stacked{display:flex}.chat-surface-chart-bar-segment{min-width:0;height:100%;transition:width .3s;display:block}.chat-surface-chart-legend{flex-wrap:wrap;gap:10px;margin-top:8px;font-size:11px;display:flex}.chat-surface-chart-legend-item{color:var(--vscode-descriptionForeground);align-items:center;gap:4px;display:inline-flex}.chat-surface-chart-legend-swatch{border-radius:2px;width:10px;height:10px;display:inline-block}.chat-surface-chart-pie{flex-direction:column;align-items:center;gap:8px;display:flex}.chat-surface-chart-pie-svg{width:140px;height:140px}.chat-surface-chart-pie-slice{stroke:var(--vscode-editor-background,#1e1e1e);stroke-width:1px}.chat-surface-chart-donut-hole{fill:var(--vscode-editor-background,#1e1e1e)}.chat-surface-chart-donut-total{fill:var(--vscode-editor-foreground);font-size:16px;font-weight:600}.chat-surface-chart-line-svg{width:100%;height:auto}.chat-surface-chart-line-grid{stroke:#ffffff14;stroke-width:1px}.chat-surface-chart-line-y-label,.chat-surface-chart-line-x-label{fill:var(--vscode-descriptionForeground);font-size:9px}.chat-surface-chart-line-path{stroke:var(--accent-color);stroke-width:2px}.chat-surface-chart-area-fill{fill:var(--accent-color);opacity:.18}.chat-surface-chart-line-dot{fill:var(--accent-color)}.chat-surface-chart-heatmap{gap:2px;font-size:11px;display:grid}.chat-surface-chart-heatmap-col-label{text-align:center;opacity:.7;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-surface-chart-heatmap-row-label{text-align:right;opacity:.7;white-space:nowrap;text-overflow:ellipsis;max-width:80px;padding-right:4px;overflow:hidden}.chat-surface-chart-heatmap-cell{aspect-ratio:1;font-variant-numeric:tabular-nums;border-radius:2px;justify-content:center;align-items:center;min-width:14px;min-height:14px;font-size:10px;font-weight:500;display:flex}.chat-surface-card{flex-direction:column;gap:6px;display:flex}.chat-surface-subtitle{color:var(--vscode-descriptionForeground);margin:0;font-size:12px}.chat-surface-body{margin:0;font-size:13px;line-height:1.45}.chat-surface-actions{gap:8px;margin-top:8px;display:flex}.chat-surface-action-button{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);color:var(--vscode-editor-foreground);cursor:pointer;border-radius:4px;padding:4px 12px;font-size:12px}.chat-surface-action-button:hover{background:var(--vscode-list-hoverBackground)}.chat-surface-metric{flex-direction:column;gap:2px;display:flex}.chat-surface-metric-label{color:var(--vscode-descriptionForeground);font-size:12px}.chat-surface-metric-value{font-variant-numeric:tabular-nums;color:var(--vscode-editor-foreground);font-size:22px;font-weight:600}.chat-surface-list{margin:0;padding:0 0 0 18px;font-size:13px;line-height:1.5}.chat-surface-mindmap{margin:0;padding:0;font-size:13px;list-style:none}.chat-surface-mindmap li{border-bottom:1px solid var(--vscode-panel-border);padding:4px 0}.chat-surface-mindmap li:last-child{border-bottom:none}.chat-surface-mindmap strong{color:var(--vscode-editor-foreground);display:block}.chat-surface-mindmap-children{color:var(--vscode-descriptionForeground);padding-left:12px;font-size:12px;display:block}.chat-surface-tabs{flex-direction:column;display:flex}.chat-surface-tab-list{border-bottom:1px solid var(--vscode-panel-border);gap:0;display:flex}.chat-surface-tab-button{color:var(--vscode-descriptionForeground);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;padding:6px 12px;font-size:12px}.chat-surface-tab-button.active{color:var(--vscode-editor-foreground);border-bottom-color:var(--accent-color)}.chat-surface-tab-button:hover:not(.active){color:var(--vscode-editor-foreground)}.chat-surface-tab-panel{padding:10px 0 0}.chat-surface-form{flex-direction:column;gap:10px;display:flex}.chat-surface-form-field{color:var(--vscode-descriptionForeground);flex-direction:column;gap:4px;font-size:12px;display:flex}.chat-surface-form-field input,.chat-surface-form-field textarea,.chat-surface-form-field select{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);color:var(--vscode-input-foreground);font:inherit;border-radius:4px;padding:5px 8px}.chat-surface-form-field textarea{resize:vertical;min-height:60px}.chat-surface-form-checkbox{align-items:center;display:flex}.chat-surface-text{white-space:pre-wrap;font-size:13px;line-height:1.45}.chat-tool-surface-table-wrap{overflow-x:auto}.chat-panel .chat-input-container{--chat-input-line-height:22px;--chat-input-min-height:24px;border-top:1px solid var(--vscode-panel-border);background:var(--vscode-sideBar-background);padding:12px 16px}.chat-panel .chat-input-wrapper{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);border-radius:8px;min-height:40px;padding:6px 8px}.chat-panel .chat-input-wrapper:focus-within{border-color:var(--vscode-focusBorder)}.chat-panel .chat-input{box-sizing:border-box;height:var(--chat-input-min-height);min-height:var(--chat-input-min-height);line-height:var(--chat-input-line-height);resize:vertical;max-height:160px;color:var(--vscode-input-foreground);background:0 0;border:0;outline:none;flex:1;margin:0;padding:6px 8px;overflow-y:hidden}.chat-panel .chat-input:focus{outline:none}.chat-panel .chat-input::placeholder{color:var(--vscode-input-placeholderForeground)}.chat-panel .chat-send-button{flex:none;width:22px;max-width:22px;height:22px;max-height:22px;padding:0}.chat-panel .chat-send-button:disabled{opacity:.5}@media (max-width:720px){.chat-panel-header{flex-direction:column;align-items:stretch;padding:10px 12px}.chat-panel-title{flex-wrap:wrap;width:100%}.chat-model-selector-wrap{width:100%}.chat-panel .chat-model-selector-button.chat-model-selector-inline{justify-content:space-between;width:100%}.chat-messages{padding:12px}.chat-message-content{max-width:100%}.chat-panel .chat-input-container{padding:8px 12px}}.colour-picker-wrap{display:inline-flex;position:relative}.colour-picker-trigger{border:1px solid var(--vscode-input-border);cursor:pointer;border-radius:4px;flex-shrink:0;width:28px;height:28px;padding:0}.colour-picker-trigger:hover{opacity:.85}.colour-picker-popover{z-index:30;border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));background:var(--vscode-dropdown-background,var(--vscode-sideBar-background));border-radius:6px;width:196px;padding:8px;position:absolute;top:calc(100% + 4px);left:0;box-shadow:0 4px 12px #00000040}.colour-picker-grid{grid-template-columns:repeat(6,1fr);gap:4px;display:grid}.colour-picker-swatch{cursor:pointer;border:2px solid #0000;border-radius:4px;width:24px;height:24px;padding:0;transition:border-color .1s}.colour-picker-swatch:hover{border-color:var(--vscode-focusBorder)}.colour-picker-swatch.selected{border-color:var(--vscode-focusBorder);box-shadow:0 0 0 1px var(--vscode-focusBorder)}.colour-picker-custom{border-top:1px solid var(--vscode-panel-border);align-items:center;gap:6px;margin-top:8px;padding-top:8px;display:flex}.colour-picker-custom label{color:var(--vscode-descriptionForeground);white-space:nowrap;font-size:11px}.colour-picker-custom input{border:1px solid var(--vscode-input-border);background:var(--vscode-input-background);min-width:0;color:var(--vscode-input-foreground);border-radius:3px;flex:1;padding:2px 6px;font-family:monospace;font-size:12px}.overlay-root{pointer-events:none;z-index:10000;position:fixed;inset:0}.overlay-root:empty{display:none}.editor-shared-actions{margin-bottom:14px;position:relative}.ai-suggestions-modal-backdrop,.insert-modal-backdrop,.language-picker-modal-backdrop,.confirm-delete-modal-backdrop,.confirm-dialog-overlay,.git-run-backdrop,.gallery-overlay,.lightbox-overlay{pointer-events:auto;background:#000000ad;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.ai-suggestions-modal,.insert-modal,.language-picker-modal,.confirm-delete-modal,.confirm-dialog,.git-run-modal,.gallery-overlay-content{z-index:1;background:#1e1e1e;border:1px solid #3c3c3c;border-radius:8px;position:relative;box-shadow:0 8px 32px #0006}.git-run-modal{flex-direction:column;width:min(760px,100vw - 32px);max-height:calc(100vh - 48px);display:flex;overflow:hidden}.git-run-header{border-bottom:1px solid #3c3c3c;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.git-run-title{font-size:14px;font-family:var(--font-mono,monospace);margin:0}.git-run-status{font-size:12px;font-weight:600}.git-run-status.running{color:#d7ba7d}.git-run-status.ok{color:#4ec9b0}.git-run-status.fail{color:#f48771}.git-run-output{white-space:pre-wrap;word-break:break-word;min-height:160px;max-height:60vh;font-family:var(--font-mono,monospace);background:#141414;flex:1;margin:0;padding:12px 16px;font-size:12px;line-height:1.5;overflow:auto}.git-run-stdout{color:#d4d4d4}.git-run-stderr{color:#f48771}.git-run-footer{border-top:1px solid #3c3c3c;justify-content:flex-end;padding:12px 16px;display:flex}.ai-suggestions-modal,.language-picker-modal,.confirm-delete-modal,.confirm-dialog{flex-direction:column;width:min(680px,100vw - 32px);max-height:calc(100vh - 48px);display:flex}.insert-modal{flex-direction:column;width:min(680px,100vw - 32px);max-height:calc(100vh - 48px);display:flex;overflow:hidden}.gallery-overlay-content{flex-direction:column;width:min(980px,100vw - 48px);max-height:calc(100vh - 48px);display:flex;overflow:hidden}.ai-suggestions-modal-header,.language-picker-modal-header,.confirm-delete-modal-header,.insert-modal-header,.gallery-overlay-header{border-bottom:1px solid #3c3c3c;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.insert-modal-header{flex-direction:column;align-items:stretch;gap:12px}.insert-modal-header.media-header-only{flex-direction:row;align-items:center}.ai-suggestions-modal-header h2,.language-picker-modal-header h2,.confirm-delete-modal-header h2,.gallery-overlay-header h2,.insert-modal-title,.confirm-dialog h3{color:#fff;margin:0}.ai-suggestions-modal-close,.confirm-delete-modal-close,.gallery-overlay-close,.shared-popover-close,.lightbox-close{color:#c5c5c5;cursor:pointer;background:0 0;border:none;font-size:20px;line-height:1}.ai-suggestions-modal-body,.language-picker-modal-body,.confirm-delete-modal-body{padding:20px;overflow:auto}.ai-suggestions-list{flex-direction:column;gap:16px;display:flex}.ai-suggestion-item{background:#252526;border:1px solid #3c3c3c;border-radius:6px;gap:12px;padding:16px;display:flex}.ai-suggestion-checkbox{cursor:pointer;align-items:flex-start;display:flex;position:relative}.ai-suggestion-checkbox input{opacity:0;position:absolute}.checkmark{background:#1e1e1e;border:2px solid #555;border-radius:4px;justify-content:center;align-items:center;width:20px;height:20px;display:inline-flex}.ai-suggestion-checkbox input:checked+.checkmark,.ai-suggestion-checkbox input:checked~.checkmark{background:#0078d4;border-color:#0078d4}.ai-suggestion-checkbox input:checked+.checkmark:after,.ai-suggestion-checkbox input:checked~.checkmark:after{content:"✓";color:#fff;font-size:12px}.ai-suggestion-content{flex:1;min-width:0}.ai-suggestion-label{align-items:center;gap:8px;margin-bottom:8px;font-weight:600;display:flex}.ai-suggestion-has-value,.language-picker-badge,.insert-modal-similarity-badge{color:#c5c5c5;background:#ffffff14;border-radius:999px;align-items:center;padding:2px 6px;font-size:11px;display:inline-flex}.ai-suggestion-comparison{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;display:grid}.ai-suggestion-column{background:#ffffff08;border-radius:6px;flex-direction:column;gap:4px;padding:10px 12px;display:flex}.ai-suggestion-column.muted{color:#9d9d9d}.ai-suggestion-column.highlighted{color:#fff;border:1px solid #007acc66}.ai-suggestion-column-label{text-transform:uppercase;letter-spacing:.04em;font-size:11px}.ai-suggestion-arrow{color:#9d9d9d}.ai-suggestion-value{min-height:1.4em}.ai-suggestion-value.loading{color:var(--accent-color);font-style:italic}.ai-suggestions-error{color:#ff6b6b;background:#dc32321f;border:1px solid #dc323259;border-radius:6px;flex-direction:column;gap:4px;margin-bottom:16px;padding:12px 16px;display:flex}.ai-suggestions-modal-footer,.confirm-delete-modal-footer{border-top:1px solid #3c3c3c;justify-content:flex-end;gap:10px;padding:16px 20px;display:flex}.language-picker-row,.shared-popover-entry,.colour-swatch{cursor:pointer}.insert-modal-tabs{margin:0 -20px;display:flex}.insert-modal-tab{color:#9d9d9d;background:0 0;border:none;border-bottom:2px solid #0000;flex:1;padding:10px 16px}.insert-modal-tab.active{color:#fff;background:#252526;border-bottom-color:#0e639c}.insert-modal-search{border-bottom:1px solid #3c3c3c}.insert-modal-input,.shared-popover-input{color:#f0f0f0;width:100%;font:inherit;background:0 0;border:none;padding:14px 20px}.alert-modal-error{border-top:3px solid #ff6b6b}.menu-editor-header h2{margin:0}.menu-editor-header p{color:var(--vscode-descriptionForeground);margin:.25rem 0 0}.menu-editor-tree-wrap{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:6px;min-height:0;padding:.5rem}.menu-editor-toolbar{border-bottom:1px solid var(--vscode-panel-border);margin-bottom:.5rem;padding-bottom:.4rem}.menu-editor-tool{width:1.8rem;height:1.8rem;color:var(--vscode-foreground);cursor:pointer;background:0 0;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;padding:0;display:inline-flex}.menu-editor-tool:hover:not(:disabled){background:var(--vscode-toolbar-hoverBackground);border-color:var(--vscode-panel-border)}.menu-editor-tool:disabled{opacity:.45;cursor:not-allowed}.menu-editor-tree-shell{flex:1;min-height:0;overflow:auto}.menu-editor-tree-level{margin:0;padding:0;list-style:none}.menu-editor-tree-item{margin:0;padding:0}.menu-editor-row{--menu-editor-indent:calc(var(--menu-editor-depth)*1rem);padding:.3rem .45rem .3rem calc(.4rem + var(--menu-editor-indent));cursor:pointer;border-radius:4px;align-items:flex-start;gap:.5rem;display:flex;position:relative}.menu-editor-row.is-selected{background:var(--vscode-list-activeSelectionBackground);color:var(--vscode-list-activeSelectionForeground)}.menu-editor-row.is-dragging{opacity:.45}.menu-editor-row.is-drop-before:before,.menu-editor-row.is-drop-after:after{content:"";left:calc(.4rem + var(--menu-editor-indent));background:var(--vscode-focusBorder);height:2px;position:absolute;right:.45rem}.menu-editor-row.is-drop-before:before{top:0}.menu-editor-row.is-drop-after:after{bottom:0}.menu-editor-row.is-drop-inside{box-shadow:inset 0 0 0 1px var(--vscode-focusBorder);background:var(--vscode-list-hoverBackground)}.menu-editor-row-handle{width:1rem;min-width:1rem;color:var(--vscode-descriptionForeground);cursor:grab;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;display:inline-flex}.menu-editor-row-handle:active{cursor:grabbing}.menu-editor-row-kind{opacity:.9;justify-content:center;align-items:center;width:1rem;min-width:1rem;display:inline-flex}.menu-editor-row-title{white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.menu-editor-row-title.is-editing{white-space:normal;text-overflow:clip;overflow:visible}.menu-editor-entry-form{display:block}.menu-editor-inline-input{border:1px solid var(--vscode-focusBorder);background:var(--vscode-input-background);width:100%;color:var(--vscode-input-foreground);border-radius:4px;min-height:1.8rem;padding:.25rem .45rem}.menu-editor-inline-search{border-top:1px solid var(--vscode-panel-border);flex-direction:column;gap:.4rem;max-height:18rem;margin-top:.5rem;padding-top:.5rem;display:flex;overflow:hidden}.menu-editor-inline-search-head{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.menu-editor-inline-search-head strong{font-size:.8rem;display:block}.menu-editor-inline-search-head span{color:var(--vscode-descriptionForeground);font-size:.75rem}.menu-editor-inline-actions{align-items:center;gap:.5rem;display:inline-flex}.menu-editor-inline-action{border:1px solid var(--vscode-button-border,transparent);background:var(--vscode-button-secondaryBackground);color:var(--vscode-button-secondaryForeground);cursor:pointer;border-radius:4px;padding:.2rem .5rem}.menu-editor-inline-action:hover{background:var(--vscode-button-secondaryHoverBackground)}.menu-editor-picker-list{flex-direction:column;gap:.35rem;max-height:16rem;display:flex;overflow-y:auto}.menu-editor-picker-item{border:1px solid var(--vscode-panel-border);background:var(--vscode-input-background);width:100%;color:var(--vscode-input-foreground);text-align:left;cursor:pointer;border-radius:4px;justify-content:space-between;align-items:center;padding:.45rem .55rem;display:flex}.menu-editor-picker-item:hover{border-color:var(--vscode-focusBorder);background:var(--vscode-list-hoverBackground)}.menu-editor-picker-item small,.menu-editor-picker-state{color:var(--vscode-descriptionForeground)}.menu-editor-empty{color:var(--vscode-descriptionForeground);padding:.5rem .25rem}@media (max-width:720px){.menu-editor-inline-search-head{flex-direction:column;align-items:flex-start}.menu-editor-inline-actions{flex-wrap:wrap;justify-content:flex-start;width:100%}}[data-testid=media-editor] .editor-tab-dirty{color:var(--vscode-notificationsWarningIcon-foreground,var(--vscode-editorWarning-foreground));font-size:10px}[data-testid=media-editor] .ui-editor-actions button{padding:4px 10px;font-size:12px}[data-testid=media-editor] .ui-editor-actions button.danger:hover{background-color:var(--vscode-notificationsErrorIcon-foreground)}[data-testid=media-editor] .auto-save-indicator{color:var(--vscode-descriptionForeground);font-size:11px;font-style:italic}[data-testid=media-editor] .quick-actions-wrapper{position:relative}[data-testid=media-editor] .quick-actions-btn{align-items:center;gap:6px;display:inline-flex}[data-testid=media-editor] .quick-actions-btn-icon{font-size:12px;line-height:1}[data-testid=media-editor] .quick-actions-divider{background:var(--vscode-dropdown-border,#454545);height:1px}[data-testid=media-editor] .quick-action-icon{flex-shrink:0;margin-top:2px;font-size:16px}[data-testid=media-editor] .quick-action-text strong{font-size:13px;font-weight:500}[data-testid=media-editor] .quick-action-text small{opacity:.7;font-size:11px}[data-testid=media-editor]>.editor-content.media-editor{flex-direction:row;align-items:stretch;gap:24px}[data-testid=media-editor] .editor-field label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.5px;font-size:11px;font-weight:500}[data-testid=media-editor] .post-editor-input.disabled,[data-testid=media-editor] .post-editor-input:disabled{opacity:.6;cursor:not-allowed}[data-testid=media-editor] .media-preview{background-color:var(--vscode-input-background);border-radius:8px;flex:1;justify-content:center;align-items:center;min-height:300px;display:flex;overflow:hidden}[data-testid=media-editor] .media-preview-placeholder{color:var(--vscode-descriptionForeground);flex-direction:column;align-items:center;gap:12px;display:flex}[data-testid=media-editor] .media-preview-image{box-sizing:border-box;justify-content:center;align-self:stretch;align-items:center;width:100%;height:100%;min-height:0;padding:16px;display:flex}[data-testid=media-editor] .media-preview-image img{object-fit:contain;border-radius:4px;max-width:100%;max-height:100%}[data-testid=media-editor] .media-details{flex-shrink:0;gap:12px;width:320px}[data-testid=media-editor] .media-details textarea{resize:vertical}[data-testid=media-editor] .linked-posts-section label{justify-content:space-between;align-items:center;display:flex}[data-testid=media-editor] .post-picker{background:var(--vscode-dropdown-background);border:1px solid var(--vscode-dropdown-border);border-radius:4px;max-height:250px;margin-top:8px;overflow-y:auto}[data-testid=media-editor] .post-picker-search{border-bottom:1px solid var(--vscode-dropdown-border);background:var(--vscode-dropdown-background);padding:8px;position:sticky;top:0}[data-testid=media-editor] .post-picker-search input{background:var(--vscode-input-background);border:1px solid var(--vscode-input-border);width:100%;color:var(--vscode-input-foreground);border-radius:3px;padding:6px 10px;font-size:12px}[data-testid=media-editor] .post-picker-search input:focus{border-color:var(--vscode-focusBorder);outline:none}[data-testid=media-editor] .post-picker-list{padding:4px}[data-testid=media-editor] .post-picker-item{cursor:pointer;width:100%;color:inherit;text-align:left;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:none;border-radius:3px;padding:6px 8px;font-size:12px;overflow:hidden}[data-testid=media-editor] .post-picker-item:hover{background:var(--vscode-list-hoverBackground)}[data-testid=media-editor] .post-picker-more{color:var(--vscode-descriptionForeground);padding:6px 8px;font-size:11px;font-style:italic}[data-testid=media-editor] .no-posts,[data-testid=media-editor] .no-linked-posts{color:var(--vscode-descriptionForeground);padding:12px 8px;font-size:12px;font-style:italic}[data-testid=media-editor] .linked-posts-list{flex-direction:column;gap:4px;margin-top:8px;display:flex}[data-testid=media-editor] .linked-post-item{background:var(--vscode-sideBar-background);border-radius:4px;justify-content:space-between;align-items:center;padding:6px 8px;display:flex}[data-testid=media-editor] .linked-post-title,[data-testid=media-editor] .linked-post-link{min-width:0;color:inherit;text-align:left;cursor:pointer;white-space:nowrap;text-overflow:ellipsis;background:0 0;border:none;flex:1;padding:0;font-size:12px;overflow:hidden}[data-testid=media-editor] .linked-post-title:hover,[data-testid=media-editor] .linked-post-link:hover{color:var(--vscode-textLink-foreground);text-decoration:underline}[data-testid=media-editor] .linked-post-item .unlink-btn{color:var(--vscode-descriptionForeground);cursor:pointer;opacity:0;background:0 0;border:none;padding:0 4px;font-size:14px;transition:opacity .1s}[data-testid=media-editor] .linked-post-item:hover .unlink-btn{opacity:1}[data-testid=media-editor] .linked-post-item .unlink-btn:hover{color:var(--vscode-errorForeground)}.translation-modal-backdrop{pointer-events:auto;z-index:10001;background:#000000ad;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.translation-modal{background:#1e1e1e;border:1px solid #3c3c3c;border-radius:8px;width:min(640px,100vw - 32px);box-shadow:0 8px 32px #0006}.translation-modal-header,.translation-modal-footer{justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.translation-modal-header{border-bottom:1px solid #3c3c3c}.translation-modal-footer{border-top:1px solid #3c3c3c;justify-content:flex-end;gap:10px}.translation-modal-body{flex-direction:column;gap:14px;padding:20px;display:flex}.translation-modal-close{color:#c5c5c5;cursor:pointer;background:0 0;border:none;font-size:20px;line-height:1}.import-analysis{color:var(--vscode-foreground);flex-direction:column;gap:16px;padding:18px 20px 26px;display:flex}.import-analysis-header{flex-direction:column;gap:8px;display:flex}.import-analysis-header p{color:var(--vscode-descriptionForeground);margin:0;font-size:13px;line-height:1.5}.import-definition-name{border:1px solid var(--vscode-input-border,transparent);background:var(--vscode-input-background);width:min(480px,100%);color:var(--vscode-input-foreground,var(--vscode-foreground));border-radius:6px;padding:10px 12px;font-size:18px;font-weight:600}.import-file-selectors{gap:12px;display:grid}.import-file-row{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px;grid-template-columns:150px minmax(0,1fr) auto;align-items:center;gap:12px;padding:12px 14px;display:grid}@supports (color:color-mix(in lab, red, red)){.import-file-row{background:color-mix(in srgb,var(--vscode-editor-background)76%,var(--vscode-input-background))}}.import-file-row label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.04em;font-size:12px;font-weight:600}.import-file-path{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-family:var(--vscode-editor-font-family,ui-monospace,monospace);font-size:12px;overflow:hidden}.import-file-path.placeholder{color:var(--vscode-descriptionForeground)}.import-analysis select{border:1px solid var(--vscode-button-border,transparent);border-radius:6px;font-size:12px}.import-analysis button:disabled{opacity:.65;cursor:not-allowed}.import-loading{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:10px;align-items:center;gap:12px;padding:16px;display:flex}@supports (color:color-mix(in lab, red, red)){.import-loading{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.import-spinner{border:2px solid var(--vscode-descriptionForeground);border-top-color:var(--vscode-button-background,#0e639c);border-radius:50%;flex-shrink:0;width:18px;height:18px;animation:.8s linear infinite import-spinner-rotate}.import-progress{flex-direction:column;gap:2px;display:flex}.import-progress-step{color:var(--vscode-foreground);font-size:13px}.import-progress-detail{color:var(--vscode-descriptionForeground);font-size:11px}@keyframes import-spinner-rotate{to{transform:rotate(360deg)}}.import-site-info{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.import-site-info-item,.import-stat-card,.import-date-distribution,.import-detail-section,.import-execute-section{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:10px}@supports (color:color-mix(in lab, red, red)){.import-site-info-item,.import-stat-card,.import-date-distribution,.import-detail-section,.import-execute-section{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.import-site-info-item{flex-direction:column;gap:6px;padding:14px;display:flex}.info-label{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.05em;font-size:11px;font-weight:600}.info-value{overflow-wrap:anywhere;font-size:13px;font-weight:500}.import-stat-cards{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.import-stat-card{padding:14px}.import-stat-card h3,.import-date-distribution h3,.import-detail-section h3,.taxonomy-group h4{margin:0}.import-stat-number{margin-top:10px;font-size:28px;font-weight:700;line-height:1}.import-stat-breakdown,.import-execute-summary,.import-taxonomy-list{flex-wrap:wrap;gap:8px;display:flex}.import-stat-breakdown{margin-top:12px}.import-stat-tag,.import-count-tag,.import-taxonomy-pill,.macro-status-badge{border-radius:999px;align-items:center;gap:4px;padding:4px 9px;font-size:11px;font-weight:600;display:inline-flex}.stat-new,.import-taxonomy-pill.new-tax{color:#75beff;background:#75beff29}.stat-update,.stat-mapped,.import-taxonomy-pill.exists,.import-taxonomy-pill.mapped,.macro-status-badge.mapped,.import-execution-complete{color:#73c991;background:#73c99129}.stat-conflict{color:#ffb169;background:#ffa65729}.stat-duplicate,.stat-missing,.macro-status-badge.unmapped,.import-execution-error{color:#cca700;background:#cca70029}.import-date-distribution,.import-detail-section,.import-execute-section{padding:16px}.import-section-toggle{text-align:left;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:0;font-weight:600;display:flex;color:inherit!important;background:0 0!important;border:none!important;font-size:16px!important}.import-section-toggle:hover{opacity:.9;background:0 0!important}.toggle-icon{color:var(--vscode-descriptionForeground);font-size:12px}.distribution-bars{gap:10px;margin-top:14px;display:grid}.distribution-row{grid-template-columns:56px minmax(0,1fr) 72px;align-items:center;gap:10px;display:grid}.distribution-year,.distribution-count,.slug-cell{font-family:var(--vscode-editor-font-family,ui-monospace,monospace);font-size:11px}.distribution-bar-container{background:var(--vscode-input-background);border-radius:999px;height:10px;overflow:hidden}.distribution-bar{border-radius:inherit;min-width:8px;height:100%}.distribution-bar-posts{background:linear-gradient(90deg,#75beffcc,#75beff59)}.import-execute-section{justify-content:space-between;align-items:center;gap:16px;display:flex}.import-execute-summary{color:var(--vscode-descriptionForeground)}.import-execution-complete,.import-execution-error{border-radius:8px;padding:10px 12px;font-size:12px;font-weight:600}.import-execution-progress{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:10px;gap:10px;padding:16px;display:grid}@supports (color:color-mix(in lab, red, red)){.import-execution-progress{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.import-execution-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.import-execution-header h3{margin:0;font-size:14px}.import-progress-bar{background:var(--vscode-input-background);border-radius:999px;height:10px;overflow:hidden}.import-progress-fill{background:linear-gradient(90deg,#75beffd9,#75beff73);height:100%}.import-progress-info{flex-wrap:wrap;align-items:center;gap:12px;font-size:12px;display:flex}.import-phase{font-weight:600}.import-detail,.import-counter{color:var(--vscode-descriptionForeground)}.import-detail-table{border-collapse:collapse;width:100%;margin-top:14px}.import-detail-table th,.import-detail-table td{text-align:left;border-bottom:1px solid var(--vscode-panel-border);vertical-align:middle;padding:10px 8px;font-size:12px}.import-detail-table th{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.04em;font-size:11px}.import-detail-table .status-badge{text-transform:uppercase;letter-spacing:.04em;border-radius:999px;align-items:center;padding:4px 9px;font-size:10px;font-weight:700;display:inline-flex}.import-detail-table .status-badge.new{color:#75beff;background:#75beff29}.import-detail-table .status-badge.update{color:#73c991;background:#73c99129}.import-detail-table .status-badge.conflict{color:#ffb169;background:#ffa65729}.import-detail-table .status-badge.duplicate,.import-detail-table .status-badge.missing{color:#cca700;background:#cca70029}.categories-cell,.existing-match,.mime-type-cell,.post-type-cell{color:var(--vscode-descriptionForeground);font-size:11px}.mime-type-cell,.post-type-cell,.existing-match,.slug-cell{font-family:var(--vscode-editor-font-family,ui-monospace,monospace)}.resolution-select,.taxonomy-mapping-input{background:var(--vscode-dropdown-background,var(--vscode-input-background));min-width:150px;color:var(--vscode-dropdown-foreground,var(--vscode-foreground));border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));padding:6px 8px}.taxonomy-analyze-row{border-bottom:1px solid var(--vscode-panel-border);align-items:center;gap:12px;margin-top:12px;padding:0 0 12px;display:flex}.taxonomy-analyze-dropdown{position:relative}.taxonomy-analyze-btn{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.taxonomy-model-dropdown{background:var(--vscode-dropdown-background,var(--vscode-sideBar-background));border:1px solid var(--vscode-dropdown-border,var(--vscode-panel-border));z-index:20;border-radius:6px;min-width:220px;max-height:280px;position:absolute;top:calc(100% + 6px);left:0;overflow-y:auto;box-shadow:0 10px 24px #0000003d}.taxonomy-model-option{text-align:left;width:100%;display:block;color:var(--vscode-foreground)!important;background:0 0!important;border:none!important;border-radius:0!important;padding:8px 12px!important}.taxonomy-model-option:hover{background:var(--vscode-list-hoverBackground)!important}.taxonomy-analyze-hint{color:var(--vscode-descriptionForeground);font-size:11px}.import-taxonomy-groups{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px;display:grid}.taxonomy-group{flex-direction:column;gap:12px;display:flex}.import-taxonomy-entry,.import-taxonomy-edit-form{flex-wrap:wrap;align-items:center;gap:8px;display:inline-flex}.import-taxonomy-pill{cursor:default;border:none}button.import-taxonomy-pill{cursor:pointer}.mapped-target{background:#73c9911a}.taxonomy-mapping-arrow{color:var(--vscode-descriptionForeground);font-size:12px}.taxonomy-mapping-input{border-radius:6px;min-width:170px}.taxonomy-edit-btn,.taxonomy-clear-btn{justify-content:center;align-items:center;min-width:28px;min-height:28px;display:inline-flex;padding:0 8px!important}.taxonomy-edit-btn.ghost,.taxonomy-clear-btn{border:1px solid var(--vscode-panel-border)!important;color:var(--vscode-descriptionForeground)!important;background:0 0!important}.macros-list{gap:10px;margin-top:14px;display:grid}.macro-item{border:1px solid var(--vscode-panel-border);background:var(--vscode-input-background);border-radius:8px}.macro-item.unmapped{border-left:3px solid #cca700}.macro-header{align-items:center;gap:10px;padding:12px 14px;display:flex}.macro-name,.import-taxonomy-pill{font-family:var(--vscode-editor-font-family,ui-monospace,monospace)}.macro-count{color:var(--vscode-descriptionForeground);margin-left:auto;font-size:11px}.import-empty-state{color:var(--vscode-descriptionForeground);border:1px dashed var(--vscode-panel-border);border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:56px 20px;display:flex}.import-empty-state p{margin:0;font-size:13px}@media (max-width:1100px){.import-site-info,.import-stat-cards,.import-taxonomy-groups{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:780px){.import-analysis{padding:14px}.import-file-row,.distribution-row,.import-execute-section,.import-site-info,.import-stat-cards,.import-taxonomy-groups{grid-template-columns:1fr}.import-execute-section,.import-file-row{align-items:stretch}.import-analysis button,.resolution-select,.taxonomy-mapping-input{width:100%}.taxonomy-analyze-row{flex-direction:column;align-items:stretch}.import-taxonomy-entry,.import-taxonomy-edit-form{flex-direction:column;align-items:stretch;width:100%}}.misc-editor-shell{background:var(--vscode-editor-background)}.misc-editor-header{border-bottom:1px solid var(--vscode-panel-border);background:var(--vscode-tab-activeBackground);padding:12px 16px 8px}.misc-editor-header h2{margin:0;font-size:15px;font-weight:600}.misc-editor-header p{color:var(--vscode-descriptionForeground);margin:2px 0 0;font-size:12px}.misc-editor-actions{flex-shrink:0}.misc-editor-summary{border-bottom:1px solid var(--vscode-panel-border);padding:8px 16px}.misc-editor-content{padding:16px}.misc-summary-pill{background:var(--vscode-input-background);border:1px solid var(--vscode-panel-border);color:var(--vscode-foreground);border-radius:999px;align-items:center;gap:6px;padding:3px 10px;font-size:12px;display:inline-flex}.misc-summary-pill span{color:var(--vscode-descriptionForeground)}.misc-summary-pill strong{font-weight:600}.misc-card{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px;padding:14px 16px}@supports (color:color-mix(in lab, red, red)){.misc-card{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.misc-card h3{margin:0 0 8px;font-size:13px;font-weight:600}.misc-card p{color:var(--vscode-descriptionForeground);margin:0;font-size:12px}.misc-card ul{margin:6px 0 0;padding-left:18px;font-size:12px;line-height:1.6}.misc-columns{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;display:grid}.misc-list{flex-direction:column;gap:2px;display:flex}.misc-list-item{border-radius:4px;align-items:center;gap:10px;padding:8px 12px;display:flex}.misc-list-item:hover{background:var(--vscode-list-hoverBackground)}.duplicate-pair-row label{cursor:pointer;flex-shrink:0;align-items:center;gap:6px;display:flex}.duplicate-pair-row .linkish{color:var(--vscode-textLink-foreground,#3794ff);cursor:pointer;font:inherit;text-underline-offset:.14em;background:0 0;border:none;padding:0;text-decoration:underline;text-decoration-thickness:1px}.duplicate-pair-row .linkish:hover{color:var(--vscode-foreground)}.metadata-diff-tool{flex-direction:column;gap:12px;display:flex}.metadata-diff-tabs{border-bottom:1px solid var(--vscode-panel-border);gap:2px;display:flex}.metadata-diff-tab{color:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground));font:inherit;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:6px;padding:7px 14px;font-size:12px;transition:color .12s,border-color .12s;display:inline-flex}.metadata-diff-tab:hover{color:var(--vscode-tab-activeForeground,var(--vscode-foreground))}.metadata-diff-tab.active{color:var(--vscode-tab-activeForeground,var(--vscode-foreground));border-bottom-color:var(--vscode-focusBorder,#007fd4)}.tab-badge{background:var(--vscode-activityBarBadge-background,#007acc);min-width:18px;height:18px;color:var(--vscode-activityBarBadge-foreground,#fff);border-radius:999px;justify-content:center;align-items:center;padding:0 5px;font-size:11px;font-weight:600;display:inline-flex}.metadata-diff-field-pills{flex-wrap:wrap;gap:6px;display:flex}.metadata-diff-field-pill{border:1px solid var(--vscode-panel-border);background:var(--vscode-input-background);border-radius:6px;align-items:stretch;transition:border-color .12s;display:flex;overflow:hidden}.metadata-diff-field-pill.active{border-color:var(--vscode-focusBorder,#007fd4);background:var(--vscode-focusBorder,#007fd4)}@supports (color:color-mix(in lab, red, red)){.metadata-diff-field-pill.active{background:color-mix(in srgb,var(--vscode-focusBorder,#007fd4)12%,transparent)}}.metadata-diff-field-pill-toggle{color:var(--vscode-foreground);font:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:6px;padding:4px 10px;font-size:12px;display:inline-flex}.metadata-diff-field-pill-toggle:hover{background:var(--vscode-list-hoverBackground)}.field-pill-label{font-weight:500}.field-pill-count{color:var(--vscode-descriptionForeground);font-size:11px;font-weight:600}.metadata-diff-field-pill-actions{border-left:1px solid var(--vscode-panel-border);align-items:center;gap:2px;padding:2px 4px;display:flex}.metadata-diff-action-button{min-height:22px!important;padding:2px 8px!important;font-size:11px!important}.metadata-diff-results{flex-direction:column;gap:12px;display:flex}.metadata-diff-empty p{text-align:center;padding:20px 0}.diff-item-list{flex-direction:column;gap:8px;display:flex}.diff-item-card{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:8px}@supports (color:color-mix(in lab, red, red)){.diff-item-card{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.diff-item-card{overflow:hidden}.diff-item-card.orphan-file{border-left:3px solid var(--vscode-editorWarning-foreground,#cca700)}.diff-item-header{background:var(--vscode-sideBar-background);justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 14px;display:flex}@supports (color:color-mix(in lab, red, red)){.diff-item-header{background:color-mix(in srgb,var(--vscode-sideBar-background)50%,transparent)}}.diff-item-header{border-bottom:1px solid var(--vscode-panel-border)}.diff-item-header strong{color:var(--vscode-foreground);font-size:13px;font-weight:600}.diff-item-meta{color:var(--vscode-descriptionForeground);margin-top:2px;font-size:11px}.diff-item-fields{padding:8px 14px}.diff-field-row{border-bottom:1px solid var(--vscode-panel-border);grid-template-columns:120px 1fr;gap:8px;padding:5px 0;display:grid}@supports (color:color-mix(in lab, red, red)){.diff-field-row{border-bottom:1px solid color-mix(in srgb,var(--vscode-panel-border)50%,transparent)}}.diff-field-row:last-child{border-bottom:none}.diff-field-name{color:var(--vscode-descriptionForeground);text-transform:uppercase;letter-spacing:.04em;padding-top:3px;font-size:11px;font-weight:600}.diff-field-values{flex-direction:column;gap:3px;display:flex}.diff-field-value{word-break:break-word;align-items:baseline;gap:8px;font-size:12px;line-height:1.4;display:flex}.diff-field-value.db-value{color:var(--vscode-foreground)}.diff-field-value.file-value{color:var(--vscode-foreground);opacity:.82}.diff-source-label{text-transform:uppercase;letter-spacing:.04em;border-radius:3px;flex-shrink:0;min-width:28px;padding:1px 5px;font-size:10px;font-weight:700}.db-value .diff-source-label{background:var(--vscode-focusBorder,#007fd4)}@supports (color:color-mix(in lab, red, red)){.db-value .diff-source-label{background:color-mix(in srgb,var(--vscode-focusBorder,#007fd4)22%,transparent)}}.db-value .diff-source-label{color:var(--vscode-focusBorder,#007fd4)}.file-value .diff-source-label{background:var(--vscode-testing-iconPassed,#73c991)}@supports (color:color-mix(in lab, red, red)){.file-value .diff-source-label{background:color-mix(in srgb,var(--vscode-testing-iconPassed,#73c991)22%,transparent)}}.file-value .diff-source-label{color:var(--vscode-testing-iconPassed,#73c991)}.orphan-files-section{border:1px solid var(--vscode-editorWarning-foreground,#cca700)}@supports (color:color-mix(in lab, red, red)){.orphan-files-section{border:1px solid color-mix(in srgb,var(--vscode-editorWarning-foreground,#cca700)35%,transparent)}}.orphan-files-section{background:var(--vscode-editorWarning-foreground,#cca700);border-radius:8px;padding:14px 16px}@supports (color:color-mix(in lab, red, red)){.orphan-files-section{background:color-mix(in srgb,var(--vscode-editorWarning-foreground,#cca700)5%,var(--vscode-editor-background))}}.orphan-files-header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.orphan-files-header h3{margin:0;font-size:13px;font-weight:600}.orphan-files-actions{align-items:center;gap:8px;display:flex}.orphan-path span{color:var(--vscode-descriptionForeground);font-family:SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px}.translation-validation-view{flex-direction:column;gap:16px;display:flex}.translation-validation-summary{background:var(--vscode-input-background);border:1px solid var(--vscode-panel-border);color:var(--vscode-descriptionForeground);border-radius:6px;padding:10px 14px;font-size:12px}.translation-validation-summary p{margin:0}.translation-validation-section h3{margin:0 0 8px;font-size:13px;font-weight:600}.translation-validation-empty{color:var(--vscode-descriptionForeground);font-size:12px}.translation-validation-list{flex-direction:column;gap:8px;display:flex}.translation-validation-card{border:1px solid var(--vscode-panel-border);background:var(--vscode-editor-background);border-radius:6px;padding:10px 14px}@supports (color:color-mix(in lab, red, red)){.translation-validation-card{background:color-mix(in srgb,var(--vscode-editor-background)84%,var(--vscode-input-background))}}.translation-validation-card-db{border-left:3px solid var(--vscode-focusBorder,#007fd4)}.translation-validation-card-file{border-left:3px solid var(--vscode-testing-iconPassed,#73c991)}.translation-validation-card-title{margin:0 0 6px;font-size:13px;font-weight:600}.translation-validation-card-meta{grid-template-columns:auto 1fr;gap:3px 12px;margin:0;font-size:12px;display:grid}.translation-validation-card-meta dt{color:var(--vscode-descriptionForeground);font-weight:500}.translation-validation-card-meta dd{margin:0}.translation-validation-actions{border-top:1px solid var(--vscode-panel-border);gap:8px;padding-top:8px;display:flex}.git-diff-view{flex-direction:column;gap:12px;height:100%;min-height:0;display:flex}.git-diff-empty{color:var(--vscode-descriptionForeground);text-align:center;padding:24px 0}.git-diff-toolbar{flex-shrink:0;align-items:center;gap:10px;display:flex}.git-diff-toolbar label{color:var(--vscode-descriptionForeground);flex-shrink:0;font-size:12px;font-weight:500}.git-diff-toolbar select{flex:1;min-width:0}.git-diff-editor{border:1px solid var(--vscode-panel-border);border-radius:4px;flex:1;min-height:0;overflow:hidden}.monaco-diff-editor-instance{width:100%;height:100%}@media (min-width:768px){.ui-field-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-field-grid-3{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1} \ No newline at end of file diff --git a/priv/static/assets/app.js b/priv/static/assets/app.js index d0ba49c..83214a0 100644 --- a/priv/static/assets/app.js +++ b/priv/static/assets/app.js @@ -1,28 +1,28 @@ -(()=>{var an=Object.create;var Ti=Object.defineProperty;var ln=Object.getOwnPropertyDescriptor;var hn=Object.getOwnPropertyNames;var cn=Object.getPrototypeOf,dn=Object.prototype.hasOwnProperty;var un=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,i)=>(typeof require<"u"?require:t)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var fn=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of hn(t))!dn.call(e,n)&&n!==i&&Ti(e,n,{get:()=>t[n],enumerable:!(s=ln(t,n))||s.enumerable});return e};var pn=(e,t,i)=>(i=e!=null?an(cn(e)):{},fn(t||!e||!e.__esModule?Ti(i,"default",{value:e,enumerable:!0}):i,e));var Be=e=>typeof e=="function"?e:function(){return e},mn=typeof self<"u"?self:null,Re=typeof window<"u"?window:null,G=mn||Re||globalThis,gn="2.0.0",Y={connecting:0,open:1,closing:2,closed:3},vn=100,bn=1e4,yn=1e3,V={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},re={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Mt={longpoll:"longpoll",websocket:"websocket"},wn={complete:4},Ht="base64url.bearer.phx.",rt=class{constructor(e,t,i,s){this.channel=e,this.event=t,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:i}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},Ci=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},En=class{constructor(e,t,i){this.state=V.closed,this.topic=e,this.params=Be(t||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new rt(this,re.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Ci(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=V.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=V.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=V.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=V.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new rt(this,re.leave,Be({}),this.timeout).send(),this.state=V.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(re.reply,(s,n)=>{this.trigger(this.replyEventName(n),s)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(e){this.on(re.close,e)}onError(e){return this.on(re.error,t=>e(t))}on(e,t){let i=this.bindingRef++;return this.bindings.push({event:e,ref:i,callback:t}),i}off(e,t){this.bindings=this.bindings.filter(i=>!(i.event===e&&(typeof t>"u"||t===i.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,i=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new rt(this,e,function(){return t},i);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=V.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(re.close,"leave")},i=new rt(this,re.leave,Be({}),e);return i.receive("ok",()=>t()).receive("timeout",()=>t()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(e,t,i){return t}isMember(e,t,i,s){return this.topic!==e?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:i,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=V.joining,this.joinPush.resend(e))}trigger(e,t,i,s){let n=this.onMessage(e,t,i,s);if(t&&!n)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let r=this.bindings.filter(o=>o.event===e);for(let o=0;ol.abort(),n);a.signal=l.signal}return G.fetch(t,a).then(h=>h.text()).then(h=>this.parseJSON(h)).then(h=>o&&o(h)).catch(h=>{h.name==="AbortError"&&r?r():o&&o(null)}),l}static xdomainRequest(e,t,i,s,n,r,o){return e.timeout=n,e.open(t,i),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},r&&(e.ontimeout=r),e.onprogress=()=>{},e.send(s),e}static xhrRequest(e,t,i,s,n,r,o,a){e.open(t,i,!0),e.timeout=r;for(let[l,h]of Object.entries(s))e.setRequestHeader(l,h);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===wn.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(n),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let i=[];for(var s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let n=t?`${t}[${s}]`:s,r=e[s];typeof r=="object"?i.push(this.serialize(r,n)):i.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}return i.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let i=e.match(/\?/)?"&":"?";return`${e}${i}${this.serialize(t)}`}},Sn=e=>{let t="",i=new Uint8Array(e),s=i.byteLength;for(let n=0;nthis.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Mt.websocket),"$1/"+Mt.longpoll)}endpointURL(){return at.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,i){this.close(e,t,i),this.readyState=Y.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Y.open||this.readyState===Y.connecting}poll(){let e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:i,token:s,messages:n}=t;if(i===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else i=0;switch(i){case 200:n.forEach(r=>{setTimeout(()=>this.onmessage({data:r}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Y.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${i}`)}})}send(e){typeof e!="string"&&(e=Sn(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e,t=0){this.awaitingBatchAck=!0;let i=t+vn,s=e.slice(t,i);this.ajax("POST",{"Content-Type":"application/x-ndjson"},s.join(` -`),()=>this.onerror("timeout"),n=>{!n||n.status!==200?(this.awaitingBatchAck=!1,this.onerror(n&&n.status),this.closeAndRetry(1011,"internal server error",!1)):i0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1})}close(e,t,i){for(let n of this.reqs)n.abort();this.readyState=Y.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:i});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(e,t,i,s,n){let r,o=()=>{this.reqs.delete(r),s()};r=at.request(e,this.endpointURL(),t,i,this.timeout,o,a=>{this.reqs.delete(r),this.isActive()&&n(a)}),this.reqs.add(r)}};var ot={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let i=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(i))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[i,s,n,r,o]=JSON.parse(e);return t({join_ref:i,ref:s,topic:n,event:r,payload:o})}},binaryEncode(e){let{join_ref:t,ref:i,event:s,topic:n,payload:r}=e,o=new TextEncoder,a=o.encode(t),l=o.encode(i),h=o.encode(n),d=o.encode(s);this.assertFieldSize(a.byteLength,"join_ref"),this.assertFieldSize(l.byteLength,"ref"),this.assertFieldSize(h.byteLength,"topic"),this.assertFieldSize(d.byteLength,"event");let p=this.META_LENGTH+a.byteLength+l.byteLength+h.byteLength+d.byteLength,m=new ArrayBuffer(this.HEADER_LENGTH+p),g=new Uint8Array(m),u=new DataView(m),v=0;u.setUint8(v++,this.KINDS.push),u.setUint8(v++,a.byteLength),u.setUint8(v++,l.byteLength),u.setUint8(v++,h.byteLength),u.setUint8(v++,d.byteLength),g.set(a,v),v+=a.byteLength,g.set(l,v),v+=l.byteLength,g.set(h,v),v+=h.byteLength,g.set(d,v),v+=d.byteLength;var y=new Uint8Array(m.byteLength+r.byteLength);return y.set(g,0),y.set(new Uint8Array(r),m.byteLength),y.buffer},assertFieldSize(e,t){if(e>255)throw new Error(`unable to convert ${t} to binary: must be less than or equal to 255 bytes, but is ${e} bytes`)},binaryDecode(e){let t=new DataView(e),i=t.getUint8(0),s=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(e,t,s);case this.KINDS.reply:return this.decodeReply(e,t,s);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,s)}},decodePush(e,t,i){let s=t.getUint8(1),n=t.getUint8(2),r=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=i.decode(e.slice(o,o+s));o=o+s;let l=i.decode(e.slice(o,o+n));o=o+n;let h=i.decode(e.slice(o,o+r));o=o+r;let d=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:h,payload:d}},decodeReply(e,t,i){let s=t.getUint8(1),n=t.getUint8(2),r=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=i.decode(e.slice(a,a+s));a=a+s;let h=i.decode(e.slice(a,a+n));a=a+n;let d=i.decode(e.slice(a,a+r));a=a+r;let p=i.decode(e.slice(a,a+o));a=a+o;let m=e.slice(a,e.byteLength),g={status:p,response:m};return{join_ref:l,ref:h,topic:d,event:re.reply,payload:g}},decodeBroadcast(e,t,i){let s=t.getUint8(1),n=t.getUint8(2),r=this.HEADER_LENGTH+2,o=i.decode(e.slice(r,r+s));r=r+s;let a=i.decode(e.slice(r,r+n));r=r+n;let l=e.slice(r,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},_i=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||bn,this.transport=t.transport||G.WebSocket||Pe,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||G&&G.sessionStorage,this.establishedConnections=0,this.defaultEncoder=ot.encode.bind(ot),this.defaultDecoder=ot.decode.bind(ot),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.transport!==Pe?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let i=null;Re&&Re.addEventListener&&(Re.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),i=this.connectClock)}),Re.addEventListener("pageshow",s=>{i===this.connectClock&&(i=null,this.connect())}),Re.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,n,r)=>{console.log(`${s}: ${n}`,r)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Be(t.params||{}),this.endPoint=`${e}/${Mt.websocket}`,this.vsn=t.vsn||gn,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Ci(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(()=>this.connect())},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Pe}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=at.appendParams(at.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,i){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,i)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Be(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Pe?this.connectWithFallback(Pe,this.longPollFallbackMs):this.transportConnect())}log(e,t,i){this.logger&&this.logger(e,t,i)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let s=this.onMessage(n=>{n.ref===t&&(this.off([s]),e(Date.now()-i))});return!0}transportName(e){switch(e){case Pe:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Ht}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let i=!1,s=!0,n,r,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([n,r]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),r=this.onError(l=>{this.log("transport","error",l),s&&!i&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(i=!0,!s){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transportName(this.transport)} connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,e])=>e())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),yn,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,i){if(!this.conn)return e&&e();let s=this.conn;this.waitForBufferDone(s,()=>{t?s.close(t,i||""):s.close(),this.waitForSocketClosed(s,()=>{this.conn===s&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,i=1){if(i===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,i+1)},150*i)}waitForSocketClosed(e,t,i=1){if(i===5||e.readyState===Y.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,i+1)},150*i)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{});let t=e&&e.code;this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&t!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,i])=>i(e))}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,i=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,s])=>{s(e,t,i)}),(t===this.transport||i>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(re.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Y.connecting:return"connecting";case Y.open:return"open";case Y.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([i])=>e.indexOf(i)===-1)}channel(e,t={}){let i=new En(e,t,this);return this.channels.push(i),i}push(e){if(this.hasLogger()){let{topic:t,event:i,payload:s,ref:n,join_ref:r}=e;this.log("push",`${t} ${i} (${r}, ${n})`,s)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:i,event:s,payload:n,ref:r,join_ref:o}=t;r&&r===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${n.status||""} ${i} ${s} ${r&&"("+r+")"||""}`,n);for(let a=0;ai.topic===e&&(i.isJoined()||i.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};var ts="consecutive-reloads",An=10,kn=5e3,Tn=1e4,Cn=3e4,is=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading","phx-hook-loading"],Nt="phx-drop-target-active",ee="data-phx-component",He="data-phx-view",$t="data-phx-link",_n="track-static",xn="data-phx-link-state",Ne="data-phx-ref-loading",J="data-phx-ref-src",M="data-phx-ref-lock",xi="phx-pending-refs",ss="track-uploads",le="data-phx-upload-ref",Zt="data-phx-preflighted-refs",Pn="data-phx-done-refs",lt="drop-target",Wt="data-phx-active-refs",mt="phx:live-file:updated",ns="data-phx-skip",rs="data-phx-id",Pi="data-phx-prune",Ri="phx-connected",be="phx-loading",Le="phx-error",Li="phx-client-error",Ve="phx-server-error",Ae="data-phx-parent-id",Qt="data-phx-main",ae="data-phx-root-id",qt="viewport-top",Kt="viewport-bottom",Rn="viewport-overrun-target",Ln="trigger-action",yt="phx-has-focused",In=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],os=["checkbox","radio"],Ye="phx-has-submitted",te="data-phx-session",Ze=`[${te}]`,Jt="data-phx-sticky",Se="data-phx-static",zt="data-phx-readonly",Oe="data-phx-disabled",Ii="disable-with",wt="data-phx-disable-with-restore",We="hook",Dn="debounce",On="throttle",Et="update",gt="stream",qe="data-phx-stream",ei="data-phx-portal",ke="data-phx-teleported",me="data-phx-teleported-src",vt="data-phx-runtime-hook",Mn="data-phx-pid",Hn="key",Z="phxPrivate",Di="auto-recover",ht="phx:live-socket:debug",Ft="phx:live-socket:profiling",Ut="phx:live-socket:latency-sim",ct="phx:nav-history-position",Nn="progress",Oi="mounted",Mi="__phoenix_reload_status__",$n=1,Hi=3,Fn=200,Un=500,jn="phx-",Bn=3e4,Ke="debounce-trigger",Je="throttled",Ni="debounce-prev-key",Vn={debounce:300,throttle:300},$i=[Ne,J,M],K="s",jt="r",F="c",D="k",Q="kc",Fi="e",Ui="r",ji="t",fe="p",Ie="stream",Wn=class{constructor(e,t,i){let{chunk_size:s,chunk_timeout:n}=t;this.liveSocket=i,this.entry=e,this.offset=0,this.chunkSize=s,this.chunkTimeout=n,this.chunkTimer=null,this.errored=!1,this.uploadChannel=i.channel(`lvu:${e.ref}`,{token:e.metadata()})}error(e){this.errored||(this.uploadChannel.leave(),this.errored=!0,clearTimeout(this.chunkTimer),this.entry.error(e))}upload(){this.uploadChannel.onError(e=>this.error(e)),this.uploadChannel.join().receive("ok",e=>this.readNextChunk()).receive("error",e=>this.error(e))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let e=new window.FileReader,t=this.entry.file.slice(this.offset,this.chunkSize+this.offset);e.onload=i=>{if(i.target.error===null)this.offset+=i.target.result.byteLength,this.pushChunk(i.target.result);else return I("Read error: "+i.target.error)},e.readAsArrayBuffer(t)}pushChunk(e){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",e,this.chunkTimeout).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))}).receive("error",({reason:t})=>this.error(t))}},I=(e,t)=>console.error&&console.error(e,t),oe=e=>{let t=typeof e;return t==="number"||t==="string"&&/^(0|[1-9]\d*)$/.test(e)};function qn(){let e=new Set,t=document.querySelectorAll("*[id]");for(let i=0,s=t.length;i{let s=document.getElementById(i);s&&s.parentElement&&s.parentElement.getAttribute("phx-update")!=="stream"&&t.add(`The stream container with id "${s.parentElement.id}" is missing the phx-update="stream" attribute. Ensure it is set for streams to work properly.`)}),t.forEach(i=>console.error(i))}var Jn=(e,t,i,s)=>{e.liveSocket.isDebugEnabled()&&console.log(`${e.id} ${t}: ${i} - `,s)},ze=e=>typeof e=="function"?e:function(){return e},bt=e=>JSON.parse(JSON.stringify(e)),Ee=(e,t,i)=>{do{if(e.matches(`[${t}]`)&&!e.disabled)return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1&&!(i&&i.isSameNode(e)||e.matches(Ze)));return null},De=e=>e!==null&&typeof e=="object"&&!(e instanceof Array),zn=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Bi=e=>{for(let t in e)return!1;return!0},Me=(e,t)=>e&&t(e),Xn=function(e,t,i,s){e.forEach(n=>{new Wn(n,i.config,s).upload()})},Gn=e=>{if(e.dataTransfer.types){for(let t=0;t{let s=this.getHashTargetEl(window.location.hash);s?s.scrollIntoView():t.type==="redirect"&&window.scroll(0,0)})}}else this.redirect(i)},setCookie(e,t,i){let s=typeof i=="number"?` max-age=${i};`:"";document.cookie=`${e}=${t};${s} path=/`},getCookie(e){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${e}s*=s*([^;]*).*$)|^.*$`),"$1")},deleteCookie(e){document.cookie=`${e}=; max-age=-1; path=/`},redirect(e,t,i=s=>{window.location.href=s}){t&&this.setCookie("__phoenix_flash__",t,60),i(e)},localKey(e,t){return`${e}-${t}`},getHashTargetEl(e){let t=e.toString().substring(1);if(t!=="")return document.getElementById(t)||document.querySelector(`a[name="${t}"]`)}},B=Yn,we={byId(e){return document.getElementById(e)||I(`no id found for ${e}`)},removeClass(e,t){e.classList.remove(t),e.classList.length===0&&e.removeAttribute("class")},all(e,t,i){if(!e)return[];let s=Array.from(e.querySelectorAll(t));return i&&s.forEach(i),s},childNodeLength(e){let t=document.createElement("template");return t.innerHTML=e,t.content.childElementCount},isUploadInput(e){return e.type==="file"&&e.getAttribute(le)!==null},isAutoUpload(e){return e.hasAttribute("data-phx-auto-upload")},findUploadInputs(e){let t=e.id,i=this.all(document,`input[type="file"][${le}][form="${t}"]`);return this.all(e,`input[type="file"][${le}]`).concat(i)},findComponentNodeList(e,t,i=document){return this.all(i,`[${He}="${e}"][${ee}="${t}"]`)},isPhxDestroyed(e){return!!(e.id&&we.private(e,"destroyed"))},wantsNewTab(e){let t=e.ctrlKey||e.shiftKey||e.metaKey||e.button&&e.button===1,i=e.target instanceof HTMLAnchorElement&&e.target.hasAttribute("download"),s=e.target.hasAttribute("target")&&e.target.getAttribute("target").toLowerCase()==="_blank",n=e.target.hasAttribute("target")&&!e.target.getAttribute("target").startsWith("_");return t||s||i||n},isUnloadableFormSubmit(e){return e.target&&e.target.getAttribute("method")==="dialog"||e.submitter&&e.submitter.getAttribute("formmethod")==="dialog"?!1:!e.defaultPrevented&&!this.wantsNewTab(e)},isNewPageClick(e,t){let i=e.target instanceof HTMLAnchorElement?e.target.getAttribute("href"):null,s;if(e.defaultPrevented||i===null||this.wantsNewTab(e)||i.startsWith("mailto:")||i.startsWith("tel:")||e.target.isContentEditable)return!1;try{s=new URL(i)}catch{try{s=new URL(i,t)}catch{return!0}}return s.host===t.host&&s.protocol===t.protocol&&s.pathname===t.pathname&&s.search===t.search?s.hash===""&&!s.href.endsWith("#"):s.protocol.startsWith("http")},markPhxChildDestroyed(e){this.isPhxChild(e)&&e.setAttribute(te,""),this.putPrivate(e,"destroyed",!0)},findPhxChildrenInFragment(e,t){let i=document.createElement("template");return i.innerHTML=e,this.findPhxChildren(i.content,t)},isIgnored(e,t){return(e.getAttribute(t)||e.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(e,t,i){return e.getAttribute&&i.indexOf(e.getAttribute(t))>=0},findPhxSticky(e){return this.all(e,`[${Jt}]`)},findPhxChildren(e,t){return this.all(e,`${Ze}[${Ae}="${t}"]`)},findExistingParentCIDs(e,t){let i=new Set,s=new Set;return t.forEach(n=>{this.all(document,`[${He}="${e}"][${ee}="${n}"]`).forEach(r=>{i.add(n),this.all(r,`[${He}="${e}"][${ee}]`).map(o=>parseInt(o.getAttribute(ee))).forEach(o=>s.add(o))})}),s.forEach(n=>i.delete(n)),i},private(e,t){return e[Z]&&e[Z][t]},deletePrivate(e,t){e[Z]&&delete e[Z][t]},putPrivate(e,t,i){e[Z]||(e[Z]={}),e[Z][t]=i},updatePrivate(e,t,i,s){let n=this.private(e,t);n===void 0?this.putPrivate(e,t,s(i)):this.putPrivate(e,t,s(n))},syncPendingAttrs(e,t){e.hasAttribute(J)&&(is.forEach(i=>{e.classList.contains(i)&&t.classList.add(i)}),$i.filter(i=>e.hasAttribute(i)).forEach(i=>{t.setAttribute(i,e.getAttribute(i))}))},copyPrivates(e,t){t[Z]&&(e[Z]=t[Z])},putTitle(e){let t=document.querySelector("title");if(t){let{prefix:i,suffix:s,default:n}=t.dataset,r=typeof e!="string"||e.trim()==="";if(r&&typeof n!="string")return;let o=r?n:e;document.title=`${i||""}${o||""}${s||""}`}else document.title=e},debounce(e,t,i,s,n,r,o,a){let l=e.getAttribute(i),h=e.getAttribute(n);l===""&&(l=s),h===""&&(h=r);let d=l||h;switch(d){case null:return a();case"blur":this.incCycle(e,"debounce-blur-cycle",()=>{o()&&a()}),this.once(e,"debounce-blur")&&e.addEventListener("blur",()=>this.triggerCycle(e,"debounce-blur-cycle"));return;default:let p=parseInt(d),m=()=>h?this.deletePrivate(e,Je):a(),g=this.incCycle(e,Ke,m);if(isNaN(p))return I(`invalid throttle/debounce value: ${d}`);if(h){let v=!1;if(t.type==="keydown"){let y=this.private(e,Ni);this.putPrivate(e,Ni,t.key),v=y!==t.key}if(!v&&this.private(e,Je))return!1;{a();let y=setTimeout(()=>{o()&&this.triggerCycle(e,Ke)},p);this.putPrivate(e,Je,y)}}else setTimeout(()=>{o()&&this.triggerCycle(e,Ke,g)},p);let u=e.form;u&&this.once(u,"bind-debounce")&&u.addEventListener("submit",()=>{Array.from(new FormData(u).entries(),([v])=>{let y=u.elements.namedItem(v),L=y instanceof RadioNodeList?y[0]:y;L&&(this.incCycle(L,Ke),this.deletePrivate(L,Je))})}),this.once(e,"bind-debounce")&&e.addEventListener("blur",()=>{clearTimeout(this.private(e,Je)),this.triggerCycle(e,Ke)})}},triggerCycle(e,t,i){let[s,n]=this.private(e,t);i||(i=s),i===s&&(this.incCycle(e,t),n())},once(e,t){return this.private(e,t)===!0?!1:(this.putPrivate(e,t,!0),!0)},incCycle(e,t,i=function(){}){let[s]=this.private(e,t)||[0,i];return s++,this.putPrivate(e,t,[s,i]),s},maintainPrivateHooks(e,t,i,s){e.hasAttribute&&e.hasAttribute("data-phx-hook")&&!t.hasAttribute("data-phx-hook")&&t.setAttribute("data-phx-hook",e.getAttribute("data-phx-hook")),t.hasAttribute&&(t.hasAttribute(i)||t.hasAttribute(s))&&t.setAttribute("data-phx-hook","Phoenix.InfiniteScroll")},putCustomElHook(e,t){e.isConnected?e.setAttribute("data-phx-hook",""):console.error(` +(()=>{var ln=Object.create;var Ti=Object.defineProperty;var hn=Object.getOwnPropertyDescriptor;var cn=Object.getOwnPropertyNames;var dn=Object.getPrototypeOf,un=Object.prototype.hasOwnProperty;var fn=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,i)=>(typeof require<"u"?require:t)[i]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var pn=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of cn(t))!un.call(e,n)&&n!==i&&Ti(e,n,{get:()=>t[n],enumerable:!(s=hn(t,n))||s.enumerable});return e};var mn=(e,t,i)=>(i=e!=null?ln(dn(e)):{},pn(t||!e||!e.__esModule?Ti(i,"default",{value:e,enumerable:!0}):i,e));var Be=e=>typeof e=="function"?e:function(){return e},gn=typeof self<"u"?self:null,Re=typeof window<"u"?window:null,G=gn||Re||globalThis,vn="2.0.0",Y={connecting:0,open:1,closing:2,closed:3},bn=100,yn=1e4,wn=1e3,V={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},re={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},Mt={longpoll:"longpoll",websocket:"websocket"},En={complete:4},Ht="base64url.bearer.phx.",rt=class{constructor(e,t,i,s){this.channel=e,this.event=t,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:i}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},Ci=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},Sn=class{constructor(e,t,i){this.state=V.closed,this.topic=e,this.params=Be(t||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new rt(this,re.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Ci(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=V.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=V.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=V.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=V.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new rt(this,re.leave,Be({}),this.timeout).send(),this.state=V.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(re.reply,(s,n)=>{this.trigger(this.replyEventName(n),s)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(e){this.on(re.close,e)}onError(e){return this.on(re.error,t=>e(t))}on(e,t){let i=this.bindingRef++;return this.bindings.push({event:e,ref:i,callback:t}),i}off(e,t){this.bindings=this.bindings.filter(i=>!(i.event===e&&(typeof t>"u"||t===i.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,i=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new rt(this,e,function(){return t},i);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=V.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(re.close,"leave")},i=new rt(this,re.leave,Be({}),e);return i.receive("ok",()=>t()).receive("timeout",()=>t()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(e,t,i){return t}isMember(e,t,i,s){return this.topic!==e?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:i,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=V.joining,this.joinPush.resend(e))}trigger(e,t,i,s){let n=this.onMessage(e,t,i,s);if(t&&!n)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let r=this.bindings.filter(o=>o.event===e);for(let o=0;ol.abort(),n);a.signal=l.signal}return G.fetch(t,a).then(h=>h.text()).then(h=>this.parseJSON(h)).then(h=>o&&o(h)).catch(h=>{h.name==="AbortError"&&r?r():o&&o(null)}),l}static xdomainRequest(e,t,i,s,n,r,o){return e.timeout=n,e.open(t,i),e.onload=()=>{let a=this.parseJSON(e.responseText);o&&o(a)},r&&(e.ontimeout=r),e.onprogress=()=>{},e.send(s),e}static xhrRequest(e,t,i,s,n,r,o,a){e.open(t,i,!0),e.timeout=r;for(let[l,h]of Object.entries(s))e.setRequestHeader(l,h);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===En.complete&&a){let l=this.parseJSON(e.responseText);a(l)}},o&&(e.ontimeout=o),e.send(n),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let i=[];for(var s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let n=t?`${t}[${s}]`:s,r=e[s];typeof r=="object"?i.push(this.serialize(r,n)):i.push(encodeURIComponent(n)+"="+encodeURIComponent(r))}return i.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let i=e.match(/\?/)?"&":"?";return`${e}${i}${this.serialize(t)}`}},An=e=>{let t="",i=new Uint8Array(e),s=i.byteLength;for(let n=0;nthis.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+Mt.websocket),"$1/"+Mt.longpoll)}endpointURL(){return at.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,i){this.close(e,t,i),this.readyState=Y.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Y.open||this.readyState===Y.connecting}poll(){let e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:i,token:s,messages:n}=t;if(i===410&&this.token!==null){this.onerror(410),this.closeAndRetry(3410,"session_gone",!1);return}this.token=s}else i=0;switch(i){case 200:n.forEach(r=>{setTimeout(()=>this.onmessage({data:r}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Y.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${i}`)}})}send(e){typeof e!="string"&&(e=An(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e,t=0){this.awaitingBatchAck=!0;let i=t+bn,s=e.slice(t,i);this.ajax("POST",{"Content-Type":"application/x-ndjson"},s.join(` +`),()=>this.onerror("timeout"),n=>{!n||n.status!==200?(this.awaitingBatchAck=!1,this.onerror(n&&n.status),this.closeAndRetry(1011,"internal server error",!1)):i0?(this.batchSend(this.batchBuffer),this.batchBuffer=[]):this.awaitingBatchAck=!1})}close(e,t,i){for(let n of this.reqs)n.abort();this.readyState=Y.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:i});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(e,t,i,s,n){let r,o=()=>{this.reqs.delete(r),s()};r=at.request(e,this.endpointURL(),t,i,this.timeout,o,a=>{this.reqs.delete(r),this.isActive()&&n(a)}),this.reqs.add(r)}};var ot={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let i=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(i))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[i,s,n,r,o]=JSON.parse(e);return t({join_ref:i,ref:s,topic:n,event:r,payload:o})}},binaryEncode(e){let{join_ref:t,ref:i,event:s,topic:n,payload:r}=e,o=new TextEncoder,a=o.encode(t),l=o.encode(i),h=o.encode(n),d=o.encode(s);this.assertFieldSize(a.byteLength,"join_ref"),this.assertFieldSize(l.byteLength,"ref"),this.assertFieldSize(h.byteLength,"topic"),this.assertFieldSize(d.byteLength,"event");let p=this.META_LENGTH+a.byteLength+l.byteLength+h.byteLength+d.byteLength,m=new ArrayBuffer(this.HEADER_LENGTH+p),g=new Uint8Array(m),u=new DataView(m),v=0;u.setUint8(v++,this.KINDS.push),u.setUint8(v++,a.byteLength),u.setUint8(v++,l.byteLength),u.setUint8(v++,h.byteLength),u.setUint8(v++,d.byteLength),g.set(a,v),v+=a.byteLength,g.set(l,v),v+=l.byteLength,g.set(h,v),v+=h.byteLength,g.set(d,v),v+=d.byteLength;var y=new Uint8Array(m.byteLength+r.byteLength);return y.set(g,0),y.set(new Uint8Array(r),m.byteLength),y.buffer},assertFieldSize(e,t){if(e>255)throw new Error(`unable to convert ${t} to binary: must be less than or equal to 255 bytes, but is ${e} bytes`)},binaryDecode(e){let t=new DataView(e),i=t.getUint8(0),s=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(e,t,s);case this.KINDS.reply:return this.decodeReply(e,t,s);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,s)}},decodePush(e,t,i){let s=t.getUint8(1),n=t.getUint8(2),r=t.getUint8(3),o=this.HEADER_LENGTH+this.META_LENGTH-1,a=i.decode(e.slice(o,o+s));o=o+s;let l=i.decode(e.slice(o,o+n));o=o+n;let h=i.decode(e.slice(o,o+r));o=o+r;let d=e.slice(o,e.byteLength);return{join_ref:a,ref:null,topic:l,event:h,payload:d}},decodeReply(e,t,i){let s=t.getUint8(1),n=t.getUint8(2),r=t.getUint8(3),o=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=i.decode(e.slice(a,a+s));a=a+s;let h=i.decode(e.slice(a,a+n));a=a+n;let d=i.decode(e.slice(a,a+r));a=a+r;let p=i.decode(e.slice(a,a+o));a=a+o;let m=e.slice(a,e.byteLength),g={status:p,response:m};return{join_ref:l,ref:h,topic:d,event:re.reply,payload:g}},decodeBroadcast(e,t,i){let s=t.getUint8(1),n=t.getUint8(2),r=this.HEADER_LENGTH+2,o=i.decode(e.slice(r,r+s));r=r+s;let a=i.decode(e.slice(r,r+n));r=r+n;let l=e.slice(r,e.byteLength);return{join_ref:null,ref:null,topic:o,event:a,payload:l}}},_i=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.fallbackRef=null,this.timeout=t.timeout||yn,this.transport=t.transport||G.WebSocket||Pe,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||G&&G.sessionStorage,this.establishedConnections=0,this.defaultEncoder=ot.encode.bind(ot),this.defaultDecoder=ot.decode.bind(ot),this.closeWasClean=!0,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.pageHidden=!1,this.transport!==Pe?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let i=null;Re&&Re.addEventListener&&(Re.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),i=this.connectClock)}),Re.addEventListener("pageshow",s=>{i===this.connectClock&&(i=null,this.connect())}),Re.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"?this.pageHidden=!0:(this.pageHidden=!1,!this.isConnected()&&!this.closeWasClean&&this.teardown(()=>this.connect()))})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,n,r)=>{console.log(`${s}: ${n}`,r)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Be(t.params||{}),this.endPoint=`${e}/${Mt.websocket}`,this.vsn=t.vsn||vn,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Ci(()=>{if(this.pageHidden){this.log("Not reconnecting as page is hidden!"),this.teardown();return}this.teardown(()=>this.connect())},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Pe}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=at.appendParams(at.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,i){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,i)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Be(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Pe?this.connectWithFallback(Pe,this.longPollFallbackMs):this.transportConnect())}log(e,t,i){this.logger&&this.logger(e,t,i)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let s=this.onMessage(n=>{n.ref===t&&(this.off([s]),e(Date.now()-i))});return!0}transportName(e){switch(e){case Pe:return"LongPoll";default:return e.name}}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${Ht}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let i=!1,s=!0,n,r,o=this.transportName(e),a=l=>{this.log("transport",`falling back to ${o}...`,l),this.off([n,r]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${o}`))return a("memorized");this.fallbackTimer=setTimeout(a,t),r=this.onError(l=>{this.log("transport","error",l),s&&!i&&(clearTimeout(this.fallbackTimer),a(l))}),this.fallbackRef&&this.off([this.fallbackRef]),this.fallbackRef=this.onOpen(()=>{if(i=!0,!s){let l=this.transportName(e);return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${l}`,"true"),this.log("transport",`established ${l} fallback`)}clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(a,t),this.ping(l=>{this.log("transport","connected to primary after",l),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transportName(this.transport)} connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,e])=>e())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),wn,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,i){if(!this.conn)return e&&e();let s=this.conn;this.waitForBufferDone(s,()=>{t?s.close(t,i||""):s.close(),this.waitForSocketClosed(s,()=>{this.conn===s&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e()})})}waitForBufferDone(e,t,i=1){if(i===5||!e.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(e,t,i+1)},150*i)}waitForSocketClosed(e,t,i=1){if(i===5||e.readyState===Y.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(e,t,i+1)},150*i)}onConnClose(e){this.conn&&(this.conn.onclose=()=>{});let t=e&&e.code;this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&t!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,i])=>i(e))}onConnError(e){this.hasLogger()&&this.log("transport","error",e);let t=this.transport,i=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,s])=>{s(e,t,i)}),(t===this.transport||i>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(re.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Y.connecting:return"connecting";case Y.open:return"open";case Y.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([i])=>e.indexOf(i)===-1)}channel(e,t={}){let i=new Sn(e,t,this);return this.channels.push(i),i}push(e){if(this.hasLogger()){let{topic:t,event:i,payload:s,ref:n,join_ref:r}=e;this.log("push",`${t} ${i} (${r}, ${n})`,s)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:i,event:s,payload:n,ref:r,join_ref:o}=t;r&&r===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${n.status||""} ${i} ${s} ${r&&"("+r+")"||""}`,n);for(let a=0;ai.topic===e&&(i.isJoined()||i.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};var ts="consecutive-reloads",kn=10,Tn=5e3,Cn=1e4,_n=3e4,is=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading","phx-hook-loading"],Nt="phx-drop-target-active",ee="data-phx-component",He="data-phx-view",$t="data-phx-link",xn="track-static",Pn="data-phx-link-state",Ne="data-phx-ref-loading",J="data-phx-ref-src",M="data-phx-ref-lock",xi="phx-pending-refs",ss="track-uploads",le="data-phx-upload-ref",Zt="data-phx-preflighted-refs",Rn="data-phx-done-refs",lt="drop-target",Wt="data-phx-active-refs",mt="phx:live-file:updated",ns="data-phx-skip",rs="data-phx-id",Pi="data-phx-prune",Ri="phx-connected",be="phx-loading",Le="phx-error",Li="phx-client-error",Ve="phx-server-error",Ae="data-phx-parent-id",Qt="data-phx-main",ae="data-phx-root-id",qt="viewport-top",Kt="viewport-bottom",Ln="viewport-overrun-target",In="trigger-action",yt="phx-has-focused",Dn=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],os=["checkbox","radio"],Ye="phx-has-submitted",te="data-phx-session",Ze=`[${te}]`,Jt="data-phx-sticky",Se="data-phx-static",zt="data-phx-readonly",Oe="data-phx-disabled",Ii="disable-with",wt="data-phx-disable-with-restore",We="hook",On="debounce",Mn="throttle",Et="update",gt="stream",qe="data-phx-stream",ei="data-phx-portal",ke="data-phx-teleported",me="data-phx-teleported-src",vt="data-phx-runtime-hook",Hn="data-phx-pid",Nn="key",Z="phxPrivate",Di="auto-recover",ht="phx:live-socket:debug",Ft="phx:live-socket:profiling",Ut="phx:live-socket:latency-sim",ct="phx:nav-history-position",$n="progress",Oi="mounted",Mi="__phoenix_reload_status__",Fn=1,Hi=3,Un=200,jn=500,Bn="phx-",Vn=3e4,Ke="debounce-trigger",Je="throttled",Ni="debounce-prev-key",Wn={debounce:300,throttle:300},$i=[Ne,J,M],K="s",jt="r",F="c",D="k",Q="kc",Fi="e",Ui="r",ji="t",fe="p",Ie="stream",qn=class{constructor(e,t,i){let{chunk_size:s,chunk_timeout:n}=t;this.liveSocket=i,this.entry=e,this.offset=0,this.chunkSize=s,this.chunkTimeout=n,this.chunkTimer=null,this.errored=!1,this.uploadChannel=i.channel(`lvu:${e.ref}`,{token:e.metadata()})}error(e){this.errored||(this.uploadChannel.leave(),this.errored=!0,clearTimeout(this.chunkTimer),this.entry.error(e))}upload(){this.uploadChannel.onError(e=>this.error(e)),this.uploadChannel.join().receive("ok",e=>this.readNextChunk()).receive("error",e=>this.error(e))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let e=new window.FileReader,t=this.entry.file.slice(this.offset,this.chunkSize+this.offset);e.onload=i=>{if(i.target.error===null)this.offset+=i.target.result.byteLength,this.pushChunk(i.target.result);else return I("Read error: "+i.target.error)},e.readAsArrayBuffer(t)}pushChunk(e){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",e,this.chunkTimeout).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))}).receive("error",({reason:t})=>this.error(t))}},I=(e,t)=>console.error&&console.error(e,t),oe=e=>{let t=typeof e;return t==="number"||t==="string"&&/^(0|[1-9]\d*)$/.test(e)};function Kn(){let e=new Set,t=document.querySelectorAll("*[id]");for(let i=0,s=t.length;i{let s=document.getElementById(i);s&&s.parentElement&&s.parentElement.getAttribute("phx-update")!=="stream"&&t.add(`The stream container with id "${s.parentElement.id}" is missing the phx-update="stream" attribute. Ensure it is set for streams to work properly.`)}),t.forEach(i=>console.error(i))}var zn=(e,t,i,s)=>{e.liveSocket.isDebugEnabled()&&console.log(`${e.id} ${t}: ${i} - `,s)},ze=e=>typeof e=="function"?e:function(){return e},bt=e=>JSON.parse(JSON.stringify(e)),Ee=(e,t,i)=>{do{if(e.matches(`[${t}]`)&&!e.disabled)return e;e=e.parentElement||e.parentNode}while(e!==null&&e.nodeType===1&&!(i&&i.isSameNode(e)||e.matches(Ze)));return null},De=e=>e!==null&&typeof e=="object"&&!(e instanceof Array),Xn=(e,t)=>JSON.stringify(e)===JSON.stringify(t),Bi=e=>{for(let t in e)return!1;return!0},Me=(e,t)=>e&&t(e),Gn=function(e,t,i,s){e.forEach(n=>{new qn(n,i.config,s).upload()})},Yn=e=>{if(e.dataTransfer.types){for(let t=0;t{let s=this.getHashTargetEl(window.location.hash);s?s.scrollIntoView():t.type==="redirect"&&window.scroll(0,0)})}}else this.redirect(i)},setCookie(e,t,i){let s=typeof i=="number"?` max-age=${i};`:"";document.cookie=`${e}=${t};${s} path=/`},getCookie(e){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${e}s*=s*([^;]*).*$)|^.*$`),"$1")},deleteCookie(e){document.cookie=`${e}=; max-age=-1; path=/`},redirect(e,t,i=s=>{window.location.href=s}){t&&this.setCookie("__phoenix_flash__",t,60),i(e)},localKey(e,t){return`${e}-${t}`},getHashTargetEl(e){let t=e.toString().substring(1);if(t!=="")return document.getElementById(t)||document.querySelector(`a[name="${t}"]`)}},B=Zn,we={byId(e){return document.getElementById(e)||I(`no id found for ${e}`)},removeClass(e,t){e.classList.remove(t),e.classList.length===0&&e.removeAttribute("class")},all(e,t,i){if(!e)return[];let s=Array.from(e.querySelectorAll(t));return i&&s.forEach(i),s},childNodeLength(e){let t=document.createElement("template");return t.innerHTML=e,t.content.childElementCount},isUploadInput(e){return e.type==="file"&&e.getAttribute(le)!==null},isAutoUpload(e){return e.hasAttribute("data-phx-auto-upload")},findUploadInputs(e){let t=e.id,i=this.all(document,`input[type="file"][${le}][form="${t}"]`);return this.all(e,`input[type="file"][${le}]`).concat(i)},findComponentNodeList(e,t,i=document){return this.all(i,`[${He}="${e}"][${ee}="${t}"]`)},isPhxDestroyed(e){return!!(e.id&&we.private(e,"destroyed"))},wantsNewTab(e){let t=e.ctrlKey||e.shiftKey||e.metaKey||e.button&&e.button===1,i=e.target instanceof HTMLAnchorElement&&e.target.hasAttribute("download"),s=e.target.hasAttribute("target")&&e.target.getAttribute("target").toLowerCase()==="_blank",n=e.target.hasAttribute("target")&&!e.target.getAttribute("target").startsWith("_");return t||s||i||n},isUnloadableFormSubmit(e){return e.target&&e.target.getAttribute("method")==="dialog"||e.submitter&&e.submitter.getAttribute("formmethod")==="dialog"?!1:!e.defaultPrevented&&!this.wantsNewTab(e)},isNewPageClick(e,t){let i=e.target instanceof HTMLAnchorElement?e.target.getAttribute("href"):null,s;if(e.defaultPrevented||i===null||this.wantsNewTab(e)||i.startsWith("mailto:")||i.startsWith("tel:")||e.target.isContentEditable)return!1;try{s=new URL(i)}catch{try{s=new URL(i,t)}catch{return!0}}return s.host===t.host&&s.protocol===t.protocol&&s.pathname===t.pathname&&s.search===t.search?s.hash===""&&!s.href.endsWith("#"):s.protocol.startsWith("http")},markPhxChildDestroyed(e){this.isPhxChild(e)&&e.setAttribute(te,""),this.putPrivate(e,"destroyed",!0)},findPhxChildrenInFragment(e,t){let i=document.createElement("template");return i.innerHTML=e,this.findPhxChildren(i.content,t)},isIgnored(e,t){return(e.getAttribute(t)||e.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(e,t,i){return e.getAttribute&&i.indexOf(e.getAttribute(t))>=0},findPhxSticky(e){return this.all(e,`[${Jt}]`)},findPhxChildren(e,t){return this.all(e,`${Ze}[${Ae}="${t}"]`)},findExistingParentCIDs(e,t){let i=new Set,s=new Set;return t.forEach(n=>{this.all(document,`[${He}="${e}"][${ee}="${n}"]`).forEach(r=>{i.add(n),this.all(r,`[${He}="${e}"][${ee}]`).map(o=>parseInt(o.getAttribute(ee))).forEach(o=>s.add(o))})}),s.forEach(n=>i.delete(n)),i},private(e,t){return e[Z]&&e[Z][t]},deletePrivate(e,t){e[Z]&&delete e[Z][t]},putPrivate(e,t,i){e[Z]||(e[Z]={}),e[Z][t]=i},updatePrivate(e,t,i,s){let n=this.private(e,t);n===void 0?this.putPrivate(e,t,s(i)):this.putPrivate(e,t,s(n))},syncPendingAttrs(e,t){e.hasAttribute(J)&&(is.forEach(i=>{e.classList.contains(i)&&t.classList.add(i)}),$i.filter(i=>e.hasAttribute(i)).forEach(i=>{t.setAttribute(i,e.getAttribute(i))}))},copyPrivates(e,t){t[Z]&&(e[Z]=t[Z])},putTitle(e){let t=document.querySelector("title");if(t){let{prefix:i,suffix:s,default:n}=t.dataset,r=typeof e!="string"||e.trim()==="";if(r&&typeof n!="string")return;let o=r?n:e;document.title=`${i||""}${o||""}${s||""}`}else document.title=e},debounce(e,t,i,s,n,r,o,a){let l=e.getAttribute(i),h=e.getAttribute(n);l===""&&(l=s),h===""&&(h=r);let d=l||h;switch(d){case null:return a();case"blur":this.incCycle(e,"debounce-blur-cycle",()=>{o()&&a()}),this.once(e,"debounce-blur")&&e.addEventListener("blur",()=>this.triggerCycle(e,"debounce-blur-cycle"));return;default:let p=parseInt(d),m=()=>h?this.deletePrivate(e,Je):a(),g=this.incCycle(e,Ke,m);if(isNaN(p))return I(`invalid throttle/debounce value: ${d}`);if(h){let v=!1;if(t.type==="keydown"){let y=this.private(e,Ni);this.putPrivate(e,Ni,t.key),v=y!==t.key}if(!v&&this.private(e,Je))return!1;{a();let y=setTimeout(()=>{o()&&this.triggerCycle(e,Ke)},p);this.putPrivate(e,Je,y)}}else setTimeout(()=>{o()&&this.triggerCycle(e,Ke,g)},p);let u=e.form;u&&this.once(u,"bind-debounce")&&u.addEventListener("submit",()=>{Array.from(new FormData(u).entries(),([v])=>{let y=u.elements.namedItem(v),L=y instanceof RadioNodeList?y[0]:y;L&&(this.incCycle(L,Ke),this.deletePrivate(L,Je))})}),this.once(e,"bind-debounce")&&e.addEventListener("blur",()=>{clearTimeout(this.private(e,Je)),this.triggerCycle(e,Ke)})}},triggerCycle(e,t,i){let[s,n]=this.private(e,t);i||(i=s),i===s&&(this.incCycle(e,t),n())},once(e,t){return this.private(e,t)===!0?!1:(this.putPrivate(e,t,!0),!0)},incCycle(e,t,i=function(){}){let[s]=this.private(e,t)||[0,i];return s++,this.putPrivate(e,t,[s,i]),s},maintainPrivateHooks(e,t,i,s){e.hasAttribute&&e.hasAttribute("data-phx-hook")&&!t.hasAttribute("data-phx-hook")&&t.setAttribute("data-phx-hook",e.getAttribute("data-phx-hook")),t.hasAttribute&&(t.hasAttribute(i)||t.hasAttribute(s))&&t.setAttribute("data-phx-hook","Phoenix.InfiniteScroll")},putCustomElHook(e,t){e.isConnected?e.setAttribute("data-phx-hook",""):console.error(` hook attached to non-connected DOM element ensure you are calling createHook within your connectedCallback. ${e.outerHTML} - `),this.putPrivate(e,"custom-el-hook",t)},getCustomElHook(e){return this.private(e,"custom-el-hook")},isUsedInput(e){return e.nodeType===Node.ELEMENT_NODE&&(this.private(e,yt)||this.private(e,Ye))},resetForm(e){Array.from(e.elements).forEach(t=>{this.deletePrivate(t,yt),this.deletePrivate(t,Ye)})},isPhxChild(e){return e.getAttribute&&e.getAttribute(Ae)},isPhxSticky(e){return e.getAttribute&&e.getAttribute(Jt)!==null},isChildOfAny(e,t){return!!t.find(i=>i.contains(e))},firstPhxChild(e){return this.isPhxChild(e)?e:this.all(e,`[${Ae}]`)[0]},isPortalTemplate(e){return e.tagName==="TEMPLATE"&&e.hasAttribute(ei)},closestViewEl(e){let t=e.closest(`[${ke}],${Ze}`);return t?t.hasAttribute(ke)?this.byId(t.getAttribute(ke)):t.hasAttribute(te)?t:null:null},dispatchEvent(e,t,i={}){let s=!0;e.nodeName==="INPUT"&&e.type==="file"&&t==="click"&&(s=!1);let o={bubbles:i.bubbles===void 0?s:!!i.bubbles,cancelable:!0,detail:i.detail||{}},a=t==="click"?new MouseEvent("click",o):new CustomEvent(t,o);e.dispatchEvent(a)},cloneNode(e,t){if(typeof t>"u")return e.cloneNode(!0);{let i=e.cloneNode(!1);return i.innerHTML=t,i}},mergeAttrs(e,t,i={}){let s=new Set(i.exclude||[]),n=i.isIgnored,r=t.attributes;for(let a=r.length-1;a>=0;a--){let l=r[a].name;if(s.has(l)){if(l==="value"){let h=t.value??t.getAttribute(l);e.value===h&&e.setAttribute("value",t.getAttribute(l))}}else{let h=t.getAttribute(l);e.getAttribute(l)!==h&&(!n||n&&l.startsWith("data-"))&&e.setAttribute(l,h)}}let o=e.attributes;for(let a=o.length-1;a>=0;a--){let l=o[a].name;n?l.startsWith("data-")&&!t.hasAttribute(l)&&!$i.includes(l)&&e.removeAttribute(l):t.hasAttribute(l)||e.removeAttribute(l)}},mergeFocusedInput(e,t){e instanceof HTMLSelectElement||we.mergeAttrs(e,t,{exclude:["value"]}),t.readOnly?e.setAttribute("readonly",!0):e.removeAttribute("readonly")},hasSelectionRange(e){return e.setSelectionRange&&(e.type==="text"||e.type==="textarea")},restoreFocus(e,t,i){if(e instanceof HTMLSelectElement&&e.focus(),!we.isTextualInput(e))return;e.matches(":focus")||e.focus(),this.hasSelectionRange(e)&&e.setSelectionRange(t,i)},isFormInput(e){return e.localName&&customElements.get(e.localName)?customElements.get(e.localName).formAssociated:/^(?:input|select|textarea)$/i.test(e.tagName)&&e.type!=="button"},syncAttrsToProps(e){e instanceof HTMLInputElement&&os.indexOf(e.type.toLocaleLowerCase())>=0&&(e.checked=e.getAttribute("checked")!==null)},isTextualInput(e){return In.indexOf(e.type)>=0},isNowTriggerFormExternal(e,t){return e.getAttribute&&e.getAttribute(t)!==null&&document.body.contains(e)},cleanChildNodes(e,t){if(we.isPhxUpdate(e,t,["append","prepend",gt])){let i=[];e.childNodes.forEach(s=>{s.id||(!(s.nodeType===Node.TEXT_NODE&&s.nodeValue.trim()==="")&&s.nodeType!==Node.COMMENT_NODE&&I(`only HTML element tags with an id are allowed inside containers with phx-update. + `),this.putPrivate(e,"custom-el-hook",t)},getCustomElHook(e){return this.private(e,"custom-el-hook")},isUsedInput(e){return e.nodeType===Node.ELEMENT_NODE&&(this.private(e,yt)||this.private(e,Ye))},resetForm(e){Array.from(e.elements).forEach(t=>{this.deletePrivate(t,yt),this.deletePrivate(t,Ye)})},isPhxChild(e){return e.getAttribute&&e.getAttribute(Ae)},isPhxSticky(e){return e.getAttribute&&e.getAttribute(Jt)!==null},isChildOfAny(e,t){return!!t.find(i=>i.contains(e))},firstPhxChild(e){return this.isPhxChild(e)?e:this.all(e,`[${Ae}]`)[0]},isPortalTemplate(e){return e.tagName==="TEMPLATE"&&e.hasAttribute(ei)},closestViewEl(e){let t=e.closest(`[${ke}],${Ze}`);return t?t.hasAttribute(ke)?this.byId(t.getAttribute(ke)):t.hasAttribute(te)?t:null:null},dispatchEvent(e,t,i={}){let s=!0;e.nodeName==="INPUT"&&e.type==="file"&&t==="click"&&(s=!1);let o={bubbles:i.bubbles===void 0?s:!!i.bubbles,cancelable:!0,detail:i.detail||{}},a=t==="click"?new MouseEvent("click",o):new CustomEvent(t,o);e.dispatchEvent(a)},cloneNode(e,t){if(typeof t>"u")return e.cloneNode(!0);{let i=e.cloneNode(!1);return i.innerHTML=t,i}},mergeAttrs(e,t,i={}){let s=new Set(i.exclude||[]),n=i.isIgnored,r=t.attributes;for(let a=r.length-1;a>=0;a--){let l=r[a].name;if(s.has(l)){if(l==="value"){let h=t.value??t.getAttribute(l);e.value===h&&e.setAttribute("value",t.getAttribute(l))}}else{let h=t.getAttribute(l);e.getAttribute(l)!==h&&(!n||n&&l.startsWith("data-"))&&e.setAttribute(l,h)}}let o=e.attributes;for(let a=o.length-1;a>=0;a--){let l=o[a].name;n?l.startsWith("data-")&&!t.hasAttribute(l)&&!$i.includes(l)&&e.removeAttribute(l):t.hasAttribute(l)||e.removeAttribute(l)}},mergeFocusedInput(e,t){e instanceof HTMLSelectElement||we.mergeAttrs(e,t,{exclude:["value"]}),t.readOnly?e.setAttribute("readonly",!0):e.removeAttribute("readonly")},hasSelectionRange(e){return e.setSelectionRange&&(e.type==="text"||e.type==="textarea")},restoreFocus(e,t,i){if(e instanceof HTMLSelectElement&&e.focus(),!we.isTextualInput(e))return;e.matches(":focus")||e.focus(),this.hasSelectionRange(e)&&e.setSelectionRange(t,i)},isFormInput(e){return e.localName&&customElements.get(e.localName)?customElements.get(e.localName).formAssociated:/^(?:input|select|textarea)$/i.test(e.tagName)&&e.type!=="button"},syncAttrsToProps(e){e instanceof HTMLInputElement&&os.indexOf(e.type.toLocaleLowerCase())>=0&&(e.checked=e.getAttribute("checked")!==null)},isTextualInput(e){return Dn.indexOf(e.type)>=0},isNowTriggerFormExternal(e,t){return e.getAttribute&&e.getAttribute(t)!==null&&document.body.contains(e)},cleanChildNodes(e,t){if(we.isPhxUpdate(e,t,["append","prepend",gt])){let i=[];e.childNodes.forEach(s=>{s.id||(!(s.nodeType===Node.TEXT_NODE&&s.nodeValue.trim()==="")&&s.nodeType!==Node.COMMENT_NODE&&I(`only HTML element tags with an id are allowed inside containers with phx-update. removing illegal node: "${(s.outerHTML||s.nodeValue).trim()}" -`),i.push(s))}),i.forEach(s=>s.remove())}},replaceRootContainer(e,t,i){let s=new Set(["id",te,Se,Qt,ae]);if(e.tagName.toLowerCase()===t.toLowerCase())return Array.from(e.attributes).filter(n=>!s.has(n.name.toLowerCase())).forEach(n=>e.removeAttribute(n.name)),Object.keys(i).filter(n=>!s.has(n.toLowerCase())).forEach(n=>e.setAttribute(n,i[n])),e;{let n=document.createElement(t);return Object.keys(i).forEach(r=>n.setAttribute(r,i[r])),s.forEach(r=>n.setAttribute(r,e.getAttribute(r))),n.innerHTML=e.innerHTML,e.replaceWith(n),n}},getSticky(e,t,i){let s=(we.private(e,"sticky")||[]).find(([n])=>t===n);if(s){let[n,r,o]=s;return o}else return typeof i=="function"?i():i},deleteSticky(e,t){this.updatePrivate(e,"sticky",[],i=>i.filter(([s,n])=>s!==t))},putSticky(e,t,i){let s=i(e);this.updatePrivate(e,"sticky",[],n=>{let r=n.findIndex(([o])=>t===o);return r>=0?n[r]=[t,i,s]:n.push([t,i,s]),n})},applyStickyOperations(e){let t=we.private(e,"sticky");t&&t.forEach(([i,s,n])=>this.putSticky(e,i,s))},isLocked(e){return e.hasAttribute&&e.hasAttribute(M)},attributeIgnored(e,t){return t.some(i=>e.name==i||i==="*"||i.includes("*")&&e.name.match(i)!=null)}},c=we,Xe=class{static isActive(e,t){let i=t._phxRef===void 0,n=e.getAttribute(Wt).split(",").indexOf(N.genFileRef(t))>=0;return t.size>0&&(i||n)}static isPreflighted(e,t){return e.getAttribute(Zt).split(",").indexOf(N.genFileRef(t))>=0&&this.isActive(e,t)}static isPreflightInProgress(e){return e._preflightInProgress===!0}static markPreflightInProgress(e){e._preflightInProgress=!0}constructor(e,t,i,s){this.ref=N.genFileRef(t),this.fileEl=e,this.file=t,this.view=i,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(mt,this._onElUpdated),this.autoUpload=s}metadata(){return this.meta}progress(e){this._progress=Math.floor(e),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{N.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}isCancelled(){return this._isCancelled}cancel(){this.file._preflightInProgress=!1,this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(e="failed"){this.fileEl.removeEventListener(mt,this._onElUpdated),this.view.pushFileProgress(this.fileEl,this.ref,{error:e}),this.isAutoUpload()||N.clearFiles(this.fileEl)}isAutoUpload(){return this.autoUpload}onDone(e){this._onDone=()=>{this.fileEl.removeEventListener(mt,this._onElUpdated),e()}}onElUpdated(){this.fileEl.getAttribute(Wt).split(",").indexOf(this.ref)===-1&&(N.untrackFile(this.fileEl,this.file),this.cancel())}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,relative_path:this.file.webkitRelativePath,size:this.file.size,type:this.file.type,ref:this.ref,meta:typeof this.file.meta=="function"?this.file.meta():void 0}}uploader(e){if(this.meta.uploader){let t=e[this.meta.uploader]||I(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:t}}else return{name:"channel",callback:Xn}}zipPostFlight(e){this.meta=e.entries[this.ref],this.meta||I(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:e})}},Zn=0,N=class Xt{static genFileRef(t){let i=t._phxRef;return i!==void 0?i:(t._phxRef=(Zn++).toString(),t._phxRef)}static getEntryDataURL(t,i,s){let n=this.activeFiles(t).find(r=>this.genFileRef(r)===i);s(URL.createObjectURL(n))}static hasUploadsInProgress(t){let i=0;return c.findUploadInputs(t).forEach(s=>{s.getAttribute(Zt)!==s.getAttribute(Pn)&&i++}),i>0}static serializeUploads(t){let i=this.activeFiles(t),s={};return i.forEach(n=>{let r={path:t.name},o=t.getAttribute(le);s[o]=s[o]||[],r.ref=this.genFileRef(n),r.last_modified=n.lastModified,r.name=n.name||r.ref,r.relative_path=n.webkitRelativePath,r.type=n.type,r.size=n.size,typeof n.meta=="function"&&(r.meta=n.meta()),s[o].push(r)}),s}static clearFiles(t){t.value=null,t.removeAttribute(le),c.putPrivate(t,"files",[])}static untrackFile(t,i){c.putPrivate(t,"files",c.private(t,"files").filter(s=>!Object.is(s,i)))}static trackFiles(t,i,s){if(t.getAttribute("multiple")!==null){let n=i.filter(r=>!this.activeFiles(t).find(o=>Object.is(o,r)));c.updatePrivate(t,"files",[],r=>r.concat(n)),t.value=null}else s&&s.files.length>0&&(t.files=s.files),c.putPrivate(t,"files",i)}static activeFileInputs(t){let i=c.findUploadInputs(t);return Array.from(i).filter(s=>s.files&&this.activeFiles(s).length>0)}static activeFiles(t){return(c.private(t,"files")||[]).filter(i=>Xe.isActive(t,i))}static inputsAwaitingPreflight(t){let i=c.findUploadInputs(t);return Array.from(i).filter(s=>this.filesAwaitingPreflight(s).length>0)}static filesAwaitingPreflight(t){return this.activeFiles(t).filter(i=>!Xe.isPreflighted(t,i)&&!Xe.isPreflightInProgress(i))}static markPreflightInProgress(t){t.forEach(i=>Xe.markPreflightInProgress(i.file))}constructor(t,i,s){this.autoUpload=c.isAutoUpload(t),this.view=i,this.onComplete=s,this._entries=Array.from(Xt.filesAwaitingPreflight(t)||[]).map(n=>new Xe(t,n,i,this.autoUpload)),Xt.markPreflightInProgress(this._entries),this.numEntriesInProgress=this._entries.length}isAutoUpload(){return this.autoUpload}entries(){return this._entries}initAdapterUpload(t,i,s){this._entries=this._entries.map(r=>(r.isCancelled()?(this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()):(r.zipPostFlight(t),r.onDone(()=>{this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()})),r));let n=this._entries.reduce((r,o)=>{if(!o.meta)return r;let{name:a,callback:l}=o.uploader(s.uploaders);return r[a]=r[a]||{callback:l,entries:[]},r[a].entries.push(o),r},{});for(let r in n){let{callback:o,entries:a}=n[r];o(a,i,t,s)}}},Qn={anyOf(e,t){return t.find(i=>e instanceof i)},isFocusable(e,t){return e instanceof HTMLAnchorElement&&e.rel!=="ignore"||e instanceof HTMLAreaElement&&e.href!==void 0||!e.disabled&&this.anyOf(e,[HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement,HTMLButtonElement])||e instanceof HTMLIFrameElement||e.tabIndex>=0&&e.getAttribute("aria-hidden")!=="true"||!t&&e.getAttribute("tabindex")!==null&&e.getAttribute("aria-hidden")!=="true"},attemptFocus(e,t){if(this.isFocusable(e,t))try{e.focus()}catch{}return!!document.activeElement&&document.activeElement.isSameNode(e)},focusFirstInteractive(e){let t=e.firstElementChild;for(;t;){if(this.attemptFocus(t,!0)||this.focusFirstInteractive(t))return!0;t=t.nextElementSibling}},focusFirst(e){let t=e.firstElementChild;for(;t;){if(this.attemptFocus(t)||this.focusFirst(t))return!0;t=t.nextElementSibling}},focusLast(e){let t=e.lastElementChild;for(;t;){if(this.attemptFocus(t)||this.focusLast(t))return!0;t=t.previousElementSibling}}},W=Qn,as={LiveFileUpload:{activeRefs(){return this.el.getAttribute(Wt)},preflightedRefs(){return this.el.getAttribute(Zt)},mounted(){this.js().ignoreAttributes(this.el,["value"]),this.preflightedWas=this.preflightedRefs()},updated(){let e=this.preflightedRefs();this.preflightedWas!==e&&(this.preflightedWas=e,e===""&&this.__view().cancelSubmit(this.el.form)),this.activeRefs()===""&&(this.el.value=null),this.el.dispatchEvent(new CustomEvent(mt))}},LiveImgPreview:{mounted(){this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute(le)),N.getEntryDataURL(this.inputEl,this.ref,e=>{this.url=e,this.el.src=e})},destroyed(){URL.revokeObjectURL(this.url)}},FocusWrap:{mounted(){this.focusStart=this.el.firstElementChild,this.focusEnd=this.el.lastElementChild,this.focusStart.addEventListener("focus",e=>{if(!e.relatedTarget||!this.el.contains(e.relatedTarget)){let t=e.target.nextElementSibling;W.attemptFocus(t)||W.focusFirst(t)}else W.focusLast(this.el)}),this.focusEnd.addEventListener("focus",e=>{if(!e.relatedTarget||!this.el.contains(e.relatedTarget)){let t=e.target.previousElementSibling;W.attemptFocus(t)||W.focusLast(t)}else W.focusFirst(this.el)}),this.el.contains(document.activeElement)||(this.el.addEventListener("phx:show-end",()=>this.el.focus()),window.getComputedStyle(this.el).display!=="none"&&W.focusFirst(this.el))}}},ls=e=>["HTML","BODY"].indexOf(e.nodeName.toUpperCase())>=0?null:["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>=0?e:ls(e.parentElement),Vi=e=>e?e.scrollTop:document.documentElement.scrollTop||document.body.scrollTop,ti=e=>e?e.getBoundingClientRect().bottom:window.innerHeight||document.documentElement.clientHeight,ii=e=>e?e.getBoundingClientRect().top:0,er=(e,t)=>{let i=e.getBoundingClientRect();return Math.ceil(i.top)>=ii(t)&&Math.ceil(i.left)>=0&&Math.floor(i.top)<=ti(t)},tr=(e,t)=>{let i=e.getBoundingClientRect();return Math.ceil(i.bottom)>=ii(t)&&Math.ceil(i.left)>=0&&Math.floor(i.bottom)<=ti(t)},Wi=(e,t)=>{let i=e.getBoundingClientRect();return Math.ceil(i.top)>=ii(t)&&Math.ceil(i.left)>=0&&Math.floor(i.top)<=ti(t)};as.InfiniteScroll={mounted(){this.scrollContainer=ls(this.el);let e=Vi(this.scrollContainer),t=!1,i=500,s=null,n=this.throttle(i,(a,l)=>{s=()=>!0,this.liveSocket.js().push(this.el,a,{value:{id:l.id,_overran:!0},callback:()=>{s=null}})}),r=this.throttle(i,(a,l)=>{s=()=>l.scrollIntoView({block:"start"}),this.liveSocket.js().push(this.el,a,{value:{id:l.id},callback:()=>{s=null,window.requestAnimationFrame(()=>{Wi(l,this.scrollContainer)||l.scrollIntoView({block:"start"})})}})}),o=this.throttle(i,(a,l)=>{s=()=>l.scrollIntoView({block:"end"}),this.liveSocket.js().push(this.el,a,{value:{id:l.id},callback:()=>{s=null,window.requestAnimationFrame(()=>{Wi(l,this.scrollContainer)||l.scrollIntoView({block:"end"})})}})});this.onScroll=a=>{let l=Vi(this.scrollContainer);if(s)return e=l,s();let h=this.findOverrunTarget(),d=this.el.getAttribute(this.liveSocket.binding("viewport-top")),p=this.el.getAttribute(this.liveSocket.binding("viewport-bottom")),m=this.el.lastElementChild,g=this.el.firstElementChild,u=le;u&&d&&!t&&h.top>=0?(t=!0,n(d,g)):v&&t&&h.top<=0&&(t=!1),d&&u&&er(g,this.scrollContainer)?r(d,g):p&&v&&tr(m,this.scrollContainer)&&o(p,m),e=l},this.scrollContainer?this.scrollContainer.addEventListener("scroll",this.onScroll):window.addEventListener("scroll",this.onScroll)},destroyed(){this.scrollContainer?this.scrollContainer.removeEventListener("scroll",this.onScroll):window.removeEventListener("scroll",this.onScroll)},throttle(e,t){let i=0,s;return(...n)=>{let r=Date.now(),o=e-(r-i);o<=0||o>e?(s&&(clearTimeout(s),s=null),i=r,t(...n)):s||(s=setTimeout(()=>{i=Date.now(),s=null,t(...n)},o))}},findOverrunTarget(){let e,t=this.el.getAttribute(this.liveSocket.binding(Rn));if(t){let i=document.getElementById(t);if(i)e=i.getBoundingClientRect();else throw new Error("did not find element with id "+t)}else e=this.el.getBoundingClientRect();return e}};var ir=as,Gt=class{static onUnlock(e,t){if(!c.isLocked(e)&&!e.closest(`[${M}]`))return t();let i=e.closest(`[${M}]`),s=i.closest(`[${M}]`).getAttribute(M);i.addEventListener(`phx:undo-lock:${s}`,()=>{t()},{once:!0})}constructor(e){this.el=e,this.loadingRef=e.hasAttribute(Ne)?parseInt(e.getAttribute(Ne),10):null,this.lockRef=e.hasAttribute(M)?parseInt(e.getAttribute(M),10):null}maybeUndo(e,t,i){if(!this.isWithin(e)){c.updatePrivate(this.el,xi,[],s=>(s.push(e),s));return}this.undoLocks(e,t,i),this.undoLoading(e,t),c.updatePrivate(this.el,xi,[],s=>s.filter(n=>{let r={detail:{ref:n,event:t},bubbles:!0,cancelable:!1};return this.loadingRef&&this.loadingRef>n&&this.el.dispatchEvent(new CustomEvent(`phx:undo-loading:${n}`,r)),this.lockRef&&this.lockRef>n&&this.el.dispatchEvent(new CustomEvent(`phx:undo-lock:${n}`,r)),n>e})),this.isFullyResolvedBy(e)&&this.el.removeAttribute(J)}isWithin(e){return!(this.loadingRef!==null&&this.loadingRef>e&&this.lockRef!==null&&this.lockRef>e)}undoLocks(e,t,i){if(!this.isLockUndoneBy(e))return;let s=c.private(this.el,M);s&&(i(s),c.deletePrivate(this.el,M)),this.el.removeAttribute(M);let n={detail:{ref:e,event:t},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-lock:${this.lockRef}`,n))}undoLoading(e,t){if(!this.isLoadingUndoneBy(e)){this.canUndoLoading(e)&&this.el.classList.contains("phx-submit-loading")&&this.el.classList.remove("phx-change-loading");return}if(this.canUndoLoading(e)){this.el.removeAttribute(Ne);let i=this.el.getAttribute(Oe),s=this.el.getAttribute(zt);s!==null&&(this.el.readOnly=s==="true",this.el.removeAttribute(zt)),i!==null&&(this.el.disabled=i==="true",this.el.removeAttribute(Oe));let n=this.el.getAttribute(wt);n!==null&&(this.el.textContent=n,this.el.removeAttribute(wt));let r={detail:{ref:e,event:t},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-loading:${this.loadingRef}`,r))}is.forEach(i=>{(i!=="phx-submit-loading"||this.canUndoLoading(e))&&c.removeClass(this.el,i)})}isLoadingUndoneBy(e){return this.loadingRef===null?!1:this.loadingRef<=e}isLockUndoneBy(e){return this.lockRef===null?!1:this.lockRef<=e}isFullyResolvedBy(e){return(this.loadingRef===null||this.loadingRef<=e)&&(this.lockRef===null||this.lockRef<=e)}canUndoLoading(e){return this.lockRef===null||this.lockRef<=e}},sr=class{constructor(e,t,i){let s=new Set,n=new Set([...t.children].map(o=>o.id)),r=[];Array.from(e.children).forEach(o=>{if(o.id&&(s.add(o.id),n.has(o.id))){let a=o.previousElementSibling&&o.previousElementSibling.id;r.push({elementId:o.id,previousElementId:a})}}),this.containerId=t.id,this.updateType=i,this.elementsToModify=r,this.elementIdsToAdd=[...n].filter(o=>!s.has(o))}perform(){let e=c.byId(this.containerId);e&&(this.elementsToModify.forEach(t=>{t.previousElementId?Me(document.getElementById(t.previousElementId),i=>{Me(document.getElementById(t.elementId),s=>{s.previousElementSibling&&s.previousElementSibling.id==i.id||i.insertAdjacentElement("afterend",s)})}):Me(document.getElementById(t.elementId),i=>{i.previousElementSibling==null||e.insertAdjacentElement("afterbegin",i)})}),this.updateType=="prepend"&&this.elementIdsToAdd.reverse().forEach(t=>{Me(document.getElementById(t),i=>e.insertAdjacentElement("afterbegin",i))}))}},qi=11;function nr(e,t){var i=t.attributes,s,n,r,o,a;if(!(t.nodeType===qi||e.nodeType===qi)){for(var l=i.length-1;l>=0;l--)s=i[l],n=s.name,r=s.namespaceURI,o=s.value,r?(n=s.localName||n,a=e.getAttributeNS(r,n),a!==o&&(s.prefix==="xmlns"&&(n=s.name),e.setAttributeNS(r,n,o))):(a=e.getAttribute(n),a!==o&&e.setAttribute(n,o));for(var h=e.attributes,d=h.length-1;d>=0;d--)s=h[d],n=s.name,r=s.namespaceURI,r?(n=s.localName||n,t.hasAttributeNS(r,n)||e.removeAttributeNS(r,n)):t.hasAttribute(n)||e.removeAttribute(n)}}var dt,rr="http://www.w3.org/1999/xhtml",U=typeof document>"u"?void 0:document,or=!!U&&"content"in U.createElement("template"),ar=!!U&&U.createRange&&"createContextualFragment"in U.createRange();function lr(e){var t=U.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}function hr(e){dt||(dt=U.createRange(),dt.selectNode(U.body));var t=dt.createContextualFragment(e);return t.childNodes[0]}function cr(e){var t=U.createElement("body");return t.innerHTML=e,t.childNodes[0]}function dr(e){return e=e.trim(),or?lr(e):ar?hr(e):cr(e)}function ut(e,t){var i=e.nodeName,s=t.nodeName,n,r;return i===s?!0:(n=i.charCodeAt(0),r=s.charCodeAt(0),n<=90&&r>=97?i===s.toUpperCase():r<=90&&n>=97?s===i.toUpperCase():!1)}function ur(e,t){return!t||t===rr?U.createElement(e):U.createElementNS(t,e)}function fr(e,t){for(var i=e.firstChild;i;){var s=i.nextSibling;t.appendChild(i),i=s}return t}function Bt(e,t,i){e[i]!==t[i]&&(e[i]=t[i],e[i]?e.setAttribute(i,""):e.removeAttribute(i))}var Ki={OPTION:function(e,t){var i=e.parentNode;if(i){var s=i.nodeName.toUpperCase();s==="OPTGROUP"&&(i=i.parentNode,s=i&&i.nodeName.toUpperCase()),s==="SELECT"&&!i.hasAttribute("multiple")&&(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),i.selectedIndex=-1)}Bt(e,t,"selected")},INPUT:function(e,t){Bt(e,t,"checked"),Bt(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var i=t.value;e.value!==i&&(e.value=i);var s=e.firstChild;if(s){var n=s.nodeValue;if(n==i||!i&&n==e.placeholder)return;s.nodeValue=i}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var i=-1,s=0,n=e.firstChild,r,o;n;)if(o=n.nodeName&&n.nodeName.toUpperCase(),o==="OPTGROUP")r=n,n=r.firstChild,n||(n=r.nextSibling,r=null);else{if(o==="OPTION"){if(n.hasAttribute("selected")){i=s;break}s++}n=n.nextSibling,!n&&r&&(n=r.nextSibling,r=null)}e.selectedIndex=i}}},Ge=1,Ji=11,zi=3,Xi=8;function pe(){}function pr(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}function mr(e){return function(i,s,n){if(n||(n={}),typeof s=="string")if(i.nodeName==="#document"||i.nodeName==="HTML"){var r=s;s=U.createElement("html"),s.innerHTML=r}else if(i.nodeName==="BODY"){var o=s;s=U.createElement("html"),s.innerHTML=o;var a=s.querySelector("body");a&&(s=a)}else s=dr(s);else s.nodeType===Ji&&(s=s.firstElementChild);var l=n.getNodeKey||pr,h=n.onBeforeNodeAdded||pe,d=n.onNodeAdded||pe,p=n.onBeforeElUpdated||pe,m=n.onElUpdated||pe,g=n.onBeforeNodeDiscarded||pe,u=n.onNodeDiscarded||pe,v=n.onBeforeElChildrenUpdated||pe,y=n.skipFromChildren||pe,L=n.addChild||function(S,A){return S.appendChild(A)},$=n.childrenOnly===!0,w=Object.create(null),k=[];function T(S){k.push(S)}function H(S,A){if(S.nodeType===Ge)for(var O=S.firstChild;O;){var x=void 0;A&&(x=l(O))?T(x):(u(O),O.firstChild&&H(O,A)),O=O.nextSibling}}function f(S,A,O){g(S)!==!1&&(A&&A.removeChild(S),u(S),H(S,O))}function b(S){if(S.nodeType===Ge||S.nodeType===Ji)for(var A=S.firstChild;A;){var O=l(A);O&&(w[O]=A),b(A),A=A.nextSibling}}b(i);function C(S){d(S);for(var A=S.firstChild;A;){var O=A.nextSibling,x=l(A);if(x){var R=w[x];R&&ut(A,R)?(A.parentNode.replaceChild(R,A),E(R,A)):C(A)}else C(A);A=O}}function j(S,A,O){for(;A;){var x=A.nextSibling;(O=l(A))?T(O):f(A,S,!0),A=x}}function E(S,A,O){var x=l(A);if(x&&delete w[x],!O){var R=p(S,A);if(R===!1||(R instanceof HTMLElement&&(S=R,b(S)),e(S,A),m(S),v(S,A)===!1))return}S.nodeName!=="TEXTAREA"?q(S,A):Ki.TEXTAREA(S,A)}function q(S,A){var O=y(S,A),x=A.firstChild,R=S.firstChild,_e,ne,xe,st,de;e:for(;x;){for(st=x.nextSibling,_e=l(x);!O&&R;){if(xe=R.nextSibling,x.isSameNode&&x.isSameNode(R)){x=st,R=xe;continue e}ne=l(R);var nt=R.nodeType,ue=void 0;if(nt===x.nodeType&&(nt===Ge?(_e?_e!==ne&&((de=w[_e])?xe===de?ue=!1:(S.insertBefore(de,R),ne?T(ne):f(R,S,!0),R=de,ne=l(R)):ue=!1):ne&&(ue=!1),ue=ue!==!1&&ut(R,x),ue&&E(R,x)):(nt===zi||nt==Xi)&&(ue=!0,R.nodeValue!==x.nodeValue&&(R.nodeValue=x.nodeValue))),ue){x=st,R=xe;continue e}ne?T(ne):f(R,S,!0),R=xe}if(_e&&(de=w[_e])&&ut(de,x))O||L(S,de),E(de,x);else{var Ot=h(x);Ot!==!1&&(Ot&&(x=Ot),x.actualize&&(x=x.actualize(S.ownerDocument||U)),L(S,x),C(x))}x=st,R=xe}j(S,R,ne);var ki=Ki[S.nodeName];ki&&ki(S,A)}var _=i,Ce=_.nodeType,Ai=s.nodeType;if(!$){if(Ce===Ge)Ai===Ge?ut(i,s)||(u(i),_=fr(i,ur(s.nodeName,s.namespaceURI))):_=s;else if(Ce===zi||Ce===Xi){if(Ai===Ce)return _.nodeValue!==s.nodeValue&&(_.nodeValue=s.nodeValue),_;_=s}}if(_===s)u(i);else{if(s.isSameNode&&s.isSameNode(_))return;if(E(_,s,$),k)for(var It=0,on=k.length;Iti(...t))}trackAfter(e,...t){this.callbacks[`after${e}`].forEach(i=>i(...t))}markPrunableContentForRemoval(){let e=this.liveSocket.binding(Et);c.all(this.container,`[${e}=append] > *, [${e}=prepend] > *`,t=>{t.setAttribute(Pi,"")})}perform(e){let{view:t,liveSocket:i,html:s,container:n}=this,r=this.targetContainer;if(this.isCIDPatch()&&!this.targetContainer)return;if(this.isCIDPatch()){let w=r.closest(`[${M}]`);if(w&&!w.isSameNode(r)){let k=c.private(w,M);k&&(r=k.querySelector(`[data-phx-component="${this.targetCID}"]`))}}let o=i.getActiveElement(),{selectionStart:a,selectionEnd:l}=o&&c.hasSelectionRange(o)?o:{},h=i.binding(Et),d=i.binding(qt),p=i.binding(Kt),m=i.binding(Ln),g=[],u=[],v=[],y=[],L=null,$=(w,k,T=this.withChildren)=>{let H={childrenOnly:w.getAttribute(ee)===null&&!T,getNodeKey:f=>c.isPhxDestroyed(f)?null:e?f.id:f.id||f.getAttribute&&f.getAttribute(rs),skipFromChildren:f=>f.getAttribute(h)===gt,addChild:(f,b)=>{let{ref:C,streamAt:j}=this.getStreamInsert(b);if(C===void 0)return f.appendChild(b);if(this.setStreamRef(b,C),j===0)f.insertAdjacentElement("afterbegin",b);else if(j===-1){let E=f.lastElementChild;if(E&&!E.hasAttribute(qe)){let q=Array.from(f.children).find(_=>!_.hasAttribute(qe));f.insertBefore(b,q)}else f.appendChild(b)}else if(j>0){let E=Array.from(f.children)[j];f.insertBefore(b,E)}},onBeforeNodeAdded:f=>{if(this.getStreamInsert(f)?.updateOnly&&!this.streamComponentRestore[f.id])return!1;c.maintainPrivateHooks(f,f,d,p),this.trackBefore("added",f);let b=f;return this.streamComponentRestore[f.id]&&(b=this.streamComponentRestore[f.id],delete this.streamComponentRestore[f.id],$(b,f,!0)),b},onNodeAdded:f=>{f.getAttribute&&this.maybeReOrderStream(f,!0),c.isPortalTemplate(f)&&y.push(()=>this.teleport(f,$)),f instanceof HTMLImageElement&&f.srcset?f.srcset=f.srcset:f instanceof HTMLVideoElement&&f.autoplay&&f.play(),c.isNowTriggerFormExternal(f,m)&&(L=f),(c.isPhxChild(f)&&t.ownsElement(f)||c.isPhxSticky(f)&&t.ownsElement(f.parentNode))&&this.trackAfter("phxChildAdded",f),f.nodeName==="SCRIPT"&&f.hasAttribute(vt)&&this.handleRuntimeHook(f,k),g.push(f)},onNodeDiscarded:f=>this.onNodeDiscarded(f),onBeforeNodeDiscarded:f=>{if(f.getAttribute&&f.getAttribute(Pi)!==null)return!0;if(f.parentElement!==null&&f.id&&c.isPhxUpdate(f.parentElement,h,[gt,"append","prepend"])||f.getAttribute&&f.getAttribute(ke)||this.maybePendingRemove(f)||this.skipCIDSibling(f))return!1;if(c.isPortalTemplate(f)){let b=document.getElementById(f.content.firstElementChild.id);b&&(b.remove(),H.onNodeDiscarded(b),this.view.dropPortalElementId(b.id))}return!0},onElUpdated:f=>{c.isNowTriggerFormExternal(f,m)&&(L=f),u.push(f),this.maybeReOrderStream(f,!1)},onBeforeElUpdated:(f,b)=>{if(f.id&&f.isSameNode(w)&&f.id!==b.id)return H.onNodeDiscarded(f),f.replaceWith(b),H.onNodeAdded(b);if(c.syncPendingAttrs(f,b),c.maintainPrivateHooks(f,b,d,p),c.cleanChildNodes(b,h),this.skipCIDSibling(b))return this.maybeReOrderStream(f),!1;if(c.isPhxSticky(f))return[te,Se,ae].map(E=>[E,f.getAttribute(E),b.getAttribute(E)]).forEach(([E,q,_])=>{_&&q!==_&&f.setAttribute(E,_)}),!1;if(c.isIgnored(f,h)||f.form&&f.form.isSameNode(L))return this.trackBefore("updated",f,b),c.mergeAttrs(f,b,{isIgnored:c.isIgnored(f,h)}),u.push(f),c.applyStickyOperations(f),!1;if(f.type==="number"&&f.validity&&f.validity.badInput)return!1;let C=o&&f.isSameNode(o)&&c.isFormInput(f),j=C&&this.isChangedSelect(f,b);if(f.hasAttribute(J)){let E=new Gt(f);if(E.lockRef&&(!this.undoRef||!E.isLockUndoneBy(this.undoRef))){c.applyStickyOperations(f);let _=f.hasAttribute(M)?c.private(f,M)||f.cloneNode(!0):null;_&&(c.putPrivate(f,M,_),C||(f=_))}}if(c.isPhxChild(b)){let E=f.getAttribute(te);return c.mergeAttrs(f,b,{exclude:[Se]}),E!==""&&f.setAttribute(te,E),f.setAttribute(ae,this.rootID),c.applyStickyOperations(f),!1}return this.undoRef&&c.private(b,M)&&c.putPrivate(f,M,c.private(b,M)),c.copyPrivates(b,f),c.isPortalTemplate(b)?(y.push(()=>this.teleport(b,$)),f.content.replaceChildren(b.content.cloneNode(!0)),!1):C&&f.type!=="hidden"&&!j?(this.trackBefore("updated",f,b),c.mergeFocusedInput(f,b),c.syncAttrsToProps(f),u.push(f),c.applyStickyOperations(f),!1):(j&&f.blur(),c.isPhxUpdate(b,h,["append","prepend"])&&v.push(new sr(f,b,b.getAttribute(h))),c.syncAttrsToProps(b),c.applyStickyOperations(b),this.trackBefore("updated",f,b),f)}};Yt(w,k,H)};if(this.trackBefore("added",n),this.trackBefore("updated",n,n),i.time("morphdom",()=>{this.streams.forEach(([k,T,H,f])=>{T.forEach(([b,C,j,E])=>{this.streamInserts[b]={ref:k,streamAt:C,limit:j,reset:f,updateOnly:E}}),f!==void 0&&c.all(document,`[${qe}="${k}"]`,b=>{this.removeStreamChildElement(b)}),H.forEach(b=>{let C=document.getElementById(b);C&&this.removeStreamChildElement(C)})}),e&&c.all(this.container,`[${h}=${gt}]`).filter(k=>this.view.ownsElement(k)).forEach(k=>{Array.from(k.children).forEach(T=>{this.removeStreamChildElement(T,!0)})}),$(r,s);let w=0;for(;y.length>0&&w<5;){let k=y.slice();y=[],k.forEach(T=>T()),w++}this.view.portalElementIds.forEach(k=>{let T=document.getElementById(k);T&&(document.getElementById(T.getAttribute(me))||(T.remove(),this.onNodeDiscarded(T),this.view.dropPortalElementId(k)))})}),i.isDebugEnabled()&&(qn(),Kn(this.streamInserts),Array.from(document.querySelectorAll("input[name=id]")).forEach(w=>{w instanceof HTMLInputElement&&w.form&&console.error(`Detected an input with name="id" inside a form! This will cause problems when patching the DOM. -`,w)})),v.length>0&&i.time("post-morph append/prepend restoration",()=>{v.forEach(w=>w.perform())}),i.silenceEvents(()=>c.restoreFocus(o,a,l)),c.dispatchEvent(document,"phx:update"),g.forEach(w=>this.trackAfter("added",w)),u.forEach(w=>this.trackAfter("updated",w)),this.transitionPendingRemoves(),L){i.unload();let w=c.private(L,"submitter");if(w&&w.name&&r.contains(w)){let k=document.createElement("input");k.type="hidden";let T=w.getAttribute("form");T&&k.setAttribute("form",T),k.name=w.name,k.value=w.value,w.parentElement.insertBefore(k,w)}Object.getPrototypeOf(L).submit.call(L)}return!0}onNodeDiscarded(e){(c.isPhxChild(e)||c.isPhxSticky(e))&&this.liveSocket.destroyViewByEl(e),this.trackAfter("discarded",e)}maybePendingRemove(e){return e.getAttribute&&e.getAttribute(this.phxRemove)!==null?(this.pendingRemoves.push(e),!0):!1}removeStreamChildElement(e,t=!1){!t&&!this.view.ownsElement(e)||(this.streamInserts[e.id]?(this.streamComponentRestore[e.id]=e,e.remove()):this.maybePendingRemove(e)||(e.remove(),this.onNodeDiscarded(e)))}getStreamInsert(e){return(e.id?this.streamInserts[e.id]:{})||{}}setStreamRef(e,t){c.putSticky(e,qe,i=>i.setAttribute(qe,t))}maybeReOrderStream(e,t){let{ref:i,streamAt:s,reset:n}=this.getStreamInsert(e);if(s!==void 0&&(this.setStreamRef(e,i),!(!n&&!t)&&e.parentElement)){if(s===0)e.parentElement.insertBefore(e,e.parentElement.firstElementChild);else if(s>0){let r=Array.from(e.parentElement.children),o=r.indexOf(e);if(s>=r.length-1)e.parentElement.appendChild(e);else{let a=r[s];o>s?e.parentElement.insertBefore(e,a):e.parentElement.insertBefore(e,a.nextElementSibling)}}this.maybeLimitStream(e)}}maybeLimitStream(e){let{limit:t}=this.getStreamInsert(e),i=t!==null&&Array.from(e.parentElement.children);t&&t<0&&i.length>t*-1?i.slice(0,i.length+t).forEach(s=>this.removeStreamChildElement(s)):t&&t>=0&&i.length>t&&i.slice(t).forEach(s=>this.removeStreamChildElement(s))}transitionPendingRemoves(){let{pendingRemoves:e,liveSocket:t}=this;e.length>0&&t.transitionRemoves(e,()=>{e.forEach(i=>{let s=c.firstPhxChild(i);s&&t.destroyViewByEl(s),i.remove()}),this.trackAfter("transitionsDiscarded",e)})}isChangedSelect(e,t){return!(e instanceof HTMLSelectElement)||e.multiple?!1:e.options.length!==t.options.length?!0:(t.value=e.value,!e.isEqualNode(t))}isCIDPatch(){return this.cidPatch}skipCIDSibling(e){return e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute(ns)}targetCIDContainer(e){if(!this.isCIDPatch())return;let[t,...i]=c.findComponentNodeList(this.view.id,this.targetCID);return i.length===0&&c.childNodeLength(e)===1?t:t&&t.parentNode}indexOf(e,t){return Array.from(e.children).indexOf(t)}teleport(e,t){let i=e.getAttribute(ei),s=document.querySelector(i);if(!s)throw new Error("portal target with selector "+i+" not found");let n=e.content.firstElementChild;if(this.skipCIDSibling(n))return;if(!n?.id)throw new Error("phx-portal template must have a single root element with ID!");let r=document.getElementById(n.id),o;r?(s.contains(r)||s.appendChild(r),o=r):(o=document.createElement(n.tagName),s.appendChild(o)),n.setAttribute(ke,this.view.id),n.setAttribute(me,e.id),t(o,n,!0),n.removeAttribute(ke),n.removeAttribute(me),this.view.pushPortalElementId(n.id)}handleRuntimeHook(e,t){let i=e.getAttribute(vt),s=e.hasAttribute("nonce")?e.getAttribute("nonce"):null;if(e.hasAttribute("nonce")){let r=document.createElement("template");r.innerHTML=t,s=r.content.querySelector(`script[${vt}="${CSS.escape(i)}"]`).getAttribute("nonce")}let n=document.createElement("script");n.textContent=e.textContent,c.mergeAttrs(n,e,{isIgnored:!1}),s&&(n.nonce=s),e.replaceWith(n),e=n}},vr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),br=new Set(["'",'"']),Gi=(e,t,i)=>{let s=0,n=!1,r,o,a,l,h,d,p=e.match(/^(\s*(?:\s*)*)<([^\s\/>]+)/);if(p===null)throw new Error(`malformed html ${e}`);for(s=p[0].length,r=p[1],a=p[2],l=s,s;s";s++)if(e.charAt(s)==="="){let u=e.slice(s-3,s)===" id";s++;let v=e.charAt(s);if(br.has(v)){let y=s;for(s++,s;s=r.length+a.length;){let u=e.charAt(m);if(n)u==="-"&&e.slice(m-3,m)===""&&e.slice(m-2,m)==="--")n=!0,m-=3;else{if(u===">")break;m-=1}}o=e.slice(m+1,e.length);let g=Object.keys(t).map(u=>t[u]===!0?u:`${u}="${t[u]}"`).join(" ");if(i){let u=h?` id="${h}"`:"";vr.has(a)?d=`<${a}${u}${g===""?"":" "}${g}/>`:d=`<${a}${u}${g===""?"":" "}${g}>`}else{let u=e.slice(l,m+1);d=`<${a}${g===""?"":" "}${g}${u}`}return[d,r,o]},Yi=class{static extract(e){let{[Ui]:t,[Fi]:i,[ji]:s}=e;return delete e[Ui],delete e[Fi],delete e[ji],{diff:e,title:s,reply:t||null,events:i||[]}}constructor(e,t){this.viewId=e,this.rendered={},this.magicId=0,this.mergeDiff(t)}parentViewId(){return this.viewId}toString(e){let{buffer:t,streams:i}=this.recursiveToString(this.rendered,this.rendered[F],e,!0,{});return{buffer:t,streams:i}}recursiveToString(e,t=e[F],i,s,n){i=i?new Set(i):null;let r={buffer:"",components:t,onlyCids:i,streams:new Set};return this.toOutputBuffer(e,null,r,s,n),{buffer:r.buffer,streams:r.streams}}componentCIDs(e){return Object.keys(e[F]||{}).map(t=>parseInt(t))}isComponentOnlyDiff(e){return e[F]?Object.keys(e).length===1:!1}getComponent(e,t){return e[F][t]}resetRender(e){this.rendered[F][e]&&(this.rendered[F][e].reset=!0)}mergeDiff(e){let t=e[F],i={};if(delete e[F],this.rendered=this.mutableMerge(this.rendered,e),this.rendered[F]=this.rendered[F]||{},t){let s=this.rendered[F];for(let n in t)t[n]=this.cachedFindComponent(n,t[n],s,t,i);for(let n in t)s[n]=t[n];e[F]=t}}cachedFindComponent(e,t,i,s,n){if(n[e])return n[e];{let r,o,a=t[K];if(oe(a)){let l;a>0?l=this.cachedFindComponent(a,s[a],i,s,n):l=i[-a],o=l[K],r=this.cloneMerge(l,t,!0),r[K]=o}else r=t[K]!==void 0||i[e]===void 0?t:this.cloneMerge(i[e],t,!1);return n[e]=r,r}}mutableMerge(e,t){return t[K]!==void 0?t:(this.doMutableMerge(e,t),e)}doMutableMerge(e,t){if(t[D])this.mergeKeyed(e,t);else for(let i in t){let s=t[i],n=e[i];De(s)&&s[K]===void 0&&De(n)?this.doMutableMerge(n,s):e[i]=s}e[jt]&&(e.newRender=!0)}clone(e){return"structuredClone"in window?structuredClone(e):JSON.parse(JSON.stringify(e))}mergeKeyed(e,t){let i=this.clone(e);if(Object.entries(t[D]).forEach(([s,n])=>{if(s!==Q)if(Array.isArray(n)){let[r,o]=n;e[D][s]=i[D][r],this.doMutableMerge(e[D][s],o)}else if(typeof n=="number"){let r=n;e[D][s]=i[D][r]}else typeof n=="object"&&(e[D][s]||(e[D][s]={}),this.doMutableMerge(e[D][s],n))}),t[D][Q]delete this.rendered[F][t])}get(){return this.rendered}isNewFingerprint(e={}){return!!e[K]}templateStatic(e,t){return typeof e=="number"?t[e]:e}nextMagicID(){return this.magicId++,`m${this.magicId}-${this.parentViewId()}`}toOutputBuffer(e,t,i,s,n={}){if(e[D])return this.comprehensionToBuffer(e,t,i,s);e[fe]&&(t=e[fe],delete e[fe]);let{[K]:r}=e;r=this.templateStatic(r,t),e[K]=r;let o=e[jt],a=i.buffer;o&&(i.buffer=""),s&&o&&!e.magicId&&(e.newRender=!0,e.magicId=this.nextMagicID()),i.buffer+=r[0];for(let l=1;l0||h.length>0||d)&&(delete e[Ie],e[D]={[Q]:0},i.streams.add(o))}}dynamicToBuffer(e,t,i,s){if(typeof e=="number"){let{buffer:n,streams:r}=this.recursiveCIDToString(i.components,e,i.onlyCids);i.buffer+=n,i.streams=new Set([...i.streams,...r])}else De(e)?this.toOutputBuffer(e,t,i,s,{}):i.buffer+=e}recursiveCIDToString(e,t,i){let s=e[t]||I(`no component for CID ${t}`,e),n={[ee]:t,[He]:this.viewId},r=i&&!i.has(t);s.newRender=!r,s.magicId=`c${t}-${this.parentViewId()}`;let o=!s.reset,{buffer:a,streams:l}=this.recursiveToString(s,e,i,o,n);return delete s.reset,{buffer:a,streams:l}}},Zi=[],Qi=200,yr={exec(e,t,i,s,n,r){let[o,a]=r||[null,{callback:r&&r.callback}];(i.charAt(0)==="["?JSON.parse(i):[[o,a]]).forEach(([h,d])=>{h===o&&(d={...a,...d},d.callback=d.callback||a.callback),this.filterToEls(s.liveSocket,n,d).forEach(p=>{this[`exec_${h}`](e,t,i,s,n,p,d)})})},isVisible(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length>0)},isInViewport(e){let t=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,s=window.innerWidth||document.documentElement.clientWidth;return t.right>0&&t.bottom>0&&t.left{a.done=p});s.liveSocket.asyncTransition(d)}c.dispatchEvent(r,o,{detail:a,bubbles:l})},exec_push(e,t,i,s,n,r,o){let{event:a,data:l,target:h,page_loading:d,loading:p,value:m,dispatcher:g,callback:u}=o,v={loading:p,value:m,target:h,page_loading:!!d,originalEvent:e},y=t==="change"&&g?g:n,L=h||y.getAttribute(s.binding("target"))||y,$=(w,k)=>{if(w.isConnected())if(t==="change"){let{newCid:T,_target:H}=o;H=H||(c.isFormInput(n)?n.name:void 0),H&&(v._target=H),w.pushInput(n,k,T,a||i,v,u)}else if(t==="submit"){let{submitter:T}=o;w.submitForm(n,k,a||i,T,v,u)}else w.pushEvent(t,n,k,a||i,l,v,u)};o.targetView&&o.targetCtx?$(o.targetView,o.targetCtx):s.withinTargets(L,$)},exec_navigate(e,t,i,s,n,r,{href:o,replace:a}){s.liveSocket.historyRedirect(e,o,a?"replace":"push",null,n)},exec_patch(e,t,i,s,n,r,{href:o,replace:a}){s.liveSocket.pushHistoryPatch(e,o,a?"replace":"push",n)},exec_focus(e,t,i,s,n,r){W.attemptFocus(r),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>W.attemptFocus(r))})},exec_focus_first(e,t,i,s,n,r){W.focusFirstInteractive(r)||W.focusFirst(r),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>W.focusFirstInteractive(r)||W.focusFirst(r))})},exec_push_focus(e,t,i,s,n,r){Zi.push(r||n)},exec_pop_focus(e,t,i,s,n,r){let o=Zi.pop();o&&(o.focus(),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>o.focus())}))},exec_add_class(e,t,i,s,n,r,{names:o,transition:a,time:l,blocking:h}){this.addOrRemoveClasses(r,o,[],a,l,s,h)},exec_remove_class(e,t,i,s,n,r,{names:o,transition:a,time:l,blocking:h}){this.addOrRemoveClasses(r,[],o,a,l,s,h)},exec_toggle_class(e,t,i,s,n,r,{names:o,transition:a,time:l,blocking:h}){this.toggleClasses(r,o,a,l,s,h)},exec_toggle_attr(e,t,i,s,n,r,{attr:[o,a,l]}){this.toggleAttr(r,o,a,l)},exec_ignore_attrs(e,t,i,s,n,r,{attrs:o}){this.ignoreAttrs(r,o)},exec_transition(e,t,i,s,n,r,{time:o,transition:a,blocking:l}){this.addOrRemoveClasses(r,[],[],a,o,s,l)},exec_toggle(e,t,i,s,n,r,{display:o,ins:a,outs:l,time:h,blocking:d}){this.toggle(t,s,r,o,a,l,h,d)},exec_show(e,t,i,s,n,r,{display:o,transition:a,time:l,blocking:h}){this.show(t,s,r,o,a,l,h)},exec_hide(e,t,i,s,n,r,{display:o,transition:a,time:l,blocking:h}){this.hide(t,s,r,o,a,l,h)},exec_set_attr(e,t,i,s,n,r,{attr:[o,a]}){this.setOrRemoveAttrs(r,[[o,a]],[])},exec_remove_attr(e,t,i,s,n,r,{attr:o}){this.setOrRemoveAttrs(r,[],[o])},ignoreAttrs(e,t){c.putPrivate(e,"JS:ignore_attrs",{apply:(i,s)=>{let n=Array.from(i.attributes),r=n.map(o=>o.name);Array.from(s.attributes).filter(o=>!r.includes(o.name)).forEach(o=>{c.attributeIgnored(o,t)&&s.removeAttribute(o.name)}),n.forEach(o=>{c.attributeIgnored(o,t)&&s.setAttribute(o.name,o.value)})}})},onBeforeElUpdated(e,t){let i=c.private(e,"JS:ignore_attrs");i&&i.apply(e,t)},show(e,t,i,s,n,r,o){this.isVisible(i)||this.toggle(e,t,i,s,n,null,r,o)},hide(e,t,i,s,n,r,o){this.isVisible(i)&&this.toggle(e,t,i,s,null,n,r,o)},toggle(e,t,i,s,n,r,o,a){o=o||Qi;let[l,h,d]=n||[[],[],[]],[p,m,g]=r||[[],[],[]];if(l.length>0||p.length>0)if(this.isVisible(i)){let u=()=>{this.addOrRemoveClasses(i,m,l.concat(h).concat(d)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,p,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(i,g,m))})},v=()=>{this.addOrRemoveClasses(i,[],p.concat(g)),c.putSticky(i,"toggle",y=>y.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))};i.dispatchEvent(new Event("phx:hide-start")),a===!1?(u(),setTimeout(v,o)):t.transition(o,u,v)}else{if(e==="remove")return;let u=()=>{this.addOrRemoveClasses(i,h,p.concat(m).concat(g));let y=s||this.defaultDisplay(i);window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,l,[]),window.requestAnimationFrame(()=>{c.putSticky(i,"toggle",L=>L.style.display=y),this.addOrRemoveClasses(i,d,h)})})},v=()=>{this.addOrRemoveClasses(i,[],l.concat(d)),i.dispatchEvent(new Event("phx:show-end"))};i.dispatchEvent(new Event("phx:show-start")),a===!1?(u(),setTimeout(v,o)):t.transition(o,u,v)}else this.isVisible(i)?window.requestAnimationFrame(()=>{i.dispatchEvent(new Event("phx:hide-start")),c.putSticky(i,"toggle",u=>u.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))}):window.requestAnimationFrame(()=>{i.dispatchEvent(new Event("phx:show-start"));let u=s||this.defaultDisplay(i);c.putSticky(i,"toggle",v=>v.style.display=u),i.dispatchEvent(new Event("phx:show-end"))})},toggleClasses(e,t,i,s,n,r){window.requestAnimationFrame(()=>{let[o,a]=c.getSticky(e,"classes",[[],[]]),l=t.filter(d=>o.indexOf(d)<0&&!e.classList.contains(d)),h=t.filter(d=>a.indexOf(d)<0&&e.classList.contains(d));this.addOrRemoveClasses(e,l,h,i,s,n,r)})},toggleAttr(e,t,i,s){e.hasAttribute(t)?s!==void 0?e.getAttribute(t)===i?this.setOrRemoveAttrs(e,[[t,s]],[]):this.setOrRemoveAttrs(e,[[t,i]],[]):this.setOrRemoveAttrs(e,[],[t]):this.setOrRemoveAttrs(e,[[t,i]],[])},addOrRemoveClasses(e,t,i,s,n,r,o){n=n||Qi;let[a,l,h]=s||[[],[],[]];if(a.length>0){let d=()=>{this.addOrRemoveClasses(e,l,[].concat(a).concat(h)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(e,a,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(e,h,l))})},p=()=>this.addOrRemoveClasses(e,t.concat(h),i.concat(a).concat(l));o===!1?(d(),setTimeout(p,n)):r.transition(n,d,p);return}window.requestAnimationFrame(()=>{let[d,p]=c.getSticky(e,"classes",[[],[]]),m=t.filter(y=>d.indexOf(y)<0&&!e.classList.contains(y)),g=i.filter(y=>p.indexOf(y)<0&&e.classList.contains(y)),u=d.filter(y=>i.indexOf(y)<0).concat(m),v=p.filter(y=>t.indexOf(y)<0).concat(g);c.putSticky(e,"classes",y=>(y.classList.remove(...v),y.classList.add(...u),[u,v]))})},setOrRemoveAttrs(e,t,i){let[s,n]=c.getSticky(e,"attrs",[[],[]]),r=t.map(([l,h])=>l).concat(i),o=s.filter(([l,h])=>!r.includes(l)).concat(t),a=n.filter(l=>!r.includes(l)).concat(i);c.putSticky(e,"attrs",l=>(a.forEach(h=>l.removeAttribute(h)),o.forEach(([h,d])=>l.setAttribute(h,d)),[o,a]))},hasAllClasses(e,t){return t.every(i=>e.classList.contains(i))},isToggledOut(e,t){return!this.isVisible(e)||this.hasAllClasses(e,t)},filterToEls(e,t,{to:i}){let s=()=>{if(typeof i=="string")return document.querySelectorAll(i);if(i.closest){let n=t.closest(i.closest);return n?[n]:[]}else if(i.inner)return t.querySelectorAll(i.inner)};return i?e.jsQuerySelectorAll(t,i,s):[t]},defaultDisplay(e){return{tr:"table-row",td:"table-cell"}[e.tagName.toLowerCase()]||"block"},transitionClasses(e){if(!e)return null;let[t,i,s]=Array.isArray(e)?e:[e.split(" "),[],[]];return t=Array.isArray(t)?t:t.split(" "),i=Array.isArray(i)?i:i.split(" "),s=Array.isArray(s)?s:s.split(" "),[t,i,s]}},P=yr,hs=(e,t)=>({exec(i,s){e.execJS(i,s,t)},show(i,s={}){let n=e.owner(i);P.show(t,n,i,s.display,P.transitionClasses(s.transition),s.time,s.blocking)},hide(i,s={}){let n=e.owner(i);P.hide(t,n,i,null,P.transitionClasses(s.transition),s.time,s.blocking)},toggle(i,s={}){let n=e.owner(i),r=P.transitionClasses(s.in),o=P.transitionClasses(s.out);P.toggle(t,n,i,s.display,r,o,s.time,s.blocking)},addClass(i,s,n={}){let r=Array.isArray(s)?s:s.split(" "),o=e.owner(i);P.addOrRemoveClasses(i,r,[],P.transitionClasses(n.transition),n.time,o,n.blocking)},removeClass(i,s,n={}){let r=Array.isArray(s)?s:s.split(" "),o=e.owner(i);P.addOrRemoveClasses(i,[],r,P.transitionClasses(n.transition),n.time,o,n.blocking)},toggleClass(i,s,n={}){let r=Array.isArray(s)?s:s.split(" "),o=e.owner(i);P.toggleClasses(i,r,P.transitionClasses(n.transition),n.time,o,n.blocking)},transition(i,s,n={}){let r=e.owner(i);P.addOrRemoveClasses(i,[],[],P.transitionClasses(s),n.time,r,n.blocking)},setAttribute(i,s,n){P.setOrRemoveAttrs(i,[[s,n]],[])},removeAttribute(i,s){P.setOrRemoveAttrs(i,[],[s])},toggleAttribute(i,s,n,r){P.toggleAttr(i,s,n,r)},push(i,s,n={}){e.withinOwners(i,r=>{let o=n.value||{};delete n.value;let a=new CustomEvent("phx:exec",{detail:{sourceElement:i}});P.exec(a,t,s,r,i,["push",{data:o,...n}])})},navigate(i,s={}){let n=new CustomEvent("phx:exec");e.historyRedirect(n,i,s.replace?"replace":"push",null,null)},patch(i,s={}){let n=new CustomEvent("phx:exec");e.pushHistoryPatch(n,i,s.replace?"replace":"push",null)},ignoreAttributes(i,s){P.ignoreAttrs(i,Array.isArray(s)?s:[s])}}),Vt="hookId",es="deadHook",wr=1,ye=class cs{get liveSocket(){return this.__liveSocket()}static makeID(){return wr++}static elementID(t){return c.private(t,Vt)}static deadHook(t){return c.private(t,es)===!0}constructor(t,i,s){if(this.el=i,this.__attachView(t),this.__listeners=new Set,this.__isDisconnected=!1,c.putPrivate(this.el,Vt,cs.makeID()),t&&t.isDead&&c.putPrivate(this.el,es,!0),s){let n=new Set(["el","liveSocket","__view","__listeners","__isDisconnected","constructor","js","pushEvent","pushEventTo","handleEvent","removeHandleEvent","upload","uploadTo","__mounted","__updated","__beforeUpdate","__destroyed","__reconnected","__disconnected","__cleanup__"]);for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&(this[o]=s[o],n.has(o)&&console.warn(`Hook object for element #${i.id} overwrites core property '${o}'!`));["mounted","beforeUpdate","updated","destroyed","disconnected","reconnected"].forEach(o=>{s[o]&&typeof s[o]=="function"&&(this[o]=s[o])})}}__attachView(t){t?(this.__view=()=>t,this.__liveSocket=()=>t.liveSocket):(this.__view=()=>{throw new Error(`hook not yet attached to a live view: ${this.el.outerHTML}`)},this.__liveSocket=()=>{throw new Error(`hook not yet attached to a live view: ${this.el.outerHTML}`)})}mounted(){}beforeUpdate(){}updated(){}destroyed(){}disconnected(){}reconnected(){}__mounted(){this.mounted()}__updated(){this.updated()}__beforeUpdate(){this.beforeUpdate()}__destroyed(){this.destroyed(),c.deletePrivate(this.el,Vt)}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected()}js(){return{...hs(this.__view().liveSocket,"hook"),exec:t=>{this.__view().liveSocket.execJS(this.el,t,"hook")}}}pushEvent(t,i,s){let n=this.__view().pushHookEvent(this.el,null,t,i||{});if(s===void 0)return n.then(({reply:r})=>r);n.then(({reply:r,ref:o})=>s(r,o)).catch(()=>{})}pushEventTo(t,i,s,n){if(n===void 0){let r=[];this.__view().withinTargets(t,(a,l)=>{r.push({view:a,targetCtx:l})});let o=r.map(({view:a,targetCtx:l})=>a.pushHookEvent(this.el,l,i,s||{}));return Promise.allSettled(o)}this.__view().withinTargets(t,(r,o)=>{r.pushHookEvent(this.el,o,i,s||{}).then(({reply:a,ref:l})=>n(a,l)).catch(()=>{})})}handleEvent(t,i){let s={event:t,callback:n=>i(n.detail)};return window.addEventListener(`phx:${t}`,s.callback),this.__listeners.add(s),s}removeHandleEvent(t){window.removeEventListener(`phx:${t.event}`,t.callback),this.__listeners.delete(t)}upload(t,i){return this.__view().dispatchUploads(null,t,i)}uploadTo(t,i,s){return this.__view().withinTargets(t,(n,r)=>{n.dispatchUploads(r,i,s)})}__cleanup__(){this.__listeners.forEach(t=>this.removeHandleEvent(t))}},Er=(e,t)=>{let i=e.endsWith("[]"),s=i?e.slice(0,-2):e;return s=s.replace(/([^\[\]]+)(\]?$)/,`${t}$1$2`),i&&(s+="[]"),s},pt=(e,t,i=[])=>{let{submitter:s}=t,n;if(s&&s.name){let d=document.createElement("input");d.type="hidden";let p=s.getAttribute("form");p&&d.setAttribute("form",p),d.name=s.name,d.value=s.value,s.parentElement.insertBefore(d,s),n=d}let r=new FormData(e),o=[];r.forEach((d,p,m)=>{d instanceof File&&o.push(p)}),o.forEach(d=>r.delete(d));let a=new URLSearchParams,{inputsUnused:l,onlyHiddenInputs:h}=Array.from(e.elements).reduce((d,p)=>{let{inputsUnused:m,onlyHiddenInputs:g}=d,u=p.name;if(!u)return d;m[u]===void 0&&(m[u]=!0),g[u]===void 0&&(g[u]=!0);let v=c.private(p,yt)||c.private(p,Ye),y=p.type==="hidden";return m[u]=m[u]&&!v,g[u]=g[u]&&y,d},{inputsUnused:{},onlyHiddenInputs:{}});for(let[d,p]of r.entries())if(i.length===0||i.indexOf(d)>=0){let m=l[d],g=h[d];m&&!(s&&s.name==d)&&!g&&a.append(Er(d,"_unused_"),""),typeof p=="string"&&a.append(d,p)}return s&&n&&s.parentElement.removeChild(n),a.toString()},Sr=class ds{static closestView(t){let i=t.closest(Ze);return i?c.private(i,"view"):null}constructor(t,i,s,n,r){this.isDead=!1,this.liveSocket=i,this.flash=n,this.parent=s,this.root=s?s.root:this,this.el=t;let o=c.private(this.el,"view");if(o!==void 0&&o.isDead!==!0)throw I(`The DOM element for this view has already been bound to a view. +`),i.push(s))}),i.forEach(s=>s.remove())}},replaceRootContainer(e,t,i){let s=new Set(["id",te,Se,Qt,ae]);if(e.tagName.toLowerCase()===t.toLowerCase())return Array.from(e.attributes).filter(n=>!s.has(n.name.toLowerCase())).forEach(n=>e.removeAttribute(n.name)),Object.keys(i).filter(n=>!s.has(n.toLowerCase())).forEach(n=>e.setAttribute(n,i[n])),e;{let n=document.createElement(t);return Object.keys(i).forEach(r=>n.setAttribute(r,i[r])),s.forEach(r=>n.setAttribute(r,e.getAttribute(r))),n.innerHTML=e.innerHTML,e.replaceWith(n),n}},getSticky(e,t,i){let s=(we.private(e,"sticky")||[]).find(([n])=>t===n);if(s){let[n,r,o]=s;return o}else return typeof i=="function"?i():i},deleteSticky(e,t){this.updatePrivate(e,"sticky",[],i=>i.filter(([s,n])=>s!==t))},putSticky(e,t,i){let s=i(e);this.updatePrivate(e,"sticky",[],n=>{let r=n.findIndex(([o])=>t===o);return r>=0?n[r]=[t,i,s]:n.push([t,i,s]),n})},applyStickyOperations(e){let t=we.private(e,"sticky");t&&t.forEach(([i,s,n])=>this.putSticky(e,i,s))},isLocked(e){return e.hasAttribute&&e.hasAttribute(M)},attributeIgnored(e,t){return t.some(i=>e.name==i||i==="*"||i.includes("*")&&e.name.match(i)!=null)}},c=we,Xe=class{static isActive(e,t){let i=t._phxRef===void 0,n=e.getAttribute(Wt).split(",").indexOf(N.genFileRef(t))>=0;return t.size>0&&(i||n)}static isPreflighted(e,t){return e.getAttribute(Zt).split(",").indexOf(N.genFileRef(t))>=0&&this.isActive(e,t)}static isPreflightInProgress(e){return e._preflightInProgress===!0}static markPreflightInProgress(e){e._preflightInProgress=!0}constructor(e,t,i,s){this.ref=N.genFileRef(t),this.fileEl=e,this.file=t,this.view=i,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(mt,this._onElUpdated),this.autoUpload=s}metadata(){return this.meta}progress(e){this._progress=Math.floor(e),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{N.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}isCancelled(){return this._isCancelled}cancel(){this.file._preflightInProgress=!1,this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(e="failed"){this.fileEl.removeEventListener(mt,this._onElUpdated),this.view.pushFileProgress(this.fileEl,this.ref,{error:e}),this.isAutoUpload()||N.clearFiles(this.fileEl)}isAutoUpload(){return this.autoUpload}onDone(e){this._onDone=()=>{this.fileEl.removeEventListener(mt,this._onElUpdated),e()}}onElUpdated(){this.fileEl.getAttribute(Wt).split(",").indexOf(this.ref)===-1&&(N.untrackFile(this.fileEl,this.file),this.cancel())}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,relative_path:this.file.webkitRelativePath,size:this.file.size,type:this.file.type,ref:this.ref,meta:typeof this.file.meta=="function"?this.file.meta():void 0}}uploader(e){if(this.meta.uploader){let t=e[this.meta.uploader]||I(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:t}}else return{name:"channel",callback:Gn}}zipPostFlight(e){this.meta=e.entries[this.ref],this.meta||I(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:e})}},Qn=0,N=class Xt{static genFileRef(t){let i=t._phxRef;return i!==void 0?i:(t._phxRef=(Qn++).toString(),t._phxRef)}static getEntryDataURL(t,i,s){let n=this.activeFiles(t).find(r=>this.genFileRef(r)===i);s(URL.createObjectURL(n))}static hasUploadsInProgress(t){let i=0;return c.findUploadInputs(t).forEach(s=>{s.getAttribute(Zt)!==s.getAttribute(Rn)&&i++}),i>0}static serializeUploads(t){let i=this.activeFiles(t),s={};return i.forEach(n=>{let r={path:t.name},o=t.getAttribute(le);s[o]=s[o]||[],r.ref=this.genFileRef(n),r.last_modified=n.lastModified,r.name=n.name||r.ref,r.relative_path=n.webkitRelativePath,r.type=n.type,r.size=n.size,typeof n.meta=="function"&&(r.meta=n.meta()),s[o].push(r)}),s}static clearFiles(t){t.value=null,t.removeAttribute(le),c.putPrivate(t,"files",[])}static untrackFile(t,i){c.putPrivate(t,"files",c.private(t,"files").filter(s=>!Object.is(s,i)))}static trackFiles(t,i,s){if(t.getAttribute("multiple")!==null){let n=i.filter(r=>!this.activeFiles(t).find(o=>Object.is(o,r)));c.updatePrivate(t,"files",[],r=>r.concat(n)),t.value=null}else s&&s.files.length>0&&(t.files=s.files),c.putPrivate(t,"files",i)}static activeFileInputs(t){let i=c.findUploadInputs(t);return Array.from(i).filter(s=>s.files&&this.activeFiles(s).length>0)}static activeFiles(t){return(c.private(t,"files")||[]).filter(i=>Xe.isActive(t,i))}static inputsAwaitingPreflight(t){let i=c.findUploadInputs(t);return Array.from(i).filter(s=>this.filesAwaitingPreflight(s).length>0)}static filesAwaitingPreflight(t){return this.activeFiles(t).filter(i=>!Xe.isPreflighted(t,i)&&!Xe.isPreflightInProgress(i))}static markPreflightInProgress(t){t.forEach(i=>Xe.markPreflightInProgress(i.file))}constructor(t,i,s){this.autoUpload=c.isAutoUpload(t),this.view=i,this.onComplete=s,this._entries=Array.from(Xt.filesAwaitingPreflight(t)||[]).map(n=>new Xe(t,n,i,this.autoUpload)),Xt.markPreflightInProgress(this._entries),this.numEntriesInProgress=this._entries.length}isAutoUpload(){return this.autoUpload}entries(){return this._entries}initAdapterUpload(t,i,s){this._entries=this._entries.map(r=>(r.isCancelled()?(this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()):(r.zipPostFlight(t),r.onDone(()=>{this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()})),r));let n=this._entries.reduce((r,o)=>{if(!o.meta)return r;let{name:a,callback:l}=o.uploader(s.uploaders);return r[a]=r[a]||{callback:l,entries:[]},r[a].entries.push(o),r},{});for(let r in n){let{callback:o,entries:a}=n[r];o(a,i,t,s)}}},er={anyOf(e,t){return t.find(i=>e instanceof i)},isFocusable(e,t){return e instanceof HTMLAnchorElement&&e.rel!=="ignore"||e instanceof HTMLAreaElement&&e.href!==void 0||!e.disabled&&this.anyOf(e,[HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement,HTMLButtonElement])||e instanceof HTMLIFrameElement||e.tabIndex>=0&&e.getAttribute("aria-hidden")!=="true"||!t&&e.getAttribute("tabindex")!==null&&e.getAttribute("aria-hidden")!=="true"},attemptFocus(e,t){if(this.isFocusable(e,t))try{e.focus()}catch{}return!!document.activeElement&&document.activeElement.isSameNode(e)},focusFirstInteractive(e){let t=e.firstElementChild;for(;t;){if(this.attemptFocus(t,!0)||this.focusFirstInteractive(t))return!0;t=t.nextElementSibling}},focusFirst(e){let t=e.firstElementChild;for(;t;){if(this.attemptFocus(t)||this.focusFirst(t))return!0;t=t.nextElementSibling}},focusLast(e){let t=e.lastElementChild;for(;t;){if(this.attemptFocus(t)||this.focusLast(t))return!0;t=t.previousElementSibling}}},W=er,as={LiveFileUpload:{activeRefs(){return this.el.getAttribute(Wt)},preflightedRefs(){return this.el.getAttribute(Zt)},mounted(){this.js().ignoreAttributes(this.el,["value"]),this.preflightedWas=this.preflightedRefs()},updated(){let e=this.preflightedRefs();this.preflightedWas!==e&&(this.preflightedWas=e,e===""&&this.__view().cancelSubmit(this.el.form)),this.activeRefs()===""&&(this.el.value=null),this.el.dispatchEvent(new CustomEvent(mt))}},LiveImgPreview:{mounted(){this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute(le)),N.getEntryDataURL(this.inputEl,this.ref,e=>{this.url=e,this.el.src=e})},destroyed(){URL.revokeObjectURL(this.url)}},FocusWrap:{mounted(){this.focusStart=this.el.firstElementChild,this.focusEnd=this.el.lastElementChild,this.focusStart.addEventListener("focus",e=>{if(!e.relatedTarget||!this.el.contains(e.relatedTarget)){let t=e.target.nextElementSibling;W.attemptFocus(t)||W.focusFirst(t)}else W.focusLast(this.el)}),this.focusEnd.addEventListener("focus",e=>{if(!e.relatedTarget||!this.el.contains(e.relatedTarget)){let t=e.target.previousElementSibling;W.attemptFocus(t)||W.focusLast(t)}else W.focusFirst(this.el)}),this.el.contains(document.activeElement)||(this.el.addEventListener("phx:show-end",()=>this.el.focus()),window.getComputedStyle(this.el).display!=="none"&&W.focusFirst(this.el))}}},ls=e=>["HTML","BODY"].indexOf(e.nodeName.toUpperCase())>=0?null:["scroll","auto"].indexOf(getComputedStyle(e).overflowY)>=0?e:ls(e.parentElement),Vi=e=>e?e.scrollTop:document.documentElement.scrollTop||document.body.scrollTop,ti=e=>e?e.getBoundingClientRect().bottom:window.innerHeight||document.documentElement.clientHeight,ii=e=>e?e.getBoundingClientRect().top:0,tr=(e,t)=>{let i=e.getBoundingClientRect();return Math.ceil(i.top)>=ii(t)&&Math.ceil(i.left)>=0&&Math.floor(i.top)<=ti(t)},ir=(e,t)=>{let i=e.getBoundingClientRect();return Math.ceil(i.bottom)>=ii(t)&&Math.ceil(i.left)>=0&&Math.floor(i.bottom)<=ti(t)},Wi=(e,t)=>{let i=e.getBoundingClientRect();return Math.ceil(i.top)>=ii(t)&&Math.ceil(i.left)>=0&&Math.floor(i.top)<=ti(t)};as.InfiniteScroll={mounted(){this.scrollContainer=ls(this.el);let e=Vi(this.scrollContainer),t=!1,i=500,s=null,n=this.throttle(i,(a,l)=>{s=()=>!0,this.liveSocket.js().push(this.el,a,{value:{id:l.id,_overran:!0},callback:()=>{s=null}})}),r=this.throttle(i,(a,l)=>{s=()=>l.scrollIntoView({block:"start"}),this.liveSocket.js().push(this.el,a,{value:{id:l.id},callback:()=>{s=null,window.requestAnimationFrame(()=>{Wi(l,this.scrollContainer)||l.scrollIntoView({block:"start"})})}})}),o=this.throttle(i,(a,l)=>{s=()=>l.scrollIntoView({block:"end"}),this.liveSocket.js().push(this.el,a,{value:{id:l.id},callback:()=>{s=null,window.requestAnimationFrame(()=>{Wi(l,this.scrollContainer)||l.scrollIntoView({block:"end"})})}})});this.onScroll=a=>{let l=Vi(this.scrollContainer);if(s)return e=l,s();let h=this.findOverrunTarget(),d=this.el.getAttribute(this.liveSocket.binding("viewport-top")),p=this.el.getAttribute(this.liveSocket.binding("viewport-bottom")),m=this.el.lastElementChild,g=this.el.firstElementChild,u=le;u&&d&&!t&&h.top>=0?(t=!0,n(d,g)):v&&t&&h.top<=0&&(t=!1),d&&u&&tr(g,this.scrollContainer)?r(d,g):p&&v&&ir(m,this.scrollContainer)&&o(p,m),e=l},this.scrollContainer?this.scrollContainer.addEventListener("scroll",this.onScroll):window.addEventListener("scroll",this.onScroll)},destroyed(){this.scrollContainer?this.scrollContainer.removeEventListener("scroll",this.onScroll):window.removeEventListener("scroll",this.onScroll)},throttle(e,t){let i=0,s;return(...n)=>{let r=Date.now(),o=e-(r-i);o<=0||o>e?(s&&(clearTimeout(s),s=null),i=r,t(...n)):s||(s=setTimeout(()=>{i=Date.now(),s=null,t(...n)},o))}},findOverrunTarget(){let e,t=this.el.getAttribute(this.liveSocket.binding(Ln));if(t){let i=document.getElementById(t);if(i)e=i.getBoundingClientRect();else throw new Error("did not find element with id "+t)}else e=this.el.getBoundingClientRect();return e}};var sr=as,Gt=class{static onUnlock(e,t){if(!c.isLocked(e)&&!e.closest(`[${M}]`))return t();let i=e.closest(`[${M}]`),s=i.closest(`[${M}]`).getAttribute(M);i.addEventListener(`phx:undo-lock:${s}`,()=>{t()},{once:!0})}constructor(e){this.el=e,this.loadingRef=e.hasAttribute(Ne)?parseInt(e.getAttribute(Ne),10):null,this.lockRef=e.hasAttribute(M)?parseInt(e.getAttribute(M),10):null}maybeUndo(e,t,i){if(!this.isWithin(e)){c.updatePrivate(this.el,xi,[],s=>(s.push(e),s));return}this.undoLocks(e,t,i),this.undoLoading(e,t),c.updatePrivate(this.el,xi,[],s=>s.filter(n=>{let r={detail:{ref:n,event:t},bubbles:!0,cancelable:!1};return this.loadingRef&&this.loadingRef>n&&this.el.dispatchEvent(new CustomEvent(`phx:undo-loading:${n}`,r)),this.lockRef&&this.lockRef>n&&this.el.dispatchEvent(new CustomEvent(`phx:undo-lock:${n}`,r)),n>e})),this.isFullyResolvedBy(e)&&this.el.removeAttribute(J)}isWithin(e){return!(this.loadingRef!==null&&this.loadingRef>e&&this.lockRef!==null&&this.lockRef>e)}undoLocks(e,t,i){if(!this.isLockUndoneBy(e))return;let s=c.private(this.el,M);s&&(i(s),c.deletePrivate(this.el,M)),this.el.removeAttribute(M);let n={detail:{ref:e,event:t},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-lock:${this.lockRef}`,n))}undoLoading(e,t){if(!this.isLoadingUndoneBy(e)){this.canUndoLoading(e)&&this.el.classList.contains("phx-submit-loading")&&this.el.classList.remove("phx-change-loading");return}if(this.canUndoLoading(e)){this.el.removeAttribute(Ne);let i=this.el.getAttribute(Oe),s=this.el.getAttribute(zt);s!==null&&(this.el.readOnly=s==="true",this.el.removeAttribute(zt)),i!==null&&(this.el.disabled=i==="true",this.el.removeAttribute(Oe));let n=this.el.getAttribute(wt);n!==null&&(this.el.textContent=n,this.el.removeAttribute(wt));let r={detail:{ref:e,event:t},bubbles:!0,cancelable:!1};this.el.dispatchEvent(new CustomEvent(`phx:undo-loading:${this.loadingRef}`,r))}is.forEach(i=>{(i!=="phx-submit-loading"||this.canUndoLoading(e))&&c.removeClass(this.el,i)})}isLoadingUndoneBy(e){return this.loadingRef===null?!1:this.loadingRef<=e}isLockUndoneBy(e){return this.lockRef===null?!1:this.lockRef<=e}isFullyResolvedBy(e){return(this.loadingRef===null||this.loadingRef<=e)&&(this.lockRef===null||this.lockRef<=e)}canUndoLoading(e){return this.lockRef===null||this.lockRef<=e}},nr=class{constructor(e,t,i){let s=new Set,n=new Set([...t.children].map(o=>o.id)),r=[];Array.from(e.children).forEach(o=>{if(o.id&&(s.add(o.id),n.has(o.id))){let a=o.previousElementSibling&&o.previousElementSibling.id;r.push({elementId:o.id,previousElementId:a})}}),this.containerId=t.id,this.updateType=i,this.elementsToModify=r,this.elementIdsToAdd=[...n].filter(o=>!s.has(o))}perform(){let e=c.byId(this.containerId);e&&(this.elementsToModify.forEach(t=>{t.previousElementId?Me(document.getElementById(t.previousElementId),i=>{Me(document.getElementById(t.elementId),s=>{s.previousElementSibling&&s.previousElementSibling.id==i.id||i.insertAdjacentElement("afterend",s)})}):Me(document.getElementById(t.elementId),i=>{i.previousElementSibling==null||e.insertAdjacentElement("afterbegin",i)})}),this.updateType=="prepend"&&this.elementIdsToAdd.reverse().forEach(t=>{Me(document.getElementById(t),i=>e.insertAdjacentElement("afterbegin",i))}))}},qi=11;function rr(e,t){var i=t.attributes,s,n,r,o,a;if(!(t.nodeType===qi||e.nodeType===qi)){for(var l=i.length-1;l>=0;l--)s=i[l],n=s.name,r=s.namespaceURI,o=s.value,r?(n=s.localName||n,a=e.getAttributeNS(r,n),a!==o&&(s.prefix==="xmlns"&&(n=s.name),e.setAttributeNS(r,n,o))):(a=e.getAttribute(n),a!==o&&e.setAttribute(n,o));for(var h=e.attributes,d=h.length-1;d>=0;d--)s=h[d],n=s.name,r=s.namespaceURI,r?(n=s.localName||n,t.hasAttributeNS(r,n)||e.removeAttributeNS(r,n)):t.hasAttribute(n)||e.removeAttribute(n)}}var dt,or="http://www.w3.org/1999/xhtml",U=typeof document>"u"?void 0:document,ar=!!U&&"content"in U.createElement("template"),lr=!!U&&U.createRange&&"createContextualFragment"in U.createRange();function hr(e){var t=U.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}function cr(e){dt||(dt=U.createRange(),dt.selectNode(U.body));var t=dt.createContextualFragment(e);return t.childNodes[0]}function dr(e){var t=U.createElement("body");return t.innerHTML=e,t.childNodes[0]}function ur(e){return e=e.trim(),ar?hr(e):lr?cr(e):dr(e)}function ut(e,t){var i=e.nodeName,s=t.nodeName,n,r;return i===s?!0:(n=i.charCodeAt(0),r=s.charCodeAt(0),n<=90&&r>=97?i===s.toUpperCase():r<=90&&n>=97?s===i.toUpperCase():!1)}function fr(e,t){return!t||t===or?U.createElement(e):U.createElementNS(t,e)}function pr(e,t){for(var i=e.firstChild;i;){var s=i.nextSibling;t.appendChild(i),i=s}return t}function Bt(e,t,i){e[i]!==t[i]&&(e[i]=t[i],e[i]?e.setAttribute(i,""):e.removeAttribute(i))}var Ki={OPTION:function(e,t){var i=e.parentNode;if(i){var s=i.nodeName.toUpperCase();s==="OPTGROUP"&&(i=i.parentNode,s=i&&i.nodeName.toUpperCase()),s==="SELECT"&&!i.hasAttribute("multiple")&&(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),i.selectedIndex=-1)}Bt(e,t,"selected")},INPUT:function(e,t){Bt(e,t,"checked"),Bt(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var i=t.value;e.value!==i&&(e.value=i);var s=e.firstChild;if(s){var n=s.nodeValue;if(n==i||!i&&n==e.placeholder)return;s.nodeValue=i}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var i=-1,s=0,n=e.firstChild,r,o;n;)if(o=n.nodeName&&n.nodeName.toUpperCase(),o==="OPTGROUP")r=n,n=r.firstChild,n||(n=r.nextSibling,r=null);else{if(o==="OPTION"){if(n.hasAttribute("selected")){i=s;break}s++}n=n.nextSibling,!n&&r&&(n=r.nextSibling,r=null)}e.selectedIndex=i}}},Ge=1,Ji=11,zi=3,Xi=8;function pe(){}function mr(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}function gr(e){return function(i,s,n){if(n||(n={}),typeof s=="string")if(i.nodeName==="#document"||i.nodeName==="HTML"){var r=s;s=U.createElement("html"),s.innerHTML=r}else if(i.nodeName==="BODY"){var o=s;s=U.createElement("html"),s.innerHTML=o;var a=s.querySelector("body");a&&(s=a)}else s=ur(s);else s.nodeType===Ji&&(s=s.firstElementChild);var l=n.getNodeKey||mr,h=n.onBeforeNodeAdded||pe,d=n.onNodeAdded||pe,p=n.onBeforeElUpdated||pe,m=n.onElUpdated||pe,g=n.onBeforeNodeDiscarded||pe,u=n.onNodeDiscarded||pe,v=n.onBeforeElChildrenUpdated||pe,y=n.skipFromChildren||pe,L=n.addChild||function(S,A){return S.appendChild(A)},$=n.childrenOnly===!0,w=Object.create(null),k=[];function T(S){k.push(S)}function H(S,A){if(S.nodeType===Ge)for(var O=S.firstChild;O;){var x=void 0;A&&(x=l(O))?T(x):(u(O),O.firstChild&&H(O,A)),O=O.nextSibling}}function f(S,A,O){g(S)!==!1&&(A&&A.removeChild(S),u(S),H(S,O))}function b(S){if(S.nodeType===Ge||S.nodeType===Ji)for(var A=S.firstChild;A;){var O=l(A);O&&(w[O]=A),b(A),A=A.nextSibling}}b(i);function C(S){d(S);for(var A=S.firstChild;A;){var O=A.nextSibling,x=l(A);if(x){var R=w[x];R&&ut(A,R)?(A.parentNode.replaceChild(R,A),E(R,A)):C(A)}else C(A);A=O}}function j(S,A,O){for(;A;){var x=A.nextSibling;(O=l(A))?T(O):f(A,S,!0),A=x}}function E(S,A,O){var x=l(A);if(x&&delete w[x],!O){var R=p(S,A);if(R===!1||(R instanceof HTMLElement&&(S=R,b(S)),e(S,A),m(S),v(S,A)===!1))return}S.nodeName!=="TEXTAREA"?q(S,A):Ki.TEXTAREA(S,A)}function q(S,A){var O=y(S,A),x=A.firstChild,R=S.firstChild,_e,ne,xe,st,de;e:for(;x;){for(st=x.nextSibling,_e=l(x);!O&&R;){if(xe=R.nextSibling,x.isSameNode&&x.isSameNode(R)){x=st,R=xe;continue e}ne=l(R);var nt=R.nodeType,ue=void 0;if(nt===x.nodeType&&(nt===Ge?(_e?_e!==ne&&((de=w[_e])?xe===de?ue=!1:(S.insertBefore(de,R),ne?T(ne):f(R,S,!0),R=de,ne=l(R)):ue=!1):ne&&(ue=!1),ue=ue!==!1&&ut(R,x),ue&&E(R,x)):(nt===zi||nt==Xi)&&(ue=!0,R.nodeValue!==x.nodeValue&&(R.nodeValue=x.nodeValue))),ue){x=st,R=xe;continue e}ne?T(ne):f(R,S,!0),R=xe}if(_e&&(de=w[_e])&&ut(de,x))O||L(S,de),E(de,x);else{var Ot=h(x);Ot!==!1&&(Ot&&(x=Ot),x.actualize&&(x=x.actualize(S.ownerDocument||U)),L(S,x),C(x))}x=st,R=xe}j(S,R,ne);var ki=Ki[S.nodeName];ki&&ki(S,A)}var _=i,Ce=_.nodeType,Ai=s.nodeType;if(!$){if(Ce===Ge)Ai===Ge?ut(i,s)||(u(i),_=pr(i,fr(s.nodeName,s.namespaceURI))):_=s;else if(Ce===zi||Ce===Xi){if(Ai===Ce)return _.nodeValue!==s.nodeValue&&(_.nodeValue=s.nodeValue),_;_=s}}if(_===s)u(i);else{if(s.isSameNode&&s.isSameNode(_))return;if(E(_,s,$),k)for(var It=0,an=k.length;Iti(...t))}trackAfter(e,...t){this.callbacks[`after${e}`].forEach(i=>i(...t))}markPrunableContentForRemoval(){let e=this.liveSocket.binding(Et);c.all(this.container,`[${e}=append] > *, [${e}=prepend] > *`,t=>{t.setAttribute(Pi,"")})}perform(e){let{view:t,liveSocket:i,html:s,container:n}=this,r=this.targetContainer;if(this.isCIDPatch()&&!this.targetContainer)return;if(this.isCIDPatch()){let w=r.closest(`[${M}]`);if(w&&!w.isSameNode(r)){let k=c.private(w,M);k&&(r=k.querySelector(`[data-phx-component="${this.targetCID}"]`))}}let o=i.getActiveElement(),{selectionStart:a,selectionEnd:l}=o&&c.hasSelectionRange(o)?o:{},h=i.binding(Et),d=i.binding(qt),p=i.binding(Kt),m=i.binding(In),g=[],u=[],v=[],y=[],L=null,$=(w,k,T=this.withChildren)=>{let H={childrenOnly:w.getAttribute(ee)===null&&!T,getNodeKey:f=>c.isPhxDestroyed(f)?null:e?f.id:f.id||f.getAttribute&&f.getAttribute(rs),skipFromChildren:f=>f.getAttribute(h)===gt,addChild:(f,b)=>{let{ref:C,streamAt:j}=this.getStreamInsert(b);if(C===void 0)return f.appendChild(b);if(this.setStreamRef(b,C),j===0)f.insertAdjacentElement("afterbegin",b);else if(j===-1){let E=f.lastElementChild;if(E&&!E.hasAttribute(qe)){let q=Array.from(f.children).find(_=>!_.hasAttribute(qe));f.insertBefore(b,q)}else f.appendChild(b)}else if(j>0){let E=Array.from(f.children)[j];f.insertBefore(b,E)}},onBeforeNodeAdded:f=>{if(this.getStreamInsert(f)?.updateOnly&&!this.streamComponentRestore[f.id])return!1;c.maintainPrivateHooks(f,f,d,p),this.trackBefore("added",f);let b=f;return this.streamComponentRestore[f.id]&&(b=this.streamComponentRestore[f.id],delete this.streamComponentRestore[f.id],$(b,f,!0)),b},onNodeAdded:f=>{f.getAttribute&&this.maybeReOrderStream(f,!0),c.isPortalTemplate(f)&&y.push(()=>this.teleport(f,$)),f instanceof HTMLImageElement&&f.srcset?f.srcset=f.srcset:f instanceof HTMLVideoElement&&f.autoplay&&f.play(),c.isNowTriggerFormExternal(f,m)&&(L=f),(c.isPhxChild(f)&&t.ownsElement(f)||c.isPhxSticky(f)&&t.ownsElement(f.parentNode))&&this.trackAfter("phxChildAdded",f),f.nodeName==="SCRIPT"&&f.hasAttribute(vt)&&this.handleRuntimeHook(f,k),g.push(f)},onNodeDiscarded:f=>this.onNodeDiscarded(f),onBeforeNodeDiscarded:f=>{if(f.getAttribute&&f.getAttribute(Pi)!==null)return!0;if(f.parentElement!==null&&f.id&&c.isPhxUpdate(f.parentElement,h,[gt,"append","prepend"])||f.getAttribute&&f.getAttribute(ke)||this.maybePendingRemove(f)||this.skipCIDSibling(f))return!1;if(c.isPortalTemplate(f)){let b=document.getElementById(f.content.firstElementChild.id);b&&(b.remove(),H.onNodeDiscarded(b),this.view.dropPortalElementId(b.id))}return!0},onElUpdated:f=>{c.isNowTriggerFormExternal(f,m)&&(L=f),u.push(f),this.maybeReOrderStream(f,!1)},onBeforeElUpdated:(f,b)=>{if(f.id&&f.isSameNode(w)&&f.id!==b.id)return H.onNodeDiscarded(f),f.replaceWith(b),H.onNodeAdded(b);if(c.syncPendingAttrs(f,b),c.maintainPrivateHooks(f,b,d,p),c.cleanChildNodes(b,h),this.skipCIDSibling(b))return this.maybeReOrderStream(f),!1;if(c.isPhxSticky(f))return[te,Se,ae].map(E=>[E,f.getAttribute(E),b.getAttribute(E)]).forEach(([E,q,_])=>{_&&q!==_&&f.setAttribute(E,_)}),!1;if(c.isIgnored(f,h)||f.form&&f.form.isSameNode(L))return this.trackBefore("updated",f,b),c.mergeAttrs(f,b,{isIgnored:c.isIgnored(f,h)}),u.push(f),c.applyStickyOperations(f),!1;if(f.type==="number"&&f.validity&&f.validity.badInput)return!1;let C=o&&f.isSameNode(o)&&c.isFormInput(f),j=C&&this.isChangedSelect(f,b);if(f.hasAttribute(J)){let E=new Gt(f);if(E.lockRef&&(!this.undoRef||!E.isLockUndoneBy(this.undoRef))){c.applyStickyOperations(f);let _=f.hasAttribute(M)?c.private(f,M)||f.cloneNode(!0):null;_&&(c.putPrivate(f,M,_),C||(f=_))}}if(c.isPhxChild(b)){let E=f.getAttribute(te);return c.mergeAttrs(f,b,{exclude:[Se]}),E!==""&&f.setAttribute(te,E),f.setAttribute(ae,this.rootID),c.applyStickyOperations(f),!1}return this.undoRef&&c.private(b,M)&&c.putPrivate(f,M,c.private(b,M)),c.copyPrivates(b,f),c.isPortalTemplate(b)?(y.push(()=>this.teleport(b,$)),f.content.replaceChildren(b.content.cloneNode(!0)),!1):C&&f.type!=="hidden"&&!j?(this.trackBefore("updated",f,b),c.mergeFocusedInput(f,b),c.syncAttrsToProps(f),u.push(f),c.applyStickyOperations(f),!1):(j&&f.blur(),c.isPhxUpdate(b,h,["append","prepend"])&&v.push(new nr(f,b,b.getAttribute(h))),c.syncAttrsToProps(b),c.applyStickyOperations(b),this.trackBefore("updated",f,b),f)}};Yt(w,k,H)};if(this.trackBefore("added",n),this.trackBefore("updated",n,n),i.time("morphdom",()=>{this.streams.forEach(([k,T,H,f])=>{T.forEach(([b,C,j,E])=>{this.streamInserts[b]={ref:k,streamAt:C,limit:j,reset:f,updateOnly:E}}),f!==void 0&&c.all(document,`[${qe}="${k}"]`,b=>{this.removeStreamChildElement(b)}),H.forEach(b=>{let C=document.getElementById(b);C&&this.removeStreamChildElement(C)})}),e&&c.all(this.container,`[${h}=${gt}]`).filter(k=>this.view.ownsElement(k)).forEach(k=>{Array.from(k.children).forEach(T=>{this.removeStreamChildElement(T,!0)})}),$(r,s);let w=0;for(;y.length>0&&w<5;){let k=y.slice();y=[],k.forEach(T=>T()),w++}this.view.portalElementIds.forEach(k=>{let T=document.getElementById(k);T&&(document.getElementById(T.getAttribute(me))||(T.remove(),this.onNodeDiscarded(T),this.view.dropPortalElementId(k)))})}),i.isDebugEnabled()&&(Kn(),Jn(this.streamInserts),Array.from(document.querySelectorAll("input[name=id]")).forEach(w=>{w instanceof HTMLInputElement&&w.form&&console.error(`Detected an input with name="id" inside a form! This will cause problems when patching the DOM. +`,w)})),v.length>0&&i.time("post-morph append/prepend restoration",()=>{v.forEach(w=>w.perform())}),i.silenceEvents(()=>c.restoreFocus(o,a,l)),c.dispatchEvent(document,"phx:update"),g.forEach(w=>this.trackAfter("added",w)),u.forEach(w=>this.trackAfter("updated",w)),this.transitionPendingRemoves(),L){i.unload();let w=c.private(L,"submitter");if(w&&w.name&&r.contains(w)){let k=document.createElement("input");k.type="hidden";let T=w.getAttribute("form");T&&k.setAttribute("form",T),k.name=w.name,k.value=w.value,w.parentElement.insertBefore(k,w)}Object.getPrototypeOf(L).submit.call(L)}return!0}onNodeDiscarded(e){(c.isPhxChild(e)||c.isPhxSticky(e))&&this.liveSocket.destroyViewByEl(e),this.trackAfter("discarded",e)}maybePendingRemove(e){return e.getAttribute&&e.getAttribute(this.phxRemove)!==null?(this.pendingRemoves.push(e),!0):!1}removeStreamChildElement(e,t=!1){!t&&!this.view.ownsElement(e)||(this.streamInserts[e.id]?(this.streamComponentRestore[e.id]=e,e.remove()):this.maybePendingRemove(e)||(e.remove(),this.onNodeDiscarded(e)))}getStreamInsert(e){return(e.id?this.streamInserts[e.id]:{})||{}}setStreamRef(e,t){c.putSticky(e,qe,i=>i.setAttribute(qe,t))}maybeReOrderStream(e,t){let{ref:i,streamAt:s,reset:n}=this.getStreamInsert(e);if(s!==void 0&&(this.setStreamRef(e,i),!(!n&&!t)&&e.parentElement)){if(s===0)e.parentElement.insertBefore(e,e.parentElement.firstElementChild);else if(s>0){let r=Array.from(e.parentElement.children),o=r.indexOf(e);if(s>=r.length-1)e.parentElement.appendChild(e);else{let a=r[s];o>s?e.parentElement.insertBefore(e,a):e.parentElement.insertBefore(e,a.nextElementSibling)}}this.maybeLimitStream(e)}}maybeLimitStream(e){let{limit:t}=this.getStreamInsert(e),i=t!==null&&Array.from(e.parentElement.children);t&&t<0&&i.length>t*-1?i.slice(0,i.length+t).forEach(s=>this.removeStreamChildElement(s)):t&&t>=0&&i.length>t&&i.slice(t).forEach(s=>this.removeStreamChildElement(s))}transitionPendingRemoves(){let{pendingRemoves:e,liveSocket:t}=this;e.length>0&&t.transitionRemoves(e,()=>{e.forEach(i=>{let s=c.firstPhxChild(i);s&&t.destroyViewByEl(s),i.remove()}),this.trackAfter("transitionsDiscarded",e)})}isChangedSelect(e,t){return!(e instanceof HTMLSelectElement)||e.multiple?!1:e.options.length!==t.options.length?!0:(t.value=e.value,!e.isEqualNode(t))}isCIDPatch(){return this.cidPatch}skipCIDSibling(e){return e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute(ns)}targetCIDContainer(e){if(!this.isCIDPatch())return;let[t,...i]=c.findComponentNodeList(this.view.id,this.targetCID);return i.length===0&&c.childNodeLength(e)===1?t:t&&t.parentNode}indexOf(e,t){return Array.from(e.children).indexOf(t)}teleport(e,t){let i=e.getAttribute(ei),s=document.querySelector(i);if(!s)throw new Error("portal target with selector "+i+" not found");let n=e.content.firstElementChild;if(this.skipCIDSibling(n))return;if(!n?.id)throw new Error("phx-portal template must have a single root element with ID!");let r=document.getElementById(n.id),o;r?(s.contains(r)||s.appendChild(r),o=r):(o=document.createElement(n.tagName),s.appendChild(o)),n.setAttribute(ke,this.view.id),n.setAttribute(me,e.id),t(o,n,!0),n.removeAttribute(ke),n.removeAttribute(me),this.view.pushPortalElementId(n.id)}handleRuntimeHook(e,t){let i=e.getAttribute(vt),s=e.hasAttribute("nonce")?e.getAttribute("nonce"):null;if(e.hasAttribute("nonce")){let r=document.createElement("template");r.innerHTML=t,s=r.content.querySelector(`script[${vt}="${CSS.escape(i)}"]`).getAttribute("nonce")}let n=document.createElement("script");n.textContent=e.textContent,c.mergeAttrs(n,e,{isIgnored:!1}),s&&(n.nonce=s),e.replaceWith(n),e=n}},br=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),yr=new Set(["'",'"']),Gi=(e,t,i)=>{let s=0,n=!1,r,o,a,l,h,d,p=e.match(/^(\s*(?:\s*)*)<([^\s\/>]+)/);if(p===null)throw new Error(`malformed html ${e}`);for(s=p[0].length,r=p[1],a=p[2],l=s,s;s";s++)if(e.charAt(s)==="="){let u=e.slice(s-3,s)===" id";s++;let v=e.charAt(s);if(yr.has(v)){let y=s;for(s++,s;s=r.length+a.length;){let u=e.charAt(m);if(n)u==="-"&&e.slice(m-3,m)===""&&e.slice(m-2,m)==="--")n=!0,m-=3;else{if(u===">")break;m-=1}}o=e.slice(m+1,e.length);let g=Object.keys(t).map(u=>t[u]===!0?u:`${u}="${t[u]}"`).join(" ");if(i){let u=h?` id="${h}"`:"";br.has(a)?d=`<${a}${u}${g===""?"":" "}${g}/>`:d=`<${a}${u}${g===""?"":" "}${g}>`}else{let u=e.slice(l,m+1);d=`<${a}${g===""?"":" "}${g}${u}`}return[d,r,o]},Yi=class{static extract(e){let{[Ui]:t,[Fi]:i,[ji]:s}=e;return delete e[Ui],delete e[Fi],delete e[ji],{diff:e,title:s,reply:t||null,events:i||[]}}constructor(e,t){this.viewId=e,this.rendered={},this.magicId=0,this.mergeDiff(t)}parentViewId(){return this.viewId}toString(e){let{buffer:t,streams:i}=this.recursiveToString(this.rendered,this.rendered[F],e,!0,{});return{buffer:t,streams:i}}recursiveToString(e,t=e[F],i,s,n){i=i?new Set(i):null;let r={buffer:"",components:t,onlyCids:i,streams:new Set};return this.toOutputBuffer(e,null,r,s,n),{buffer:r.buffer,streams:r.streams}}componentCIDs(e){return Object.keys(e[F]||{}).map(t=>parseInt(t))}isComponentOnlyDiff(e){return e[F]?Object.keys(e).length===1:!1}getComponent(e,t){return e[F][t]}resetRender(e){this.rendered[F][e]&&(this.rendered[F][e].reset=!0)}mergeDiff(e){let t=e[F],i={};if(delete e[F],this.rendered=this.mutableMerge(this.rendered,e),this.rendered[F]=this.rendered[F]||{},t){let s=this.rendered[F];for(let n in t)t[n]=this.cachedFindComponent(n,t[n],s,t,i);for(let n in t)s[n]=t[n];e[F]=t}}cachedFindComponent(e,t,i,s,n){if(n[e])return n[e];{let r,o,a=t[K];if(oe(a)){let l;a>0?l=this.cachedFindComponent(a,s[a],i,s,n):l=i[-a],o=l[K],r=this.cloneMerge(l,t,!0),r[K]=o}else r=t[K]!==void 0||i[e]===void 0?t:this.cloneMerge(i[e],t,!1);return n[e]=r,r}}mutableMerge(e,t){return t[K]!==void 0?t:(this.doMutableMerge(e,t),e)}doMutableMerge(e,t){if(t[D])this.mergeKeyed(e,t);else for(let i in t){let s=t[i],n=e[i];De(s)&&s[K]===void 0&&De(n)?this.doMutableMerge(n,s):e[i]=s}e[jt]&&(e.newRender=!0)}clone(e){return"structuredClone"in window?structuredClone(e):JSON.parse(JSON.stringify(e))}mergeKeyed(e,t){let i=this.clone(e);if(Object.entries(t[D]).forEach(([s,n])=>{if(s!==Q)if(Array.isArray(n)){let[r,o]=n;e[D][s]=i[D][r],this.doMutableMerge(e[D][s],o)}else if(typeof n=="number"){let r=n;e[D][s]=i[D][r]}else typeof n=="object"&&(e[D][s]||(e[D][s]={}),this.doMutableMerge(e[D][s],n))}),t[D][Q]delete this.rendered[F][t])}get(){return this.rendered}isNewFingerprint(e={}){return!!e[K]}templateStatic(e,t){return typeof e=="number"?t[e]:e}nextMagicID(){return this.magicId++,`m${this.magicId}-${this.parentViewId()}`}toOutputBuffer(e,t,i,s,n={}){if(e[D])return this.comprehensionToBuffer(e,t,i,s);e[fe]&&(t=e[fe],delete e[fe]);let{[K]:r}=e;r=this.templateStatic(r,t),e[K]=r;let o=e[jt],a=i.buffer;o&&(i.buffer=""),s&&o&&!e.magicId&&(e.newRender=!0,e.magicId=this.nextMagicID()),i.buffer+=r[0];for(let l=1;l0||h.length>0||d)&&(delete e[Ie],e[D]={[Q]:0},i.streams.add(o))}}dynamicToBuffer(e,t,i,s){if(typeof e=="number"){let{buffer:n,streams:r}=this.recursiveCIDToString(i.components,e,i.onlyCids);i.buffer+=n,i.streams=new Set([...i.streams,...r])}else De(e)?this.toOutputBuffer(e,t,i,s,{}):i.buffer+=e}recursiveCIDToString(e,t,i){let s=e[t]||I(`no component for CID ${t}`,e),n={[ee]:t,[He]:this.viewId},r=i&&!i.has(t);s.newRender=!r,s.magicId=`c${t}-${this.parentViewId()}`;let o=!s.reset,{buffer:a,streams:l}=this.recursiveToString(s,e,i,o,n);return delete s.reset,{buffer:a,streams:l}}},Zi=[],Qi=200,wr={exec(e,t,i,s,n,r){let[o,a]=r||[null,{callback:r&&r.callback}];(i.charAt(0)==="["?JSON.parse(i):[[o,a]]).forEach(([h,d])=>{h===o&&(d={...a,...d},d.callback=d.callback||a.callback),this.filterToEls(s.liveSocket,n,d).forEach(p=>{this[`exec_${h}`](e,t,i,s,n,p,d)})})},isVisible(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length>0)},isInViewport(e){let t=e.getBoundingClientRect(),i=window.innerHeight||document.documentElement.clientHeight,s=window.innerWidth||document.documentElement.clientWidth;return t.right>0&&t.bottom>0&&t.left{a.done=p});s.liveSocket.asyncTransition(d)}c.dispatchEvent(r,o,{detail:a,bubbles:l})},exec_push(e,t,i,s,n,r,o){let{event:a,data:l,target:h,page_loading:d,loading:p,value:m,dispatcher:g,callback:u}=o,v={loading:p,value:m,target:h,page_loading:!!d,originalEvent:e},y=t==="change"&&g?g:n,L=h||y.getAttribute(s.binding("target"))||y,$=(w,k)=>{if(w.isConnected())if(t==="change"){let{newCid:T,_target:H}=o;H=H||(c.isFormInput(n)?n.name:void 0),H&&(v._target=H),w.pushInput(n,k,T,a||i,v,u)}else if(t==="submit"){let{submitter:T}=o;w.submitForm(n,k,a||i,T,v,u)}else w.pushEvent(t,n,k,a||i,l,v,u)};o.targetView&&o.targetCtx?$(o.targetView,o.targetCtx):s.withinTargets(L,$)},exec_navigate(e,t,i,s,n,r,{href:o,replace:a}){s.liveSocket.historyRedirect(e,o,a?"replace":"push",null,n)},exec_patch(e,t,i,s,n,r,{href:o,replace:a}){s.liveSocket.pushHistoryPatch(e,o,a?"replace":"push",n)},exec_focus(e,t,i,s,n,r){W.attemptFocus(r),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>W.attemptFocus(r))})},exec_focus_first(e,t,i,s,n,r){W.focusFirstInteractive(r)||W.focusFirst(r),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>W.focusFirstInteractive(r)||W.focusFirst(r))})},exec_push_focus(e,t,i,s,n,r){Zi.push(r||n)},exec_pop_focus(e,t,i,s,n,r){let o=Zi.pop();o&&(o.focus(),window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>o.focus())}))},exec_add_class(e,t,i,s,n,r,{names:o,transition:a,time:l,blocking:h}){this.addOrRemoveClasses(r,o,[],a,l,s,h)},exec_remove_class(e,t,i,s,n,r,{names:o,transition:a,time:l,blocking:h}){this.addOrRemoveClasses(r,[],o,a,l,s,h)},exec_toggle_class(e,t,i,s,n,r,{names:o,transition:a,time:l,blocking:h}){this.toggleClasses(r,o,a,l,s,h)},exec_toggle_attr(e,t,i,s,n,r,{attr:[o,a,l]}){this.toggleAttr(r,o,a,l)},exec_ignore_attrs(e,t,i,s,n,r,{attrs:o}){this.ignoreAttrs(r,o)},exec_transition(e,t,i,s,n,r,{time:o,transition:a,blocking:l}){this.addOrRemoveClasses(r,[],[],a,o,s,l)},exec_toggle(e,t,i,s,n,r,{display:o,ins:a,outs:l,time:h,blocking:d}){this.toggle(t,s,r,o,a,l,h,d)},exec_show(e,t,i,s,n,r,{display:o,transition:a,time:l,blocking:h}){this.show(t,s,r,o,a,l,h)},exec_hide(e,t,i,s,n,r,{display:o,transition:a,time:l,blocking:h}){this.hide(t,s,r,o,a,l,h)},exec_set_attr(e,t,i,s,n,r,{attr:[o,a]}){this.setOrRemoveAttrs(r,[[o,a]],[])},exec_remove_attr(e,t,i,s,n,r,{attr:o}){this.setOrRemoveAttrs(r,[],[o])},ignoreAttrs(e,t){c.putPrivate(e,"JS:ignore_attrs",{apply:(i,s)=>{let n=Array.from(i.attributes),r=n.map(o=>o.name);Array.from(s.attributes).filter(o=>!r.includes(o.name)).forEach(o=>{c.attributeIgnored(o,t)&&s.removeAttribute(o.name)}),n.forEach(o=>{c.attributeIgnored(o,t)&&s.setAttribute(o.name,o.value)})}})},onBeforeElUpdated(e,t){let i=c.private(e,"JS:ignore_attrs");i&&i.apply(e,t)},show(e,t,i,s,n,r,o){this.isVisible(i)||this.toggle(e,t,i,s,n,null,r,o)},hide(e,t,i,s,n,r,o){this.isVisible(i)&&this.toggle(e,t,i,s,null,n,r,o)},toggle(e,t,i,s,n,r,o,a){o=o||Qi;let[l,h,d]=n||[[],[],[]],[p,m,g]=r||[[],[],[]];if(l.length>0||p.length>0)if(this.isVisible(i)){let u=()=>{this.addOrRemoveClasses(i,m,l.concat(h).concat(d)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,p,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(i,g,m))})},v=()=>{this.addOrRemoveClasses(i,[],p.concat(g)),c.putSticky(i,"toggle",y=>y.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))};i.dispatchEvent(new Event("phx:hide-start")),a===!1?(u(),setTimeout(v,o)):t.transition(o,u,v)}else{if(e==="remove")return;let u=()=>{this.addOrRemoveClasses(i,h,p.concat(m).concat(g));let y=s||this.defaultDisplay(i);window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,l,[]),window.requestAnimationFrame(()=>{c.putSticky(i,"toggle",L=>L.style.display=y),this.addOrRemoveClasses(i,d,h)})})},v=()=>{this.addOrRemoveClasses(i,[],l.concat(d)),i.dispatchEvent(new Event("phx:show-end"))};i.dispatchEvent(new Event("phx:show-start")),a===!1?(u(),setTimeout(v,o)):t.transition(o,u,v)}else this.isVisible(i)?window.requestAnimationFrame(()=>{i.dispatchEvent(new Event("phx:hide-start")),c.putSticky(i,"toggle",u=>u.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))}):window.requestAnimationFrame(()=>{i.dispatchEvent(new Event("phx:show-start"));let u=s||this.defaultDisplay(i);c.putSticky(i,"toggle",v=>v.style.display=u),i.dispatchEvent(new Event("phx:show-end"))})},toggleClasses(e,t,i,s,n,r){window.requestAnimationFrame(()=>{let[o,a]=c.getSticky(e,"classes",[[],[]]),l=t.filter(d=>o.indexOf(d)<0&&!e.classList.contains(d)),h=t.filter(d=>a.indexOf(d)<0&&e.classList.contains(d));this.addOrRemoveClasses(e,l,h,i,s,n,r)})},toggleAttr(e,t,i,s){e.hasAttribute(t)?s!==void 0?e.getAttribute(t)===i?this.setOrRemoveAttrs(e,[[t,s]],[]):this.setOrRemoveAttrs(e,[[t,i]],[]):this.setOrRemoveAttrs(e,[],[t]):this.setOrRemoveAttrs(e,[[t,i]],[])},addOrRemoveClasses(e,t,i,s,n,r,o){n=n||Qi;let[a,l,h]=s||[[],[],[]];if(a.length>0){let d=()=>{this.addOrRemoveClasses(e,l,[].concat(a).concat(h)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(e,a,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(e,h,l))})},p=()=>this.addOrRemoveClasses(e,t.concat(h),i.concat(a).concat(l));o===!1?(d(),setTimeout(p,n)):r.transition(n,d,p);return}window.requestAnimationFrame(()=>{let[d,p]=c.getSticky(e,"classes",[[],[]]),m=t.filter(y=>d.indexOf(y)<0&&!e.classList.contains(y)),g=i.filter(y=>p.indexOf(y)<0&&e.classList.contains(y)),u=d.filter(y=>i.indexOf(y)<0).concat(m),v=p.filter(y=>t.indexOf(y)<0).concat(g);c.putSticky(e,"classes",y=>(y.classList.remove(...v),y.classList.add(...u),[u,v]))})},setOrRemoveAttrs(e,t,i){let[s,n]=c.getSticky(e,"attrs",[[],[]]),r=t.map(([l,h])=>l).concat(i),o=s.filter(([l,h])=>!r.includes(l)).concat(t),a=n.filter(l=>!r.includes(l)).concat(i);c.putSticky(e,"attrs",l=>(a.forEach(h=>l.removeAttribute(h)),o.forEach(([h,d])=>l.setAttribute(h,d)),[o,a]))},hasAllClasses(e,t){return t.every(i=>e.classList.contains(i))},isToggledOut(e,t){return!this.isVisible(e)||this.hasAllClasses(e,t)},filterToEls(e,t,{to:i}){let s=()=>{if(typeof i=="string")return document.querySelectorAll(i);if(i.closest){let n=t.closest(i.closest);return n?[n]:[]}else if(i.inner)return t.querySelectorAll(i.inner)};return i?e.jsQuerySelectorAll(t,i,s):[t]},defaultDisplay(e){return{tr:"table-row",td:"table-cell"}[e.tagName.toLowerCase()]||"block"},transitionClasses(e){if(!e)return null;let[t,i,s]=Array.isArray(e)?e:[e.split(" "),[],[]];return t=Array.isArray(t)?t:t.split(" "),i=Array.isArray(i)?i:i.split(" "),s=Array.isArray(s)?s:s.split(" "),[t,i,s]}},P=wr,hs=(e,t)=>({exec(i,s){e.execJS(i,s,t)},show(i,s={}){let n=e.owner(i);P.show(t,n,i,s.display,P.transitionClasses(s.transition),s.time,s.blocking)},hide(i,s={}){let n=e.owner(i);P.hide(t,n,i,null,P.transitionClasses(s.transition),s.time,s.blocking)},toggle(i,s={}){let n=e.owner(i),r=P.transitionClasses(s.in),o=P.transitionClasses(s.out);P.toggle(t,n,i,s.display,r,o,s.time,s.blocking)},addClass(i,s,n={}){let r=Array.isArray(s)?s:s.split(" "),o=e.owner(i);P.addOrRemoveClasses(i,r,[],P.transitionClasses(n.transition),n.time,o,n.blocking)},removeClass(i,s,n={}){let r=Array.isArray(s)?s:s.split(" "),o=e.owner(i);P.addOrRemoveClasses(i,[],r,P.transitionClasses(n.transition),n.time,o,n.blocking)},toggleClass(i,s,n={}){let r=Array.isArray(s)?s:s.split(" "),o=e.owner(i);P.toggleClasses(i,r,P.transitionClasses(n.transition),n.time,o,n.blocking)},transition(i,s,n={}){let r=e.owner(i);P.addOrRemoveClasses(i,[],[],P.transitionClasses(s),n.time,r,n.blocking)},setAttribute(i,s,n){P.setOrRemoveAttrs(i,[[s,n]],[])},removeAttribute(i,s){P.setOrRemoveAttrs(i,[],[s])},toggleAttribute(i,s,n,r){P.toggleAttr(i,s,n,r)},push(i,s,n={}){e.withinOwners(i,r=>{let o=n.value||{};delete n.value;let a=new CustomEvent("phx:exec",{detail:{sourceElement:i}});P.exec(a,t,s,r,i,["push",{data:o,...n}])})},navigate(i,s={}){let n=new CustomEvent("phx:exec");e.historyRedirect(n,i,s.replace?"replace":"push",null,null)},patch(i,s={}){let n=new CustomEvent("phx:exec");e.pushHistoryPatch(n,i,s.replace?"replace":"push",null)},ignoreAttributes(i,s){P.ignoreAttrs(i,Array.isArray(s)?s:[s])}}),Vt="hookId",es="deadHook",Er=1,ye=class cs{get liveSocket(){return this.__liveSocket()}static makeID(){return Er++}static elementID(t){return c.private(t,Vt)}static deadHook(t){return c.private(t,es)===!0}constructor(t,i,s){if(this.el=i,this.__attachView(t),this.__listeners=new Set,this.__isDisconnected=!1,c.putPrivate(this.el,Vt,cs.makeID()),t&&t.isDead&&c.putPrivate(this.el,es,!0),s){let n=new Set(["el","liveSocket","__view","__listeners","__isDisconnected","constructor","js","pushEvent","pushEventTo","handleEvent","removeHandleEvent","upload","uploadTo","__mounted","__updated","__beforeUpdate","__destroyed","__reconnected","__disconnected","__cleanup__"]);for(let o in s)Object.prototype.hasOwnProperty.call(s,o)&&(this[o]=s[o],n.has(o)&&console.warn(`Hook object for element #${i.id} overwrites core property '${o}'!`));["mounted","beforeUpdate","updated","destroyed","disconnected","reconnected"].forEach(o=>{s[o]&&typeof s[o]=="function"&&(this[o]=s[o])})}}__attachView(t){t?(this.__view=()=>t,this.__liveSocket=()=>t.liveSocket):(this.__view=()=>{throw new Error(`hook not yet attached to a live view: ${this.el.outerHTML}`)},this.__liveSocket=()=>{throw new Error(`hook not yet attached to a live view: ${this.el.outerHTML}`)})}mounted(){}beforeUpdate(){}updated(){}destroyed(){}disconnected(){}reconnected(){}__mounted(){this.mounted()}__updated(){this.updated()}__beforeUpdate(){this.beforeUpdate()}__destroyed(){this.destroyed(),c.deletePrivate(this.el,Vt)}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected()}js(){return{...hs(this.__view().liveSocket,"hook"),exec:t=>{this.__view().liveSocket.execJS(this.el,t,"hook")}}}pushEvent(t,i,s){let n=this.__view().pushHookEvent(this.el,null,t,i||{});if(s===void 0)return n.then(({reply:r})=>r);n.then(({reply:r,ref:o})=>s(r,o)).catch(()=>{})}pushEventTo(t,i,s,n){if(n===void 0){let r=[];this.__view().withinTargets(t,(a,l)=>{r.push({view:a,targetCtx:l})});let o=r.map(({view:a,targetCtx:l})=>a.pushHookEvent(this.el,l,i,s||{}));return Promise.allSettled(o)}this.__view().withinTargets(t,(r,o)=>{r.pushHookEvent(this.el,o,i,s||{}).then(({reply:a,ref:l})=>n(a,l)).catch(()=>{})})}handleEvent(t,i){let s={event:t,callback:n=>i(n.detail)};return window.addEventListener(`phx:${t}`,s.callback),this.__listeners.add(s),s}removeHandleEvent(t){window.removeEventListener(`phx:${t.event}`,t.callback),this.__listeners.delete(t)}upload(t,i){return this.__view().dispatchUploads(null,t,i)}uploadTo(t,i,s){return this.__view().withinTargets(t,(n,r)=>{n.dispatchUploads(r,i,s)})}__cleanup__(){this.__listeners.forEach(t=>this.removeHandleEvent(t))}},Sr=(e,t)=>{let i=e.endsWith("[]"),s=i?e.slice(0,-2):e;return s=s.replace(/([^\[\]]+)(\]?$)/,`${t}$1$2`),i&&(s+="[]"),s},pt=(e,t,i=[])=>{let{submitter:s}=t,n;if(s&&s.name){let d=document.createElement("input");d.type="hidden";let p=s.getAttribute("form");p&&d.setAttribute("form",p),d.name=s.name,d.value=s.value,s.parentElement.insertBefore(d,s),n=d}let r=new FormData(e),o=[];r.forEach((d,p,m)=>{d instanceof File&&o.push(p)}),o.forEach(d=>r.delete(d));let a=new URLSearchParams,{inputsUnused:l,onlyHiddenInputs:h}=Array.from(e.elements).reduce((d,p)=>{let{inputsUnused:m,onlyHiddenInputs:g}=d,u=p.name;if(!u)return d;m[u]===void 0&&(m[u]=!0),g[u]===void 0&&(g[u]=!0);let v=c.private(p,yt)||c.private(p,Ye),y=p.type==="hidden";return m[u]=m[u]&&!v,g[u]=g[u]&&y,d},{inputsUnused:{},onlyHiddenInputs:{}});for(let[d,p]of r.entries())if(i.length===0||i.indexOf(d)>=0){let m=l[d],g=h[d];m&&!(s&&s.name==d)&&!g&&a.append(Sr(d,"_unused_"),""),typeof p=="string"&&a.append(d,p)}return s&&n&&s.parentElement.removeChild(n),a.toString()},Ar=class ds{static closestView(t){let i=t.closest(Ze);return i?c.private(i,"view"):null}constructor(t,i,s,n,r){this.isDead=!1,this.liveSocket=i,this.flash=n,this.parent=s,this.root=s?s.root:this,this.el=t;let o=c.private(this.el,"view");if(o!==void 0&&o.isDead!==!0)throw I(`The DOM element for this view has already been bound to a view. An element can only ever be associated with a single view! Please ensure that you are not trying to initialize multiple LiveSockets on the same page. This could happen if you're accidentally trying to render your root layout more than once. Ensure that the template set on the LiveView is different than the root layout. - `,{view:o}),new Error("Cannot bind multiple views to the same DOM element.");c.putPrivate(this.el,"view",this),this.id=this.el.id,this.el.setAttribute(ae,this.root.id),this.ref=0,this.lastAckRef=null,this.childJoins=0,this.loaderTimer=null,this.disconnectedTimer=null,this.pendingDiffs=[],this.pendingForms=new Set,this.redirect=!1,this.href=null,this.joinCount=this.parent?this.parent.joinCount-1:0,this.joinAttempts=0,this.joinPending=!0,this.destroyed=!1,this.joinCallback=function(a){a&&a()},this.stopCallback=function(){},this.pendingJoinOps=[],this.viewHooks={},this.formSubmits=[],this.children=this.parent?null:{},this.root.children[this.id]={},this.formsForRecovery={},this.channel=this.liveSocket.channel(`lv:${this.id}`,()=>{let a=this.href&&this.expandURL(this.href);return{redirect:this.redirect?a:void 0,url:this.redirect?void 0:a||void 0,params:this.connectParams(r),session:this.getSession(),static:this.getStatic(),flash:this.flash,sticky:this.el.hasAttribute(Jt)}}),this.portalElementIds=new Set}setHref(t){this.href=t}setRedirect(t){this.redirect=!0,this.href=t}isMain(){return this.el.hasAttribute(Qt)}connectParams(t){let i=this.liveSocket.params(this.el),s=c.all(document,`[${this.binding(_n)}]`).map(n=>n.src||n.href).filter(n=>typeof n=="string");return s.length>0&&(i._track_static=s),i._mounts=this.joinCount,i._mount_attempts=this.joinAttempts,i._live_referer=t,this.joinAttempts++,i}isConnected(){return this.channel.canPush()}getSession(){return this.el.getAttribute(te)}getStatic(){let t=this.el.getAttribute(Se);return t===""?null:t}destroy(t=function(){}){this.destroyAllChildren(),this.destroyPortalElements(),this.destroyed=!0,c.deletePrivate(this.el,"view"),delete this.root.children[this.id],this.parent&&delete this.root.children[this.parent.id][this.id],clearTimeout(this.loaderTimer);let i=()=>{t();for(let s in this.viewHooks)this.destroyHook(this.viewHooks[s])};c.markPhxChildDestroyed(this.el),this.log("destroyed",()=>["the child has been removed from the parent"]),this.channel.leave().receive("ok",i).receive("error",i).receive("timeout",i)}setContainerClasses(...t){this.el.classList.remove(Ri,be,Le,Li,Ve),this.el.classList.add(...t)}showLoader(t){if(clearTimeout(this.loaderTimer),t)this.loaderTimer=setTimeout(()=>this.showLoader(),t);else{for(let i in this.viewHooks)this.viewHooks[i].__disconnected();this.setContainerClasses(be)}}execAll(t){c.all(this.el,`[${t}]`,i=>this.liveSocket.execJS(i,i.getAttribute(t)))}hideLoader(){clearTimeout(this.loaderTimer),clearTimeout(this.disconnectedTimer),this.setContainerClasses(Ri),this.execAll(this.binding("connected"))}triggerReconnected(){for(let t in this.viewHooks)this.viewHooks[t].__reconnected()}log(t,i){this.liveSocket.log(this,t,i)}transition(t,i,s=function(){}){this.liveSocket.transition(t,i,s)}withinTargets(t,i,s=document){if(t instanceof HTMLElement||t instanceof SVGElement)return this.liveSocket.owner(t,n=>i(n,t));if(oe(t))c.findComponentNodeList(this.id,t,s).length===0?I(`no component found matching phx-target of ${t}`):i(this,parseInt(t));else{let n=Array.from(s.querySelectorAll(t));n.length===0&&I(`nothing found matching the phx-target selector "${t}"`),n.forEach(r=>this.liveSocket.owner(r,o=>i(o,r)))}}applyDiff(t,i,s){this.log(t,()=>["",bt(i)]);let{diff:n,reply:r,events:o,title:a}=Yi.extract(i),l=o.reduce((d,p)=>(p.length===3&&p[2]==!0?d.pre.push(p.slice(0,-1)):d.post.push(p),d),{pre:[],post:[]});this.liveSocket.dispatchEvents(l.pre);let h=()=>{s({diff:n,reply:r,events:l.post}),(typeof a=="string"||t=="mount"&&this.isMain())&&window.requestAnimationFrame(()=>c.putTitle(a))};"onDocumentPatch"in this.liveSocket.domCallbacks?this.liveSocket.triggerDOM("onDocumentPatch",[h]):h()}onJoin(t){let{rendered:i,container:s,liveview_version:n,pid:r}=t;if(s){let[o,a]=s;this.el=c.replaceRootContainer(this.el,o,a)}this.childJoins=0,this.joinPending=!0,this.flash=null,this.root===this&&(this.formsForRecovery=this.getFormsForRecovery()),this.isMain()&&window.history.state===null&&B.pushState("replace",{type:"patch",id:this.id,position:this.liveSocket.currentHistoryPosition}),n!==this.liveSocket.version()&&console.warn(`LiveView asset version mismatch. JavaScript version ${this.liveSocket.version()} vs. server ${n}. To avoid issues, please ensure that your assets use the same version as the server.`),r&&this.el.setAttribute(Mn,r),B.dropLocal(this.liveSocket.localStorage,window.location.pathname,ts),this.applyDiff("mount",i,({diff:o,events:a})=>{this.rendered=new Yi(this.id,o);let[l,h]=this.renderContainer(null,"join");this.dropPendingRefs(),this.joinCount++,this.joinAttempts=0,this.maybeRecoverForms(l,()=>{this.onJoinComplete(t,l,h,a)})})}dropPendingRefs(){c.all(document,`[${J}="${this.refSrc()}"]`,t=>{t.removeAttribute(Ne),t.removeAttribute(J),t.removeAttribute(M)})}onJoinComplete({live_patch:t},i,s,n){if(this.joinCount>1||this.parent&&!this.parent.isJoinPending())return this.applyJoinPatch(t,i,s,n);c.findPhxChildrenInFragment(i,this.id).filter(o=>{let a=o.id&&this.el.querySelector(`[id="${o.id}"]`),l=a&&a.getAttribute(Se);return l&&o.setAttribute(Se,l),a&&a.setAttribute(ae,this.root.id),this.joinChild(o)}).length===0?this.parent?(this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(t,i,s,n)]),this.parent.ackJoin(this)):(this.onAllChildJoinsComplete(),this.applyJoinPatch(t,i,s,n)):this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(t,i,s,n)])}attachTrueDocEl(){this.el=c.byId(this.id),this.el.setAttribute(ae,this.root.id)}execNewMounted(t=document){let i=this.binding(qt),s=this.binding(Kt);this.all(t,`[${i}], [${s}]`,n=>{c.maintainPrivateHooks(n,n,i,s),this.maybeAddNewHook(n)}),this.all(t,`[${this.binding(We)}], [data-phx-${We}]`,n=>{this.maybeAddNewHook(n)}),this.all(t,`[${this.binding(Oi)}]`,n=>{this.maybeMounted(n)})}all(t,i,s){c.all(t,i,n=>{this.ownsElement(n)&&s(n)})}applyJoinPatch(t,i,s,n){this.joinCount>1&&this.pendingJoinOps.length&&(this.pendingJoinOps.forEach(o=>typeof o=="function"&&o()),this.pendingJoinOps=[]),this.attachTrueDocEl();let r=new ft(this,this.el,this.id,i,s,null);if(r.markPrunableContentForRemoval(),this.performPatch(r,!1,!0),this.joinNewChildren(),this.execNewMounted(),this.joinPending=!1,this.liveSocket.dispatchEvents(n),this.applyPendingUpdates(),t){let{kind:o,to:a}=t;this.liveSocket.historyPatch(a,o)}this.hideLoader(),this.joinCount>1&&this.triggerReconnected(),this.stopCallback()}triggerBeforeUpdateHook(t,i){this.liveSocket.triggerDOM("onBeforeElUpdated",[t,i]);let s=this.getHook(t),n=s&&c.isIgnored(t,this.binding(Et));if(s&&!t.isEqualNode(i)&&!(n&&zn(t.dataset,i.dataset)))return s.__beforeUpdate(),s}maybeMounted(t){let i=t.getAttribute(this.binding(Oi)),s=i&&c.private(t,"mounted");i&&!s&&(this.liveSocket.execJS(t,i),c.putPrivate(t,"mounted",!0))}maybeAddNewHook(t){let i=this.addHook(t);i&&i.__mounted()}performPatch(t,i,s=!1){let n=[],r=!1,o=new Set;return this.liveSocket.triggerDOM("onPatchStart",[t.targetContainer]),t.after("added",a=>{this.liveSocket.triggerDOM("onNodeAdded",[a]);let l=this.binding(qt),h=this.binding(Kt);c.maintainPrivateHooks(a,a,l,h),this.maybeAddNewHook(a),a.getAttribute&&this.maybeMounted(a)}),t.after("phxChildAdded",a=>{c.isPhxSticky(a)?this.liveSocket.joinRootViews():r=!0}),t.before("updated",(a,l)=>{this.triggerBeforeUpdateHook(a,l)&&o.add(a.id),P.onBeforeElUpdated(a,l)}),t.after("updated",a=>{o.has(a.id)&&this.getHook(a).__updated()}),t.after("discarded",a=>{a.nodeType===Node.ELEMENT_NODE&&n.push(a)}),t.after("transitionsDiscarded",a=>this.afterElementsRemoved(a,i)),t.perform(s),this.afterElementsRemoved(n,i),this.liveSocket.triggerDOM("onPatchEnd",[t.targetContainer]),r}afterElementsRemoved(t,i){let s=[];t.forEach(n=>{let r=c.all(n,`[${He}="${this.id}"][${ee}]`),o=c.all(n,`[${this.binding(We)}], [data-phx-hook]`);r.concat(n).forEach(a=>{let l=this.componentID(a);oe(l)&&s.indexOf(l)===-1&&a.getAttribute(He)===this.id&&s.push(l)}),o.concat(n).forEach(a=>{let l=this.getHook(a);l&&this.destroyHook(l)})}),i&&this.maybePushComponentsDestroyed(s)}joinNewChildren(){c.findPhxChildren(document,this.id).forEach(t=>this.joinChild(t))}maybeRecoverForms(t,i){let s=this.binding("change"),n=this.root.formsForRecovery,r=document.createElement("template");r.innerHTML=t,c.all(r.content,`[${ei}]`).forEach(l=>{r.content.firstElementChild.appendChild(l.content.firstElementChild)});let o=r.content.firstElementChild;o.id=this.id,o.setAttribute(ae,this.root.id),o.setAttribute(te,this.getSession()),o.setAttribute(Se,this.getStatic()),o.setAttribute(Ae,this.parent?this.parent.id:null);let a=c.all(r.content,"form").filter(l=>l.id&&n[l.id]).filter(l=>!this.pendingForms.has(l.id)).filter(l=>n[l.id].getAttribute(s)===l.getAttribute(s)).map(l=>[n[l.id],l]);if(a.length===0)return i();a.forEach(([l,h],d)=>{this.pendingForms.add(h.id),this.pushFormRecovery(l,h,r.content.firstElementChild,()=>{this.pendingForms.delete(h.id),d===a.length-1&&i()})})}getChildById(t){return this.root.children[this.id][t]}getDescendentByEl(t){return t.id===this.id?this:this.children[t.getAttribute(Ae)]?.[t.id]}destroyDescendent(t){for(let i in this.root.children)for(let s in this.root.children[i])if(s===t)return this.root.children[i][s].destroy()}joinChild(t){if(!this.getChildById(t.id)){let s=new ds(t,this.liveSocket,this);return this.root.children[this.id][s.id]=s,s.join(),this.childJoins++,!0}}isJoinPending(){return this.joinPending}ackJoin(t){this.childJoins--,this.childJoins===0&&(this.parent?this.parent.ackJoin(this):this.onAllChildJoinsComplete())}onAllChildJoinsComplete(){this.pendingForms.clear(),this.formsForRecovery={},this.joinCallback(()=>{this.pendingJoinOps.forEach(([t,i])=>{t.isDestroyed()||i()}),this.pendingJoinOps=[]})}update(t,i,s=!1){if(this.isJoinPending()||this.liveSocket.hasPendingLink()&&this.root.isMain())return s||this.pendingDiffs.push({diff:t,events:i}),!1;this.rendered.mergeDiff(t);let n=!1;return this.rendered.isComponentOnlyDiff(t)?this.liveSocket.time("component patch complete",()=>{c.findExistingParentCIDs(this.id,this.rendered.componentCIDs(t)).forEach(o=>{this.componentPatch(this.rendered.getComponent(t,o),o)&&(n=!0)})}):Bi(t)||this.liveSocket.time("full patch complete",()=>{let[r,o]=this.renderContainer(t,"update"),a=new ft(this,this.el,this.id,r,o,null);n=this.performPatch(a,!0)}),this.liveSocket.dispatchEvents(i),n&&this.joinNewChildren(),!0}renderContainer(t,i){return this.liveSocket.time(`toString diff (${i})`,()=>{let s=this.el.tagName,n=t?this.rendered.componentCIDs(t):null,{buffer:r,streams:o}=this.rendered.toString(n);return[`<${s}>${r}`,o]})}componentPatch(t,i){if(Bi(t))return!1;let{buffer:s,streams:n}=this.rendered.componentToString(i),r=new ft(this,this.el,this.id,s,n,i);return this.performPatch(r,!0)}getHook(t){return this.viewHooks[ye.elementID(t)]}addHook(t){let i=ye.elementID(t);if(!(t.getAttribute&&!this.ownsElement(t)))if(i&&!this.viewHooks[i]){if(ye.deadHook(t))return;let s=c.getCustomElHook(t)||I(`no hook found for custom element: ${t.id}`);return this.viewHooks[i]=s,s.__attachView(this),s}else{if(i||!t.getAttribute)return;{let s=t.getAttribute(`data-phx-${We}`)||t.getAttribute(this.binding(We));if(!s)return;let n=this.liveSocket.getHookDefinition(s);if(n){if(!t.id){I(`no DOM ID for hook "${s}". Hooks require a unique ID on each element.`,t);return}let r;try{if(typeof n=="function"&&n.prototype instanceof ye)r=new n(this,t);else if(typeof n=="object"&&n!==null)r=new ye(this,t,n);else{I(`Invalid hook definition for "${s}". Expected a class extending ViewHook or an object definition.`,t);return}}catch(o){let a=o instanceof Error?o.message:String(o);I(`Failed to create hook "${s}": ${a}`,t);return}return this.viewHooks[ye.elementID(r.el)]=r,r}else s!==null&&I(`unknown hook found for "${s}"`,t)}}}destroyHook(t){let i=ye.elementID(t.el);t.__destroyed(),t.__cleanup__(),delete this.viewHooks[i]}applyPendingUpdates(){this.pendingDiffs=this.pendingDiffs.filter(({diff:t,events:i})=>!this.update(t,i,!0)),this.eachChild(t=>t.applyPendingUpdates())}eachChild(t){let i=this.root.children[this.id]||{};for(let s in i)t(this.getChildById(s))}onChannel(t,i){this.liveSocket.onChannel(this.channel,t,s=>{this.isJoinPending()?this.joinCount>1?this.pendingJoinOps.push(()=>i(s)):this.root.pendingJoinOps.push([this,()=>i(s)]):this.liveSocket.requestDOMUpdate(()=>i(s))})}bindChannel(){this.liveSocket.onChannel(this.channel,"diff",t=>{this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",t,({diff:i,events:s})=>this.update(i,s))})}),this.onChannel("redirect",({to:t,flash:i})=>this.onRedirect({to:t,flash:i})),this.onChannel("live_patch",t=>this.onLivePatch(t)),this.onChannel("live_redirect",t=>this.onLiveRedirect(t)),this.channel.onError(t=>this.onError(t)),this.channel.onClose(t=>this.onClose(t))}destroyAllChildren(){this.eachChild(t=>t.destroy())}onLiveRedirect(t){let{to:i,kind:s,flash:n}=t,r=this.expandURL(i),o=new CustomEvent("phx:server-navigate",{detail:{to:i,kind:s,flash:n}});this.liveSocket.historyRedirect(o,r,s,n)}onLivePatch(t){let{to:i,kind:s}=t;this.href=this.expandURL(i),this.liveSocket.historyPatch(i,s)}expandURL(t){return t.startsWith("/")?`${window.location.protocol}//${window.location.host}${t}`:t}onRedirect({to:t,flash:i,reloadToken:s}){this.liveSocket.redirect(t,i,s)}isDestroyed(){return this.destroyed}joinDead(){this.isDead=!0}joinPush(){return this.joinPush=this.joinPush||this.channel.join(),this.joinPush}join(t){this.showLoader(this.liveSocket.loaderTimeout),this.bindChannel(),this.isMain()&&(this.stopCallback=this.liveSocket.withPageLoading({to:this.href,kind:"initial"})),this.joinCallback=i=>{i=i||function(){},t?t(this.joinCount,i):i()},this.wrapPush(()=>this.channel.join(),{ok:i=>this.liveSocket.requestDOMUpdate(()=>this.onJoin(i)),error:i=>this.onJoinError(i),timeout:()=>this.onJoinError({reason:"timeout"})})}onJoinError(t){if(t.reason==="reload"){this.log("error",()=>[`failed mount with ${t.status}. Falling back to page reload`,t]),this.onRedirect({to:this.liveSocket.main.href,reloadToken:t.token});return}else if(t.reason==="unauthorized"||t.reason==="stale"){this.log("error",()=>["unauthorized live_redirect. Falling back to page request",t]),this.onRedirect({to:this.liveSocket.main.href,flash:this.flash});return}if((t.redirect||t.live_redirect)&&(this.joinPending=!1,this.channel.leave()),t.redirect)return this.onRedirect(t.redirect);if(t.live_redirect)return this.onLiveRedirect(t.live_redirect);if(this.log("error",()=>["unable to join",t]),this.isMain())this.displayError([be,Le,Ve],{unstructuredError:t,errorKind:"server"}),this.liveSocket.isConnected()&&this.liveSocket.reloadWithJitter(this);else{this.joinAttempts>=Hi&&(this.root.displayError([be,Le,Ve],{unstructuredError:t,errorKind:"server"}),this.log("error",()=>[`giving up trying to mount after ${Hi} tries`,t]),this.destroy());let i=c.byId(this.el.id);i?(c.mergeAttrs(i,this.el),this.displayError([be,Le,Ve],{unstructuredError:t,errorKind:"server"}),this.el=i):this.destroy()}}onClose(t){if(!this.isDestroyed()){if(this.isMain()&&this.liveSocket.hasPendingLink()&&t!=="leave")return this.liveSocket.reloadWithJitter(this);this.destroyAllChildren(),this.liveSocket.dropActiveElement(this),this.liveSocket.isUnloaded()&&this.showLoader(Fn)}}onError(t){this.onClose(t),this.liveSocket.isConnected()&&this.log("error",()=>["view crashed",t]),this.liveSocket.isUnloaded()||(this.liveSocket.isConnected()?this.displayError([be,Le,Ve],{unstructuredError:t,errorKind:"server"}):this.displayError([be,Le,Li],{unstructuredError:t,errorKind:"client"}))}displayError(t,i={}){this.isMain()&&c.dispatchEvent(window,"phx:page-loading-start",{detail:{to:this.href,kind:"error",...i}}),this.showLoader(),this.setContainerClasses(...t),this.delayedDisconnected()}delayedDisconnected(){this.disconnectedTimer=setTimeout(()=>{this.execAll(this.binding("disconnected"))},this.liveSocket.disconnectedTimeout)}wrapPush(t,i){let s=this.liveSocket.getLatencySim(),n=s?r=>setTimeout(()=>!this.isDestroyed()&&r(),s):r=>!this.isDestroyed()&&r();n(()=>{t().receive("ok",r=>n(()=>i.ok&&i.ok(r))).receive("error",r=>n(()=>i.error&&i.error(r))).receive("timeout",()=>n(()=>i.timeout&&i.timeout()))})}pushWithReply(t,i,s){if(!this.isConnected())return Promise.reject(new Error("no connection"));let[n,[r],o]=t?t({payload:s}):[null,[],{}],a=this.joinCount,l=function(){};return o.page_loading&&(l=this.liveSocket.withPageLoading({kind:"element",target:r})),typeof s.cid!="number"&&delete s.cid,new Promise((h,d)=>{this.wrapPush(()=>this.channel.push(i,s,Bn),{ok:p=>{n!==null&&(this.lastAckRef=n);let m=g=>{p.redirect&&this.onRedirect(p.redirect),p.live_patch&&this.onLivePatch(p.live_patch),p.live_redirect&&this.onLiveRedirect(p.live_redirect),l(),h({resp:p,reply:g,ref:n})};p.diff?this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",p.diff,({diff:g,reply:u,events:v})=>{n!==null&&this.undoRefs(n,s.event),this.update(g,v),m(u)})}):(n!==null&&this.undoRefs(n,s.event),m(null))},error:p=>d(new Error(`failed with reason: ${JSON.stringify(p)}`)),timeout:()=>{d(new Error("timeout")),this.joinCount===a&&this.liveSocket.reloadWithJitter(this,()=>{this.log("timeout",()=>["received timeout while communicating with server. Falling back to hard refresh for recovery"])})}})})}undoRefs(t,i,s){if(!this.isConnected())return;let n=`[${J}="${this.refSrc()}"]`;s?(s=new Set(s),c.all(document,n,r=>{s&&!s.has(r)||(c.all(r,n,o=>this.undoElRef(o,t,i)),this.undoElRef(r,t,i))})):c.all(document,n,r=>this.undoElRef(r,t,i))}undoElRef(t,i,s){new Gt(t).maybeUndo(i,s,r=>{let o=new ft(this,t,this.id,r,[],null,{undoRef:i}),a=this.performPatch(o,!0);c.all(t,`[${J}="${this.refSrc()}"]`,l=>this.undoElRef(l,i,s)),a&&this.joinNewChildren()})}refSrc(){return this.el.id}putRef(t,i,s,n={}){let r=this.ref++,o=this.binding(Ii);if(n.loading){let a=c.all(document,n.loading).map(l=>({el:l,lock:!0,loading:!0}));t=t.concat(a)}for(let{el:a,lock:l,loading:h}of t){if(!l&&!h)throw new Error("putRef requires lock or loading");if(a.setAttribute(J,this.refSrc()),h&&a.setAttribute(Ne,r),l&&a.setAttribute(M,r),!h||n.submitter&&!(a===n.submitter||a===n.form))continue;let d=new Promise(u=>{a.addEventListener(`phx:undo-lock:${r}`,()=>u(g),{once:!0})}),p=new Promise(u=>{a.addEventListener(`phx:undo-loading:${r}`,()=>u(g),{once:!0})});a.classList.add(`phx-${s}-loading`);let m=a.getAttribute(o);m!==null&&(a.getAttribute(wt)||a.setAttribute(wt,a.textContent),m!==""&&(a.textContent=m),a.setAttribute(Oe,a.getAttribute(Oe)||a.disabled),a.setAttribute("disabled",""));let g={event:i,eventType:s,ref:r,isLoading:h,isLocked:l,lockElements:t.filter(({lock:u})=>u).map(({el:u})=>u),loadingElements:t.filter(({loading:u})=>u).map(({el:u})=>u),unlock:u=>{u=Array.isArray(u)?u:[u],this.undoRefs(r,i,u)},lockComplete:d,loadingComplete:p,lock:u=>new Promise(v=>{if(this.isAcked(r))return v(g);u.setAttribute(M,r),u.setAttribute(J,this.refSrc()),u.addEventListener(`phx:lock-stop:${r}`,()=>v(g),{once:!0})})};n.payload&&(g.payload=n.payload),n.target&&(g.target=n.target),n.originalEvent&&(g.originalEvent=n.originalEvent),a.dispatchEvent(new CustomEvent("phx:push",{detail:g,bubbles:!0,cancelable:!1})),i&&a.dispatchEvent(new CustomEvent(`phx:push:${i}`,{detail:g,bubbles:!0,cancelable:!1}))}return[r,t.map(({el:a})=>a),n]}isAcked(t){return this.lastAckRef!==null&&this.lastAckRef>=t}componentID(t){let i=t.getAttribute&&t.getAttribute(ee);return i?parseInt(i):null}targetComponentID(t,i,s={}){if(oe(i))return i;let n=s.target||t.getAttribute(this.binding("target"));return oe(n)?parseInt(n):i&&(n!==null||s.target)?this.closestComponentID(i):null}closestComponentID(t){return oe(t)?t:t?Me(t.closest(`[${ee}],[${me}]`),i=>{if(i.hasAttribute(ee))return this.ownsElement(i)&&this.componentID(i);if(i.hasAttribute(me)){let s=c.byId(i.getAttribute(me));return this.closestComponentID(s)}}):null}pushHookEvent(t,i,s,n){if(!this.isConnected())return this.log("hook",()=>["unable to push hook event. LiveView not connected",s,n]),Promise.reject(new Error("unable to push hook event. LiveView not connected"));let r=()=>this.putRef([{el:t,loading:!0,lock:!0}],s,"hook",{payload:n,target:i});return this.pushWithReply(r,"event",{type:"hook",event:s,value:n,cid:this.closestComponentID(i)}).then(({resp:o,reply:a,ref:l})=>({reply:a,ref:l}))}extractMeta(t,i,s){let n=this.binding("value-");for(let r=0;r=0&&!t.checked&&delete i.value),s){i||(i={});for(let r in s)i[r]=s[r]}return i}pushEvent(t,i,s,n,r,o={},a){this.pushWithReply(l=>this.putRef([{el:i,loading:!0,lock:!0}],n,t,{...o,payload:l?.payload}),"event",{type:t,event:n,value:this.extractMeta(i,r,o.value),cid:this.targetComponentID(i,s,o)}).then(({reply:l})=>a&&a(l)).catch(l=>I("Failed to push event",l))}pushFileProgress(t,i,s,n=function(){}){this.liveSocket.withinOwners(t.form,(r,o)=>{r.pushWithReply(null,"progress",{event:t.getAttribute(r.binding(Nn)),ref:t.getAttribute(le),entry_ref:i,progress:s,cid:r.targetComponentID(t.form,o)}).then(()=>n()).catch(a=>I("Failed to push file progress",a))})}pushInput(t,i,s,n,r,o){if(!t.form)throw new Error("form events require the input to be inside a form");let a,l=oe(s)?s:this.targetComponentID(t.form,i,r),h=u=>this.putRef([{el:t,loading:!0,lock:!0},{el:t.form,loading:!0,lock:!0}],n,"change",{...r,payload:u?.payload}),d,p=this.extractMeta(t.form,{},r.value),m={};t instanceof HTMLButtonElement&&(m.submitter=t),t.getAttribute(this.binding("change"))?d=pt(t.form,m,[t.name]):d=pt(t.form,m),c.isUploadInput(t)&&t.files&&t.files.length>0&&N.trackFiles(t,Array.from(t.files)),a=N.serializeUploads(t);let g={type:"form",event:n,value:d,meta:{_target:r._target||"undefined",...p},uploads:a,cid:l};this.pushWithReply(h,"event",g).then(({resp:u})=>{c.isUploadInput(t)&&c.isAutoUpload(t)?Gt.onUnlock(t,()=>{if(N.filesAwaitingPreflight(t).length>0){let[v,y]=h();this.undoRefs(v,n,[t.form]),this.uploadFiles(t.form,n,i,v,l,L=>{o&&o(u),this.triggerAwaitingSubmit(t.form,n),this.undoRefs(v,n)})}}):o&&o(u)}).catch(u=>I("Failed to push input event",u))}triggerAwaitingSubmit(t,i){let s=this.getScheduledSubmit(t);if(s){let[n,r,o,a]=s;this.cancelSubmit(t,i),a()}}getScheduledSubmit(t){return this.formSubmits.find(([i,s,n,r])=>i.isSameNode(t))}scheduleSubmit(t,i,s,n){if(this.getScheduledSubmit(t))return!0;this.formSubmits.push([t,i,s,n])}cancelSubmit(t,i){this.formSubmits=this.formSubmits.filter(([s,n,r,o])=>s.isSameNode(t)?(this.undoRefs(n,i),!1):!0)}disableForm(t,i,s={}){let n=u=>!(Ee(u,`${this.binding(Et)}=ignore`,u.form)||Ee(u,"data-phx-update=ignore",u.form)),r=u=>u.hasAttribute(this.binding(Ii)),o=u=>u.tagName=="BUTTON",a=u=>["INPUT","TEXTAREA","SELECT"].includes(u.tagName),l=Array.from(t.elements),h=l.filter(r),d=l.filter(o).filter(n),p=l.filter(a).filter(n);d.forEach(u=>{u.setAttribute(Oe,u.disabled),u.disabled=!0}),p.forEach(u=>{u.setAttribute(zt,u.readOnly),u.readOnly=!0,u.files&&(u.setAttribute(Oe,u.disabled),u.disabled=!0)});let m=h.concat(d).concat(p).map(u=>({el:u,loading:!0,lock:!0})),g=[{el:t,loading:!0,lock:!1}].concat(m).reverse();return this.putRef(g,i,"submit",s)}pushFormSubmit(t,i,s,n,r,o){let a=h=>this.disableForm(t,s,{...r,form:t,payload:h?.payload,submitter:n});c.putPrivate(t,"submitter",n);let l=this.targetComponentID(t,i);if(N.hasUploadsInProgress(t)){let[h,d]=a(),p=()=>this.pushFormSubmit(t,i,s,n,r,o);return this.scheduleSubmit(t,h,r,p)}else if(N.inputsAwaitingPreflight(t).length>0){let[h,d]=a(),p=()=>[h,d,r];this.uploadFiles(t,s,i,h,l,m=>{if(N.inputsAwaitingPreflight(t).length>0)return this.undoRefs(h,s);let g=this.extractMeta(t,{},r.value),u=pt(t,{submitter:n});this.pushWithReply(p,"event",{type:"form",event:s,value:u,meta:g,cid:l}).then(({resp:v})=>o(v)).catch(v=>I("Failed to push form submit",v))})}else if(!(t.hasAttribute(J)&&t.classList.contains("phx-submit-loading"))){let h=this.extractMeta(t,{},r.value),d=pt(t,{submitter:n});this.pushWithReply(a,"event",{type:"form",event:s,value:d,meta:h,cid:l}).then(({resp:p})=>o(p)).catch(p=>I("Failed to push form submit",p))}}uploadFiles(t,i,s,n,r,o){let a=this.joinCount,l=N.activeFileInputs(t),h=l.length;l.forEach(d=>{let p=new N(d,this,()=>{h--,h===0&&o()}),m=p.entries().map(u=>u.toPreflightPayload());if(m.length===0){h--;return}let g={ref:d.getAttribute(le),entries:m,cid:this.targetComponentID(d.form,s)};this.log("upload",()=>["sending preflight request",g]),this.pushWithReply(null,"allow_upload",g).then(({resp:u})=>{if(this.log("upload",()=>["got preflight response",u]),p.entries().forEach(v=>{u.entries&&!u.entries[v.ref]&&this.handleFailedEntryPreflight(v.ref,"failed preflight",p)}),u.error||Object.keys(u.entries).length===0)this.undoRefs(n,i),(u.error||[]).map(([y,L])=>{this.handleFailedEntryPreflight(y,L,p)});else{let v=y=>{this.channel.onError(()=>{this.joinCount===a&&y()})};p.initAdapterUpload(u,v,this.liveSocket)}}).catch(u=>I("Failed to push upload",u))})}handleFailedEntryPreflight(t,i,s){if(s.isAutoUpload()){let n=s.entries().find(r=>r.ref===t.toString());n&&n.cancel()}else s.entries().map(n=>n.cancel());this.log("upload",()=>[`error for entry ${t}`,i])}dispatchUploads(t,i,s){let n=this.targetCtxElement(t)||this.el,r=c.findUploadInputs(n).filter(o=>o.name===i);r.length===0?I(`no live file inputs found matching the name "${i}"`):r.length>1?I(`duplicate live file inputs found matching the name "${i}"`):c.dispatchEvent(r[0],ss,{detail:{files:s}})}targetCtxElement(t){if(oe(t)){let[i]=c.findComponentNodeList(this.id,t);return i}else return t||null}pushFormRecovery(t,i,s,n){let r=this.binding("change"),o=i.getAttribute(this.binding("target"))||i,a=i.getAttribute(this.binding(Di))||i.getAttribute(this.binding("change")),l=Array.from(t.elements).filter(p=>c.isFormInput(p)&&p.name&&!p.hasAttribute(r));if(l.length===0){n();return}l.forEach(p=>p.hasAttribute(le)&&N.clearFiles(p));let h=l.find(p=>p.type!=="hidden")||l[0],d=0;this.withinTargets(o,(p,m)=>{let g=this.targetComponentID(i,m);d++;let u=new CustomEvent("phx:form-recovery",{detail:{sourceElement:t}});P.exec(u,"change",a,this,h,["push",{_target:h.name,targetView:p,targetCtx:m,newCid:g,callback:()=>{d--,d===0&&n()}}])},s)}pushLinkPatch(t,i,s,n){let r=this.liveSocket.setPendingLink(i),o=t.isTrusted&&t.type!=="popstate",a=s?()=>this.putRef([{el:s,loading:o,lock:!0}],null,"click"):null,l=()=>this.liveSocket.redirect(window.location.href),h=i.startsWith("/")?`${location.protocol}//${location.host}${i}`:i;this.pushWithReply(a,"live_patch",{url:h}).then(({resp:d})=>{this.liveSocket.requestDOMUpdate(()=>{if(d.link_redirect)this.liveSocket.replaceMain(i,null,n,r);else{if(d.redirect)return;this.liveSocket.commitPendingLink(r)&&(this.href=i),this.applyPendingUpdates(),n&&n(r)}})},({error:d,timeout:p})=>l())}getFormsForRecovery(){if(this.joinCount===0)return{};let t=this.binding("change");return c.all(document,`#${CSS.escape(this.id)} form[${t}], [${ke}="${CSS.escape(this.id)}"] form[${t}]`).filter(i=>i.id).filter(i=>i.elements.length>0).filter(i=>i.getAttribute(this.binding(Di))!=="ignore").map(i=>{let s=i.cloneNode(!0);Yt(s,i,{onBeforeElUpdated:(r,o)=>(c.copyPrivates(r,o),r.getAttribute("form")===i.id?(r.parentNode.removeChild(r),!1):!0)});let n=document.querySelectorAll(`[form="${CSS.escape(i.id)}"]`);return Array.from(n).forEach(r=>{let o=r.cloneNode(!0);Yt(o,r),c.copyPrivates(o,r),o.removeAttribute("form"),s.appendChild(o)}),s}).reduce((i,s)=>(i[s.id]=s,i),{})}maybePushComponentsDestroyed(t){let i=t.filter(n=>c.findComponentNodeList(this.id,n).length===0),s=n=>{this.isDestroyed()||I("Failed to push components destroyed",n)};i.length>0&&(i.forEach(n=>this.rendered.resetRender(n)),this.pushWithReply(null,"cids_will_destroy",{cids:i}).then(()=>{this.liveSocket.requestDOMUpdate(()=>{let n=i.filter(r=>c.findComponentNodeList(this.id,r).length===0);n.length>0&&this.pushWithReply(null,"cids_destroyed",{cids:n}).then(({resp:r})=>{this.rendered.pruneCIDs(r.cids)}).catch(s)})}).catch(s))}ownsElement(t){let i=c.closestViewEl(t);return t.getAttribute(Ae)===this.id||i&&i.id===this.id||!i&&this.isDead}submitForm(t,i,s,n,r={}){c.putPrivate(t,Ye,!0),Array.from(t.elements).forEach(a=>c.putPrivate(a,Ye,!0)),this.liveSocket.blurActiveElement(this),this.pushFormSubmit(t,i,s,n,r,()=>{this.liveSocket.restorePreviouslyActiveFocus()})}binding(t){return this.liveSocket.binding(t)}pushPortalElementId(t){this.portalElementIds.add(t)}dropPortalElementId(t){this.portalElementIds.delete(t)}destroyPortalElements(){this.liveSocket.unloaded||this.portalElementIds.forEach(t=>{let i=document.getElementById(t);i&&i.remove()})}};var Ar=class{constructor(e,t,i={}){if(this.unloaded=!1,!t||t.constructor.name==="Object")throw new Error(` + `,{view:o}),new Error("Cannot bind multiple views to the same DOM element.");c.putPrivate(this.el,"view",this),this.id=this.el.id,this.el.setAttribute(ae,this.root.id),this.ref=0,this.lastAckRef=null,this.childJoins=0,this.loaderTimer=null,this.disconnectedTimer=null,this.pendingDiffs=[],this.pendingForms=new Set,this.redirect=!1,this.href=null,this.joinCount=this.parent?this.parent.joinCount-1:0,this.joinAttempts=0,this.joinPending=!0,this.destroyed=!1,this.joinCallback=function(a){a&&a()},this.stopCallback=function(){},this.pendingJoinOps=[],this.viewHooks={},this.formSubmits=[],this.children=this.parent?null:{},this.root.children[this.id]={},this.formsForRecovery={},this.channel=this.liveSocket.channel(`lv:${this.id}`,()=>{let a=this.href&&this.expandURL(this.href);return{redirect:this.redirect?a:void 0,url:this.redirect?void 0:a||void 0,params:this.connectParams(r),session:this.getSession(),static:this.getStatic(),flash:this.flash,sticky:this.el.hasAttribute(Jt)}}),this.portalElementIds=new Set}setHref(t){this.href=t}setRedirect(t){this.redirect=!0,this.href=t}isMain(){return this.el.hasAttribute(Qt)}connectParams(t){let i=this.liveSocket.params(this.el),s=c.all(document,`[${this.binding(xn)}]`).map(n=>n.src||n.href).filter(n=>typeof n=="string");return s.length>0&&(i._track_static=s),i._mounts=this.joinCount,i._mount_attempts=this.joinAttempts,i._live_referer=t,this.joinAttempts++,i}isConnected(){return this.channel.canPush()}getSession(){return this.el.getAttribute(te)}getStatic(){let t=this.el.getAttribute(Se);return t===""?null:t}destroy(t=function(){}){this.destroyAllChildren(),this.destroyPortalElements(),this.destroyed=!0,c.deletePrivate(this.el,"view"),delete this.root.children[this.id],this.parent&&delete this.root.children[this.parent.id][this.id],clearTimeout(this.loaderTimer);let i=()=>{t();for(let s in this.viewHooks)this.destroyHook(this.viewHooks[s])};c.markPhxChildDestroyed(this.el),this.log("destroyed",()=>["the child has been removed from the parent"]),this.channel.leave().receive("ok",i).receive("error",i).receive("timeout",i)}setContainerClasses(...t){this.el.classList.remove(Ri,be,Le,Li,Ve),this.el.classList.add(...t)}showLoader(t){if(clearTimeout(this.loaderTimer),t)this.loaderTimer=setTimeout(()=>this.showLoader(),t);else{for(let i in this.viewHooks)this.viewHooks[i].__disconnected();this.setContainerClasses(be)}}execAll(t){c.all(this.el,`[${t}]`,i=>this.liveSocket.execJS(i,i.getAttribute(t)))}hideLoader(){clearTimeout(this.loaderTimer),clearTimeout(this.disconnectedTimer),this.setContainerClasses(Ri),this.execAll(this.binding("connected"))}triggerReconnected(){for(let t in this.viewHooks)this.viewHooks[t].__reconnected()}log(t,i){this.liveSocket.log(this,t,i)}transition(t,i,s=function(){}){this.liveSocket.transition(t,i,s)}withinTargets(t,i,s=document){if(t instanceof HTMLElement||t instanceof SVGElement)return this.liveSocket.owner(t,n=>i(n,t));if(oe(t))c.findComponentNodeList(this.id,t,s).length===0?I(`no component found matching phx-target of ${t}`):i(this,parseInt(t));else{let n=Array.from(s.querySelectorAll(t));n.length===0&&I(`nothing found matching the phx-target selector "${t}"`),n.forEach(r=>this.liveSocket.owner(r,o=>i(o,r)))}}applyDiff(t,i,s){this.log(t,()=>["",bt(i)]);let{diff:n,reply:r,events:o,title:a}=Yi.extract(i),l=o.reduce((d,p)=>(p.length===3&&p[2]==!0?d.pre.push(p.slice(0,-1)):d.post.push(p),d),{pre:[],post:[]});this.liveSocket.dispatchEvents(l.pre);let h=()=>{s({diff:n,reply:r,events:l.post}),(typeof a=="string"||t=="mount"&&this.isMain())&&window.requestAnimationFrame(()=>c.putTitle(a))};"onDocumentPatch"in this.liveSocket.domCallbacks?this.liveSocket.triggerDOM("onDocumentPatch",[h]):h()}onJoin(t){let{rendered:i,container:s,liveview_version:n,pid:r}=t;if(s){let[o,a]=s;this.el=c.replaceRootContainer(this.el,o,a)}this.childJoins=0,this.joinPending=!0,this.flash=null,this.root===this&&(this.formsForRecovery=this.getFormsForRecovery()),this.isMain()&&window.history.state===null&&B.pushState("replace",{type:"patch",id:this.id,position:this.liveSocket.currentHistoryPosition}),n!==this.liveSocket.version()&&console.warn(`LiveView asset version mismatch. JavaScript version ${this.liveSocket.version()} vs. server ${n}. To avoid issues, please ensure that your assets use the same version as the server.`),r&&this.el.setAttribute(Hn,r),B.dropLocal(this.liveSocket.localStorage,window.location.pathname,ts),this.applyDiff("mount",i,({diff:o,events:a})=>{this.rendered=new Yi(this.id,o);let[l,h]=this.renderContainer(null,"join");this.dropPendingRefs(),this.joinCount++,this.joinAttempts=0,this.maybeRecoverForms(l,()=>{this.onJoinComplete(t,l,h,a)})})}dropPendingRefs(){c.all(document,`[${J}="${this.refSrc()}"]`,t=>{t.removeAttribute(Ne),t.removeAttribute(J),t.removeAttribute(M)})}onJoinComplete({live_patch:t},i,s,n){if(this.joinCount>1||this.parent&&!this.parent.isJoinPending())return this.applyJoinPatch(t,i,s,n);c.findPhxChildrenInFragment(i,this.id).filter(o=>{let a=o.id&&this.el.querySelector(`[id="${o.id}"]`),l=a&&a.getAttribute(Se);return l&&o.setAttribute(Se,l),a&&a.setAttribute(ae,this.root.id),this.joinChild(o)}).length===0?this.parent?(this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(t,i,s,n)]),this.parent.ackJoin(this)):(this.onAllChildJoinsComplete(),this.applyJoinPatch(t,i,s,n)):this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(t,i,s,n)])}attachTrueDocEl(){this.el=c.byId(this.id),this.el.setAttribute(ae,this.root.id)}execNewMounted(t=document){let i=this.binding(qt),s=this.binding(Kt);this.all(t,`[${i}], [${s}]`,n=>{c.maintainPrivateHooks(n,n,i,s),this.maybeAddNewHook(n)}),this.all(t,`[${this.binding(We)}], [data-phx-${We}]`,n=>{this.maybeAddNewHook(n)}),this.all(t,`[${this.binding(Oi)}]`,n=>{this.maybeMounted(n)})}all(t,i,s){c.all(t,i,n=>{this.ownsElement(n)&&s(n)})}applyJoinPatch(t,i,s,n){this.joinCount>1&&this.pendingJoinOps.length&&(this.pendingJoinOps.forEach(o=>typeof o=="function"&&o()),this.pendingJoinOps=[]),this.attachTrueDocEl();let r=new ft(this,this.el,this.id,i,s,null);if(r.markPrunableContentForRemoval(),this.performPatch(r,!1,!0),this.joinNewChildren(),this.execNewMounted(),this.joinPending=!1,this.liveSocket.dispatchEvents(n),this.applyPendingUpdates(),t){let{kind:o,to:a}=t;this.liveSocket.historyPatch(a,o)}this.hideLoader(),this.joinCount>1&&this.triggerReconnected(),this.stopCallback()}triggerBeforeUpdateHook(t,i){this.liveSocket.triggerDOM("onBeforeElUpdated",[t,i]);let s=this.getHook(t),n=s&&c.isIgnored(t,this.binding(Et));if(s&&!t.isEqualNode(i)&&!(n&&Xn(t.dataset,i.dataset)))return s.__beforeUpdate(),s}maybeMounted(t){let i=t.getAttribute(this.binding(Oi)),s=i&&c.private(t,"mounted");i&&!s&&(this.liveSocket.execJS(t,i),c.putPrivate(t,"mounted",!0))}maybeAddNewHook(t){let i=this.addHook(t);i&&i.__mounted()}performPatch(t,i,s=!1){let n=[],r=!1,o=new Set;return this.liveSocket.triggerDOM("onPatchStart",[t.targetContainer]),t.after("added",a=>{this.liveSocket.triggerDOM("onNodeAdded",[a]);let l=this.binding(qt),h=this.binding(Kt);c.maintainPrivateHooks(a,a,l,h),this.maybeAddNewHook(a),a.getAttribute&&this.maybeMounted(a)}),t.after("phxChildAdded",a=>{c.isPhxSticky(a)?this.liveSocket.joinRootViews():r=!0}),t.before("updated",(a,l)=>{this.triggerBeforeUpdateHook(a,l)&&o.add(a.id),P.onBeforeElUpdated(a,l)}),t.after("updated",a=>{o.has(a.id)&&this.getHook(a).__updated()}),t.after("discarded",a=>{a.nodeType===Node.ELEMENT_NODE&&n.push(a)}),t.after("transitionsDiscarded",a=>this.afterElementsRemoved(a,i)),t.perform(s),this.afterElementsRemoved(n,i),this.liveSocket.triggerDOM("onPatchEnd",[t.targetContainer]),r}afterElementsRemoved(t,i){let s=[];t.forEach(n=>{let r=c.all(n,`[${He}="${this.id}"][${ee}]`),o=c.all(n,`[${this.binding(We)}], [data-phx-hook]`);r.concat(n).forEach(a=>{let l=this.componentID(a);oe(l)&&s.indexOf(l)===-1&&a.getAttribute(He)===this.id&&s.push(l)}),o.concat(n).forEach(a=>{let l=this.getHook(a);l&&this.destroyHook(l)})}),i&&this.maybePushComponentsDestroyed(s)}joinNewChildren(){c.findPhxChildren(document,this.id).forEach(t=>this.joinChild(t))}maybeRecoverForms(t,i){let s=this.binding("change"),n=this.root.formsForRecovery,r=document.createElement("template");r.innerHTML=t,c.all(r.content,`[${ei}]`).forEach(l=>{r.content.firstElementChild.appendChild(l.content.firstElementChild)});let o=r.content.firstElementChild;o.id=this.id,o.setAttribute(ae,this.root.id),o.setAttribute(te,this.getSession()),o.setAttribute(Se,this.getStatic()),o.setAttribute(Ae,this.parent?this.parent.id:null);let a=c.all(r.content,"form").filter(l=>l.id&&n[l.id]).filter(l=>!this.pendingForms.has(l.id)).filter(l=>n[l.id].getAttribute(s)===l.getAttribute(s)).map(l=>[n[l.id],l]);if(a.length===0)return i();a.forEach(([l,h],d)=>{this.pendingForms.add(h.id),this.pushFormRecovery(l,h,r.content.firstElementChild,()=>{this.pendingForms.delete(h.id),d===a.length-1&&i()})})}getChildById(t){return this.root.children[this.id][t]}getDescendentByEl(t){return t.id===this.id?this:this.children[t.getAttribute(Ae)]?.[t.id]}destroyDescendent(t){for(let i in this.root.children)for(let s in this.root.children[i])if(s===t)return this.root.children[i][s].destroy()}joinChild(t){if(!this.getChildById(t.id)){let s=new ds(t,this.liveSocket,this);return this.root.children[this.id][s.id]=s,s.join(),this.childJoins++,!0}}isJoinPending(){return this.joinPending}ackJoin(t){this.childJoins--,this.childJoins===0&&(this.parent?this.parent.ackJoin(this):this.onAllChildJoinsComplete())}onAllChildJoinsComplete(){this.pendingForms.clear(),this.formsForRecovery={},this.joinCallback(()=>{this.pendingJoinOps.forEach(([t,i])=>{t.isDestroyed()||i()}),this.pendingJoinOps=[]})}update(t,i,s=!1){if(this.isJoinPending()||this.liveSocket.hasPendingLink()&&this.root.isMain())return s||this.pendingDiffs.push({diff:t,events:i}),!1;this.rendered.mergeDiff(t);let n=!1;return this.rendered.isComponentOnlyDiff(t)?this.liveSocket.time("component patch complete",()=>{c.findExistingParentCIDs(this.id,this.rendered.componentCIDs(t)).forEach(o=>{this.componentPatch(this.rendered.getComponent(t,o),o)&&(n=!0)})}):Bi(t)||this.liveSocket.time("full patch complete",()=>{let[r,o]=this.renderContainer(t,"update"),a=new ft(this,this.el,this.id,r,o,null);n=this.performPatch(a,!0)}),this.liveSocket.dispatchEvents(i),n&&this.joinNewChildren(),!0}renderContainer(t,i){return this.liveSocket.time(`toString diff (${i})`,()=>{let s=this.el.tagName,n=t?this.rendered.componentCIDs(t):null,{buffer:r,streams:o}=this.rendered.toString(n);return[`<${s}>${r}`,o]})}componentPatch(t,i){if(Bi(t))return!1;let{buffer:s,streams:n}=this.rendered.componentToString(i),r=new ft(this,this.el,this.id,s,n,i);return this.performPatch(r,!0)}getHook(t){return this.viewHooks[ye.elementID(t)]}addHook(t){let i=ye.elementID(t);if(!(t.getAttribute&&!this.ownsElement(t)))if(i&&!this.viewHooks[i]){if(ye.deadHook(t))return;let s=c.getCustomElHook(t)||I(`no hook found for custom element: ${t.id}`);return this.viewHooks[i]=s,s.__attachView(this),s}else{if(i||!t.getAttribute)return;{let s=t.getAttribute(`data-phx-${We}`)||t.getAttribute(this.binding(We));if(!s)return;let n=this.liveSocket.getHookDefinition(s);if(n){if(!t.id){I(`no DOM ID for hook "${s}". Hooks require a unique ID on each element.`,t);return}let r;try{if(typeof n=="function"&&n.prototype instanceof ye)r=new n(this,t);else if(typeof n=="object"&&n!==null)r=new ye(this,t,n);else{I(`Invalid hook definition for "${s}". Expected a class extending ViewHook or an object definition.`,t);return}}catch(o){let a=o instanceof Error?o.message:String(o);I(`Failed to create hook "${s}": ${a}`,t);return}return this.viewHooks[ye.elementID(r.el)]=r,r}else s!==null&&I(`unknown hook found for "${s}"`,t)}}}destroyHook(t){let i=ye.elementID(t.el);t.__destroyed(),t.__cleanup__(),delete this.viewHooks[i]}applyPendingUpdates(){this.pendingDiffs=this.pendingDiffs.filter(({diff:t,events:i})=>!this.update(t,i,!0)),this.eachChild(t=>t.applyPendingUpdates())}eachChild(t){let i=this.root.children[this.id]||{};for(let s in i)t(this.getChildById(s))}onChannel(t,i){this.liveSocket.onChannel(this.channel,t,s=>{this.isJoinPending()?this.joinCount>1?this.pendingJoinOps.push(()=>i(s)):this.root.pendingJoinOps.push([this,()=>i(s)]):this.liveSocket.requestDOMUpdate(()=>i(s))})}bindChannel(){this.liveSocket.onChannel(this.channel,"diff",t=>{this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",t,({diff:i,events:s})=>this.update(i,s))})}),this.onChannel("redirect",({to:t,flash:i})=>this.onRedirect({to:t,flash:i})),this.onChannel("live_patch",t=>this.onLivePatch(t)),this.onChannel("live_redirect",t=>this.onLiveRedirect(t)),this.channel.onError(t=>this.onError(t)),this.channel.onClose(t=>this.onClose(t))}destroyAllChildren(){this.eachChild(t=>t.destroy())}onLiveRedirect(t){let{to:i,kind:s,flash:n}=t,r=this.expandURL(i),o=new CustomEvent("phx:server-navigate",{detail:{to:i,kind:s,flash:n}});this.liveSocket.historyRedirect(o,r,s,n)}onLivePatch(t){let{to:i,kind:s}=t;this.href=this.expandURL(i),this.liveSocket.historyPatch(i,s)}expandURL(t){return t.startsWith("/")?`${window.location.protocol}//${window.location.host}${t}`:t}onRedirect({to:t,flash:i,reloadToken:s}){this.liveSocket.redirect(t,i,s)}isDestroyed(){return this.destroyed}joinDead(){this.isDead=!0}joinPush(){return this.joinPush=this.joinPush||this.channel.join(),this.joinPush}join(t){this.showLoader(this.liveSocket.loaderTimeout),this.bindChannel(),this.isMain()&&(this.stopCallback=this.liveSocket.withPageLoading({to:this.href,kind:"initial"})),this.joinCallback=i=>{i=i||function(){},t?t(this.joinCount,i):i()},this.wrapPush(()=>this.channel.join(),{ok:i=>this.liveSocket.requestDOMUpdate(()=>this.onJoin(i)),error:i=>this.onJoinError(i),timeout:()=>this.onJoinError({reason:"timeout"})})}onJoinError(t){if(t.reason==="reload"){this.log("error",()=>[`failed mount with ${t.status}. Falling back to page reload`,t]),this.onRedirect({to:this.liveSocket.main.href,reloadToken:t.token});return}else if(t.reason==="unauthorized"||t.reason==="stale"){this.log("error",()=>["unauthorized live_redirect. Falling back to page request",t]),this.onRedirect({to:this.liveSocket.main.href,flash:this.flash});return}if((t.redirect||t.live_redirect)&&(this.joinPending=!1,this.channel.leave()),t.redirect)return this.onRedirect(t.redirect);if(t.live_redirect)return this.onLiveRedirect(t.live_redirect);if(this.log("error",()=>["unable to join",t]),this.isMain())this.displayError([be,Le,Ve],{unstructuredError:t,errorKind:"server"}),this.liveSocket.isConnected()&&this.liveSocket.reloadWithJitter(this);else{this.joinAttempts>=Hi&&(this.root.displayError([be,Le,Ve],{unstructuredError:t,errorKind:"server"}),this.log("error",()=>[`giving up trying to mount after ${Hi} tries`,t]),this.destroy());let i=c.byId(this.el.id);i?(c.mergeAttrs(i,this.el),this.displayError([be,Le,Ve],{unstructuredError:t,errorKind:"server"}),this.el=i):this.destroy()}}onClose(t){if(!this.isDestroyed()){if(this.isMain()&&this.liveSocket.hasPendingLink()&&t!=="leave")return this.liveSocket.reloadWithJitter(this);this.destroyAllChildren(),this.liveSocket.dropActiveElement(this),this.liveSocket.isUnloaded()&&this.showLoader(Un)}}onError(t){this.onClose(t),this.liveSocket.isConnected()&&this.log("error",()=>["view crashed",t]),this.liveSocket.isUnloaded()||(this.liveSocket.isConnected()?this.displayError([be,Le,Ve],{unstructuredError:t,errorKind:"server"}):this.displayError([be,Le,Li],{unstructuredError:t,errorKind:"client"}))}displayError(t,i={}){this.isMain()&&c.dispatchEvent(window,"phx:page-loading-start",{detail:{to:this.href,kind:"error",...i}}),this.showLoader(),this.setContainerClasses(...t),this.delayedDisconnected()}delayedDisconnected(){this.disconnectedTimer=setTimeout(()=>{this.execAll(this.binding("disconnected"))},this.liveSocket.disconnectedTimeout)}wrapPush(t,i){let s=this.liveSocket.getLatencySim(),n=s?r=>setTimeout(()=>!this.isDestroyed()&&r(),s):r=>!this.isDestroyed()&&r();n(()=>{t().receive("ok",r=>n(()=>i.ok&&i.ok(r))).receive("error",r=>n(()=>i.error&&i.error(r))).receive("timeout",()=>n(()=>i.timeout&&i.timeout()))})}pushWithReply(t,i,s){if(!this.isConnected())return Promise.reject(new Error("no connection"));let[n,[r],o]=t?t({payload:s}):[null,[],{}],a=this.joinCount,l=function(){};return o.page_loading&&(l=this.liveSocket.withPageLoading({kind:"element",target:r})),typeof s.cid!="number"&&delete s.cid,new Promise((h,d)=>{this.wrapPush(()=>this.channel.push(i,s,Vn),{ok:p=>{n!==null&&(this.lastAckRef=n);let m=g=>{p.redirect&&this.onRedirect(p.redirect),p.live_patch&&this.onLivePatch(p.live_patch),p.live_redirect&&this.onLiveRedirect(p.live_redirect),l(),h({resp:p,reply:g,ref:n})};p.diff?this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",p.diff,({diff:g,reply:u,events:v})=>{n!==null&&this.undoRefs(n,s.event),this.update(g,v),m(u)})}):(n!==null&&this.undoRefs(n,s.event),m(null))},error:p=>d(new Error(`failed with reason: ${JSON.stringify(p)}`)),timeout:()=>{d(new Error("timeout")),this.joinCount===a&&this.liveSocket.reloadWithJitter(this,()=>{this.log("timeout",()=>["received timeout while communicating with server. Falling back to hard refresh for recovery"])})}})})}undoRefs(t,i,s){if(!this.isConnected())return;let n=`[${J}="${this.refSrc()}"]`;s?(s=new Set(s),c.all(document,n,r=>{s&&!s.has(r)||(c.all(r,n,o=>this.undoElRef(o,t,i)),this.undoElRef(r,t,i))})):c.all(document,n,r=>this.undoElRef(r,t,i))}undoElRef(t,i,s){new Gt(t).maybeUndo(i,s,r=>{let o=new ft(this,t,this.id,r,[],null,{undoRef:i}),a=this.performPatch(o,!0);c.all(t,`[${J}="${this.refSrc()}"]`,l=>this.undoElRef(l,i,s)),a&&this.joinNewChildren()})}refSrc(){return this.el.id}putRef(t,i,s,n={}){let r=this.ref++,o=this.binding(Ii);if(n.loading){let a=c.all(document,n.loading).map(l=>({el:l,lock:!0,loading:!0}));t=t.concat(a)}for(let{el:a,lock:l,loading:h}of t){if(!l&&!h)throw new Error("putRef requires lock or loading");if(a.setAttribute(J,this.refSrc()),h&&a.setAttribute(Ne,r),l&&a.setAttribute(M,r),!h||n.submitter&&!(a===n.submitter||a===n.form))continue;let d=new Promise(u=>{a.addEventListener(`phx:undo-lock:${r}`,()=>u(g),{once:!0})}),p=new Promise(u=>{a.addEventListener(`phx:undo-loading:${r}`,()=>u(g),{once:!0})});a.classList.add(`phx-${s}-loading`);let m=a.getAttribute(o);m!==null&&(a.getAttribute(wt)||a.setAttribute(wt,a.textContent),m!==""&&(a.textContent=m),a.setAttribute(Oe,a.getAttribute(Oe)||a.disabled),a.setAttribute("disabled",""));let g={event:i,eventType:s,ref:r,isLoading:h,isLocked:l,lockElements:t.filter(({lock:u})=>u).map(({el:u})=>u),loadingElements:t.filter(({loading:u})=>u).map(({el:u})=>u),unlock:u=>{u=Array.isArray(u)?u:[u],this.undoRefs(r,i,u)},lockComplete:d,loadingComplete:p,lock:u=>new Promise(v=>{if(this.isAcked(r))return v(g);u.setAttribute(M,r),u.setAttribute(J,this.refSrc()),u.addEventListener(`phx:lock-stop:${r}`,()=>v(g),{once:!0})})};n.payload&&(g.payload=n.payload),n.target&&(g.target=n.target),n.originalEvent&&(g.originalEvent=n.originalEvent),a.dispatchEvent(new CustomEvent("phx:push",{detail:g,bubbles:!0,cancelable:!1})),i&&a.dispatchEvent(new CustomEvent(`phx:push:${i}`,{detail:g,bubbles:!0,cancelable:!1}))}return[r,t.map(({el:a})=>a),n]}isAcked(t){return this.lastAckRef!==null&&this.lastAckRef>=t}componentID(t){let i=t.getAttribute&&t.getAttribute(ee);return i?parseInt(i):null}targetComponentID(t,i,s={}){if(oe(i))return i;let n=s.target||t.getAttribute(this.binding("target"));return oe(n)?parseInt(n):i&&(n!==null||s.target)?this.closestComponentID(i):null}closestComponentID(t){return oe(t)?t:t?Me(t.closest(`[${ee}],[${me}]`),i=>{if(i.hasAttribute(ee))return this.ownsElement(i)&&this.componentID(i);if(i.hasAttribute(me)){let s=c.byId(i.getAttribute(me));return this.closestComponentID(s)}}):null}pushHookEvent(t,i,s,n){if(!this.isConnected())return this.log("hook",()=>["unable to push hook event. LiveView not connected",s,n]),Promise.reject(new Error("unable to push hook event. LiveView not connected"));let r=()=>this.putRef([{el:t,loading:!0,lock:!0}],s,"hook",{payload:n,target:i});return this.pushWithReply(r,"event",{type:"hook",event:s,value:n,cid:this.closestComponentID(i)}).then(({resp:o,reply:a,ref:l})=>({reply:a,ref:l}))}extractMeta(t,i,s){let n=this.binding("value-");for(let r=0;r=0&&!t.checked&&delete i.value),s){i||(i={});for(let r in s)i[r]=s[r]}return i}pushEvent(t,i,s,n,r,o={},a){this.pushWithReply(l=>this.putRef([{el:i,loading:!0,lock:!0}],n,t,{...o,payload:l?.payload}),"event",{type:t,event:n,value:this.extractMeta(i,r,o.value),cid:this.targetComponentID(i,s,o)}).then(({reply:l})=>a&&a(l)).catch(l=>I("Failed to push event",l))}pushFileProgress(t,i,s,n=function(){}){this.liveSocket.withinOwners(t.form,(r,o)=>{r.pushWithReply(null,"progress",{event:t.getAttribute(r.binding($n)),ref:t.getAttribute(le),entry_ref:i,progress:s,cid:r.targetComponentID(t.form,o)}).then(()=>n()).catch(a=>I("Failed to push file progress",a))})}pushInput(t,i,s,n,r,o){if(!t.form)throw new Error("form events require the input to be inside a form");let a,l=oe(s)?s:this.targetComponentID(t.form,i,r),h=u=>this.putRef([{el:t,loading:!0,lock:!0},{el:t.form,loading:!0,lock:!0}],n,"change",{...r,payload:u?.payload}),d,p=this.extractMeta(t.form,{},r.value),m={};t instanceof HTMLButtonElement&&(m.submitter=t),t.getAttribute(this.binding("change"))?d=pt(t.form,m,[t.name]):d=pt(t.form,m),c.isUploadInput(t)&&t.files&&t.files.length>0&&N.trackFiles(t,Array.from(t.files)),a=N.serializeUploads(t);let g={type:"form",event:n,value:d,meta:{_target:r._target||"undefined",...p},uploads:a,cid:l};this.pushWithReply(h,"event",g).then(({resp:u})=>{c.isUploadInput(t)&&c.isAutoUpload(t)?Gt.onUnlock(t,()=>{if(N.filesAwaitingPreflight(t).length>0){let[v,y]=h();this.undoRefs(v,n,[t.form]),this.uploadFiles(t.form,n,i,v,l,L=>{o&&o(u),this.triggerAwaitingSubmit(t.form,n),this.undoRefs(v,n)})}}):o&&o(u)}).catch(u=>I("Failed to push input event",u))}triggerAwaitingSubmit(t,i){let s=this.getScheduledSubmit(t);if(s){let[n,r,o,a]=s;this.cancelSubmit(t,i),a()}}getScheduledSubmit(t){return this.formSubmits.find(([i,s,n,r])=>i.isSameNode(t))}scheduleSubmit(t,i,s,n){if(this.getScheduledSubmit(t))return!0;this.formSubmits.push([t,i,s,n])}cancelSubmit(t,i){this.formSubmits=this.formSubmits.filter(([s,n,r,o])=>s.isSameNode(t)?(this.undoRefs(n,i),!1):!0)}disableForm(t,i,s={}){let n=u=>!(Ee(u,`${this.binding(Et)}=ignore`,u.form)||Ee(u,"data-phx-update=ignore",u.form)),r=u=>u.hasAttribute(this.binding(Ii)),o=u=>u.tagName=="BUTTON",a=u=>["INPUT","TEXTAREA","SELECT"].includes(u.tagName),l=Array.from(t.elements),h=l.filter(r),d=l.filter(o).filter(n),p=l.filter(a).filter(n);d.forEach(u=>{u.setAttribute(Oe,u.disabled),u.disabled=!0}),p.forEach(u=>{u.setAttribute(zt,u.readOnly),u.readOnly=!0,u.files&&(u.setAttribute(Oe,u.disabled),u.disabled=!0)});let m=h.concat(d).concat(p).map(u=>({el:u,loading:!0,lock:!0})),g=[{el:t,loading:!0,lock:!1}].concat(m).reverse();return this.putRef(g,i,"submit",s)}pushFormSubmit(t,i,s,n,r,o){let a=h=>this.disableForm(t,s,{...r,form:t,payload:h?.payload,submitter:n});c.putPrivate(t,"submitter",n);let l=this.targetComponentID(t,i);if(N.hasUploadsInProgress(t)){let[h,d]=a(),p=()=>this.pushFormSubmit(t,i,s,n,r,o);return this.scheduleSubmit(t,h,r,p)}else if(N.inputsAwaitingPreflight(t).length>0){let[h,d]=a(),p=()=>[h,d,r];this.uploadFiles(t,s,i,h,l,m=>{if(N.inputsAwaitingPreflight(t).length>0)return this.undoRefs(h,s);let g=this.extractMeta(t,{},r.value),u=pt(t,{submitter:n});this.pushWithReply(p,"event",{type:"form",event:s,value:u,meta:g,cid:l}).then(({resp:v})=>o(v)).catch(v=>I("Failed to push form submit",v))})}else if(!(t.hasAttribute(J)&&t.classList.contains("phx-submit-loading"))){let h=this.extractMeta(t,{},r.value),d=pt(t,{submitter:n});this.pushWithReply(a,"event",{type:"form",event:s,value:d,meta:h,cid:l}).then(({resp:p})=>o(p)).catch(p=>I("Failed to push form submit",p))}}uploadFiles(t,i,s,n,r,o){let a=this.joinCount,l=N.activeFileInputs(t),h=l.length;l.forEach(d=>{let p=new N(d,this,()=>{h--,h===0&&o()}),m=p.entries().map(u=>u.toPreflightPayload());if(m.length===0){h--;return}let g={ref:d.getAttribute(le),entries:m,cid:this.targetComponentID(d.form,s)};this.log("upload",()=>["sending preflight request",g]),this.pushWithReply(null,"allow_upload",g).then(({resp:u})=>{if(this.log("upload",()=>["got preflight response",u]),p.entries().forEach(v=>{u.entries&&!u.entries[v.ref]&&this.handleFailedEntryPreflight(v.ref,"failed preflight",p)}),u.error||Object.keys(u.entries).length===0)this.undoRefs(n,i),(u.error||[]).map(([y,L])=>{this.handleFailedEntryPreflight(y,L,p)});else{let v=y=>{this.channel.onError(()=>{this.joinCount===a&&y()})};p.initAdapterUpload(u,v,this.liveSocket)}}).catch(u=>I("Failed to push upload",u))})}handleFailedEntryPreflight(t,i,s){if(s.isAutoUpload()){let n=s.entries().find(r=>r.ref===t.toString());n&&n.cancel()}else s.entries().map(n=>n.cancel());this.log("upload",()=>[`error for entry ${t}`,i])}dispatchUploads(t,i,s){let n=this.targetCtxElement(t)||this.el,r=c.findUploadInputs(n).filter(o=>o.name===i);r.length===0?I(`no live file inputs found matching the name "${i}"`):r.length>1?I(`duplicate live file inputs found matching the name "${i}"`):c.dispatchEvent(r[0],ss,{detail:{files:s}})}targetCtxElement(t){if(oe(t)){let[i]=c.findComponentNodeList(this.id,t);return i}else return t||null}pushFormRecovery(t,i,s,n){let r=this.binding("change"),o=i.getAttribute(this.binding("target"))||i,a=i.getAttribute(this.binding(Di))||i.getAttribute(this.binding("change")),l=Array.from(t.elements).filter(p=>c.isFormInput(p)&&p.name&&!p.hasAttribute(r));if(l.length===0){n();return}l.forEach(p=>p.hasAttribute(le)&&N.clearFiles(p));let h=l.find(p=>p.type!=="hidden")||l[0],d=0;this.withinTargets(o,(p,m)=>{let g=this.targetComponentID(i,m);d++;let u=new CustomEvent("phx:form-recovery",{detail:{sourceElement:t}});P.exec(u,"change",a,this,h,["push",{_target:h.name,targetView:p,targetCtx:m,newCid:g,callback:()=>{d--,d===0&&n()}}])},s)}pushLinkPatch(t,i,s,n){let r=this.liveSocket.setPendingLink(i),o=t.isTrusted&&t.type!=="popstate",a=s?()=>this.putRef([{el:s,loading:o,lock:!0}],null,"click"):null,l=()=>this.liveSocket.redirect(window.location.href),h=i.startsWith("/")?`${location.protocol}//${location.host}${i}`:i;this.pushWithReply(a,"live_patch",{url:h}).then(({resp:d})=>{this.liveSocket.requestDOMUpdate(()=>{if(d.link_redirect)this.liveSocket.replaceMain(i,null,n,r);else{if(d.redirect)return;this.liveSocket.commitPendingLink(r)&&(this.href=i),this.applyPendingUpdates(),n&&n(r)}})},({error:d,timeout:p})=>l())}getFormsForRecovery(){if(this.joinCount===0)return{};let t=this.binding("change");return c.all(document,`#${CSS.escape(this.id)} form[${t}], [${ke}="${CSS.escape(this.id)}"] form[${t}]`).filter(i=>i.id).filter(i=>i.elements.length>0).filter(i=>i.getAttribute(this.binding(Di))!=="ignore").map(i=>{let s=i.cloneNode(!0);Yt(s,i,{onBeforeElUpdated:(r,o)=>(c.copyPrivates(r,o),r.getAttribute("form")===i.id?(r.parentNode.removeChild(r),!1):!0)});let n=document.querySelectorAll(`[form="${CSS.escape(i.id)}"]`);return Array.from(n).forEach(r=>{let o=r.cloneNode(!0);Yt(o,r),c.copyPrivates(o,r),o.removeAttribute("form"),s.appendChild(o)}),s}).reduce((i,s)=>(i[s.id]=s,i),{})}maybePushComponentsDestroyed(t){let i=t.filter(n=>c.findComponentNodeList(this.id,n).length===0),s=n=>{this.isDestroyed()||I("Failed to push components destroyed",n)};i.length>0&&(i.forEach(n=>this.rendered.resetRender(n)),this.pushWithReply(null,"cids_will_destroy",{cids:i}).then(()=>{this.liveSocket.requestDOMUpdate(()=>{let n=i.filter(r=>c.findComponentNodeList(this.id,r).length===0);n.length>0&&this.pushWithReply(null,"cids_destroyed",{cids:n}).then(({resp:r})=>{this.rendered.pruneCIDs(r.cids)}).catch(s)})}).catch(s))}ownsElement(t){let i=c.closestViewEl(t);return t.getAttribute(Ae)===this.id||i&&i.id===this.id||!i&&this.isDead}submitForm(t,i,s,n,r={}){c.putPrivate(t,Ye,!0),Array.from(t.elements).forEach(a=>c.putPrivate(a,Ye,!0)),this.liveSocket.blurActiveElement(this),this.pushFormSubmit(t,i,s,n,r,()=>{this.liveSocket.restorePreviouslyActiveFocus()})}binding(t){return this.liveSocket.binding(t)}pushPortalElementId(t){this.portalElementIds.add(t)}dropPortalElementId(t){this.portalElementIds.delete(t)}destroyPortalElements(){this.liveSocket.unloaded||this.portalElementIds.forEach(t=>{let i=document.getElementById(t);i&&i.remove()})}};var kr=class{constructor(e,t,i={}){if(this.unloaded=!1,!t||t.constructor.name==="Object")throw new Error(` a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example: import {Socket} from "phoenix" import {LiveSocket} from "phoenix_live_view" let liveSocket = new LiveSocket("/live", Socket, {...}) - `);this.socket=new t(e,i),this.bindingPrefix=i.bindingPrefix||jn,this.opts=i,this.params=ze(i.params||{}),this.viewLogger=i.viewLogger,this.metadataCallbacks=i.metadata||{},this.defaults=Object.assign(bt(Vn),i.defaults||{}),this.prevActive=null,this.silenced=!1,this.main=null,this.outgoingMainEl=null,this.clickStartedAtTarget=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=bt(window.location),this.hooks=i.hooks||{},this.uploaders=i.uploaders||{},this.loaderTimeout=i.loaderTimeout||$n,this.disconnectedTimeout=i.disconnectedTimeout||Un,this.reloadWithJitterTimer=null,this.maxReloads=i.maxReloads||An,this.reloadJitterMin=i.reloadJitterMin||kn,this.reloadJitterMax=i.reloadJitterMax||Tn,this.failsafeJitter=i.failsafeJitter||Cn,this.localStorage=i.localStorage||window.localStorage,this.sessionStorage=i.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.boundEventNames=new Set,this.blockPhxChangeWhileComposing=i.blockPhxChangeWhileComposing||!1,this.serverCloseRef=null,this.domCallbacks=Object.assign({jsQuerySelectorAll:null,onPatchStart:ze(),onPatchEnd:ze(),onNodeAdded:ze(),onBeforeElUpdated:ze()},i.dom||{}),this.transitions=new kr,this.currentHistoryPosition=parseInt(this.sessionStorage.getItem(ct))||0,window.addEventListener("pagehide",s=>{this.unloaded=!0}),this.socket.onOpen(()=>{this.isUnloaded()&&window.location.reload()})}version(){return"1.1.28"}isProfileEnabled(){return this.sessionStorage.getItem(Ft)==="true"}isDebugEnabled(){return this.sessionStorage.getItem(ht)==="true"}isDebugDisabled(){return this.sessionStorage.getItem(ht)==="false"}enableDebug(){this.sessionStorage.setItem(ht,"true")}enableProfiling(){this.sessionStorage.setItem(Ft,"true")}disableDebug(){this.sessionStorage.setItem(ht,"false")}disableProfiling(){this.sessionStorage.removeItem(Ft)}enableLatencySim(e){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem(Ut,e)}disableLatencySim(){this.sessionStorage.removeItem(Ut)}getLatencySim(){let e=this.sessionStorage.getItem(Ut);return e?parseInt(e):null}getSocket(){return this.socket}connect(){window.location.hostname==="localhost"&&!this.isDebugDisabled()&&this.enableDebug();let e=()=>{this.resetReloadStatus(),this.joinRootViews()?(this.bindTopLevelEvents(),this.socket.connect()):this.main?this.socket.connect():this.bindTopLevelEvents({dead:!0}),this.joinDeadView()};["complete","loaded","interactive"].indexOf(document.readyState)>=0?e():document.addEventListener("DOMContentLoaded",()=>e())}disconnect(e){clearTimeout(this.reloadWithJitterTimer),this.serverCloseRef&&(this.socket.off(this.serverCloseRef),this.serverCloseRef=null),this.socket.disconnect(e)}replaceTransport(e){clearTimeout(this.reloadWithJitterTimer),this.socket.replaceTransport(e),this.connect()}execJS(e,t,i=null){let s=new CustomEvent("phx:exec",{detail:{sourceElement:e}});this.owner(e,n=>P.exec(s,i,t,n,e))}js(){return hs(this,"js")}unload(){this.unloaded||(this.main&&this.isConnected()&&this.log(this.main,"socket",()=>["disconnect for page nav"]),this.unloaded=!0,this.destroyAllViews(),this.disconnect())}triggerDOM(e,t){this.domCallbacks[e](...t)}time(e,t){if(!this.isProfileEnabled()||!console.time)return t();console.time(e);let i=t();return console.timeEnd(e),i}log(e,t,i){if(this.viewLogger){let[s,n]=i();this.viewLogger(e,t,s,n)}else if(this.isDebugEnabled()){let[s,n]=i();Jn(e,t,s,n)}}requestDOMUpdate(e){this.transitions.after(e)}asyncTransition(e){this.transitions.addAsyncTransition(e)}transition(e,t,i=function(){}){this.transitions.addTransition(e,t,i)}onChannel(e,t,i){e.on(t,s=>{let n=this.getLatencySim();n?setTimeout(()=>i(s),n):i(s)})}reloadWithJitter(e,t){clearTimeout(this.reloadWithJitterTimer),this.disconnect();let i=this.reloadJitterMin,s=this.reloadJitterMax,n=Math.floor(Math.random()*(s-i+1))+i,r=B.updateLocal(this.localStorage,window.location.pathname,ts,0,o=>o+1);r>=this.maxReloads&&(n=this.failsafeJitter),this.reloadWithJitterTimer=setTimeout(()=>{e.isDestroyed()||e.isConnected()||(e.destroy(),t?t():this.log(e,"join",()=>[`encountered ${r} consecutive reloads`]),r>=this.maxReloads&&this.log(e,"join",()=>[`exceeded ${this.maxReloads} consecutive reloads. Entering failsafe mode`]),this.hasPendingLink()?window.location=this.pendingLink:window.location.reload())},n)}getHookDefinition(e){if(e)return this.maybeInternalHook(e)||this.hooks[e]||this.maybeRuntimeHook(e)}maybeInternalHook(e){return e&&e.startsWith("Phoenix.")&&ir[e.split(".")[1]]}maybeRuntimeHook(e){let t=document.querySelector(`script[${vt}="${CSS.escape(e)}"]`);if(!t)return;let i=window[`phx_hook_${e}`];if(!i||typeof i!="function"){I("a runtime hook must be a function",t);return}let s=i();if(s&&(typeof s=="object"||typeof s=="function"))return s;I("runtime hook must return an object with hook callbacks or an instance of ViewHook",t)}isUnloaded(){return this.unloaded}isConnected(){return this.socket.isConnected()}getBindingPrefix(){return this.bindingPrefix}binding(e){return`${this.getBindingPrefix()}${e}`}channel(e,t){return this.socket.channel(e,t)}joinDeadView(){let e=document.body;if(e&&!this.isPhxView(e)&&!this.isPhxView(document.firstElementChild)){let t=this.newRootView(e);t.setHref(this.getHref()),t.joinDead(),this.main||(this.main=t),window.requestAnimationFrame(()=>{t.execNewMounted(),this.maybeScroll(history.state?.scroll)})}}joinRootViews(){let e=!1;return c.all(document,`${Ze}:not([${Ae}])`,t=>{if(!this.getRootById(t.id)){let i=this.newRootView(t);c.isPhxSticky(t)||i.setHref(this.getHref()),i.join(),t.hasAttribute(Qt)&&(this.main=i)}e=!0}),e}redirect(e,t,i){i&&B.setCookie(Mi,i,60),this.unload(),B.redirect(e,t)}replaceMain(e,t,i=null,s=this.setPendingLink(e)){let n=this.currentLocation.href;this.outgoingMainEl=this.outgoingMainEl||this.main.el;let r=c.findPhxSticky(document)||[],o=c.all(this.outgoingMainEl,`[${this.binding("remove")}]`).filter(l=>!c.isChildOfAny(l,r)),a=c.cloneNode(this.outgoingMainEl,"");this.main.showLoader(this.loaderTimeout),this.main.destroy(),this.main=this.newRootView(a,t,n),this.main.setRedirect(e),this.transitionRemoves(o),this.main.join((l,h)=>{l===1&&this.commitPendingLink(s)&&this.requestDOMUpdate(()=>{o.forEach(d=>d.remove()),r.forEach(d=>a.appendChild(d)),this.outgoingMainEl.replaceWith(a),this.outgoingMainEl=null,i&&i(s),h()})})}transitionRemoves(e,t){let i=this.binding("remove"),s=n=>{n.preventDefault(),n.stopImmediatePropagation()};e.forEach(n=>{for(let r of this.boundEventNames)n.addEventListener(r,s,!0);this.execJS(n,n.getAttribute(i),"remove")}),this.requestDOMUpdate(()=>{e.forEach(n=>{for(let r of this.boundEventNames)n.removeEventListener(r,s,!0)}),t&&t()})}isPhxView(e){return e.getAttribute&&e.getAttribute(te)!==null}newRootView(e,t,i){let s=new Sr(e,this,null,t,i);return this.roots[s.id]=s,s}owner(e,t){let i,s=c.closestViewEl(e);if(s)i=this.getViewByEl(s);else{if(!e.isConnected)return null;i=this.main}return i&&t?t(i):i}withinOwners(e,t){this.owner(e,i=>t(i,e))}getViewByEl(e){let t=e.getAttribute(ae);return Me(this.getRootById(t),i=>i.getDescendentByEl(e))}getRootById(e){return this.roots[e]}destroyAllViews(){for(let e in this.roots)this.roots[e].destroy(),delete this.roots[e];this.main=null}destroyViewByEl(e){let t=this.getRootById(e.getAttribute(ae));t&&t.id===e.id?(t.destroy(),delete this.roots[t.id]):t&&t.destroyDescendent(e.id)}getActiveElement(){return document.activeElement}dropActiveElement(e){this.prevActive&&e.ownsElement(this.prevActive)&&(this.prevActive=null)}restorePreviouslyActiveFocus(){this.prevActive&&this.prevActive!==document.body&&this.prevActive instanceof HTMLElement&&this.prevActive.focus()}blurActiveElement(){this.prevActive=this.getActiveElement(),this.prevActive!==document.body&&this.prevActive instanceof HTMLElement&&this.prevActive.blur()}bindTopLevelEvents({dead:e}={}){this.boundTopLevelEvents||(this.boundTopLevelEvents=!0,this.serverCloseRef=this.socket.onClose(t=>{if(t&&t.code===1e3&&this.main)return this.reloadWithJitter(this.main)}),document.body.addEventListener("click",function(){}),window.addEventListener("pageshow",t=>{t.persisted&&(this.getSocket().disconnect(),this.withPageLoading({to:window.location.href,kind:"redirect"}),window.location.reload())},!0),e||this.bindNav(),this.bindClicks(),e||this.bindForms(),this.bind({keyup:"keyup",keydown:"keydown"},(t,i,s,n,r,o)=>{let a=n.getAttribute(this.binding(Hn)),l=t.key&&t.key.toLowerCase();if(a&&a.toLowerCase()!==l)return;let h={key:t.key,...this.eventMeta(i,t,n)};P.exec(t,i,r,s,n,["push",{data:h}])}),this.bind({blur:"focusout",focus:"focusin"},(t,i,s,n,r,o)=>{if(!o){let a={key:t.key,...this.eventMeta(i,t,n)};P.exec(t,i,r,s,n,["push",{data:a}])}}),this.bind({blur:"blur",focus:"focus"},(t,i,s,n,r,o)=>{if(o==="window"){let a=this.eventMeta(i,t,n);P.exec(t,i,r,s,n,["push",{data:a}])}}),this.on("dragover",t=>t.preventDefault()),this.on("dragenter",t=>{let i=Ee(t.target,this.binding(lt));!i||!(i instanceof HTMLElement)||Gn(t)&&this.js().addClass(i,Nt)}),this.on("dragleave",t=>{let i=Ee(t.target,this.binding(lt));if(!i||!(i instanceof HTMLElement))return;let s=i.getBoundingClientRect();(t.clientX<=s.left||t.clientX>=s.right||t.clientY<=s.top||t.clientY>=s.bottom)&&this.js().removeClass(i,Nt)}),this.on("drop",t=>{t.preventDefault();let i=Ee(t.target,this.binding(lt));if(!i||!(i instanceof HTMLElement))return;this.js().removeClass(i,Nt);let s=i.getAttribute(this.binding(lt)),n=s&&document.getElementById(s),r=Array.from(t.dataTransfer.files||[]);!n||!(n instanceof HTMLInputElement)||n.disabled||r.length===0||!(n.files instanceof FileList)||(N.trackFiles(n,r,t.dataTransfer),n.dispatchEvent(new Event("input",{bubbles:!0})))}),this.on(ss,t=>{let i=t.target;if(!c.isUploadInput(i))return;let s=Array.from(t.detail.files||[]).filter(n=>n instanceof File||n instanceof Blob);N.trackFiles(i,s),i.dispatchEvent(new Event("input",{bubbles:!0}))}))}eventMeta(e,t,i){let s=this.metadataCallbacks[e];return s?s(t,i):{}}setPendingLink(e){return this.linkRef++,this.pendingLink=e,this.resetReloadStatus(),this.linkRef}resetReloadStatus(){B.deleteCookie(Mi)}commitPendingLink(e){return this.linkRef!==e?!1:(this.href=this.pendingLink,this.pendingLink=null,!0)}getHref(){return this.href}hasPendingLink(){return!!this.pendingLink}bind(e,t){for(let i in e){let s=e[i];this.on(s,n=>{let r=this.binding(i),o=this.binding(`window-${i}`),a=n.target.getAttribute&&n.target.getAttribute(r);a?this.debounce(n.target,n,s,()=>{this.withinOwners(n.target,l=>{t(n,i,l,n.target,a,null)})}):c.all(document,`[${o}]`,l=>{let h=l.getAttribute(o);this.debounce(l,n,s,()=>{this.withinOwners(l,d=>{t(n,i,d,l,h,"window")})})})})}}bindClicks(){this.on("mousedown",e=>this.clickStartedAtTarget=e.target),this.bindClick("click","click")}bindClick(e,t){let i=this.binding(t);window.addEventListener(e,s=>{let n=null;s.detail===0&&(this.clickStartedAtTarget=s.target);let r=this.clickStartedAtTarget||s.target;n=Ee(s.target,i),this.dispatchClickAway(s,r),this.clickStartedAtTarget=null;let o=n&&n.getAttribute(i);if(!o){c.isNewPageClick(s,window.location)&&this.unload();return}n.getAttribute("href")==="#"&&s.preventDefault(),!n.hasAttribute(J)&&this.debounce(n,s,"click",()=>{this.withinOwners(n,a=>{P.exec(s,"click",o,a,n,["push",{data:this.eventMeta("click",s,n)}])})})},!1)}dispatchClickAway(e,t){let i=this.binding("click-away"),s=t.closest(`[${me}]`),n=s&&c.byId(s.getAttribute(me));c.all(document,`[${i}]`,r=>{let o=t;s&&!s.contains(r)&&(o=n),r.isSameNode(o)||r.contains(o)||!P.isVisible(t)||this.withinOwners(r,a=>{let l=r.getAttribute(i);P.isVisible(r)&&P.isInViewport(r)&&P.exec(e,"click",l,a,r,["push",{data:this.eventMeta("click",e,e.target)}])})})}bindNav(){if(!B.canPushState())return;history.scrollRestoration&&(history.scrollRestoration="manual");let e=null;window.addEventListener("scroll",t=>{clearTimeout(e),e=setTimeout(()=>{B.updateCurrentState(i=>Object.assign(i,{scroll:window.scrollY}))},100)}),window.addEventListener("popstate",t=>{if(!this.registerNewLocation(window.location))return;let{type:i,backType:s,id:n,scroll:r,position:o}=t.state||{},a=window.location.href,l=o>this.currentHistoryPosition,h=l?i:s||i;this.currentHistoryPosition=o||0,this.sessionStorage.setItem(ct,this.currentHistoryPosition.toString()),c.dispatchEvent(window,"phx:navigate",{detail:{href:a,patch:h==="patch",pop:!0,direction:l?"forward":"backward"}}),this.requestDOMUpdate(()=>{let d=()=>{this.maybeScroll(r)};this.main.isConnected()&&h==="patch"&&n===this.main.id?this.main.pushLinkPatch(t,a,null,d):this.replaceMain(a,null,d)})},!1),window.addEventListener("click",t=>{let i=Ee(t.target,$t),s=i&&i.getAttribute($t);if(!s||!this.isConnected()||!this.main||c.wantsNewTab(t))return;let n=i.href instanceof SVGAnimatedString?i.href.baseVal:i.href,r=i.getAttribute(xn);t.preventDefault(),t.stopImmediatePropagation(),this.pendingLink!==n&&this.requestDOMUpdate(()=>{if(s==="patch")this.pushHistoryPatch(t,n,r,i);else if(s==="redirect")this.historyRedirect(t,n,r,null,i);else throw new Error(`expected ${$t} to be "patch" or "redirect", got: ${s}`);let o=i.getAttribute(this.binding("click"));o&&this.requestDOMUpdate(()=>this.execJS(i,o,"click"))})},!1)}maybeScroll(e){typeof e=="number"&&requestAnimationFrame(()=>{window.scrollTo(0,e)})}dispatchEvent(e,t={}){c.dispatchEvent(window,`phx:${e}`,{detail:t})}dispatchEvents(e){e.forEach(([t,i])=>this.dispatchEvent(t,i))}withPageLoading(e,t){c.dispatchEvent(window,"phx:page-loading-start",{detail:e});let i=()=>c.dispatchEvent(window,"phx:page-loading-stop",{detail:e});return t?t(i):i}pushHistoryPatch(e,t,i,s){if(!this.isConnected()||!this.main.isMain())return B.redirect(t);this.withPageLoading({to:t,kind:"patch"},n=>{this.main.pushLinkPatch(e,t,s,r=>{this.historyPatch(t,i,r),n()})})}historyPatch(e,t,i=this.setPendingLink(e)){this.commitPendingLink(i)&&(this.currentHistoryPosition++,this.sessionStorage.setItem(ct,this.currentHistoryPosition.toString()),B.updateCurrentState(s=>({...s,backType:"patch"})),B.pushState(t,{type:"patch",id:this.main.id,position:this.currentHistoryPosition},e),c.dispatchEvent(window,"phx:navigate",{detail:{patch:!0,href:e,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location))}historyRedirect(e,t,i,s,n){let r=n&&e.isTrusted&&e.type!=="popstate";if(r&&n.classList.add("phx-click-loading"),!this.isConnected()||!this.main.isMain())return B.redirect(t,s);if(/^\/$|^\/[^\/]+.*$/.test(t)){let{protocol:a,host:l}=window.location;t=`${a}//${l}${t}`}let o=window.scrollY;this.withPageLoading({to:t,kind:"redirect"},a=>{this.replaceMain(t,s,l=>{l===this.linkRef&&(this.currentHistoryPosition++,this.sessionStorage.setItem(ct,this.currentHistoryPosition.toString()),B.updateCurrentState(h=>({...h,backType:"redirect"})),B.pushState(i,{type:"redirect",id:this.main.id,scroll:o,position:this.currentHistoryPosition},t),c.dispatchEvent(window,"phx:navigate",{detail:{href:t,patch:!1,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location)),r&&n.classList.remove("phx-click-loading"),a()})})}registerNewLocation(e){let{pathname:t,search:i}=this.currentLocation;return t+i===e.pathname+e.search?!1:(this.currentLocation=bt(e),!0)}bindForms(){let e=0,t=!1;this.on("submit",i=>{let s=i.target.getAttribute(this.binding("submit")),n=i.target.getAttribute(this.binding("change"));!t&&n&&!s&&(t=!0,i.preventDefault(),this.withinOwners(i.target,r=>{r.disableForm(i.target),window.requestAnimationFrame(()=>{c.isUnloadableFormSubmit(i)&&this.unload(),i.target.submit()})}))}),this.on("submit",i=>{let s=i.target.getAttribute(this.binding("submit"));if(!s){c.isUnloadableFormSubmit(i)&&this.unload();return}i.preventDefault(),i.target.disabled=!0,this.withinOwners(i.target,n=>{P.exec(i,"submit",s,n,i.target,["push",{submitter:i.submitter}])})});for(let i of["change","input"])this.on(i,s=>{if(s instanceof CustomEvent&&(s.target instanceof HTMLInputElement||s.target instanceof HTMLSelectElement||s.target instanceof HTMLTextAreaElement)&&s.target.form===void 0){if(s.detail&&s.detail.dispatcher)throw new Error(`dispatching a custom ${i} event is only supported on input elements inside a form`);return}let n=this.binding("change"),r=s.target;if(this.blockPhxChangeWhileComposing&&s.isComposing){let g=`composition-listener-${i}`;c.private(r,g)||(c.putPrivate(r,g,!0),r.addEventListener("compositionend",()=>{r.dispatchEvent(new Event(i,{bubbles:!0})),c.deletePrivate(r,g)},{once:!0}));return}let o=r.getAttribute(n),a=r.form&&r.form.getAttribute(n),l=o||a;if(!l||r.type==="number"&&r.validity&&r.validity.badInput)return;let h=o?r:r.form,d=e;e++;let{at:p,type:m}=c.private(r,"prev-iteration")||{};p===d-1&&i==="change"&&m==="input"||(c.putPrivate(r,"prev-iteration",{at:d,type:i}),this.debounce(r,s,i,()=>{this.withinOwners(h,g=>{c.putPrivate(r,yt,!0),P.exec(s,"change",l,g,r,["push",{_target:s.target.name,dispatcher:h}])})}))});this.on("reset",i=>{let s=i.target;c.resetForm(s);let n=Array.from(s.elements).find(r=>r.type==="reset");n&&window.requestAnimationFrame(()=>{n.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1}))})})}debounce(e,t,i,s){if(i==="blur"||i==="focusout")return s();let n=this.binding(Dn),r=this.binding(On),o=this.defaults.debounce.toString(),a=this.defaults.throttle.toString();this.withinOwners(e,l=>{let h=()=>!l.isDestroyed()&&document.body.contains(e);c.debounce(e,t,n,o,r,a,h,()=>{s()})})}silenceEvents(e){this.silenced=!0,e(),this.silenced=!1}on(e,t){this.boundEventNames.add(e),window.addEventListener(e,i=>{this.silenced||t(i)})}jsQuerySelectorAll(e,t,i){let s=this.domCallbacks.jsQuerySelectorAll;return s?s(e,t,i):i()}},kr=class{constructor(){this.transitions=new Set,this.promises=new Set,this.pendingOps=[]}reset(){this.transitions.forEach(e=>{clearTimeout(e),this.transitions.delete(e)}),this.promises.clear(),this.flushPendingOps()}after(e){this.size()===0?e():this.pushPendingOp(e)}addTransition(e,t,i){t();let s=setTimeout(()=>{this.transitions.delete(s),i(),this.flushPendingOps()},e);this.transitions.add(s)}addAsyncTransition(e){this.promises.add(e),e.then(()=>{this.promises.delete(e),this.flushPendingOps()})}pushPendingOp(e){this.pendingOps.push(e)}size(){return this.transitions.size+this.promises.size}flushPendingOps(){if(this.size()>0)return;let e=this.pendingOps.shift();e&&(e(),this.flushPendingOps())}},us=Ar;(function(){var e=t();function t(){if(typeof window.CustomEvent=="function")return window.CustomEvent;function n(r,o){o=o||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(r,o.bubbles,o.cancelable,o.detail),a}return n.prototype=window.Event.prototype,n}function i(n,r){var o=document.createElement("input");return o.type="hidden",o.name=n,o.value=r,o}function s(n,r){var o=n.getAttribute("data-to"),a=i("_method",n.getAttribute("data-method")),l=i("_csrf_token",n.getAttribute("data-csrf")),h=document.createElement("form"),d=document.createElement("input"),p=n.getAttribute("target");h.method=n.getAttribute("data-method")==="get"?"get":"post",h.action=o,h.style.display="none",p?h.target=p:r&&(h.target="_blank"),h.appendChild(l),h.appendChild(a),document.body.appendChild(h),d.type="submit",h.appendChild(d),d.click()}window.addEventListener("click",function(n){var r=n.target;if(!n.defaultPrevented)for(;r&&r.getAttribute;){var o=new e("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!r.dispatchEvent(o))return n.preventDefault(),n.stopImmediatePropagation(),!1;if(r.getAttribute("data-method")&&r.getAttribute("data-to"))return s(r,n.metaKey||n.shiftKey),n.preventDefault(),!1;r=r.parentNode}},!1),window.addEventListener("phoenix.link.click",function(n){var r=n.target.getAttribute("data-confirm");r&&!window.confirm(r)&&n.preventDefault()},!1)})();var St="bds-panel-sidebar",At="bds-panel-assistant-sidebar",si="bds-ui-language",fs="bds-workbench-";var he=(e,t,i)=>Math.max(t,Math.min(e,i)),ps=e=>{if(!e)return null;try{let t=JSON.parse(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:null}catch{return null}},kt=(e,t)=>{let i=e?.closest(".media-thumbnail");i&&(t?i.classList.add("is-loaded"):i.classList.remove("is-loaded"))},ni=e=>{e.querySelectorAll(".media-thumbnail-image").forEach(t=>{kt(t,!!(t.complete&&t.naturalWidth>0))})};var Tt=e=>{let t=document.querySelector(e);if(!t)return 0;let i=Number.parseInt(t.style.width||"0",10);return Number.isNaN(i)?Math.round(t.getBoundingClientRect().width):i},ms=(e,t)=>{let i=document.querySelector(e);i&&(i.style.width=`${t}px`,i.classList.remove("is-hidden"))},ri=(e,t)=>{let i=e==="assistant"?At:St;window.localStorage.setItem(i,String(t))},oi=(e,t,i,s)=>{let n=window.localStorage.getItem(e);if(!n)return t;let r=Number.parseInt(n,10);return Number.isNaN(r)?t:he(r,i,s)};var Ct=e=>String(e||"").toLowerCase(),gs=e=>{let t=e.target?.tagName||null;return e.target?.isContentEditable||["INPUT","TEXTAREA","SELECT"].includes(t)},vs=(e,t)=>{let i=t.metaKey||t.ctrlKey;return Ct(t.key)===Ct(e.key)&&i===!!e.primary&&t.shiftKey===!!e.shift&&t.altKey===!!e.alt},bs=e=>{if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}};var ys=()=>{let e=document.documentElement.style,t=(o,a)=>{e.setProperty("--bds-titlebar-overlay-left",`${o}px`),e.setProperty("--bds-titlebar-overlay-right",`${a}px`)},i=navigator.windowControlsOverlay;if(!i)return t(0,0),()=>{};let s=()=>{if(!i.visible){t(0,0);return}let o=i.getTitlebarAreaRect(),a=window.innerWidth||document.documentElement.clientWidth||o.right,l=Math.max(0,Math.round(o.left)),h=Math.max(0,Math.round(a-o.right));t(l,h)},n=()=>s(),r=()=>s();return s(),i.addEventListener("geometrychange",n),window.addEventListener("resize",r),()=>{i.removeEventListener("geometrychange",n),window.removeEventListener("resize",r)}};var X=(e,t)=>window.getComputedStyle(document.documentElement).getPropertyValue(e).trim()||t,Tr=e=>{if(!e)return null;let t=e.match(/^#([0-9a-f]{6})$/i);if(t)return{r:Number.parseInt(t[1].slice(0,2),16),g:Number.parseInt(t[1].slice(2,4),16),b:Number.parseInt(t[1].slice(4,6),16)};let i=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);return i?{r:Number.parseInt(i[1],10),g:Number.parseInt(i[2],10),b:Number.parseInt(i[3],10)}:null},ie=(e,t)=>{let i=Tr(e);return i?`#${[i.r,i.g,i.b].map(s=>he(s,0,255).toString(16).padStart(2,"0")).join("")}`:t};var ws=null,ce=e=>{let t=ie(X("--vscode-editor-background",X("--vscode-input-background","#1e1e1e")),"#1e1e1e"),i=ie(X("--vscode-editor-foreground","#d4d4d4"),"#d4d4d4"),s=ie(X("--vscode-editorLineNumber-foreground","#858585"),"#858585"),n=ie(X("--vscode-editorLineNumber-activeForeground",i),i),r=ie(X("--vscode-editor-selectionBackground","#264f78"),"#264f78"),o=ie(X("--vscode-editor-inactiveSelectionBackground","#3a3d41"),"#3a3d41"),a=ie(X("--vscode-editorCursor-foreground",i),i),l=ie(X("--vscode-panel-border","#3c3c3c"),"#3c3c3c"),h=ie(X("--vscode-editor-lineHighlightBackground",t),t),d=[t,i,s,n,r,o,a,l].join("|");if(d===ws){e.editor.setTheme("bds-theme");return}e.editor.defineTheme("bds-theme",{base:"vs-dark",inherit:!0,rules:[{token:"keyword.macro",foreground:"C586C0",fontStyle:"bold"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}],colors:{"editor.background":t,"editor.foreground":i,"editor.lineHighlightBackground":h,"editorCursor.foreground":a,"editor.selectionBackground":r,"editor.inactiveSelectionBackground":o,"editorLineNumber.foreground":s,"editorLineNumber.activeForeground":n,"editorIndentGuide.background1":l,"editorIndentGuide.activeBackground1":i,"editorWidget.border":l,"editorGutter.background":t,focusBorder:l,"input.border":l}}),ws=d,e.editor.setTheme("bds-theme")};var Es=!1,Ss=!1,ai=e=>{Es||(e.languages.register({id:"liquid"}),e.languages.setLanguageConfiguration("liquid",{comments:{blockComment:["{% comment %}","{% endcomment %}"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]}),e.languages.setMonarchTokensProvider("liquid",{defaultToken:"",tokenizer:{root:[[/\{\{-?/,{token:"delimiter.output",next:"@liquidOutput"}],[/\{%-?\s*comment\b[^%]*-?%\}/,{token:"comment.block",next:"@liquidComment"}],[/\{%-?/,{token:"delimiter.tag",next:"@liquidTag"}],[/<=!]=?|\.|:/,"operator"],[/[a-zA-Z_][\w.-]*/,"identifier"],[/[,:()[\]]/,"delimiter"]],liquidComment:[[/\{%-?\s*endcomment\s*-?%\}/,{token:"comment.block",next:"@pop"}],[/./,"comment.block"]],htmlComment:[[/-->/,{token:"comment",next:"@pop"}],[/./,"comment"]],htmlTag:[[/\/>/,{token:"delimiter.html",next:"@pop"}],[/>/,{token:"delimiter.html",next:"@pop"}],[/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,"attribute.value"],[/[\w:-]+/,"attribute.name"],[/=/,"delimiter"]],scriptTag:[[/>/,{token:"delimiter.html",next:"@pop"}],[/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,"attribute.value"],[/[\w:-]+/,"attribute.name"],[/=/,"delimiter"]],styleTag:[[/>/,{token:"delimiter.html",next:"@pop"}],[/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,"attribute.value"],[/[\w:-]+/,"attribute.name"],[/=/,"delimiter"]]}}),Es=!0)},li=e=>{Ss||(e.languages.register({id:"markdown-with-macros"}),e.languages.setMonarchTokensProvider("markdown-with-macros",{defaultToken:"",tokenPostfix:".md",tokenizer:{root:[[/\[\[[a-zA-Z][\w-]*/,{token:"keyword.macro",next:"@macroParams"}],[/^#{1,6}\s.*$/,"keyword.header"],[/^\s*>+/,"string.quote"],[/^\s*[-+*]\s/,"keyword"],[/^\s*\d+\.\s/,"keyword"],[/^\s*```\w*/,{token:"string.code",next:"@codeblock"}],[/\*\*[^*]+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/__[^_]+__/,"strong"],[/_[^_]+_/,"emphasis"],[/`[^`]+`/,"variable"],[/!?\[[^\]]*\]\([^)]*\)/,"string.link"],[/!?\[[^\]]*\]\[[^\]]*\]/,"string.link"]],macroParams:[[/\]\]/,{token:"keyword.macro",next:"@root"}],[/[a-zA-Z][\w-]*(?=\s*=)/,"attribute.name"],[/=/,"delimiter"],[/"[^"]*"/,"string"],[/\s+/,"white"],[/[^\]"=\s]+/,"attribute.value"]],codeblock:[[/^\s*```\s*$/,{token:"string.code",next:"@root"}],[/.*$/,"variable.source"]]}}),Ss=!0)};var Qe,hi=new Map,Cr={editor:"/assets/monaco/editor.worker.js",css:"/assets/monaco/css.worker.js",html:"/assets/monaco/html.worker.js",json:"/assets/monaco/json.worker.js",ts:"/assets/monaco/ts.worker.js"},_r=e=>{switch(e){case"css":case"scss":case"less":return"css";case"html":case"handlebars":case"razor":return"html";case"json":return"json";case"typescript":case"javascript":return"ts";default:return"editor"}},xr=()=>{globalThis.MonacoEnvironment?.getWorker||(globalThis.MonacoEnvironment={...globalThis.MonacoEnvironment,getWorker(e,t){let i=_r(t);return new Worker(Cr[i],{name:t,type:"module"})}})},$e=()=>(xr(),window.monaco?.editor?(ce(window.monaco),ai(window.monaco),li(window.monaco),Promise.resolve(window.monaco)):Qe||(Qe=import("/assets/monaco.js").then(e=>{if(window.monaco=e,!e.editor)throw new Error("Monaco loaded but monaco.editor is missing");return ce(e),ai(e),li(e),e}).catch(e=>{throw console.error("Monaco load failed:",e),Qe=null,e}),Qe)),As=(e,t)=>{e&&hi.set(e,t)},ks=e=>{e&&hi.delete(e)},Ts=()=>{for(let e of hi.values())if(typeof e?.hasTextFocus=="function"&&e.hasTextFocus())return e;return null},se=(e,t,i=t)=>{if(!e)return!1;let s=typeof e.getAction=="function"?e.getAction(t):null;return s&&typeof s.run=="function"?(s.run(),!0):typeof e.trigger=="function"?(e.trigger("bds-menu",i,null),!0):!1},ci=(e,t)=>{let i=String(e||"working-tree").replace(/^\/+/,"");return`inmemory://model/git-diff/${t}/${i}`};var _t=e=>{let t=he(Math.round(e*100)/100,.5,2);window.__bdsAppZoom=t,document.documentElement.style.zoom=String(t)},ge=e=>{if(typeof document.execCommand!="function")return!1;try{return document.execCommand(e)}catch{return!1}};var Cs=e=>{let t=Ts();switch(e){case"undo":return t?se(t,"undo"):ge("undo");case"redo":return t?se(t,"redo"):ge("redo");case"cut":return t?se(t,"editor.action.clipboardCutAction"):ge("cut");case"copy":return t?se(t,"editor.action.clipboardCopyAction"):ge("copy");case"paste":return t?se(t,"editor.action.clipboardPasteAction"):ge("paste");case"delete":return t?se(t,"deleteLeft"):ge("delete");case"select_all":return t?se(t,"editor.action.selectAll"):ge("selectAll");case"find":return t?se(t,"actions.find"):!1;case"replace":return t?se(t,"editor.action.startFindReplaceAction"):!1;case"reload":case"force_reload":return window.location.reload(),!0;case"reset_zoom":return _t(1),!0;case"zoom_in":return _t((window.__bdsAppZoom||1)+.1),!0;case"zoom_out":return _t((window.__bdsAppZoom||1)-.1),!0;case"toggle_full_screen":return document.fullscreenElement?document.exitFullscreen?.():document.documentElement.requestFullscreen?.(),!0;default:return!1}};var _s={mounted(){this.shortcuts=bs(this.el.dataset.shortcuts),this.currentProjectId=this.el.dataset.projectId||"",this.syncStoredLayout(),this.syncStoredUiLanguage(),this.destroyOverlaySync=ys(),this.workbenchStorageKey=e=>e?`${fs}${e}`:null,this.restoreStoredWorkbenchSession=()=>{let e=this.el.dataset.projectId||"",t=this.workbenchStorageKey(e);if(!t)return!1;let i=ps(window.localStorage.getItem(t));return i?(this.pushEvent("restore_workbench_session",{session:i}),!0):!1},this.persistWorkbenchSession=()=>{let e=this.el.dataset.projectId||"",t=this.workbenchStorageKey(e),i=this.el.dataset.workbenchSession;!t||!i||window.localStorage.setItem(t,i)},this.handleMouseDown=e=>{let t=e.target.closest("[data-role='resize-handle']");if(!t||!this.el.contains(t))return;e.preventDefault();let i=t.dataset.resize,s=e.clientX,n=i==="assistant"?Tt("[data-testid='assistant-shell']"):Tt("[data-testid='sidebar-shell']"),r=i==="assistant"?280:200,o=i==="assistant"?640:500,a=i==="assistant",l=d=>{let p=a?s-d.clientX:d.clientX-s,m=he(n+p,r,o);ms(i==="assistant"?"[data-testid='assistant-shell']":"[data-testid='sidebar-shell']",m),ri(i,m)},h=d=>{let p=a?s-d.clientX:d.clientX-s,m=he(n+p,r,o);ri(i,m),this.pushEvent("resize_panel",{target:i,width:m}),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",h)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",h)},this.el.addEventListener("mousedown",this.handleMouseDown),this.handleNativeMenuAction=e=>{let t=e.detail?.action,i=e.detail?.ackId;t&&this.pushEvent("native_menu_action",{action:t},()=>{i&&window.dispatchEvent(new CustomEvent("bds:native-menu-action-ack",{detail:{ackId:i}}))})},this.handleChange=e=>{let t=e.target.closest(".status-bar-language-select");t&&this.el.contains(t)&&window.localStorage.setItem(si,t.value)},this.handleShortcutKeyDown=e=>{gs(e)||!this.shortcuts.find(i=>vs(i,e))||(e.preventDefault(),e.stopPropagation(),this.pushEvent("shortcut",{key:Ct(e.key),meta:e.metaKey,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey,tag:e.target?.tagName||null,contentEditable:e.target?.isContentEditable||!1}))},this.handleThumbnailLoad=e=>{e.target instanceof HTMLImageElement&&e.target.classList.contains("media-thumbnail-image")&&kt(e.target,!0)},this.handleThumbnailError=e=>{e.target instanceof HTMLImageElement&&e.target.classList.contains("media-thumbnail-image")&&kt(e.target,!1)},this.handleEvent("menu-runtime-command",({action:e})=>{e&&Cs(String(e))}),this.handleEvent("url-state",({path:e})=>{e&&window.location.pathname+window.location.search!==e&&window.history.replaceState({},"",e)}),window.addEventListener("bds:native-menu-action",this.handleNativeMenuAction),window.addEventListener("keydown",this.handleShortcutKeyDown,!0),this.el.addEventListener("load",this.handleThumbnailLoad,!0),this.el.addEventListener("error",this.handleThumbnailError,!0),this.el.addEventListener("change",this.handleChange),ni(this.el),this.restoreStoredWorkbenchSession(),this.pushEvent("shell_ready",{})},updated(){let e=this.el.dataset.projectId||"";e!==this.currentProjectId&&(this.currentProjectId=e,this.restoreStoredWorkbenchSession())||(ni(this.el),this.persistWorkbenchSession())},destroyed(){this.el.removeEventListener("mousedown",this.handleMouseDown),this.el.removeEventListener("load",this.handleThumbnailLoad,!0),this.el.removeEventListener("error",this.handleThumbnailError,!0),this.el.removeEventListener("change",this.handleChange),window.removeEventListener("bds:native-menu-action",this.handleNativeMenuAction),window.removeEventListener("keydown",this.handleShortcutKeyDown,!0),this.destroyOverlaySync&&this.destroyOverlaySync()},syncStoredLayout(){this.pushEvent("sync_layout",{sidebar_width:oi(St,Tt("[data-testid='sidebar-shell']"),200,500),assistant_sidebar_width:oi(At,360,280,640)})},syncStoredUiLanguage(){let e=window.localStorage.getItem(si);e&&this.pushEvent("sync_ui_language",{language:e})}};var xs={mounted(){this.handleDblClick=e=>{let t=e.target.closest("[data-testid='sidebar-open-item']");!t||!this.el.contains(t)||this.pushEvent("pin_sidebar_item",{route:t.dataset.route,id:t.dataset.itemId,title:t.dataset.openTitle||"",subtitle:t.dataset.openSubtitle||""})},this.el.addEventListener("dblclick",this.handleDblClick)},destroyed(){this.el.removeEventListener("dblclick",this.handleDblClick)}};var Ps=e=>({mounted(){this.lastTargetId=null,this.scrollToSelectedSection()},updated(){this.scrollToSelectedSection()},scrollToSelectedSection(){let t=this.el.dataset[e];!t||t===this.lastTargetId||(this.lastTargetId=t,window.requestAnimationFrame(()=>{let i=document.getElementById(t);i&&this.el.contains(i)&&i.scrollIntoView({block:"start",behavior:"smooth"})}))}}),Rs=Ps("settingsScrollTarget"),Ls=Ps("tagsScrollTarget");var Is={mounted(){this.stickToBottom=!0,this.scrollContainer=null,this._enterKeyHandled=!1,this._prevInputValue="",this.autoResize=()=>{let e=this.el.querySelector(".chat-input");if(!e)return;let t=getComputedStyle(e),i=parseFloat(t.getPropertyValue("--chat-input-min-height"))||20,s=parseFloat(t.getPropertyValue("--chat-input-max-height"))||160;if(e.rows=1,e.style.minHeight=`${i}px`,e.value.trim()===""){e.style.height=`${i}px`,e.style.maxHeight=`${i}px`,e.style.overflowY="hidden";return}e.style.maxHeight=`${s}px`,e.style.height="0px";let n=Math.min(Math.max(e.scrollHeight,i),s);e.style.height=`${n}px`,e.style.overflowY=n>=s?"auto":"hidden"},this.syncScrollContainer=()=>{let e=this.el.querySelector(".chat-messages");e!==this.scrollContainer&&(this.scrollContainer&&this.scrollContainer.removeEventListener("scroll",this.handleScroll),this.scrollContainer=e,this.scrollContainer&&this.scrollContainer.addEventListener("scroll",this.handleScroll))},this.scrollToBottom=(e=!1)=>{this.scrollContainer&&(e||this.stickToBottom)&&(this.scrollContainer.scrollTop=this.scrollContainer.scrollHeight)},this.syncExpandedSurfaces=()=>{this.el.querySelectorAll(".chat-inline-surface[data-expanded='true']").forEach(e=>{e.open=!0})},this.surfaceObserver=new MutationObserver(()=>{this.syncExpandedSurfaces()}),this.handleScroll=()=>{if(!this.scrollContainer){this.stickToBottom=!0;return}let e=this.scrollContainer.scrollHeight-this.scrollContainer.scrollTop-this.scrollContainer.clientHeight;this.stickToBottom=e<48},this._submitChat=()=>{let e=this.el.querySelector(".chat-input-wrapper");if(e&&typeof e.requestSubmit=="function")e.requestSubmit();else{let t=this.el.querySelector("[data-testid='chat-send-button']");t&&t.click()}},this.handleInput=e=>{if(!e.target.closest(".chat-input"))return;let t=e.target;if(!this._enterKeyHandled&&t.value.includes(` + `);this.socket=new t(e,i),this.bindingPrefix=i.bindingPrefix||Bn,this.opts=i,this.params=ze(i.params||{}),this.viewLogger=i.viewLogger,this.metadataCallbacks=i.metadata||{},this.defaults=Object.assign(bt(Wn),i.defaults||{}),this.prevActive=null,this.silenced=!1,this.main=null,this.outgoingMainEl=null,this.clickStartedAtTarget=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=bt(window.location),this.hooks=i.hooks||{},this.uploaders=i.uploaders||{},this.loaderTimeout=i.loaderTimeout||Fn,this.disconnectedTimeout=i.disconnectedTimeout||jn,this.reloadWithJitterTimer=null,this.maxReloads=i.maxReloads||kn,this.reloadJitterMin=i.reloadJitterMin||Tn,this.reloadJitterMax=i.reloadJitterMax||Cn,this.failsafeJitter=i.failsafeJitter||_n,this.localStorage=i.localStorage||window.localStorage,this.sessionStorage=i.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.boundEventNames=new Set,this.blockPhxChangeWhileComposing=i.blockPhxChangeWhileComposing||!1,this.serverCloseRef=null,this.domCallbacks=Object.assign({jsQuerySelectorAll:null,onPatchStart:ze(),onPatchEnd:ze(),onNodeAdded:ze(),onBeforeElUpdated:ze()},i.dom||{}),this.transitions=new Tr,this.currentHistoryPosition=parseInt(this.sessionStorage.getItem(ct))||0,window.addEventListener("pagehide",s=>{this.unloaded=!0}),this.socket.onOpen(()=>{this.isUnloaded()&&window.location.reload()})}version(){return"1.1.28"}isProfileEnabled(){return this.sessionStorage.getItem(Ft)==="true"}isDebugEnabled(){return this.sessionStorage.getItem(ht)==="true"}isDebugDisabled(){return this.sessionStorage.getItem(ht)==="false"}enableDebug(){this.sessionStorage.setItem(ht,"true")}enableProfiling(){this.sessionStorage.setItem(Ft,"true")}disableDebug(){this.sessionStorage.setItem(ht,"false")}disableProfiling(){this.sessionStorage.removeItem(Ft)}enableLatencySim(e){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem(Ut,e)}disableLatencySim(){this.sessionStorage.removeItem(Ut)}getLatencySim(){let e=this.sessionStorage.getItem(Ut);return e?parseInt(e):null}getSocket(){return this.socket}connect(){window.location.hostname==="localhost"&&!this.isDebugDisabled()&&this.enableDebug();let e=()=>{this.resetReloadStatus(),this.joinRootViews()?(this.bindTopLevelEvents(),this.socket.connect()):this.main?this.socket.connect():this.bindTopLevelEvents({dead:!0}),this.joinDeadView()};["complete","loaded","interactive"].indexOf(document.readyState)>=0?e():document.addEventListener("DOMContentLoaded",()=>e())}disconnect(e){clearTimeout(this.reloadWithJitterTimer),this.serverCloseRef&&(this.socket.off(this.serverCloseRef),this.serverCloseRef=null),this.socket.disconnect(e)}replaceTransport(e){clearTimeout(this.reloadWithJitterTimer),this.socket.replaceTransport(e),this.connect()}execJS(e,t,i=null){let s=new CustomEvent("phx:exec",{detail:{sourceElement:e}});this.owner(e,n=>P.exec(s,i,t,n,e))}js(){return hs(this,"js")}unload(){this.unloaded||(this.main&&this.isConnected()&&this.log(this.main,"socket",()=>["disconnect for page nav"]),this.unloaded=!0,this.destroyAllViews(),this.disconnect())}triggerDOM(e,t){this.domCallbacks[e](...t)}time(e,t){if(!this.isProfileEnabled()||!console.time)return t();console.time(e);let i=t();return console.timeEnd(e),i}log(e,t,i){if(this.viewLogger){let[s,n]=i();this.viewLogger(e,t,s,n)}else if(this.isDebugEnabled()){let[s,n]=i();zn(e,t,s,n)}}requestDOMUpdate(e){this.transitions.after(e)}asyncTransition(e){this.transitions.addAsyncTransition(e)}transition(e,t,i=function(){}){this.transitions.addTransition(e,t,i)}onChannel(e,t,i){e.on(t,s=>{let n=this.getLatencySim();n?setTimeout(()=>i(s),n):i(s)})}reloadWithJitter(e,t){clearTimeout(this.reloadWithJitterTimer),this.disconnect();let i=this.reloadJitterMin,s=this.reloadJitterMax,n=Math.floor(Math.random()*(s-i+1))+i,r=B.updateLocal(this.localStorage,window.location.pathname,ts,0,o=>o+1);r>=this.maxReloads&&(n=this.failsafeJitter),this.reloadWithJitterTimer=setTimeout(()=>{e.isDestroyed()||e.isConnected()||(e.destroy(),t?t():this.log(e,"join",()=>[`encountered ${r} consecutive reloads`]),r>=this.maxReloads&&this.log(e,"join",()=>[`exceeded ${this.maxReloads} consecutive reloads. Entering failsafe mode`]),this.hasPendingLink()?window.location=this.pendingLink:window.location.reload())},n)}getHookDefinition(e){if(e)return this.maybeInternalHook(e)||this.hooks[e]||this.maybeRuntimeHook(e)}maybeInternalHook(e){return e&&e.startsWith("Phoenix.")&&sr[e.split(".")[1]]}maybeRuntimeHook(e){let t=document.querySelector(`script[${vt}="${CSS.escape(e)}"]`);if(!t)return;let i=window[`phx_hook_${e}`];if(!i||typeof i!="function"){I("a runtime hook must be a function",t);return}let s=i();if(s&&(typeof s=="object"||typeof s=="function"))return s;I("runtime hook must return an object with hook callbacks or an instance of ViewHook",t)}isUnloaded(){return this.unloaded}isConnected(){return this.socket.isConnected()}getBindingPrefix(){return this.bindingPrefix}binding(e){return`${this.getBindingPrefix()}${e}`}channel(e,t){return this.socket.channel(e,t)}joinDeadView(){let e=document.body;if(e&&!this.isPhxView(e)&&!this.isPhxView(document.firstElementChild)){let t=this.newRootView(e);t.setHref(this.getHref()),t.joinDead(),this.main||(this.main=t),window.requestAnimationFrame(()=>{t.execNewMounted(),this.maybeScroll(history.state?.scroll)})}}joinRootViews(){let e=!1;return c.all(document,`${Ze}:not([${Ae}])`,t=>{if(!this.getRootById(t.id)){let i=this.newRootView(t);c.isPhxSticky(t)||i.setHref(this.getHref()),i.join(),t.hasAttribute(Qt)&&(this.main=i)}e=!0}),e}redirect(e,t,i){i&&B.setCookie(Mi,i,60),this.unload(),B.redirect(e,t)}replaceMain(e,t,i=null,s=this.setPendingLink(e)){let n=this.currentLocation.href;this.outgoingMainEl=this.outgoingMainEl||this.main.el;let r=c.findPhxSticky(document)||[],o=c.all(this.outgoingMainEl,`[${this.binding("remove")}]`).filter(l=>!c.isChildOfAny(l,r)),a=c.cloneNode(this.outgoingMainEl,"");this.main.showLoader(this.loaderTimeout),this.main.destroy(),this.main=this.newRootView(a,t,n),this.main.setRedirect(e),this.transitionRemoves(o),this.main.join((l,h)=>{l===1&&this.commitPendingLink(s)&&this.requestDOMUpdate(()=>{o.forEach(d=>d.remove()),r.forEach(d=>a.appendChild(d)),this.outgoingMainEl.replaceWith(a),this.outgoingMainEl=null,i&&i(s),h()})})}transitionRemoves(e,t){let i=this.binding("remove"),s=n=>{n.preventDefault(),n.stopImmediatePropagation()};e.forEach(n=>{for(let r of this.boundEventNames)n.addEventListener(r,s,!0);this.execJS(n,n.getAttribute(i),"remove")}),this.requestDOMUpdate(()=>{e.forEach(n=>{for(let r of this.boundEventNames)n.removeEventListener(r,s,!0)}),t&&t()})}isPhxView(e){return e.getAttribute&&e.getAttribute(te)!==null}newRootView(e,t,i){let s=new Ar(e,this,null,t,i);return this.roots[s.id]=s,s}owner(e,t){let i,s=c.closestViewEl(e);if(s)i=this.getViewByEl(s);else{if(!e.isConnected)return null;i=this.main}return i&&t?t(i):i}withinOwners(e,t){this.owner(e,i=>t(i,e))}getViewByEl(e){let t=e.getAttribute(ae);return Me(this.getRootById(t),i=>i.getDescendentByEl(e))}getRootById(e){return this.roots[e]}destroyAllViews(){for(let e in this.roots)this.roots[e].destroy(),delete this.roots[e];this.main=null}destroyViewByEl(e){let t=this.getRootById(e.getAttribute(ae));t&&t.id===e.id?(t.destroy(),delete this.roots[t.id]):t&&t.destroyDescendent(e.id)}getActiveElement(){return document.activeElement}dropActiveElement(e){this.prevActive&&e.ownsElement(this.prevActive)&&(this.prevActive=null)}restorePreviouslyActiveFocus(){this.prevActive&&this.prevActive!==document.body&&this.prevActive instanceof HTMLElement&&this.prevActive.focus()}blurActiveElement(){this.prevActive=this.getActiveElement(),this.prevActive!==document.body&&this.prevActive instanceof HTMLElement&&this.prevActive.blur()}bindTopLevelEvents({dead:e}={}){this.boundTopLevelEvents||(this.boundTopLevelEvents=!0,this.serverCloseRef=this.socket.onClose(t=>{if(t&&t.code===1e3&&this.main)return this.reloadWithJitter(this.main)}),document.body.addEventListener("click",function(){}),window.addEventListener("pageshow",t=>{t.persisted&&(this.getSocket().disconnect(),this.withPageLoading({to:window.location.href,kind:"redirect"}),window.location.reload())},!0),e||this.bindNav(),this.bindClicks(),e||this.bindForms(),this.bind({keyup:"keyup",keydown:"keydown"},(t,i,s,n,r,o)=>{let a=n.getAttribute(this.binding(Nn)),l=t.key&&t.key.toLowerCase();if(a&&a.toLowerCase()!==l)return;let h={key:t.key,...this.eventMeta(i,t,n)};P.exec(t,i,r,s,n,["push",{data:h}])}),this.bind({blur:"focusout",focus:"focusin"},(t,i,s,n,r,o)=>{if(!o){let a={key:t.key,...this.eventMeta(i,t,n)};P.exec(t,i,r,s,n,["push",{data:a}])}}),this.bind({blur:"blur",focus:"focus"},(t,i,s,n,r,o)=>{if(o==="window"){let a=this.eventMeta(i,t,n);P.exec(t,i,r,s,n,["push",{data:a}])}}),this.on("dragover",t=>t.preventDefault()),this.on("dragenter",t=>{let i=Ee(t.target,this.binding(lt));!i||!(i instanceof HTMLElement)||Yn(t)&&this.js().addClass(i,Nt)}),this.on("dragleave",t=>{let i=Ee(t.target,this.binding(lt));if(!i||!(i instanceof HTMLElement))return;let s=i.getBoundingClientRect();(t.clientX<=s.left||t.clientX>=s.right||t.clientY<=s.top||t.clientY>=s.bottom)&&this.js().removeClass(i,Nt)}),this.on("drop",t=>{t.preventDefault();let i=Ee(t.target,this.binding(lt));if(!i||!(i instanceof HTMLElement))return;this.js().removeClass(i,Nt);let s=i.getAttribute(this.binding(lt)),n=s&&document.getElementById(s),r=Array.from(t.dataTransfer.files||[]);!n||!(n instanceof HTMLInputElement)||n.disabled||r.length===0||!(n.files instanceof FileList)||(N.trackFiles(n,r,t.dataTransfer),n.dispatchEvent(new Event("input",{bubbles:!0})))}),this.on(ss,t=>{let i=t.target;if(!c.isUploadInput(i))return;let s=Array.from(t.detail.files||[]).filter(n=>n instanceof File||n instanceof Blob);N.trackFiles(i,s),i.dispatchEvent(new Event("input",{bubbles:!0}))}))}eventMeta(e,t,i){let s=this.metadataCallbacks[e];return s?s(t,i):{}}setPendingLink(e){return this.linkRef++,this.pendingLink=e,this.resetReloadStatus(),this.linkRef}resetReloadStatus(){B.deleteCookie(Mi)}commitPendingLink(e){return this.linkRef!==e?!1:(this.href=this.pendingLink,this.pendingLink=null,!0)}getHref(){return this.href}hasPendingLink(){return!!this.pendingLink}bind(e,t){for(let i in e){let s=e[i];this.on(s,n=>{let r=this.binding(i),o=this.binding(`window-${i}`),a=n.target.getAttribute&&n.target.getAttribute(r);a?this.debounce(n.target,n,s,()=>{this.withinOwners(n.target,l=>{t(n,i,l,n.target,a,null)})}):c.all(document,`[${o}]`,l=>{let h=l.getAttribute(o);this.debounce(l,n,s,()=>{this.withinOwners(l,d=>{t(n,i,d,l,h,"window")})})})})}}bindClicks(){this.on("mousedown",e=>this.clickStartedAtTarget=e.target),this.bindClick("click","click")}bindClick(e,t){let i=this.binding(t);window.addEventListener(e,s=>{let n=null;s.detail===0&&(this.clickStartedAtTarget=s.target);let r=this.clickStartedAtTarget||s.target;n=Ee(s.target,i),this.dispatchClickAway(s,r),this.clickStartedAtTarget=null;let o=n&&n.getAttribute(i);if(!o){c.isNewPageClick(s,window.location)&&this.unload();return}n.getAttribute("href")==="#"&&s.preventDefault(),!n.hasAttribute(J)&&this.debounce(n,s,"click",()=>{this.withinOwners(n,a=>{P.exec(s,"click",o,a,n,["push",{data:this.eventMeta("click",s,n)}])})})},!1)}dispatchClickAway(e,t){let i=this.binding("click-away"),s=t.closest(`[${me}]`),n=s&&c.byId(s.getAttribute(me));c.all(document,`[${i}]`,r=>{let o=t;s&&!s.contains(r)&&(o=n),r.isSameNode(o)||r.contains(o)||!P.isVisible(t)||this.withinOwners(r,a=>{let l=r.getAttribute(i);P.isVisible(r)&&P.isInViewport(r)&&P.exec(e,"click",l,a,r,["push",{data:this.eventMeta("click",e,e.target)}])})})}bindNav(){if(!B.canPushState())return;history.scrollRestoration&&(history.scrollRestoration="manual");let e=null;window.addEventListener("scroll",t=>{clearTimeout(e),e=setTimeout(()=>{B.updateCurrentState(i=>Object.assign(i,{scroll:window.scrollY}))},100)}),window.addEventListener("popstate",t=>{if(!this.registerNewLocation(window.location))return;let{type:i,backType:s,id:n,scroll:r,position:o}=t.state||{},a=window.location.href,l=o>this.currentHistoryPosition,h=l?i:s||i;this.currentHistoryPosition=o||0,this.sessionStorage.setItem(ct,this.currentHistoryPosition.toString()),c.dispatchEvent(window,"phx:navigate",{detail:{href:a,patch:h==="patch",pop:!0,direction:l?"forward":"backward"}}),this.requestDOMUpdate(()=>{let d=()=>{this.maybeScroll(r)};this.main.isConnected()&&h==="patch"&&n===this.main.id?this.main.pushLinkPatch(t,a,null,d):this.replaceMain(a,null,d)})},!1),window.addEventListener("click",t=>{let i=Ee(t.target,$t),s=i&&i.getAttribute($t);if(!s||!this.isConnected()||!this.main||c.wantsNewTab(t))return;let n=i.href instanceof SVGAnimatedString?i.href.baseVal:i.href,r=i.getAttribute(Pn);t.preventDefault(),t.stopImmediatePropagation(),this.pendingLink!==n&&this.requestDOMUpdate(()=>{if(s==="patch")this.pushHistoryPatch(t,n,r,i);else if(s==="redirect")this.historyRedirect(t,n,r,null,i);else throw new Error(`expected ${$t} to be "patch" or "redirect", got: ${s}`);let o=i.getAttribute(this.binding("click"));o&&this.requestDOMUpdate(()=>this.execJS(i,o,"click"))})},!1)}maybeScroll(e){typeof e=="number"&&requestAnimationFrame(()=>{window.scrollTo(0,e)})}dispatchEvent(e,t={}){c.dispatchEvent(window,`phx:${e}`,{detail:t})}dispatchEvents(e){e.forEach(([t,i])=>this.dispatchEvent(t,i))}withPageLoading(e,t){c.dispatchEvent(window,"phx:page-loading-start",{detail:e});let i=()=>c.dispatchEvent(window,"phx:page-loading-stop",{detail:e});return t?t(i):i}pushHistoryPatch(e,t,i,s){if(!this.isConnected()||!this.main.isMain())return B.redirect(t);this.withPageLoading({to:t,kind:"patch"},n=>{this.main.pushLinkPatch(e,t,s,r=>{this.historyPatch(t,i,r),n()})})}historyPatch(e,t,i=this.setPendingLink(e)){this.commitPendingLink(i)&&(this.currentHistoryPosition++,this.sessionStorage.setItem(ct,this.currentHistoryPosition.toString()),B.updateCurrentState(s=>({...s,backType:"patch"})),B.pushState(t,{type:"patch",id:this.main.id,position:this.currentHistoryPosition},e),c.dispatchEvent(window,"phx:navigate",{detail:{patch:!0,href:e,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location))}historyRedirect(e,t,i,s,n){let r=n&&e.isTrusted&&e.type!=="popstate";if(r&&n.classList.add("phx-click-loading"),!this.isConnected()||!this.main.isMain())return B.redirect(t,s);if(/^\/$|^\/[^\/]+.*$/.test(t)){let{protocol:a,host:l}=window.location;t=`${a}//${l}${t}`}let o=window.scrollY;this.withPageLoading({to:t,kind:"redirect"},a=>{this.replaceMain(t,s,l=>{l===this.linkRef&&(this.currentHistoryPosition++,this.sessionStorage.setItem(ct,this.currentHistoryPosition.toString()),B.updateCurrentState(h=>({...h,backType:"redirect"})),B.pushState(i,{type:"redirect",id:this.main.id,scroll:o,position:this.currentHistoryPosition},t),c.dispatchEvent(window,"phx:navigate",{detail:{href:t,patch:!1,pop:!1,direction:"forward"}}),this.registerNewLocation(window.location)),r&&n.classList.remove("phx-click-loading"),a()})})}registerNewLocation(e){let{pathname:t,search:i}=this.currentLocation;return t+i===e.pathname+e.search?!1:(this.currentLocation=bt(e),!0)}bindForms(){let e=0,t=!1;this.on("submit",i=>{let s=i.target.getAttribute(this.binding("submit")),n=i.target.getAttribute(this.binding("change"));!t&&n&&!s&&(t=!0,i.preventDefault(),this.withinOwners(i.target,r=>{r.disableForm(i.target),window.requestAnimationFrame(()=>{c.isUnloadableFormSubmit(i)&&this.unload(),i.target.submit()})}))}),this.on("submit",i=>{let s=i.target.getAttribute(this.binding("submit"));if(!s){c.isUnloadableFormSubmit(i)&&this.unload();return}i.preventDefault(),i.target.disabled=!0,this.withinOwners(i.target,n=>{P.exec(i,"submit",s,n,i.target,["push",{submitter:i.submitter}])})});for(let i of["change","input"])this.on(i,s=>{if(s instanceof CustomEvent&&(s.target instanceof HTMLInputElement||s.target instanceof HTMLSelectElement||s.target instanceof HTMLTextAreaElement)&&s.target.form===void 0){if(s.detail&&s.detail.dispatcher)throw new Error(`dispatching a custom ${i} event is only supported on input elements inside a form`);return}let n=this.binding("change"),r=s.target;if(this.blockPhxChangeWhileComposing&&s.isComposing){let g=`composition-listener-${i}`;c.private(r,g)||(c.putPrivate(r,g,!0),r.addEventListener("compositionend",()=>{r.dispatchEvent(new Event(i,{bubbles:!0})),c.deletePrivate(r,g)},{once:!0}));return}let o=r.getAttribute(n),a=r.form&&r.form.getAttribute(n),l=o||a;if(!l||r.type==="number"&&r.validity&&r.validity.badInput)return;let h=o?r:r.form,d=e;e++;let{at:p,type:m}=c.private(r,"prev-iteration")||{};p===d-1&&i==="change"&&m==="input"||(c.putPrivate(r,"prev-iteration",{at:d,type:i}),this.debounce(r,s,i,()=>{this.withinOwners(h,g=>{c.putPrivate(r,yt,!0),P.exec(s,"change",l,g,r,["push",{_target:s.target.name,dispatcher:h}])})}))});this.on("reset",i=>{let s=i.target;c.resetForm(s);let n=Array.from(s.elements).find(r=>r.type==="reset");n&&window.requestAnimationFrame(()=>{n.dispatchEvent(new Event("input",{bubbles:!0,cancelable:!1}))})})}debounce(e,t,i,s){if(i==="blur"||i==="focusout")return s();let n=this.binding(On),r=this.binding(Mn),o=this.defaults.debounce.toString(),a=this.defaults.throttle.toString();this.withinOwners(e,l=>{let h=()=>!l.isDestroyed()&&document.body.contains(e);c.debounce(e,t,n,o,r,a,h,()=>{s()})})}silenceEvents(e){this.silenced=!0,e(),this.silenced=!1}on(e,t){this.boundEventNames.add(e),window.addEventListener(e,i=>{this.silenced||t(i)})}jsQuerySelectorAll(e,t,i){let s=this.domCallbacks.jsQuerySelectorAll;return s?s(e,t,i):i()}},Tr=class{constructor(){this.transitions=new Set,this.promises=new Set,this.pendingOps=[]}reset(){this.transitions.forEach(e=>{clearTimeout(e),this.transitions.delete(e)}),this.promises.clear(),this.flushPendingOps()}after(e){this.size()===0?e():this.pushPendingOp(e)}addTransition(e,t,i){t();let s=setTimeout(()=>{this.transitions.delete(s),i(),this.flushPendingOps()},e);this.transitions.add(s)}addAsyncTransition(e){this.promises.add(e),e.then(()=>{this.promises.delete(e),this.flushPendingOps()})}pushPendingOp(e){this.pendingOps.push(e)}size(){return this.transitions.size+this.promises.size}flushPendingOps(){if(this.size()>0)return;let e=this.pendingOps.shift();e&&(e(),this.flushPendingOps())}},us=kr;(function(){var e=t();function t(){if(typeof window.CustomEvent=="function")return window.CustomEvent;function n(r,o){o=o||{bubbles:!1,cancelable:!1,detail:void 0};var a=document.createEvent("CustomEvent");return a.initCustomEvent(r,o.bubbles,o.cancelable,o.detail),a}return n.prototype=window.Event.prototype,n}function i(n,r){var o=document.createElement("input");return o.type="hidden",o.name=n,o.value=r,o}function s(n,r){var o=n.getAttribute("data-to"),a=i("_method",n.getAttribute("data-method")),l=i("_csrf_token",n.getAttribute("data-csrf")),h=document.createElement("form"),d=document.createElement("input"),p=n.getAttribute("target");h.method=n.getAttribute("data-method")==="get"?"get":"post",h.action=o,h.style.display="none",p?h.target=p:r&&(h.target="_blank"),h.appendChild(l),h.appendChild(a),document.body.appendChild(h),d.type="submit",h.appendChild(d),d.click()}window.addEventListener("click",function(n){var r=n.target;if(!n.defaultPrevented)for(;r&&r.getAttribute;){var o=new e("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!r.dispatchEvent(o))return n.preventDefault(),n.stopImmediatePropagation(),!1;if(r.getAttribute("data-method")&&r.getAttribute("data-to"))return s(r,n.metaKey||n.shiftKey),n.preventDefault(),!1;r=r.parentNode}},!1),window.addEventListener("phoenix.link.click",function(n){var r=n.target.getAttribute("data-confirm");r&&!window.confirm(r)&&n.preventDefault()},!1)})();var St="bds-panel-sidebar",At="bds-panel-assistant-sidebar",si="bds-ui-language",fs="bds-workbench-";var he=(e,t,i)=>Math.max(t,Math.min(e,i)),ps=e=>{if(!e)return null;try{let t=JSON.parse(e);return t&&typeof t=="object"&&!Array.isArray(t)?t:null}catch{return null}},kt=(e,t)=>{let i=e?.closest(".media-thumbnail");i&&(t?i.classList.add("is-loaded"):i.classList.remove("is-loaded"))},ni=e=>{e.querySelectorAll(".media-thumbnail-image").forEach(t=>{kt(t,!!(t.complete&&t.naturalWidth>0))})};var Tt=e=>{let t=document.querySelector(e);if(!t)return 0;let i=Number.parseInt(t.style.width||"0",10);return Number.isNaN(i)?Math.round(t.getBoundingClientRect().width):i},ms=(e,t)=>{let i=document.querySelector(e);i&&(i.style.width=`${t}px`,i.classList.remove("is-hidden"))},ri=(e,t)=>{let i=e==="assistant"?At:St;window.localStorage.setItem(i,String(t))},oi=(e,t,i,s)=>{let n=window.localStorage.getItem(e);if(!n)return t;let r=Number.parseInt(n,10);return Number.isNaN(r)?t:he(r,i,s)};var Ct=e=>String(e||"").toLowerCase(),gs=e=>{let t=e.target?.tagName||null;return e.target?.isContentEditable||["INPUT","TEXTAREA","SELECT"].includes(t)},vs=(e,t)=>{let i=t.metaKey||t.ctrlKey;return Ct(t.key)===Ct(e.key)&&i===!!e.primary&&t.shiftKey===!!e.shift&&t.altKey===!!e.alt},bs=e=>{if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}};var ys=()=>{let e=document.documentElement.style,t=(o,a)=>{e.setProperty("--bds-titlebar-overlay-left",`${o}px`),e.setProperty("--bds-titlebar-overlay-right",`${a}px`)},i=navigator.windowControlsOverlay;if(!i)return t(0,0),()=>{};let s=()=>{if(!i.visible){t(0,0);return}let o=i.getTitlebarAreaRect(),a=window.innerWidth||document.documentElement.clientWidth||o.right,l=Math.max(0,Math.round(o.left)),h=Math.max(0,Math.round(a-o.right));t(l,h)},n=()=>s(),r=()=>s();return s(),i.addEventListener("geometrychange",n),window.addEventListener("resize",r),()=>{i.removeEventListener("geometrychange",n),window.removeEventListener("resize",r)}};var X=(e,t)=>window.getComputedStyle(document.documentElement).getPropertyValue(e).trim()||t,Cr=e=>{if(!e)return null;let t=e.match(/^#([0-9a-f]{6})$/i);if(t)return{r:Number.parseInt(t[1].slice(0,2),16),g:Number.parseInt(t[1].slice(2,4),16),b:Number.parseInt(t[1].slice(4,6),16)};let i=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)/i);return i?{r:Number.parseInt(i[1],10),g:Number.parseInt(i[2],10),b:Number.parseInt(i[3],10)}:null},ie=(e,t)=>{let i=Cr(e);return i?`#${[i.r,i.g,i.b].map(s=>he(s,0,255).toString(16).padStart(2,"0")).join("")}`:t};var ws=null,ce=e=>{let t=ie(X("--vscode-editor-background",X("--vscode-input-background","#1e1e1e")),"#1e1e1e"),i=ie(X("--vscode-editor-foreground","#d4d4d4"),"#d4d4d4"),s=ie(X("--vscode-editorLineNumber-foreground","#858585"),"#858585"),n=ie(X("--vscode-editorLineNumber-activeForeground",i),i),r=ie(X("--vscode-editor-selectionBackground","#264f78"),"#264f78"),o=ie(X("--vscode-editor-inactiveSelectionBackground","#3a3d41"),"#3a3d41"),a=ie(X("--vscode-editorCursor-foreground",i),i),l=ie(X("--vscode-panel-border","#3c3c3c"),"#3c3c3c"),h=ie(X("--vscode-editor-lineHighlightBackground",t),t),d=[t,i,s,n,r,o,a,l].join("|");if(d===ws){e.editor.setTheme("bds-theme");return}e.editor.defineTheme("bds-theme",{base:"vs-dark",inherit:!0,rules:[{token:"keyword.macro",foreground:"C586C0",fontStyle:"bold"},{token:"attribute.name",foreground:"9CDCFE"},{token:"attribute.value",foreground:"CE9178"}],colors:{"editor.background":t,"editor.foreground":i,"editor.lineHighlightBackground":h,"editorCursor.foreground":a,"editor.selectionBackground":r,"editor.inactiveSelectionBackground":o,"editorLineNumber.foreground":s,"editorLineNumber.activeForeground":n,"editorIndentGuide.background1":l,"editorIndentGuide.activeBackground1":i,"editorWidget.border":l,"editorGutter.background":t,focusBorder:l,"input.border":l}}),ws=d,e.editor.setTheme("bds-theme")};var Es=!1,Ss=!1,ai=e=>{Es||(e.languages.register({id:"liquid"}),e.languages.setLanguageConfiguration("liquid",{comments:{blockComment:["{% comment %}","{% endcomment %}"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}]}),e.languages.setMonarchTokensProvider("liquid",{defaultToken:"",tokenizer:{root:[[/\{\{-?/,{token:"delimiter.output",next:"@liquidOutput"}],[/\{%-?\s*comment\b[^%]*-?%\}/,{token:"comment.block",next:"@liquidComment"}],[/\{%-?/,{token:"delimiter.tag",next:"@liquidTag"}],[/<=!]=?|\.|:/,"operator"],[/[a-zA-Z_][\w.-]*/,"identifier"],[/[,:()[\]]/,"delimiter"]],liquidComment:[[/\{%-?\s*endcomment\s*-?%\}/,{token:"comment.block",next:"@pop"}],[/./,"comment.block"]],htmlComment:[[/-->/,{token:"comment",next:"@pop"}],[/./,"comment"]],htmlTag:[[/\/>/,{token:"delimiter.html",next:"@pop"}],[/>/,{token:"delimiter.html",next:"@pop"}],[/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,"attribute.value"],[/[\w:-]+/,"attribute.name"],[/=/,"delimiter"]],scriptTag:[[/>/,{token:"delimiter.html",next:"@pop"}],[/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,"attribute.value"],[/[\w:-]+/,"attribute.name"],[/=/,"delimiter"]],styleTag:[[/>/,{token:"delimiter.html",next:"@pop"}],[/"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/,"attribute.value"],[/[\w:-]+/,"attribute.name"],[/=/,"delimiter"]]}}),Es=!0)},li=e=>{Ss||(e.languages.register({id:"markdown-with-macros"}),e.languages.setMonarchTokensProvider("markdown-with-macros",{defaultToken:"",tokenPostfix:".md",tokenizer:{root:[[/\[\[[a-zA-Z][\w-]*/,{token:"keyword.macro",next:"@macroParams"}],[/^#{1,6}\s.*$/,"keyword.header"],[/^\s*>+/,"string.quote"],[/^\s*[-+*]\s/,"keyword"],[/^\s*\d+\.\s/,"keyword"],[/^\s*```\w*/,{token:"string.code",next:"@codeblock"}],[/\*\*[^*]+\*\*/,"strong"],[/\*[^*]+\*/,"emphasis"],[/__[^_]+__/,"strong"],[/_[^_]+_/,"emphasis"],[/`[^`]+`/,"variable"],[/!?\[[^\]]*\]\([^)]*\)/,"string.link"],[/!?\[[^\]]*\]\[[^\]]*\]/,"string.link"]],macroParams:[[/\]\]/,{token:"keyword.macro",next:"@root"}],[/[a-zA-Z][\w-]*(?=\s*=)/,"attribute.name"],[/=/,"delimiter"],[/"[^"]*"/,"string"],[/\s+/,"white"],[/[^\]"=\s]+/,"attribute.value"]],codeblock:[[/^\s*```\s*$/,{token:"string.code",next:"@root"}],[/.*$/,"variable.source"]]}}),Ss=!0)};var Qe,hi=new Map,_r={editor:"/assets/monaco/editor.worker.js",css:"/assets/monaco/css.worker.js",html:"/assets/monaco/html.worker.js",json:"/assets/monaco/json.worker.js",ts:"/assets/monaco/ts.worker.js"},xr=e=>{switch(e){case"css":case"scss":case"less":return"css";case"html":case"handlebars":case"razor":return"html";case"json":return"json";case"typescript":case"javascript":return"ts";default:return"editor"}},Pr=()=>{globalThis.MonacoEnvironment?.getWorker||(globalThis.MonacoEnvironment={...globalThis.MonacoEnvironment,getWorker(e,t){let i=xr(t);return new Worker(_r[i],{name:t,type:"module"})}})},$e=()=>(Pr(),window.monaco?.editor?(ce(window.monaco),ai(window.monaco),li(window.monaco),Promise.resolve(window.monaco)):Qe||(Qe=import("/assets/monaco.js").then(e=>{if(window.monaco=e,!e.editor)throw new Error("Monaco loaded but monaco.editor is missing");return ce(e),ai(e),li(e),e}).catch(e=>{throw console.error("Monaco load failed:",e),Qe=null,e}),Qe)),As=(e,t)=>{e&&hi.set(e,t)},ks=e=>{e&&hi.delete(e)},Ts=()=>{for(let e of hi.values())if(typeof e?.hasTextFocus=="function"&&e.hasTextFocus())return e;return null},se=(e,t,i=t)=>{if(!e)return!1;let s=typeof e.getAction=="function"?e.getAction(t):null;return s&&typeof s.run=="function"?(s.run(),!0):typeof e.trigger=="function"?(e.trigger("bds-menu",i,null),!0):!1},ci=(e,t)=>{let i=String(e||"working-tree").replace(/^\/+/,"");return`inmemory://model/git-diff/${t}/${i}`};var _t=e=>{let t=he(Math.round(e*100)/100,.5,2);window.__bdsAppZoom=t,document.documentElement.style.zoom=String(t)},ge=e=>{if(typeof document.execCommand!="function")return!1;try{return document.execCommand(e)}catch{return!1}};var Cs=e=>{let t=Ts();switch(e){case"undo":return t?se(t,"undo"):ge("undo");case"redo":return t?se(t,"redo"):ge("redo");case"cut":return t?se(t,"editor.action.clipboardCutAction"):ge("cut");case"copy":return t?se(t,"editor.action.clipboardCopyAction"):ge("copy");case"paste":return t?se(t,"editor.action.clipboardPasteAction"):ge("paste");case"delete":return t?se(t,"deleteLeft"):ge("delete");case"select_all":return t?se(t,"editor.action.selectAll"):ge("selectAll");case"find":return t?se(t,"actions.find"):!1;case"replace":return t?se(t,"editor.action.startFindReplaceAction"):!1;case"reload":case"force_reload":return window.location.reload(),!0;case"reset_zoom":return _t(1),!0;case"zoom_in":return _t((window.__bdsAppZoom||1)+.1),!0;case"zoom_out":return _t((window.__bdsAppZoom||1)-.1),!0;case"toggle_full_screen":return document.fullscreenElement?document.exitFullscreen?.():document.documentElement.requestFullscreen?.(),!0;default:return!1}};var _s=async e=>{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"){await navigator.clipboard.writeText(e);return}if(typeof document>"u"||typeof document.createElement!="function")return;let t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),typeof document.execCommand=="function"&&document.execCommand("copy"),document.body.removeChild(t)};var xs={mounted(){this.shortcuts=bs(this.el.dataset.shortcuts),this.currentProjectId=this.el.dataset.projectId||"",this.syncStoredLayout(),this.syncStoredUiLanguage(),this.destroyOverlaySync=ys(),this.workbenchStorageKey=e=>e?`${fs}${e}`:null,this.restoreStoredWorkbenchSession=()=>{let e=this.el.dataset.projectId||"",t=this.workbenchStorageKey(e);if(!t)return!1;let i=ps(window.localStorage.getItem(t));return i?(this.pushEvent("restore_workbench_session",{session:i}),!0):!1},this.persistWorkbenchSession=()=>{let e=this.el.dataset.projectId||"",t=this.workbenchStorageKey(e),i=this.el.dataset.workbenchSession;!t||!i||window.localStorage.setItem(t,i)},this.handleMouseDown=e=>{let t=e.target.closest("[data-role='resize-handle']");if(!t||!this.el.contains(t))return;e.preventDefault();let i=t.dataset.resize,s=e.clientX,n=i==="assistant"?Tt("[data-testid='assistant-shell']"):Tt("[data-testid='sidebar-shell']"),r=i==="assistant"?280:200,o=i==="assistant"?640:500,a=i==="assistant",l=d=>{let p=a?s-d.clientX:d.clientX-s,m=he(n+p,r,o);ms(i==="assistant"?"[data-testid='assistant-shell']":"[data-testid='sidebar-shell']",m),ri(i,m)},h=d=>{let p=a?s-d.clientX:d.clientX-s,m=he(n+p,r,o);ri(i,m),this.pushEvent("resize_panel",{target:i,width:m}),window.removeEventListener("mousemove",l),window.removeEventListener("mouseup",h)};window.addEventListener("mousemove",l),window.addEventListener("mouseup",h)},this.el.addEventListener("mousedown",this.handleMouseDown),this.handleNativeMenuAction=e=>{let t=e.detail?.action,i=e.detail?.ackId;t&&this.pushEvent("native_menu_action",{action:t},()=>{i&&window.dispatchEvent(new CustomEvent("bds:native-menu-action-ack",{detail:{ackId:i}}))})},this.handleChange=e=>{let t=e.target.closest(".status-bar-language-select");t&&this.el.contains(t)&&window.localStorage.setItem(si,t.value)},this.handleShortcutKeyDown=e=>{gs(e)||!this.shortcuts.find(i=>vs(i,e))||(e.preventDefault(),e.stopPropagation(),this.pushEvent("shortcut",{key:Ct(e.key),meta:e.metaKey,ctrl:e.ctrlKey,alt:e.altKey,shift:e.shiftKey,tag:e.target?.tagName||null,contentEditable:e.target?.isContentEditable||!1}))},this.handleThumbnailLoad=e=>{e.target instanceof HTMLImageElement&&e.target.classList.contains("media-thumbnail-image")&&kt(e.target,!0)},this.handleThumbnailError=e=>{e.target instanceof HTMLImageElement&&e.target.classList.contains("media-thumbnail-image")&&kt(e.target,!1)},this.handleEvent("menu-runtime-command",({action:e})=>{e&&Cs(String(e))}),this.handleEvent("url-state",({path:e})=>{e&&window.location.pathname+window.location.search!==e&&window.history.replaceState({},"",e)}),this.handleEvent("clipboard",({text:e})=>{_s(e||"")}),window.addEventListener("bds:native-menu-action",this.handleNativeMenuAction),window.addEventListener("keydown",this.handleShortcutKeyDown,!0),this.el.addEventListener("load",this.handleThumbnailLoad,!0),this.el.addEventListener("error",this.handleThumbnailError,!0),this.el.addEventListener("change",this.handleChange),ni(this.el),this.restoreStoredWorkbenchSession(),this.pushEvent("shell_ready",{})},updated(){let e=this.el.dataset.projectId||"";e!==this.currentProjectId&&(this.currentProjectId=e,this.restoreStoredWorkbenchSession())||(ni(this.el),this.persistWorkbenchSession())},destroyed(){this.el.removeEventListener("mousedown",this.handleMouseDown),this.el.removeEventListener("load",this.handleThumbnailLoad,!0),this.el.removeEventListener("error",this.handleThumbnailError,!0),this.el.removeEventListener("change",this.handleChange),window.removeEventListener("bds:native-menu-action",this.handleNativeMenuAction),window.removeEventListener("keydown",this.handleShortcutKeyDown,!0),this.destroyOverlaySync&&this.destroyOverlaySync()},syncStoredLayout(){this.pushEvent("sync_layout",{sidebar_width:oi(St,Tt("[data-testid='sidebar-shell']"),200,500),assistant_sidebar_width:oi(At,360,280,640)})},syncStoredUiLanguage(){let e=window.localStorage.getItem(si);e&&this.pushEvent("sync_ui_language",{language:e})}};var Ps={mounted(){this.handleDblClick=e=>{let t=e.target.closest("[data-testid='sidebar-open-item']");!t||!this.el.contains(t)||this.pushEvent("pin_sidebar_item",{route:t.dataset.route,id:t.dataset.itemId,title:t.dataset.openTitle||"",subtitle:t.dataset.openSubtitle||""})},this.el.addEventListener("dblclick",this.handleDblClick)},destroyed(){this.el.removeEventListener("dblclick",this.handleDblClick)}};var Rs=e=>({mounted(){this.lastTargetId=null,this.scrollToSelectedSection()},updated(){this.scrollToSelectedSection()},scrollToSelectedSection(){let t=this.el.dataset[e];!t||t===this.lastTargetId||(this.lastTargetId=t,window.requestAnimationFrame(()=>{let i=document.getElementById(t);i&&this.el.contains(i)&&i.scrollIntoView({block:"start",behavior:"smooth"})}))}}),Ls=Rs("settingsScrollTarget"),Is=Rs("tagsScrollTarget");var Ds={mounted(){this.stickToBottom=!0,this.scrollContainer=null,this._enterKeyHandled=!1,this._prevInputValue="",this.autoResize=()=>{let e=this.el.querySelector(".chat-input");if(!e)return;let t=getComputedStyle(e),i=parseFloat(t.getPropertyValue("--chat-input-min-height"))||20,s=parseFloat(t.getPropertyValue("--chat-input-max-height"))||160;if(e.rows=1,e.style.minHeight=`${i}px`,e.value.trim()===""){e.style.height=`${i}px`,e.style.maxHeight=`${i}px`,e.style.overflowY="hidden";return}e.style.maxHeight=`${s}px`,e.style.height="0px";let n=Math.min(Math.max(e.scrollHeight,i),s);e.style.height=`${n}px`,e.style.overflowY=n>=s?"auto":"hidden"},this.syncScrollContainer=()=>{let e=this.el.querySelector(".chat-messages");e!==this.scrollContainer&&(this.scrollContainer&&this.scrollContainer.removeEventListener("scroll",this.handleScroll),this.scrollContainer=e,this.scrollContainer&&this.scrollContainer.addEventListener("scroll",this.handleScroll))},this.scrollToBottom=(e=!1)=>{this.scrollContainer&&(e||this.stickToBottom)&&(this.scrollContainer.scrollTop=this.scrollContainer.scrollHeight)},this.syncExpandedSurfaces=()=>{this.el.querySelectorAll(".chat-inline-surface[data-expanded='true']").forEach(e=>{e.open=!0})},this.surfaceObserver=new MutationObserver(()=>{this.syncExpandedSurfaces()}),this.handleScroll=()=>{if(!this.scrollContainer){this.stickToBottom=!0;return}let e=this.scrollContainer.scrollHeight-this.scrollContainer.scrollTop-this.scrollContainer.clientHeight;this.stickToBottom=e<48},this._submitChat=()=>{let e=this.el.querySelector(".chat-input-wrapper");if(e&&typeof e.requestSubmit=="function")e.requestSubmit();else{let t=this.el.querySelector("[data-testid='chat-send-button']");t&&t.click()}},this.handleInput=e=>{if(!e.target.closest(".chat-input"))return;let t=e.target;if(!this._enterKeyHandled&&t.value.includes(` `)&&!this._prevInputValue.includes(` -`)){t.value=t.value.replace(/\n/g,""),this._prevInputValue=t.value,this.stickToBottom=!0,this.autoResize(),this._submitChat();return}this._enterKeyHandled=!1,this._prevInputValue=t.value,this.stickToBottom=!0,this.autoResize()},this.handleKeyDown=e=>{e.target.closest(".chat-input")&&e.key==="Enter"&&!e.shiftKey&&!e.isComposing&&(e.preventDefault(),this._enterKeyHandled=!0,this._submitChat())},this.el.addEventListener("input",this.handleInput),this.el.addEventListener("keydown",this.handleKeyDown),this.syncScrollContainer(),this.syncExpandedSurfaces(),this.surfaceObserver.observe(this.el,{childList:!0,subtree:!0}),this.autoResize(),window.requestAnimationFrame(()=>this.scrollToBottom(!0))},updated(){this.syncScrollContainer(),this.syncExpandedSurfaces(),this.autoResize(),window.requestAnimationFrame(()=>this.scrollToBottom())},destroyed(){this.surfaceObserver.disconnect(),this.el.removeEventListener("input",this.handleInput),this.el.removeEventListener("keydown",this.handleKeyDown),this.scrollContainer&&this.scrollContainer.removeEventListener("scroll",this.handleScroll)}};var Ds={mounted(){this._onClickAway=e=>{this.el.contains(e.target)||this.el.querySelector(".colour-picker-popover")?.classList.add("hidden")},document.addEventListener("mousedown",this._onClickAway),this._setupCustomInput()},updated(){this._setupCustomInput()},destroyed(){document.removeEventListener("mousedown",this._onClickAway)},_setupCustomInput(){let e=this.el.querySelector(".colour-picker-custom input");if(!e||e._cpBound)return;e._cpBound=!0;let t=()=>{let i=e.value.trim();if(i&&!i.startsWith("#")&&(i="#"+i),/^#[0-9a-fA-F]{6}$/.test(i)){let s=this.el.dataset.pickEvent;this.pushEventTo(this.el.dataset.target,s,{color:i}),this.el.querySelector(".colour-picker-popover")?.classList.add("hidden")}};e.addEventListener("keydown",i=>{i.key==="Enter"&&(i.preventDefault(),t())}),e.addEventListener("blur",t)}};var Os={mounted(){this.dragItemId=null,this.dragSourceEl=null,this.dropTargetEl=null,this.dropPosition=null,this.clearDropTarget=()=>{this.dropTargetEl&&this.dropTargetEl.classList.remove("is-drop-before","is-drop-after","is-drop-inside"),this.dropTargetEl=null,this.dropPosition=null},this.setDropTarget=(e,t)=>{this.dropTargetEl===e&&this.dropPosition===t||(this.clearDropTarget(),this.dropTargetEl=e,this.dropPosition=t,e.classList.add(`is-drop-${t}`))},this.handleDragStart=e=>{let t=e.target.closest("[data-menu-drag-handle='true']"),i=e.target.closest("[data-menu-item-id]");!t||!i||!this.el.contains(i)||(this.dragItemId=i.dataset.menuItemId||null,this.dragSourceEl=i,i.classList.add("is-dragging"),e.dataTransfer&&(e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",this.dragItemId||"")))},this.handleDragOver=e=>{let t=e.target.closest("[data-menu-item-id]");if(!this.dragItemId||!t||!this.el.contains(t)){this.clearDropTarget();return}let i=t.dataset.menuItemId||"";if(!i||i===this.dragItemId){this.clearDropTarget();return}e.preventDefault();let s=t.getBoundingClientRect(),n=e.clientY-s.top,r=t.dataset.menuCanDropInside==="true",o=s.height*.3,a=s.height*.7,l=r&&n>=o&&n<=a?"inside":n{let t=e.target.closest("[data-menu-item-id]");if(!this.dragItemId||!t||!this.el.contains(t)||!this.dropPosition){this.clearDropTarget();return}e.preventDefault(),this.pushEvent("menu_editor_drop_item",{drag_item_id:this.dragItemId,target_item_id:t.dataset.menuItemId,position:this.dropPosition}),this.clearDropTarget()},this.handleDragLeave=e=>{let t=e.relatedTarget;this.dropTargetEl&&(!t||!this.dropTargetEl.contains(t))&&this.clearDropTarget()},this.handleDragEnd=()=>{this.dragSourceEl&&this.dragSourceEl.classList.remove("is-dragging"),this.dragItemId=null,this.dragSourceEl=null,this.clearDropTarget()},this.el.addEventListener("dragstart",this.handleDragStart),this.el.addEventListener("dragover",this.handleDragOver),this.el.addEventListener("drop",this.handleDrop),this.el.addEventListener("dragleave",this.handleDragLeave),this.el.addEventListener("dragend",this.handleDragEnd)},destroyed(){this.el.removeEventListener("dragstart",this.handleDragStart),this.el.removeEventListener("dragover",this.handleDragOver),this.el.removeEventListener("drop",this.handleDrop),this.el.removeEventListener("dragleave",this.handleDragLeave),this.el.removeEventListener("dragend",this.handleDragEnd)}};var Pr={ArrowLeft:"cursorLeft",ArrowRight:"cursorRight",ArrowUp:"cursorUp",ArrowDown:"cursorDown"},Rr=()=>{let e=globalThis.navigator?.userAgent||"";return e.includes("AppleWebKit")&&!e.includes("Chrome")&&!e.includes("Chromium")},Lr=e=>e instanceof HTMLTextAreaElement&&e.classList.contains("inputarea"),Ir=e=>{if(e?.altKey||e?.ctrlKey||e?.metaKey)return null;let t=Pr[e?.key];return t?e.shiftKey?`${t}Select`:t:null},Dr=(e,t)=>{let i=e.getSelections?e.getSelections():null;e.setValue(t),i&&i.length>0&&e.setSelections&&e.setSelections(i)},Or=(e,t)=>{if(!e||!Lr(t.target))return!1;let i=Ir(t);return i?(t.preventDefault(),t.stopPropagation(),e.trigger("keyboard",i,{source:"keyboard"}),!0):!1},Ms={mounted(){this.textarea=document.getElementById(this.el.dataset.monacoInputId)||this.el.querySelector("textarea"),this.host=this.el.querySelector(".monaco-editor-instance"),this.language=this.el.dataset.monacoLanguage||"plaintext",this.wordWrap=this.el.dataset.monacoWordWrap||"off",this.editorId=this.el.dataset.monacoEditorId||"",this.insertEvent=this.el.dataset.monacoInsertEvent||"",this.syncTimer=null,this.isApplyingRemoteUpdate=!1,this.lastKnownValue=this.textarea?.value||"",this.handleWebKitTextAreaArrowKey=e=>{Or(this.editor,e)},this.syncEditorFromTextarea=()=>{if(this.textarea=document.getElementById(this.el.dataset.monacoInputId)||this.el.querySelector("textarea"),!this.textarea||!this.editor)return;let e=this.textarea.value||"";if(e!==this.lastKnownValue&&!this.editor.hasTextFocus()){if(this.editor.getValue()!==e){this.isApplyingRemoteUpdate=!0;try{Dr(this.editor,e)}finally{this.isApplyingRemoteUpdate=!1}}this.lastKnownValue=e}},this.layoutEditorSoon=()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this.editor&&this.editor.layout()})})},this.waitForMonacoVisibleSize=()=>new Promise(e=>{let t=!1,i=0,s=()=>{let o=this.host?.getBoundingClientRect();return!!(o&&o.width>0&&o.height>0)},n=()=>{t||(t=!0,this.visibleSizeObserver?.disconnect(),this.visibleSizeObserver=null,e())},r=()=>{if(s()||i>=20){n();return}i+=1,window.requestAnimationFrame(r)};if(s()){n();return}window.ResizeObserver&&this.host&&(this.visibleSizeObserver=new ResizeObserver(()=>{s()&&n()}),this.visibleSizeObserver.observe(this.host)),window.requestAnimationFrame(r)}),this.queueSync=()=>{!this.textarea||!this.editor||(window.clearTimeout(this.syncTimer),this.syncTimer=window.setTimeout(()=>{if(!this.textarea||!this.editor)return;let e=this.editor.getValue();this.textarea.value!==e&&(this.lastKnownValue=e,this.textarea.value=e,this.textarea.dispatchEvent(new Event("input",{bubbles:!0})))},120))},this.dropEvent=this.el.dataset.monacoDropEvent||"",this.dropPostId=this.el.dataset.monacoDropPostId||"",this.handleDragOver=e=>{e.dataTransfer&&Array.from(e.dataTransfer.types||[]).includes("Files")&&(e.preventDefault(),e.dataTransfer.dropEffect="copy")},this.handleDrop=e=>{if(!this.dropEvent||!e.dataTransfer)return;let i=Array.from(e.dataTransfer.files||[]).filter(s=>(s.type||"").startsWith("image/")&&s.path);i.length!==0&&(e.preventDefault(),e.stopPropagation(),i.forEach(s=>{this.pushEvent(this.dropEvent,{"post-id":this.dropPostId,path:s.path})}))},this.handleInsert=({id:e,content:t})=>{if(!this.editor||!t||String(e)!==String(this.editorId))return;let i=this.editor.getModel(),s=this.editor.getSelection();if(!i||!s)return;let n=this.editor.getValue(),r=i.getOffsetAt(s.getStartPosition()),o=i.getOffsetAt(s.getEndPosition()),a=n.slice(0,r),l=n.slice(o),h=a!==""&&!a.endsWith(` +`)){t.value=t.value.replace(/\n/g,""),this._prevInputValue=t.value,this.stickToBottom=!0,this.autoResize(),this._submitChat();return}this._enterKeyHandled=!1,this._prevInputValue=t.value,this.stickToBottom=!0,this.autoResize()},this.handleKeyDown=e=>{e.target.closest(".chat-input")&&e.key==="Enter"&&!e.shiftKey&&!e.isComposing&&(e.preventDefault(),this._enterKeyHandled=!0,this._submitChat())},this.el.addEventListener("input",this.handleInput),this.el.addEventListener("keydown",this.handleKeyDown),this.syncScrollContainer(),this.syncExpandedSurfaces(),this.surfaceObserver.observe(this.el,{childList:!0,subtree:!0}),this.autoResize(),window.requestAnimationFrame(()=>this.scrollToBottom(!0))},updated(){this.syncScrollContainer(),this.syncExpandedSurfaces(),this.autoResize(),window.requestAnimationFrame(()=>this.scrollToBottom())},destroyed(){this.surfaceObserver.disconnect(),this.el.removeEventListener("input",this.handleInput),this.el.removeEventListener("keydown",this.handleKeyDown),this.scrollContainer&&this.scrollContainer.removeEventListener("scroll",this.handleScroll)}};var Os={mounted(){this._onClickAway=e=>{this.el.contains(e.target)||this.el.querySelector(".colour-picker-popover")?.classList.add("hidden")},document.addEventListener("mousedown",this._onClickAway),this._setupCustomInput()},updated(){this._setupCustomInput()},destroyed(){document.removeEventListener("mousedown",this._onClickAway)},_setupCustomInput(){let e=this.el.querySelector(".colour-picker-custom input");if(!e||e._cpBound)return;e._cpBound=!0;let t=()=>{let i=e.value.trim();if(i&&!i.startsWith("#")&&(i="#"+i),/^#[0-9a-fA-F]{6}$/.test(i)){let s=this.el.dataset.pickEvent;this.pushEventTo(this.el.dataset.target,s,{color:i}),this.el.querySelector(".colour-picker-popover")?.classList.add("hidden")}};e.addEventListener("keydown",i=>{i.key==="Enter"&&(i.preventDefault(),t())}),e.addEventListener("blur",t)}};var Ms={mounted(){this.dragItemId=null,this.dragSourceEl=null,this.dropTargetEl=null,this.dropPosition=null,this.clearDropTarget=()=>{this.dropTargetEl&&this.dropTargetEl.classList.remove("is-drop-before","is-drop-after","is-drop-inside"),this.dropTargetEl=null,this.dropPosition=null},this.setDropTarget=(e,t)=>{this.dropTargetEl===e&&this.dropPosition===t||(this.clearDropTarget(),this.dropTargetEl=e,this.dropPosition=t,e.classList.add(`is-drop-${t}`))},this.handleDragStart=e=>{let t=e.target.closest("[data-menu-drag-handle='true']"),i=e.target.closest("[data-menu-item-id]");!t||!i||!this.el.contains(i)||(this.dragItemId=i.dataset.menuItemId||null,this.dragSourceEl=i,i.classList.add("is-dragging"),e.dataTransfer&&(e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("text/plain",this.dragItemId||"")))},this.handleDragOver=e=>{let t=e.target.closest("[data-menu-item-id]");if(!this.dragItemId||!t||!this.el.contains(t)){this.clearDropTarget();return}let i=t.dataset.menuItemId||"";if(!i||i===this.dragItemId){this.clearDropTarget();return}e.preventDefault();let s=t.getBoundingClientRect(),n=e.clientY-s.top,r=t.dataset.menuCanDropInside==="true",o=s.height*.3,a=s.height*.7,l=r&&n>=o&&n<=a?"inside":n{let t=e.target.closest("[data-menu-item-id]");if(!this.dragItemId||!t||!this.el.contains(t)||!this.dropPosition){this.clearDropTarget();return}e.preventDefault(),this.pushEvent("menu_editor_drop_item",{drag_item_id:this.dragItemId,target_item_id:t.dataset.menuItemId,position:this.dropPosition}),this.clearDropTarget()},this.handleDragLeave=e=>{let t=e.relatedTarget;this.dropTargetEl&&(!t||!this.dropTargetEl.contains(t))&&this.clearDropTarget()},this.handleDragEnd=()=>{this.dragSourceEl&&this.dragSourceEl.classList.remove("is-dragging"),this.dragItemId=null,this.dragSourceEl=null,this.clearDropTarget()},this.el.addEventListener("dragstart",this.handleDragStart),this.el.addEventListener("dragover",this.handleDragOver),this.el.addEventListener("drop",this.handleDrop),this.el.addEventListener("dragleave",this.handleDragLeave),this.el.addEventListener("dragend",this.handleDragEnd)},destroyed(){this.el.removeEventListener("dragstart",this.handleDragStart),this.el.removeEventListener("dragover",this.handleDragOver),this.el.removeEventListener("drop",this.handleDrop),this.el.removeEventListener("dragleave",this.handleDragLeave),this.el.removeEventListener("dragend",this.handleDragEnd)}};var Rr={ArrowLeft:"cursorLeft",ArrowRight:"cursorRight",ArrowUp:"cursorUp",ArrowDown:"cursorDown"},Lr=()=>{let e=globalThis.navigator?.userAgent||"";return e.includes("AppleWebKit")&&!e.includes("Chrome")&&!e.includes("Chromium")},Ir=e=>e instanceof HTMLTextAreaElement&&e.classList.contains("inputarea"),Dr=e=>{if(e?.altKey||e?.ctrlKey||e?.metaKey)return null;let t=Rr[e?.key];return t?e.shiftKey?`${t}Select`:t:null},Or=(e,t)=>{let i=e.getSelections?e.getSelections():null;e.setValue(t),i&&i.length>0&&e.setSelections&&e.setSelections(i)},Mr=(e,t)=>{if(!e||!Ir(t.target))return!1;let i=Dr(t);return i?(t.preventDefault(),t.stopPropagation(),e.trigger("keyboard",i,{source:"keyboard"}),!0):!1},Hs={mounted(){this.textarea=document.getElementById(this.el.dataset.monacoInputId)||this.el.querySelector("textarea"),this.host=this.el.querySelector(".monaco-editor-instance"),this.language=this.el.dataset.monacoLanguage||"plaintext",this.wordWrap=this.el.dataset.monacoWordWrap||"off",this.editorId=this.el.dataset.monacoEditorId||"",this.insertEvent=this.el.dataset.monacoInsertEvent||"",this.syncTimer=null,this.isApplyingRemoteUpdate=!1,this.lastKnownValue=this.textarea?.value||"",this.handleWebKitTextAreaArrowKey=e=>{Mr(this.editor,e)},this.syncEditorFromTextarea=()=>{if(this.textarea=document.getElementById(this.el.dataset.monacoInputId)||this.el.querySelector("textarea"),!this.textarea||!this.editor)return;let e=this.textarea.value||"";if(e!==this.lastKnownValue&&!this.editor.hasTextFocus()){if(this.editor.getValue()!==e){this.isApplyingRemoteUpdate=!0;try{Or(this.editor,e)}finally{this.isApplyingRemoteUpdate=!1}}this.lastKnownValue=e}},this.layoutEditorSoon=()=>{window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>{this.editor&&this.editor.layout()})})},this.waitForMonacoVisibleSize=()=>new Promise(e=>{let t=!1,i=0,s=()=>{let o=this.host?.getBoundingClientRect();return!!(o&&o.width>0&&o.height>0)},n=()=>{t||(t=!0,this.visibleSizeObserver?.disconnect(),this.visibleSizeObserver=null,e())},r=()=>{if(s()||i>=20){n();return}i+=1,window.requestAnimationFrame(r)};if(s()){n();return}window.ResizeObserver&&this.host&&(this.visibleSizeObserver=new ResizeObserver(()=>{s()&&n()}),this.visibleSizeObserver.observe(this.host)),window.requestAnimationFrame(r)}),this.queueSync=()=>{!this.textarea||!this.editor||(window.clearTimeout(this.syncTimer),this.syncTimer=window.setTimeout(()=>{if(!this.textarea||!this.editor)return;let e=this.editor.getValue();this.textarea.value!==e&&(this.lastKnownValue=e,this.textarea.value=e,this.textarea.dispatchEvent(new Event("input",{bubbles:!0})))},120))},this.dropEvent=this.el.dataset.monacoDropEvent||"",this.dropPostId=this.el.dataset.monacoDropPostId||"",this.handleDragOver=e=>{e.dataTransfer&&Array.from(e.dataTransfer.types||[]).includes("Files")&&(e.preventDefault(),e.dataTransfer.dropEffect="copy")},this.handleDrop=e=>{if(!this.dropEvent||!e.dataTransfer)return;let i=Array.from(e.dataTransfer.files||[]).filter(s=>(s.type||"").startsWith("image/")&&s.path);i.length!==0&&(e.preventDefault(),e.stopPropagation(),i.forEach(s=>{this.pushEvent(this.dropEvent,{"post-id":this.dropPostId,path:s.path})}))},this.handleInsert=({id:e,content:t})=>{if(!this.editor||!t||String(e)!==String(this.editorId))return;let i=this.editor.getModel(),s=this.editor.getSelection();if(!i||!s)return;let n=this.editor.getValue(),r=i.getOffsetAt(s.getStartPosition()),o=i.getOffsetAt(s.getEndPosition()),a=n.slice(0,r),l=n.slice(o),h=a!==""&&!a.endsWith(` `)?` `:"",d=l!==""&&!t.endsWith(` `)?` -`:"",p=`${h}${t}${d}`;this.editor.executeEdits("bds-insert-content",[{range:s,text:p,forceMoveMarkers:!0}]),this.editor.focus()},$e().then(async e=>{!this.host||!this.textarea||(await this.waitForMonacoVisibleSize(),ce(e),this.editor=e.editor.create(this.host,{value:this.textarea.value||"",language:this.language,theme:"bds-theme",automaticLayout:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:this.wordWrap,lineNumbers:"on",lineNumbersMinChars:3,fontSize:14,fontFamily:"'Cascadia Code', 'Consolas', 'Courier New', monospace",padding:{top:12,bottom:12},roundedSelection:!1,renderLineHighlight:"line",formatOnPaste:!0,cursorStyle:"line",cursorBlinking:"smooth",quickSuggestions:this.language!=="markdown-with-macros",tabSize:2,insertSpaces:!0}),As(this.editorId||this.el.id,this.editor),e.editor.setTheme("bds-theme"),this.syncEditorFromTextarea(),this.layoutEditorSoon(),this.changeSubscription=this.editor.onDidChangeModelContent(()=>{this.isApplyingRemoteUpdate||this.queueSync()}),this.insertEvent&&this.handleEvent(this.insertEvent,this.handleInsert),this.dropEvent&&(this.el.addEventListener("dragover",this.handleDragOver),this.el.addEventListener("drop",this.handleDrop)),Rr()&&this.host.addEventListener("keydown",this.handleWebKitTextAreaArrowKey,!0))}).catch(e=>{console.error("Failed to load Monaco editor",e)})},updated(){this.textarea=document.getElementById(this.el.dataset.monacoInputId)||this.el.querySelector("textarea"),this.host=this.el.querySelector(".monaco-editor-instance"),this.language=this.el.dataset.monacoLanguage||this.language||"plaintext",this.wordWrap=this.el.dataset.monacoWordWrap||this.wordWrap||"off",!(!this.editor||!this.textarea)&&($e().then(e=>{ce(e),e.editor.setTheme("bds-theme"),this.editor.getModel()?.getLanguageId()!==this.language&&e.editor.setModelLanguage(this.editor.getModel(),this.language),this.editor.updateOptions({wordWrap:this.wordWrap})}),this.syncEditorFromTextarea(),this.layoutEditorSoon())},destroyed(){window.clearTimeout(this.syncTimer),this.visibleSizeObserver?.disconnect(),this.changeSubscription?.dispose(),this.dropEvent&&(this.el.removeEventListener("dragover",this.handleDragOver),this.el.removeEventListener("drop",this.handleDrop)),this.host?.removeEventListener("keydown",this.handleWebKitTextAreaArrowKey,!0),ks(this.editorId||this.el.id),this.editor?.dispose()}};var Hs={mounted(){this.host=this.el.querySelector(".monaco-diff-editor-instance"),this.originalInput=this.el.querySelector(".monaco-diff-original"),this.modifiedInput=this.el.querySelector(".monaco-diff-modified"),this.filePath=this.el.dataset.monacoDiffFilePath||"working-tree",this.language=this.el.dataset.monacoDiffLanguage||"plaintext",this.viewStyle=this.el.dataset.monacoDiffViewStyle||"inline",this.wordWrap=this.el.dataset.monacoDiffWordWrap||"off",this.hideUnchanged=this.el.dataset.monacoDiffHideUnchanged==="true",this.readValues=()=>({original:this.originalInput?.value||"",modified:this.modifiedInput?.value||""}),this.applyDataset=()=>{this.filePath=this.el.dataset.monacoDiffFilePath||"working-tree",this.language=this.el.dataset.monacoDiffLanguage||"plaintext",this.viewStyle=this.el.dataset.monacoDiffViewStyle||"inline",this.wordWrap=this.el.dataset.monacoDiffWordWrap||"off",this.hideUnchanged=this.el.dataset.monacoDiffHideUnchanged==="true"},this.setModels=e=>{let t=this.readValues();this.originalModel?.dispose(),this.modifiedModel?.dispose(),this.originalModel=e.editor.createModel(t.original,this.language,e.Uri.parse(ci(this.filePath,"original"))),this.modifiedModel=e.editor.createModel(t.modified,this.language,e.Uri.parse(ci(this.filePath,"modified"))),this.editor.setModel({original:this.originalModel,modified:this.modifiedModel}),this.lastFilePath=this.filePath},$e().then(e=>{this.host&&(ce(e),this.editor=e.editor.createDiffEditor(this.host,{theme:"bds-theme",automaticLayout:!0,readOnly:!0,renderSideBySide:this.viewStyle==="side-by-side",minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"on",diffCodeLens:!1,originalEditable:!1,wordWrap:this.wordWrap,hideUnchangedRegions:{enabled:this.hideUnchanged},ignoreTrimWhitespace:!1}),this.setModels(e))}).catch(e=>{console.error("Failed to load Monaco diff editor",e)})},updated(){this.host=this.el.querySelector(".monaco-diff-editor-instance"),this.originalInput=this.el.querySelector(".monaco-diff-original"),this.modifiedInput=this.el.querySelector(".monaco-diff-modified"),this.applyDataset(),this.editor&&$e().then(e=>{if(ce(e),e.editor.setTheme("bds-theme"),this.editor.updateOptions({renderSideBySide:this.viewStyle==="side-by-side",wordWrap:this.wordWrap,hideUnchangedRegions:{enabled:this.hideUnchanged}}),this.lastFilePath!==this.filePath){this.setModels(e);return}let t=this.readValues();this.originalModel&&this.originalModel.getLanguageId()!==this.language&&e.editor.setModelLanguage(this.originalModel,this.language),this.modifiedModel&&this.modifiedModel.getLanguageId()!==this.language&&e.editor.setModelLanguage(this.modifiedModel,this.language),this.originalModel&&this.originalModel.getValue()!==t.original&&this.originalModel.setValue(t.original),this.modifiedModel&&this.modifiedModel.getValue()!==t.modified&&this.modifiedModel.setValue(t.modified)})},destroyed(){this.originalModel?.dispose(),this.modifiedModel?.dispose(),this.editor?.dispose()}};function Mr(e,t){e.indexOf(t)===-1&&e.push(t)}var qs=(e,t,i)=>Math.min(Math.max(i,e),t),z={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Pt=e=>typeof e=="number",Ue=e=>Array.isArray(e)&&!Pt(e[0]),Hr=(e,t,i)=>{let s=t-e;return((i-e)%s+s)%s+e};function Nr(e,t){return Ue(e)?e[Hr(0,e.length,t)]:e}var Ks=(e,t,i)=>-i*e+i*t+e,Js=()=>{},ve=e=>e,wi=(e,t,i)=>t-e===0?1:(i-e)/(t-e);function zs(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let n=wi(0,t,s);e.push(Ks(i,1,n))}}function $r(e){let t=[0];return zs(t,e-1),t}function Fr(e,t=$r(e.length),i=ve){let s=e.length,n=s-t.length;return n>0&&zs(t,n),r=>{let o=0;for(;oArray.isArray(e)&&Pt(e[0]),mi=e=>typeof e=="object"&&!!e.createAnimation,je=e=>typeof e=="function",Ur=e=>typeof e=="string",tt={ms:e=>e*1e3,s:e=>e/1e3},Gs=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e,jr=1e-7,Br=12;function Vr(e,t,i,s,n){let r,o,a=0;do o=t+(i-t)/2,r=Gs(o,s,n)-e,r>0?i=o:t=o;while(Math.abs(r)>jr&&++aVr(r,0,1,e,i);return r=>r===0||r===1?r:Gs(n(r),t,s)}var Wr=(e,t="end")=>i=>{i=t==="end"?Math.min(i,.999):Math.max(i,.001);let s=i*e,n=t==="end"?Math.floor(s):Math.ceil(s);return qs(0,1,n/e)},Ns={ease:et(.25,.1,.25,1),"ease-in":et(.42,0,1,1),"ease-in-out":et(.42,0,.58,1),"ease-out":et(0,0,.58,1)},qr=/\((.*?)\)/;function $s(e){if(je(e))return e;if(Xs(e))return et(...e);if(Ns[e])return Ns[e];if(e.startsWith("steps")){let t=qr.exec(e);if(t){let i=t[1].split(",");return Wr(parseFloat(i[0]),i[1].trim())}}return ve}var Ys=class{constructor(e,t=[0,1],{easing:i,duration:s=z.duration,delay:n=z.delay,endDelay:r=z.endDelay,repeat:o=z.repeat,offset:a,direction:l="normal",autoplay:h=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=ve,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((p,m)=>{this.resolve=p,this.reject=m}),i=i||z.easing,mi(i)){let p=i.createAnimation(t);i=p.easing,t=p.keyframes||t,s=p.duration||s}this.repeat=o,this.easing=Ue(i)?ve:$s(i),this.updateDuration(s);let d=Fr(t,a,Ue(i)?i.map($s):ve);this.tick=p=>{var m;n=n;let g=0;this.pauseTime!==void 0?g=this.pauseTime:g=(p-this.startTime)*this.rate,this.t=g,g/=1e3,g=Math.max(g-n,0),this.playState==="finished"&&this.pauseTime===void 0&&(g=this.totalDuration);let u=g/this.duration,v=Math.floor(u),y=u%1;!y&&u>=1&&(y=1),y===1&&v--;let L=v%2;(l==="reverse"||l==="alternate"&&L||l==="alternate-reverse"&&!L)&&(y=1-y);let $=g>=this.totalDuration?1:Math.min(y,1),w=d(this.easing($));e(w),this.pauseTime===void 0&&(this.playState==="finished"||g>=this.totalDuration+r)?(this.playState="finished",(m=this.resolve)===null||m===void 0||m.call(this,w)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},h&&this.play()}play(){let e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}},Kr=function(){},gi=function(){};Kr=function(e,t){!e&&typeof console<"u"&&console.warn(t)},gi=function(e,t){if(!e)throw new Error(t)};var Jr=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}},di=new WeakMap;function Zs(e){return di.has(e)||di.set(e,{transforms:[],values:new Map}),di.get(e)}function zr(e,t){return e.has(t)||e.set(t,new Jr),e.get(t)}var Xr=["","X","Y","Z"],Gr=["translate","scale","rotate","skew"],Rt={x:"translateX",y:"translateY",z:"translateZ"},Fs={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},Yr={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:Fs,scale:{syntax:"",initialValue:1,toDefaultUnit:ve},skew:Fs},it=new Map,Ei=e=>`--motion-${e}`,Lt=["x","y","z"];Gr.forEach(e=>{Xr.forEach(t=>{Lt.push(e+t),it.set(Ei(e+t),Yr[e])})});var Zr=(e,t)=>Lt.indexOf(e)-Lt.indexOf(t),Qr=new Set(Lt),Qs=e=>Qr.has(e),eo=(e,t)=>{Rt[t]&&(t=Rt[t]);let{transforms:i}=Zs(e);Mr(i,t),e.style.transform=to(i)},to=e=>e.sort(Zr).reduce(io,"").trim(),io=(e,t)=>`${e} ${t}(var(${Ei(t)}))`,vi=e=>e.startsWith("--"),Us=new Set;function so(e){if(!Us.has(e)){Us.add(e);try{let{syntax:t,initialValue:i}=it.has(e)?it.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:i})}catch{}}}var ui=(e,t)=>document.createElement("div").animate(e,t),js={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ui({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ui({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{ui({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},fi={},Fe={};for(let e in js)Fe[e]=()=>(fi[e]===void 0&&(fi[e]=js[e]()),fi[e]);var no=.015,ro=(e,t)=>{let i="",s=Math.round(t/no);for(let n=0;nje(e)?Fe.linearEasing()?`linear(${ro(e,t)})`:z.easing:Xs(e)?oo(e):e,oo=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`;function ao(e,t){for(let i=0;iArray.isArray(e)?e:[e];function bi(e){return Rt[e]&&(e=Rt[e]),Qs(e)?Ei(e):e}var xt={get:(e,t)=>{t=bi(t);let i=vi(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!i&&i!==0){let s=it.get(t);s&&(i=s.initialValue)}return i},set:(e,t,i)=>{t=bi(t),vi(t)?e.style.setProperty(t,i):e.style[t]=i}};function en(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function ho(e,t){var i;let s=t?.toDefaultUnit||ve,n=e[e.length-1];if(Ur(n)){let r=((i=n.match(/(-?[\d.]+)([a-z%]*)/))===null||i===void 0?void 0:i[2])||"";r&&(s=o=>o+r)}return s}function co(){return window.__MOTION_DEV_TOOLS_RECORD}function uo(e,t,i,s={},n){let r=co(),o=s.record!==!1&&r,a,{duration:l=z.duration,delay:h=z.delay,endDelay:d=z.endDelay,repeat:p=z.repeat,easing:m=z.easing,persist:g=!1,direction:u,offset:v,allowWebkitAcceleration:y=!1,autoplay:L=!0}=s,$=Zs(e),w=Qs(t),k=Fe.waapi();w&&eo(e,t);let T=bi(t),H=zr($.values,T),f=it.get(T);return en(H.animation,!(mi(m)&&H.generator)&&s.record!==!1),()=>{let b=()=>{var E,q;return(q=(E=xt.get(e,T))!==null&&E!==void 0?E:f?.initialValue)!==null&&q!==void 0?q:0},C=ao(lo(i),b),j=ho(C,f);if(mi(m)){let E=m.createAnimation(C,t!=="opacity",b,T,H);m=E.easing,C=E.keyframes||C,l=E.duration||l}if(vi(T)&&(Fe.cssRegisterProperty()?so(T):k=!1),w&&!Fe.linearEasing()&&(je(m)||Ue(m)&&m.some(je))&&(k=!1),k){f&&(C=C.map(_=>Pt(_)?f.toDefaultUnit(_):_)),C.length===1&&(!Fe.partialKeyframes()||o)&&C.unshift(b());let E={delay:tt.ms(h),duration:tt.ms(l),endDelay:tt.ms(d),easing:Ue(m)?void 0:Bs(m,l),direction:u,iterations:p+1,fill:"both"};a=e.animate({[T]:C,offset:v,easing:Ue(m)?m.map(_=>Bs(_,l)):void 0},E),a.finished||(a.finished=new Promise((_,Ce)=>{a.onfinish=_,a.oncancel=Ce}));let q=C[C.length-1];a.finished.then(()=>{g||(xt.set(e,T,q),a.cancel())}).catch(Js),y||(a.playbackRate=1.000001)}else if(n&&w)C=C.map(E=>typeof E=="string"?parseFloat(E):E),C.length===1&&C.unshift(parseFloat(b())),a=new n(E=>{xt.set(e,T,j?j(E):E)},C,Object.assign(Object.assign({},s),{duration:l,easing:m}));else{let E=C[C.length-1];xt.set(e,T,f&&Pt(E)?f.toDefaultUnit(E):E)}return o&&r(e,t,C,{duration:l,delay:h,easing:m,repeat:p,offset:v},"motion-one"),H.setAnimation(a),a&&!L&&a.pause(),a}}var fo=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function po(e,t){var i;return typeof e=="string"?t?((i=t[e])!==null&&i!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}var mo=e=>e(),tn=(e,t,i=z.duration)=>new Proxy({animations:e.map(mo).filter(Boolean),duration:i,options:t},vo),go=e=>e.animations[0],vo={get:(e,t)=>{let i=go(e);switch(t){case"duration":return e.duration;case"currentTime":return tt.s(i?.[t]||0);case"playbackRate":case"playState":return i?.[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(bo)).catch(Js)),e.finished;case"stop":return()=>{e.animations.forEach(s=>en(s))};case"forEachNative":return s=>{e.animations.forEach(n=>s(n,e))};default:return typeof i?.[t]>"u"?void 0:()=>e.animations.forEach(s=>s[t]())}},set:(e,t,i)=>{switch(t){case"currentTime":i=tt.ms(i);case"playbackRate":for(let s=0;se.finished;function yo(e,t,i){return je(e)?e(t,i):e}function wo(e){return function(i,s,n={}){i=po(i);let r=i.length;gi(!!r,"No valid element provided."),gi(!!s,"No keyframes defined.");let o=[];for(let a=0;a{let i=new Ys(e,[0,1],t);return i.finished.catch(()=>{}),i}],t,t.duration)}function Si(e,t,i){return(je(e)?So:Eo)(e,t,i)}function Te(e){return e===null?!0:e.offsetParent===null}function Ao(e){return e.dataset.component==="flash"}function ko(){let e=0;return Te(document.getElementById("server-error"))||(e+=1),Te(document.getElementById("client-error"))||(e+=1),Te(document.getElementById("flash-info"))||(e+=1),Te(document.getElementById("flash-error"))||(e+=1),e}var sn=5,To=550,Co=!0,yi=15,Vs=[];function pi(e,t,i){let s=[],n=Array.from(document.querySelectorAll('#toast-group [phx-hook="LiveToast"]')).map(r=>Te(r)?null:r).filter(Boolean).reverse();i&&(n=n.filter(r=>r!==i));for(let r=0;ro?0:1-(a.order-o+1);a.order>=o?a.classList.remove("pointer-events-auto"):a.classList.add("pointer-events-auto");let p={y:[`${l}${h}px`],opacity:[d]};if(a.order===0&&Vs.includes(a)===!1){let g=a.offsetHeight+yi,u=l==="-"?"":"-";p.y.unshift(`${u}${g}px`),p.opacity.unshift(0)}a.targetDestination=`${l}${h}px`;let m=To/1e3;Si(a,p,{duration:m,easing:[.22,1,.36,1]}),a.order+=1,a.style.zIndex=(50-a.order).toString(),window.setTimeout(()=>{a.order>o&&this.pushEventTo("#toast-group","clear",{id:a.id})},e+sn),Vs=s}}async function Ws(){let e=(this.el.order-2)*100+(this.el.order-2)*yi,t="";(this.el.dataset.corner==="bottom_left"||this.el.dataset.corner==="bottom_right")&&(t="-"),await Si(this.el,{y:`${t}${e}%`,opacity:0},{opacity:{duration:.2,easing:"ease-out"},duration:.3,easing:"ease-out"}).finished}function nn(e=6e3,t=3){return{destroyed(){pi.bind(this)(e,t)},updated(){let i={y:[this.el.targetDestination]};Si(this.el,i,{duration:0})},mounted(){if(["server-error","client-error"].includes(this.el.id)&&Te(document.getElementById(this.el.id))||(window.addEventListener("phx:clear-flash",s=>{this.pushEvent("lv:clear-flash",{key:s.detail.key})}),window.addEventListener("flash-leave",async s=>{s.target===this.el&&(pi.bind(this,e,t,this.el)(),await Ws.bind(this)())}),pi.bind(this)(e,t),Ao(this.el)))return;let i=e;this.el.dataset.duration!==void 0&&(i=Number.parseInt(this.el.dataset.duration)),window.setTimeout(async()=>{await Ws.bind(this)(),this.pushEventTo("#toast-group","clear",{id:this.el.id})},i+sn)}}}var rn={LiveToast:nn(),AppShell:_s,SidebarInteractions:xs,SettingsSectionScroll:Rs,TagsSectionScroll:Ls,ChatSurface:Is,ColourPicker:Ds,MenuEditorTree:Os,MonacoEditor:Ms,MonacoDiffEditor:Hs};document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelector("meta[name='csrf-token']").getAttribute("content"),t=new us("/live",_i,{params:{_csrf_token:e},hooks:rn,metadata:{keydown:i=>({key:i.key,meta:i.metaKey,ctrl:i.ctrlKey,alt:i.altKey,shift:i.shiftKey,tag:i.target?.tagName||null,contentEditable:i.target?.isContentEditable||!1})}});t.connect(),window.liveSocket=t});})(); +`:"",p=`${h}${t}${d}`;this.editor.executeEdits("bds-insert-content",[{range:s,text:p,forceMoveMarkers:!0}]),this.editor.focus()},$e().then(async e=>{!this.host||!this.textarea||(await this.waitForMonacoVisibleSize(),ce(e),this.editor=e.editor.create(this.host,{value:this.textarea.value||"",language:this.language,theme:"bds-theme",automaticLayout:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,wordWrap:this.wordWrap,lineNumbers:"on",lineNumbersMinChars:3,fontSize:14,fontFamily:"'Cascadia Code', 'Consolas', 'Courier New', monospace",padding:{top:12,bottom:12},roundedSelection:!1,renderLineHighlight:"line",formatOnPaste:!0,cursorStyle:"line",cursorBlinking:"smooth",quickSuggestions:this.language!=="markdown-with-macros",tabSize:2,insertSpaces:!0}),As(this.editorId||this.el.id,this.editor),e.editor.setTheme("bds-theme"),this.syncEditorFromTextarea(),this.layoutEditorSoon(),this.changeSubscription=this.editor.onDidChangeModelContent(()=>{this.isApplyingRemoteUpdate||this.queueSync()}),this.insertEvent&&this.handleEvent(this.insertEvent,this.handleInsert),this.dropEvent&&(this.el.addEventListener("dragover",this.handleDragOver),this.el.addEventListener("drop",this.handleDrop)),Lr()&&this.host.addEventListener("keydown",this.handleWebKitTextAreaArrowKey,!0))}).catch(e=>{console.error("Failed to load Monaco editor",e)})},updated(){this.textarea=document.getElementById(this.el.dataset.monacoInputId)||this.el.querySelector("textarea"),this.host=this.el.querySelector(".monaco-editor-instance"),this.language=this.el.dataset.monacoLanguage||this.language||"plaintext",this.wordWrap=this.el.dataset.monacoWordWrap||this.wordWrap||"off",!(!this.editor||!this.textarea)&&($e().then(e=>{ce(e),e.editor.setTheme("bds-theme"),this.editor.getModel()?.getLanguageId()!==this.language&&e.editor.setModelLanguage(this.editor.getModel(),this.language),this.editor.updateOptions({wordWrap:this.wordWrap})}),this.syncEditorFromTextarea(),this.layoutEditorSoon())},destroyed(){window.clearTimeout(this.syncTimer),this.visibleSizeObserver?.disconnect(),this.changeSubscription?.dispose(),this.dropEvent&&(this.el.removeEventListener("dragover",this.handleDragOver),this.el.removeEventListener("drop",this.handleDrop)),this.host?.removeEventListener("keydown",this.handleWebKitTextAreaArrowKey,!0),ks(this.editorId||this.el.id),this.editor?.dispose()}};var Ns={mounted(){this.host=this.el.querySelector(".monaco-diff-editor-instance"),this.originalInput=this.el.querySelector(".monaco-diff-original"),this.modifiedInput=this.el.querySelector(".monaco-diff-modified"),this.filePath=this.el.dataset.monacoDiffFilePath||"working-tree",this.language=this.el.dataset.monacoDiffLanguage||"plaintext",this.viewStyle=this.el.dataset.monacoDiffViewStyle||"inline",this.wordWrap=this.el.dataset.monacoDiffWordWrap||"off",this.hideUnchanged=this.el.dataset.monacoDiffHideUnchanged==="true",this.readValues=()=>({original:this.originalInput?.value||"",modified:this.modifiedInput?.value||""}),this.applyDataset=()=>{this.filePath=this.el.dataset.monacoDiffFilePath||"working-tree",this.language=this.el.dataset.monacoDiffLanguage||"plaintext",this.viewStyle=this.el.dataset.monacoDiffViewStyle||"inline",this.wordWrap=this.el.dataset.monacoDiffWordWrap||"off",this.hideUnchanged=this.el.dataset.monacoDiffHideUnchanged==="true"},this.setModels=e=>{let t=this.readValues();this.originalModel?.dispose(),this.modifiedModel?.dispose(),this.originalModel=e.editor.createModel(t.original,this.language,e.Uri.parse(ci(this.filePath,"original"))),this.modifiedModel=e.editor.createModel(t.modified,this.language,e.Uri.parse(ci(this.filePath,"modified"))),this.editor.setModel({original:this.originalModel,modified:this.modifiedModel}),this.lastFilePath=this.filePath},$e().then(e=>{this.host&&(ce(e),this.editor=e.editor.createDiffEditor(this.host,{theme:"bds-theme",automaticLayout:!0,readOnly:!0,renderSideBySide:this.viewStyle==="side-by-side",minimap:{enabled:!1},scrollBeyondLastLine:!1,lineNumbers:"on",diffCodeLens:!1,originalEditable:!1,wordWrap:this.wordWrap,hideUnchangedRegions:{enabled:this.hideUnchanged},ignoreTrimWhitespace:!1}),this.setModels(e))}).catch(e=>{console.error("Failed to load Monaco diff editor",e)})},updated(){this.host=this.el.querySelector(".monaco-diff-editor-instance"),this.originalInput=this.el.querySelector(".monaco-diff-original"),this.modifiedInput=this.el.querySelector(".monaco-diff-modified"),this.applyDataset(),this.editor&&$e().then(e=>{if(ce(e),e.editor.setTheme("bds-theme"),this.editor.updateOptions({renderSideBySide:this.viewStyle==="side-by-side",wordWrap:this.wordWrap,hideUnchangedRegions:{enabled:this.hideUnchanged}}),this.lastFilePath!==this.filePath){this.setModels(e);return}let t=this.readValues();this.originalModel&&this.originalModel.getLanguageId()!==this.language&&e.editor.setModelLanguage(this.originalModel,this.language),this.modifiedModel&&this.modifiedModel.getLanguageId()!==this.language&&e.editor.setModelLanguage(this.modifiedModel,this.language),this.originalModel&&this.originalModel.getValue()!==t.original&&this.originalModel.setValue(t.original),this.modifiedModel&&this.modifiedModel.getValue()!==t.modified&&this.modifiedModel.setValue(t.modified)})},destroyed(){this.originalModel?.dispose(),this.modifiedModel?.dispose(),this.editor?.dispose()}};function Hr(e,t){e.indexOf(t)===-1&&e.push(t)}var Ks=(e,t,i)=>Math.min(Math.max(i,e),t),z={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"},Pt=e=>typeof e=="number",Ue=e=>Array.isArray(e)&&!Pt(e[0]),Nr=(e,t,i)=>{let s=t-e;return((i-e)%s+s)%s+e};function $r(e,t){return Ue(e)?e[Nr(0,e.length,t)]:e}var Js=(e,t,i)=>-i*e+i*t+e,zs=()=>{},ve=e=>e,wi=(e,t,i)=>t-e===0?1:(i-e)/(t-e);function Xs(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let n=wi(0,t,s);e.push(Js(i,1,n))}}function Fr(e){let t=[0];return Xs(t,e-1),t}function Ur(e,t=Fr(e.length),i=ve){let s=e.length,n=s-t.length;return n>0&&Xs(t,n),r=>{let o=0;for(;oArray.isArray(e)&&Pt(e[0]),mi=e=>typeof e=="object"&&!!e.createAnimation,je=e=>typeof e=="function",jr=e=>typeof e=="string",tt={ms:e=>e*1e3,s:e=>e/1e3},Ys=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e,Br=1e-7,Vr=12;function Wr(e,t,i,s,n){let r,o,a=0;do o=t+(i-t)/2,r=Ys(o,s,n)-e,r>0?i=o:t=o;while(Math.abs(r)>Br&&++aWr(r,0,1,e,i);return r=>r===0||r===1?r:Ys(n(r),t,s)}var qr=(e,t="end")=>i=>{i=t==="end"?Math.min(i,.999):Math.max(i,.001);let s=i*e,n=t==="end"?Math.floor(s):Math.ceil(s);return Ks(0,1,n/e)},$s={ease:et(.25,.1,.25,1),"ease-in":et(.42,0,1,1),"ease-in-out":et(.42,0,.58,1),"ease-out":et(0,0,.58,1)},Kr=/\((.*?)\)/;function Fs(e){if(je(e))return e;if(Gs(e))return et(...e);if($s[e])return $s[e];if(e.startsWith("steps")){let t=Kr.exec(e);if(t){let i=t[1].split(",");return qr(parseFloat(i[0]),i[1].trim())}}return ve}var Zs=class{constructor(e,t=[0,1],{easing:i,duration:s=z.duration,delay:n=z.delay,endDelay:r=z.endDelay,repeat:o=z.repeat,offset:a,direction:l="normal",autoplay:h=!0}={}){if(this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=ve,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise((p,m)=>{this.resolve=p,this.reject=m}),i=i||z.easing,mi(i)){let p=i.createAnimation(t);i=p.easing,t=p.keyframes||t,s=p.duration||s}this.repeat=o,this.easing=Ue(i)?ve:Fs(i),this.updateDuration(s);let d=Ur(t,a,Ue(i)?i.map(Fs):ve);this.tick=p=>{var m;n=n;let g=0;this.pauseTime!==void 0?g=this.pauseTime:g=(p-this.startTime)*this.rate,this.t=g,g/=1e3,g=Math.max(g-n,0),this.playState==="finished"&&this.pauseTime===void 0&&(g=this.totalDuration);let u=g/this.duration,v=Math.floor(u),y=u%1;!y&&u>=1&&(y=1),y===1&&v--;let L=v%2;(l==="reverse"||l==="alternate"&&L||l==="alternate-reverse"&&!L)&&(y=1-y);let $=g>=this.totalDuration?1:Math.min(y,1),w=d(this.easing($));e(w),this.pauseTime===void 0&&(this.playState==="finished"||g>=this.totalDuration+r)?(this.playState="finished",(m=this.resolve)===null||m===void 0||m.call(this,w)):this.playState!=="idle"&&(this.frameRequestId=requestAnimationFrame(this.tick))},h&&this.play()}play(){let e=performance.now();this.playState="running",this.pauseTime!==void 0?this.startTime=e-this.pauseTime:this.startTime||(this.startTime=e),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}pause(){this.playState="paused",this.pauseTime=this.t}finish(){this.playState="finished",this.tick(0)}stop(){var e;this.playState="idle",this.frameRequestId!==void 0&&cancelAnimationFrame(this.frameRequestId),(e=this.reject)===null||e===void 0||e.call(this,!1)}cancel(){this.stop(),this.tick(this.cancelTimestamp)}reverse(){this.rate*=-1}commitStyles(){}updateDuration(e){this.duration=e,this.totalDuration=e*(this.repeat+1)}get currentTime(){return this.t}set currentTime(e){this.pauseTime!==void 0||this.rate===0?this.pauseTime=e:this.startTime=performance.now()-e/this.rate}get playbackRate(){return this.rate}set playbackRate(e){this.rate=e}},Jr=function(){},gi=function(){};Jr=function(e,t){!e&&typeof console<"u"&&console.warn(t)},gi=function(e,t){if(!e)throw new Error(t)};var zr=class{setAnimation(e){this.animation=e,e?.finished.then(()=>this.clearAnimation()).catch(()=>{})}clearAnimation(){this.animation=this.generator=void 0}},di=new WeakMap;function Qs(e){return di.has(e)||di.set(e,{transforms:[],values:new Map}),di.get(e)}function Xr(e,t){return e.has(t)||e.set(t,new zr),e.get(t)}var Gr=["","X","Y","Z"],Yr=["translate","scale","rotate","skew"],Rt={x:"translateX",y:"translateY",z:"translateZ"},Us={syntax:"",initialValue:"0deg",toDefaultUnit:e=>e+"deg"},Zr={translate:{syntax:"",initialValue:"0px",toDefaultUnit:e=>e+"px"},rotate:Us,scale:{syntax:"",initialValue:1,toDefaultUnit:ve},skew:Us},it=new Map,Ei=e=>`--motion-${e}`,Lt=["x","y","z"];Yr.forEach(e=>{Gr.forEach(t=>{Lt.push(e+t),it.set(Ei(e+t),Zr[e])})});var Qr=(e,t)=>Lt.indexOf(e)-Lt.indexOf(t),eo=new Set(Lt),en=e=>eo.has(e),to=(e,t)=>{Rt[t]&&(t=Rt[t]);let{transforms:i}=Qs(e);Hr(i,t),e.style.transform=io(i)},io=e=>e.sort(Qr).reduce(so,"").trim(),so=(e,t)=>`${e} ${t}(var(${Ei(t)}))`,vi=e=>e.startsWith("--"),js=new Set;function no(e){if(!js.has(e)){js.add(e);try{let{syntax:t,initialValue:i}=it.has(e)?it.get(e):{};CSS.registerProperty({name:e,inherits:!1,syntax:t,initialValue:i})}catch{}}}var ui=(e,t)=>document.createElement("div").animate(e,t),Bs={cssRegisterProperty:()=>typeof CSS<"u"&&Object.hasOwnProperty.call(CSS,"registerProperty"),waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate"),partialKeyframes:()=>{try{ui({opacity:[1]})}catch{return!1}return!0},finished:()=>!!ui({opacity:[0,1]},{duration:.001}).finished,linearEasing:()=>{try{ui({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0}},fi={},Fe={};for(let e in Bs)Fe[e]=()=>(fi[e]===void 0&&(fi[e]=Bs[e]()),fi[e]);var ro=.015,oo=(e,t)=>{let i="",s=Math.round(t/ro);for(let n=0;nje(e)?Fe.linearEasing()?`linear(${oo(e,t)})`:z.easing:Gs(e)?ao(e):e,ao=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`;function lo(e,t){for(let i=0;iArray.isArray(e)?e:[e];function bi(e){return Rt[e]&&(e=Rt[e]),en(e)?Ei(e):e}var xt={get:(e,t)=>{t=bi(t);let i=vi(t)?e.style.getPropertyValue(t):getComputedStyle(e)[t];if(!i&&i!==0){let s=it.get(t);s&&(i=s.initialValue)}return i},set:(e,t,i)=>{t=bi(t),vi(t)?e.style.setProperty(t,i):e.style[t]=i}};function tn(e,t=!0){if(!(!e||e.playState==="finished"))try{e.stop?e.stop():(t&&e.commitStyles(),e.cancel())}catch{}}function co(e,t){var i;let s=t?.toDefaultUnit||ve,n=e[e.length-1];if(jr(n)){let r=((i=n.match(/(-?[\d.]+)([a-z%]*)/))===null||i===void 0?void 0:i[2])||"";r&&(s=o=>o+r)}return s}function uo(){return window.__MOTION_DEV_TOOLS_RECORD}function fo(e,t,i,s={},n){let r=uo(),o=s.record!==!1&&r,a,{duration:l=z.duration,delay:h=z.delay,endDelay:d=z.endDelay,repeat:p=z.repeat,easing:m=z.easing,persist:g=!1,direction:u,offset:v,allowWebkitAcceleration:y=!1,autoplay:L=!0}=s,$=Qs(e),w=en(t),k=Fe.waapi();w&&to(e,t);let T=bi(t),H=Xr($.values,T),f=it.get(T);return tn(H.animation,!(mi(m)&&H.generator)&&s.record!==!1),()=>{let b=()=>{var E,q;return(q=(E=xt.get(e,T))!==null&&E!==void 0?E:f?.initialValue)!==null&&q!==void 0?q:0},C=lo(ho(i),b),j=co(C,f);if(mi(m)){let E=m.createAnimation(C,t!=="opacity",b,T,H);m=E.easing,C=E.keyframes||C,l=E.duration||l}if(vi(T)&&(Fe.cssRegisterProperty()?no(T):k=!1),w&&!Fe.linearEasing()&&(je(m)||Ue(m)&&m.some(je))&&(k=!1),k){f&&(C=C.map(_=>Pt(_)?f.toDefaultUnit(_):_)),C.length===1&&(!Fe.partialKeyframes()||o)&&C.unshift(b());let E={delay:tt.ms(h),duration:tt.ms(l),endDelay:tt.ms(d),easing:Ue(m)?void 0:Vs(m,l),direction:u,iterations:p+1,fill:"both"};a=e.animate({[T]:C,offset:v,easing:Ue(m)?m.map(_=>Vs(_,l)):void 0},E),a.finished||(a.finished=new Promise((_,Ce)=>{a.onfinish=_,a.oncancel=Ce}));let q=C[C.length-1];a.finished.then(()=>{g||(xt.set(e,T,q),a.cancel())}).catch(zs),y||(a.playbackRate=1.000001)}else if(n&&w)C=C.map(E=>typeof E=="string"?parseFloat(E):E),C.length===1&&C.unshift(parseFloat(b())),a=new n(E=>{xt.set(e,T,j?j(E):E)},C,Object.assign(Object.assign({},s),{duration:l,easing:m}));else{let E=C[C.length-1];xt.set(e,T,f&&Pt(E)?f.toDefaultUnit(E):E)}return o&&r(e,t,C,{duration:l,delay:h,easing:m,repeat:p,offset:v},"motion-one"),H.setAnimation(a),a&&!L&&a.pause(),a}}var po=(e,t)=>e[t]?Object.assign(Object.assign({},e),e[t]):Object.assign({},e);function mo(e,t){var i;return typeof e=="string"?t?((i=t[e])!==null&&i!==void 0||(t[e]=document.querySelectorAll(e)),e=t[e]):e=document.querySelectorAll(e):e instanceof Element&&(e=[e]),Array.from(e||[])}var go=e=>e(),sn=(e,t,i=z.duration)=>new Proxy({animations:e.map(go).filter(Boolean),duration:i,options:t},bo),vo=e=>e.animations[0],bo={get:(e,t)=>{let i=vo(e);switch(t){case"duration":return e.duration;case"currentTime":return tt.s(i?.[t]||0);case"playbackRate":case"playState":return i?.[t];case"finished":return e.finished||(e.finished=Promise.all(e.animations.map(yo)).catch(zs)),e.finished;case"stop":return()=>{e.animations.forEach(s=>tn(s))};case"forEachNative":return s=>{e.animations.forEach(n=>s(n,e))};default:return typeof i?.[t]>"u"?void 0:()=>e.animations.forEach(s=>s[t]())}},set:(e,t,i)=>{switch(t){case"currentTime":i=tt.ms(i);case"playbackRate":for(let s=0;se.finished;function wo(e,t,i){return je(e)?e(t,i):e}function Eo(e){return function(i,s,n={}){i=mo(i);let r=i.length;gi(!!r,"No valid element provided."),gi(!!s,"No keyframes defined.");let o=[];for(let a=0;a{let i=new Zs(e,[0,1],t);return i.finished.catch(()=>{}),i}],t,t.duration)}function Si(e,t,i){return(je(e)?Ao:So)(e,t,i)}function Te(e){return e===null?!0:e.offsetParent===null}function ko(e){return e.dataset.component==="flash"}function To(){let e=0;return Te(document.getElementById("server-error"))||(e+=1),Te(document.getElementById("client-error"))||(e+=1),Te(document.getElementById("flash-info"))||(e+=1),Te(document.getElementById("flash-error"))||(e+=1),e}var nn=5,Co=550,_o=!0,yi=15,Ws=[];function pi(e,t,i){let s=[],n=Array.from(document.querySelectorAll('#toast-group [phx-hook="LiveToast"]')).map(r=>Te(r)?null:r).filter(Boolean).reverse();i&&(n=n.filter(r=>r!==i));for(let r=0;ro?0:1-(a.order-o+1);a.order>=o?a.classList.remove("pointer-events-auto"):a.classList.add("pointer-events-auto");let p={y:[`${l}${h}px`],opacity:[d]};if(a.order===0&&Ws.includes(a)===!1){let g=a.offsetHeight+yi,u=l==="-"?"":"-";p.y.unshift(`${u}${g}px`),p.opacity.unshift(0)}a.targetDestination=`${l}${h}px`;let m=Co/1e3;Si(a,p,{duration:m,easing:[.22,1,.36,1]}),a.order+=1,a.style.zIndex=(50-a.order).toString(),window.setTimeout(()=>{a.order>o&&this.pushEventTo("#toast-group","clear",{id:a.id})},e+nn),Ws=s}}async function qs(){let e=(this.el.order-2)*100+(this.el.order-2)*yi,t="";(this.el.dataset.corner==="bottom_left"||this.el.dataset.corner==="bottom_right")&&(t="-"),await Si(this.el,{y:`${t}${e}%`,opacity:0},{opacity:{duration:.2,easing:"ease-out"},duration:.3,easing:"ease-out"}).finished}function rn(e=6e3,t=3){return{destroyed(){pi.bind(this)(e,t)},updated(){let i={y:[this.el.targetDestination]};Si(this.el,i,{duration:0})},mounted(){if(["server-error","client-error"].includes(this.el.id)&&Te(document.getElementById(this.el.id))||(window.addEventListener("phx:clear-flash",s=>{this.pushEvent("lv:clear-flash",{key:s.detail.key})}),window.addEventListener("flash-leave",async s=>{s.target===this.el&&(pi.bind(this,e,t,this.el)(),await qs.bind(this)())}),pi.bind(this)(e,t),ko(this.el)))return;let i=e;this.el.dataset.duration!==void 0&&(i=Number.parseInt(this.el.dataset.duration)),window.setTimeout(async()=>{await qs.bind(this)(),this.pushEventTo("#toast-group","clear",{id:this.el.id})},i+nn)}}}var on={LiveToast:rn(),AppShell:xs,SidebarInteractions:Ps,SettingsSectionScroll:Ls,TagsSectionScroll:Is,ChatSurface:Ds,ColourPicker:Os,MenuEditorTree:Ms,MonacoEditor:Hs,MonacoDiffEditor:Ns};document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelector("meta[name='csrf-token']").getAttribute("content"),t=new us("/live",_i,{params:{_csrf_token:e},hooks:on,metadata:{keydown:i=>({key:i.key,meta:i.metaKey,ctrl:i.ctrlKey,alt:i.altKey,shift:i.shiftKey,tag:i.target?.tagName||null,contentEditable:i.target?.isContentEditable||!1})}});t.connect(),window.liveSocket=t});})(); diff --git a/scripts/desktop_automation_runner.mjs b/scripts/desktop_automation_runner.mjs index ef29d38..e6fe7ca 100644 --- a/scripts/desktop_automation_runner.mjs +++ b/scripts/desktop_automation_runner.mjs @@ -47,6 +47,9 @@ for await (const line of rl) { assistant_visible: !hasClass("[data-testid='assistant-shell']", "is-hidden"), assistant_width: document.querySelector("[data-testid='assistant-shell']")?.getBoundingClientRect().width ?? 0, panel_visible: !hasClass(".panel-shell", "is-hidden"), + panel_tabs_height: document.querySelector(".panel-tabs")?.getBoundingClientRect().height ?? 0, + panel_tab_labels: texts(".panel-tab", (node) => node.textContent.trim()), + panel_active_tab: text(".panel-tab.active"), editor_title: text("[data-testid='editor-title']"), activity_labels: texts("[data-testid='activity-button']", (node) => node.getAttribute("aria-label")), sidebar_sections: texts("[data-testid='sidebar-section-title']", (node) => node.textContent.trim()), diff --git a/specs/layout.allium b/specs/layout.allium index ffa2d26..f138f09 100644 --- a/specs/layout.allium +++ b/specs/layout.allium @@ -249,6 +249,8 @@ invariant PanelTabFallback { -- Tasks tab: last 10 tasks, newest first, with progress/cancel. -- Tasks with shared group_id are collapsible groups showing aggregate progress. -- Output tab: log entries with copy-all button. +-- The panel opens on Output automatically when a blogmark transform fails +-- or a transform script writes output. -- Post Links tab: backlinks (posts linking here) + outlinks (posts linked from here). -- Each entry clickable, opens linked post as pinned tab. -- Git Log tab: file-level git history for active post/media (up to 50 entries). diff --git a/specs/script.allium b/specs/script.allium index 91e6660..4ce208f 100644 --- a/specs/script.allium +++ b/specs/script.allium @@ -110,6 +110,12 @@ surface ScriptRuntimeSurface { -- Progress reporting is cooperative and flows through the supplied -- progress sink rather than ambient global side effects. + @guarantee ScriptOutputRouting + -- print(…) calls and the explicit bds.app.log(…) API append lines to a + -- host-routed script output stream: the desktop app's Output panel, + -- stdout in the CLI, and the host logger when no sink is attached — + -- never the ambient console. + @guarantee BatchCancellation -- Managed utility and transform jobs can be cancelled by the host -- operator boundary. diff --git a/test/bds/desktop/automation_test.exs b/test/bds/desktop/automation_test.exs index f477a89..f84c2fc 100644 --- a/test/bds/desktop/automation_test.exs +++ b/test/bds/desktop/automation_test.exs @@ -129,6 +129,31 @@ defmodule BDS.Desktop.AutomationTest do assert automation_process_counts() == baseline end + @tag timeout: 120_000 + test "cmd-J panel tab strip is visible and switches between tasks and output (issue #20)" do + {:ok, session} = Automation.start_session() + + on_exit(fn -> + Automation.stop_session(session) + end) + + assert :ok = Automation.press(session, "Meta+J") + + snapshot = await(session, & &1.panel_visible) + assert snapshot.panel_visible == true + + # The tab strip must offer both tabs and be tall enough to actually see + # and hit them — issue #20 was the strip collapsing to an unusable sliver. + assert "Tasks" in snapshot.panel_tab_labels + assert "Output" in snapshot.panel_tab_labels + assert snapshot.panel_tabs_height >= 20 + + assert :ok = Automation.click(session, "button[phx-value-tab='output']") + + snapshot = await(session, &(&1.panel_active_tab == "Output")) + assert snapshot.panel_active_tab == "Output" + end + @tag timeout: 120_000 test "automation dispatches native menu actions into the liveview shell" do {:ok, session} = Automation.start_session() diff --git a/test/bds/desktop/shell_live_test.exs b/test/bds/desktop/shell_live_test.exs index 3dab860..938ae89 100644 --- a/test/bds/desktop/shell_live_test.exs +++ b/test/bds/desktop/shell_live_test.exs @@ -907,6 +907,120 @@ defmodule BDS.Desktop.ShellLiveTest do assert html =~ ~s(data-tab-id="#{created_post.id}") end + test "tasks panel shows a cancel button for running tasks and cancels them" do + {:ok, view, _html} = live_isolated(build_conn(), BDS.Desktop.ShellLive) + + {:ok, task} = + BDS.Tasks.submit_task("Long Running Task", fn _report -> + receive do + :finish -> :ok + after + 30_000 -> :ok + end + end) + + send(view.pid, :refresh_task_status) + + html = render_click(view, "select_panel_tab", %{"tab" => "tasks"}) + + assert html =~ "Long Running Task" + assert html =~ ~s(data-testid="cancel-task-button") + + view + |> element(~s{[data-testid="cancel-task-button"]}) + |> render_click() + + assert Enum.find(BDS.Tasks.list_tasks(), &(&1.id == task.id)).status == :cancelled + end + + test "tasks panel groups tasks by group_id and toggles the group collapsed" do + {:ok, view, _html} = live_isolated(build_conn(), BDS.Desktop.ShellLive) + + blocking = fn _report -> + receive do + :finish -> :ok + after + 30_000 -> :ok + end + end + + {:ok, _t1} = BDS.Tasks.submit_task("First Grouped", blocking, %{group_id: "grp", group_name: "Batch"}) + {:ok, _t2} = BDS.Tasks.submit_task("Second Grouped", blocking, %{group_id: "grp", group_name: "Batch"}) + + send(view.pid, :refresh_task_status) + + html = render_click(view, "select_panel_tab", %{"tab" => "tasks"}) + + # One group row for both tasks, expanded by default (task names also + # appear in the status bar, hence the row scoping) + assert html =~ "Batch (2)" + assert html =~ "First Grouped" + assert html =~ "Second Grouped" + + html = render_click(view, "toggle_task_group", %{"group" => "grp"}) + + assert html =~ "Batch (2)" + refute html =~ "First Grouped" + refute html =~ "Second Grouped" + + html = render_click(view, "toggle_task_group", %{"group" => "grp"}) + + assert html =~ "First Grouped" + assert html =~ "Second Grouped" + end + + test "output panel copy button pushes the full log text to the clipboard" do + {:ok, view, _html} = live_isolated(build_conn(), BDS.Desktop.ShellLive) + + send(view.pid, {:editor_output, "First", "line one", nil, "info"}) + send(view.pid, {:editor_output, "Second", "line two", nil, "error"}) + + html = render_click(view, "select_panel_tab", %{"tab" => "output"}) + + assert html =~ ~s(data-testid="copy-output-button") + + view + |> element(~s{[data-testid="copy-output-button"]}) + |> render_click() + + # Chronological order (oldest first), entries joined by a blank line. + assert_push_event(view, "clipboard", %{text: "line one\n\nline two"}) + end + + test "blogmark transform output lands in the output panel and auto-opens it", %{ + project: project + } do + {:ok, _script} = + Scripts.create_and_publish_script(%{ + project_id: project.id, + title: "Logging Transform", + kind: :transform, + entrypoint: "main", + content: + "function main(data, ctx) bds.app.log('transform ran') print('still ran') return data end" + }) + + {:ok, view, _html} = live_isolated(build_conn(), BDS.Desktop.ShellLive) + + url = + "bds2://new-post?title=" <> + URI.encode_www_form("Logged Blogmark") <> + "&url=" <> URI.encode_www_form("https://example.com/logged") + + send(view.pid, {:blogmark_deep_link, url}) + _html = render(view) + + assigns = :sys.get_state(view.pid).socket.assigns + messages = Enum.map(assigns.output_entries, & &1.message) + + assert "transform ran" in messages + assert "still ran" in messages + + # Like the old app: noteworthy script output opens the panel on Output. + assert assigns.workbench.panel.visible == true + assert assigns.workbench.panel.active_tab == :output + end + test "blogmark deep link with a project_id switches to that project and imports there", %{project: active} do {:ok, other} = @@ -6052,6 +6166,38 @@ defmodule BDS.Desktop.ShellLiveTest do assert reloaded.version == 1 end + test "script editor run streams print and bds.app.log output to the output panel", %{ + project: project + } do + {:ok, script} = + Scripts.create_script(%{ + project_id: project.id, + title: "Output Test", + kind: :utility, + content: + "function main() print('from-print') bds.app.log('from-log') return 'done' end" + }) + + {:ok, view, _html} = live_isolated(build_conn(), BDS.Desktop.ShellLive) + + render_click(view, "pin_sidebar_item", %{ + "route" => "scripts", + "id" => script.id, + "title" => script.title, + "subtitle" => "draft" + }) + + view + |> element(".scripts-run-button") + |> render_click() + + entries = :sys.get_state(view.pid).socket.assigns.output_entries + messages = Enum.map(entries, & &1.message) + + assert "from-print" in messages + assert "from-log" in messages + end + test "script editor check syntax validates lua content without saving", %{project: project} do {:ok, script} = Scripts.create_script(%{ diff --git a/test/bds/scripting/lua_test.exs b/test/bds/scripting/lua_test.exs index 5c271cf..e453a24 100644 --- a/test/bds/scripting/lua_test.exs +++ b/test/bds/scripting/lua_test.exs @@ -34,6 +34,57 @@ defmodule BDS.Scripting.LuaTest do assert_receive {:progress, %{"phase" => "write", "current" => 2, "total" => 2}} end + test "streams bds.app.log output through the on_output callback" do + parent = self() + + source = """ + function main() + bds.app.log('fetching') + bds.app.log('done', 42) + return 'ok' + end + """ + + callback = fn text -> send(parent, {:script_output, text}) end + + assert {:ok, "ok"} = + BDS.Scripting.execute_project_script("project-id", source, "main", [], + on_output: callback + ) + + assert_receive {:script_output, "fetching"} + assert_receive {:script_output, "done 42"} + end + + test "routes print calls through the on_output callback" do + parent = self() + + source = """ + function main() + print('hello', 'world') + return 'ok' + end + """ + + callback = fn text -> send(parent, {:script_output, text}) end + + assert {:ok, "ok"} = BDS.Scripting.execute(source, "main", [], on_output: callback) + + assert_receive {:script_output, "hello world"} + end + + test "log and print fall back to a silent sink without an on_output callback" do + source = """ + function main() + bds.app.log('note') + print('hello') + return 'ok' + end + """ + + assert {:ok, "ok"} = BDS.Scripting.execute_project_script("project-id", source, "main", []) + end + test "sandbox blocks os.execute" do source = "function main() os.execute('echo hacked') end" diff --git a/test/bds/ui/task_grouping_test.exs b/test/bds/ui/task_grouping_test.exs new file mode 100644 index 0000000..c88a12d --- /dev/null +++ b/test/bds/ui/task_grouping_test.exs @@ -0,0 +1,78 @@ +defmodule BDS.UI.TaskGroupingTest do + use ExUnit.Case, async: true + + alias BDS.UI.TaskGrouping + + defp task(id, status, opts \\ %{}) do + %{ + id: id, + name: Map.get(opts, :name, "Task #{id}"), + status: status, + progress: Map.get(opts, :progress), + message: nil, + group_id: Map.get(opts, :group_id), + group_name: Map.get(opts, :group_name) + } + end + + describe "build_task_entries/1" do + test "tasks without a group stay single entries in order" do + entries = TaskGrouping.build_task_entries([task("a", :running), task("b", :completed)]) + + assert [{:single, %{id: "a"}}, {:single, %{id: "b"}}] = entries + end + + test "tasks with a group_id are grouped by first-seen order" do + entries = + TaskGrouping.build_task_entries([ + task("a", :running, %{group_id: "g1", group_name: "Import"}), + task("b", :running), + task("c", :pending, %{group_id: "g1", group_name: "Import"}), + task("d", :completed, %{group_id: "g2", group_name: "Upload"}) + ]) + + assert [ + {:group, "g1", "Import", [%{id: "a"}, %{id: "c"}]}, + {:single, %{id: "b"}}, + {:group, "g2", "Upload", [%{id: "d"}]} + ] = entries + end + + test "group label falls back to the group_id when no group_name is set" do + assert [{:group, "g1", "g1", [_]}] = + TaskGrouping.build_task_entries([task("a", :running, %{group_id: "g1"})]) + end + end + + describe "summarize_task_group/1" do + test "counts statuses and averages progress contributions" do + summary = + TaskGrouping.summarize_task_group([ + task("a", :running, %{progress: 0.5}), + task("b", :pending), + task("c", :completed) + ]) + + assert summary.total == 3 + assert summary.running == 1 + assert summary.pending == 1 + assert summary.completed == 1 + assert summary.failed == 0 + assert summary.cancelled == 0 + # contributions: 0.5 (running) + 0 (pending) + 1.0 (completed) + assert_in_delta summary.progress, 0.5, 0.001 + end + + test "finished failures and cancellations count as full progress" do + summary = TaskGrouping.summarize_task_group([task("a", :failed), task("b", :cancelled)]) + + assert summary.progress == 1.0 + assert summary.failed == 1 + assert summary.cancelled == 1 + end + + test "empty group summarizes to zero" do + assert %{total: 0, progress: 0.0} = TaskGrouping.summarize_task_group([]) + end + end +end