diff --git a/dist/index.browser.js b/dist/index.browser.js index a6039c626..5529fb4ad 100644 --- a/dist/index.browser.js +++ b/dist/index.browser.js @@ -36,7 +36,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ -var n;!function(n){!function(r){var o="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),i=a(n);function a(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===o.Reflect?o.Reflect=n:i=a(o.Reflect,i),function(t){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,o=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",i=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,u=!a&&!s,d={create:a?function(){return R(Object.create(null))}:s?function(){return R({__proto__:null})}:function(){return R({})},has:u?function(e,t){return n.call(e,t)}:function(e,t){return t in e},get:u?function(e,t){return n.call(e,t)?e[t]:void 0}:function(e,t){return e[t]}},l=Object.getPrototypeOf(Function),c="object"==typeof e&&e.env&&"true"===e.env.REFLECT_METADATA_USE_MAP_POLYFILL,p=c||"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?(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,o=n+1;o=0;--n){var r=(0,e[n])(t);if(!_(r)&&!N(r)){if(!D(r))throw new TypeError;t=r}}return t}(e,t)}if(!T(e))throw new TypeError;if(!A(t))throw new TypeError;if(!A(r)&&!_(r)&&!N(r))throw new TypeError;return N(r)&&(r=void 0),function(e,t,n,r){for(var o=e.length-1;o>=0;--o){var i=(0,e[o])(t,n,r);if(!_(i)&&!N(i)){if(!A(i))throw new TypeError;r=i}}return r}(e,t,n=E(n),r)})),t("metadata",(function(e,t){return function(n,r){if(!A(n))throw new TypeError;if(!_(r)&&!function(e){switch(C(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;y(e,t,n,r)}})),t("defineMetadata",(function(e,t,n,r){if(!A(n))throw new TypeError;return _(r)||(r=E(r)),y(e,t,n,r)})),t("hasMetadata",(function(e,t,n){if(!A(t))throw new TypeError;return _(n)||(n=E(n)),function e(t,n,r){if(m(t,n,r))return!0;var o=F(n);return!N(o)&&e(t,o,r)}(e,t,n)})),t("hasOwnMetadata",(function(e,t,n){if(!A(t))throw new TypeError;return _(n)||(n=E(n)),m(e,t,n)})),t("getMetadata",(function(e,t,n){if(!A(t))throw new TypeError;return _(n)||(n=E(n)),function e(t,n,r){if(m(t,n,r))return b(t,n,r);var o=F(n);return N(o)?void 0:e(t,o,r)}(e,t,n)})),t("getOwnMetadata",(function(e,t,n){if(!A(t))throw new TypeError;return _(n)||(n=E(n)),b(e,t,n)})),t("getMetadataKeys",(function(e,t){if(!A(e))throw new TypeError;return _(t)||(t=E(t)),function e(t,n){var r=S(t,n),o=F(t);if(null===o)return r;var i=e(o,n);if(i.length<=0)return r;if(r.length<=0)return i;for(var a=new g,s=[],u=0,d=r;u0)return!0;var o=h.get(t);return o.delete(n),o.size>0||(h.delete(t),!0)}))}(i)}()}(n||(n={}))}).call(this,n(105),n(48))},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,d=[],l=!1,c=-1;function p(){l&&u&&(l=!1,u.length?d=u.concat(d):c=-1,d.length&&g())}function g(){if(!l){var e=s(p);l=!0;for(var t=d.length;t;){for(u=d,d=[];++c1)for(var n=1;n0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0?g.length:n.length),f=function e(t,n){for(var r=t.getPropertiesMetadata(n),o=[],a=Object.keys(r),s=0,d=a;s0?l:e(t,r)}return 0}},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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),o=function(){function e(e,t,n,o,i){this.id=r.id(),this.serviceIdentifier=e,this.parentContext=t,this.parentRequest=n,this.target=i,this.childRequests=[],this.bindings=Array.isArray(o)?o:[o],this.requestScope=null===n?new Map:null}return e.prototype.addChildRequest=function(t,n,r){var o=new e(t,this.parentContext,this,n,r);return this.childRequests.push(o),o},e}();t.Request=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(16),i=n(63),a=n(34),s=n(116),u=function(e,t,n){try{return n()}catch(n){throw i.isStackOverflowExeption(n)?new Error(r.CIRCULAR_DEPENDENCY_IN_FACTORY(e,t.toString())):n}},d=function(e){return function(t){t.parentContext.setCurrentRequest(t);var n=t.bindings,i=t.childRequests,l=t.target&&t.target.isArray(),c=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(l&&c)return i.map((function(t){return d(e)(t)}));var p=null;if(!t.target.isOptional()||0!==n.length){var g=n[0],h=g.scope===o.BindingScopeEnum.Singleton,f=g.scope===o.BindingScopeEnum.Request;if(h&&g.activated)return g.cache;if(f&&null!==e&&e.has(g.id))return e.get(g.id);if(g.type===o.BindingTypeEnum.ConstantValue)p=g.cache;else if(g.type===o.BindingTypeEnum.Function)p=g.cache;else if(g.type===o.BindingTypeEnum.Constructor)p=g.implementationType;else if(g.type===o.BindingTypeEnum.DynamicValue&&null!==g.dynamicValue)p=u("toDynamicValue",g.serviceIdentifier,(function(){return g.dynamicValue(t.parentContext)}));else if(g.type===o.BindingTypeEnum.Factory&&null!==g.factory)p=u("toFactory",g.serviceIdentifier,(function(){return g.factory(t.parentContext)}));else if(g.type===o.BindingTypeEnum.Provider&&null!==g.provider)p=u("toProvider",g.serviceIdentifier,(function(){return g.provider(t.parentContext)}));else{if(g.type!==o.BindingTypeEnum.Instance||null===g.implementationType){var m=a.getServiceIdentifierAsString(t.serviceIdentifier);throw new Error(r.INVALID_BINDING_TYPE+" "+m)}p=s.resolveInstance(g.implementationType,i,d(e))}return"function"==typeof g.onActivation&&(p=g.onActivation(t.parentContext,p)),h&&(g.cache=p,g.activated=!0),f&&null!==e&&!e.has(g.id)&&e.set(g.id,p),p}}};t.resolve=function(e){return d(e.plan.rootRequest.requestScope)(e.plan.rootRequest)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(16),i=n(11);t.resolveInstance=function(e,t,n){var a,s,u=null;if(t.length>0){var d=t.filter((function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ConstructorArgument})).map(n);s=d,u=function(e,t,n){var r=t.filter((function(e){return null!==e.target&&e.target.type===o.TargetTypeEnum.ClassProperty})),i=r.map(n);return r.forEach((function(t,n){var r;r=t.target.name.value();var o=i[n];e[r]=o})),e}(u=new((a=e).bind.apply(a,[void 0].concat(s))),t,n)}else u=new e;return function(e,t){if(Reflect.hasMetadata(i.POST_CONSTRUCT,e)){var n=Reflect.getMetadata(i.POST_CONSTRUCT,e);try{t[n.value]()}catch(t){throw new Error(r.POST_CONSTRUCT_ERROR(e.name,t.message))}}}(e,u),u}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(16),i=n(118),a=n(66),s=function(){function e(e){this._binding=e}return e.prototype.to=function(e){return this._binding.type=o.BindingTypeEnum.Instance,this._binding.implementationType=e,new i.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=o.BindingTypeEnum.ConstantValue,this._binding.cache=e,this._binding.dynamicValue=null,this._binding.implementationType=null,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toDynamicValue=function(e){return this._binding.type=o.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=e,this._binding.implementationType=null,new i.BindingInWhenOnSyntax(this._binding)},e.prototype.toConstructor=function(e){return this._binding.type=o.BindingTypeEnum.Constructor,this._binding.implementationType=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=e,new a.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=o.BindingTypeEnum.Function,t},e.prototype.toAutoFactory=function(e){return this._binding.type=o.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},new a.BindingWhenOnSyntax(this._binding)},e.prototype.toProvider=function(e){return this._binding.type=o.BindingTypeEnum.Provider,this._binding.provider=e,new a.BindingWhenOnSyntax(this._binding)},e.prototype.toService=function(e){this.toDynamicValue((function(t){return t.container.get(e)}))},e}();t.BindingToSyntax=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(119),o=n(49),i=n(50),a=function(){function e(e){this._binding=e,this._bindingWhenSyntax=new i.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new o.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=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(16),o=n(66),i=function(){function e(e){this._binding=e}return e.prototype.inRequestScope=function(){return this._binding.scope=r.BindingScopeEnum.Request,new o.BindingWhenOnSyntax(this._binding)},e.prototype.inSingletonScope=function(){return this._binding.scope=r.BindingScopeEnum.Singleton,new o.BindingWhenOnSyntax(this._binding)},e.prototype.inTransientScope=function(){return this._binding.scope=r.BindingScopeEnum.Transient,new o.BindingWhenOnSyntax(this._binding)},e}();t.BindingInSyntax=i},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},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=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 o=n.filter((function(t){return!e(t)}));o.length>0?t._map.set(r,o):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=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),o=function(e){this.id=r.id(),this.registry=e};t.ContainerModule=o;var i=function(e){this.id=r.id(),this.registry=e};t.AsyncContainerModule=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(11);t.injectable=function(){return function(e){if(Reflect.hasOwnMetadata(o.PARAM_TYPES,e))throw new Error(r.DUPLICATED_INJECTABLE_DECORATOR);var t=Reflect.getMetadata(o.DESIGN_PARAM_TYPES,e)||[];return Reflect.defineMetadata(o.PARAM_TYPES,t,e),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(14),o=n(20);t.tagged=function(e,t){return function(n,i,a){var s=new r.Metadata(e,t);"number"==typeof a?o.tagParameter(n,i,a,s):o.tagProperty(n,i,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),o=n(14),i=n(20);t.named=function(e){return function(t,n,a){var s=new o.Metadata(r.NAMED_TAG,e);"number"==typeof a?i.tagParameter(t,n,a,s):i.tagProperty(t,n,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),o=n(14),i=n(20);t.optional=function(){return function(e,t,n){var a=new o.Metadata(r.OPTIONAL_TAG,!0);"number"==typeof n?i.tagParameter(e,t,n,a):i.tagProperty(e,t,a)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),o=n(14),i=n(20);t.unmanaged=function(){return function(e,t,n){var a=new o.Metadata(r.UNMANAGED_TAG,!0);i.tagParameter(e,t,n,a)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),o=n(14),i=n(20);t.multiInject=function(e){return function(t,n,a){var s=new o.Metadata(r.MULTI_INJECT_TAG,e);"number"==typeof a?i.tagParameter(t,n,a,s):i.tagProperty(t,n,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(11),o=n(14),i=n(20);t.targetName=function(e){return function(t,n,a){var s=new o.Metadata(r.NAME_TAG,e);i.tagParameter(t,n,a,s)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(11),i=n(14);t.postConstruct=function(){return function(e,t,n){var a=new i.Metadata(o.POST_CONSTRUCT,t);if(Reflect.hasOwnMetadata(o.POST_CONSTRUCT,e.constructor))throw new Error(r.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(o.POST_CONSTRUCT,a,e.constructor)}}},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{e(i.ServiceIdentifiers.ICallsGraphAnalyzer).to(s.CallsGraphAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.ICalleeDataExtractor).to(u.FunctionDeclarationCalleeDataExtractor).whenTargetNamed(a.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor),e(i.ServiceIdentifiers.ICalleeDataExtractor).to(d.FunctionExpressionCalleeDataExtractor).whenTargetNamed(a.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor),e(i.ServiceIdentifiers.ICalleeDataExtractor).to(l.ObjectExpressionCalleeDataExtractor).whenTargetNamed(a.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor),e(i.ServiceIdentifiers.Factory__ICalleeDataExtractor).toFactory(r.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=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=n(0),d=n(1),l=s(n(10)),c=n(68),p=n(3),g=n(24);let h=r=class{constructor(e){this.calleeDataExtractorFactory=e}static getLimitIndex(e){const t=e-1,n=r.limitThresholdActivationLength-1;let o=t;return t>n&&(o=Math.round(n+t*r.limitThreshold),o>t&&(o=t)),o}analyze(e){return this.analyzeRecursive(e.body)}analyzeRecursive(e){const t=r.getLimitIndex(e.length),n=[],o=e.length;for(let r=0;rt);r++){const t=e[r];l.traverse(t,{enter:r=>{if(p.NodeGuards.isCallExpressionNode(r))return t.parentNode!==g.NodeStatementUtils.getParentNodeWithStatements(r)?l.VisitorOption.Skip:void this.analyzeCallExpressionNode(n,e,r)}})}return n}analyzeCallExpressionNode(e,t,n){r.calleeDataExtractorsList.forEach(r=>{const o=this.calleeDataExtractorFactory(r).extract(t,n.callee);o&&e.push(Object.assign(Object.assign({},o),{callsGraph:this.analyzeRecursive(o.callee.body)}))})}};h.calleeDataExtractorsList=[c.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,c.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,c.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],h.limitThresholdActivationLength=25,h.limitThreshold=.002,h=r=o([u.injectable(),a(0,u.inject(d.ServiceIdentifiers.Factory__ICalleeDataExtractor)),i("design:paramtypes",[Function])],h),t.CallsGraphAnalyzer=h},function(e){e.exports=JSON.parse('{"name":"estraverse","description":"ECMAScript JS AST traversal functions","homepage":"https://github.com/estools/estraverse","main":"estraverse.js","version":"4.3.0","engines":{"node":">=4.0"},"maintainers":[{"name":"Yusuke Suzuki","email":"utatane.tea@gmail.com","web":"http://github.com/Constellation"}],"repository":{"type":"git","url":"http://github.com/estools/estraverse.git"},"devDependencies":{"babel-preset-env":"^1.6.1","babel-register":"^6.3.13","chai":"^2.1.1","espree":"^1.11.0","gulp":"^3.8.10","gulp-bump":"^0.2.2","gulp-filter":"^2.0.0","gulp-git":"^1.0.1","gulp-tag-version":"^1.3.0","jshint":"^2.5.6","mocha":"^2.1.0"},"license":"BSD-2-Clause","scripts":{"test":"npm run-script lint && npm run-script unit-test","lint":"jshint estraverse.js","unit-test":"mocha --compilers js:babel-register"}}')},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=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 i=n(0),a=o(n(10)),s=n(51),u=n(3),d=n(24);let l=class extends s.AbstractCalleeDataExtractor{extract(e,t){if(!u.NodeGuards.isIdentifierNode(t))return null;const n=this.getCalleeBlockStatement(d.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return n?{callee:n,name:t.name}:null}getCalleeBlockStatement(e,t){let n=null;return a.traverse(e,{enter:e=>{if(u.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return n=e.body,a.VisitorOption.Break}}),n}};l=r([i.injectable()],l),t.FunctionDeclarationCalleeDataExtractor=l},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=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 i=n(0),a=o(n(10)),s=n(51),u=n(3),d=n(24);let l=class extends s.AbstractCalleeDataExtractor{extract(e,t){let n=null;return u.NodeGuards.isIdentifierNode(t)&&(n=this.getCalleeBlockStatement(d.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)),u.NodeGuards.isFunctionExpressionNode(t)&&(n=t.body),n?{callee:n,name:t.name||null}:null}getCalleeBlockStatement(e,t){let n=null;return a.traverse(e,{enter:(e,r)=>{if(u.NodeGuards.isFunctionExpressionNode(e)&&r&&u.NodeGuards.isVariableDeclaratorNode(r)&&u.NodeGuards.isIdentifierNode(r.id)&&r.id.name===t)return n=e.body,a.VisitorOption.Break}}),n}};l=r([i.injectable()],l),t.FunctionExpressionCalleeDataExtractor=l},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=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 a=n(0),s=i(n(10)),u=n(51),d=n(3),l=n(24);let c=r=class extends u.AbstractCalleeDataExtractor{static isValidTargetPropertyNode(e,t){if(!e.key)return!1;const n=d.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,r=d.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return n||r}extract(e,t){if(!d.NodeGuards.isMemberExpressionNode(t))return null;const n=this.createObjectMembersCallsChain([],t);if(!n.length)return null;const r=n[n.length-1],o=this.getCalleeBlockStatement(l.NodeStatementUtils.getParentNodeWithStatements(e[0]),n);return o?{callee:o,name:r}:null}createObjectMembersCallsChain(e,t){if(d.NodeGuards.isIdentifierNode(t.property)&&!1===t.computed)e.unshift(t.property.name);else{if(!d.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return d.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(d.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}getCalleeBlockStatement(e,t){const n=t.shift();if(!n)return null;let r=null;return s.traverse(e,{enter:e=>{if(d.NodeGuards.isVariableDeclaratorNode(e)&&d.NodeGuards.isIdentifierNode(e.id)&&e.init&&d.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===n)return r=this.findCalleeBlockStatement(e.init.properties,t),s.VisitorOption.Break}}),r}findCalleeBlockStatement(e,t){const n=t.shift();if(!n)return null;for(const o of e)if(r.isValidTargetPropertyNode(o,n)){if(d.NodeGuards.isObjectExpressionNode(o.value))return this.findCalleeBlockStatement(o.value.properties,t);if(d.NodeGuards.isFunctionExpressionNode(o.value))return o.value.body}return null}};c=r=o([a.injectable()],c),t.ObjectExpressionCalleeDataExtractor=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(19),o=n(0),i=n(1),a=n(69),s=n(25),u=n(139),d=n(140),l=n(160),c=n(161),p=n(162),g=n(163),h=n(164);t.controlFlowTransformersModule=new o.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(c.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(u.BinaryExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(l.CallExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(g.LogicalExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(h.StringLiteralControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(i.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(r.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(21),l=n(70);let c=r=class extends l.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,n){super(e,t,n)}replace(e,t,n){const o=e.operator,i=this.controlFlowCustomNodeFactory(d.ControlFlowCustomNode.BinaryExpressionFunctionNode);i.initialize(o);const a=this.insertCustomNodeToControlFlowStorage(i,n,o,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a,e.left,e.right)}};c.usingExistingIdentifierChance=.5,c=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.Factory__IControlFlowCustomNode)),a(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(2,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Object,Object])],c),t.BinaryExpressionControlFlowReplacer=c},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=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=n(0),d=n(1),l=s(n(10)),c=n(21),p=n(6),g=n(7),h=n(3),f=n(5);let m=r=class extends g.AbstractNodeTransformer{constructor(e,t,n,r){super(n,r),this.controlFlowCustomNodeFactory=e,this.arrayUtils=t}static isProhibitedStatementNode(e){const t=h.NodeGuards.isBreakStatementNode(e)||h.NodeGuards.isContinueStatementNode(e),n=h.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),r=h.NodeGuards.isClassDeclarationNode(e);return h.NodeGuards.isFunctionDeclarationNode(e)||t||n||r}static canTransformBlockStatementNode(e){let t=!0;return l.traverse(e,{enter:e=>{if(h.NodeGuards.isWhileStatementNode(e))return l.VisitorOption.Skip;r.isProhibitedStatementNode(e)&&(t=!1)}}),e.body.length<=4&&(t=!1),t}getVisitor(e){switch(e){case p.TransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&h.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!r.canTransformBlockStatementNode(e))return e;const n=e.body,o=this.arrayUtils.createWithRange(n.length),i=this.arrayUtils.shuffle(o),a=o.map(e=>i.indexOf(e)),s=this.controlFlowCustomNodeFactory(c.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);s.initialize(n,i,a);const u=s.getNode()[0];return f.NodeUtils.parentizeNode(u,t),u}};m=r=o([u.injectable(),a(0,u.inject(d.ServiceIdentifiers.Factory__IControlFlowCustomNode)),a(1,u.inject(d.ServiceIdentifiers.IArrayUtils)),a(2,u.inject(d.ServiceIdentifiers.IRandomGenerator)),a(3,u.inject(d.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Object,Object,Object])],m),t.BlockStatementControlFlowTransformer=m},function(e,t,n){!function(){"use strict";t.ast=n(142),t.code=n(71),t.keyword=n(143)}()},function(e,t){!function(){"use strict";function t(e){if(null==e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function n(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()},function(e,t,n){!function(){"use strict";var t=n(71);function r(e,t){return!(!t&&"yield"===e)&&o(e,t)}function o(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function a(e,t){return"null"===e||"true"===e||"false"===e||o(e,t)}function s(e){var n,r,o;if(0===e.length)return!1;if(o=e.charCodeAt(0),!t.isIdentifierStartES5(o))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(i=e.charCodeAt(n))&&i<=57343))return!1;o=1024*(o-55296)+(i-56320)+65536}if(!a(o))return!1;a=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:r,isKeywordES6:o,isReservedWordES5:i,isReservedWordES6:a,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:u,isIdentifierES5:function(e,t){return s(e)&&!i(e,t)},isIdentifierES6:function(e,t){return u(e)&&!a(e,t)}}}()},function(e,t,n){t.SourceMapGenerator=n(72).SourceMapGenerator,t.SourceMapConsumer=n(147).SourceMapConsumer,t.SourceNode=n(150).SourceNode},function(e,t){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");t.encode=function(e){if(0<=e&&eo||i==o&&s>=a||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},o.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},t.MappingList=o},function(e,t,n){var r=n(35),o=n(148),i=n(74).ArraySet,a=n(73),s=n(149).quickSort;function u(e,t){var n=e;return"string"==typeof e&&(n=r.parseSourceMapInput(e)),null!=n.sections?new c(n,t):new d(n,t)}function d(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sources"),s=r.getArg(n,"names",[]),u=r.getArg(n,"sourceRoot",null),d=r.getArg(n,"sourcesContent",null),l=r.getArg(n,"mappings"),c=r.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);u&&(u=r.normalize(u)),a=a.map(String).map(r.normalize).map((function(e){return u&&r.isAbsolute(u)&&r.isAbsolute(e)?r.relative(u,e):e})),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map((function(e){return r.computeSourceURL(u,e,t)})),this.sourceRoot=u,this.sourcesContent=d,this._mappings=l,this._sourceMapURL=t,this.file=c}function l(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function c(e,t){var n=e;"string"==typeof e&&(n=r.parseSourceMapInput(e));var o=r.getArg(n,"version"),a=r.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=a.map((function(e){if(e.url)throw new Error("Support for url field in sections not implemented.");var n=r.getArg(e,"offset"),o=r.getArg(n,"line"),i=r.getArg(n,"column");if(o=0){var s=this._originalMappings[a];if(void 0===e.column)for(var u=s.originalLine;s&&s.originalLine===u;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var d=s.originalColumn;s&&s.originalLine===t&&s.originalColumn==d;)i.push({line:r.getArg(s,"generatedLine",null),column:r.getArg(s,"generatedColumn",null),lastColumn:r.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return i},t.SourceMapConsumer=u,d.prototype=Object.create(u.prototype),d.prototype.consumer=u,d.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t1&&(n.source=f+i[1],f+=i[1],n.originalLine=g+i[2],g=n.originalLine,n.originalLine+=1,n.originalColumn=h+i[3],h=n.originalColumn,i.length>4&&(n.name=m+i[4],m+=i[4])),N.push(n),"number"==typeof n.originalLine&&_.push(n)}s(N,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=N,s(_,r.compareByOriginalPositions),this.__originalMappings=_},d.prototype._findMapping=function(e,t,n,r,i,a){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return o.search(e,t,i,a)},d.prototype.computeColumnSpans=function(){for(var e=0;e=0){var o=this._generatedMappings[n];if(o.generatedLine===t.generatedLine){var i=r.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),i=r.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=r.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:r.getArg(o,"originalLine",null),column:r.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},d.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},d.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var o,i=e;if(null!=this.sourceRoot&&(i=r.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(o=r.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==o.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!o.path||"/"==o.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(t)return null;throw new Error('"'+i+'" is not in the SourceMap.')},d.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",u.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:r.getArg(i,"generatedLine",null),column:r.getArg(i,"generatedColumn",null),lastColumn:r.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},t.BasicSourceMapConsumer=d,c.prototype=Object.create(u.prototype),c.prototype.constructor=u,c.prototype._version=3,Object.defineProperty(c.prototype,"sources",{get:function(){for(var e=[],t=0;t0?r-u>1?e(u,r,o,i,a,s):s==t.LEAST_UPPER_BOUND?r1?e(n,u,o,i,a,s):s==t.LEAST_UPPER_BOUND?u:n<0?-1:n}(-1,n.length,e,n,r,o||t.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&0===r(n[i],n[i-1],!0);)--i;return i}},function(e,t){function n(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r(e,t,o,i){if(o=0;t--)this.prepend(e[t]);else{if(!e[a]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},s.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n=4.0"},"maintainers":[{"name":"Yusuke Suzuki","email":"utatane.tea@gmail.com","web":"http://github.com/Constellation"}],"repository":{"type":"git","url":"http://github.com/estools/escodegen.git"},"dependencies":{"estraverse":"^4.2.0","esutils":"^2.0.2","esprima":"^3.1.3","optionator":"^0.8.1"},"optionalDependencies":{"source-map":"~0.6.1"},"devDependencies":{"acorn":"^4.0.4","bluebird":"^3.4.7","bower-registry-client":"^1.0.0","chai":"^3.5.0","commonjs-everywhere":"^0.9.7","gulp":"^3.8.10","gulp-eslint":"^3.0.1","gulp-mocha":"^3.0.1","semver":"^5.1.0"},"license":"BSD-2-Clause","scripts":{"test":"gulp travis","unit-test":"gulp test","lint":"gulp lint","release":"node tools/release.js","build-min":"./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js","build":"./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js"}}')},function(e,t,n){"use strict";const r=n(153),o=/^[\da-fA-F]+$/,i=/^\d+$/,a=new WeakMap;function s(e){e=e.Parser.acorn||e;let t=a.get(e);if(!t){const n=e.tokTypes,r=e.TokContext,o=e.TokenType,i=new r("...",!0,!0),d={tc_oTag:i,tc_cTag:s,tc_expr:u},l={jsxName:new o("jsxName"),jsxText:new o("jsxText",{beforeExpr:!0}),jsxTagStart:new o("jsxTagStart"),jsxTagEnd:new o("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(u),this.context.push(i),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===i&&e===n.slash||t===s?(this.context.pop(),this.exprAllowed=this.curContext()===u):this.exprAllowed=!0},t={tokContexts:d,tokTypes:l},a.set(e,t)}return t}function u(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?u(e.object)+"."+u(e.property):void 0:e}e.exports=function(e){return e=e||{},function(t){return function(e,t){const a=t.acorn||n(54),d=s(a),l=a.tokTypes,c=d.tokTypes,p=a.tokContexts,g=d.tokContexts.tc_oTag,h=d.tokContexts.tc_cTag,f=d.tokContexts.tc_expr,m=a.isNewLine,b=a.isIdentifierStart,y=a.isIdentifierChar;return class extends t{static get acornJsx(){return d}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?60===n&&this.exprAllowed?(++this.pos,this.finishToken(c.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(c.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;default:m(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let r=this.input.charCodeAt(this.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):m(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(l.string,t)}jsx_readEntity(){let e,t="",n=0,a=this.input[this.pos];"&"!==a&&this.raise(this.pos,"Entity must start with an ampersand");let s=++this.pos;for(;this.pos")}let a=o.name?"Element":"Fragment";return n["opening"+a]=o,n["closing"+a]=i,n.children=r,this.type===l.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+a)}jsx_parseText(e){let t=this.parseLiteral(e);return t.type="JSXText",t}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===c.jsxText?this.jsx_parseText(this.value):this.type===c.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===f)return this.jsx_readToken();if(t===g||t===h){if(b(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(c.jsxTagEnd);if((34===e||39===e)&&t==g)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(c.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==l.braceL){var t=this.curContext();t==g?this.context.push(p.b_expr):t==f?this.context.push(p.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==l.slash||e!==c.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(h),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(n(54)).tokTypes},configurable:!0,enumerable:!0})},function(e,t){e.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},function(e,t,n){"use strict";e.exports={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression",JSXIdentifier:"JSXIdentifier",JSXNamespacedName:"JSXNamespacedName",JSXMemberExpression:"JSXMemberExpression",JSXEmptyExpression:"JSXEmptyExpression",JSXExpressionContainer:"JSXExpressionContainer",JSXElement:"JSXElement",JSXClosingElement:"JSXClosingElement",JSXOpeningElement:"JSXOpeningElement",JSXAttribute:"JSXAttribute",JSXSpreadAttribute:"JSXSpreadAttribute",JSXText:"JSXText",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportAllDeclaration:"ExportAllDeclaration",ExportSpecifier:"ExportSpecifier",ImportDeclaration:"ImportDeclaration",ImportSpecifier:"ImportSpecifier",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier"}},function(e,t,n){"use strict";const r=n(156),o=Symbol("espree's internal state"),i=Symbol("espree's esprimaFinishNode");function a(e){const t=function(e=5){if("number"!=typeof e)throw new Error(`ecmaVersion must be a number. Received value of type ${typeof e} instead.`);let t=e;switch(t>=2015&&(t-=2009),t){case 3:case 5:case 6:case 7:case 8:case 9:case 10:case 11:return t}throw new Error("Invalid ecmaVersion.")}(e.ecmaVersion),n=function(e="script"){if("script"===e||"module"===e)return e;throw new Error("Invalid sourceType.")}(e.sourceType),r=!0===e.range,o=!0===e.loc;if("module"===n&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:n,ranges:r,locations:o})}e.exports=()=>e=>{const t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,n){"object"==typeof e&&null!==e||(e={}),"string"==typeof n||n instanceof String||(n=String(n));const i=a(e),s=i.ecmaFeatures||{},u=!0===i.tokens?new r(t,n):null;super({ecmaVersion:i.ecmaVersion,sourceType:i.sourceType,ranges:i.ranges,locations:i.locations,allowReturnOutsideFunction:Boolean(s.globalReturn),onToken:e=>{u&&u.onToken(e,this[o]),e.type!==t.eof&&(this[o].lastToken=e)},onComment:(e,t,n,r,i,a)=>{if(this[o].comments){const s=function(e,t,n,r,o,i){const a={type:e?"Block":"Line",value:t};return"number"==typeof n&&(a.start=n,a.end=r,a.range=[n,r]),"object"==typeof o&&(a.loc={start:o,end:i}),a}(e,t,n,r,i,a);this[o].comments.push(s)}}},n),this[o]={tokens:u?[]:null,comments:!0===i.comment?[]:null,impliedStrict:!0===s.impliedStrict&&this.options.ecmaVersion>=5,ecmaVersion:this.options.ecmaVersion,jsxAttrValueToken:!1,lastToken:null}}tokenize(){do{this.next()}while(this.type!==t.eof);this.next();const e=this[o],n=e.tokens;return e.comments&&(n.comments=e.comments),n}finishNode(...e){const t=super.finishNode(...e);return this[i](t)}finishNodeAt(...e){const t=super.finishNodeAt(...e);return this[i](t)}parse(){const e=this[o],t=super.parse();return t.sourceType=this.options.sourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.range&&(t.range[0]=t.body.length?t.body[0].range[0]:t.range[0],t.range[1]=e.lastToken?e.lastToken.range[1]:t.range[1]),t.loc&&(t.loc.start=t.body.length?t.body[0].loc.start:t.loc.start,t.loc.end=e.lastToken?e.lastToken.loc.end:t.loc.end),t}parseTopLevel(e){return this[o].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,n){const r=e.acorn.getLineInfo(this.input,t),o=new SyntaxError(n);throw o.index=t,o.lineNumber=r.line,o.column=r.column+1,o}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t="Unexpected token";if(null!=e){if(this.pos=e,this.options.locations)for(;this.posthis.start&&(t+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,t)}jsx_readString(e){const n=super.jsx_readString(e);return this.type===t.string&&(this[o].jsxAttrValueToken=!0),n}[i](e){if("TemplateElement"===e.type){const t="${"===this.input.slice(e.end,e.end+2);e.range&&(e.range[0]--,e.range[1]+=t?2:1),e.loc&&(e.loc.start.column--,e.loc.end.column+=t?2:1)}return e.type.indexOf("Function")>-1&&!e.generator&&(e.generator=!1),e}}}},function(e,t,n){"use strict";const r="Boolean",o="Identifier",i="Keyword",a="Null",s="Numeric",u="Punctuator",d="String",l="RegularExpression",c="Template",p="JSXIdentifier",g="JSXText";function h(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}h.prototype={constructor:h,translate(e,t){const n=e.type,c=this._acornTokTypes;if(n===c.name)e.type=o,"static"===e.value&&(e.type=i),t.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=i);else if(n===c.semi||n===c.comma||n===c.parenL||n===c.parenR||n===c.braceL||n===c.braceR||n===c.dot||n===c.bracketL||n===c.colon||n===c.question||n===c.bracketR||n===c.ellipsis||n===c.arrow||n===c.jsxTagStart||n===c.incDec||n===c.starstar||n===c.jsxTagEnd||n===c.prefix||n.binop&&!n.keyword||n.isAssign)e.type=u,e.value=this._code.slice(e.start,e.end);else if(n===c.jsxName)e.type=p;else if("jsxText"===n.label||n===c.jsxAttrValueToken)e.type=g;else if(n.keyword)"true"===n.keyword||"false"===n.keyword?e.type=r:"null"===n.keyword?e.type=a:e.type=i;else if(n===c.num)e.type=s,e.value=this._code.slice(e.start,e.end);else if(n===c.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=g):e.type=d,e.value=this._code.slice(e.start,e.end);else if(n===c.regexp){e.type=l;const t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){const n=this,r=this._acornTokTypes,o=t.tokens,i=this._tokens;function a(){o.push(function(e,t){const n=e[0],r=e[e.length-1],o={type:c,value:t.slice(n.start,r.end)};return n.loc&&(o.loc={start:n.loc.start,end:r.loc.end}),n.range&&(o.start=n.range[0],o.end=r.range[1],o.range=[o.start,o.end]),o}(n._tokens,n._code)),n._tokens=[]}if(e.type!==r.eof){if(e.type===r.backQuote)return this._curlyBrace&&(o.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),i.push(e),void(i.length>1&&a());if(e.type===r.dollarBraceL)return i.push(e),void a();if(e.type===r.braceR)return this._curlyBrace&&o.push(this.translate(this._curlyBrace,t)),void(this._curlyBrace=e);if(e.type===r.template||e.type===r.invalidTemplate)return this._curlyBrace&&(i.push(this._curlyBrace),this._curlyBrace=null),void i.push(e);this._curlyBrace&&(o.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),o.push(this.translate(e,t))}else this._curlyBrace&&o.push(this.translate(this._curlyBrace,t))}},e.exports=h},function(e){e.exports=JSON.parse('{"name":"espree","description":"An Esprima-compatible JavaScript parser built on Acorn","author":"Nicholas C. Zakas ","homepage":"https://github.com/eslint/espree","main":"espree.js","version":"6.1.2","files":["lib","espree.js"],"engines":{"node":">=6.0.0"},"repository":"eslint/espree","bugs":{"url":"http://github.com/eslint/espree.git"},"license":"BSD-2-Clause","dependencies":{"acorn":"^7.1.0","acorn-jsx":"^5.1.0","eslint-visitor-keys":"^1.1.0"},"devDependencies":{"browserify":"^16.5.0","chai":"^4.2.0","eslint":"^6.0.1","eslint-config-eslint":"^5.0.1","eslint-plugin-node":"^9.1.0","eslint-release":"^1.0.0","esprima":"latest","esprima-fb":"^8001.2001.0-dev-harmony-fb","json-diff":"^0.5.4","leche":"^2.3.0","mocha":"^6.2.0","nyc":"^14.1.1","regenerate":"^1.4.0","shelljs":"^0.3.0","shelljs-nodecli":"^0.1.1","unicode-6.3.0":"^0.7.5"},"keywords":["ast","ecmascript","javascript","parser","syntax","acorn"],"scripts":{"generate-regex":"node tools/generate-identifier-regex.js","test":"npm run-script lint && node Makefile.js test","lint":"node Makefile.js lint","browserify":"node Makefile.js browserify","generate-release":"eslint-generate-release","generate-alpharelease":"eslint-generate-prerelease alpha","generate-betarelease":"eslint-generate-prerelease beta","generate-rcrelease":"eslint-generate-prerelease rc","publish-release":"eslint-publish-release"}}')},function(e,t,n){"use strict";const r=n(159),o=Object.freeze(Object.keys(r));for(const e of o)Object.freeze(r[e]);Object.freeze(r);const i=new Set(["parent","leadingComments","trailingComments"]);function a(e){return!i.has(e)&&"_"!==e[0]}e.exports=Object.freeze({KEYS:r,getKeys:e=>Object.keys(e).filter(a),unionWith(e){const t=Object.assign({},r);for(const n of Object.keys(e))if(t.hasOwnProperty(n)){const r=new Set(e[n]);for(const e of t[n])r.add(e);t[n]=Object.freeze(Array.from(r))}else t[n]=Object.freeze(Array.from(e[n]));return Object.freeze(t)}})},function(e){e.exports=JSON.parse('{"AssignmentExpression":["left","right"],"AssignmentPattern":["left","right"],"ArrayExpression":["elements"],"ArrayPattern":["elements"],"ArrowFunctionExpression":["params","body"],"AwaitExpression":["argument"],"BlockStatement":["body"],"BinaryExpression":["left","right"],"BreakStatement":["label"],"CallExpression":["callee","arguments"],"CatchClause":["param","body"],"ClassBody":["body"],"ClassDeclaration":["id","superClass","body"],"ClassExpression":["id","superClass","body"],"ConditionalExpression":["test","consequent","alternate"],"ContinueStatement":["label"],"DebuggerStatement":[],"DoWhileStatement":["body","test"],"EmptyStatement":[],"ExportAllDeclaration":["source"],"ExportDefaultDeclaration":["declaration"],"ExportNamedDeclaration":["declaration","specifiers","source"],"ExportSpecifier":["exported","local"],"ExpressionStatement":["expression"],"ExperimentalRestProperty":["argument"],"ExperimentalSpreadProperty":["argument"],"ForStatement":["init","test","update","body"],"ForInStatement":["left","right","body"],"ForOfStatement":["left","right","body"],"FunctionDeclaration":["id","params","body"],"FunctionExpression":["id","params","body"],"Identifier":[],"IfStatement":["test","consequent","alternate"],"ImportDeclaration":["specifiers","source"],"ImportDefaultSpecifier":["local"],"ImportExpression":["source"],"ImportNamespaceSpecifier":["local"],"ImportSpecifier":["imported","local"],"JSXAttribute":["name","value"],"JSXClosingElement":["name"],"JSXElement":["openingElement","children","closingElement"],"JSXEmptyExpression":[],"JSXExpressionContainer":["expression"],"JSXIdentifier":[],"JSXMemberExpression":["object","property"],"JSXNamespacedName":["namespace","name"],"JSXOpeningElement":["name","attributes"],"JSXSpreadAttribute":["argument"],"JSXText":[],"JSXFragment":["openingFragment","children","closingFragment"],"Literal":[],"LabeledStatement":["label","body"],"LogicalExpression":["left","right"],"MemberExpression":["object","property"],"MetaProperty":["meta","property"],"MethodDefinition":["key","value"],"NewExpression":["callee","arguments"],"ObjectExpression":["properties"],"ObjectPattern":["properties"],"Program":["body"],"Property":["key","value"],"RestElement":["argument"],"ReturnStatement":["argument"],"SequenceExpression":["expressions"],"SpreadElement":["argument"],"Super":[],"SwitchStatement":["discriminant","cases"],"SwitchCase":["test","consequent"],"TaggedTemplateExpression":["tag","quasi"],"TemplateElement":[],"TemplateLiteral":["quasis","expressions"],"ThisExpression":[],"ThrowStatement":["argument"],"TryStatement":["block","handler","finalizer"],"UnaryExpression":["argument"],"UpdateExpression":["argument"],"VariableDeclaration":["declarations"],"VariableDeclarator":["id","init"],"WhileStatement":["test","body"],"WithStatement":["object","body"],"YieldExpression":["argument"]}')},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(21),l=n(52),c=n(3);let p=r=class extends l.AbstractControlFlowReplacer{constructor(e,t,n){super(e,t,n)}replace(e,t,n){const o=e.callee;if(!c.NodeGuards.isIdentifierNode(o))return e;const i=String(e.arguments.length),a=this.controlFlowCustomNodeFactory(d.ControlFlowCustomNode.CallExpressionFunctionNode),s=e.arguments;a.initialize(s);const u=this.insertCustomNodeToControlFlowStorage(a,n,i,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),u,o,s)}getControlFlowStorageCallNode(e,t,n,r){const o=this.controlFlowCustomNodeFactory(d.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);o.initialize(e,t,n,r);const i=o.getNode()[0];if(!i||!c.NodeGuards.isExpressionStatementNode(i))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return i.expression}};p.usingExistingIdentifierChance=.5,p=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.Factory__IControlFlowCustomNode)),a(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(2,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Object,Object])],p),t.CallExpressionControlFlowReplacer=p},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=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=n(0),d=n(1),l=s(n(10)),c=n(76),p=n(25),g=n(17),h=n(6),f=n(7),m=n(8),b=n(3),y=n(24),S=n(5);let C=r=class extends f.AbstractNodeTransformer{constructor(e,t,n,r){super(n,r),this.deadCodeInjectionRootAstHostNodeSet=new Set,this.collectedBlockStatements=[],this.collectedBlockStatementsTotalLength=0,this.deadCodeInjectionCustomNodeFactory=e,this.transformersRunner=t}static isProhibitedNodeInsideCollectedBlockStatement(e){return b.NodeGuards.isBreakStatementNode(e)||b.NodeGuards.isContinueStatementNode(e)||b.NodeGuards.isAwaitExpressionNode(e)||b.NodeGuards.isSuperNode(e)}static isScopeHoistingFunctionDeclaration(e){if(!b.NodeGuards.isFunctionDeclarationNode(e))return!1;const t=y.NodeStatementUtils.getScopeOfNode(e),n=b.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,r=n.indexOf(e);if(0===r)return!1;const o=n.slice(0,r),i=m.NodeFactory.blockStatementNode(o),a=e.id.name;let s=!1;return l.traverse(i,{enter:e=>{if(b.NodeGuards.isIdentifierNode(e)&&e.name===a)return s=!0,l.VisitorOption.Break}}),s}static isValidCollectedBlockStatementNode(e){if(!e.body.length)return!1;let t=0,n=!0;return l.traverse(e,{enter:e=>{if(b.NodeGuards.isBlockStatementNode(e)&&t++,t>r.maxNestedBlockStatementsCount||r.isProhibitedNodeInsideCollectedBlockStatement(e)||r.isScopeHoistingFunctionDeclaration(e))return n=!1,l.VisitorOption.Break}}),n}static isValidWrappedBlockStatementNode(e){if(!e.body.length)return!1;let t=!0;if(l.traverse(e,{enter:e=>{if(r.isScopeHoistingFunctionDeclaration(e))return t=!1,l.VisitorOption.Break}}),!t)return!1;return y.NodeStatementUtils.getParentNodeWithStatements(e).type!==g.NodeType.Program}getVisitor(e){switch(e){case h.TransformationStage.DeadCodeInjection:return{enter:(e,t)=>{if(t&&b.NodeGuards.isProgramNode(e))return this.analyzeNode(e,t),e},leave:(e,t)=>{if(t&&b.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};case h.TransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:(e,t)=>{if(t&&this.isDeadCodeInjectionRootAstHostNode(e))return this.restoreNode(e,t)}}:null;default:return null}}analyzeNode(e,t){l.traverse(e,{enter:e=>{if(!b.NodeGuards.isBlockStatementNode(e))return;const t=S.NodeUtils.clone(e);if(!r.isValidCollectedBlockStatementNode(t))return;const n=this.makeClonedBlockStatementNodeUnique(t);this.collectedBlockStatements.push(n)}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}transformNode(e,t){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!r.isValidWrappedBlockStatementNode(e))return e;const n=this.collectedBlockStatements.length-1,o=this.randomGenerator.getRandomInteger(0,n),i=this.collectedBlockStatements.splice(o,1)[0];return i===e?e:this.replaceBlockStatementNode(e,i,t)}restoreNode(e,t){const n=e.body[0];if(!b.NodeGuards.isFunctionDeclarationNode(n))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return n.body}isDeadCodeInjectionRootAstHostNode(e){return b.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}makeClonedBlockStatementNodeUnique(e){const t=m.NodeFactory.functionExpressionNode([],e);return S.NodeUtils.parentizeNode(t,t),S.NodeUtils.parentizeNode(e,t),this.transformersRunner.transform(t,r.transformersToRenameBlockScopeIdentifiers,h.TransformationStage.Obfuscating).body}replaceBlockStatementNode(e,t,n){const o=m.NodeFactory.blockStatementNode([m.NodeFactory.functionDeclarationNode(r.deadCodeInjectionRootAstHostNodeName,[],t)]);this.deadCodeInjectionRootAstHostNodeSet.add(o);const i=this.deadCodeInjectionCustomNodeFactory(c.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);i.initialize(e,o);const a=i.getNode()[0];return S.NodeUtils.parentizeNode(a,n),a}};C.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",C.maxNestedBlockStatementsCount=4,C.minCollectedBlockStatementsCount=5,C.transformersToRenameBlockScopeIdentifiers=[p.NodeTransformer.CatchClauseTransformer,p.NodeTransformer.ClassDeclarationTransformer,p.NodeTransformer.FunctionDeclarationTransformer,p.NodeTransformer.FunctionTransformer,p.NodeTransformer.LabeledStatementTransformer,p.NodeTransformer.VariableDeclarationTransformer],C=r=o([u.injectable(),a(0,u.inject(d.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),a(1,u.inject(d.ServiceIdentifiers.ITransformersRunner)),a(2,u.inject(d.ServiceIdentifiers.IRandomGenerator)),a(3,u.inject(d.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Object,Object,Object])],C),t.DeadCodeInjectionTransformer=C},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=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=n(0),d=n(1),l=s(n(10)),c=n(21),p=n(69),g=n(17),h=n(6),f=n(7),m=n(22),b=n(3),y=n(13),S=n(24),C=n(5);let _=r=class extends f.AbstractNodeTransformer{constructor(e,t,n,r,o){super(r,o),this.controlFlowData=new Map,this.visitedFunctionNodes=new Set,this.hostNodesWithControlFlowNode=new Set,this.controlFlowStorageFactory=e,this.controlFlowReplacerFactory=t,this.controlFlowCustomNodeFactory=n}getVisitor(e){switch(e){case h.TransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&(b.NodeGuards.isFunctionDeclarationNode(e)||b.NodeGuards.isFunctionExpressionNode(e)||b.NodeGuards.isArrowFunctionExpressionNode(e)))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(this.visitedFunctionNodes.add(e),!b.NodeGuards.isBlockStatementNode(e.body))return e;const n=this.getHostNode(e.body),r=this.getControlFlowStorage(n);if(this.controlFlowData.set(n,r),this.transformFunctionBody(e.body,r),!r.getLength())return e;const o=this.controlFlowCustomNodeFactory(c.ControlFlowCustomNode.ControlFlowStorageNode);return o.initialize(r),m.NodeAppender.prepend(n,o.getNode()),this.hostNodesWithControlFlowNode.add(n),C.NodeUtils.parentizeAst(e),e}getControlFlowStorage(e){const t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(b.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());const n=this.controlFlowData.get(e);t.mergeWith(n,!0)}return t}getHostNode(e){const t=S.NodeStatementUtils.getParentNodesWithStatements(e);return 1===t.length?e:(t.pop(),t.length>r.hostNodeSearchMinDepth&&t.splice(0,r.hostNodeSearchMinDepth),t.length>r.hostNodeSearchMaxDepth&&(t.length=r.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(t))}isVisitedFunctionNode(e){return(b.NodeGuards.isFunctionDeclarationNode(e)||b.NodeGuards.isFunctionExpressionNode(e)||b.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}transformFunctionBody(e,t){l.replace(e,{enter:(e,n)=>{if(y.NodeMetadata.isIgnoredNode(e))return l.VisitorOption.Skip;if(this.isVisitedFunctionNode(e)||!n)return l.VisitorOption.Skip;if(!r.controlFlowReplacersMap.has(e.type))return e;if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold)return e;const o=r.controlFlowReplacersMap.get(e.type);return void 0===o?e:Object.assign(Object.assign({},this.controlFlowReplacerFactory(o).replace(e,n,t)),{parentNode:n})}})}};_.controlFlowReplacersMap=new Map([[g.NodeType.BinaryExpression,p.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[g.NodeType.CallExpression,p.ControlFlowReplacer.CallExpressionControlFlowReplacer],[g.NodeType.LogicalExpression,p.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[g.NodeType.Literal,p.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),_.hostNodeSearchMinDepth=0,_.hostNodeSearchMaxDepth=2,_=r=o([u.injectable(),a(0,u.inject(d.ServiceIdentifiers.Factory__TControlFlowStorage)),a(1,u.inject(d.ServiceIdentifiers.Factory__IControlFlowReplacer)),a(2,u.inject(d.ServiceIdentifiers.Factory__IControlFlowCustomNode)),a(3,u.inject(d.ServiceIdentifiers.IRandomGenerator)),a(4,u.inject(d.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Function,Function,Object,Object])],_),t.FunctionControlFlowTransformer=_},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(21),l=n(70),c=n(3),p=n(5);let g=r=class extends l.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,n){super(e,t,n)}replace(e,t,n){if(this.checkForProhibitedExpressions(e.left,e.right))return e;const o=e.operator,i=this.controlFlowCustomNodeFactory(d.ControlFlowCustomNode.LogicalExpressionFunctionNode);i.initialize(o);const a=this.insertCustomNodeToControlFlowStorage(i,n,o,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a,e.left,e.right)}checkForProhibitedExpressions(e,t){return[e,t].some(e=>{let t;return t=c.NodeGuards.isUnaryExpressionNode(e)?p.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(c.NodeGuards.isLiteralNode(t)||c.NodeGuards.isIdentifierNode(t)||c.NodeGuards.isObjectExpressionNode(t)||c.NodeGuards.isExpressionStatementNode(t))})}};g.usingExistingIdentifierChance=.5,g=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.Factory__IControlFlowCustomNode)),a(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(2,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Object,Object])],g),t.LogicalExpressionControlFlowReplacer=g},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(21),l=n(52),c=n(3);let p=r=class extends l.AbstractControlFlowReplacer{constructor(e,t,n){super(e,t,n)}replace(e,t,n){if(c.NodeGuards.isPropertyNode(t)&&t.key===e)return e;if("string"!=typeof e.value||e.value.length<3)return e;const o=String(e.value),i=this.controlFlowCustomNodeFactory(d.ControlFlowCustomNode.StringLiteralNode);i.initialize(e.value);const a=this.insertCustomNodeToControlFlowStorage(i,n,o,r.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(n.getStorageId(),a)}getControlFlowStorageCallNode(e,t){const n=this.controlFlowCustomNodeFactory(d.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);n.initialize(e,t);const r=n.getNode()[0];if(!r||!c.NodeGuards.isExpressionStatementNode(r))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return r.expression}};p.usingExistingIdentifierChance=1,p=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.Factory__IControlFlowCustomNode)),a(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(2,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Object,Object])],p),t.StringLiteralControlFlowReplacer=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(19),i=n(1),a=n(25),s=n(77),u=n(166),d=n(167),l=n(168),c=n(169),p=n(170),g=n(171),h=n(172),f=n(173),m=n(174);t.convertingTransformersModule=new r.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(l.MemberExpressionTransformer).whenTargetNamed(a.NodeTransformer.MemberExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(c.MethodDefinitionTransformer).whenTargetNamed(a.NodeTransformer.MethodDefinitionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.ObjectExpressionKeysTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionKeysTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(g.ObjectExpressionTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(h.SplitStringTransformer).whenTargetNamed(a.NodeTransformer.SplitStringTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.TemplateLiteralTransformer).whenTargetNamed(a.NodeTransformer.TemplateLiteralTransformer),e(i.ServiceIdentifiers.IPropertiesExtractor).to(u.AssignmentExpressionPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.AssignmentExpressionPropertiesExtractor),e(i.ServiceIdentifiers.IPropertiesExtractor).to(d.BasePropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.BasePropertiesExtractor),e(i.ServiceIdentifiers.IPropertiesExtractor).to(m.VariableDeclaratorPropertiesExtractor).whenTargetNamed(s.PropertiesExtractor.VariableDeclaratorPropertiesExtractor),e(i.ServiceIdentifiers.Factory__IPropertiesExtractor).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IPropertiesExtractor))})},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(55),l=n(3);let c=r=class extends d.AbstractPropertiesExtractor{constructor(e,t){super(e,t)}static isProhibitedHostParent(e){return!!l.NodeGuards.isMemberExpressionNode(e)||(!!r.isProhibitedStatementNode(e)||l.NodeGuards.isExpressionStatementNode(e)&&!!e.parentNode&&r.isProhibitedStatementNode(e.parentNode))}static isProhibitedStatementNode(e){return l.NodeGuards.isIfStatementNode(e)||l.NodeGuards.isForStatementTypeNode(e)||l.NodeGuards.isWhileStatementNode(e)}extract(e,t){const n=t.parentNode,o=t.left;return d.AbstractPropertiesExtractor.isProhibitedPattern(o)?e:n&&r.isProhibitedHostParent(n)?e:this.transformObjectExpressionNode(e,o)}};c=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(1,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Object,Object])],c),t.AssignmentExpressionPropertiesExtractor=c},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(78),d=n(55),l=n(22),c=n(3);let p=class extends d.AbstractPropertiesExtractor{constructor(e,t,n){super(e,t),this.objectExpressionKeysTransformerCustomNodeFactory=n}extract(e,t){return this.transformObjectExpressionNode(e,t)}transformObjectExpressionNode(e,t){const n=this.getObjectExpressionHostNode(),r=this.getObjectExpressionIdentifierNode(n),o=e.properties,[i,a]=this.extractPropertiesToExpressionStatements(o,r),s=[n,...i],u=this.getHostStatement(e),d=this.getHostNodeWithStatements(e,u);return this.filterExtractedObjectExpressionProperties(e,a),l.NodeAppender.insertBefore(d,s,u),r}getObjectExpressionHostNode(){const e=this.objectExpressionKeysTransformerCustomNodeFactory(u.ObjectExpressionKeysTransformerCustomNode.BasePropertiesExtractorObjectExpressionHostNode);e.initialize();const t=e.getNode()[0];if(!t||!c.NodeGuards.isVariableDeclarationNode(t))throw new Error("`objectExpressionHostCustomNode.getNode()[0]` should returns array with `VariableDeclaration` node");return t}getObjectExpressionIdentifierNode(e){const t=e.declarations[0].id;if(!c.NodeGuards.isIdentifierNode(t))throw new Error("`objectExpressionHostNode` should contain `VariableDeclarator` node with `Identifier` id property");return t}};p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),i(2,a.inject(s.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode)),o("design:paramtypes",[Object,Object,Function])],p),t.BasePropertiesExtractor=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(6),d=n(7),l=n(8),c=n(3);let p=class extends d.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case u.TransformationStage.Converting:return{enter:(e,t)=>{if(t&&c.NodeGuards.isMemberExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(c.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=l.NodeFactory.literalNode(e.property.name)}return e}};p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Object,Object])],p),t.MemberExpressionTransformer=p},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(6),l=n(7),c=n(8),p=n(3);let g=r=class extends l.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case d.TransformationStage.Converting:return{enter:(e,t)=>{if(t&&p.NodeGuards.isMethodDefinitionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return p.NodeGuards.isIdentifierNode(e.key)&&!r.ignoredNames.includes(e.key.name)&&!1===e.computed&&(e.computed=!0,e.key=c.NodeFactory.literalNode(e.key.name)),e}};g.ignoredNames=["constructor"],g=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(1,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Object,Object])],g),t.MethodDefinitionTransformer=g},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(17),l=n(77),c=n(6),p=n(7),g=n(3);let h=r=class extends p.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.propertiesExtractorFactory=e}getVisitor(e){return this.options.transformObjectKeys?e!==c.TransformationStage.Converting?null:{enter:(e,t)=>{if(t&&g.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)},leave:(e,t)=>{if(t&&g.NodeGuards.isObjectExpressionNode(e))return this.transformNodeWithBaseExtractor(e,t)}}:null}transformNode(e,t){if(!e.properties.length)return e;const n=r.propertiesExtractorsMap.get(t.type);return n?this.propertiesExtractorFactory(n).extract(e,t):e}transformNodeWithBaseExtractor(e,t){if(!e.properties.length)return e;return this.propertiesExtractorFactory(l.PropertiesExtractor.BasePropertiesExtractor).extract(e,t)}};h.propertiesExtractorsMap=new Map([[d.NodeType.AssignmentExpression,l.PropertiesExtractor.AssignmentExpressionPropertiesExtractor],[d.NodeType.VariableDeclarator,l.PropertiesExtractor.VariableDeclaratorPropertiesExtractor]]),h=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.Factory__IPropertiesExtractor)),a(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(2,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Object,Object])],h),t.ObjectExpressionKeysTransformer=h},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(6),d=n(7),l=n(8),c=n(3);let p=class extends d.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.escapeSequenceEncoder=e}getVisitor(e){switch(e){case u.TransformationStage.Converting:return{enter:(e,t)=>{if(t&&c.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return e.properties.forEach(e=>{e.key&&(e.computed?this.transformComputedProperty(e):this.transformBaseProperty(e))}),e}transformComputedProperty(e){c.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=l.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.value)))}transformBaseProperty(e){e.shorthand&&(e.shorthand=!1),c.NodeGuards.isIdentifierNode(e.key)&&(e.key=l.NodeFactory.literalNode(this.getPropertyKeyValue(e.key.name)))}getPropertyKeyValue(e){return this.options.unicodeEscapeSequence?this.escapeSequenceEncoder.encode(e,!0):e}};p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Object,Object,Object])],p),t.ObjectExpressionTransformer=p},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(25),l=n(6),c=n(7),p=n(8),g=n(3);let h=r=class extends c.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[d.NodeTransformer.ObjectExpressionKeysTransformer,d.NodeTransformer.TemplateLiteralTransformer]}static chunkString(e,t){const n=Math.ceil(e.length/t),r=[];let o=0;for(let i=0;i{if(this.options.splitStrings)return t&&g.NodeGuards.isLiteralNode(e)?this.transformNode(e,t):void 0}};default:return null}}transformNode(e,t){if("string"!=typeof e.value)return e;if(g.NodeGuards.isPropertyNode(t)&&!t.computed&&t.key===e)return e;if(this.options.splitStringsChunkLength>=e.value.length)return e;const n=r.chunkString(e.value,this.options.splitStringsChunkLength);return this.transformStringChunksToBinaryExpressionNode(n)}transformStringChunksToBinaryExpressionNode(e){const t=e.pop();if(void 0===t)throw new Error("Last chunk value should not be empty");const n=p.NodeFactory.literalNode(t);return 0===e.length?n:p.NodeFactory.binaryExpressionNode("+",this.transformStringChunksToBinaryExpressionNode(e),n)}};h=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(1,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Object,Object])],h),t.SplitStringTransformer=h},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(6),l=n(7),c=n(8),p=n(3),g=n(5);let h=r=class extends l.AbstractNodeTransformer{constructor(e,t){super(e,t)}static isLiteralNodeWithStringValue(e){return e&&p.NodeGuards.isLiteralNode(e)&&"string"==typeof e.value}static isValidTemplateLiteralNode(e,t){return p.NodeGuards.isTemplateLiteralNode(e)&&!p.NodeGuards.isTaggedTemplateExpressionNode(t)}getVisitor(e){switch(e){case d.TransformationStage.Converting:return{enter:(e,t)=>{if(t&&r.isValidTemplateLiteralNode(e,t))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const n=e.expressions;let o,i=[];if(e.quasis.forEach(e=>{i.push(c.NodeFactory.literalNode(e.value.cooked));const t=n.shift();t&&i.push(t)}),i=i.filter(e=>!(p.NodeGuards.isLiteralNode(e)&&""===e.value)),r.isLiteralNodeWithStringValue(i[0])||r.isLiteralNodeWithStringValue(i[1])||i.unshift(c.NodeFactory.literalNode("")),i.length>1){let e=c.NodeFactory.binaryExpressionNode("+",i.shift(),i.shift());i.forEach(t=>{e=c.NodeFactory.binaryExpressionNode("+",e,t)}),o=e}else o=i[0];return g.NodeUtils.parentizeAst(o),o}};h=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(1,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Object,Object])],h),t.TemplateLiteralTransformer=h},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,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 s=n(0),u=n(1),d=a(n(10)),l=n(55),c=n(3);let p=class extends l.AbstractPropertiesExtractor{constructor(e,t){super(e,t)}extract(e,t){return!c.NodeGuards.isIdentifierNode(t.id)||this.isProhibitedObjectExpressionNode(e,t.id)?e:this.transformObjectExpressionNode(e,t.id)}getHostVariableDeclaratorNode(e){const{parentNode:t}=e;if(!t||!c.NodeGuards.isVariableDeclaratorNode(t))throw new Error("Cannot get `VariableDeclarator` node for `ObjectExpression` node");return t}getHostVariableDeclarationNode(e){const{parentNode:t}=e;if(!t||!c.NodeGuards.isVariableDeclarationNode(t))throw new Error("Cannot get `VariableDeclaration` node for `VariableDeclarator` node");return t}isProhibitedObjectExpressionNode(e,t){const n=this.getHostVariableDeclaratorNode(e),r=this.getHostVariableDeclarationNode(n),{declarations:o}=r,i=o.indexOf(n);if(i===o.length-1)return!1;const a=o.slice(i);let s=!1;return a.forEach(e=>{d.traverse(e,{enter:e=>c.NodeGuards.isMemberExpressionNode(e)&&c.NodeGuards.isIdentifierNode(e.object)&&e.object.name===t.name?(s=!0,d.VisitorOption.Break):e})}),s}};p=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(1,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Object,Object])],p),t.VariableDeclaratorPropertiesExtractor=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(19),o=n(0),i=n(1),a=n(21),s=n(30),u=n(79),d=n(76),l=n(78),c=n(176),p=n(177),g=n(178),h=n(179),f=n(180),m=n(181),b=n(184),y=n(185),S=n(186),C=n(187),_=n(188),N=n(189),A=n(190),v=n(193),E=n(195),T=n(197),I=n(201),D=n(203),P=n(204),M=n(205),O=n(207),F=n(209),R=n(216),$=n(218),x=n(221),w=n(222);t.customNodesModule=new o.ContainerModule(e=>{e(i.ServiceIdentifiers.ICustomNode).to(A.ConsoleOutputDisableExpressionNode).whenTargetNamed(s.CustomNode.ConsoleOutputDisableExpressionNode),e(i.ServiceIdentifiers.ICustomNode).to(v.DebugProtectionFunctionCallNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionCallNode),e(i.ServiceIdentifiers.ICustomNode).to(E.DebugProtectionFunctionIntervalNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionIntervalNode),e(i.ServiceIdentifiers.ICustomNode).to(T.DebugProtectionFunctionNode).whenTargetNamed(s.CustomNode.DebugProtectionFunctionNode),e(i.ServiceIdentifiers.ICustomNode).to(I.DomainLockNode).whenTargetNamed(s.CustomNode.DomainLockNode),e(i.ServiceIdentifiers.ICustomNode).to(M.NodeCallsControllerFunctionNode).whenTargetNamed(s.CustomNode.NodeCallsControllerFunctionNode),e(i.ServiceIdentifiers.ICustomNode).to(O.SelfDefendingUnicodeNode).whenTargetNamed(s.CustomNode.SelfDefendingUnicodeNode),e(i.ServiceIdentifiers.ICustomNode).to(F.StringArrayCallsWrapper).whenTargetNamed(s.CustomNode.StringArrayCallsWrapper),e(i.ServiceIdentifiers.ICustomNode).to(R.StringArrayNode).whenTargetNamed(s.CustomNode.StringArrayNode),e(i.ServiceIdentifiers.ICustomNode).to($.StringArrayRotateFunctionNode).whenTargetNamed(s.CustomNode.StringArrayRotateFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(b.BinaryExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.BlockStatementControlFlowFlatteningNode).whenTargetNamed(a.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(C.CallExpressionControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(_.CallExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.ControlFlowStorageNode).whenTargetNamed(a.ControlFlowCustomNode.ControlFlowStorageNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(D.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(P.LogicalExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(w.StringLiteralNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(x.StringLiteralControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(S.BlockStatementDeadCodeInjectionNode).whenTargetNamed(d.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(m.BasePropertiesExtractorObjectExpressionHostNode).whenTargetNamed(l.ObjectExpressionKeysTransformerCustomNode.BasePropertiesExtractorObjectExpressionHostNode),e(i.ServiceIdentifiers.ICustomNodeGroup).to(c.ConsoleOutputCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.ConsoleOutputCustomNodeGroup),e(i.ServiceIdentifiers.ICustomNodeGroup).to(p.DebugProtectionCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DebugProtectionCustomNodeGroup),e(i.ServiceIdentifiers.ICustomNodeGroup).to(g.DomainLockCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.DomainLockCustomNodeGroup),e(i.ServiceIdentifiers.ICustomNodeGroup).to(h.SelfDefendingCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.SelfDefendingCustomNodeGroup),e(i.ServiceIdentifiers.ICustomNodeGroup).to(f.StringArrayCustomNodeGroup).whenTargetNamed(u.CustomNodeGroup.StringArrayCustomNodeGroup),e(i.ServiceIdentifiers.Factory__ICustomNode).toFactory(r.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomNode)),e(i.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(r.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions)),e(i.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(r.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions)),e(i.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode).toFactory(r.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions)),e(i.ServiceIdentifiers.Factory__ICustomNodeGroup).toFactory(r.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomNodeGroup))})},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(30),l=n(26),c=n(36),p=n(22);let g=class extends c.AbstractCustomNodeGroup{constructor(e,t,n,r){super(t,n,r),this.appendEvent=l.ObfuscationEvent.BeforeObfuscation,this.customNodeFactory=e}appendCustomNodes(e,t){const n=this.getRandomCallsGraphIndex(t.length);this.appendCustomNodeIfExist(d.CustomNode.ConsoleOutputDisableExpressionNode,r=>{p.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(d.CustomNode.NodeCallsControllerFunctionNode,r=>{const o=t.length?p.NodeAppender.getOptimalBlockScope(t,n,1):e;p.NodeAppender.prepend(o,r.getNode())})}initialize(){if(this.customNodes=new Map,!this.options.disableConsoleOutput)return;const e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(d.CustomNode.ConsoleOutputDisableExpressionNode),n=this.customNodeFactory(d.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(d.CustomNode.ConsoleOutputDisableExpressionNode,t),this.customNodes.set(d.CustomNode.NodeCallsControllerFunctionNode,n)}};r([u.initializable(),o("design:type",Map)],g.prototype,"customNodes",void 0),g=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomNode)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Function,Object,Object])],g),t.ConsoleOutputCustomNodeGroup=g},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(30),l=n(26),c=n(36),p=n(22),g=n(3);let h=class extends c.AbstractCustomNodeGroup{constructor(e,t,n,r){super(t,n,r),this.appendEvent=l.ObfuscationEvent.BeforeObfuscation,this.customNodeFactory=e}appendCustomNodes(e,t){const n=this.getRandomCallsGraphIndex(t.length);this.appendCustomNodeIfExist(d.CustomNode.DebugProtectionFunctionCallNode,r=>{p.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(d.CustomNode.DebugProtectionFunctionNode,t=>{p.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(d.CustomNode.DebugProtectionFunctionIntervalNode,t=>{const n=g.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,r=this.randomGenerator.getRandomInteger(0,n);p.NodeAppender.insertAtIndex(e,t.getNode(),r)}),this.appendCustomNodeIfExist(d.CustomNode.NodeCallsControllerFunctionNode,r=>{const o=t.length?p.NodeAppender.getOptimalBlockScope(t,n,1):e;p.NodeAppender.prepend(o,r.getNode())})}initialize(){if(this.customNodes=new Map,!this.options.debugProtection)return;const e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate(),n=this.customNodeFactory(d.CustomNode.DebugProtectionFunctionNode),r=this.customNodeFactory(d.CustomNode.DebugProtectionFunctionCallNode),o=this.customNodeFactory(d.CustomNode.DebugProtectionFunctionIntervalNode),i=this.customNodeFactory(d.CustomNode.NodeCallsControllerFunctionNode);n.initialize(e),r.initialize(e,t),o.initialize(e),i.initialize(this.appendEvent,t),this.customNodes.set(d.CustomNode.DebugProtectionFunctionNode,n),this.customNodes.set(d.CustomNode.DebugProtectionFunctionCallNode,r),this.options.debugProtectionInterval&&this.customNodes.set(d.CustomNode.DebugProtectionFunctionIntervalNode,o),this.customNodes.set(d.CustomNode.NodeCallsControllerFunctionNode,i)}};r([u.initializable(),o("design:type",Map)],h.prototype,"customNodes",void 0),h=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomNode)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Function,Object,Object])],h),t.DebugProtectionCustomNodeGroup=h},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(30),l=n(26),c=n(36),p=n(22);let g=class extends c.AbstractCustomNodeGroup{constructor(e,t,n,r){super(t,n,r),this.appendEvent=l.ObfuscationEvent.BeforeObfuscation,this.customNodeFactory=e}appendCustomNodes(e,t){const n=this.getRandomCallsGraphIndex(t.length);this.appendCustomNodeIfExist(d.CustomNode.DomainLockNode,r=>{p.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(d.CustomNode.NodeCallsControllerFunctionNode,r=>{const o=t.length?p.NodeAppender.getOptimalBlockScope(t,n,1):e;p.NodeAppender.prepend(o,r.getNode())})}initialize(){if(this.customNodes=new Map,!this.options.domainLock.length)return;const e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(d.CustomNode.DomainLockNode),n=this.customNodeFactory(d.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(d.CustomNode.DomainLockNode,t),this.customNodes.set(d.CustomNode.NodeCallsControllerFunctionNode,n)}};r([u.initializable(),o("design:type",Map)],g.prototype,"customNodes",void 0),g=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomNode)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Function,Object,Object])],g),t.DomainLockCustomNodeGroup=g},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(30),l=n(26),c=n(36),p=n(22);let g=class extends c.AbstractCustomNodeGroup{constructor(e,t,n,r){super(t,n,r),this.appendEvent=l.ObfuscationEvent.AfterObfuscation,this.customNodeFactory=e}appendCustomNodes(e,t){const n=this.getRandomCallsGraphIndex(t.length);this.appendCustomNodeIfExist(d.CustomNode.SelfDefendingUnicodeNode,r=>{p.NodeAppender.appendToOptimalBlockScope(t,e,r.getNode(),n)}),this.appendCustomNodeIfExist(d.CustomNode.NodeCallsControllerFunctionNode,r=>{const o=t.length?p.NodeAppender.getOptimalBlockScope(t,n,1):e;p.NodeAppender.prepend(o,r.getNode())})}initialize(){if(this.customNodes=new Map,!this.options.selfDefending)return;const e=this.identifierNamesGenerator.generate(),t=this.customNodeFactory(d.CustomNode.SelfDefendingUnicodeNode),n=this.customNodeFactory(d.CustomNode.NodeCallsControllerFunctionNode);t.initialize(e),n.initialize(this.appendEvent,e),this.customNodes.set(d.CustomNode.SelfDefendingUnicodeNode,t),this.customNodes.set(d.CustomNode.NodeCallsControllerFunctionNode,n)}};r([u.initializable(),o("design:type",Map)],g.prototype,"customNodes",void 0),g=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomNode)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Function,Object,Object])],g),t.SelfDefendingCustomNodeGroup=g},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(30),l=n(26),c=n(36),p=n(22);let g=class extends c.AbstractCustomNodeGroup{constructor(e,t,n,r,o){super(n,r,o),this.appendEvent=l.ObfuscationEvent.AfterObfuscation,this.customNodeFactory=e,this.stringArrayStorage=t}appendCustomNodes(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(d.CustomNode.StringArrayNode,t=>{p.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(d.CustomNode.StringArrayCallsWrapper,t=>{p.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(d.CustomNode.StringArrayRotateFunctionNode,t=>{p.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}initialize(){if(this.customNodes=new Map,!this.options.stringArray)return;const e=this.customNodeFactory(d.CustomNode.StringArrayNode),t=this.customNodeFactory(d.CustomNode.StringArrayCallsWrapper),n=this.customNodeFactory(d.CustomNode.StringArrayRotateFunctionNode),r=this.stringArrayStorage.getStorageId(),[o,i]=r.split("|");let a;a=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(100,500):0,e.initialize(this.stringArrayStorage,o,a),t.initialize(o,i),n.initialize(o,a),this.customNodes.set(d.CustomNode.StringArrayNode,e),this.customNodes.set(d.CustomNode.StringArrayCallsWrapper,t),this.options.rotateStringArray&&this.customNodes.set(d.CustomNode.StringArrayRotateFunctionNode,n)}};r([u.initializable(),o("design:type",Map)],g.prototype,"customNodes",void 0),g=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomNode)),i(1,a.inject(s.ServiceIdentifiers.TStringArrayStorage)),i(2,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Function,Object,Object])],g),t.StringArrayCustomNodeGroup=g},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(9),d=n(8);let l=class extends u.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(){}getNodeStructure(){return[d.NodeFactory.variableDeclarationNode([d.NodeFactory.variableDeclaratorNode(d.NodeFactory.identifierNode(this.identifierNamesGenerator.generate()),d.NodeFactory.objectExpressionNode([]))])]}};l=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],l),t.BasePropertiesExtractorObjectExpressionHostNode=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=function(){return"\n var that;\n \n try {\n var getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=function(){return"\n var getGlobal = function () {\n var globalObject;\n \n try {\n globalObject = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');')();\n } catch (e) {\n globalObject = window;\n }\n \n return globalObject;\n };\n var that = getGlobal();\n "}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8),c=n(5);let p=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e){this.operator=e}getNodeStructure(){const e=l.NodeFactory.expressionStatementNode(l.NodeFactory.functionExpressionNode([l.NodeFactory.identifierNode("x"),l.NodeFactory.identifierNode("y")],l.NodeFactory.blockStatementNode([l.NodeFactory.returnStatementNode(l.NodeFactory.binaryExpressionNode(this.operator,l.NodeFactory.identifierNode("x"),l.NodeFactory.identifierNode("y")))])));return c.NodeUtils.parentizeAst(e),[e]}};r([u.initializable(),o("design:type",String)],p.prototype,"operator",void 0),p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],p),t.BinaryExpressionFunctionNode=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8),c=n(3),p=n(5);let g=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e,t,n){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=n}getNodeStructure(){const e=this.randomGenerator.getRandomString(6),t=this.randomGenerator.getRandomString(6),n=l.NodeFactory.blockStatementNode([l.NodeFactory.variableDeclarationNode([l.NodeFactory.variableDeclaratorNode(l.NodeFactory.identifierNode(e),l.NodeFactory.callExpressionNode(l.NodeFactory.memberExpressionNode(l.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),l.NodeFactory.identifierNode("split")),[l.NodeFactory.literalNode("|")])),l.NodeFactory.variableDeclaratorNode(l.NodeFactory.identifierNode(t),l.NodeFactory.literalNode(0))]),l.NodeFactory.whileStatementNode(l.NodeFactory.literalNode(!0),l.NodeFactory.blockStatementNode([l.NodeFactory.switchStatementNode(l.NodeFactory.memberExpressionNode(l.NodeFactory.identifierNode(e),l.NodeFactory.updateExpressionNode("++",l.NodeFactory.identifierNode(t)),!0),this.shuffledKeys.map((e,t)=>{const n=this.blockStatementBody[e],r=[n];return c.NodeGuards.isReturnStatementNode(n)||r.push(l.NodeFactory.continueStatement()),l.NodeFactory.switchCaseNode(l.NodeFactory.literalNode(String(t)),r)})),l.NodeFactory.breakStatement()]))]);return p.NodeUtils.parentizeAst(n),[n]}};r([u.initializable(),o("design:type",Array)],g.prototype,"blockStatementBody",void 0),r([u.initializable(),o("design:type",Array)],g.prototype,"originalKeysIndexesInShuffledArray",void 0),r([u.initializable(),o("design:type",Array)],g.prototype,"shuffledKeys",void 0),g=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],g),t.BlockStatementControlFlowFlatteningNode=g},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8),c=n(5);let p=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}getNodeStructure(){const e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,n=e?"===":"!==",r=this.randomGenerator.getRandomString(5),o=t?r:this.randomGenerator.getRandomString(5),[i,a]=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=l.NodeFactory.blockStatementNode([l.NodeFactory.ifStatementNode(l.NodeFactory.binaryExpressionNode(n,l.NodeFactory.literalNode(r),l.NodeFactory.literalNode(o)),i,a)]);return c.NodeUtils.parentizeAst(s),[s]}};r([u.initializable(),o("design:type",Object)],p.prototype,"blockStatementNode",void 0),r([u.initializable(),o("design:type",Object)],p.prototype,"deadCodeInjectionRootAstHostNode",void 0),p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],p),t.BlockStatementDeadCodeInjectionNode=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8),c=n(5);let p=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e,t,n,r){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=n,this.expressionArguments=r}getNodeStructure(){const e=l.NodeFactory.expressionStatementNode(l.NodeFactory.callExpressionNode(l.NodeFactory.memberExpressionNode(l.NodeFactory.identifierNode(this.controlFlowStorageName),l.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee,...this.expressionArguments]));return c.NodeUtils.parentizeAst(e),[e]}};r([u.initializable(),o("design:type",Object)],p.prototype,"callee",void 0),r([u.initializable(),o("design:type",String)],p.prototype,"controlFlowStorageKey",void 0),r([u.initializable(),o("design:type",String)],p.prototype,"controlFlowStorageName",void 0),r([u.initializable(),o("design:type",Array)],p.prototype,"expressionArguments",void 0),p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],p),t.CallExpressionControlFlowStorageCallNode=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8),c=n(5);let p=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e){this.expressionArguments=e}getNodeStructure(){const e=l.NodeFactory.identifierNode("callee"),t=[],n=this.expressionArguments.length;for(let e=0;e=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8),c=n(3),p=n(5);let g=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e){this.controlFlowStorage=e}getNodeStructure(){const e=Array.from(this.controlFlowStorage.getStorage()).map(([e,t])=>{const n=t.getNode()[0];if(!c.NodeGuards.isExpressionStatementNode(n))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return l.NodeFactory.propertyNode(l.NodeFactory.identifierNode(e),n.expression)});let t=l.NodeFactory.variableDeclarationNode([l.NodeFactory.variableDeclaratorNode(l.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),l.NodeFactory.objectExpressionNode(e))]);return t=p.NodeUtils.parentizeAst(t),[t]}};r([u.initializable(),o("design:type",Object)],g.prototype,"controlFlowStorage",void 0),g=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],g),t.ControlFlowStorageNode=g},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(27),c=n(192),p=n(56),g=n(4),h=n(9),f=n(5);let m=class extends h.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e){this.callsControllerFunctionName=e}getNodeStructure(){return f.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){const e=this.options.target!==l.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():p.GlobalVariableNoEvalTemplate();return d.default(c.ConsoleOutputDisableExpressionTemplate(),{consoleLogDisableFunctionName:this.identifierNamesGenerator.generate(),globalVariableTemplate:e,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}};r([g.initializable(),o("design:type",String)],m.prototype,"callsControllerFunctionName",void 0),m=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],m),t.ConsoleOutputDisableExpressionNode=m},function(e,t){function n(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id=191},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableExpressionTemplate=function(){return"\n var {consoleLogDisableFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func = function () {};\n \n {globalVariableTemplate}\n \n if (!that.console) {\n that.console = (function (func){\n var c = {};\n \n c.log = func;\n c.warn = func;\n c.debug = func;\n c.info = func;\n c.error = func;\n c.exception = func;\n c.table = func;\n c.trace = func;\n \n return c;\n })(func);\n } else {\n that.console.log = func;\n that.console.warn = func;\n that.console.debug = func;\n that.console.info = func;\n that.console.error = func;\n that.console.exception = func;\n that.console.table = func;\n that.console.trace = func;\n }\n });\n \n {consoleLogDisableFunctionName}();\n "}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(4),c=n(194),p=n(9),g=n(5);let h=class extends p.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}getNodeStructure(){return g.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){return d.default(c.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}};r([l.initializable(),o("design:type",String)],h.prototype,"callsControllerFunctionName",void 0),r([l.initializable(),o("design:type",String)],h.prototype,"debugProtectionFunctionName",void 0),h=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],h),t.DebugProtectionFunctionCallNode=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallTemplate=function(){return"\n (function () {\n {singleNodeCallControllerFunctionName}(this, function () {\n var regExp1 = new RegExp('function *\\\\( *\\\\)');\n var regExp2 = new RegExp('\\\\+\\\\+ *\\(?:[a-zA-Z_$][0-9a-zA-Z_$]*\\)', 'i');\n \n var result = {debugProtectionFunctionName}('init');\n \n if (!regExp1.test(result + 'chain') || !regExp2.test(result + 'input')) {\n result('0');\n } else {\n {debugProtectionFunctionName}();\n }\n })();\n })();\n "}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(4),c=n(196),p=n(9),g=n(5);let h=class extends p.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(){return g.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){return d.default(c.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}};r([l.initializable(),o("design:type",String)],h.prototype,"debugProtectionFunctionName",void 0),h=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],h),t.DebugProtectionFunctionIntervalNode=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(27),c=n(4),p=n(198),g=n(199),h=n(200),f=n(9),m=n(5);let b=class extends f.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(){return m.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){const e=this.options.target!==l.ObfuscationTarget.BrowserNoEval?p.DebuggerTemplate():g.DebuggerTemplateNoEval();return d.default(h.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}};r([c.initializable(),o("design:type",String)],b.prototype,"debugProtectionFunctionName",void 0),b=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],b),t.DebugProtectionFunctionNode=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplate=function(){return"\n if (typeof counter === 'string') {\n return (function (arg) {}.constructor('while (true) {}').apply('counter'));\n } else {\n if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {\n (function () {return true;}.constructor('debu' + 'gger').call('action'));\n } else {\n (function () {return false;}.constructor('debu' + 'gger').apply('stateObject'));\n }\n \n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplateNoEval=function(){return"\n if (typeof counter === 'string') {\n var func = function () {\n while (true) {}\n };\n \n return func();\n } else {\n if (('' + counter / counter)['length'] !== 1 || counter % 20 === 0) {\n debugger;\n } else {\n debugger;\n }\n \n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionTemplate=function(){return"\n function {debugProtectionFunctionName} (ret) {\n function debuggerProtection (counter) {\n \n {debuggerTemplate}\n \n debuggerProtection(++counter);\n }\n \n try {\n if (ret) {\n return debuggerProtection;\n } else {\n debuggerProtection(0);\n }\n } catch (y) {}\n }\n "}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(27),c=n(4),p=n(202),g=n(56),h=n(9),f=n(5);let m=class extends h.AbstractCustomNode{constructor(e,t,n,r){super(e,t,r),this.cryptUtils=n}initialize(e){this.callsControllerFunctionName=e}getNodeStructure(){return f.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){const e=this.options.domainLock.join(";"),[t,n]=this.cryptUtils.hideString(e,3*e.length),r=this.options.target!==l.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():g.GlobalVariableNoEvalTemplate();return d.default(p.DomainLockNodeTemplate(),{domainLockFunctionName:this.identifierNamesGenerator.generate(),diff:n,domains:t,globalVariableTemplate:r,singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}};r([c.initializable(),o("design:type",String)],m.prototype,"callsControllerFunctionName",void 0),m=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.ICryptUtils)),i(3,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object,Object])],m),t.DomainLockNode=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockNodeTemplate=function(){return'\n var {domainLockFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n \n {globalVariableTemplate}\n \n var func = function () {\n return {\n key: \'item\',\n value: \'attribute\',\n getAttribute: function () {\n for (var i = 0; i < 1000; i--) {\n var isPositive = i > 0;\n \n switch (isPositive) {\n case true:\n return this.item + \'_\' + this.value + \'_\' + i;\n default:\n this.item + \'_\' + this.value;\n }\n }\n }()\n };\n };\n \n var regExp = new RegExp("[{diff}]", "g");\n var domains = "{domains}".replace(regExp, "").split(";");\n var document;\n var domain;\n var location;\n var hostname;\n\n for (var d in that) {\n if (d.length == 8 && d.charCodeAt(7) == 116 && d.charCodeAt(5) == 101 && d.charCodeAt(3) == 117 && d.charCodeAt(0) == 100) {\n document = d;\n \n break;\n }\n }\n\n for (var d1 in that[document]) {\n if (d1.length == 6 && d1.charCodeAt(5) == 110 && d1.charCodeAt(0) == 100) {\n domain = d1;\n \n break;\n }\n }\n\n if (!("~" > domain)) {\n for (var d2 in that[document]) {\n if (d2.length == 8 && d2.charCodeAt(7) == 110 && d2.charCodeAt(0) == 108) {\n location = d2;\n \n break;\n }\n }\n\n for (var d3 in that[document][location]) {\n if (d3.length == 8 && d3.charCodeAt(7) == 101 && d3.charCodeAt(0) == 104) {\n hostname = d3;\n \n break;\n }\n }\n }\n \n if (!document || !that[document]) {\n return;\n }\n \n var documentDomain = that[document][domain];\n var documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n var currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n var ok = false;\n \n for (var i = 0; i < domains.length; i++) {\n var domain = domains[i];\n var position = currentDomain.length - domain.length;\n var lastIndex = currentDomain.indexOf(domain, position);\n var endsWith = lastIndex !== -1 && lastIndex === position;\n \n if (endsWith) {\n if (currentDomain.length == domain.length || domain.indexOf(".") === 0) {\n ok = true;\n }\n }\n }\n \n if (!ok) {\n data;\n } else {\n return;\n }\n \n func();\n });\n\n {domainLockFunctionName}();\n '}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8),c=n(5);let p=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e,t,n,r){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=n,this.rightValue=r}getNodeStructure(){const e=l.NodeFactory.expressionStatementNode(l.NodeFactory.callExpressionNode(l.NodeFactory.memberExpressionNode(l.NodeFactory.identifierNode(this.controlFlowStorageName),l.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return c.NodeUtils.parentizeAst(e),[e]}};r([u.initializable(),o("design:type",String)],p.prototype,"controlFlowStorageKey",void 0),r([u.initializable(),o("design:type",String)],p.prototype,"controlFlowStorageName",void 0),r([u.initializable(),o("design:type",Object)],p.prototype,"leftValue",void 0),r([u.initializable(),o("design:type",Object)],p.prototype,"rightValue",void 0),p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],p),t.ExpressionWithOperatorControlFlowStorageCallNode=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8),c=n(5);let p=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e){this.operator=e}getNodeStructure(){const e=l.NodeFactory.expressionStatementNode(l.NodeFactory.functionExpressionNode([l.NodeFactory.identifierNode("x"),l.NodeFactory.identifierNode("y")],l.NodeFactory.blockStatementNode([l.NodeFactory.returnStatementNode(l.NodeFactory.logicalExpressionNode(this.operator,l.NodeFactory.identifierNode("x"),l.NodeFactory.identifierNode("y")))])));return c.NodeUtils.parentizeAst(e),[e]}};r([u.initializable(),o("design:type",String)],p.prototype,"operator",void 0),p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],p),t.LogicalExpressionFunctionNode=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(26),c=n(4),p=n(206),g=n(40),h=n(9),f=n(33),m=n(5);let b=class extends h.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}getNodeStructure(){return m.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){return this.appendEvent===l.ObfuscationEvent.AfterObfuscation?f.JavaScriptObfuscator.obfuscate(d.default(p.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign(Object.assign({},g.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.options.seed})).getObfuscatedCode():d.default(p.SingleNodeCallControllerTemplate(),{singleNodeCallControllerFunctionName:this.callsControllerFunctionName})}};r([c.initializable(),o("design:type",String)],b.prototype,"callsControllerFunctionName",void 0),r([c.initializable(),o("design:type",String)],b.prototype,"appendEvent",void 0),b=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],b),t.NodeCallsControllerFunctionNode=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleNodeCallControllerTemplate=function(){return"\n var {singleNodeCallControllerFunctionName} = (function(){\n var firstCall = true;\n \n return function (context, fn){\n var rfn = firstCall ? function(){\n if(fn){\n var res = fn.apply(context, arguments);\n fn = null;\n return res;\n }\n } : function(){}\n \n firstCall = false;\n \n return rfn;\n }\n })();\n "}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(4),c=n(40),p=n(208),g=n(9),h=n(33),f=n(5);let m=class extends g.AbstractCustomNode{constructor(e,t,n,r){super(e,t,r),this.escapeSequenceEncoder=n}initialize(e){this.callsControllerFunctionName=e}getNodeStructure(){return f.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){return h.JavaScriptObfuscator.obfuscate(d.default(p.SelfDefendingTemplate(this.escapeSequenceEncoder),{selfDefendingFunctionName:this.identifierNamesGenerator.generate(),singleNodeCallControllerFunctionName:this.callsControllerFunctionName}),Object.assign(Object.assign({},c.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.options.seed,unicodeEscapeSequence:!0})).getObfuscatedCode()}};r([l.initializable(),o("design:type",String)],m.prototype,"callsControllerFunctionName",void 0),m=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IEscapeSequenceEncoder)),i(3,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object,Object])],m),t.SelfDefendingUnicodeNode=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return`\n var {selfDefendingFunctionName} = {singleNodeCallControllerFunctionName}(this, function () {\n var func1 = function(){return 'dev';},\n func2 = function () {\n return 'window';\n };\n \n var test1 = function () {\n var regExp = new RegExp('${e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0)}');\n \n return !regExp.test(func1.toString());\n };\n \n var test2 = function () {\n var regExp = new RegExp('${e.encode("(\\\\[x|u](\\w){2,4})+",!0)}');\n \n return regExp.test(func2.toString());\n };\n \n var recursiveFunc1 = function (string) {\n var i = ~-1 >> 1 + 255 % 0;\n \n if (string.indexOf('i' === i)) {\n recursiveFunc2(string)\n }\n };\n \n var recursiveFunc2 = function (string) {\n var i = ~-4 >> 1 + 255 % 0;\n \n if (string.indexOf((true+"")[3]) !== i) {\n recursiveFunc1(string)\n }\n };\n \n if (!test1()) {\n if (!test2()) {\n recursiveFunc1('indеxOf');\n } else {\n recursiveFunc1('indexOf');\n }\n } else {\n recursiveFunc1('indеxOf');\n }\n })\n \n {selfDefendingFunctionName}();\n `}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(27),c=n(43),p=n(4),g=n(40),h=n(210),f=n(56),m=n(211),b=n(212),y=n(213),S=n(214),C=n(215),_=n(9),N=n(33),A=n(5);let v=class extends _.AbstractCustomNode{constructor(e,t,n,r){super(e,t,r),this.escapeSequenceEncoder=n}initialize(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}getNodeStructure(){return A.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){const e=this.getDecodeStringArrayTemplate();return N.JavaScriptObfuscator.obfuscate(d.default(S.StringArrayCallsWrapperTemplate(),{decodeNodeTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),Object.assign(Object.assign({},g.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.randomGenerator.getRawSeed()})).getObfuscatedCode()}getDecodeStringArrayTemplate(){const e=this.options.target!==l.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():f.GlobalVariableNoEvalTemplate(),t=d.default(h.AtobTemplate(),{globalVariableTemplate:e});let n="",r="";switch(this.options.selfDefending&&(r=d.default(b.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case c.StringArrayEncoding.Rc4:n=d.default(C.StringArrayRc4DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,rc4Polyfill:m.Rc4Template(),selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case c.StringArrayEncoding.Base64:n=d.default(y.StringArrayBase64DecodeNodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:r,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return n}};r([p.initializable(),o("design:type",String)],v.prototype,"stringArrayName",void 0),r([p.initializable(),o("design:type",String)],v.prototype,"stringArrayCallsWrapperName",void 0),v=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IEscapeSequenceEncoder)),i(3,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object,Object])],v),t.StringArrayCallsWrapper=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n var str = String(input).replace(/=+$/, '');\n for (\n var bc = 0, bs, buffer, idx = 0, output = '';\n buffer = str.charAt(idx++);\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n buffer = chars.indexOf(buffer);\n }\n return output;\n });\n })();\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=function(){return"\n var rc4 = function (str, key) {\n var s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (var k = 0, length = str.length; k < length; k++) {\n newStr += '%' + ('00' + str.charCodeAt(k).toString(16)).slice(-2);\n }\n \n str = decodeURIComponent(newStr);\n \t \n\t for (var i = 0; i < 256; i++) {\n s[i] = i;\n }\n \n for (i = 0; i < 256; i++) {\n j = (j + s[i] + key.charCodeAt(i % key.length)) % 256;\n x = s[i];\n s[i] = s[j];\n s[j] = x;\n }\n \n i = 0;\n j = 0;\n \n for (var y = 0; y < str.length; y++) {\n i = (i + 1) % 256;\n j = (j + s[i]) % 256;\n x = s[i];\n s[i] = s[j];\n s[j] = x;\n res += String.fromCharCode(str.charCodeAt(y) ^ s[(s[i] + s[j]) % 256]);\n }\n \n return res;\n }\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e,t){const n=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6),i=e.getRandomString(6),a=e.getRandomString(6),s=e.getRandomString(6),u=e.getRandomString(6),d=e.getRandomString(6),l=e.getRandomString(6);return`\n var StatesClass = function (${n}) {\n this.${n} = ${n};\n this.${r} = [1, 0, 0];\n this.${o} = function(){return 'newState';};\n this.${i} = '${t.encode("\\w+ *\\(\\) *{\\w+ *",!0)}';\n this.${a} = '${t.encode("['|\"].+['|\"];? *}",!0)}';\n };\n \n StatesClass.prototype.${s} = function () {\n var regExp = new RegExp(this.${i} + this.${a});\n var expression = regExp.test(this.${o}.toString())\n ? --this.${r}[1]\n : --this.${r}[0];\n \n return this.${u}(expression);\n };\n \n StatesClass.prototype.${u} = function (${l}) {\n if (!Boolean(~${l})) {\n return ${l};\n }\n \n return this.${d}(this.${n});\n };\n\n StatesClass.prototype.${d} = function (${n}) {\n for (var i = 0, len = this.${r}.length; i < len; i++) {\n this.${r}.push(Math.round(Math.random()));\n len = this.${r}.length;\n }\n \n return ${n}(this.${r}[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).${s}();\n `}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeNodeTemplate=function(e){const t=e.getRandomString(6),n=e.getRandomString(6),r=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.${n} = function (str) {\n var string = atob(str);\n var newStringChars = [];\n \n for (var i = 0, length = string.length; i < length; i++) {\n newStringChars += '%' + ('00' + string.charCodeAt(i).toString(16)).slice(-2);\n }\n \n return decodeURIComponent(newStringChars);\n };\n \n {stringArrayCallsWrapperName}.${r} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.${r}[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.${n}(value);\n {stringArrayCallsWrapperName}.${r}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=function(){return"\n var {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n var value = {stringArrayName}[index];\n \n {decodeNodeTemplate}\n \n return value;\n };\n "}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRc4DecodeNodeTemplate=function(e){const t=e.getRandomString(6),n=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.${n} = rc4;\n \n {stringArrayCallsWrapperName}.${r} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n var cachedValue = {stringArrayCallsWrapperName}.${r}[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.${o} === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.${o} = true;\n }\n \n value = {stringArrayCallsWrapperName}.${n}(value, key);\n {stringArrayCallsWrapperName}.${r}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(4),c=n(217),p=n(9),g=n(5);let h=class extends p.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e,t,n){this.stringArrayStorage=e,this.stringArrayName=t,this.stringArrayRotateValue=n}getNode(){return this.stringArrayStorage.rotateArray(this.stringArrayRotateValue),super.getNode()}getNodeStructure(){return g.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){return d.default(c.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}};r([l.initializable(),o("design:type",Object)],h.prototype,"stringArrayStorage",void 0),r([l.initializable(),o("design:type",String)],h.prototype,"stringArrayName",void 0),r([l.initializable(),o("design:type",Number)],h.prototype,"stringArrayRotateValue",void 0),h=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],h),t.StringArrayNode=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=function(){return"\n var {stringArrayName} = [{stringArray}];\n "}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=a(n(15)),l=n(4),c=n(40),p=n(219),g=n(220),h=n(9),f=n(33),m=n(5),b=n(44);let y=class extends h.AbstractCustomNode{constructor(e,t,n,r){super(e,t,r),this.escapeSequenceEncoder=n}initialize(e,t){this.stringArrayName=e,this.stringArrayRotateValue=t}getNodeStructure(){return m.NodeUtils.convertCodeToStructure(this.getTemplate())}getTemplate(){const e=this.identifierNamesGenerator.generate(),t=this.identifierNamesGenerator.generate();let n="";return n=this.options.selfDefending?d.default(p.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):`${t}(++${e})`,f.JavaScriptObfuscator.obfuscate(d.default(g.StringArrayRotateFunctionTemplate(),{code:n,timesName:e,stringArrayName:this.stringArrayName,stringArrayRotateValue:b.NumberUtils.toHex(this.stringArrayRotateValue),whileFunctionName:t}),Object.assign(Object.assign({},c.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.randomGenerator.getRawSeed()})).getObfuscatedCode()}};r([l.initializable(),o("design:type",String)],y.prototype,"stringArrayName",void 0),r([l.initializable(),o("design:type",Number)],y.prototype,"stringArrayRotateValue",void 0),y=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IEscapeSequenceEncoder)),i(3,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object,Object])],y),t.StringArrayRotateFunctionNode=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=function(e){return`\n var selfDefendingFunc = function () {\n var object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n var updatedCookie = name + "=" + value;\n\n var i = 0;\n \n for (var i = 0, len = options.length; i < len; i++) {\n var propName = options[i];\n \n updatedCookie += "; " + propName;\n \n var propValue = options[propName];\n \n options.push(propValue);\n len = options.length;\n \n if (propValue !== true) {\n updatedCookie += "=" + propValue;\n }\n }\n\n document['cookie'] = updatedCookie;\n },\n removeCookie: function(){return 'dev';},\n getCookie: function (document, name) {\n document = document || function (value) { return value };\n var matches = document(new RegExp(\n "(?:^|; )" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + "=([^;]*)"\n ));\n \n var func = function (param1, param2) {\n param1(++param2);\n };\n \n func({whileFunctionName}, {timesName});\n \n return matches ? decodeURIComponent(matches[1]) : undefined;\n }\n };\n \n var test1 = function () {\n var regExp = new RegExp('${e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0)}');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n var cookie = '';\n var result = object['updateCookie']();\n \n if (!result) {\n object['setCookie'](['*'], 'counter', 1);\n } else if (result) {\n cookie = object['getCookie'](null, 'counter');\n } else {\n object['removeCookie']();\n }\n };\n \n selfDefendingFunc();\n `}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n var {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, 0x{stringArrayRotateValue});\n "}},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8),c=n(5);let p=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}getNodeStructure(){const e=l.NodeFactory.expressionStatementNode(l.NodeFactory.memberExpressionNode(l.NodeFactory.identifierNode(this.controlFlowStorageName),l.NodeFactory.identifierNode(this.controlFlowStorageKey)));return c.NodeUtils.parentizeAst(e),[e]}};r([u.initializable(),o("design:type",String)],p.prototype,"controlFlowStorageKey",void 0),r([u.initializable(),o("design:type",String)],p.prototype,"controlFlowStorageName",void 0),p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],p),t.StringLiteralControlFlowStorageCallNode=p},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(4),d=n(9),l=n(8);let c=class extends d.AbstractCustomNode{constructor(e,t,n){super(e,t,n)}initialize(e){this.literalValue=e}getNodeStructure(){return[l.NodeFactory.expressionStatementNode(l.NodeFactory.literalNode(this.literalValue))]}};r([u.initializable(),o("design:type",String)],c.prototype,"literalValue",void 0),c=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],c),t.StringLiteralNode=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0);t.finalizingTransformersModule=new r.ContainerModule(e=>{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1),i=n(41),a=n(225),s=n(226),u=n(227);t.generatorsModule=new r.ContainerModule(e=>{e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(a.DictionaryIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(o.ServiceIdentifiers.IIdentifierNamesGenerator).to(u.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(o.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(){let e=null;return t=>n=>{if(e)return e;let r;switch(n.identifierNamesGenerator){case i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator:r=t.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:r=t.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:r=t.container.getNamed(o.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return e=r,r}}())})},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(57);let l=r=class extends d.AbstractIdentifierNamesGenerator{constructor(e,t,n){super(e,t),this.arrayUtils=n,this.identifierNamesSet=new Set(this.getInitialIdentifierNames(this.options.identifiersDictionary)),this.identifiersIterator=this.identifierNamesSet.values()}static incrementIdentifierName(e){let t="",n=!1;for(const r of e)n||r!==r.toUpperCase()?n||r!==r.toLowerCase()?t+=r:(t+=r.toUpperCase(),n=!0):t+=r.toLowerCase();return n?t:null}generate(){if(!this.identifierNamesSet.size)throw new Error("Too many identifiers in the code, add more words to identifiers dictionary");const e=this.identifiersIterator.next();return e.done?(this.identifierNamesSet=new Set(this.getIncrementedIdentifierNames([...this.identifierNamesSet])),this.identifiersIterator=this.identifierNamesSet.values(),this.generate()):e.value}generateWithPrefix(){return`${this.options.identifiersPrefix?`${this.options.identifiersPrefix}_`:""}${this.generate()}`.replace("__","_")}getInitialIdentifierNames(e){const t=e.filter(Boolean).map(e=>e.toLowerCase());return this.arrayUtils.shuffle(t)}getIncrementedIdentifierNames(e){const t=[];for(const n of e){const e=r.incrementIdentifierName(n);e&&t.push(e)}return this.arrayUtils.shuffle(t)}};l=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(1,s.inject(u.ServiceIdentifiers.IOptions)),a(2,s.inject(u.ServiceIdentifiers.IArrayUtils)),i("design:paramtypes",[Object,Object,Object])],l),t.DictionaryIdentifierNamesGenerator=l},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(57),l=n(44),c=n(37);let p=r=class extends d.AbstractIdentifierNamesGenerator{constructor(e,t){super(e,t),this.randomVariableNameSet=new Set}generate(e){const t=this.randomGenerator.getRandomInteger(1e4,99999999),n=l.NumberUtils.toHex(t),o=c.Utils.hexadecimalPrefix.length+1,i=e?e-o:r.baseIdentifierNameLength,a=n.substr(0,i),s=`_${c.Utils.hexadecimalPrefix}${a}`;return this.randomVariableNameSet.has(s)?this.generate(e):(this.randomVariableNameSet.add(s),s)}generateWithPrefix(e){const t=this.generate(e);return`${this.options.identifiersPrefix}${t}`.replace("__","_")}};p.baseIdentifierNameLength=6,p=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(1,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Object,Object])],p),t.HexadecimalIdentifierNamesGenerator=p},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(57);let l=r=class extends d.AbstractIdentifierNamesGenerator{constructor(e,t){super(e,t),this.previousMangledName=r.initMangledNameCharacter}generate(e){const t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,t}generateWithPrefix(e){return`${this.options.identifiersPrefix?`${this.options.identifiersPrefix}_`:""}${this.generate(e)}`}isValidIdentifierName(e){return super.isValidIdentifierName(e)&&!r.reservedNames.includes(e)}generateNewMangledName(e){let t=(e=>{const t=r.nameSequence,n=e.length,o=e=>"0".repeat(e);let i=n-1;do{const r=e.charAt(i),a=t.indexOf(r);if(a!==t.length-1){return e.substring(0,i)+t[a+1]+o(n-(i+1))}--i}while(i>=0);return`a${o(n)}`})(e);return this.isValidIdentifierName(t)||(t=this.generateNewMangledName(t)),t}};l.initMangledNameCharacter="9",l.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),l.reservedNames=["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"],l=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(1,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Object,Object])],l),t.MangledIdentifierNamesGenerator=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(19),o=n(0),i=n(1);t.nodeTransformersModule=new o.ContainerModule(e=>{e(i.ServiceIdentifiers.Factory__INodeTransformer).toFactory(r.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.INodeTransformer))})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(19),o=n(0),i=n(1),a=n(18),s=n(80),u=n(25),d=n(230),l=n(231),c=n(232),p=n(233),g=n(234),h=n(235),f=n(236),m=n(237),b=n(238),y=n(239),S=n(240),C=n(241);t.obfuscatingTransformersModule=new o.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(c.CatchClauseTransformer).whenTargetNamed(u.NodeTransformer.CatchClauseTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.ClassDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ClassDeclarationTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(g.FunctionDeclarationTransformer).whenTargetNamed(u.NodeTransformer.FunctionDeclarationTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(h.FunctionTransformer).whenTargetNamed(u.NodeTransformer.FunctionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.ImportDeclarationTransformer).whenTargetNamed(u.NodeTransformer.ImportDeclarationTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(m.LabeledStatementTransformer).whenTargetNamed(u.NodeTransformer.LabeledStatementTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(b.LiteralTransformer).whenTargetNamed(u.NodeTransformer.LiteralTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(C.VariableDeclarationTransformer).whenTargetNamed(u.NodeTransformer.VariableDeclarationTransformer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(l.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(y.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(S.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(a.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(i.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(r.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IObfuscatingReplacer)),e(i.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(r.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(45),d=n(8);let l=class extends u.AbstractObfuscatingReplacer{constructor(e,t){super(t),this.blockScopesMap=new Map,this.identifierNamesGenerator=e(t)}replace(e,t){if(this.blockScopesMap.has(t)){const n=this.blockScopesMap.get(t);n.has(e)&&(e=n.get(e))}return d.NodeFactory.identifierNode(e)}storeGlobalName(e,t){if(this.isReservedName(e))return;const n=this.identifierNamesGenerator.generateWithPrefix();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,n)}storeLocalName(e,t){if(this.isReservedName(e))return;const n=this.identifierNamesGenerator.generate();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(e,n)}preserveName(e){this.identifierNamesGenerator.preserveName(e)}isReservedName(e){return!!this.options.reservedNames.length&&this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};l=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object])],l),t.BaseIdentifierObfuscatingReplacer=l},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(45),l=n(8);let c=r=class extends d.AbstractObfuscatingReplacer{constructor(e){super(e)}static getTrueUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",r.getFalseUnaryExpressionNode())}static getFalseUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",l.NodeFactory.arrayExpressionNode())}replace(e){return e?r.getTrueUnaryExpressionNode():r.getFalseUnaryExpressionNode()}};c=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Object])],c),t.BooleanLiteralObfuscatingReplacer=c},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,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 s=n(0),u=n(1),d=a(n(10)),l=n(18),c=n(6),p=n(7),g=n(3),h=n(28),f=n(13);let m=class extends p.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.identifierObfuscatingReplacer=e(l.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}getVisitor(e){switch(e){case c.TransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&g.NodeGuards.isCatchClauseNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const n=h.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeCatchClauseParam(e,n),this.replaceCatchClauseParam(e,n),e):e}storeCatchClauseParam(e,t){g.NodeGuards.isIdentifierNode(e.param)&&this.identifierObfuscatingReplacer.storeLocalName(e.param.name,t)}replaceCatchClauseParam(e,t){d.replace(e,{enter:(e,n)=>{if(n&&g.NodeGuards.isReplaceableIdentifierNode(e,n)){const n=this.identifierObfuscatingReplacer.replace(e.name,t).name;e.name!==n&&(e.name=n,f.NodeMetadata.set(e,{renamedIdentifier:!0}))}}})}};m=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],m),t.CatchClauseTransformer=m},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,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 s=n(0),u=n(1),d=a(n(10)),l=n(18),c=n(17),p=n(6),g=n(7),h=n(3),f=n(28),m=n(13);let b=class extends g.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.replaceableIdentifiers=new Map,this.identifierObfuscatingReplacer=e(l.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}getVisitor(e){switch(e){case p.TransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&h.NodeGuards.isClassDeclarationNode(e)&&!h.NodeGuards.isExportNamedDeclarationNode(t))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const n=f.NodeLexicalScopeUtils.getLexicalScope(e);if(!n)return e;const r=n.type===c.NodeType.Program;return!this.options.renameGlobals&&r?e:(this.storeClassName(e,n,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n):this.replaceScopeIdentifiers(n),e)}storeClassName(e,t,n){n?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}replaceScopeCachedIdentifiers(e,t){const n=this.replaceableIdentifiers.get(t).get(e.id.name);if(!n)return;const r=n.length;for(let e=0;e{if(r&&h.NodeGuards.isReplaceableIdentifierNode(n,r)&&!m.NodeMetadata.isRenamedIdentifier(n)){const r=this.identifierObfuscatingReplacer.replace(n.name,e).name;if(n.name!==r)n.name=r,m.NodeMetadata.set(n,{renamedIdentifier:!0});else{const e=t.get(n.name)||[];e.push(n),t.set(n.name,e)}}}}),this.replaceableIdentifiers.set(e,t)}};b=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],b),t.ClassDeclarationTransformer=b},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,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 s=n(0),u=n(1),d=a(n(10)),l=n(18),c=n(17),p=n(6),g=n(7),h=n(3),f=n(28),m=n(13);let b=class extends g.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.replaceableIdentifiers=new Map,this.identifierObfuscatingReplacer=e(l.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}getVisitor(e){switch(e){case p.TransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&h.NodeGuards.isFunctionDeclarationNode(e)&&!h.NodeGuards.isExportNamedDeclarationNode(t))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const n=f.NodeLexicalScopeUtils.getLexicalScope(t);if(!n)return e;const r=n.type===c.NodeType.Program;return!this.options.renameGlobals&&r?e:(this.storeFunctionName(e,n,r),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(e,n):this.replaceScopeIdentifiers(n),e)}storeFunctionName(e,t,n){n?this.identifierObfuscatingReplacer.storeGlobalName(e.id.name,t):this.identifierObfuscatingReplacer.storeLocalName(e.id.name,t)}replaceScopeCachedIdentifiers(e,t){const n=this.replaceableIdentifiers.get(t).get(e.id.name);if(!n)return;const r=n.length;for(let e=0;e{if(r&&r!==e&&h.NodeGuards.isReplaceableIdentifierNode(n,r)&&!m.NodeMetadata.isRenamedIdentifier(n)){const r=this.identifierObfuscatingReplacer.replace(n.name,e).name;if(n.name!==r)n.name=r,m.NodeMetadata.set(n,{renamedIdentifier:!0});else{const e=t.get(n.name)||[];e.push(n),t.set(n.name,e)}}}}),this.replaceableIdentifiers.set(e,t)}};b=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],b),t.FunctionDeclarationTransformer=b},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=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=n(0),d=n(1),l=s(n(10)),c=n(18),p=n(6),g=n(7),h=n(3),f=n(28),m=n(13),b=n(17);let y=r=class extends g.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.identifierObfuscatingReplacer=e(c.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}static isProhibitedIdentifierOfPropertyNode(e,t){return h.NodeGuards.isIdentifierNode(e)&&!!t&&h.NodeGuards.isPropertyNode(t)&&t.key===e}static isProhibitedIdentifierOfShorthandPropertyNode(e){return h.NodeGuards.isPropertyNode(e)&&e.shorthand&&h.NodeGuards.isIdentifierNode(e.key)}getVisitor(e){switch(e){case p.TransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&h.NodeGuards.isFunctionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const n=f.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeFunctionParams(e,n),this.replaceFunctionParams(e,n),e):e}isGlobalFunctionDeclarationIdentifier(e,t){if(!h.NodeGuards.isFunctionDeclarationNode(t)||t.id!==e)return!1;const n=f.NodeLexicalScopeUtils.getLexicalScopes(t)[1];if(!n)return!1;const r=n.type===b.NodeType.Program;return!this.options.renameGlobals&&r}storeFunctionParams(e,t){const n={enter:(e,n)=>{if(!r.isProhibitedIdentifierOfPropertyNode(e,n))return h.NodeGuards.isAssignmentPatternNode(e)&&h.NodeGuards.isIdentifierNode(e.left)?(this.identifierObfuscatingReplacer.storeLocalName(e.left.name,t),l.VisitorOption.Skip):void(h.NodeGuards.isIdentifierNode(e)&&this.identifierObfuscatingReplacer.storeLocalName(e.name,t))}};e.params.forEach(e=>{l.traverse(e,n)})}replaceFunctionParams(e,t,n=new Set){const o={enter:(o,i)=>{if(h.NodeGuards.isFunctionNode(o)&&o!==e)return this.replaceFunctionParams(o,t,new Set(n)),l.VisitorOption.Skip;if(r.isProhibitedIdentifierOfShorthandPropertyNode(o))n.add(o.key.name);else if(i&&h.NodeGuards.isReplaceableIdentifierNode(o,i)&&!m.NodeMetadata.isRenamedIdentifier(o)&&!n.has(o.name)){if(this.isGlobalFunctionDeclarationIdentifier(o,i))return;const e=this.identifierObfuscatingReplacer.replace(o.name,t).name;o.name!==e&&(o.name=e,m.NodeMetadata.set(o,{renamedIdentifier:!0}))}}};l.replace(e,o)}};y=r=o([u.injectable(),a(0,u.inject(d.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),a(1,u.inject(d.ServiceIdentifiers.IRandomGenerator)),a(2,u.inject(d.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Object,Object])],y),t.FunctionTransformer=y},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},s=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=n(0),d=n(1),l=s(n(10)),c=n(18),p=n(6),g=n(7),h=n(3),f=n(28),m=n(13);let b=r=class extends g.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.replaceableIdentifiers=new Map,this.identifierObfuscatingReplacer=e(c.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}static isProhibitedImportSpecifierNode(e){return h.NodeGuards.isImportSpecifierNode(e)&&e.imported.name===e.local.name}getVisitor(e){switch(e){case p.TransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&h.NodeGuards.isImportDeclarationNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const n=f.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeImportSpecifierNames(e,n),this.replaceableIdentifiers.has(n)?this.replaceScopeCachedIdentifiers(n):this.replaceScopeIdentifiers(n),e):e}storeImportSpecifierNames(e,t){e.specifiers.forEach(e=>{r.isProhibitedImportSpecifierNode(e)||this.identifierObfuscatingReplacer.storeGlobalName(e.local.name,t)})}replaceScopeCachedIdentifiers(e){this.replaceableIdentifiers.get(e).forEach(t=>{const n=this.identifierObfuscatingReplacer.replace(t.name,e);t.name=n.name,m.NodeMetadata.set(t,{renamedIdentifier:!0})})}replaceScopeIdentifiers(e){const t=[];l.replace(e,{enter:(n,r)=>{if(r&&h.NodeGuards.isReplaceableIdentifierNode(n,r)&&!m.NodeMetadata.isRenamedIdentifier(n)){const r=this.identifierObfuscatingReplacer.replace(n.name,e).name;n.name!==r?(n.name=r,m.NodeMetadata.set(n,{renamedIdentifier:!0})):t.push(n)}}}),this.replaceableIdentifiers.set(e,t)}};b=r=o([u.injectable(),a(0,u.inject(d.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),a(1,u.inject(d.ServiceIdentifiers.IRandomGenerator)),a(2,u.inject(d.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Function,Object,Object])],b),t.ImportDeclarationTransformer=b},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,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 s=n(0),u=n(1),d=a(n(10)),l=n(18),c=n(6),p=n(7),g=n(3),h=n(28);let f=class extends p.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.identifierObfuscatingReplacer=e(l.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}getVisitor(e){switch(e){case c.TransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&g.NodeGuards.isLabeledStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const n=h.NodeLexicalScopeUtils.getLexicalScope(e);return n?(this.storeLabeledStatementName(e,n),this.replaceLabeledStatementName(e,n),e):e}storeLabeledStatementName(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label.name,t)}replaceLabeledStatementName(e,t){d.replace(e,{enter:(e,n)=>{if(n&&g.NodeGuards.isLabelIdentifierNode(e,n)){const n=this.identifierObfuscatingReplacer.replace(e.name,t);e.name=n.name}}})}};f=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],f),t.LabeledStatementTransformer=f},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(80),d=n(6),l=n(7),c=n(3),p=n(13),g=n(5);let h=class extends l.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.literalObfuscatingReplacerFactory=e}getVisitor(e){switch(e){case d.TransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&c.NodeGuards.isLiteralNode(e)&&!p.NodeMetadata.isReplacedLiteral(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(this.isProhibitedNode(e,t))return e;let n;switch(typeof e.value){case"boolean":n=this.literalObfuscatingReplacerFactory(u.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e.value);break;case"number":n=this.literalObfuscatingReplacerFactory(u.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e.value);break;case"string":n=this.literalObfuscatingReplacerFactory(u.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e.value);break;default:n=e}return g.NodeUtils.parentizeNode(n,t),n}isProhibitedNode(e,t){return!(!c.NodeGuards.isPropertyNode(t)||t.key!==e)||!!c.NodeGuards.isImportDeclarationNode(t)}};h=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IObfuscatingReplacer)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],h),t.LiteralTransformer=h},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const a=n(0),s=n(1),u=n(45),d=n(8),l=n(44),c=n(37);let p=class extends u.AbstractObfuscatingReplacer{constructor(e){super(e),this.numberLiteralCache=new Map}replace(e){let t;return this.numberLiteralCache.has(e)?t=this.numberLiteralCache.get(e):(t=l.NumberUtils.isCeil(e)?`${c.Utils.hexadecimalPrefix}${l.NumberUtils.toHex(e)}`:String(e),this.numberLiteralCache.set(e,t)),d.NodeFactory.literalNode(e,t)}};p=r([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Object])],p),t.NumberLiteralObfuscatingReplacer=p},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(43),l=n(45),c=n(13),p=n(8),g=n(44),h=n(37);let f=r=class extends l.AbstractObfuscatingReplacer{constructor(e,t,n,o,i){super(i),this.nodesCache=new Map,this.stringLiteralHexadecimalIndexCache=new Map,this.stringArrayStorage=e,this.escapeSequenceEncoder=t,this.randomGenerator=n,this.cryptUtils=o,this.rc4Keys=this.randomGenerator.getRandomGenerator().n(()=>this.randomGenerator.getRandomGenerator().string({length:r.rc4KeyLength}),r.rc4KeysCount)}static getHexadecimalLiteralNode(e){const t=p.NodeFactory.literalNode(e);return c.NodeMetadata.set(t,{replacedLiteral:!0}),t}static getRc4KeyLiteralNode(e){const t=p.NodeFactory.literalNode(e);return c.NodeMetadata.set(t,{replacedLiteral:!0}),t}replace(e){const t=this.canUseStringArray(e),n=`${e}-${String(t)}`;if(this.nodesCache.has(n)&&this.options.stringArrayEncoding!==d.StringArrayEncoding.Rc4)return this.nodesCache.get(n);const r=t?this.replaceWithStringArrayCallNode(e):this.replaceWithLiteralNode(e);return this.nodesCache.set(n,r),r}canUseStringArray(e){return this.options.stringArray&&e.length>=r.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}getStringArrayHexadecimalIndex(e,t){if(this.stringLiteralHexadecimalIndexCache.has(e))return{fromCache:!0,index:this.stringLiteralHexadecimalIndexCache.get(e)};const n=g.NumberUtils.toHex(t),r=`${h.Utils.hexadecimalPrefix}${n}`;return this.stringLiteralHexadecimalIndexCache.set(e,r),{fromCache:!1,index:r}}getEncodedValue(e){let t,n=null;switch(this.options.stringArrayEncoding){case d.StringArrayEncoding.Rc4:n=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),t=this.cryptUtils.btoa(this.cryptUtils.rc4(e,n));break;case d.StringArrayEncoding.Base64:t=this.cryptUtils.btoa(e);break;default:t=e}return{encodedValue:t,key:n}}replaceWithLiteralNode(e){return p.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e,this.options.unicodeEscapeSequence))}replaceWithStringArrayCallNode(e){const{encodedValue:t,key:n}=this.getEncodedValue(e),o=this.escapeSequenceEncoder.encode(t,this.options.unicodeEscapeSequence),i=this.stringArrayStorage.getLength(),a=this.stringArrayStorage.getStorageId().split("|")[1],{fromCache:s,index:u}=this.getStringArrayHexadecimalIndex(o,i);s||this.stringArrayStorage.set(i,o);const d=[r.getHexadecimalLiteralNode(u)];n&&d.push(r.getRc4KeyLiteralNode(this.escapeSequenceEncoder.encode(n,this.options.unicodeEscapeSequence)));const l=p.NodeFactory.identifierNode(a);return c.NodeMetadata.set(l,{renamedIdentifier:!0}),p.NodeFactory.callExpressionNode(l,d)}};f.minimumLengthForStringArray=3,f.rc4KeyLength=4,f.rc4KeysCount=50,f=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.TStringArrayStorage)),a(1,s.inject(u.ServiceIdentifiers.IEscapeSequenceEncoder)),a(2,s.inject(u.ServiceIdentifiers.IRandomGenerator)),a(3,s.inject(u.ServiceIdentifiers.ICryptUtils)),a(4,s.inject(u.ServiceIdentifiers.IOptions)),i("design:paramtypes",[Object,Object,Object,Object,Object])],f),t.StringLiteralObfuscatingReplacer=f},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(n,r){t(n,r,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 s=n(0),u=n(1),d=a(n(10)),l=n(18),c=n(17),p=n(6),g=n(7),h=n(3),f=n(28),m=n(242),b=n(13);let y=class extends g.AbstractNodeTransformer{constructor(e,t,n){super(t,n),this.lexicalScopesWithObjectPatternWithoutDeclarationMap=new Map,this.replaceableIdentifiers=new Map,this.identifierObfuscatingReplacer=e(l.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}getVisitor(e){switch(e){case p.TransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&h.NodeGuards.isVariableDeclarationNode(e)&&!h.NodeGuards.isExportNamedDeclarationNode(t))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const n="var"===e.kind?f.NodeLexicalScopeUtils.getLexicalScope(e):m.NodeBlockLexicalScopeUtils.getLexicalScope(e);if(!n)return e;const r=n.type===c.NodeType.Program;if(!this.options.renameGlobals&&r)return e;const o="var"===e.kind?n:t;return this.storeVariableNames(e,n,r),this.replaceableIdentifiers.has(o)?this.replaceScopeCachedIdentifiers(e,n,o):this.replaceScopeIdentifiers(o,n),e}storeVariableNames(e,t,n){this.traverseDeclarationIdentifiers(e,r=>{this.isProhibitedVariableName(r,t,e)||(n?this.identifierObfuscatingReplacer.storeGlobalName(r.name,t):this.identifierObfuscatingReplacer.storeLocalName(r.name,t))})}isProhibitedVariableName(e,t,n){return this.isProhibitedVariableNameUsedInObjectPatternNode(e,t,n)}isProhibitedVariableNameUsedInObjectPatternNode(e,t,n){if("const"===n.kind)return!1;let r=this.lexicalScopesWithObjectPatternWithoutDeclarationMap.get(t);if(!1===r)return!1;let o=!1;return d.traverse(t,{enter:(t,n)=>{if(h.NodeGuards.isObjectPatternNode(t)&&n&&h.NodeGuards.isAssignmentExpressionNode(n)){r=!0;const n=t.properties;for(const t of n)if(!t.computed&&t.shorthand&&h.NodeGuards.isIdentifierNode(t.key)&&e.name===t.key.name)return o=!0,d.VisitorOption.Break}}}),this.lexicalScopesWithObjectPatternWithoutDeclarationMap.set(t,null!=r&&r),o}replaceScopeCachedIdentifiers(e,t,n){const r=this.replaceableIdentifiers.get(n),o=[];this.traverseDeclarationIdentifiers(e,e=>{o.push(e.name)}),o.forEach(e=>{const n=r.get(e);if(!n)return;const o=n.length;for(let r=0;r{if(r&&h.NodeGuards.isReplaceableIdentifierNode(e,r)&&!b.NodeMetadata.isRenamedIdentifier(e)){const r=this.identifierObfuscatingReplacer.replace(e.name,t).name;if(e.name!==r)e.name=r,b.NodeMetadata.set(e,{renamedIdentifier:!0});else{const t=n.get(e.name)||[];t.push(e),n.set(e.name,t)}}}}),this.replaceableIdentifiers.set(e,n)}traverseDeclarationIdentifiers(e,t){e.declarations.forEach(e=>{d.traverse(e.id,{enter:n=>{if(h.NodeGuards.isPropertyNode(n))return d.VisitorOption.Skip;h.NodeGuards.isIdentifierNode(n)&&t(n,e)}})})}};y=r([s.injectable(),i(0,s.inject(u.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),i(1,s.inject(u.ServiceIdentifiers.IRandomGenerator)),i(2,s.inject(u.ServiceIdentifiers.IOptions)),o("design:paramtypes",[Function,Object,Object])],y),t.VariableDeclarationTransformer=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(3);class o{static getLexicalScope(e){return o.getLexicalScopesRecursive(e,1)[0]}static getLexicalScopes(e){return o.getLexicalScopesRecursive(e)}static getLexicalScopesRecursive(e,t=1/0,n=[],i=0){if(n.length>=t)return n;const a=e.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return r.NodeGuards.isNodeWithBlockLexicalScope(e)&&n.push(e),e!==a?o.getLexicalScopesRecursive(a,t,n,++i):n}}t.NodeBlockLexicalScopeUtils=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n(0),o=n(1),i=n(244),a=n(319);t.optionsModule=new r.ContainerModule(e=>{e(o.ServiceIdentifiers.IOptions).to(i.Options).inSingletonScope(),e(o.ServiceIdentifiers.IOptionsNormalizer).to(a.OptionsNormalizer).inSingletonScope()})},function(e,t,n){"use strict";var r,o=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(0),u=n(1),d=n(245),l=n(41),c=n(27),p=n(42),g=n(43),h=n(94),f=n(318);let m=r=class{constructor(e,t){Object.assign(this,h.DEFAULT_PRESET,e);const n=d.validateSync(this,r.validatorOptions);if(n.length)throw new ReferenceError(`Validation failed. errors:\n${f.ValidationErrorsFormatter.format(n)}`);Object.assign(this,t.normalize(this))}};m.validatorOptions={validationError:{target:!1}},o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"compact",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"controlFlowFlattening",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),i("design:type",Number)],m.prototype,"controlFlowFlatteningThreshold",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"deadCodeInjection",void 0),o([d.IsNumber(),i("design:type",Number)],m.prototype,"deadCodeInjectionThreshold",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"debugProtection",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"debugProtectionInterval",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"disableConsoleOutput",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),i("design:type",Array)],m.prototype,"domainLock",void 0),o([d.IsIn([l.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator,l.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,l.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),i("design:type",Object)],m.prototype,"identifierNamesGenerator",void 0),o([d.IsString(),i("design:type",String)],m.prototype,"identifiersPrefix",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),d.ValidateIf(e=>e.identifierNamesGenerator===l.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),d.ArrayNotEmpty(),i("design:type",Array)],m.prototype,"identifiersDictionary",void 0),o([d.IsString(),i("design:type",String)],m.prototype,"inputFileName",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"log",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"renameGlobals",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),i("design:type",Array)],m.prototype,"reservedNames",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),i("design:type",Array)],m.prototype,"reservedStrings",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"rotateStringArray",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"selfDefending",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"sourceMap",void 0),o([d.IsString(),d.ValidateIf(e=>Boolean(e.sourceMapBaseUrl)),d.IsUrl({require_protocol:!0,require_tld:!1,require_valid_protocol:!0}),i("design:type",String)],m.prototype,"sourceMapBaseUrl",void 0),o([d.IsString(),i("design:type",String)],m.prototype,"sourceMapFileName",void 0),o([d.IsIn([p.SourceMapMode.Inline,p.SourceMapMode.Separate]),i("design:type",Object)],m.prototype,"sourceMapMode",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"splitStrings",void 0),o([d.IsNumber(),d.ValidateIf(e=>Boolean(e.splitStrings)),d.Min(1),i("design:type",Number)],m.prototype,"splitStringsChunkLength",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"stringArray",void 0),o([d.IsIn([!0,!1,g.StringArrayEncoding.Base64,g.StringArrayEncoding.Rc4]),i("design:type",Object)],m.prototype,"stringArrayEncoding",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),i("design:type",Number)],m.prototype,"stringArrayThreshold",void 0),o([d.IsIn([c.ObfuscationTarget.Browser,c.ObfuscationTarget.BrowserNoEval,c.ObfuscationTarget.Node]),i("design:type",Object)],m.prototype,"target",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"transformObjectKeys",void 0),o([d.IsBoolean(),i("design:type",Boolean)],m.prototype,"unicodeEscapeSequence",void 0),m=r=o([s.injectable(),a(0,s.inject(u.ServiceIdentifiers.TInputOptions)),a(1,s.inject(u.ServiceIdentifiers.IOptionsNormalizer)),i("design:paramtypes",[Object,Object])],m),t.Options=m},function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var o=n(38),i=n(81),a=n(32);r(n(32)),r(n(316)),r(n(82)),r(n(31)),r(n(81)),r(n(317)),r(n(38)),t.validate=function(e,t,n){return"string"==typeof e?a.getFromContainer(i.Validator).validate(e,t,n):a.getFromContainer(i.Validator).validate(e,t)},t.validateOrReject=function(e,t,n){return"string"==typeof e?a.getFromContainer(i.Validator).validateOrReject(e,t,n):a.getFromContainer(i.Validator).validateOrReject(e,t)},t.validateSync=function(e,t,n){return"string"==typeof e?a.getFromContainer(i.Validator).validateSync(e,t,n):a.getFromContainer(i.Validator).validateSync(e,t)},t.registerSchema=function(e){a.getFromContainer(o.MetadataStorage).addValidationSchema(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(58),o=n(31),i=function(){function e(){}return e.prototype.transform=function(e){var t=[];return Object.keys(e.properties).forEach((function(n){e.properties[n].forEach((function(i){if(!o.ValidationTypes.isValid(i.type))throw new Error("Validation schema "+e.name+"#"+n+" as incorrect type "+i.type);var a={message:i.message,groups:i.groups,always:i.always,each:i.each},s={type:i.type,target:e.name,propertyName:n,constraints:i.constraints,validationTypeOptions:i.options,validationOptions:a};t.push(new r.ValidationMetadata(s))}))})),t},e}();t.ValidationSchemaToMetadataTransformer=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(82),o=n(38),i=n(32),a=n(31),s=n(248),u=n(249),d=function(){function e(e,t){this.validator=e,this.validatorOptions=t,this.awaitingPromises=[],this.ignoreAsyncValidations=!1,this.metadataStorage=i.getFromContainer(o.MetadataStorage)}return e.prototype.execute=function(e,t,n){var o=this;this.metadataStorage.hasValidationMetaData||console.warn("No metadata found. There is more than once class-validator version installed probably. You need to flatten your dependencies.");var i=this.validatorOptions?this.validatorOptions.groups:void 0,s=this.metadataStorage.getTargetValidationMetadatas(e.constructor,t,i),u=this.metadataStorage.groupByPropertyName(s);if(this.validatorOptions&&this.validatorOptions.forbidUnknownValues&&!s.length){var d=new r.ValidationError;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(d.target=e),d.value=void 0,d.property=void 0,d.children=[],d.constraints={unknownValue:"an unknown value was passed to the validate function"},void n.push(d)}this.validatorOptions&&this.validatorOptions.whitelist&&this.whitelist(e,u,n),Object.keys(u).forEach((function(t){var r=e[t],i=u[t].filter((function(e){return e.type===a.ValidationTypes.IS_DEFINED})),s=u[t].filter((function(e){return e.type!==a.ValidationTypes.IS_DEFINED&&e.type!==a.ValidationTypes.WHITELIST}));r instanceof Promise&&s.find((function(e){return e.type===a.ValidationTypes.PROMISE_VALIDATION}))?o.awaitingPromises.push(r.then((function(r){o.performValidations(e,r,t,i,s,n)}))):o.performValidations(e,r,t,i,s,n)}))},e.prototype.whitelist=function(e,t,n){var r=this,o=[];Object.keys(e).forEach((function(e){t[e]&&0!==t[e].length||o.push(e)})),o.length>0&&(this.validatorOptions&&this.validatorOptions.forbidNonWhitelisted?o.forEach((function(t){var o,i=r.generateValidationError(e,e[t],t);i.constraints=((o={})[a.ValidationTypes.WHITELIST]="property "+t+" should not exist",o),i.children=void 0,n.push(i)})):o.forEach((function(t){return delete e[t]})))},e.prototype.stripEmptyErrors=function(e){var t=this;return e.filter((function(e){if(e.children&&(e.children=t.stripEmptyErrors(e.children)),0===Object.keys(e.constraints).length){if(0===e.children.length)return!1;delete e.constraints}return!0}))},e.prototype.performValidations=function(e,t,n,r,o,i){var s=o.filter((function(e){return e.type===a.ValidationTypes.CUSTOM_VALIDATION})),u=o.filter((function(e){return e.type===a.ValidationTypes.NESTED_VALIDATION})),d=o.filter((function(e){return e.type===a.ValidationTypes.CONDITIONAL_VALIDATION})),l=this.generateValidationError(e,t,n);i.push(l),this.conditionalValidations(e,t,d)&&(this.defaultValidations(e,t,r,l.constraints),this.mapContexts(e,t,r,l),void 0===t&&this.validatorOptions&&!0===this.validatorOptions.skipUndefinedProperties||null===t&&this.validatorOptions&&!0===this.validatorOptions.skipNullProperties||null==t&&this.validatorOptions&&!0===this.validatorOptions.skipMissingProperties||(this.defaultValidations(e,t,o,l.constraints),this.customValidations(e,t,s,l.constraints),this.nestedValidations(t,u,l.children),this.mapContexts(e,t,o,l),this.mapContexts(e,t,s,l)))},e.prototype.generateValidationError=function(e,t,n){var o=new r.ValidationError;return this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.target&&!0!==this.validatorOptions.validationError.target||(o.target=e),this.validatorOptions&&this.validatorOptions.validationError&&void 0!==this.validatorOptions.validationError.value&&!0!==this.validatorOptions.validationError.value||(o.value=t),o.property=n,o.children=[],o.constraints={},o},e.prototype.conditionalValidations=function(e,t,n){return n.map((function(n){return n.constraints[0](e,t)})).reduce((function(e,t){return e&&t}),!0)},e.prototype.defaultValidations=function(e,t,n,r){var o=this;return n.filter((function(e){return e.each?t instanceof Array||t instanceof Set||t instanceof Map?!u.convertToArray(t).every((function(t){return o.validator.validateValueByMetadata(t,e)})):void 0:!o.validator.validateValueByMetadata(t,e)})).forEach((function(n){var i=o.createValidationError(e,t,n),a=i[0],s=i[1];r[a]=s}))},e.prototype.customValidations=function(e,t,n,r){var a=this;n.forEach((function(n){i.getFromContainer(o.MetadataStorage).getTargetValidatorConstraints(n.constraintCls).forEach((function(o){if(!o.async||!a.ignoreAsyncValidations){var i={targetName:e.constructor?e.constructor.name:void 0,property:n.propertyName,object:e,value:t,constraints:n.constraints};if(n.each&&(t instanceof Array||t instanceof Set||t instanceof Map)){var s=u.convertToArray(t).map((function(e){return o.instance.validate(e,i)}));if(s.some((function(e){return u.isPromise(e)}))){var d=s.map((function(e){return u.isPromise(e)?e:Promise.resolve(e)})),l=Promise.all(d).then((function(i){if(!i.every((function(e){return e}))){var s=a.createValidationError(e,t,n,o),u=s[0],d=s[1];r[u]=d}}));a.awaitingPromises.push(l)}else{if(!s.every((function(e){return e}))){var c=a.createValidationError(e,t,n,o);f=c[0],m=c[1];r[f]=m}}}else{var p=o.instance.validate(t,i);if(u.isPromise(p)){var g=p.then((function(i){if(!i){var s=a.createValidationError(e,t,n,o),u=s[0],d=s[1];r[u]=d}}));a.awaitingPromises.push(g)}else if(!p){var h=a.createValidationError(e,t,n,o),f=h[0],m=h[1];r[f]=m}}}}))}))},e.prototype.nestedPromiseValidations=function(e,t,n){var r=this;e instanceof Promise&&this.awaitingPromises.push(e.then((function(e){return r.nestedValidations(e,t,n)})))},e.prototype.nestedValidations=function(e,t,n){var o=this;void 0!==e&&t.forEach((function(t){var i;if(t.type===a.ValidationTypes.NESTED_VALIDATION||t.type===a.ValidationTypes.PROMISE_VALIDATION){var s="string"==typeof t.target?t.target:void 0;if(e instanceof Array||e instanceof Set||e instanceof Map)(e instanceof Set?Array.from(e):e).forEach((function(t,r){var i=o.generateValidationError(e,t,r.toString());n.push(i),o.execute(t,s,i.children)}));else if(e instanceof Object)o.execute(e,s,n);else{var u=new r.ValidationError;u.value=e,u.property=t.propertyName,u.target=t.target;var d=o.createValidationError(t.target,e,t),l=d[0],c=d[1];u.constraints=((i={})[l]=c,i),n.push(u)}}}))},e.prototype.mapContexts=function(e,t,n,r){var o=this;return n.forEach((function(e){if(e.context){var t=void 0;if(e.type===a.ValidationTypes.CUSTOM_VALIDATION)t=o.metadataStorage.getTargetValidatorConstraints(e.constraintCls)[0];var n=o.getConstraintType(e,t);r.constraints[n]&&(r.contexts||(r.contexts={}),r.contexts[n]=Object.assign(r.contexts[n]||{},e.context))}}))},e.prototype.createValidationError=function(e,t,n,r){var o=e.constructor?e.constructor.name:void 0,i=this.getConstraintType(n,r),u={targetName:o,property:n.propertyName,object:e,value:t,constraints:n.constraints},d=n.message;return n.message||this.validatorOptions&&(!this.validatorOptions||this.validatorOptions.dismissDefaultMessages)||(r&&r.instance.defaultMessage instanceof Function&&(d=r.instance.defaultMessage(u)),d||(d=a.ValidationTypes.getMessage(i,n.each))),[i,s.ValidationUtils.replaceMessageSpecialTokens(d,u)]},e.prototype.getConstraintType=function(e,t){return t&&t.name?t.name:e.type},e}();t.ValidationExecutor=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){}return e.replaceMessageSpecialTokens=function(e,t){var n;return e instanceof Function?n=e(t):"string"==typeof e&&(n=e),n&&t.constraints instanceof Array&&t.constraints.forEach((function(e,t){n=n.replace(new RegExp("\\$constraint"+(t+1),"g"),e)})),n&&void 0!==t.value&&null!==t.value&&"string"==typeof t.value&&(n=n.replace(/\$value/g,t.value)),n&&(n=n.replace(/\$property/g,t.property)),n&&(n=n.replace(/\$target/g,t.targetName)),n},e}();t.ValidationUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.then},t.convertToArray=function(e){return e instanceof Map?Array.from(e.values()):Array.isArray(e)?e:Array.from(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=Ie(n(59)),o=Ie(n(83)),i=Ie(n(251)),a=Ie(n(252)),s=Ie(n(253)),u=Ie(n(254)),d=Ie(n(255)),l=Ie(n(256)),c=Ie(n(257)),p=Ie(n(258)),g=Ie(n(46)),h=Ie(n(259)),f=Ie(n(60)),m=Ie(n(260)),b=Te(n(261)),y=Te(n(262)),S=Ie(n(263)),C=Ie(n(264)),_=Ie(n(265)),N=Ie(n(266)),A=Ie(n(267)),v=Ie(n(87)),E=Ie(n(88)),T=Ie(n(268)),I=Ie(n(269)),D=Ie(n(270)),P=Ie(n(86)),M=Te(n(271)),O=Ie(n(272)),F=Ie(n(89)),R=Ie(n(273)),$=Ie(n(274)),x=Ie(n(275)),w=Ie(n(276)),L=Ie(n(277)),B=Ie(n(278)),G=Ie(n(279)),j=Ie(n(280)),k=Ie(n(281)),U=Ie(n(282)),V=Ie(n(283)),H=Ie(n(85)),W=Ie(n(284)),z=Ie(n(285)),K=Ie(n(286)),Y=Ie(n(287)),J=Ie(n(288)),q=Ie(n(289)),Z=Ie(n(290)),X=Ie(n(291)),Q=Ie(n(292)),ee=Ie(n(293)),te=Te(n(294)),ne=Ie(n(295)),re=Ie(n(296)),oe=Ie(n(297)),ie=Ie(n(298)),ae=Ie(n(299)),se=Ie(n(300)),ue=Ie(n(301)),de=Ie(n(302)),le=Ie(n(303)),ce=Ie(n(304)),pe=Ie(n(305)),ge=Te(n(306)),he=Ie(n(90)),fe=Ie(n(91)),me=Ie(n(307)),be=Ie(n(308)),ye=Ie(n(309)),Se=Ie(n(310)),Ce=Ie(n(311)),_e=Ie(n(92)),Ne=Ie(n(312)),Ae=Ie(n(313)),ve=Ie(n(314));function Ee(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return Ee=function(){return e},e}function Te(e){if(e&&e.__esModule)return e;var t=Ee();if(t&&t.has(e))return t.get(e);var n={};if(null!=e){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}}return n.default=e,t&&t.set(e,n),n}function Ie(e){return e&&e.__esModule?e:{default:e}}var De={version:"12.0.0",toDate:r.default,toFloat:o.default,toInt:i.default,toBoolean:a.default,equals:s.default,contains:u.default,matches:d.default,isEmail:l.default,isURL:c.default,isMACAddress:p.default,isIP:g.default,isIPRange:h.default,isFQDN:f.default,isBoolean:m.default,isBIC:L.default,isAlpha:b.default,isAlphaLocales:b.locales,isAlphanumeric:y.default,isAlphanumericLocales:y.locales,isNumeric:S.default,isPort:C.default,isLowercase:_.default,isUppercase:N.default,isAscii:A.default,isFullWidth:v.default,isHalfWidth:E.default,isVariableWidth:T.default,isMultibyte:I.default,isSurrogatePair:D.default,isInt:P.default,isFloat:M.default,isFloatLocales:M.locales,isDecimal:O.default,isHexadecimal:F.default,isOctal:R.default,isDivisibleBy:$.default,isHexColor:x.default,isISRC:w.default,isMD5:B.default,isHash:G.default,isJWT:j.default,isJSON:k.default,isEmpty:U.default,isLength:V.default,isByteLength:H.default,isUUID:W.default,isMongoId:z.default,isAfter:K.default,isBefore:Y.default,isIn:J.default,isCreditCard:q.default,isIdentityCard:Z.default,isISIN:X.default,isISBN:Q.default,isISSN:ee.default,isMobilePhone:te.default,isMobilePhoneLocales:te.locales,isPostalCode:ge.default,isPostalCodeLocales:ge.locales,isCurrency:ne.default,isISO8601:re.default,isRFC3339:oe.default,isISO31661Alpha2:ie.default,isISO31661Alpha3:ae.default,isBase32:se.default,isBase64:ue.default,isDataURI:de.default,isMagnetURI:le.default,isMimeType:ce.default,isLatLong:pe.default,ltrim:he.default,rtrim:fe.default,trim:me.default,escape:be.default,unescape:ye.default,stripLow:Se.default,whitelist:Ce.default,blacklist:_e.default,isWhitelisted:Ne.default,normalizeEmail:Ae.default,toString:toString,isSlug:ve.default};t.default=De,e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),parseInt(e,t||10)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t)return"1"===e||"true"===e;return"0"!==e&&"false"!==e&&""!==e};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e===t};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),e.indexOf((0,o.default)(t))>=0};var r=i(n(2)),o=i(n(84));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){(0,o.default)(e),"[object RegExp]"!==Object.prototype.toString.call(t)&&(t=new RegExp(t,n));return t.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,o.default)(t,d)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var u,m=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(n,3);if(u=m[1],e=m[2],u.endsWith(" ")&&(u=u.substr(0,u.length-1)),!function(e){var t=e.match(/^"(.+)"$/i),n=t?t[1]:e;if(!n.trim())return!1;if(/[\.";<>]/.test(n)){if(!t)return!1;if(!(n.split('"').length===n.split('\\"').length))return!1}return!0}(u))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var b=e.split("@"),y=b.pop(),S=b.join("@"),C=y.toLowerCase();if(t.domain_specific_validation&&("gmail.com"===C||"googlemail.com"===C)){var _=(S=S.toLowerCase()).split("+")[0];if(!(0,i.default)(_.replace(".",""),{min:6,max:30}))return!1;for(var N=_.split("."),A=0;A$/i,c=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,p=/^[a-z\d]+$/,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||e.length>=2083||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;var n,s,c,p,g,h,f,m;if(t=(0,a.default)(t,u),f=e.split("#"),e=f.shift(),f=e.split("?"),e=f.shift(),(f=e.split("://")).length>1){if(n=f.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;f[0]=e.substr(2)}}if(""===(e=f.join("://")))return!1;if(f=e.split("/"),""===(e=f.shift())&&!t.require_host)return!0;if((f=e.split("@")).length>1){if(t.disallow_auth)return!1;if((s=f.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1}p=f.join("@"),h=null,m=null;var b=p.match(d);b?(c="",m=b[1],h=b[2]||null):(f=p.split(":"),c=f.shift(),f.length&&(h=f.join(":")));if(null!==h&&(g=parseInt(h,10),!/^[0-9]+$/.test(h)||g<=0||g>65535))return!1;if(!((0,i.default)(c)||(0,o.default)(c,t)||m&&(0,i.default)(m,6)))return!1;if(c=c||m,t.host_whitelist&&!l(c,t.host_whitelist))return!1;if(t.host_blacklist&&l(c,t.host_blacklist))return!1;return!0};var r=s(n(2)),o=s(n(60)),i=s(n(46)),a=s(n(29));function s(e){return e&&e.__esModule?e:{default:e}}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},d=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(e,t){for(var n=0;n1&&t[1].startsWith("0"))return!1;return(0,o.default)(t[0],4)&&t[1]<=32&&t[1]>=0};var r=i(n(2)),o=i(n(46));function i(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,2}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),["true","false","1","0"].indexOf(e)>=0};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,o.default)(e),t in i.alpha)return i.alpha[t].test(e);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(2))&&r.__esModule?r:{default:r},i=n(47);var a=Object.keys(i.alpha);t.locales=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en-US";if((0,o.default)(e),t in i.alphanumeric)return i.alphanumeric[t].test(e);throw new Error("Invalid locale '".concat(t,"'"))},t.locales=void 0;var r,o=(r=n(2))&&r.__esModule?r:{default:r},i=n(47);var a=Object.keys(i.alphanumeric);t.locales=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t&&t.no_symbols)return a.test(e);return i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^[+-]?([0-9]*[.])?[0-9]+$/,a=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e,{min:0,max:65535})};var r,o=(r=n(86))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toLowerCase()};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e===e.toUpperCase()};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.fullWidth.test(e)&&a.halfWidth.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r},i=n(87),a=n(88);e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e),t=t||{};var n=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?i.decimal[t.locale]:".","[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$"));if(""===e||"."===e||"-"===e||"+"===e)return!1;var r=parseFloat(e.replace(",","."));return n.test(e)&&(!t.hasOwnProperty("min")||r>=t.min)&&(!t.hasOwnProperty("max")||r<=t.max)&&(!t.hasOwnProperty("lt")||rt.gt)},t.locales=void 0;var r,o=(r=n(2))&&r.__esModule?r:{default:r},i=n(47);var a=Object.keys(i.decimal);t.locales=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),(t=(0,r.default)(t,u)).locale in a.decimal)return!(0,i.default)(d,e.replace(/ /g,""))&&function(e){return new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[e.locale],"[0-9]{").concat(e.decimal_digits,"})").concat(e.force_decimal?"":"?","$"))}(t).test(e);throw new Error("Invalid locale '".concat(t.locale,"'"))};var r=s(n(29)),o=s(n(2)),i=s(n(61)),a=n(47);function s(e){return e&&e.__esModule?e:{default:e}}var u={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},d=["","-","+"];e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),(0,o.default)(e)%parseInt(t,10)==0};var r=i(n(2)),o=i(n(83));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^[A-z]{4}[A-z]{2}\w{2}(\w{3})?$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^[a-f0-9]{32}$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),new RegExp("^[a-fA-F0-9]{".concat(i[t],"}$")).test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^([A-Za-z0-9\-_~+\/]+[=]{0,2})\.([A-Za-z0-9\-_~+\/]+[=]{0,2})(?:\.([A-Za-z0-9\-_~+\/]+[=]{0,2}))?$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);try{var t=JSON.parse(e);return!!t&&"object"===i(t)}catch(e){}return!1};var r,o=(r=n(2))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e),0===((t=(0,o.default)(t,a)).ignore_whitespace?e.trim().length:e.length)};var r=i(n(2)),o=i(n(29));function i(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1]||0,r=arguments[2]);var a=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],s=e.length-a.length;return s>=n&&(void 0===r||s<=r)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";(0,o.default)(e);var n=i[t];return n&&n.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),(0,o.default)(e)&&24===e.length};var r=i(n(2)),o=i(n(89));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var n=(0,o.default)(t),i=(0,o.default)(e);return!!(i&&n&&i>n)};var r=i(n(2)),o=i(n(59));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var n=(0,o.default)(t),i=(0,o.default)(e);return!!(i&&n&&i=0}if("object"===a(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=i(n(2)),o=i(n(84));function i(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.replace(/[- ]+/g,"");if(!i.test(t))return!1;for(var n,r,a,s=0,u=t.length-1;u>=0;u--)n=t.substring(u,u+1),r=parseInt(n,10),s+=a&&(r*=2)>=10?r%10+1:r,a=!a;return!(s%10!=0||!t)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),t in i)return i[t](e);if("any"===t){for(var n in i){if(i.hasOwnProperty(n))if((0,i[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i={ES:function(e){(0,o.default)(e);var t={X:0,Y:1,Z:2},n=e.trim().toUpperCase();if(!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(n))return!1;var r=n.slice(0,-1).replace(/[X,Y,Z]/g,(function(e){return t[e]}));return n.endsWith(["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"][r%23])},"he-IL":function(e){var t=e.trim();if(!/^\d{9}$/.test(t))return!1;for(var n,r=t,o=0,i=0;i9?n-9:n;return o%10==0},"zh-TW":function(e){var t={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},n=e.trim().toUpperCase();return!!/^[A-Z][0-9]{9}$/.test(n)&&Array.from(n).reduce((function(e,n,r){if(0===r){var o=t[n];return o%10*9+Math.floor(o/10)}return 9===r?(10-e%10-Number(n))%10==0:e+Number(n)*(9-r)}),0)}};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if((0,o.default)(e),!i.test(e))return!1;for(var t,n,r=e.replace(/[A-Z]/g,(function(e){return parseInt(e,36)})),a=0,s=!0,u=r.length-2;u>=0;u--)t=r.substring(u,u+1),n=parseInt(t,10),a+=s&&(n*=2)>=10?n+1:n,s=!s;return parseInt(e.substr(e.length-1),10)===(1e4-a)%10};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,10)||e(t,13);var r,u=t.replace(/[\s-]+/g,""),d=0;if("10"===n){if(!i.test(u))return!1;for(r=0;r<9;r++)d+=(r+1)*u.charAt(r);if("X"===u.charAt(9)?d+=100:d+=10*u.charAt(9),d%11==0)return!!u}else if("13"===n){if(!a.test(u))return!1;for(r=0;r<12;r++)d+=s[r%2]*u.charAt(r);if(u.charAt(12)-(10-d%10)%10==0)return!!u}return!1};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^(?:[0-9]{9}X|[0-9]{10})$/,a=/^(?:[0-9]{13})$/,s=[1,3];e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,o.default)(e);var n=i;if(n=t.require_hyphen?n.replace("?",""):n,!(n=t.case_sensitive?new RegExp(n):new RegExp(n,"i")).test(e))return!1;for(var r=e.replace("-","").toUpperCase(),a=0,s=0;s0&&t%8==0&&i.test(e))return!0;return!1};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^[A-Z2-7]+=*$/;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.length;if(!t||t%4!=0||i.test(e))return!1;var n=e.indexOf("=");return-1===n||n===t-1||n===t-2&&"="===e[t-1]};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/[^A-Z0-9+\/=]/i;e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){(0,o.default)(e);var t=e.split(",");if(t.length<2)return!1;var n=t.shift().trim().split(";"),r=n.shift();if("data:"!==r.substr(0,5))return!1;var u=r.substr(5);if(""!==u&&!i.test(u))return!1;for(var d=0;d/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),e.replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`")};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var n=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,o.default)(e,n)};var r=i(n(2)),o=i(n(92));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,o.default)(e),e.replace(new RegExp("[^".concat(t,"]+"),"g"),"")};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,o.default)(e);for(var n=e.length-1;n>=0;n--)if(-1===t.indexOf(e[n]))return!1;return!0};var r,o=(r=n(2))&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t=(0,o.default)(t,i);var n=e.split("@"),r=n.pop(),c=[n.join("@"),r];if(c[1]=c[1].toLowerCase(),"gmail.com"===c[1]||"googlemail.com"===c[1]){if(t.gmail_remove_subaddress&&(c[0]=c[0].split("+")[0]),t.gmail_remove_dots&&(c[0]=c[0].replace(/\.+/g,l)),!c[0].length)return!1;(t.all_lowercase||t.gmail_lowercase)&&(c[0]=c[0].toLowerCase()),c[1]=t.gmail_convert_googlemaildotcom?"gmail.com":c[1]}else if(a.indexOf(c[1])>=0){if(t.icloud_remove_subaddress&&(c[0]=c[0].split("+")[0]),!c[0].length)return!1;(t.all_lowercase||t.icloud_lowercase)&&(c[0]=c[0].toLowerCase())}else if(s.indexOf(c[1])>=0){if(t.outlookdotcom_remove_subaddress&&(c[0]=c[0].split("+")[0]),!c[0].length)return!1;(t.all_lowercase||t.outlookdotcom_lowercase)&&(c[0]=c[0].toLowerCase())}else if(u.indexOf(c[1])>=0){if(t.yahoo_remove_subaddress){var p=c[0].split("-");c[0]=p.length>1?p.slice(0,-1).join("-"):p[0]}if(!c[0].length)return!1;(t.all_lowercase||t.yahoo_lowercase)&&(c[0]=c[0].toLowerCase())}else d.indexOf(c[1])>=0?((t.all_lowercase||t.yandex_lowercase)&&(c[0]=c[0].toLowerCase()),c[1]="yandex.ru"):t.all_lowercase&&(c[0]=c[0].toLowerCase());return c.join("@")};var r,o=(r=n(29))&&r.__esModule?r:{default:r};var i={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],s=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],u=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],d=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function l(e){return e.length>1?e:""}e.exports=t.default,e.exports.default=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,o.default)(e),i.test(e)};var r,o=(r=n(2))&&r.__esModule?r:{default:r};var i=/^[^-_](?!.*?[-_]{2,})([a-z0-9\\-]{1,}).*[^-_]$/;e.exports=t.default,e.exports.default=t.default},function(module,exports,__webpack_require__){var require,require,f;f=function(){var define,module,exports;return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){if(!s&&"function"==typeof require&&require)return require(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var d=n[a]={exports:{}};t[a][0].call(d.exports,(function(e){return o(t[a][1][e]||e)}),d,d.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a>>0),goog.uidCounter_=0,goog.getHashCode=goog.getUid,goog.removeHashCode=goog.removeUid,goog.cloneObject=function(e){var t=goog.typeOf(e);if("object"==t||"array"==t){if("function"==typeof e.clone)return e.clone();for(var n in t="array"==t?[]:{},e)t[n]=goog.cloneObject(e[n]);return t}return e},goog.bindNative_=function(e,t,n){return e.call.apply(e.bind,arguments)},goog.bindJs_=function(e,t,n){if(!e)throw Error();if(2{"use strict";class X{constructor(){if(new.target!=String)throw 1;this.x=42}}let q=Reflect.construct(X,[],String);if(q.x!=42||!(q instanceof String))throw 1;for(const a of[2,3]){if(a==2)continue;function f(z={a}){let a=0;return z.a}{function f(){return 0;}}return f()==3}})()')})),a("es7",(function(){return b("2 ** 2 == 4")})),a("es8",(function(){return b("async () => 1, true")})),a("es9",(function(){return b("({...rest} = {}), true")})),a("es_next",(function(){return!1})),{target:c,map:d}},goog.Transpiler.prototype.needsTranspile=function(e,t){if("always"==goog.TRANSPILE)return!0;if("never"==goog.TRANSPILE)return!1;if(!this.requiresTranspilation_){var n=this.createRequiresTranspilation_();this.requiresTranspilation_=n.map,this.transpilationTarget_=this.transpilationTarget_||n.target}if(e in this.requiresTranspilation_)return!!this.requiresTranspilation_[e]||!(!goog.inHtmlDocument_()||"es6"!=t||"noModule"in goog.global.document.createElement("script"));throw Error("Unknown language mode: "+e)},goog.Transpiler.prototype.transpile=function(e,t){return goog.transpile_(e,t,this.transpilationTarget_)},goog.transpiler_=new goog.Transpiler,goog.protectScriptTag_=function(e){return e.replace(/<\/(SCRIPT)/gi,"\\x3c/$1")},goog.DebugLoader_=function(){this.dependencies_={},this.idToPath_={},this.written_={},this.loadingDeps_=[],this.depsToLoad_=[],this.paused_=!1,this.factory_=new goog.DependencyFactory(goog.transpiler_),this.deferredCallbacks_={},this.deferredQueue_=[]},goog.DebugLoader_.prototype.bootstrap=function(e,t){function n(){r&&(goog.global.setTimeout(r,0),r=null)}var r=t;if(e.length){for(var o=[],i=0;i<\/script>",t.write(goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createHTML(r):r)}else{var o=t.createElement("script");o.defer=goog.Dependency.defer_,o.async=!1,o.type="text/javascript",(r=goog.getScriptNonce())&&o.setAttribute("nonce",r),goog.DebugLoader_.IS_OLD_IE_?(e.pause(),o.onreadystatechange=function(){"loaded"!=o.readyState&&"complete"!=o.readyState||(e.loaded(),e.resume())}):o.onload=function(){o.onload=null,e.loaded()},o.src=goog.TRUSTED_TYPES_POLICY_?goog.TRUSTED_TYPES_POLICY_.createScriptURL(this.path):this.path,t.head.appendChild(o)}}else goog.logToConsole_("Cannot use default debug loader outside of HTML documents."),"deps.js"==this.relativePath?(goog.logToConsole_("Consider setting CLOSURE_IMPORT_SCRIPT before loading base.js, or setting CLOSURE_NO_DEPS to true."),e.loaded()):e.pause()},goog.Es6ModuleDependency=function(e,t,n,r,o){goog.Dependency.call(this,e,t,n,r,o)},goog.inherits(goog.Es6ModuleDependency,goog.Dependency),goog.Es6ModuleDependency.prototype.load=function(e){if(goog.global.CLOSURE_IMPORT_SCRIPT)goog.global.CLOSURE_IMPORT_SCRIPT(this.path)?e.loaded():e.pause();else if(goog.inHtmlDocument_()){var t=goog.global.document,n=this;if(goog.isDocumentLoading_()){var r=function(e,n){var r=n?'