text: var __awaiter=this&&this.__awaiter||function(t,e,r,n){function a(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,i){function u(t){try{c(n.next(t))}catch(e){i(e)}}function o(t){try{c(n["throw"](t))}catch(e){i(e)}}function c(t){t.done?r(t.value):a(t.value).then(u,o)}c((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,u;return u={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function o(t){return function(e){return c([t,e])}}function c(u){if(n)throw new TypeError("Generator is already executing.");while(r)try{if(n=1,a&&(i=u[0]&2?a["return"]:u[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,u[1])).done)return i;if(a=0,i)u=[u[0]&2,i.value];switch(u[0]){case 0:case 1:i=u;break;case 4:r.label++;return{value:u[1],done:false};case 5:r.label++;a=u[1];u=[0];continue;case 7:u=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){r=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){r.label=u[1];break}if(u[0]===6&&r.label<i[1]){r.label=i[1];i=u;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(u);break}if(i[2])r.ops.pop();r.trys.pop();continue}u=e.call(t,r)}catch(o){u=[6,o];a=0}finally{n=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register([],(function(t){"use strict";return{execute:function(){var e=this;var r=t("startHardwareBackButton",(function(){var t=document;var e=false;t.addEventListener("backbutton",(function(){if(e){return}var r=[];var a=new CustomEvent("ionBackButton",{bubbles:false,detail:{register:function(t,e){r.push({priority:t,handler:e})}}});t.dispatchEvent(a);if(r.length>0){var i=Number.MIN_SAFE_INTEGER;var u;r.forEach((function(t){var e=t.priority,r=t.handler;if(e>=i){i=e;u=r}}));e=true;n(u).then((function(){return e=false}))}}))}));var n=function(t){return __awaiter(e,void 0,void 0,(function(){var e,r;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,3,,4]);if(!t)return[3,2];e=t();if(!(e!=null))return[3,2];return[4,e];case 1:n.sent();n.label=2;case 2:return[3,4];case 3:r=n.sent();console.error(r);return[3,4];case 4:return[2]}}))}))};var a=t("OVERLAY_BACK_BUTTON_PRIORITY",100);var i=t("MENU_BACK_BUTTON_PRIORITY",99)}}}));