(()=>{"use strict";class e{constructor(e){this.card=e,this.query={url:e.querySelector(".js-wp-oembed-blog-card__link").getAttribute("href")}}request(){const e=`url=${encodeURIComponent(this.query.url)}`,t=-1===WP_OEMBED_BLOG_CARD.endpoint.indexOf("?")?`${WP_OEMBED_BLOG_CARD.endpoint}/response/?${e}`:`${WP_OEMBED_BLOG_CARD.endpoint}/response/&${e}`,s=new XMLHttpRequest;s.onreadystatechange=()=>{4===s.readyState&&(200===s.status||304===s.status?this.card.outerHTML=s.responseText:console.log(`Blog card request failed. HttpStatus: ${s.statusText}`))},s.open("GET",t),s.send()}}const t=document.querySelectorAll(".js-wp-oembed-blog-card");let s=0;var r,o;o=t=>{setTimeout((()=>{new e(t).request()}),s),s+=1e3},0<(r=t).length&&Array.prototype.slice.call(r,0).forEach((function(e,t){o(e,t)}))})();