(function(){(()=>{const r=window;if(r.__yankWindowOpenShim)return;r.__yankWindowOpenShim=!0;let i=!1;const a=window.open.bind(window);window.addEventListener("message",e=>{if(e.source!==window)return;const n=e.data;!n||n.source!=="yank-content"||n.type!=="YANK_OPEN_ARM"||(i=!!n.armed)});function o(e){e&&window.postMessage({source:"yank-main",type:"WINDOW_OPEN",url:e},"*")}const s=()=>{},w=new Proxy({},{get:()=>s,set:(e,n,t)=>(n==="href"&&o(String(t)),!0)}),u=new Proxy({},{get(e,n){return n==="closed"?!1:n==="location"?w:n==="opener"?window:s},set(e,n,t){return n==="location"&&o(String(t)),!0}});window.open=function(n,t,d){return i?(o(n==null?"":String(n)),u):a(n,t,d)}})();
})()
