import{aD as t,aE as e,aF as s}from"./p-BTBbFFOR.js";var n=function(t,e,s,n){var i,c=arguments.length,o=c<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,s):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(o=(c<3?i(o):c>3?i(e,s,o):i(e,s))||o);return c>3&&o&&Object.defineProperty(e,s,o),o};class i extends s{connectedCallback(){this.mutationObserver&&this.observeMutationObserver()}disconnectedCallback(){this.mutationObserver&&this.mutationObserver.disconnect()}componentDidLoad(){this.initMutationObserver(),this.observeMutationObserver()}constructor(t){super(),this.mutationObserver=null,this.observerEntry=t}initMutationObserver(){this.mutationObserver=new MutationObserver((async t=>{this.observerEntry.mutationFilter&&!this.observerEntry.mutationFilter(t,this.host)||this.observerEntry.callback(t)}))}observeMutationObserver(){const t=this.observerEntry.target?this.observerEntry.target():this.host;t&&this.mutationObserver&&this.mutationObserver.observe(t,this.observerEntry.options)}}n([t()],i.prototype,"host",void 0),n([e("connectedCallback")],i.prototype,"connectedCallback",null),n([e("disconnectedCallback")],i.prototype,"disconnectedCallback",null),n([e("componentDidLoad")],i.prototype,"componentDidLoad",null);export{i as M}