var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();System.register(["./p-91543c07.system.js","./p-a7c6873b.system.js"],(function(t){"use strict";var e,n,r;return{setters:[function(t){e=t.d},function(t){n=t.L;r=t.a}],execute:function(){t("L",s);var i=function(t){__extends(e,t);function e(e){var n=t.call(this)||this;n.tags=[];n.mutationObserver=undefined;n.mutationObserverInit={childList:true,subtree:true,attributes:true,characterData:true};n.mutationCallback=function(t){var e=t.some((function(t){return n.tags.includes(t.target.nodeName)}));if(e){return n.notify(undefined)}var r=t.some((function(t){return Array.from(t.removedNodes).some((function(t){return n.tags.includes(t.nodeName)}))}));if(r){return n.notify(undefined)}var i=t.some((function(t){return t.type==="characterData"}));if(i){return n.notify(undefined)}if(n.tags.length===0&&t.length>0){return n.notify(undefined)}};n.tags=(e.tags||[]).map((function(t){return t.toUpperCase()}));n.mutationObserverInit={childList:e.childList===false?false:true,subtree:e.subtree===false?false:true,attributes:e.attributes===false?false:true,characterData:e.characterData===false?false:true};return n}e.prototype.connect=function(e){t.prototype.connect.call(this,e);if(typeof MutationObserver==="undefined"){return}this.destroyMutationObserver();this.mutationObserver=new MutationObserver(this.mutationCallback);this.mutationObserver.observe(e,this.mutationObserverInit)};e.prototype.disconnect=function(){t.prototype.disconnect.call(this);this.destroyMutationObserver()};e.prototype.destroyMutationObserver=function(){if(this.mutationObserver!==undefined){this.mutationObserver.disconnect();this.mutationObserver=undefined}};return e}(n);var o=function(t){__extends(n,t);function n(n){var r=t.call(this,(function(t){if(t.mutationObserverActive){t.mutationListener()}}))||this;r.options=n;r.debouncedNotify=e((function(){return r.notify()}),10);r.listener=new i(n);return r}n.prototype.attach=function(e){var n=this;var r,i,o;t.prototype.attach.call(this,e);if(this.options.closest){var s=e.el.closest(this.options.closest);if(s){(r=this.listener)===null||r===void 0?void 0:r.connect(s)}}else{(i=this.listener)===null||i===void 0?void 0:i.connect(e.el)}(o=this.listener)===null||o===void 0?void 0:o.add((function(){return n.debouncedNotify()}))};n.prototype.detach=function(){var e;t.prototype.detach.call(this);(e=this.listener)===null||e===void 0?void 0:e.disconnect()};return n}(r);function s(t){return function(e,n,r){var i=e.connectedCallback,s=e.disconnectedCallback;e.connectedCallback=function(){this._balMutationSubject=new o(t);this._balMutationSubject.attach(this);return i&&i.call(this)};e.disconnectedCallback=function(){this._balMutationSubject.detach();return s&&s.call(this)}}}}}}));