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 e(){this.constructor=n}n.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}}();var __awaiter=this&&this.__awaiter||function(t,n,i,e){function r(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(e.next(t))}catch(t){u(t)}}function s(t){try{f(e["throw"](t))}catch(t){u(t)}}function f(t){t.done?i(t.value):r(t.value).then(o,s)}f((e=e.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:[]},e,r,u,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=s(0),o["throw"]=s(1),o["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(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=n.call(t,i)}catch(t){s=[6,t];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-DdX8FaaK.system.js","./p-DDPYMMGG.system.js","./p-D1opIX9W.system.js"],(function(t,n){"use strict";var i,e,r,u;return{setters:[function(t){i=t.b},function(t){e=t.L;r=t.a},function(t){u=t.l}],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(e){switch(e.label){case 0:t.prototype.connect.call(this,n);return[4,this.loadLib()];case 1:e.sent();if(this.PointerListenerLib){this.pointerListener=new this.PointerListenerLib(n,{handleTouchEvents:false});this.shadowFixPointerDownListener=function(t){var i=t.target;if(i&&i!==n&&i.shadowRoot){i.releasePointerCapture(t.pointerId)}};n.addEventListener("pointerdown",this.shadowFixPointerDownListener);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;if(this.shadowFixPointerDownListener&&this.el){this.el.removeEventListener("pointerdown",this.shadowFixPointerDownListener);this.shadowFixPointerDownListener=undefined}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,e){u((function(){return __awaiter(t,void 0,void 0,(function(){var t=this;return __generator(this,(function(r){n.import("./p-D5Gy6WbU.system.js").then((function(n){t.PointerListenerLib=n.PointerListener;i()})).catch(e);return[2]}))}))}))}))]}))}))};return i}(e);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 e=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(e,n)}))}};n.prototype.detach=function(){t.prototype.detach.call(this);this.listener.disconnect()};return n}(r);t("B",s)}}}));