(()=>{const{GHOSTKIT:{events:e}}=window;e.on(document,"init.blocks.gkt",(()=>{document.querySelectorAll(".ghostkit-changelog:not(.ghostkit-changelog-ready)").forEach((t=>{e.trigger(t,"prepare.changelog.gkt"),t.classList.add("ghostkit-changelog-ready"),t.querySelector(":scope > .ghostkit-changelog-more").querySelectorAll(":scope > ul li, :scope > ol li").forEach((e=>{const t=e.innerHTML.trim().match(/^\[(new|added|fixed|improved|updated|removed|changed)\]\s(.*)/i);if(t){const o=t[1],a=t[2];let s="ghostkit-badge";switch(o.toLowerCase()){case"added":case"new":s+=" ghostkit-badge-success";break;case"fixed":case"improved":case"updated":s+=" ghostkit-badge-primary";break;case"removed":s+=" ghostkit-badge-danger"}e.innerHTML=`<span class="${s}">${o}</span> ${a}`}})),e.trigger(t,"prepared.changelog.gkt")}))}))})();