!function(window){const host="https://app.heygen.com",url=host+"/guest/streaming-embed?share=eyJxdWFsaXR5IjoiaGlnaCIsImF2YXRhck5hbWUiOiJCcmlhbmFfcHVibGljXzNfMjAyNDAxMTAi%0D%0ALCJ2b2ljZSI6eyJ2b2ljZV9pZCI6ImMyOTU4ZDY3ZjFlNzQ0MDNhMDAzOGUzNDQ1ZDkzZDUwIn0s%0D%0AInByZXZpZXdJbWciOiJodHRwczovL2ZpbGVzLmhleWdlbi5haS9hdmF0YXIvdjMvZTUwYTA5N2Y1%0D%0AMGI1NDE3NDljMzE4ZGZlZGZlOWM2NDBfMTMzMTEvcHJldmlld190YWxrXzQud2VicCIsIm5lZWRS%0D%0AZW1vdmVCYWNrZ3JvdW5kIjp0cnVlLCJ1c2VybmFtZSI6ImE3ZGRhYzQ2Y2Y3NjRiZjI4NTRiZjkz%0D%0AZjFkMTVkMjc1In0%3D&inIFrame=1",clientWidth=document.body.clientWidth,wrapDiv=document.createElement("div");wrapDiv.id="heygen-streaming-embed";const container=document.createElement("div");container.id="heygen-streaming-container";const stylesheet=document.createElement("style");stylesheet.innerHTML=`\n #heygen-streaming-embed {\n z-index: 9999;\n position: fixed;\n left: 40px;\n bottom: 40px;\n width: 200px;\n height: 200px;\n border-radius: 50%;\n border: 2px solid #fff;\n box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.12);\n transition: all linear 0.1s;\n overflow: hidden;\n\n opacity: 0;\n visibility: hidden;\n }\n #heygen-streaming-embed.show {\n opacity: 1;\n visibility: visible;\n }\n #heygen-streaming-embed.expand {\n ${clientWidth{e.origin===host&&e.data&&e.data.type&&"streaming-embed"===e.data.type&&("init"===e.data.action?(initial=!0,wrapDiv.classList.toggle("show",initial)):"show"===e.data.action?(visible=!0,wrapDiv.classList.toggle("expand",visible)):"hide"===e.data.action&&(visible=!1,wrapDiv.classList.toggle("expand",visible)))})),container.appendChild(iframe),wrapDiv.appendChild(stylesheet),wrapDiv.appendChild(container),document.body.appendChild(wrapDiv)}(globalThis);