function s(){import.meta.url,import("_").catch(()=>1),async function*(){}().next()}function i(){const t=jQuery,a=t(".saai-image-alt-tags-button:visible"),e=a.length;e>1&&(console.log("Found ".concat(e," buttons, removing ").concat(e-1," duplicate(s)")),a.slice(1).each(function(){t(this).remove()}))}function l(){const t=jQuery;let a=!1;t(".saai-image-alt-tags-button.moved").remove();const e=t(".saai-image-alt-tags-button-move .saai-image-alt-tags-button"),o=t(".media-modal:visible .setting.alt-text"),n=o.closest(".settings");return o.length>0&&(n.length>0?n.prepend(e):e.insertBefore(o),t(".saai-image-alt-tags-button").addClass("moved"),t(".saai-image-alt-tags-button-move").closest("tr").remove(),t("table.compat-attachment-fields tbody").find("tr").length<=0&&(t("table.compat-attachment-fields").remove(),t(".media-types-required-info").remove()),a=!0,i()),a}export{s as __vite_legacy_guard,l as m};
