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)}}();var __awaiter=this&&this.__awaiter||function(n,t,i,e){function r(n){return n instanceof i?n:new i((function(t){t(n)}))}return new(i||(i=Promise))((function(i,u){function o(n){try{c(e.next(n))}catch(n){u(n)}}function s(n){try{c(e["throw"](n))}catch(n){u(n)}}function c(n){n.done?i(n.value):r(n.value).then(o,s)}c((e=e.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},e,r,u,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(n){return function(t){return c([n,t])}}function c(s){if(e)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(e=1,r&&(u=s[0]&2?r["return"]:s[0]?r["throw"]||((u=r["return"])&&u.call(r),0):r.next)&&!(u=u.call(r,s[1])).done)return u;if(r=0,u)s=[s[0]&2,u.value];switch(s[0]){case 0:case 1:u=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;r=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(u=i.trys,u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){i.label=s[1];break}if(s[0]===6&&i.label<u[1]){i.label=u[1];u=s;break}if(u&&i.label<u[2]){i.label=u[2];i.ops.push(s);break}if(u[2])i.ops.pop();i.trys.pop();continue}s=t.call(n,i)}catch(n){s=[6,n];r=0}finally{e=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-CZqZRJHG.system.js","./p-DI4t7K8M.system.js"],(function(n){"use strict";var t,i,e,r,u;return{setters:[function(n){t=n.r;i=n.x;e=n.I},function(n){r=n.L;u=n.a}],execute:function(){n("L",c);var o=function(n){__extends(e,n);function e(){var t=n.apply(this,arguments)||this;t.waitAfterFramePrint=false;t.intersectionObserver=undefined;t.intersectionCallback=function(n){var i=n.some((function(n){return n.isIntersecting}));if(i){t.notify()}};return t}e.prototype.connect=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){switch(r.label){case 0:n.prototype.connect.call(this,e);if(typeof IntersectionObserver==="undefined"){return[2]}if(!this.waitAfterFramePrint)return[3,3];return[4,t(e)];case 1:r.sent();return[4,i()];case 2:r.sent();r.label=3;case 3:this.destroyMutationObserver();this.intersectionObserver=new IntersectionObserver(this.intersectionCallback,{root:null,threshold:.5});this.intersectionObserver.observe(e);return[2]}}))}))};e.prototype.disconnect=function(){n.prototype.disconnect.call(this);this.destroyMutationObserver()};e.prototype.destroyMutationObserver=function(){if(this.intersectionObserver!==undefined){this.intersectionObserver.disconnect();this.intersectionObserver=undefined}};return e}(r);var s=function(n){__extends(t,n);function t(){var t=n.call(this,(function(n){n.visibilityListener()}))||this;t.debouncedNotify=e((function(){return t.notify()}),50);t.listener=new o;return t}t.prototype.attach=function(t){var i=this;var e,r;n.prototype.attach.call(this,t);(e=this.listener)===null||e===void 0?void 0:e.connect(t.el);(r=this.listener)===null||r===void 0?void 0:r.add((function(){return i.debouncedNotify()}))};t.prototype.detach=function(){var t;n.prototype.detach.call(this);(t=this.listener)===null||t===void 0?void 0:t.disconnect()};return t}(u);function c(){return function(n,t,i){var e=n.connectedCallback,r=n.componentDidLoad,u=n.disconnectedCallback;n.connectedCallback=function(){if(!this._balVisibilitySubject){this._balVisibilitySubject=new s}return e&&e.call(this)};n.componentDidLoad=function(){this._balVisibilitySubject.attach(this);return r&&r.call(this)};n.disconnectedCallback=function(){if(this._balVisibilitySubject){this._balVisibilitySubject.detach();this._balVisibilitySubject=undefined}return u&&u.call(this)}}}}}}));