(()=>{const{GHOSTKIT:{events:t},gistSimple:e}=window;t.on(document,"init.blocks.gkt",(()=>{void 0!==e&&document.querySelectorAll(".ghostkit-gist:not(.ghostkit-gist-ready)").forEach((i=>{i.classList.add("ghostkit-gist-ready");const o=/^https:\/\/gist.github.com?.+\/(.+)/g.exec(i.getAttribute("data-url"));if(o&&void 0!==o[1]){const s={id:o[1],file:i.getAttribute("data-file"),caption:i.getAttribute("data-caption"),showFooter:"true"===i.getAttribute("data-show-footer"),showLineNumbers:"true"===i.getAttribute("data-show-line-numbers")};t.trigger(i,"prepare.gist.gkt",{options:s}),e(i,s),t.trigger(i,"prepared.gist.gkt",{options:s})}}))}))})();