"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _asyncToGenerator2=_interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));var _default=function(){var _ref=(0,_asyncToGenerator2.default)(function*(array){
return new Promise(function(){var _ref2=(0,_asyncToGenerator2.default)(function*(resolve,reject){
if(Array.isArray(array)){
array.forEach(function(){var _ref3=(0,_asyncToGenerator2.default)(function*(loop){
try{
yield loop();
return resolve();
}catch(error){
return reject(error);
}
});return function(_x4){return _ref3.apply(this,arguments)}}());
}
});return function(_x2,_x3){return _ref2.apply(this,arguments)}}());
});return function(_x){return _ref.apply(this,arguments)}}();exports.default=_default;