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{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(a,s)}c((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:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(a&&(a=0,s[0]&&(n=0)),n)try{if(r=1,i&&(o=s[0]&2?i["return"]:s[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,s[1])).done)return o;if(i=0,o)s=[s[0]&2,o.value];switch(s[0]){case 0:case 1:o=s;break;case 4:n.label++;return{value:s[1],done:false};case 5:n.label++;i=s[1];s=[0];continue;case 7:s=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){n.label=s[1];break}if(s[0]===6&&n.label<o[1]){n.label=o[1];o=s;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(s);break}if(o[2])n.ops.pop();n.trys.pop();continue}s=e.call(t,n)}catch(t){s=[6,t];i=0}finally{r=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-bcb8811f.system.js","./p-7dff37f8.system.js","./p-4c963f30.system.js","./p-cf04c148.system.js","./p-91543c07.system.js","./p-a77fefb8.system.js","./p-2d67ad31.system.js","./p-28972b53.system.js"],(function(t,e){"use strict";var n,r,i,o,a,s,c,u,f,l;return{setters:[function(t){n=t.r;r=t.c;i=t.h;o=t.H},function(t){a=t.b},function(t){s=t.b},function(t){c=t.b},function(t){u=t.r},function(t){f=t.L},function(t){l=t.i},function(){}],execute:function(){var p=".bal-app{position:relative;display:block}.bal-body.is-ready{visibility:inherit}";var h=undefined&&undefined.__decorate||function(t,e,n,r){var i=arguments.length,o=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,n):r,a;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")o=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)if(a=t[s])o=(i<3?a(o):i>3?a(e,n,o):a(e,n))||o;return i>3&&o&&Object.defineProperty(e,n,o),o};var b=t("bal_app",function(){function t(t){n(this,t);this.balAppLoad=r(this,"balAppLoad",7);this.mode="css";this.animated=true;this.ready=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.connectedCallback=function(){l(this.mode);c(this.animated)};t.prototype.componentDidLoad=function(){var t=this;u((function(){return __awaiter(t,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){this.balAppLoad.emit(true);this.ready=true;e.import("./p-af25c251.system.js").then((function(e){return t.focusVisible=e.startFocusVisible()}));return[2]}))}))}))};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.focusVisible){this.focusVisible.setFocus(t)}return[2]}))}))};t.prototype.render=function(){return i(o,{role:"application",class:{"bal-app":true,"bal-app--safari":a.isSafari,"bal-app--touch":s.hasTouchScreen}},i("slot",null))};return t}());h([f("bal-app")],b.prototype,"createLogger",null);b.style={css:p}}}}));