System.register([],(function(n){"use strict";return{execute:function(){var t=function(){function n(){this.errors={};this.loading=false;this.errorsAdded=new CustomEvent("errorsAdded")}n.prototype.setLoading=function(n){this.loading=n};n.prototype.get=function(n){var t;if(this.errors[n]===undefined){return[]}if(typeof this.errors[n]==="string"){return[this.errors[n]]}return(t=this.errors[n])!==null&&t!==void 0?t:[]};n.prototype.remove=function(n){var t=this;if(Array.isArray(n)){n.forEach((function(n){delete t.errors[n]}))}else{delete this.errors[n]}};n.prototype.fill=function(n){this.errors=n||{};document.dispatchEvent(this.errorsAdded)};n.prototype.all=function(){return this.errors};n.prototype.clear=function(){this.errors={}};n.create=function(){var t=new n;return Object.assign((function(n){return t.fill(n)}),{setLoading:function(n){return t.setLoading(n)},get:function(n){return t.get(n)},remove:function(n){return t.remove(n)},fill:function(n){return t.fill(n)},all:function(){return t.all()},clear:function(){return t.clear()}})};return n}();var e=n("E",t.create())}}}));