(()=>{"use strict";var w={32159:function(j,l){var O=this&&this.__createBinding||(Object.create?function(n,t,e,a){a===void 0&&(a=e);var u=Object.getOwnPropertyDescriptor(t,e);(!u||("get"in u?!t.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return t[e]}}),Object.defineProperty(n,a,u)}:function(n,t,e,a){a===void 0&&(a=e),n[a]=t[e]}),R=this&&this.__setModuleDefault||(Object.create?function(n,t){Object.defineProperty(n,"default",{enumerable:!0,value:t})}:function(n,t){n.default=t}),m=this&&this.__importStar||function(n){if(n&&n.__esModule)return n;var t={};if(n!=null)for(var e in n)e!=="default"&&Object.prototype.hasOwnProperty.call(n,e)&&O(t,n,e);return R(t,n),t},f=this&&this.__awaiter||function(n,t,e,a){function u(r){return r instanceof e?r:new e(function(s){s(r)})}return new(e||(e=Promise))(function(r,s){function o(c){try{i(a.next(c))}catch(p){s(p)}}function b(c){try{i(a.throw(c))}catch(p){s(p)}}function i(c){c.done?r(c.value):u(c.value).then(o,b)}i((a=a.apply(n,t||[])).next())})},h=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,u,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(i){return function(c){return b([i,c])}}function b(i){if(a)throw new TypeError("Generator is already executing.");for(;e;)try{if(a=1,u&&(r=i[0]&2?u.return:i[0]?u.throw||((r=u.return)&&r.call(u),0):u.next)&&!(r=r.call(u,i[1])).done)return r;switch(u=0,r&&(i=[i[0]&2,r.value]),i[0]){case 0:case 1:r=i;break;case 4:return e.label++,{value:i[1],done:!1};case 5:e.label++,u=i[1],i=[0];continue;case 7:i=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(i[0]===6||i[0]===2)){e=0;continue}if(i[0]===3&&(!r||i[1]>r[0]&&i[1]<r[3])){e.label=i[1];break}if(i[0]===6&&e.label<r[1]){e.label=r[1],r=i;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(i);break}r[2]&&e.ops.pop(),e.trys.pop();continue}i=t.call(n,e)}catch(c){i=[6,c],u=0}finally{a=r=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},d=this&&this.__read||function(n,t){var e=typeof Symbol=="function"&&n[Symbol.iterator];if(!e)return n;var a=e.call(n),u,r=[],s;try{for(;(t===void 0||t-- >0)&&!(u=a.next()).done;)r.push(u.value)}catch(o){s={error:o}}finally{try{u&&!u.done&&(e=a.return)&&e.call(a)}finally{if(s)throw s.error}}return r},v=this&&this.__spreadArray||function(n,t,e){if(e||arguments.length===2)for(var a=0,u=t.length,r;a<u;a++)(r||!(a in t))&&(r||(r=Array.prototype.slice.call(t,0,a)),r[a]=t[a]);return n.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(l,"__esModule",{value:!0}),l.processHttpSignedDataRequest=l.processHttpRequest=l.run=l.startCoordinator=void 0;var g=process.env.AIRNODE_CLOUD_PROVIDER;if(!g)throw new Error("Missing cloud specification");function y(){return f(this,void 0,void 0,function(){return h(this,function(n){switch(n.label){case 0:return[4,Promise.resolve().then(function(){return m(require("./handlers/".concat(g)))})];case 1:return[2,n.sent()]}})})}function D(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return f(this,void 0,void 0,function(){var e;return h(this,function(a){switch(a.label){case 0:return[4,y()];case 1:return e=a.sent(),[2,e.startCoordinator.apply(e,v([],d(n),!1))]}})})}l.startCoordinator=D;function S(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return f(this,void 0,void 0,function(){var e;return h(this,function(a){switch(a.label){case 0:return[4,y()];case 1:return e=a.sent(),[2,e.run.apply(e,v([],d(n),!1))]}})})}l.run=S;function q(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return f(this,void 0,void 0,function(){var e;return h(this,function(a){switch(a.label){case 0:return[4,y()];case 1:return e=a.sent(),[2,e.processHttpRequest.apply(e,v([],d(n),!1))]}})})}l.processHttpRequest=q;function H(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];return f(this,void 0,void 0,function(){var e;return h(this,function(a){switch(a.label){case 0:return[4,y()];case 1:return e=a.sent(),[2,e.processHttpSignedDataRequest.apply(e,v([],d(n),!1))]}})})}l.processHttpSignedDataRequest=H}},_={};w[32159](0,_),module.exports=_})();

//# sourceMappingURL=index.js.map