var _a,_b;let nativeInsertBefore=Node.prototype.insertBefore,nativeRemoveChild=Node.prototype.removeChild,nativeGetParentNode=null!=(_b=null==(_a=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))?void 0:_a.get)?_b:function(){return this.parentNode},installReplaceWith=e=>{let t=e.prototype;t.hasOwnProperty("replaceWith")||Object.defineProperty(t,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(...e){let t=nativeGetParentNode.call(this);if(null!==t){for(let r of e)nativeInsertBefore.call(t,"string"==typeof r?document.createTextNode(r):r,this);nativeRemoveChild.call(t,this)}}})};installReplaceWith(CharacterData),installReplaceWith(Element);export{};