var __awaiter=this&&this.__awaiter||function(n,e,r,t){function i(n){return n instanceof r?n:new r((function(e){e(n)}))}return new(r||(r=Promise))((function(r,a){function u(n){try{s(t.next(n))}catch(e){a(e)}}function o(n){try{s(t["throw"](n))}catch(e){a(e)}}function s(n){n.done?r(n.value):i(n.value).then(u,o)}s((t=t.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(n){return function(e){return s([n,e])}}function s(u){if(t)throw new TypeError("Generator is already executing.");while(r)try{if(t=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;i=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){r.label=u[1];break}if(u[0]===6&&r.label<a[1]){r.label=a[1];a=u;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(u);break}if(a[2])r.ops.pop();r.trys.pop();continue}u=e.call(n,r)}catch(o){u=[6,o];i=0}finally{t=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-f992a882.system.js","./p-7f6a65ec.system.js","./p-c1832610.system.js","./p-b5b01e2c.system.js"],(function(n){"use strict";var e,r,t,i;return{setters:[function(n){e=n.b},function(n){r=n.c},function(n){t=n.c},function(n){i=n.MENU_BACK_BUTTON_PRIORITY}],execute:function(){var a=this;var u=function(n){return t().duration(n?400:300)};var o=function(n){var r;var i;var a=n.width+8;var o=t();var s=t();if(n.isEndSide){r=a+"px";i="0px"}else{r=-a+"px";i="0px"}o.addElement(n.menuInnerEl).fromTo("transform","translateX("+r+")","translateX("+i+")");var c=e(n);var f=c==="ios";var l=f?.2:.25;s.addElement(n.backdropEl).fromTo("opacity",.01,l);return u(f).addAnimation([o,s])};var s=function(n){var r;var i;var a=e(n);var o=n.width;if(n.isEndSide){r=-o+"px";i=o+"px"}else{r=o+"px";i=-o+"px"}var s=t().addElement(n.menuInnerEl).fromTo("transform","translateX("+i+")","translateX(0px)");var c=t().addElement(n.contentEl).fromTo("transform","translateX(0px)","translateX("+r+")");var f=t().addElement(n.backdropEl).fromTo("opacity",.01,.32);return u(a==="ios").addAnimation([s,c,f])};var c=function(n){var r=e(n);var i=n.width*(n.isEndSide?-1:1)+"px";var a=t().addElement(n.contentEl).fromTo("transform","translateX(0px)","translateX("+i+")");return u(r==="ios").addAnimation(a)};var f=function(){var n=new Map;var e=[];var t=function(n){return __awaiter(a,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:return[4,p(n)];case 1:e=r.sent();if(e){return[2,e.open()]}return[2,false]}}))}))};var u=function(n){return __awaiter(a,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:return[4,n!==undefined?p(n):h()];case 1:e=r.sent();if(e!==undefined){return[2,e.close()]}return[2,false]}}))}))};var f=function(n){return __awaiter(a,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:return[4,p(n)];case 1:e=r.sent();if(e){return[2,e.toggle()]}return[2,false]}}))}))};var l=function(n,e){return __awaiter(a,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:return[4,p(e)];case 1:r=t.sent();if(r){r.disabled=!n}return[2,r]}}))}))};var d=function(n,e){return __awaiter(a,void 0,void 0,(function(){var r;return __generator(this,(function(t){switch(t.label){case 0:return[4,p(e)];case 1:r=t.sent();if(r){r.swipeGesture=n}return[2,r]}}))}))};var v=function(n){return __awaiter(a,void 0,void 0,(function(){var e,e;return __generator(this,(function(r){switch(r.label){case 0:if(!(n!=null))return[3,2];return[4,p(n)];case 1:e=r.sent();return[2,e!==undefined&&e.isOpen()];case 2:return[4,h()];case 3:e=r.sent();return[2,e!==undefined]}}))}))};var _=function(n){return __awaiter(a,void 0,void 0,(function(){var e;return __generator(this,(function(r){switch(r.label){case 0:return[4,p(n)];case 1:e=r.sent();if(e){return[2,!e.disabled]}return[2,false]}}))}))};var p=function(n){return __awaiter(a,void 0,void 0,(function(){var r,t;return __generator(this,(function(i){switch(i.label){case 0:return[4,k()];case 1:i.sent();if(n==="start"||n==="end"){r=X((function(e){return e.side===n&&!e.disabled}));if(r){return[2,r]}return[2,X((function(e){return e.side===n}))]}else if(n!=null){return[2,X((function(e){return e.menuId===n}))]}t=X((function(n){return!n.disabled}));if(t){return[2,t]}return[2,e.length>0?e[0].el:undefined]}}))}))};var h=function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,k()];case 1:n.sent();return[2,A()]}}))}))};var m=function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,k()];case 1:n.sent();return[2,T()]}}))}))};var w=function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,k()];case 1:n.sent();return[2,S()]}}))}))};var b=function(e,r){n.set(e,r)};var g=function(n){if(e.indexOf(n)<0){if(!n.disabled){E(n)}e.push(n)}};var y=function(n){var r=e.indexOf(n);if(r>-1){e.splice(r,1)}};var E=function(n){var r=n.side;e.filter((function(e){return e.side===r&&e!==n})).forEach((function(n){return n.disabled=true}))};var x=function(n,e,r){return __awaiter(a,void 0,void 0,(function(){var t;return __generator(this,(function(i){switch(i.label){case 0:if(S()){return[2,false]}if(!e)return[3,3];return[4,h()];case 1:t=i.sent();if(!(t&&n.el!==t))return[3,3];return[4,t.setOpen(false,false)];case 2:i.sent();i.label=3;case 3:return[2,n._setOpen(e,r)]}}))}))};var O=function(e,r){var t=n.get(e);if(!t){throw new Error("animation not registered")}var i=t(r);return i};var A=function(){return X((function(n){return n._isOpen}))};var T=function(){return e.map((function(n){return n.el}))};var S=function(){return e.some((function(n){return n.isAnimating}))};var X=function(n){var r=e.find(n);if(r!==undefined){return r.el}return undefined};var k=function(){return Promise.all(Array.from(document.querySelectorAll("ion-menu")).map((function(n){return new Promise((function(e){return r(n,e)}))})))};b("reveal",c);b("push",s);b("overlay",o);if(typeof document!=="undefined"){document.addEventListener("ionBackButton",(function(n){var e=A();if(e){n.detail.register(i,(function(){return e.close()}))}}))}return{registerAnimation:b,get:p,getMenus:m,getOpen:h,isEnabled:_,swipeGesture:d,isAnimating:w,isOpen:v,enable:l,toggle:f,close:u,open:t,_getOpenSync:A,_createAnimation:O,_register:g,_unregister:y,_setOpen:x,_setActiveMenu:E}};var l=n("m",f())}}}));