var __awaiter=this&&this.__awaiter||function(t,n,e,i){function r(t){return t instanceof e?t:new e((function(n){n(t)}))}return new(e||(e=Promise))((function(e,s){function f(t){try{o(i.next(t))}catch(t){s(t)}}function u(t){try{o(i["throw"](t))}catch(t){s(t)}}function o(t){t.done?e(t.value):r(t.value).then(f,u)}o((i=i.apply(t,n||[])).next())}))};var __generator=this&&this.__generator||function(t,n){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(t){return function(n){return o([t,n])}}function o(u){if(i)throw new TypeError("Generator is already executing.");while(f&&(f=0,u[0]&&(e=0)),e)try{if(i=1,r&&(s=u[0]&2?r["return"]:u[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;if(r=0,s)u=[u[0]&2,s.value];switch(u[0]){case 0:case 1:s=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;r=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){e.label=u[1];break}if(u[0]===6&&e.label<s[1]){e.label=s[1];s=u;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(u);break}if(s[2])e.ops.pop();e.trys.pop();continue}u=n.call(t,e)}catch(t){u=[6,t];r=0}finally{i=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-432920d7.system.js","./p-379464d8.system.js","./p-9b35c8a3.system.js","./p-df0014ec.system.js","./p-f4a83740.system.js","./p-e1deb153.system.js"],(function(t,n){"use strict";var e,i,r,s,f,u,o;return{setters:[function(t){e=t.r;i=t.h;r=t.g;s=t.H},function(t){f=t.l;u=t.k},function(t){o=t.L},function(){},function(){},function(){}],execute:function(){var c="bal-spinner,.bal-spinner{text-align:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-line-pack:center;align-content:center}bal-spinner svg,.bal-spinner svg{-webkit-transform:unset !important;transform:unset !important}";var a=c;var h=undefined&&undefined.__decorate||function(t,n,e,i){var r=arguments.length,s=r<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,e):i,f;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")s=Reflect.decorate(t,n,e,i);else for(var u=t.length-1;u>=0;u--)if(f=t[u])s=(r<3?f(s):r>3?f(n,e,s):f(n,e))||s;return r>3&&s&&Object.defineProperty(n,e,s),s};var l=t("bal_spinner",function(){function t(t){var i=this;e(this,t);this.animate=function(){return __awaiter(i,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){switch(n.label){case 0:return[4,this.load()];case 1:n.sent();if(this.currentRaf!==undefined){cancelAnimationFrame(this.currentRaf)}if(this.shouldAnimate()){this.destroy();this.currentRaf=f((function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(t){if(this.animationFunction){this.animationFunction(this.el,this.getColor())}return[2]}))}))}))}return[2]}}))}))};this.destroy=function(){if(i.animationItem&&i.animationItem.destroy){i.animationItem.destroy()}i.el.innerHTML=""};this.shouldAnimate=function(){if(typeof window==="undefined"){return false}if(i.animationFunction===undefined){return false}return!i.deactivated};this.load=function(){return __awaiter(i,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){return[2,new Promise((function(e,i){if(t.animationFunction){return e()}else{u((function(){return __awaiter(t,void 0,void 0,(function(){var t=this;return __generator(this,(function(r){n.import("./p-d0537382.system.js").then((function(n){t.animationFunction=n.animate;e()})).catch(i);return[2]}))}))}))}}))]}))}))};this.inverted=false;this.deactivated=false;this.color="blue";this.small=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.deactivatedWatcher=function(t,n){if(t!==n){if(this.deactivated){this.destroy()}else{this.animate()}}};t.prototype.componentDidLoad=function(){this.animate()};t.prototype.disconnectedCallback=function(){if(this.el&&!this.el.isConnected){this.destroy()}};t.prototype.getColor=function(){return this.inverted||this.color==="white"?"#ffffff":"#151f6d"};t.prototype.render=function(){return i(s,{role:"progressbar","aria-hidden":"true",style:{width:this.small?"32px":"64px"}})};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{deactivated:["deactivatedWatcher"]}},enumerable:false,configurable:true});return t}());h([o("bal-spinner")],l.prototype,"createLogger",null);l.style=a}}}));