!function(){function e(e,t){var n;return function(){var o=this,r=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(o,r)},t)}}function t(){var e=document.querySelector("main")||document.body;window.parent.postMessage(JSON.stringify({action:"EmbedChildUpdated",height:e.scrollHeight}),"*")}function n(e,t){for(var n=e.querySelectorAll?e.querySelectorAll("img"):[],o=0;o<n.length;o++)n[o].complete||(n[o].addEventListener("load",t),n[o].addEventListener("error",t));"IMG"!==e.tagName||e.complete||(e.addEventListener("load",t),e.addEventListener("error",t))}window.parent!==window&&function(){var o=e(t,100);document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector("main")||document.body;t(),setTimeout(t,500),setTimeout(t,1500),n(e,o),window.MutationObserver&&new MutationObserver(function(e){for(var t=0;t<e.length;t++)for(var r=e[t].addedNodes,i=0;i<r.length;i++)1===r[i].nodeType&&n(r[i],o);o()}).observe(e,{childList:!0,subtree:!0})})}()}();