!function(){"use strict";var e=e=>{"complete"!==document.readyState&&"interactive"!==document.readyState||e(),document.addEventListener("DOMContentLoaded",e,{once:!0})};!function(t){const{component:o,load:n,name:r,querySelector:c={},querySelectorAll:l={},options:s={}}=t;if("function"!=typeof o)return;const a=()=>{(()=>{const e=void 0===r?null==t?void 0:t.root:`[data-component='${r}']`;let o;try{o=document.querySelectorAll(e)}catch(e){return console.error(e),[]}return o.length<1?(console.log(`No elements found for ${e}`),[]):Array.from(o).map((e=>{const t={};return Object.keys(c).forEach((o=>{t[o]=e.querySelector(c[o])})),Object.keys(l).forEach((o=>{const n=e.querySelectorAll(l[o]);t[o]=Array.from(n)})),{element:e,children:t,options:s}}))})().forEach((e=>new o(e)))};if(!1===n)return a;!function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(t)if("function"==typeof o)o(t);else if(Array.isArray(o)){const[e,n]=o;null==e||e.addEventListener(n,t)}}(a,n)}({root:".wp-block-the-wrap-collapsed-comments",component:function(e){let{children:{button:t,comments:o}}=e;const n="wp-block-comments--hidden";null!=t&&null!=o&&(o.classList.add(n),t.addEventListener("click",(()=>{"true"!==t.getAttribute("aria-disabled")&&(o.classList.remove(n),t.setAttribute("aria-disabled","true"),t.classList.add("screen-reader-text"))})))},querySelector:{button:".wp-block-the-wrap-collapsed-comments__button",comments:".wp-block-comments"}})}();