var _a,_b;let nativeAppendChild=Node.prototype.appendChild,nativeRemoveChild=Node.prototype.removeChild,nativeGetFirstChild=null!=(_b=null==(_a=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))?void 0:_a.get)?_b:function(){return this.firstChild},installReplaceChildren=e=>{let t=e.prototype;t.hasOwnProperty("replaceChildren")||Object.defineProperty(t,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(...e){let t;for(;null!==(t=nativeGetFirstChild.call(this));)nativeRemoveChild.call(this,t);for(let t of e)nativeAppendChild.call(this,"string"==typeof t?document.createTextNode(t):t)}})};installReplaceChildren(Document),installReplaceChildren(DocumentFragment),installReplaceChildren(Element);export{};