(()=>{"use strict";var n={1682:(n,t,e)=>{e.p="localhost"===window.location.hostname?"/assets/":"".concat(window.guardian.app.data.CAPI.config.frontendAssetsFullURL,"assets/")}},t={};function e(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return n[r](o,o.exports,e),o.exports}e.p="",(()=>{e(1682);var n,t;n=function(){var n=[].slice.call(document.querySelectorAll(".email-sub__iframe"));return window.addEventListener("message",(function(t){var e=n.filter((function(n){try{return n.src===t.source.location.href}catch(n){return!1}}));if(0!==e.length)try{var r=JSON.parse(t.data);switch(r.type){case"set-height":e.forEach((function(n){n.height=r.value}))}}catch(n){}})),Promise.resolve()},t=function(){!function(n,t){var e=function(n){var t=window.performance,e="".concat(n,"-start"),r="".concat(n,"-end");return t?{start:function(){t.mark(e)},end:function(){t.mark(r),t.measure(n,e,r),console.log(JSON.stringify(t.getEntriesByName(n)));var a=t.getEntriesByName(n,"measure"),o=a&&a[0]&&a[0].duration||0;return Math.round(o)},clear:function(){t.clearMarks(e)}}:{start:function(){},end:function(){return 0},clear:function(){}}}(n),r=e.start,a=e.end;r(),t().then((function(){a()})).catch((function(){a()}))}("newsletterEmbedIframe",n.bind(null,null))},window.guardian.mustardCut||window.guardian.polyfilled?t():window.guardian.queue.push(t)})()})();
//# sourceMappingURL=newsletterEmbedIframe.legacy.9e7f2e8dfe09c66d07b3.js.map