!function(a,b){"function"==typeofdefine&&define.amd?define([],function(){returnb()}):"object"==typeofmodule&&module.exports?module.exports=b():b()}(0,function(){functiona(a,b){"use strict";returnfunction(c){if(!(c&&(angular.isArray(c.files)||angular.isString(c.prefix)&&angular.isString(c.suffix))))thrownewError("Couldn't load static files, no files and prefix or suffix specified!");c.files||(c.files=[{prefix:c.prefix,suffix:c.suffix}]);for(vard=[],e=c.files.length,f=0;f<e;f++)d.push(function(d){if(!d||!angular.isString(d.prefix)||!angular.isString(d.suffix))thrownewError("Couldn't load static file, no prefix or suffix specified!");vare=[d.prefix,c.key,d.suffix].join("");returnangular.isObject(c.fileMap)&&c.fileMap[e]&&(e=c.fileMap[e]),b(angular.extend({url:e,method:"GET"},c.$http)).then(function(a){returna.data},function(){returna.reject(c.key)})}({prefix:c.files[f].prefix,key:c.key,suffix:c.files[f].suffix}));returna.all(d).then(function(a){for(varb=a.length,c={},d=0;d<b;d++)for(vareina[d])c[e]=a[d][e];returnc})}}returna.$inject=["$q","$http"],angular.module("pascalprecht.translate").factory("$translateStaticFilesLoader",a),a.displayName="$translateStaticFilesLoader","pascalprecht.translate"});