window.addEventListener("message",function(a){if(!MXGRAPH.editorFrame||a.source!=MXGRAPH.editorFrame[0].contentWindow||a.origin!=window.location.origin){return}a.stopImmediatePropagation();var c=null;try{c=JSON.parse(a.data)}catch(b){return}var c=JSON.parse(a.data);if(c["function"]=="MXGRAPH.postSave"){MXGRAPH.postSave.apply(this,(c["arguments"]))}if(c["function"]=="MXGRAPH.closeEditor"){MXGRAPH.closeEditor()}if(c["function"]=="MXGRAPH.insertMacro"){MXGRAPH.insertMacro.apply(this,(c["arguments"]))}});