System.register([],(function(t,e){"use strict";return{execute:function(){t("m",(function(){const t=jQuery;let e=!1;t(".saai-image-alt-tags-button.moved").remove();const a=t(".saai-image-alt-tags-button-move .saai-image-alt-tags-button"),s=t(".media-modal:visible .setting.alt-text"),i=s.closest(".settings");return s.length>0&&(i.length>0?i.prepend(a):a.insertBefore(s),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()),e=!0,function(){const t=jQuery,e=t(".saai-image-alt-tags-button:visible"),a=e.length;a>1&&(console.log(`Found ${a} buttons, removing ${a-1} duplicate(s)`),e.slice(1).each((function(){t(this).remove()})))}()),e}))}}}));
