var __extends=this&&this.__extends||function(){var t=function(n,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i))t[i]=n[i]};return t(n,i)};return function(n,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function r(){this.constructor=n}n.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(t,n,i,r){function e(t){return t instanceof i?t:new i((function(n){n(t)}))}return new(i||(i=Promise))((function(i,u){function o(t){try{f(r.next(t))}catch(t){u(t)}}function s(t){try{f(r["throw"](t))}catch(t){u(t)}}function f(t){t.done?i(t.value):e(t.value).then(o,s)}f((r=r.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var i={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,e,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(t){return function(n){return f([t,n])}}function f(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,e&&(u=s[0]&2?e["return"]:s[0]?e["throw"]||((u=e["return"])&&u.call(e),0):e.next)&&!(u=u.call(e,s[1])).done)return u;if(e=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++;e=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=n.call(t,i)}catch(t){s=[6,t];e=0}finally{r=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-61c16aaa.system.js","./p-a4f1fe2b.system.js","./p-2235b91f.system.js"],(function(t,n){"use strict";var i,r,e,u;return{setters:[function(t){i=t.b},function(t){r=t.L;e=t.a},function(t){u=t.k}],execute:function(){var o=function(t){__extends(i,t);function i(){return t!==null&&t.apply(this,arguments)||this}i.prototype.connect=function(n){return __awaiter(this,void 0,void 0,(function(){var i=this;return __generator(this,(function(r){switch(r.label){case 0:t.prototype.connect.call(this,n);return[4,this.loadLib()];case 1:r.sent();if(this.PointerListenerLib){this.pointerListener=new this.PointerListenerLib(n,{DEBUG:false});this.pointerListener.on("swipeleft",(function(){return i.notify({left:true,right:false})}));this.pointerListener.on("swiperight",(function(){return i.notify({left:false,right:true})}))}return[2]}}))}))};i.prototype.disconnect=function(){var n;t.prototype.disconnect.call(this);(n=this.pointerListener)===null||n===void 0?void 0:n.destroy()};i.prototype.loadLib=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(i){return[2,new Promise((function(i,r){u((function(){return __awaiter(t,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){n.import("./p-b43acc90.system.js").then((function(n){t.PointerListenerLib=n.PointerListener;i()})).catch(r);return[2]}))}))}))}))]}))}))};return i}(r);var s=function(t){__extends(n,t);function n(n){if(n===void 0){n={mobileOnly:false}}var i=t.call(this,(function(t,n){if(n){t.swipeListener(n)}}))||this;i.options=n;i.listener=new o;return i}n.prototype.attach=function(n){var r=this;if(this.options.mobileOnly===true&&i.isMobile||this.options.mobileOnly!==true){t.prototype.attach.call(this,n);this.listener.connect(n.el);this.listener.add((function(n){return t.prototype.notify.call(r,n)}))}};n.prototype.detach=function(){t.prototype.detach.call(this);this.listener.disconnect()};return n}(e);t("B",s)}}}));