var __extends=this&&this.__extends||function(){var n=function(t,i){n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))n[i]=t[i]};return n(t,i)};return function(t,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(t,i);function e(){this.constructor=t}t.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();System.register(["./p-3LIXbT1U.system.js","./p-IvzuAEsC.system.js"],(function(n){"use strict";var t,i,e,r,u;return{setters:[function(n){t=n.I;i=n.a;e=n.J},function(n){r=n.L;u=n.a}],execute:function(){n("L",o);var s=function(n){__extends(e,n);function e(){var i=n.apply(this,arguments)||this;i.debouncedNotify=t((function(n){return i.notify(n)}),42);return i}e.prototype.connect=function(t){var e=this;var r;n.prototype.connect.call(this,t);if(typeof ResizeObserver==="undefined"){return}if(this.resizeObserver!==undefined){(r=this.resizeObserver)===null||r===void 0?void 0:r.disconnect();this.resizeObserver=undefined}this.resizeObserver=new ResizeObserver((function(n){if(i.hasWindow){window.requestAnimationFrame((function(){if(!Array.isArray(n)||!n.length){return}var t=n[0];if(e.lastWidth===undefined&&e.lastHeight===undefined){e.lastWidth=t.contentRect.width;e.lastHeight=t.contentRect.height}else{var i=e.lastWidth!==t.contentRect.width;var r=e.lastHeight!==t.contentRect.height;if(i||r){e.debouncedNotify({width:i,height:r});e.lastWidth=t.contentRect.width;e.lastHeight=t.contentRect.height}}}))}}));this.resizeObserver.observe(t)};e.prototype.disconnect=function(){var t;n.prototype.disconnect.call(this);(t=this.resizeObserver)===null||t===void 0?void 0:t.disconnect();this.resizeObserver=undefined};return e}(r);var f=function(n){__extends(t,n);function t(){var t=n.call(this,(function(n,t){e((function(){return n.resizeListener(t)}))}))||this;t.listener=new s;return t}t.prototype.attach=function(t){var i=this;n.prototype.attach.call(this,t);this.listener.connect(t.el);this.listener.add((function(t){return n.prototype.notify.call(i,t)}))};t.prototype.detach=function(){n.prototype.detach.call(this);this.listener.disconnect()};return t}(u);function o(){return function(n,t,i){var e=n.connectedCallback,r=n.disconnectedCallback;n.connectedCallback=function(){if(!this._balResizeSubject){this._balResizeSubject=new f;this._balResizeSubject.attach(this)}return e&&e.call(this)};n.disconnectedCallback=function(){if(this._balResizeSubject){this._balResizeSubject.detach();this._balResizeSubject=undefined}return r&&r.call(this)}}}}}}));