{"version":3,"sources":["jsdelivr-header.js","/npm/angular-promise-polyfill@0.0.4/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,IAAI,IAAM,QACP,OAAO,2BAA4B,IACnC,IAAI,CAAC,KAAM,UAAW,SAAS,EAAI,GAClC,EAAQ,QAAU,SAAS,GACzB,OAAO,EAAG,EACZ,EAEA,EAAQ,QAAQ,IAAM,EAAG,IAAI,KAAK,GAClC,EAAQ,QAAQ,OAAS,EAAG,OAAO,KAAK,GACxC,EAAQ,QAAQ,QAAU,EAAG,KAAK,KAAK,GAEvC,EAAQ,QAAQ,KAAO,SAAS,GAG9B,IAFA,IAAI,EAAa,EAAG,QAEZ,EAAI,EAAG,EAAI,EAAS,OAAQ,IAClC,EAAS,GAAG,MAAK,SAAS,GACrB,IACD,EAAW,QAAQ,GACnB,EAAa,KAEjB,IAEA,EAAS,GAAG,OAAM,SAAS,GACtB,IACD,EAAW,OAAO,GAClB,EAAa,KAEjB,IAGF,OAAO,EAAW,OACpB,CACF,IAEqB,iBAAZ,SACT,OAAO,QAAU,IAAI","file":"/npm/angular-promise-polyfill@0.0.4/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/angular-promise-polyfill@0.0.4/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nvar app = angular\n  .module('angular-promise-polyfill', [])\n  .run(['$q', '$window', function($q, $window) {\n    $window.Promise = function(executor) {\n      return $q(executor);\n    };\n  \n    $window.Promise.all = $q.all.bind($q);\n    $window.Promise.reject = $q.reject.bind($q);\n    $window.Promise.resolve = $q.when.bind($q);\n  \n    $window.Promise.race = function(promises) {\n      var promiseMgr = $q.defer();\n  \n      for(var i = 0; i < promises.length; i++) {\n        promises[i].then(function(result) {\n          if(promiseMgr) {\n            promiseMgr.resolve(result);\n            promiseMgr = null;\n          }\n        });\n  \n        promises[i].catch(function(result) {\n          if(promiseMgr) {\n            promiseMgr.reject(result);\n            promiseMgr = null;\n          }\n        });\n      }\n  \n      return promiseMgr.promise;\n    };\n  }]);\n\nif (typeof module  === 'object') {\n  module.exports = app.name;\n}\n"]}