var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function c(t){try{u(r["throw"](t))}catch(t){o(t)}}function u(t){t.done?n(t.value):i(t.value).then(a,c)}u((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,a;return a={next:c(0),throw:c(1),return:c(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(t){return function(e){return u([t,e])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=a[0]&2?i["return"]:a[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;if(i=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){n.label=a[1];break}if(a[0]===6&&n.label<o[1]){n.label=o[1];o=a;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(a);break}if(o[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(t){a=[6,t];i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-45d6fbc2.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.B}],execute:function(){var n=function(){function t(){}t.prototype.postTrackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(n){return[2,e.instance.url("benefits/track-event").post(t).res()]}))}))};return t}();var r=new n;var i=function(){function t(){}t.prototype.trackAppLoadedAsync=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.trackEventAsync("appLoaded")]}))}))};t.prototype.trackPageViewedAsync=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.trackEventAsync({pageViewed:t})]}))}))};t.prototype.trackBenefitLinkClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"link",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackBenefitAttachmentClickedAsync=function(t){var e=t.benefitId,n=t.benefit;return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){t={benefitId:e,attachment:"document",category:n.category,subtitle:n.subtitle,title:n.title};return[2,this.trackEventAsync({benefitSelected:t})]}))}))};t.prototype.trackEventAsync=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(n){switch(n.label){case 0:n.trys.push([0,2,,3]);return[4,r.postTrackEventAsync({event:t})];case 1:n.sent();return[3,3];case 2:e=n.sent();return[2];case 3:return[2]}}))}))};return t}();var o=t("b",new i)}}}));