Files
actions/dist/mock/gitreleasemanager/open/bundle.js
2020-02-18 09:02:53 +02:00

324 lines
136 KiB
JavaScript

module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}([function(e,t){e.exports=require("assert")},function(e,t){e.exports=require("events")},function(e,t){e.exports=require("fs")},function(e,t){e.exports=require("http")},function(e,t){e.exports=require("https")},function(e,t){e.exports=require("net")},function(e,t){e.exports=require("os")},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("tls")},function(e,t){e.exports=require("url")},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("zlib")},,,,,,,function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./src/tasks/gitreleasemanager/open.ts")}({"./node_modules/inversify/lib/annotation/decorator_utils.js":
/*!******************************************************************!*\
!*** ./node_modules/inversify/lib/annotation/decorator_utils.js ***!
\******************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");function o(e,t,n,i,o){var s={},a="number"==typeof o,u=void 0!==o&&a?o.toString():n;if(a&&void 0!==n)throw new Error(r.INVALID_DECORATOR_OPERATION);Reflect.hasOwnMetadata(e,t)&&(s=Reflect.getMetadata(e,t));var c=s[u];if(Array.isArray(c))for(var l=0,d=c;l<d.length;l++){var f=d[l];if(f.key===i.key)throw new Error(r.DUPLICATED_METADATA+" "+f.key.toString())}else c=[];c.push(i),s[u]=c,Reflect.defineMetadata(e,s,t)}function s(e,t){Reflect.decorate(e,t)}function a(e,t){return function(n,r){t(n,r,e)}}t.tagParameter=function(e,t,n,r){o(i.TAGGED,e,t,r,n)},t.tagProperty=function(e,t,n){o(i.TAGGED_PROP,e.constructor,t,n)},t.decorate=function(e,t,n){"number"==typeof n?s([a(n,e)],t):"string"==typeof n?Reflect.decorate([e],t,n):s([e],t)}},"./node_modules/inversify/lib/annotation/inject.js":
/*!*********************************************************!*\
!*** ./node_modules/inversify/lib/annotation/inject.js ***!
\*********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),o=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js"),a=function(){function e(e){this._cb=e}return e.prototype.unwrap=function(){return this._cb()},e}();t.LazyServiceIdentifer=a,t.inject=function(e){return function(t,n,a){if(void 0===e)throw new Error(r.UNDEFINED_INJECT_ANNOTATION(t.name));var u=new o.Metadata(i.INJECT_TAG,e);"number"==typeof a?s.tagParameter(t,n,a,u):s.tagProperty(t,n,u)}}},"./node_modules/inversify/lib/annotation/injectable.js":
/*!*************************************************************!*\
!*** ./node_modules/inversify/lib/annotation/injectable.js ***!
\*************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.injectable=function(){return function(e){if(Reflect.hasOwnMetadata(i.PARAM_TYPES,e))throw new Error(r.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(i.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(i.PARAM_TYPES,t,e),e}}},"./node_modules/inversify/lib/annotation/multi_inject.js":
/*!***************************************************************!*\
!*** ./node_modules/inversify/lib/annotation/multi_inject.js ***!
\***************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=n(/*! ./decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.multiInject=function(e){return function(t,n,s){var a=new i.Metadata(r.MULTI_INJECT_TAG,e);"number"==typeof s?o.tagParameter(t,n,s,a):o.tagProperty(t,n,a)}}},"./node_modules/inversify/lib/annotation/named.js":
/*!********************************************************!*\
!*** ./node_modules/inversify/lib/annotation/named.js ***!
\********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=n(/*! ./decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.named=function(e){return function(t,n,s){var a=new i.Metadata(r.NAMED_TAG,e);"number"==typeof s?o.tagParameter(t,n,s,a):o.tagProperty(t,n,a)}}},"./node_modules/inversify/lib/annotation/optional.js":
/*!***********************************************************!*\
!*** ./node_modules/inversify/lib/annotation/optional.js ***!
\***********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=n(/*! ./decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.optional=function(){return function(e,t,n){var s=new i.Metadata(r.OPTIONAL_TAG,!0);"number"==typeof n?o.tagParameter(e,t,n,s):o.tagProperty(e,t,s)}}},"./node_modules/inversify/lib/annotation/post_construct.js":
/*!*****************************************************************!*\
!*** ./node_modules/inversify/lib/annotation/post_construct.js ***!
\*****************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),o=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js");t.postConstruct=function(){return function(e,t,n){var s=new o.Metadata(i.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(i.POST_CONSTRUCT,e.constructor))throw new Error(r.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(i.POST_CONSTRUCT,s,e.constructor)}}},"./node_modules/inversify/lib/annotation/tagged.js":
/*!*********************************************************!*\
!*** ./node_modules/inversify/lib/annotation/tagged.js ***!
\*********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),i=n(/*! ./decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.tagged=function(e,t){return function(n,o,s){var a=new r.Metadata(e,t);"number"==typeof s?i.tagParameter(n,o,s,a):i.tagProperty(n,o,a)}}},"./node_modules/inversify/lib/annotation/target_name.js":
/*!**************************************************************!*\
!*** ./node_modules/inversify/lib/annotation/target_name.js ***!
\**************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=n(/*! ./decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.targetName=function(e){return function(t,n,s){var a=new i.Metadata(r.NAME_TAG,e);o.tagParameter(t,n,s,a)}}},"./node_modules/inversify/lib/annotation/unmanaged.js":
/*!************************************************************!*\
!*** ./node_modules/inversify/lib/annotation/unmanaged.js ***!
\************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=n(/*! ./decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.unmanaged=function(){return function(e,t,n){var s=new i.Metadata(r.UNMANAGED_TAG,!0);o.tagParameter(e,t,n,s)}}},"./node_modules/inversify/lib/bindings/binding.js":
/*!********************************************************!*\
!*** ./node_modules/inversify/lib/bindings/binding.js ***!
\********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=function(){function e(e,t){this.id=i.id(),this.activated=!1,this.serviceIdentifier=e,this.scope=t,this.type=r.BindingTypeEnum.Invalid,this.constraint=function(e){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}return e.prototype.clone=function(){var t=new e(this.serviceIdentifier,this.scope);return t.activated=!1,t.implementationType=this.implementationType,t.dynamicValue=this.dynamicValue,t.scope=this.scope,t.type=this.type,t.factory=this.factory,t.provider=this.provider,t.constraint=this.constraint,t.onActivation=this.onActivation,t.cache=this.cache,t},e}();t.Binding=o},"./node_modules/inversify/lib/bindings/binding_count.js":
/*!**************************************************************!*\
!*** ./node_modules/inversify/lib/bindings/binding_count.js ***!
\**************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1}},"./node_modules/inversify/lib/constants/error_msgs.js":
/*!************************************************************!*\
!*** ./node_modules/inversify/lib/constants/error_msgs.js ***!
\************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",t.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",t.NULL_ARGUMENT="NULL argument",t.KEY_NOT_FOUND="Key Not Found",t.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",t.CANNOT_UNBIND="Could not unbind serviceIdentifier:",t.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",t.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",t.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",t.UNDEFINED_INJECT_ANNOTATION=function(e){return"@inject called with undefined this could mean that the class "+e+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},t.CIRCULAR_DEPENDENCY="Circular dependency found:",t.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",t.INVALID_BINDING_TYPE="Invalid binding type:",t.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",t.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",t.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",t.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",t.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",t.ARGUMENTS_LENGTH_MISMATCH=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"The number of constructor arguments in the derived class "+e[0]+" must be >= than the number of constructor arguments of its base class."},t.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",t.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",t.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",t.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",t.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",t.POST_CONSTRUCT_ERROR=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"@postConstruct error in class "+e[0]+": "+e[1]},t.CIRCULAR_DEPENDENCY_IN_FACTORY=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"It looks like there is a circular dependency in one of the '"+e[0]+"' bindings. Please investigate bindings withservice identifier '"+e[1]+"'."},t.STACK_OVERFLOW="Maximum call stack size exceeded"},"./node_modules/inversify/lib/constants/literal_types.js":
/*!***************************************************************!*\
!*** ./node_modules/inversify/lib/constants/literal_types.js ***!
\***************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"};t.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"};t.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"}},"./node_modules/inversify/lib/constants/metadata_keys.js":
/*!***************************************************************!*\
!*** ./node_modules/inversify/lib/constants/metadata_keys.js ***!
\***************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NAMED_TAG="named",t.NAME_TAG="name",t.UNMANAGED_TAG="unmanaged",t.OPTIONAL_TAG="optional",t.INJECT_TAG="inject",t.MULTI_INJECT_TAG="multi_inject",t.TAGGED="inversify:tagged",t.TAGGED_PROP="inversify:tagged_props",t.PARAM_TYPES="inversify:paramtypes",t.DESIGN_PARAM_TYPES="design:paramtypes",t.POST_CONSTRUCT="post_construct"},"./node_modules/inversify/lib/container/container.js":
/*!***********************************************************!*\
!*** ./node_modules/inversify/lib/container/container.js ***!
\***********************************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=(i=s.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! ../bindings/binding */"./node_modules/inversify/lib/bindings/binding.js"),s=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),a=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),u=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),c=n(/*! ../planning/metadata_reader */"./node_modules/inversify/lib/planning/metadata_reader.js"),l=n(/*! ../planning/planner */"./node_modules/inversify/lib/planning/planner.js"),d=n(/*! ../resolution/resolver */"./node_modules/inversify/lib/resolution/resolver.js"),f=n(/*! ../syntax/binding_to_syntax */"./node_modules/inversify/lib/syntax/binding_to_syntax.js"),p=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),h=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),y=n(/*! ./container_snapshot */"./node_modules/inversify/lib/container/container_snapshot.js"),g=n(/*! ./lookup */"./node_modules/inversify/lib/container/lookup.js"),m=function(){function e(e){var t=e||{};if("object"!=typeof t)throw new Error(""+s.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===t.defaultScope)t.defaultScope=a.BindingScopeEnum.Transient;else if(t.defaultScope!==a.BindingScopeEnum.Singleton&&t.defaultScope!==a.BindingScopeEnum.Transient&&t.defaultScope!==a.BindingScopeEnum.Request)throw new Error(""+s.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(void 0===t.autoBindInjectable)t.autoBindInjectable=!1;else if("boolean"!=typeof t.autoBindInjectable)throw new Error(""+s.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(void 0===t.skipBaseClassChecks)t.skipBaseClassChecks=!1;else if("boolean"!=typeof t.skipBaseClassChecks)throw new Error(""+s.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:t.autoBindInjectable,defaultScope:t.defaultScope,skipBaseClassChecks:t.skipBaseClassChecks},this.id=p.id(),this._bindingDictionary=new g.Lookup,this._snapshots=[],this._middleware=null,this.parent=null,this._metadataReader=new c.MetadataReader}return e.merge=function(t,n){var r=new e,i=l.getBindingDictionary(r),o=l.getBindingDictionary(t),s=l.getBindingDictionary(n);function a(e,t){e.traverse((function(e,n){n.forEach((function(e){t.add(e.serviceIdentifier,e.clone())}))}))}return a(o,i),a(s,i),r},e.prototype.load=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=this._getContainerModuleHelpersFactory(),r=0,i=e;r<i.length;r++){var o=i[r],s=n(o.id);o.registry(s.bindFunction,s.unbindFunction,s.isboundFunction,s.rebindFunction)}},e.prototype.loadAsync=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(this,void 0,void 0,(function(){var t,n,r,o,s;return i(this,(function(i){switch(i.label){case 0:t=this._getContainerModuleHelpersFactory(),n=0,r=e,i.label=1;case 1:return n<r.length?(o=r[n],s=t(o.id),[4,o.registry(s.bindFunction,s.unbindFunction,s.isboundFunction,s.rebindFunction)]):[3,4];case 2:i.sent(),i.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},e.prototype.unload=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=function(e){return function(t){return t.moduleId===e}};t.forEach((function(t){var n=r(t.id);e._bindingDictionary.removeByCondition(n)}))},e.prototype.bind=function(e){var t=this.options.defaultScope||a.BindingScopeEnum.Transient,n=new o.Binding(e,t);return this._bindingDictionary.add(e,n),new f.BindingToSyntax(n)},e.prototype.rebind=function(e){return this.unbind(e),this.bind(e)},e.prototype.unbind=function(e){try{this._bindingDictionary.remove(e)}catch(t){throw new Error(s.CANNOT_UNBIND+" "+h.getServiceIdentifierAsString(e))}},e.prototype.unbindAll=function(){this._bindingDictionary=new g.Lookup},e.prototype.isBound=function(e){var t=this._bindingDictionary.hasKey(e);return!t&&this.parent&&(t=this.parent.isBound(e)),t},e.prototype.isBoundNamed=function(e,t){return this.isBoundTagged(e,u.NAMED_TAG,t)},e.prototype.isBoundTagged=function(e,t,n){var r=!1;if(this._bindingDictionary.hasKey(e)){var i=this._bindingDictionary.get(e),o=l.createMockRequest(this,e,t,n);r=i.some((function(e){return e.constraint(o)}))}return!r&&this.parent&&(r=this.parent.isBoundTagged(e,t,n)),r},e.prototype.snapshot=function(){this._snapshots.push(y.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware))},e.prototype.restore=function(){var e=this._snapshots.pop();if(void 0===e)throw new Error(s.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=e.bindings,this._middleware=e.middleware},e.prototype.createChild=function(t){var n=new e(t||this.options);return n.parent=this,n},e.prototype.applyMiddleware=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this._middleware?this._middleware:this._planAndResolve();this._middleware=e.reduce((function(e,t){return t(e)}),n)},e.prototype.applyCustomMetadataReader=function(e){this._metadataReader=e},e.prototype.get=function(e){return this._get(!1,!1,a.TargetTypeEnum.Variable,e)},e.prototype.getTagged=function(e,t,n){return this._get(!1,!1,a.TargetTypeEnum.Variable,e,t,n)},e.prototype.getNamed=function(e,t){return this.getTagged(e,u.NAMED_TAG,t)},e.prototype.getAll=function(e){return this._get(!0,!0,a.TargetTypeEnum.Variable,e)},e.prototype.getAllTagged=function(e,t,n){return this._get(!1,!0,a.TargetTypeEnum.Variable,e,t,n)},e.prototype.getAllNamed=function(e,t){return this.getAllTagged(e,u.NAMED_TAG,t)},e.prototype.resolve=function(e){var t=this.createChild();return t.bind(e).toSelf(),t.get(e)},e.prototype._getContainerModuleHelpersFactory=function(){var e=this,t=function(e,t){e._binding.moduleId=t},n=function(n){return function(r){var i=e.rebind.bind(e)(r);return t(i,n),i}};return function(r){return{bindFunction:(i=r,function(n){var r=e.bind.bind(e)(n);return t(r,i),r}),isboundFunction:function(t){return e.isBound.bind(e)(t)},rebindFunction:n(r),unbindFunction:function(t){e.unbind.bind(e)(t)}};var i}},e.prototype._get=function(e,t,n,r,i,o){var a=null,u={avoidConstraints:e,contextInterceptor:function(e){return e},isMultiInject:t,key:i,serviceIdentifier:r,targetType:n,value:o};if(this._middleware){if(null==(a=this._middleware(u)))throw new Error(s.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(u);return a},e.prototype._planAndResolve=function(){var e=this;return function(t){var n=l.plan(e._metadataReader,e,t.isMultiInject,t.targetType,t.serviceIdentifier,t.key,t.value,t.avoidConstraints);return n=t.contextInterceptor(n),d.resolve(n)}},e}();t.Container=m},"./node_modules/inversify/lib/container/container_module.js":
/*!******************************************************************!*\
!*** ./node_modules/inversify/lib/container/container_module.js ***!
\******************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=i;var o=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=o},"./node_modules/inversify/lib/container/container_snapshot.js":
/*!********************************************************************!*\
!*** ./node_modules/inversify/lib/container/container_snapshot.js ***!
\********************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.of=function(t,n){var r=new e;return r.bindings=t,r.middleware=n,r},e}();t.ContainerSnapshot=r},"./node_modules/inversify/lib/container/lookup.js":
/*!********************************************************!*\
!*** ./node_modules/inversify/lib/container/lookup.js ***!
\********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=function(){function e(){this._map=new Map}return e.prototype.getMap=function(){return this._map},e.prototype.add=function(e,t){if(null==e)throw new Error(r.NULL_ARGUMENT);if(null==t)throw new Error(r.NULL_ARGUMENT);var n=this._map.get(e);void 0!==n?(n.push(t),this._map.set(e,n)):this._map.set(e,[t])},e.prototype.get=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);var t=this._map.get(e);if(void 0!==t)return t;throw new Error(r.KEY_NOT_FOUND)},e.prototype.remove=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);if(!this._map.delete(e))throw new Error(r.KEY_NOT_FOUND)},e.prototype.removeByCondition=function(e){var t=this;this._map.forEach((function(n,r){var i=n.filter((function(t){return!e(t)}));i.length>0?t._map.set(r,i):t._map.delete(r)}))},e.prototype.hasKey=function(e){if(null==e)throw new Error(r.NULL_ARGUMENT);return this._map.has(e)},e.prototype.clone=function(){var t=new e;return this._map.forEach((function(e,n){e.forEach((function(e){return t.add(n,e.clone())}))})),t},e.prototype.traverse=function(e){this._map.forEach((function(t,n){e(n,t)}))},e}();t.Lookup=i},"./node_modules/inversify/lib/inversify.js":
/*!*************************************************!*\
!*** ./node_modules/inversify/lib/inversify.js ***!
\*************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.METADATA_KEY=r;var i=n(/*! ./container/container */"./node_modules/inversify/lib/container/container.js");t.Container=i.Container;var o=n(/*! ./constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js");t.BindingScopeEnum=o.BindingScopeEnum,t.BindingTypeEnum=o.BindingTypeEnum,t.TargetTypeEnum=o.TargetTypeEnum;var s=n(/*! ./container/container_module */"./node_modules/inversify/lib/container/container_module.js");t.AsyncContainerModule=s.AsyncContainerModule,t.ContainerModule=s.ContainerModule;var a=n(/*! ./annotation/injectable */"./node_modules/inversify/lib/annotation/injectable.js");t.injectable=a.injectable;var u=n(/*! ./annotation/tagged */"./node_modules/inversify/lib/annotation/tagged.js");t.tagged=u.tagged;var c=n(/*! ./annotation/named */"./node_modules/inversify/lib/annotation/named.js");t.named=c.named;var l=n(/*! ./annotation/inject */"./node_modules/inversify/lib/annotation/inject.js");t.inject=l.inject,t.LazyServiceIdentifer=l.LazyServiceIdentifer;var d=n(/*! ./annotation/optional */"./node_modules/inversify/lib/annotation/optional.js");t.optional=d.optional;var f=n(/*! ./annotation/unmanaged */"./node_modules/inversify/lib/annotation/unmanaged.js");t.unmanaged=f.unmanaged;var p=n(/*! ./annotation/multi_inject */"./node_modules/inversify/lib/annotation/multi_inject.js");t.multiInject=p.multiInject;var h=n(/*! ./annotation/target_name */"./node_modules/inversify/lib/annotation/target_name.js");t.targetName=h.targetName;var y=n(/*! ./annotation/post_construct */"./node_modules/inversify/lib/annotation/post_construct.js");t.postConstruct=y.postConstruct;var g=n(/*! ./planning/metadata_reader */"./node_modules/inversify/lib/planning/metadata_reader.js");t.MetadataReader=g.MetadataReader;var m=n(/*! ./utils/id */"./node_modules/inversify/lib/utils/id.js");t.id=m.id;var v=n(/*! ./annotation/decorator_utils */"./node_modules/inversify/lib/annotation/decorator_utils.js");t.decorate=v.decorate;var _=n(/*! ./syntax/constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js");t.traverseAncerstors=_.traverseAncerstors,t.taggedConstraint=_.taggedConstraint,t.namedConstraint=_.namedConstraint,t.typeConstraint=_.typeConstraint;var b=n(/*! ./utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getServiceIdentifierAsString=b.getServiceIdentifierAsString;var w=n(/*! ./utils/binding_utils */"./node_modules/inversify/lib/utils/binding_utils.js");t.multiBindToService=w.multiBindToService},"./node_modules/inversify/lib/planning/context.js":
/*!********************************************************!*\
!*** ./node_modules/inversify/lib/planning/context.js ***!
\********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(){function e(e){this.id=r.id(),this.container=e}return e.prototype.addPlan=function(e){this.plan=e},e.prototype.setCurrentRequest=function(e){this.currentRequest=e},e}();t.Context=i},"./node_modules/inversify/lib/planning/metadata.js":
/*!*********************************************************!*\
!*** ./node_modules/inversify/lib/planning/metadata.js ***!
\*********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},e}();t.Metadata=i},"./node_modules/inversify/lib/planning/metadata_reader.js":
/*!****************************************************************!*\
!*** ./node_modules/inversify/lib/planning/metadata_reader.js ***!
\****************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=function(){function e(){}return e.prototype.getConstructorMetadata=function(e){return{compilerGeneratedMetadata:Reflect.getMetadata(r.PARAM_TYPES,e),userGeneratedMetadata:Reflect.getMetadata(r.TAGGED,e)||{}}},e.prototype.getPropertiesMetadata=function(e){return Reflect.getMetadata(r.TAGGED_PROP,e)||[]},e}();t.MetadataReader=i},"./node_modules/inversify/lib/planning/plan.js":
/*!*****************************************************!*\
!*** ./node_modules/inversify/lib/planning/plan.js ***!
\*****************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){this.parentContext=e,this.rootRequest=t};t.Plan=r},"./node_modules/inversify/lib/planning/planner.js":
/*!********************************************************!*\
!*** ./node_modules/inversify/lib/planning/planner.js ***!
\********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../bindings/binding_count */"./node_modules/inversify/lib/bindings/binding_count.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),u=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),c=n(/*! ./context */"./node_modules/inversify/lib/planning/context.js"),l=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),d=n(/*! ./plan */"./node_modules/inversify/lib/planning/plan.js"),f=n(/*! ./reflection_utils */"./node_modules/inversify/lib/planning/reflection_utils.js"),p=n(/*! ./request */"./node_modules/inversify/lib/planning/request.js"),h=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function y(e){return e._bindingDictionary}function g(e,t,n,o,s){var a=m(n.container,s.serviceIdentifier),c=[];return a.length===r.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof s.serviceIdentifier&&e.getConstructorMetadata(s.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(s.serviceIdentifier).toSelf(),a=m(n.container,s.serviceIdentifier)),c=t?a:a.filter((function(e){var t=new p.Request(e.serviceIdentifier,n,o,e,s);return e.constraint(t)})),function(e,t,n,o){switch(t.length){case r.BindingCount.NoBindingsAvailable:if(n.isOptional())return t;var s=u.getServiceIdentifierAsString(e),a=i.NOT_REGISTERED;throw a+=u.listMetadataForTarget(s,n),a+=u.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a);case r.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return t;case r.BindingCount.MultipleBindingsAvailable:default:if(n.isArray())return t;s=u.getServiceIdentifierAsString(e),a=i.AMBIGUOUS_MATCH+" "+s;throw a+=u.listRegisteredBindingsForServiceIdentifier(o,s,m),new Error(a)}}(s.serviceIdentifier,c,s,n.container),c}function m(e,t){var n=[],r=y(e);return r.hasKey(t)?n=r.get(t):null!==e.parent&&(n=m(e.parent,t)),n}t.getBindingDictionary=y,t.plan=function(e,t,n,r,y,m,v,_){void 0===_&&(_=!1);var b=new c.Context(t),w=function(e,t,n,r,i,o){var a=e?s.MULTI_INJECT_TAG:s.INJECT_TAG,u=new l.Metadata(a,n),c=new h.Target(t,r,n,u);if(void 0!==i){var d=new l.Metadata(i,o);c.metadata.push(d)}return c}(n,r,y,"",m,v);try{return function e(t,n,r,s,a,u){var c,l;if(null===a){c=g(t,n,s,null,u),l=new p.Request(r,s,null,c,u);var h=new d.Plan(s,l);s.addPlan(h)}else c=g(t,n,s,a,u),l=a.addChildRequest(u.serviceIdentifier,c,u);c.forEach((function(n){var r=null;if(u.isArray())r=l.addChildRequest(n.serviceIdentifier,n,u);else{if(n.cache)return;r=l}if(n.type===o.BindingTypeEnum.Instance&&null!==n.implementationType){var a=f.getDependencies(t,n.implementationType);if(!s.container.options.skipBaseClassChecks){var c=f.getBaseClassDependencyCount(t,n.implementationType);if(a.length<c){var d=i.ARGUMENTS_LENGTH_MISMATCH(f.getFunctionName(n.implementationType));throw new Error(d)}}a.forEach((function(n){e(t,!1,n.serviceIdentifier,s,r,n)}))}}))}(e,_,y,b,null,w),b}catch(e){throw a.isStackOverflowExeption(e)&&b.plan&&u.circularDependencyToException(b.plan.rootRequest),e}},t.createMockRequest=function(e,t,n,r){var i=new h.Target(o.TargetTypeEnum.Variable,"",t,new l.Metadata(n,r)),s=new c.Context(e);return new p.Request(t,s,null,[],i)}},"./node_modules/inversify/lib/planning/queryable_string.js":
/*!*****************************************************************!*\
!*** ./node_modules/inversify/lib/planning/queryable_string.js ***!
\*****************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.str=e}return e.prototype.startsWith=function(e){return 0===this.str.indexOf(e)},e.prototype.endsWith=function(e){var t,n=e.split("").reverse().join("");return t=this.str.split("").reverse().join(""),this.startsWith.call({str:t},n)},e.prototype.contains=function(e){return-1!==this.str.indexOf(e)},e.prototype.equals=function(e){return this.str===e},e.prototype.value=function(){return this.str},e}();t.QueryableString=r},"./node_modules/inversify/lib/planning/reflection_utils.js":
/*!*****************************************************************!*\
!*** ./node_modules/inversify/lib/planning/reflection_utils.js ***!
\*****************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../annotation/inject */"./node_modules/inversify/lib/annotation/inject.js"),i=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),o=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),s=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),a=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js");t.getFunctionName=a.getFunctionName;var u=n(/*! ./target */"./node_modules/inversify/lib/planning/target.js");function c(e,t,n,r){var s=e.getConstructorMetadata(n),a=s.compilerGeneratedMetadata;if(void 0===a){var c=i.MISSING_INJECTABLE_ANNOTATION+" "+t+".";throw new Error(c)}var f=s.userGeneratedMetadata,p=Object.keys(f),h=function(e,t,n,r,i){for(var o=[],s=0;s<i;s++){var a=l(s,e,t,n,r);null!==a&&o.push(a)}return o}(r,t,a,f,0===n.length&&p.length>0?p.length:n.length),y=function e(t,n){for(var r=t.getPropertiesMetadata(n),i=[],s=Object.keys(r),a=0,c=s;a<c.length;a++){var l=c[a],f=r[l],p=d(r[l]),h=p.targetName||l,y=p.inject||p.multiInject,g=new u.Target(o.TargetTypeEnum.ClassProperty,h,y);g.metadata=f,i.push(g)}var m=Object.getPrototypeOf(n.prototype).constructor;if(m!==Object){var v=e(t,m);i=i.concat(v)}return i}(e,n);return h.concat(y)}function l(e,t,n,s,a){var c=a[e.toString()]||[],l=d(c),f=!0!==l.unmanaged,p=s[e],h=l.inject||l.multiInject;if((p=h||p)instanceof r.LazyServiceIdentifer&&(p=p.unwrap()),f){if(!t&&(p===Object||p===Function||void 0===p)){var y=i.MISSING_INJECT_ANNOTATION+" argument "+e+" in class "+n+".";throw new Error(y)}var g=new u.Target(o.TargetTypeEnum.ConstructorArgument,l.targetName,p);return g.metadata=c,g}return null}function d(e){var t={};return e.forEach((function(e){t[e.key.toString()]=e.value})),{inject:t[s.INJECT_TAG],multiInject:t[s.MULTI_INJECT_TAG],targetName:t[s.NAME_TAG],unmanaged:t[s.UNMANAGED_TAG]}}t.getDependencies=function(e,t){return c(e,a.getFunctionName(t),t,!1)},t.getBaseClassDependencyCount=function e(t,n){var r=Object.getPrototypeOf(n.prototype).constructor;if(r!==Object){var i=c(t,a.getFunctionName(r),r,!0),o=i.map((function(e){return e.metadata.filter((function(e){return e.key===s.UNMANAGED_TAG}))})),u=[].concat.apply([],o).length,l=i.length-u;return l>0?l:e(t,r)}return 0}},"./node_modules/inversify/lib/planning/request.js":
/*!********************************************************!*\
!*** ./node_modules/inversify/lib/planning/request.js ***!
\********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),i=function(){function e(e,t,n,i,o){this.id=r.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=o,this.childRequests=[],this.bindings=Array.isArray(i)?i:[i],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,r){var i=new e(t,this.parentContext,this,n,r);return this.childRequests.push(i),i},e}();t.Request=i},"./node_modules/inversify/lib/planning/target.js":
/*!*******************************************************!*\
!*** ./node_modules/inversify/lib/planning/target.js ***!
\*******************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../utils/id */"./node_modules/inversify/lib/utils/id.js"),o=n(/*! ./metadata */"./node_modules/inversify/lib/planning/metadata.js"),s=n(/*! ./queryable_string */"./node_modules/inversify/lib/planning/queryable_string.js"),a=function(){function e(e,t,n,a){this.id=i.id(),this.type=e,this.serviceIdentifier=n,this.name=new s.QueryableString(t||""),this.metadata=new Array;var u=null;"string"==typeof a?u=new o.Metadata(r.NAMED_TAG,a):a instanceof o.Metadata&&(u=a),null!==u&&this.metadata.push(u)}return e.prototype.hasTag=function(e){for(var t=0,n=this.metadata;t<n.length;t++){if(n[t].key===e)return!0}return!1},e.prototype.isArray=function(){return this.hasTag(r.MULTI_INJECT_TAG)},e.prototype.matchesArray=function(e){return this.matchesTag(r.MULTI_INJECT_TAG)(e)},e.prototype.isNamed=function(){return this.hasTag(r.NAMED_TAG)},e.prototype.isTagged=function(){return this.metadata.some((function(e){return e.key!==r.INJECT_TAG&&e.key!==r.MULTI_INJECT_TAG&&e.key!==r.NAME_TAG&&e.key!==r.UNMANAGED_TAG&&e.key!==r.NAMED_TAG}))},e.prototype.isOptional=function(){return this.matchesTag(r.OPTIONAL_TAG)(!0)},e.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter((function(e){return e.key===r.NAMED_TAG}))[0]:null},e.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter((function(e){return e.key!==r.INJECT_TAG&&e.key!==r.MULTI_INJECT_TAG&&e.key!==r.NAME_TAG&&e.key!==r.UNMANAGED_TAG&&e.key!==r.NAMED_TAG})):null},e.prototype.matchesNamedTag=function(e){return this.matchesTag(r.NAMED_TAG)(e)},e.prototype.matchesTag=function(e){var t=this;return function(n){for(var r=0,i=t.metadata;r<i.length;r++){var o=i[r];if(o.key===e&&o.value===n)return!0}return!1}},e}();t.Target=a},"./node_modules/inversify/lib/resolution/instantiation.js":
/*!****************************************************************!*\
!*** ./node_modules/inversify/lib/resolution/instantiation.js ***!
\****************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js");t.resolveInstance=function(e,t,n){var s,a,u=null;if(t.length>0){var c=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ConstructorArgument})).map(n);a=c,u=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===i.TargetTypeEnum.ClassProperty})),o=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var i=o[n];e[r]=i})),e}(u=new((s=e).bind.apply(s,[void 0].concat(a))),t,n)}else u=new e;return function(e,t){if(Reflect.hasMetadata(o.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(o.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,u),u}},"./node_modules/inversify/lib/resolution/resolver.js":
/*!***********************************************************!*\
!*** ./node_modules/inversify/lib/resolution/resolver.js ***!
\***********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ../utils/exceptions */"./node_modules/inversify/lib/utils/exceptions.js"),s=n(/*! ../utils/serialization */"./node_modules/inversify/lib/utils/serialization.js"),a=n(/*! ./instantiation */"./node_modules/inversify/lib/resolution/instantiation.js"),u=function(e,t,n){try{return n()}catch(n){throw o.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):n}},c=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,o=t.childRequests,l=t.target&&t.target.isArray(),d=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&d)return o.map((function(t){return c(e)(t)}));var f=null;if(!t.target.isOptional()||0!==n.length){var p=n[0],h=p.scope===i.BindingScopeEnum.Singleton,y=p.scope===i.BindingScopeEnum.Request;if(h&&p.activated)return p.cache;if(y&&null!==e&&e.has(p.id))return e.get(p.id);if(p.type===i.BindingTypeEnum.ConstantValue)f=p.cache;else if(p.type===i.BindingTypeEnum.Function)f=p.cache;else if(p.type===i.BindingTypeEnum.Constructor)f=p.implementationType;else if(p.type===i.BindingTypeEnum.DynamicValue&&null!==p.dynamicValue)f=u("toDynamicValue",p.serviceIdentifier,(function(){return p.dynamicValue(t.parentContext)}));else if(p.type===i.BindingTypeEnum.Factory&&null!==p.factory)f=u("toFactory",p.serviceIdentifier,(function(){return p.factory(t.parentContext)}));else if(p.type===i.BindingTypeEnum.Provider&&null!==p.provider)f=u("toProvider",p.serviceIdentifier,(function(){return p.provider(t.parentContext)}));else{if(p.type!==i.BindingTypeEnum.Instance||null===p.implementationType){var g=s.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+g)}f=a.resolveInstance(p.implementationType,o,c(e))}return"function"==typeof p.onActivation&&(f=p.onActivation(t.parentContext,f)),h&&(p.cache=f,p.activated=!0),y&&null!==e&&!e.has(p.id)&&e.set(p.id,f),f}}};t.resolve=function(e){return c(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},"./node_modules/inversify/lib/syntax/binding_in_syntax.js":
/*!****************************************************************!*\
!*** ./node_modules/inversify/lib/syntax/binding_in_syntax.js ***!
\****************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),i=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),o=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new i.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new i.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=o},"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js":
/*!************************************************************************!*\
!*** ./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js ***!
\************************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_in_syntax */"./node_modules/inversify/lib/syntax/binding_in_syntax.js"),i=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),o=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),s=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new o.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new i.BindingOnSyntax(this._binding),this._bindingInSyntax=new r.BindingInSyntax(e)}return e.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},e.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},e.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingInWhenOnSyntax=s},"./node_modules/inversify/lib/syntax/binding_on_syntax.js":
/*!****************************************************************!*\
!*** ./node_modules/inversify/lib/syntax/binding_on_syntax.js ***!
\****************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),i=function(){function e(e){this._binding=e}return e.prototype.onActivation=function(e){return this._binding.onActivation=e,new r.BindingWhenSyntax(this._binding)},e}();t.BindingOnSyntax=i},"./node_modules/inversify/lib/syntax/binding_to_syntax.js":
/*!****************************************************************!*\
!*** ./node_modules/inversify/lib/syntax/binding_to_syntax.js ***!
\****************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js"),i=n(/*! ../constants/literal_types */"./node_modules/inversify/lib/constants/literal_types.js"),o=n(/*! ./binding_in_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_in_when_on_syntax.js"),s=n(/*! ./binding_when_on_syntax */"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js"),a=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=i.BindingTypeEnum.Instance,this._binding.implementationType=e,new o.BindingInWhenOnSyntax(this._binding)},e.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+r.INVALID_TO_SELF_VALUE);var e=this._binding.serviceIdentifier;return this.to(e)},e.prototype.toConstantValue=function(e){return this._binding.type=i.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=i.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new o.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=i.BindingTypeEnum.Constructor,this._binding.implementationType=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toFunction=function(e){if("function"!=typeof e)throw new Error(r.INVALID_FUNCTION_BINDING);var t=this.toConstantValue(e);return this._binding.type=i.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=i.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},new s.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=i.BindingTypeEnum.Provider,this._binding.provider=e,new s.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue((function(t){return t.container.get(e)}))},e}();t.BindingToSyntax=a},"./node_modules/inversify/lib/syntax/binding_when_on_syntax.js":
/*!*********************************************************************!*\
!*** ./node_modules/inversify/lib/syntax/binding_when_on_syntax.js ***!
\*********************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),i=n(/*! ./binding_when_syntax */"./node_modules/inversify/lib/syntax/binding_when_syntax.js"),o=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new r.BindingOnSyntax(this._binding)}return e.prototype.when=function(e){return this._bindingWhenSyntax.when(e)},e.prototype.whenTargetNamed=function(e){return this._bindingWhenSyntax.whenTargetNamed(e)},e.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},e.prototype.whenTargetTagged=function(e,t){return this._bindingWhenSyntax.whenTargetTagged(e,t)},e.prototype.whenInjectedInto=function(e){return this._bindingWhenSyntax.whenInjectedInto(e)},e.prototype.whenParentNamed=function(e){return this._bindingWhenSyntax.whenParentNamed(e)},e.prototype.whenParentTagged=function(e,t){return this._bindingWhenSyntax.whenParentTagged(e,t)},e.prototype.whenAnyAncestorIs=function(e){return this._bindingWhenSyntax.whenAnyAncestorIs(e)},e.prototype.whenNoAncestorIs=function(e){return this._bindingWhenSyntax.whenNoAncestorIs(e)},e.prototype.whenAnyAncestorNamed=function(e){return this._bindingWhenSyntax.whenAnyAncestorNamed(e)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenAnyAncestorTagged(e,t)},e.prototype.whenNoAncestorNamed=function(e){return this._bindingWhenSyntax.whenNoAncestorNamed(e)},e.prototype.whenNoAncestorTagged=function(e,t){return this._bindingWhenSyntax.whenNoAncestorTagged(e,t)},e.prototype.whenAnyAncestorMatches=function(e){return this._bindingWhenSyntax.whenAnyAncestorMatches(e)},e.prototype.whenNoAncestorMatches=function(e){return this._bindingWhenSyntax.whenNoAncestorMatches(e)},e.prototype.onActivation=function(e){return this._bindingOnSyntax.onActivation(e)},e}();t.BindingWhenOnSyntax=o},"./node_modules/inversify/lib/syntax/binding_when_syntax.js":
/*!******************************************************************!*\
!*** ./node_modules/inversify/lib/syntax/binding_when_syntax.js ***!
\******************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ./binding_on_syntax */"./node_modules/inversify/lib/syntax/binding_on_syntax.js"),i=n(/*! ./constraint_helpers */"./node_modules/inversify/lib/syntax/constraint_helpers.js"),o=function(){function e(e){this._binding=e}return e.prototype.when=function(e){return this._binding.constraint=e,new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetNamed=function(e){return this._binding.constraint=i.namedConstraint(e),new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(e){return null!==e.target&&!e.target.isNamed()&&!e.target.isTagged()},new r.BindingOnSyntax(this._binding)},e.prototype.whenTargetTagged=function(e,t){return this._binding.constraint=i.taggedConstraint(e)(t),new r.BindingOnSyntax(this._binding)},e.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return i.typeConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return i.namedConstraint(e)(t.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenParentTagged=function(e,t){return this._binding.constraint=function(n){return i.taggedConstraint(e)(t)(n.parentRequest)},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.typeConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,i.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,i.namedConstraint(e))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorTagged=function(e,t){return this._binding.constraint=function(n){return i.traverseAncerstors(n,i.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorTagged=function(e,t){return this._binding.constraint=function(n){return!i.traverseAncerstors(n,i.taggedConstraint(e)(t))},new r.BindingOnSyntax(this._binding)},e.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return i.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!i.traverseAncerstors(t,e)},new r.BindingOnSyntax(this._binding)},e}();t.BindingWhenSyntax=o},"./node_modules/inversify/lib/syntax/constraint_helpers.js":
/*!*****************************************************************!*\
!*** ./node_modules/inversify/lib/syntax/constraint_helpers.js ***!
\*****************************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/metadata_keys */"./node_modules/inversify/lib/constants/metadata_keys.js"),i=n(/*! ../planning/metadata */"./node_modules/inversify/lib/planning/metadata.js"),o=function(e,t){var n=e.parentRequest;return null!==n&&(!!t(n)||o(n,t))};t.traverseAncerstors=o;var s=function(e){return function(t){var n=function(n){return null!==n&&null!==n.target&&n.target.matchesTag(e)(t)};return n.metaData=new i.Metadata(e,t),n}};t.taggedConstraint=s;var a=s(r.NAMED_TAG);t.namedConstraint=a;t.typeConstraint=function(e){return function(t){var n=null;if(null!==t){if(n=t.bindings[0],"string"==typeof e)return n.serviceIdentifier===e;var r=t.bindings[0].implementationType;return e===r}return!1}}},"./node_modules/inversify/lib/utils/binding_utils.js":
/*!***********************************************************!*\
!*** ./node_modules/inversify/lib/utils/binding_utils.js ***!
\***********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.multiBindToService=function(e){return function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return n.forEach((function(n){return e.bind(n).toService(t)}))}}}},"./node_modules/inversify/lib/utils/exceptions.js":
/*!********************************************************!*\
!*** ./node_modules/inversify/lib/utils/exceptions.js ***!
\********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js");t.isStackOverflowExeption=function(e){return e instanceof RangeError||e.message===r.STACK_OVERFLOW}},"./node_modules/inversify/lib/utils/id.js":
/*!************************************************!*\
!*** ./node_modules/inversify/lib/utils/id.js ***!
\************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=0;t.id=function(){return r++}},"./node_modules/inversify/lib/utils/serialization.js":
/*!***********************************************************!*\
!*** ./node_modules/inversify/lib/utils/serialization.js ***!
\***********************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(/*! ../constants/error_msgs */"./node_modules/inversify/lib/constants/error_msgs.js");function i(e){return"function"==typeof e?e.name:"symbol"==typeof e?e.toString():e}function o(e){if(e.name)return e.name;var t=e.toString(),n=t.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+t}t.getServiceIdentifierAsString=i,t.listRegisteredBindingsForServiceIdentifier=function(e,t,n){var r="",i=n(e,t);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach((function(e){var t="Object";null!==e.implementationType&&(t=o(e.implementationType)),r=r+"\n "+t,e.constraint.metaData&&(r=r+" - "+e.constraint.metaData)}))),r},t.circularDependencyToException=function e(t){t.childRequests.forEach((function(t){if(function e(t,n){return null!==t.parentRequest&&(t.parentRequest.serviceIdentifier===n||e(t.parentRequest,n))}(t,t.serviceIdentifier)){var n=function(e){return function e(t,n){void 0===n&&(n=[]);var r=i(t.serviceIdentifier);return n.push(r),null!==t.parentRequest?e(t.parentRequest,n):n}(e).reverse().join(" --\x3e ")}(t);throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}e(t)}))},t.listMetadataForTarget=function(e,t){if(t.isTagged()||t.isNamed()){var n="",r=t.getNamedTag(),i=t.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach((function(e){n+=e.toString()+"\n"}))," "+e+"\n "+e+" - "+n}return" "+e},t.getFunctionName=o},"./node_modules/qs/lib/formats.js":
/*!****************************************!*\
!*** ./node_modules/qs/lib/formats.js ***!
\****************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=String.prototype.replace,i=/%20/g,o=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),s={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=o.assign({default:s.RFC3986,formatters:{RFC1738:function(e){return r.call(e,i,"+")},RFC3986:function(e){return String(e)}}},s)},"./node_modules/qs/lib/index.js":
/*!**************************************!*\
!*** ./node_modules/qs/lib/index.js ***!
\**************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./stringify */"./node_modules/qs/lib/stringify.js"),i=n(/*! ./parse */"./node_modules/qs/lib/parse.js"),o=n(/*! ./formats */"./node_modules/qs/lib/formats.js");e.exports={formats:o,parse:i,stringify:r}},"./node_modules/qs/lib/parse.js":
/*!**************************************!*\
!*** ./node_modules/qs/lib/parse.js ***!
\**************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=Object.prototype.hasOwnProperty,o=Array.isArray,s={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},u=function(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(r),a=s?r.slice(0,s.index):r,u=[];if(a){if(!n.plainObjects&&i.call(Object.prototype,a)&&!n.allowPrototypes)return;u.push(a)}for(var c=0;n.depth>0&&null!==(s=o.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&i.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+r.slice(s.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;i>=0;--i){var o,s=e[i];if("[]"===s&&n.parseArrays)o=[].concat(r);else{o=n.plainObjects?Object.create(null):{};var a="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,u=parseInt(a,10);n.parseArrays||""!==a?!isNaN(u)&&s!==a&&String(u)===a&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(o=[])[u]=r:o[a]=r:o={0:r}}r=o}return r}(u,t,n)}};e.exports=function(e,t){var n=function(e){if(!e)return s;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?s.charset:e.charset;return{allowDots:void 0===e.allowDots?s.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var c="string"==typeof e?function(e,t){var n,u={},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,d=c.split(t.delimiter,l),f=-1,p=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var h,y,g=d[n],m=g.indexOf("]="),v=-1===m?g.indexOf("="):m+1;-1===v?(h=t.decoder(g,s.decoder,p,"key"),y=t.strictNullHandling?null:""):(h=t.decoder(g.slice(0,v),s.decoder,p,"key"),y=t.decoder(g.slice(v+1),s.decoder,p,"value")),y&&t.interpretNumericEntities&&"iso-8859-1"===p&&(y=a(y)),y&&"string"==typeof y&&t.comma&&y.indexOf(",")>-1&&(y=y.split(",")),g.indexOf("[]=")>-1&&(y=o(y)?[y]:y),i.call(u,h)?u[h]=r.combine(u[h],y):u[h]=y}return u}(e,n):e,l=n.plainObjects?Object.create(null):{},d=Object.keys(c),f=0;f<d.length;++f){var p=d[f],h=u(p,c[p],n);l=r.merge(l,h,n)}return r.compact(l)}},"./node_modules/qs/lib/stringify.js":
/*!******************************************!*\
!*** ./node_modules/qs/lib/stringify.js ***!
\******************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=n(/*! ./utils */"./node_modules/qs/lib/utils.js"),i=n(/*! ./formats */"./node_modules/qs/lib/formats.js"),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,u=Array.prototype.push,c=function(e,t){u.apply(e,a(t)?t:[t])},l=Date.prototype.toISOString,d=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:d,formatter:i.formatters[d],indices:!1,serializeDate:function(e){return l.call(e)},skipNulls:!1,strictNullHandling:!1},p=function e(t,n,i,o,s,u,l,d,p,h,y,g,m){var v,_=t;if("function"==typeof l?_=l(n,_):_ instanceof Date?_=h(_):"comma"===i&&a(_)&&(_=_.join(",")),null===_){if(o)return u&&!g?u(n,f.encoder,m,"key"):n;_=""}if("string"==typeof(v=_)||"number"==typeof v||"boolean"==typeof v||"symbol"==typeof v||"bigint"==typeof v||r.isBuffer(_))return u?[y(g?n:u(n,f.encoder,m,"key"))+"="+y(u(_,f.encoder,m,"value"))]:[y(n)+"="+y(String(_))];var b,w=[];if(void 0===_)return w;if(a(l))b=l;else{var T=Object.keys(_);b=d?T.sort(d):T}for(var A=0;A<b.length;++A){var j=b[A];s&&null===_[j]||(a(_)?c(w,e(_[j],"function"==typeof i?i(n,j):n,i,o,s,u,l,d,p,h,y,g,m)):c(w,e(_[j],n+(p?"."+j:"["+j+"]"),i,o,s,u,l,d,p,h,y,g,m)))}return w};e.exports=function(e,t){var n,r=e,u=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=i.formatters[n],s=f.filter;return("function"==typeof e.filter||a(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof u.filter?r=(0,u.filter)("",r):a(u.filter)&&(n=u.filter);var l,d=[];if("object"!=typeof r||null===r)return"";l=t&&t.arrayFormat in s?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=s[l];n||(n=Object.keys(r)),u.sort&&n.sort(u.sort);for(var y=0;y<n.length;++y){var g=n[y];u.skipNulls&&null===r[g]||c(d,p(r[g],g,h,u.strictNullHandling,u.skipNulls,u.encode?u.encoder:null,u.filter,u.sort,u.allowDots,u.serializeDate,u.formatter,u.encodeValuesOnly,u.charset))}var m=d.join(u.delimiter),v=!0===u.addQueryPrefix?"?":"";return u.charsetSentinel&&("iso-8859-1"===u.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""}},"./node_modules/qs/lib/utils.js":
/*!**************************************!*\
!*** ./node_modules/qs/lib/utils.js ***!
\**************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),s=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:s,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],l=s[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:s,prop:c}),n.push(l))}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(i(n)){for(var r=[],o=0;o<n.length;++o)void 0!==n[o]&&r.push(n[o]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r=e;if("symbol"==typeof e?r=Symbol.prototype.toString.call(e):"string"!=typeof e&&(r=String(e)),"iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i="",s=0;s<r.length;++s){var a=r.charCodeAt(s);45===a||46===a||95===a||126===a||a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?i+=r.charAt(s):a<128?i+=o[a]:a<2048?i+=o[192|a>>6]+o[128|63&a]:a<55296||a>=57344?i+=o[224|a>>12]+o[128|a>>6&63]+o[128|63&a]:(s+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(s)),i+=o[240|a>>18]+o[128|a>>12&63]+o[128|a>>6&63]+o[128|63&a])}return i},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},merge:function e(t,n,o){if(!n)return t;if("object"!=typeof n){if(i(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(o&&(o.plainObjects||o.allowPrototypes)||!r.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var a=t;return i(t)&&!i(n)&&(a=s(t,o)),i(t)&&i(n)?(n.forEach((function(n,i){if(r.call(t,i)){var s=t[i];s&&"object"==typeof s&&n&&"object"==typeof n?t[i]=e(s,n,o):t.push(n)}else t[i]=n})),t):Object.keys(n).reduce((function(t,i){var s=n[i];return r.call(t,i)?t[i]=e(t[i],s,o):t[i]=s,t}),a)}}},"./node_modules/reflect-metadata/Reflect.js":
/*!**************************************************!*\
!*** ./node_modules/reflect-metadata/Reflect.js ***!
\**************************************************/
/*! no static exports found */function(e,t){
/*! *****************************************************************************
Copyright (C) Microsoft. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var n;!function(e){!function(t){var n="object"==typeof global?global:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),r=i(e);function i(e,t){return function(n,r){"function"!=typeof e[n]&&Object.defineProperty(e,n,{configurable:!0,writable:!0,value:r}),t&&t(n,r)}}void 0===n.Reflect?n.Reflect=e:r=i(n.Reflect,r),function(e){var t=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,r=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",o="function"==typeof Object.create,s={__proto__:[]}instanceof Array,a=!o&&!s,u={create:o?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:a?function(e,n){return t.call(e,n)}:function(e,t){return t in e},get:a?function(e,n){return t.call(e,n)?e[n]:void 0}:function(e,t){return e[t]}},c=Object.getPrototypeOf(Function),l="object"==typeof process&&process.env&&"true"===process.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=l||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var e={},t=[],n=function(){function e(e,t,n){this._index=0,this._keys=e,this._values=t,this._selector=n}return e.prototype["@@iterator"]=function(){return this},e.prototype[i]=function(){return this},e.prototype.next=function(){var e=this._index;if(e>=0&&e<this._keys.length){var n=this._selector(this._keys[e],this._values[e]);return e+1>=this._keys.length?(this._index=-1,this._keys=t,this._values=t):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw this._index>=0&&(this._index=-1,this._keys=t,this._values=t),e},e.prototype.return=function(e){return this._index>=0&&(this._index=-1,this._keys=t,this._values=t),{value:e,done:!0}},e}();return function(){function t(){this._keys=[],this._values=[],this._cacheKey=e,this._cacheIndex=-2}return Object.defineProperty(t.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),t.prototype.has=function(e){return this._find(e,!1)>=0},t.prototype.get=function(e){var t=this._find(e,!1);return t>=0?this._values[t]:void 0},t.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},t.prototype.delete=function(t){var n=this._find(t,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i<r;i++)this._keys[i-1]=this._keys[i],this._values[i-1]=this._values[i];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=e,this._cacheIndex=-2),!0}return!1},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=e,this._cacheIndex=-2},t.prototype.keys=function(){return new n(this._keys,this._values,r)},t.prototype.values=function(){return new n(this._keys,this._values,o)},t.prototype.entries=function(){return new n(this._keys,this._values,s)},t.prototype["@@iterator"]=function(){return this.entries()},t.prototype[i]=function(){return this.entries()},t.prototype._find=function(e,t){return this._cacheKey!==e&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=e)),this._cacheIndex<0&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},t}();function r(e,t){return e}function o(e,t){return t}function s(e,t){return[e,t]}}():Map,f=l||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new d}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[i]=function(){return this.keys()},e}():Set,p=new(l||"function"!=typeof WeakMap?function(){var e=u.create(),n=r();return function(){function e(){this._key=r()}return e.prototype.has=function(e){var t=i(e,!1);return void 0!==t&&u.has(t,this._key)},e.prototype.get=function(e){var t=i(e,!1);return void 0!==t?u.get(t,this._key):void 0},e.prototype.set=function(e,t){return i(e,!0)[this._key]=t,this},e.prototype.delete=function(e){var t=i(e,!1);return void 0!==t&&delete t[this._key]},e.prototype.clear=function(){this._key=r()},e}();function r(){var t;do{t="@@WeakMap@@"+s()}while(u.has(e,t));return e[t]=!0,t}function i(e,r){if(!t.call(e,n)){if(!r)return;Object.defineProperty(e,n,{value:u.create()})}return e[n]}function o(e,t){for(var n=0;n<t;++n)e[n]=255*Math.random()|0;return e}function s(){var e,t=(e=16,"function"==typeof Uint8Array?"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(e)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(e)):o(new Uint8Array(e),e):o(new Array(e),e));t[6]=79&t[6]|64,t[8]=191&t[8]|128;for(var n="",r=0;r<16;++r){var i=t[r];4!==r&&6!==r&&8!==r||(n+="-"),i<16&&(n+="0"),n+=i.toString(16).toLowerCase()}return n}}():WeakMap);function h(e,t,n){var r=p.get(e);if(b(r)){if(!n)return;r=new d,p.set(e,r)}var i=r.get(t);if(b(i)){if(!n)return;i=new d,r.set(t,i)}return i}function y(e,t,n){var r=h(t,n,!1);return!b(r)&&!!r.has(e)}function g(e,t,n){var r=h(t,n,!1);if(!b(r))return r.get(e)}function m(e,t,n,r){h(n,r,!0).set(e,t)}function v(e,t){var n=[],r=h(e,t,!1);if(b(r))return n;for(var o=function(e){var t=x(e,i);if(!O(t))throw new TypeError;var n=t.call(e);if(!T(n))throw new TypeError;return n}(r.keys()),s=0;;){var a=N(o);if(!a)return n.length=s,n;var u=a.value;try{n[s]=u}catch(e){try{I(o)}finally{throw e}}s++}}function _(e){if(null===e)return 1;switch(typeof e){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===e?1:6;default:return 6}}function b(e){return void 0===e}function w(e){return null===e}function T(e){return"object"==typeof e?null!==e:"function"==typeof e}function A(e,t){switch(_(e)){case 0:case 1:case 2:case 3:case 4:case 5:return e}var n=3===t?"string":5===t?"number":"default",i=x(e,r);if(void 0!==i){var o=i.call(e,n);if(T(o))throw new TypeError;return o}return function(e,t){if("string"===t){var n=e.toString;if(O(n))if(!T(i=n.call(e)))return i;if(O(r=e.valueOf))if(!T(i=r.call(e)))return i}else{var r;if(O(r=e.valueOf))if(!T(i=r.call(e)))return i;var i,o=e.toString;if(O(o))if(!T(i=o.call(e)))return i}throw new TypeError}(e,"default"===n?"number":n)}function j(e){var t=A(e,3);return"symbol"==typeof t?t:function(e){return""+e}(t)}function S(e){return Array.isArray?Array.isArray(e):e instanceof Object?e instanceof Array:"[object Array]"===Object.prototype.toString.call(e)}function O(e){return"function"==typeof e}function E(e){return"function"==typeof e}function x(e,t){var n=e[t];if(null!=n){if(!O(n))throw new TypeError;return n}}function N(e){var t=e.next();return!t.done&&t}function I(e){var t=e.return;t&&t.call(e)}function C(e){var t=Object.getPrototypeOf(e);if("function"!=typeof e||e===c)return t;if(t!==c)return t;var n=e.prototype,r=n&&Object.getPrototypeOf(n);if(null==r||r===Object.prototype)return t;var i=r.constructor;return"function"!=typeof i?t:i===e?t:i}function P(e){return e.__=void 0,delete e.__,e}e("decorate",(function(e,t,n,r){if(b(n)){if(!S(e))throw new TypeError;if(!E(t))throw new TypeError;return function(e,t){for(var n=e.length-1;n>=0;--n){var r=(0,e[n])(t);if(!b(r)&&!w(r)){if(!E(r))throw new TypeError;t=r}}return t}(e,t)}if(!S(e))throw new TypeError;if(!T(t))throw new TypeError;if(!T(r)&&!b(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(e,t,n,r){for(var i=e.length-1;i>=0;--i){var o=(0,e[i])(t,n,r);if(!b(o)&&!w(o)){if(!T(o))throw new TypeError;r=o}}return r}(e,t,n=j(n),r)})),e("metadata",(function(e,t){return function(n,r){if(!T(n))throw new TypeError;if(!b(r)&&!function(e){switch(_(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;m(e,t,n,r)}})),e("defineMetadata",(function(e,t,n,r){if(!T(n))throw new TypeError;return b(r)||(r=j(r)),m(e,t,n,r)})),e("hasMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return!0;var i=C(n);return!w(i)&&e(t,i,r)}(e,t,n)})),e("hasOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),y(e,t,n)})),e("getMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),function e(t,n,r){if(y(t,n,r))return g(t,n,r);var i=C(n);return w(i)?void 0:e(t,i,r)}(e,t,n)})),e("getOwnMetadata",(function(e,t,n){if(!T(t))throw new TypeError;return b(n)||(n=j(n)),g(e,t,n)})),e("getMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return b(t)||(t=j(t)),function e(t,n){var r=v(t,n),i=C(t);if(null===i)return r;var o=e(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var s=new f,a=[],u=0,c=r;u<c.length;u++){var l=c[u];s.has(l)||(s.add(l),a.push(l))}for(var d=0,p=o;d<p.length;d++){l=p[d];s.has(l)||(s.add(l),a.push(l))}return a}(e,t)})),e("getOwnMetadataKeys",(function(e,t){if(!T(e))throw new TypeError;return b(t)||(t=j(t)),v(e,t)})),e("deleteMetadata",(function(e,t,n){if(!T(t))throw new TypeError;b(n)||(n=j(n));var r=h(t,n,!1);if(b(r))return!1;if(!r.delete(e))return!1;if(r.size>0)return!0;var i=p.get(t);return i.delete(n),i.size>0||(p.delete(t),!0)}))}(r)}()}(n||(n={}))},"./node_modules/semver-compare/index.js":
/*!**********************************************!*\
!*** ./node_modules/semver-compare/index.js ***!
\**********************************************/
/*! no static exports found */function(e,t){e.exports=function(e,t){for(var n=e.split("."),r=t.split("."),i=0;i<3;i++){var o=Number(n[i]),s=Number(r[i]);if(o>s)return 1;if(s>o)return-1;if(!isNaN(o)&&isNaN(s))return 1;if(isNaN(o)&&!isNaN(s))return-1}return 0}},"./node_modules/semver/semver.js":
/*!***************************************!*\
!*** ./node_modules/semver/semver.js ***!
\***************************************/
/*! no static exports found */function(e,t){var n;t=e.exports=$,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],o=t.src=[],s=0,a=s++;o[a]="0|[1-9]\\d*";var u=s++;o[u]="[0-9]+";var c=s++;o[c]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var l=s++;o[l]="("+o[a]+")\\.("+o[a]+")\\.("+o[a]+")";var d=s++;o[d]="("+o[u]+")\\.("+o[u]+")\\.("+o[u]+")";var f=s++;o[f]="(?:"+o[a]+"|"+o[c]+")";var p=s++;o[p]="(?:"+o[u]+"|"+o[c]+")";var h=s++;o[h]="(?:-("+o[f]+"(?:\\."+o[f]+")*))";var y=s++;o[y]="(?:-?("+o[p]+"(?:\\."+o[p]+")*))";var g=s++;o[g]="[0-9A-Za-z-]+";var m=s++;o[m]="(?:\\+("+o[g]+"(?:\\."+o[g]+")*))";var v=s++,_="v?"+o[l]+o[h]+"?"+o[m]+"?";o[v]="^"+_+"$";var b="[v=\\s]*"+o[d]+o[y]+"?"+o[m]+"?",w=s++;o[w]="^"+b+"$";var T=s++;o[T]="((?:<|>)?=?)";var A=s++;o[A]=o[u]+"|x|X|\\*";var j=s++;o[j]=o[a]+"|x|X|\\*";var S=s++;o[S]="[v=\\s]*("+o[j]+")(?:\\.("+o[j]+")(?:\\.("+o[j]+")(?:"+o[h]+")?"+o[m]+"?)?)?";var O=s++;o[O]="[v=\\s]*("+o[A]+")(?:\\.("+o[A]+")(?:\\.("+o[A]+")(?:"+o[y]+")?"+o[m]+"?)?)?";var E=s++;o[E]="^"+o[T]+"\\s*"+o[S]+"$";var x=s++;o[x]="^"+o[T]+"\\s*"+o[O]+"$";var N=s++;o[N]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=s++;o[I]="(?:~>?)";var C=s++;o[C]="(\\s*)"+o[I]+"\\s+",i[C]=new RegExp(o[C],"g");var P=s++;o[P]="^"+o[I]+o[S]+"$";var M=s++;o[M]="^"+o[I]+o[O]+"$";var R=s++;o[R]="(?:\\^)";var k=s++;o[k]="(\\s*)"+o[R]+"\\s+",i[k]=new RegExp(o[k],"g");var D=s++;o[D]="^"+o[R]+o[S]+"$";var B=s++;o[B]="^"+o[R]+o[O]+"$";var q=s++;o[q]="^"+o[T]+"\\s*("+b+")$|^$";var F=s++;o[F]="^"+o[T]+"\\s*("+_+")$|^$";var L=s++;o[L]="(\\s*)"+o[T]+"\\s*("+b+"|"+o[S]+")",i[L]=new RegExp(o[L],"g");var U=s++;o[U]="^\\s*("+o[S]+")\\s+-\\s+("+o[S]+")\\s*$";var G=s++;o[G]="^\\s*("+o[O]+")\\s+-\\s+("+o[O]+")\\s*$";var V=s++;o[V]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)n(H,o[H]),i[H]||(i[H]=new RegExp(o[H]));function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?i[w]:i[v]).test(e))return null;try{return new $(e,t)}catch(e){return null}}function $(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof $){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof $))return new $(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var o=e.trim().match(t.loose?i[w]:i[v]);if(!o)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+o[1],this.minor=+o[2],this.patch=+o[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");o[4]?this.prerelease=o[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<r)return t}return e})):this.prerelease=[],this.build=o[5]?o[5].split("."):[],this.format()}t.parse=W,t.valid=function(e,t){var n=W(e,t);return n?n.version:null},t.clean=function(e,t){var n=W(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=$,$.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},$.prototype.toString=function(){return this.version},$.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof $||(e=new $(e,this.options)),this.compareMain(e)||this.comparePre(e)},$.prototype.compareMain=function(e){return e instanceof $||(e=new $(e,this.options)),z(this.major,e.major)||z(this.minor,e.minor)||z(this.patch,e.patch)},$.prototype.comparePre=function(e){if(e instanceof $||(e=new $(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return z(r,i)}while(++t)},$.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new $(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(X(e,t))return null;var n=W(e),r=W(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var s in n)if(("major"===s||"minor"===s||"patch"===s)&&n[s]!==r[s])return i+s;return o},t.compareIdentifiers=z;var Y=/^[0-9]+$/;function z(e,t){var n=Y.test(e),r=Y.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function J(e,t,n){return new $(e,n).compare(new $(t,n))}function K(e,t,n){return J(e,t,n)>0}function Q(e,t,n){return J(e,t,n)<0}function X(e,t,n){return 0===J(e,t,n)}function Z(e,t,n){return 0!==J(e,t,n)}function ee(e,t,n){return J(e,t,n)>=0}function te(e,t,n){return J(e,t,n)<=0}function ne(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return X(e,n,r);case"!=":return Z(e,n,r);case">":return K(e,n,r);case">=":return ee(e,n,r);case"<":return Q(e,n,r);case"<=":return te(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function re(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof re){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof re))return new re(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return z(t,e)},t.major=function(e,t){return new $(e,t).major},t.minor=function(e,t){return new $(e,t).minor},t.patch=function(e,t){return new $(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compare(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.rcompare(e,r,n)}))},t.gt=K,t.lt=Q,t.eq=X,t.neq=Z,t.gte=ee,t.lte=te,t.cmp=ne,t.Comparator=re;var ie={};function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new oe(e.raw,t);if(e instanceof re)return new oe(e.value,t);if(!(this instanceof oe))return new oe(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ae(e,t,n,r,i,o,s,a,u,c,l,d,f){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(a=se(u)?"":se(c)?"<"+(+u+1)+".0.0":se(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+a)).trim()}function ue(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==ie&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ce(e,t,n){try{t=new oe(t,n)}catch(e){return!1}return t.test(e)}function le(e,t,n,r){var i,o,s,a,u;switch(e=new $(e,r),t=new oe(t,r),n){case">":i=K,o=te,s=Q,a=">",u=">=";break;case"<":i=Q,o=ee,s=K,a="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ce(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var l=t.set[c],d=null,f=null;if(l.forEach((function(e){e.semver===ie&&(e=new re(">=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:s(e.semver,f.semver,r)&&(f=e)})),d.operator===a||d.operator===u)return!1;if((!f.operator||f.operator===a)&&o(e,f.semver))return!1;if(f.operator===u&&s(e,f.semver))return!1}return!0}re.prototype.parse=function(e){var t=this.options.loose?i[q]:i[F],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new $(n[2],this.options.loose):this.semver=ie},re.prototype.toString=function(){return this.value},re.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===ie||("string"==typeof e&&(e=new $(e,this.options)),ne(e,this.operator,this.semver,this.options))},re.prototype.intersects=function(e,t){if(!(e instanceof re))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new oe(e.value,t),ce(this.value,n,t);if(""===e.operator)return n=new oe(this.value,t),ce(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&s||a||u},t.Range=oe,oe.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},oe.prototype.toString=function(){return this.range},oe.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[G]:i[U];e=e.replace(r,ae),n("hyphen replace",e),e=e.replace(i[L],"$1$2$3"),n("comparator trim",e,i[L]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[k],"$1^")).split(/\s+/).join(" ");var o=t?i[q]:i[F],s=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[B]:i[D];return e.replace(r,(function(t,r,i,o,s){var a;return n("caret",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":s?(n("replaceCaret pr",s),a="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+s+" <"+(+r+1)+".0.0"):(n("no pr"),a="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",a),a}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[M]:i[P];return e.replace(r,(function(t,r,i,o,s){var a;return n("tilde",e,t,r,i,o,s),se(r)?a="":se(i)?a=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?a=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":s?(n("replaceTilde pr",s),a=">="+r+"."+i+"."+o+"-"+s+" <"+r+"."+(+i+1)+".0"):a=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",a),a}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[x]:i[E];return e.replace(r,(function(t,r,i,o,s,a){n("xRange",e,t,r,i,o,s,a);var u=se(i),c=u||se(o),l=c||se(s);return"="===r&&l&&(r=""),u?t=">"===r||"<"===r?"<0.0.0":"*":r&&l?(c&&(o=0),s=0,">"===r?(r=">=",c?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):"<="===r&&(r="<",c?i=+i+1:o=+o+1),t=r+i+"."+o+"."+s):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[V],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(s=s.filter((function(e){return!!e.match(o)}))),s=s.map((function(e){return new re(e,this.options)}),this)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new oe(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},oe.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new $(e,this.options));for(var t=0;t<this.set.length;t++)if(ue(this.set[t],e,this.options))return!0;return!1},t.satisfies=ce,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new oe(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new $(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new oe(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new $(r=e,n)))})),r},t.minVersion=function(e,t){e=new oe(e,t);var n=new $("0.0.0");if(e.test(n))return n;if(n=new $("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new $(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!K(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new oe(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return le(e,t,"<",n)},t.gtr=function(e,t,n){return le(e,t,">",n)},t.outside=le,t.prerelease=function(e,t){var n=W(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new oe(e,n),t=new oe(t,n),e.intersects(t)},t.coerce=function(e){if(e instanceof $)return e;if("string"!=typeof e)return null;var t=e.match(i[N]);if(null==t)return null;return W(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}},"./node_modules/tunnel/index.js":
/*!**************************************!*\
!*** ./node_modules/tunnel/index.js ***!
\**************************************/
/*! no static exports found */function(e,t,n){e.exports=n(/*! ./lib/tunnel */"./node_modules/tunnel/lib/tunnel.js")},"./node_modules/tunnel/lib/tunnel.js":
/*!*******************************************!*\
!*** ./node_modules/tunnel/lib/tunnel.js ***!
\*******************************************/
/*! no static exports found */function(e,t,n){"use strict";n(/*! net */"net");var r,i=n(/*! tls */"tls"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! events */"events"),u=n(/*! assert */"assert"),c=n(/*! util */"util");function l(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||o.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on("free",(function(e,n,r,i){for(var o=f(n,r,i),s=0,a=t.requests.length;s<a;++s){var u=t.requests[s];if(u.host===o.host&&u.port===o.port)return t.requests.splice(s,1),void u.request.onSocket(e)}e.destroy(),t.removeSocket(e)}))}function d(e,t){var n=this;l.prototype.createSocket.call(n,e,(function(r){var o=e.request.getHeader("host"),s=p({},n.options,{socket:r,servername:o?o.replace(/:.*$/,""):e.host}),a=i.connect(0,s);n.sockets[n.sockets.indexOf(r)]=a,t(a)}))}function f(e,t,n){return"string"==typeof e?{host:e,port:t,localAddress:n}:e}function p(e){for(var t=1,n=arguments.length;t<n;++t){var r=arguments[t];if("object"==typeof r)for(var i=Object.keys(r),o=0,s=i.length;o<s;++o){var a=i[o];void 0!==r[a]&&(e[a]=r[a])}}return e}t.httpOverHttp=function(e){var t=new l(e);return t.request=o.request,t},t.httpsOverHttp=function(e){var t=new l(e);return t.request=o.request,t.createSocket=d,t},t.httpOverHttps=function(e){var t=new l(e);return t.request=s.request,t},t.httpsOverHttps=function(e){var t=new l(e);return t.request=s.request,t.createSocket=d,t},c.inherits(l,a.EventEmitter),l.prototype.addRequest=function(e,t,n,r){var i=this,o=p({request:e},i.options,f(t,n,r));i.sockets.length>=this.maxSockets?i.requests.push(o):i.createSocket(o,(function(t){function n(){i.emit("free",t,o)}function r(e){i.removeSocket(t),t.removeListener("free",n),t.removeListener("close",r),t.removeListener("agentRemove",r)}t.on("free",n),t.on("close",r),t.on("agentRemove",r),e.onSocket(t)}))},l.prototype.createSocket=function(e,t){var n=this,i={};n.sockets.push(i);var o=p({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1});o.proxyAuth&&(o.headers=o.headers||{},o.headers["Proxy-Authorization"]="Basic "+new Buffer(o.proxyAuth).toString("base64")),r("making CONNECT request");var s=n.request(o);function a(o,a,c){if(s.removeAllListeners(),a.removeAllListeners(),200===o.statusCode)u.equal(c.length,0),r("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=a,t(a);else{r("tunneling socket could not be established, statusCode=%d",o.statusCode);var l=new Error("tunneling socket could not be established, statusCode="+o.statusCode);l.code="ECONNRESET",e.request.emit("error",l),n.removeSocket(i)}}s.useChunkedEncodingByDefault=!1,s.once("response",(function(e){e.upgrade=!0})),s.once("upgrade",(function(e,t,n){process.nextTick((function(){a(e,t,n)}))})),s.once("connect",a),s.once("error",(function(t){s.removeAllListeners(),r("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var o=new Error("tunneling socket could not be established, cause="+t.message);o.code="ECONNRESET",e.request.emit("error",o),n.removeSocket(i)})),s.end()},l.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(-1!==t){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,(function(e){n.request.onSocket(e)}))}},r=process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments);"string"==typeof e[0]?e[0]="TUNNEL: "+e[0]:e.unshift("TUNNEL:"),console.error.apply(console,e)}:function(){},t.debug=r},"./node_modules/typed-rest-client/HttpClient.js":
/*!******************************************************!*\
!*** ./node_modules/typed-rest-client/HttpClient.js ***!
\******************************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! url */"url"),o=n(/*! http */"http"),s=n(/*! https */"https"),a=n(/*! ./Util */"./node_modules/typed-rest-client/Util.js");let u,c;var l;!function(e){e[e.OK=200]="OK",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.ResourceMoved=302]="ResourceMoved",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.SwitchProxy=306]="SwitchProxy",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.TooManyRequests=429]="TooManyRequests",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout"}(l=t.HttpCodes||(t.HttpCodes={}));const d=[l.MovedPermanently,l.ResourceMoved,l.SeeOther,l.TemporaryRedirect,l.PermanentRedirect],f=[l.BadGateway,l.ServiceUnavailable,l.GatewayTimeout],p=["OPTIONS","GET","DELETE","HEAD"];class h{constructor(e){this.message=e}readBody(){return new Promise((e,t)=>r(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);const i=a.obtainContentCharset(this),o=this.message.headers["content-encoding"]||"",s=new RegExp("(gzip$)|(gzip, *deflate)").test(o);this.message.on("data",(function(e){const t="string"==typeof e?Buffer.from(e,i):e;n=Buffer.concat([n,t])})).on("end",(function(){return r(this,void 0,void 0,(function*(){if(s){const t=yield a.decompressGzippedContent(n,i);e(t)}e(n.toString(i))}))})).on("error",(function(e){t(e)}))})))}}var y;t.HttpClientResponse=h,t.isHttps=function(e){return"https:"===i.parse(e).protocol},function(e){e.HTTP_PROXY="HTTP_PROXY",e.HTTPS_PROXY="HTTPS_PROXY",e.NO_PROXY="NO_PROXY"}(y||(y={}));t.HttpClient=class{constructor(e,t,r){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=e,this.handlers=t||[];let i=process.env[y.NO_PROXY];i&&(this._httpProxyBypassHosts=[],i.split(",").forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this.requestOptions=r,r&&(null!=r.ignoreSslError&&(this._ignoreSslError=r.ignoreSslError),this._socketTimeout=r.socketTimeout,this._httpProxy=r.proxy,r.proxy&&r.proxy.proxyBypassHosts&&(this._httpProxyBypassHosts=[],r.proxy.proxyBypassHosts.forEach(e=>{this._httpProxyBypassHosts.push(new RegExp(e,"i"))})),this._certConfig=r.cert,this._certConfig&&(u=n(/*! fs */"fs"),this._certConfig.caFile&&u.existsSync(this._certConfig.caFile)&&(this._ca=u.readFileSync(this._certConfig.caFile,"utf8")),this._certConfig.certFile&&u.existsSync(this._certConfig.certFile)&&(this._cert=u.readFileSync(this._certConfig.certFile,"utf8")),this._certConfig.keyFile&&u.existsSync(this._certConfig.keyFile)&&(this._key=u.readFileSync(this._certConfig.keyFile,"utf8"))),null!=r.allowRedirects&&(this._allowRedirects=r.allowRedirects),null!=r.allowRedirectDowngrade&&(this._allowRedirectDowngrade=r.allowRedirectDowngrade),null!=r.maxRedirects&&(this._maxRedirects=Math.max(r.maxRedirects,0)),null!=r.keepAlive&&(this._keepAlive=r.keepAlive),null!=r.allowRetries&&(this._allowRetries=r.allowRetries),null!=r.maxRetries&&(this._maxRetries=r.maxRetries))}options(e,t){return this.request("OPTIONS",e,null,t||{})}get(e,t){return this.request("GET",e,null,t||{})}del(e,t){return this.request("DELETE",e,null,t||{})}post(e,t,n){return this.request("POST",e,t,n||{})}patch(e,t,n){return this.request("PATCH",e,t,n||{})}put(e,t,n){return this.request("PUT",e,t,n||{})}head(e,t){return this.request("HEAD",e,null,t||{})}sendStream(e,t,n,r){return this.request(e,t,n,r)}request(e,t,n,o){return r(this,void 0,void 0,(function*(){if(this._disposed)throw new Error("Client has already been disposed.");let r,s=i.parse(t),a=this._prepareRequest(e,s,o),u=this._allowRetries&&-1!=p.indexOf(e)?this._maxRetries+1:1,c=0;for(;c<u;){if(r=yield this.requestRaw(a,n),r&&r.message&&r.message.statusCode===l.Unauthorized){let e;for(let t=0;t<this.handlers.length;t++)if(this.handlers[t].canHandleAuthentication(r)){e=this.handlers[t];break}return e?e.handleAuthentication(this,a,n):r}let t=this._maxRedirects;for(;-1!=d.indexOf(r.message.statusCode)&&this._allowRedirects&&t>0;){const u=r.message.headers.location;if(!u)break;let c=i.parse(u);if("https:"==s.protocol&&s.protocol!=c.protocol&&!this._allowRedirectDowngrade)throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.");yield r.readBody(),a=this._prepareRequest(e,c,o),r=yield this.requestRaw(a,n),t--}if(-1==f.indexOf(r.message.statusCode))return r;c+=1,c<u&&(yield r.readBody(),yield this._performExponentialBackoff(c))}return r}))}dispose(){this._agent&&this._agent.destroy(),this._disposed=!0}requestRaw(e,t){return new Promise((n,r)=>{this.requestRawWithCallback(e,t,(function(e,t){e&&r(e),n(t)}))})}requestRawWithCallback(e,t,n){let r;"string"==typeof t&&(e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8"));let i=!1,o=(e,t)=>{i||(i=!0,n(e,t))},s=e.httpModule.request(e.options,e=>{let t=new h(e);o(null,t)});s.on("socket",e=>{r=e}),s.setTimeout(this._socketTimeout||18e4,()=>{r&&r.end(),o(new Error("Request timeout: "+e.options.path),null)}),s.on("error",(function(e){o(e,null)})),t&&"string"==typeof t&&s.write(t,"utf8"),t&&"string"!=typeof t?(t.on("close",(function(){s.end()})),t.pipe(s)):s.end()}_prepareRequest(e,t,n){const r={};r.parsedUrl=t;const a="https:"===r.parsedUrl.protocol;r.httpModule=a?s:o;const u=a?443:80;return r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):u,r.options.path=(r.parsedUrl.pathname||"")+(r.parsedUrl.search||""),r.options.method=e,r.options.headers=this._mergeHeaders(n),null!=this.userAgent&&(r.options.headers["user-agent"]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers&&!this._isPresigned(i.format(t))&&this.handlers.forEach(e=>{e.prepareRequest(r.options)}),r}_isPresigned(e){if(this.requestOptions&&this.requestOptions.presignedUrlPatterns){const t=this.requestOptions.presignedUrlPatterns;for(let n=0;n<t.length;n++)if(e.match(t[n]))return!0}return!1}_mergeHeaders(e){const t=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});return this.requestOptions&&this.requestOptions.headers?Object.assign({},t(this.requestOptions.headers),t(e)):t(e||{})}_getAgent(e){let t,r=this._getProxy(e),i=r.proxyUrl&&r.proxyUrl.hostname&&!this._isMatchInBypassProxyList(e);if(this._keepAlive&&i&&(t=this._proxyAgent),this._keepAlive&&!i&&(t=this._agent),t)return t;const a="https:"===e.protocol;let u=100;if(this.requestOptions&&(u=this.requestOptions.maxSockets||o.globalAgent.maxSockets),i){c||(c=n(/*! tunnel */"./node_modules/tunnel/index.js"));const e={maxSockets:u,keepAlive:this._keepAlive,proxy:{proxyAuth:r.proxyAuth,host:r.proxyUrl.hostname,port:r.proxyUrl.port}};let i;const o="https:"===r.proxyUrl.protocol;i=a?o?c.httpsOverHttps:c.httpsOverHttp:o?c.httpOverHttps:c.httpOverHttp,t=i(e),this._proxyAgent=t}if(this._keepAlive&&!t){const e={keepAlive:this._keepAlive,maxSockets:u};t=a?new s.Agent(e):new o.Agent(e),this._agent=t}return t||(t=a?s.globalAgent:o.globalAgent),a&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),a&&this._certConfig&&(t.options=Object.assign(t.options||{},{ca:this._ca,cert:this._cert,key:this._key,passphrase:this._certConfig.passphrase})),t}_getProxy(e){let t,n,r="https:"===e.protocol,o=this._httpProxy,s=process.env[y.HTTPS_PROXY],a=process.env[y.HTTP_PROXY];return o||(s&&r?o={proxyUrl:s}:a&&(o={proxyUrl:a})),o&&(o.proxyUrl.length>0&&(t=i.parse(o.proxyUrl)),(o.proxyUsername||o.proxyPassword)&&(n=o.proxyUsername+":"+o.proxyPassword)),{proxyUrl:t,proxyAuth:n}}_isMatchInBypassProxyList(e){if(!this._httpProxyBypassHosts)return!1;let t=!1;return this._httpProxyBypassHosts.forEach(n=>{n.test(e.href)&&(t=!0)}),t}_performExponentialBackoff(e){e=Math.min(10,e);const t=5*Math.pow(2,e);return new Promise(e=>setTimeout(()=>e(),t))}}},"./node_modules/typed-rest-client/Util.js":
/*!************************************************!*\
!*** ./node_modules/typed-rest-client/Util.js ***!
\************************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(/*! qs */"./node_modules/qs/lib/index.js"),o=n(/*! url */"url"),s=n(/*! path */"path"),a=n(/*! zlib */"zlib");t.getUrl=function(e,t,n){const r=s.posix||s;let a="";if(t)if(e){const n=o.parse(t),i=o.parse(e);i.protocol=i.protocol||n.protocol,i.auth=i.auth||n.auth,i.host=i.host||n.host,i.pathname=r.resolve(n.pathname,i.pathname),!i.pathname.endsWith("/")&&e.endsWith("/")&&(i.pathname+="/"),a=o.format(i)}else a=t;else a=e;return n?function(e,t){const n=e.replace(/\?$/g,""),r=i.stringify(t.params,function(e){return{addQueryPrefix:!0,delimiter:(e.options||{}).separator||"&",allowDots:(e.options||{}).shouldAllowDots||!1,arrayFormat:(e.options||{}).arrayFormat||"repeat",encodeValuesOnly:(e.options||{}).shouldOnlyEncodeValues||!0}}(t));return`${n}${r}`}(a,n):a},t.decompressGzippedContent=function(e,t){return r(this,void 0,void 0,(function*(){return new Promise((n,i)=>r(this,void 0,void 0,(function*(){a.gunzip(e,(function(e,r){e&&i(e),n(r.toString(t||"utf-8"))}))})))}))},t.obtainContentCharset=function(e){const t=(e.message.headers["content-type"]||"").match(/charset=([^;,\r\n]+)/i);return t&&t[1]?t[1]:"utf-8"}},"./src/agent/mock/build-agent.ts":
/*!***************************************!*\
!*** ./src/agent/mock/build-agent.ts ***!
\***************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0});let i=class{get agentName(){return console.log("getAgentName"),"Mock"}find(e,t,n){return console.log("find"),"find"}cacheDir(e,t,n,r){return console.log("cacheDir"),Promise.resolve("cacheDir")}createTempDir(){return console.log("createTempDir"),Promise.resolve("createTempDir")}debug(e){console.log("debug")}setFailed(e,t){console.log("setFailed")}setSucceeded(e,t){console.log("setSucceeded")}exportVariable(e,t){console.log("exportVariable")}getVariable(e){return console.log("getVariable"),"getVariable"}addPath(e){console.log("addPath")}which(e,t){return console.log("which"),Promise.resolve("which")}exec(e,t){return Promise.resolve({code:0,error:null,stderr:"result.stderr",stdout:"result.stdout"})}getSourceDir(){return console.log("getSourceDir"),"getSourceDir"}setOutput(e,t){console.log("setOutput")}getInput(e,t){return console.log("getInput"),"getInput"}getListInput(e,t){return console.log("getListInput"),["getInput"]}getBooleanInput(e,t){return console.log("getBooleanInput"),!1}isValidInputFile(e,t){return console.log("isValidInputFile"),!1}fileExists(e){return console.log("fileExists"),!1}directoryExists(e){return console.log("directoryExists"),!1}};i=r([n(/*! inversify */"./node_modules/inversify/lib/inversify.js").injectable()],i),t.BuildAgent=i},"./src/core/dotnet-tool.ts":
/*!*********************************!*\
!*** ./src/core/dotnet-tool.ts ***!
\*********************************/
/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const u=a(n(/*! fs */"fs")),c=a(n(/*! os */"os")),l=a(n(/*! path */"path")),d=a(n(/*! typed-rest-client/HttpClient */"./node_modules/typed-rest-client/HttpClient.js")),f=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),p=n(/*! ./models */"./src/core/models.ts");let h=class{constructor(e,t){this.buildAgent=e,this.versionManager=t,this.httpClient=new d.HttpClient("dotnet")}disableTelemetry(){this.buildAgent.exportVariable("DOTNET_CLI_TELEMETRY_OPTOUT","1")}execute(e,t){return console.log(`Command: ${e} ${t.join(" ")}`),this.buildAgent.exec(e,t)}toolInstall(e,t,n,r){return s(this,void 0,void 0,(function*(){let i;if(console.log(""),console.log("--------------------------"),console.log(`Installing ${e} version `+t),console.log("--------------------------"),this.versionManager.isExplicitVersion(t)&&(n=!1),n||(i=this.buildAgent.find(e,t)),!i){let n;if(this.versionManager.isExplicitVersion(t))n=t;else{if(n=yield this.queryLatestMatch(e,t,r),!n)throw new Error(`Unable to find ${e} version '${t}'.`);i=this.buildAgent.find(e,n)}i||(i=yield this.acquireTool(e,n))}if(this.buildAgent.debug(`toolPath: ${i}`),"win32"!==c.platform()&&!this.buildAgent.getVariable("DOTNET_ROOT")){let e=yield this.buildAgent.which("dotnet");e=u.readlinkSync(e)||e;const t=l.dirname(e);this.buildAgent.exportVariable("DOTNET_ROOT",t)}return this.buildAgent.addPath(i),i}))}queryLatestMatch(e,t,n){return s(this,void 0,void 0,(function*(){this.buildAgent.debug(`querying tool versions for ${e}${t?`@${t}`:""} ${n?"including pre-releases":""}`);const r=`https://api-v2v3search-0.nuget.org/query?q=${encodeURIComponent(e.toLowerCase())}&prerelease=${n?"true":"false"}&semVerLevel=2.0.0`,i=yield this.httpClient.get(r);if(!i||200!==i.message.statusCode)return null;const o=yield i.readBody(),s=JSON.parse(o).data[0].versions.map(e=>e.version);return s&&s.length?(this.buildAgent.debug(`got versions: ${s.join(", ")}`),this.versionManager.evaluateVersions(s,t)):null}))}acquireTool(e,t){return s(this,void 0,void 0,(function*(){const n=yield this.buildAgent.createTempDir();let r=["tool","install",e,"--tool-path",n];t&&(t=this.versionManager.cleanVersion(t),r=r.concat(["--version",t]));const i=yield this.execute("dotnet",r),o=0===i.code?"success":"failure",s=0===i.code?i.stdout:i.stderr;if(this.buildAgent.debug(`tool install result: ${o} ${s}`),i.code)throw new Error("Error installing tool");return yield this.buildAgent.cacheDir(n,e,t)}))}};h=r([f.injectable(),o(0,f.inject(p.TYPES.IBuildAgent)),o(1,f.inject(p.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],h),t.DotnetTool=h},"./src/core/ioc.ts":
/*!*************************!*\
!*** ./src/core/ioc.ts ***!
\*************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),i=n(/*! ./versionManager */"./src/core/versionManager.ts"),o=n(/*! ./models */"./src/core/models.ts"),s=n(/*! ../agent/mock/build-agent */"./src/agent/mock/build-agent.ts"),a=new r.Container;a.bind(o.TYPES.IVersionManager).to(i.VersionManager),a.bind(o.TYPES.IBuildAgent).to(s.BuildAgent),t.default=a},"./src/core/models.ts":
/*!****************************!*\
!*** ./src/core/models.ts ***!
\****************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TYPES={IBuildAgent:Symbol.for("BuildAgent"),IDotnetTool:Symbol.for("DotnetTool"),IGitVersionTool:Symbol.for("GitVersionTool"),IGitReleaseManagerTool:Symbol.for("GitReleaseManagerTool"),IVersionManager:Symbol.for("VersionManager")},function(e){e.includePrerelease="includePrerelease",e.versionSpec="versionSpec"}(t.SetupFields||(t.SetupFields={}))},"./src/core/settings.ts":
/*!******************************!*\
!*** ./src/core/settings.ts ***!
\******************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! ./models */"./src/core/models.ts");t.Settings=class{static getSetupSettings(e){return{versionSpec:e.getInput(r.SetupFields.versionSpec),includePrerelease:e.getBooleanInput(r.SetupFields.includePrerelease)}}}},"./src/core/versionManager.ts":
/*!************************************!*\
!*** ./src/core/versionManager.ts ***!
\************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t};Object.defineProperty(t,"__esModule",{value:!0});const u=s(n(/*! semver-compare */"./node_modules/semver-compare/index.js")),c=a(n(/*! semver */"./node_modules/semver/semver.js")),l=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),d=n(/*! ./models */"./src/core/models.ts");let f=class{constructor(e){this.buildAgent=e}isExplicitVersion(e){const t=c.clean(e);this.buildAgent.debug("isExplicit: "+t);const n=null!=c.valid(t);return this.buildAgent.debug("explicit? "+n),n}evaluateVersions(e,t){let n;this.buildAgent.debug("evaluating "+e.length+" versions");for(let r=(e=e.sort(u.default)).length-1;r>=0;r--){const i=e[r];if(c.satisfies(i,t)){n=i;break}}return n?this.buildAgent.debug("matched: "+n):this.buildAgent.debug("match not found"),n}cleanVersion(e){return this.buildAgent.debug("cleaning: "+e),c.clean(e)}};f=r([l.injectable(),o(0,l.inject(d.TYPES.IBuildAgent)),i("design:paramtypes",[Object])],f),t.VersionManager=f},"./src/tasks/gitreleasemanager/main.ts":
/*!*********************************************!*\
!*** ./src/tasks/gitreleasemanager/main.ts ***!
\*********************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(/*! ../../core/models */"./src/core/models.ts"),s=n(/*! ../../tools/gitreleasemanager/tool */"./src/tools/gitreleasemanager/tool.ts"),a=n(/*! ../../core/settings */"./src/core/settings.ts"),u=n(/*! ../../tools/gitreleasemanager/settings */"./src/tools/gitreleasemanager/settings.ts"),c=i(n(/*! ../../core/ioc */"./src/core/ioc.ts"));c.default.bind(o.TYPES.IGitReleaseManagerTool).to(s.GitReleaseManagerTool);const l=c.default.get(o.TYPES.IGitReleaseManagerTool),d=c.default.get(o.TYPES.IBuildAgent);t.setup=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=a.Settings.getSetupSettings(d);yield l.install(e.versionSpec,e.includePrerelease),d.setSucceeded("GitVersionManager installed successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.create=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=u.Settings.getCreateSettings(d);yield l.create(e),d.setSucceeded("GitVersionManager created release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.discard=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=u.Settings.getDiscardSettings(d);yield l.discard(e),d.setSucceeded("GitVersionManager discarded release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.close=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=u.Settings.getCloseSettings(d);yield l.close(e),d.setSucceeded("GitVersionManager closed release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.open=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=u.Settings.getOpenSettings(d);yield l.open(e),d.setSucceeded("GitVersionManager opened release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.publish=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=u.Settings.getPublishSettings(d);yield l.publish(e),d.setSucceeded("GitVersionManager published release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))},t.addAsset=function(){return r(this,void 0,void 0,(function*(){try{l.disableTelemetry();const e=u.Settings.getAddAssetSettings(d);yield l.addAsset(e),d.setSucceeded("GitVersionManager added assets to release successfully",!0)}catch(e){d.setFailed(e.message,!0)}}))}},"./src/tasks/gitreleasemanager/open.ts":
/*!*********************************************!*\
!*** ./src/tasks/gitreleasemanager/open.ts ***!
\*********************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(/*! reflect-metadata */"./node_modules/reflect-metadata/Reflect.js"),n(/*! ./main */"./src/tasks/gitreleasemanager/main.ts").open()},"./src/tools/gitreleasemanager/models.ts":
/*!***********************************************!*\
!*** ./src/tools/gitreleasemanager/models.ts ***!
\***********************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.repository="repository",e.owner="owner",e.token="token",e.targetDirectory="targetDirectory"}(t.CommonFields||(t.CommonFields={})),function(e){e.milestone="milestone",e.name="name",e.inputFileName="inputFileName",e.isPreRelease="isPreRelease",e.commit="commit",e.assets="assets"}(t.CreateFields||(t.CreateFields={})),function(e){e.milestone="milestone"}(t.DiscardFields||(t.DiscardFields={})),function(e){e.milestone="milestone"}(t.CloseFields||(t.CloseFields={})),function(e){e.milestone="milestone"}(t.OpenFields||(t.OpenFields={})),function(e){e.tagName="tagName"}(t.PublishFields||(t.PublishFields={})),function(e){e.tagName="tagName",e.assets="assets"}(t.AddAssetFields||(t.AddAssetFields={}))},"./src/tools/gitreleasemanager/settings.ts":
/*!*************************************************!*\
!*** ./src/tools/gitreleasemanager/settings.ts ***!
\*************************************************/
/*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(/*! ./models */"./src/tools/gitreleasemanager/models.ts");class i{static getCreateSettings(e){const t=e.getInput(r.CreateFields.milestone),n=e.getInput(r.CreateFields.name),o=e.getInput(r.CreateFields.inputFileName),s=e.getBooleanInput(r.CreateFields.isPreRelease),a=e.getInput(r.CreateFields.commit),u=e.getListInput(r.CreateFields.assets),c=i.getCommonSettings(e);return Object.assign(Object.assign({},c),{milestone:t,name:n,inputFileName:o,isPreRelease:s,commit:a,assets:u})}static getDiscardSettings(e){const t=e.getInput(r.DiscardFields.milestone),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getCloseSettings(e){const t=e.getInput(r.CloseFields.milestone),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getOpenSettings(e){const t=e.getInput(r.OpenFields.milestone),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{milestone:t})}static getPublishSettings(e){const t=e.getInput(r.PublishFields.tagName),n=i.getCommonSettings(e);return Object.assign(Object.assign({},n),{tagName:t})}static getAddAssetSettings(e){const t=e.getInput(r.AddAssetFields.tagName),n=e.getListInput(r.AddAssetFields.assets),o=i.getCommonSettings(e);return Object.assign(Object.assign({},o),{tagName:t,assets:n})}static getCommonSettings(e){return{owner:e.getInput(r.CommonFields.owner,!0),repository:e.getInput(r.CommonFields.repository,!0),token:e.getInput(r.CommonFields.token,!0),targetDirectory:e.getInput(r.CommonFields.targetDirectory)}}}t.Settings=i},"./src/tools/gitreleasemanager/tool.ts":
/*!*********************************************!*\
!*** ./src/tools/gitreleasemanager/tool.ts ***!
\*********************************************/
/*! no static exports found */function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const a=n(/*! path */"path"),u=n(/*! ../../core/models */"./src/core/models.ts"),c=n(/*! inversify */"./node_modules/inversify/lib/inversify.js"),l=n(/*! ../../core/dotnet-tool */"./src/core/dotnet-tool.ts");let d=class extends l.DotnetTool{constructor(e,t){super(e,t)}install(e,t){return s(this,void 0,void 0,(function*(){yield this.toolInstall("GitReleaseManager.Tool",e,!1,t)}))}create(e){const t=this.getCreateArguments(e);return this.execute("dotnet-gitreleasemanager",t)}discard(e){const t=this.getDiscardArguments(e);return this.execute("dotnet-gitreleasemanager",t)}close(e){const t=this.getCloseArguments(e);return this.execute("dotnet-gitreleasemanager",t)}open(e){const t=this.getOpenArguments(e);return this.execute("dotnet-gitreleasemanager",t)}publish(e){const t=this.getPublishArguments(e);return this.execute("dotnet-gitreleasemanager",t)}addAsset(e){const t=this.getAddAssetArguments(e);return this.execute("dotnet-gitreleasemanager",t)}getCommonArguments(e){const t=[];return t.push("--owner",e.owner),t.push("--repository",e.repository),t.push("--token",e.token),e.targetDirectory=this.getRepoDir(e.targetDirectory),t.push("--targetDirectory",e.targetDirectory),t}getCreateArguments(e){const t=["create",...this.getCommonArguments(e)];if(e.milestone&&t.push("--milestone",e.milestone),e.name&&t.push("--name",e.name),e.commit&&t.push("--targetcommitish",e.commit),e.inputFileName){if(!this.buildAgent.fileExists(e.inputFileName))throw new Error("GitReleaseManager inputFilePath not found at "+e.inputFileName);t.push("--inputFilePath",e.inputFileName)}return e.isPreRelease&&t.push("--pre"),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getDiscardArguments(e){const t=["discard",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getCloseArguments(e){const t=["close",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getOpenArguments(e){const t=["open",...this.getCommonArguments(e)];return e.milestone&&t.push("--milestone",e.milestone),t}getPublishArguments(e){const t=["publish",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),t}getAddAssetArguments(e){const t=["addasset",...this.getCommonArguments(e)];return e.tagName&&t.push("--tagName",e.tagName),e.assets&&e.assets.length>0&&(e.assets=e.assets.map(t=>a.join(e.targetDirectory,t)),t.push("--assets",e.assets.join(","))),t}getRepoDir(e){let t;const n=this.buildAgent.getSourceDir();if(e){if(!this.buildAgent.directoryExists(e))throw new Error("Directory not found at "+e);t=a.join(n,e)}else t=n;return t.replace(/\\/g,"/")}};d=r([c.injectable(),o(0,c.inject(u.TYPES.IBuildAgent)),o(1,c.inject(u.TYPES.IVersionManager)),i("design:paramtypes",[Object,Object])],d),t.GitReleaseManagerTool=d},assert:
/*!*************************!*\
!*** external "assert" ***!
\*************************/
/*! no static exports found */function(e,t){e.exports=n(0)},events:
/*!*************************!*\
!*** external "events" ***!
\*************************/
/*! no static exports found */function(e,t){e.exports=n(1)},fs:
/*!*********************!*\
!*** external "fs" ***!
\*********************/
/*! no static exports found */function(e,t){e.exports=n(2)},http:
/*!***********************!*\
!*** external "http" ***!
\***********************/
/*! no static exports found */function(e,t){e.exports=n(3)},https:
/*!************************!*\
!*** external "https" ***!
\************************/
/*! no static exports found */function(e,t){e.exports=n(4)},net:
/*!**********************!*\
!*** external "net" ***!
\**********************/
/*! no static exports found */function(e,t){e.exports=n(5)},os:
/*!*********************!*\
!*** external "os" ***!
\*********************/
/*! no static exports found */function(e,t){e.exports=n(6)},path:
/*!***********************!*\
!*** external "path" ***!
\***********************/
/*! no static exports found */function(e,t){e.exports=n(7)},tls:
/*!**********************!*\
!*** external "tls" ***!
\**********************/
/*! no static exports found */function(e,t){e.exports=n(8)},url:
/*!**********************!*\
!*** external "url" ***!
\**********************/
/*! no static exports found */function(e,t){e.exports=n(9)},util:
/*!***********************!*\
!*** external "util" ***!
\***********************/
/*! no static exports found */function(e,t){e.exports=n(10)},zlib:
/*!***********************!*\
!*** external "zlib" ***!
\***********************/
/*! no static exports found */function(e,t){e.exports=n(11)}})}]);