diff --git a/README.md b/README.md index 9bf76b149..0b4e9ec6f 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,14 @@ JavaScript Obfuscator is a powerful free obfuscator for JavaScript, containing a variety of features which provide protection for your source code. +**Key features:** +- variables renaming +- strings extraction and encryption +- dead code injection +- control flow flattening +- various code transformations +- and [more](#javascript-obfuscator-options)... + The example of obfuscated code: [github.com](https://github.com/javascript-obfuscator/javascript-obfuscator/blob/master/examples/javascript-obfuscator.js) #### Online version: diff --git a/dist/index.cli.js b/dist/index.cli.js index 73835b6a8..300c98003 100644 --- a/dist/index.cli.js +++ b/dist/index.cli.js @@ -21,5 +21,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -require("source-map-support").install(),module.exports=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=258)}([function(e,t){e.exports=require("inversify")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceIdentifiers=void 0,function(e){e.Factory__ICalleeDataExtractor="Factory",e.Factory__ICodeTransformer="Factory",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomCodeHelper="Factory",e.Factory__ICustomCodeHelperGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscatedCode="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__IObjectExpressionKeysTransformerCustomNode="Factory",e.Factory__IObjectExpressionExtractor="Factory",e.Factory__TControlFlowStorage="Factory",e.IArrayUtils="IArrayUtils",e.ICalleeDataExtractor="ICalleeDataExtractor",e.ICallsGraphAnalyzer="ICallsGraphAnalyzer",e.ICodeTransformer="ICodeTransformer",e.ICodeTransformerNamesGroupsBuilder="ICodeTransformerNamesGroupsBuilder",e.ICodeTransformersRunner="ICodeTransformersRunner",e.ICryptUtils="ICryptUtils",e.ICustomCodeHelper="ICustomCodeHelper",e.ICustomCodeHelperGroup="ICustomCodeHelperGroup",e.IControlFlowReplacer="IControlFlowReplacer",e.ICustomCodeHelperFormatter="ICustomCodeHelperFormatter",e.ICustomCodeHelperObfuscator="ICustomCodeHelperObfuscator",e.IEscapeSequenceEncoder="IEscapeSequenceEncoder",e.IIdentifierNamesGenerator="IIdentifierNamesGenerator",e.IIdentifierObfuscatingReplacer="IIdentifierObfuscatingReplacer",e.IJavaScriptObfuscator="IJavaScriptObfuscator",e.ILevelledTopologicalSorter="ILevelledTopologicalSorter",e.ILogger="ILogger",e.INodeGuard="INodeGuard",e.INodeTransformer="INodeTransformer",e.INodeTransformerNamesGroupsBuilder="INodeTransformerNamesGroupsBuilder",e.IObfuscationEventEmitter="IObfuscationEventEmitter",e.IObfuscatedCode="IObfuscatedCode",e.IOptions="IOptions",e.IOptionsNormalizer="IOptionsNormalizer",e.IObfuscatingReplacer="IObfuscatingReplacer",e.IPrevailingKindOfVariablesAnalyzer="IPrevailingKindOfVariablesAnalyzer",e.IObjectExpressionExtractor="IObjectExpressionExtractor",e.IRandomGenerator="IRandomGenerator",e.IScopeIdentifiersTraverser="IScopeIdentifiersTraverser",e.ISourceCode="ISourceCode",e.IScopeAnalyzer="IScopeAnalyzer",e.IStringArrayStorage="IStringArrayStorage",e.IStringArrayStorageAnalyzer="IStringArrayStorageAnalyzer",e.INodeTransformersRunner="INodeTransformersRunner",e.Newable__ICustomNode="Newable",e.Newable__TControlFlowStorage="Newable",e.TCustomNodeGroupStorage="TCustomNodeGroupStorage",e.TInputOptions="TInputOptions"}(t.ServiceIdentifiers||(t.ServiceIdentifiers={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeGuards=void 0;const o=r(35);let n=(()=>{class e{static isArrayPatternNode(e){return e.type===o.NodeType.ArrayPattern}static isArrowFunctionExpressionNode(e){return e.type===o.NodeType.ArrowFunctionExpression}static isAssignmentExpressionNode(e){return e.type===o.NodeType.AssignmentExpression}static isAssignmentPatternNode(e){return e.type===o.NodeType.AssignmentPattern}static isAwaitExpressionNode(e){return e.type===o.NodeType.AwaitExpression}static isBigIntLiteralNode(t){return e.isLiteralNode(t)&&!!t.bigint}static isBlockStatementNode(e){return e.type===o.NodeType.BlockStatement}static isBreakStatementNode(e){return e.type===o.NodeType.BreakStatement}static isCallExpressionNode(e){return e.type===o.NodeType.CallExpression}static isClassDeclarationNode(e){return e.type===o.NodeType.ClassDeclaration&&null!==e.id}static isContinueStatementNode(e){return e.type===o.NodeType.ContinueStatement}static isDirectiveNode(e){return e.type===o.NodeType.ExpressionStatement&&"directive"in e}static isExportNamedDeclarationNode(e){return e.type===o.NodeType.ExportNamedDeclaration}static isExpressionStatementNode(e){return e.type===o.NodeType.ExpressionStatement&&!("directive"in e)}static isFunctionNode(t){return e.isFunctionDeclarationNode(t)||e.isFunctionExpressionNode(t)||e.isArrowFunctionExpressionNode(t)}static isFunctionDeclarationNode(e){return e.type===o.NodeType.FunctionDeclaration&&null!==e.id}static isFunctionExpressionNode(e){return e.type===o.NodeType.FunctionExpression}static isIdentifierNode(e){return e.type===o.NodeType.Identifier}static isImportDeclarationNode(e){return e.type===o.NodeType.ImportDeclaration}static isImportSpecifierNode(e){return e.type===o.NodeType.ImportSpecifier}static isLabelIdentifierNode(t,r){const o=e.isLabeledStatementNode(r)&&r.label===t,n=e.isContinueStatementNode(r)&&r.label===t,i=e.isBreakStatementNode(r)&&r.label===t;return o||n||i}static isLabeledStatementNode(e){return e.type===o.NodeType.LabeledStatement}static isLiteralNode(e){return e.type===o.NodeType.Literal}static isMemberExpressionNode(e){return e.type===o.NodeType.MemberExpression}static isMethodDefinitionNode(e){return e.type===o.NodeType.MethodDefinition}static isNode(e){return e&&void 0!==!e.type}static isNodeWithLexicalScope(t){return e.isProgramNode(t)||e.isFunctionNode(t)}static isNodeWithBlockLexicalScope(t){return e.isNodeWithLexicalScope(t)||e.isBlockStatementNode(t)}static isNodeWithLexicalScopeStatements(t,r){return e.isProgramNode(t)||e.isBlockStatementNode(t)&&e.nodesWithLexicalStatements.includes(r.type)}static isNodeWithStatements(t){return e.isProgramNode(t)||e.isBlockStatementNode(t)||e.isSwitchCaseNode(t)}static isNodeWithComments(e){return Boolean(e.leadingComments)||Boolean(e.trailingComments)}static isObjectPatternNode(e){return e.type===o.NodeType.ObjectPattern}static isObjectExpressionNode(e){return e.type===o.NodeType.ObjectExpression}static isProgramNode(e){return e.type===o.NodeType.Program}static isPropertyNode(e){return e.type===o.NodeType.Property}static isRestElementNode(e){return e.type===o.NodeType.RestElement}static isReturnStatementNode(e){return e.type===o.NodeType.ReturnStatement}static isSequenceExpressionNode(e){return e.type===o.NodeType.SequenceExpression}static isSuperNode(e){return e.type===o.NodeType.Super}static isSwitchCaseNode(e){return e.type===o.NodeType.SwitchCase}static isTaggedTemplateExpressionNode(e){return e.type===o.NodeType.TaggedTemplateExpression}static isTemplateLiteralNode(e){return e.type===o.NodeType.TemplateLiteral}static isUnaryExpressionNode(e){return e.type===o.NodeType.UnaryExpression}static isUseStrictOperator(t){return e.isDirectiveNode(t)&&"use strict"===t.directive}static isVariableDeclarationNode(e){return e.type===o.NodeType.VariableDeclaration}static isVariableDeclaratorNode(e){return e.type===o.NodeType.VariableDeclarator}static isWhileStatementNode(e){return e.type===o.NodeType.WhileStatement}}return e.nodesWithLexicalStatements=[o.NodeType.ArrowFunctionExpression,o.NodeType.FunctionDeclaration,o.NodeType.FunctionExpression,o.NodeType.MethodDefinition],e})();t.NodeGuards=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeUtils=void 0;const a=i(r(47)),s=i(r(12)),c=r(44),d=r(60),l=r(4),u=r(19);class f{static addXVerbatimPropertyTo(e){return e["x-verbatim-property"]={content:e.raw,precedence:a.Precedence.Primary},e}static clone(e){return f.parentizeAst(f.cloneRecursive(e))}static convertCodeToStructure(e){const t=d.ASTParserFacade.parse(e,{ecmaVersion:c.ecmaVersion,sourceType:"script"});return s.replace(t,{enter:(e,t)=>(f.parentizeNode(e,t),l.NodeGuards.isLiteralNode(e)&&f.addXVerbatimPropertyTo(e),u.NodeMetadata.set(e,{ignoredNode:!1}),e)}),t.body}static convertStructureToCode(e){return e.reduce((e,t)=>e+a.generate(t,{sourceMapWithCode:!0}).code,"")}static getUnaryExpressionArgumentNode(e){return l.NodeGuards.isUnaryExpressionNode(e.argument)?f.getUnaryExpressionArgumentNode(e.argument):e.argument}static parentizeAst(e){var t;const r=null!==(t=e.parentNode)&&void 0!==t?t:null;return s.replace(e,{enter:f.parentizeNode}),r&&(e.parentNode=r),e}static parentizeNode(e,t){return e.parentNode=null!=t?t:e,e}static cloneRecursive(e){if(null===e)return e;const t={};return Object.keys(e).forEach(r=>{if("parentNode"===r)return;const o=e[r];let n;n=null===o||o instanceof RegExp?o:Array.isArray(o)?o.map(f.cloneRecursive):"object"==typeof o?f.cloneRecursive(o):o,t[r]=n}),t}}t.NodeUtils=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializable=void 0;const o={configurable:!0,enumerable:!0};function n(e,t,r){Reflect.hasMetadata(e,r)||Reflect.defineMetadata(e,t,r)}t.initializable=function(e="initialize"){const t=Object.keys(this)[0];return(r,i)=>{const a=r[e];if(!a||"function"!=typeof a)throw new Error(`\`${e}\` method with initialization logic not `+`found. \`@${t}\` decorator requires \`${e}\` method`);return n("_initialized",!1,r),n("_initializablePropertiesSet",new Set,r),n("_wrappedMethodsSet",new Set,r),function(e,t){const r=Object.getOwnPropertyNames(e),n=[t,"constructor"];r.forEach(r=>{var i;const a=Reflect.getMetadata("_initializablePropertiesSet",e),s=Reflect.getMetadata("_wrappedMethodsSet",e);if(n.includes(r)||a.has(r)||s.has(r))return;if("function"!=typeof e[r])return;const c=null!==(i=Object.getOwnPropertyDescriptor(e,r))&&void 0!==i?i:o,d=c.value;Object.defineProperty(e,r,Object.assign(Object.assign({},c),{value(){if(!Reflect.getMetadata("_initialized",this))throw new Error(`Class should be initialized with \`${t}()\` method`);return d.apply(this,arguments)}})),s.add(r)})}(r,e),function(e,t,r){var n;const i=null!==(n=Object.getOwnPropertyDescriptor(e,t))&&void 0!==n?n:o,a=i.value;Object.defineProperty(e,t,Object.assign(Object.assign({},i),{value:function(){Reflect.defineMetadata("_initialized",!0,this);const e=a.apply(this,arguments);return this[r],e}}))}(r,e,i),function(e,t){var r;Reflect.getMetadata("_initializablePropertiesSet",e).add(t);const n=`_${t.toString()}`,i=null!==(r=Object.getOwnPropertyDescriptor(e,n))&&void 0!==r?r:o;return Object.defineProperty(e,t,Object.assign(Object.assign({},i),{get:function(){if(void 0===this[n])throw new Error(`Property \`${t.toString()}\` is not initialized! Initialize it first!`);return this[n]},set:function(e){this[n]=e}})),i}(r,i)}}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeFactory=void 0;const a=i(r(47)),s=r(35);class c{static programNode(e=[]){return{type:s.NodeType.Program,body:e,sourceType:"script",metadata:{ignoredNode:!1}}}static arrayExpressionNode(e=[]){return{type:s.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}static assignmentExpressionNode(e,t,r){return{type:s.NodeType.AssignmentExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static binaryExpressionNode(e,t,r){return{type:s.NodeType.BinaryExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static blockStatementNode(e=[]){return{type:s.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}static breakStatement(e){return{type:s.NodeType.BreakStatement,label:e,metadata:{ignoredNode:!1}}}static callExpressionNode(e,t=[]){return{type:s.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}static continueStatement(e){return{type:s.NodeType.ContinueStatement,label:e,metadata:{ignoredNode:!1}}}static directiveNode(e,t){return{type:s.NodeType.ExpressionStatement,expression:e,directive:t,metadata:{ignoredNode:!1}}}static expressionStatementNode(e){return{type:s.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}static functionDeclarationNode(e,t,r){return{type:s.NodeType.FunctionDeclaration,id:c.identifierNode(e),params:t,body:r,generator:!1,metadata:{ignoredNode:!1}}}static functionExpressionNode(e,t){return{type:s.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}static ifStatementNode(e,t,r){return Object.assign(Object.assign({type:s.NodeType.IfStatement,test:e,consequent:t},r&&{alternate:r}),{metadata:{ignoredNode:!1}})}static identifierNode(e){return{type:s.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}static importDeclarationNode(e,t){return{type:s.NodeType.ImportDeclaration,specifiers:e,source:t,metadata:{ignoredNode:!1}}}static literalNode(e,t){return t=void 0!==t?t:`'${e}'`,{type:s.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:a.Precedence.Primary},metadata:{ignoredNode:!1}}}static logicalExpressionNode(e,t,r){return{type:s.NodeType.LogicalExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static memberExpressionNode(e,t,r=!1){return{type:s.NodeType.MemberExpression,computed:r,object:e,property:t,metadata:{ignoredNode:!1}}}static objectExpressionNode(e){return{type:s.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}static propertyNode(e,t,r=!1){return{type:s.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:r,metadata:{ignoredNode:!1}}}static returnStatementNode(e){return{type:s.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}static switchStatementNode(e,t){return{type:s.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}static switchCaseNode(e,t){return{type:s.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}static unaryExpressionNode(e,t,r=!0){return{type:s.NodeType.UnaryExpression,operator:e,argument:t,prefix:r,metadata:{ignoredNode:!1}}}static updateExpressionNode(e,t){return{type:s.NodeType.UpdateExpression,operator:e,argument:t,prefix:!1,metadata:{ignoredNode:!1}}}static variableDeclarationNode(e=[],t="var"){return{type:s.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}static variableDeclaratorNode(e,t){return{type:s.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}static whileStatementNode(e,t){return{type:s.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}t.NodeFactory=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformationStage=void 0,function(e){e.Initializing="Initializing",e.Preparing="Preparing",e.DeadCodeInjection="DeadCodeInjection",e.ControlFlowFlattening="ControlFlowFlattening",e.Converting="Converting",e.Obfuscating="Obfuscating",e.Finalizing="Finalizing"}(t.NodeTransformationStage||(t.NodeTransformationStage={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractNodeTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3);let l=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractNodeTransformer=l},function(e,t){e.exports=require("estraverse")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformer=void 0,function(e){e.BlockStatementControlFlowTransformer="BlockStatementControlFlowTransformer",e.CommentsTransformer="CommentsTransformer",e.CustomCodeHelpersTransformer="CustomCodeHelpersTransformer",e.DeadCodeInjectionTransformer="DeadCodeInjectionTransformer",e.EvalCallExpressionTransformer="EvalCallExpressionTransformer",e.FunctionControlFlowTransformer="FunctionControlFlowTransformer",e.LabeledStatementTransformer="LabeledStatementTransformer",e.LiteralTransformer="LiteralTransformer",e.MemberExpressionTransformer="MemberExpressionTransformer",e.MetadataTransformer="MetadataTransformer",e.MethodDefinitionTransformer="MethodDefinitionTransformer",e.ObfuscatingGuardsTransformer="ObfuscatingGuardsTransformer",e.ObjectExpressionKeysTransformer="ObjectExpressionKeysTransformer",e.ObjectExpressionTransformer="ObjectExpressionTransformer",e.ParentificationTransformer="ParentificationTransformer",e.ScopeIdentifiersTransformer="ScopeIdentifiersTransformer",e.SplitStringTransformer="SplitStringTransformer",e.TemplateLiteralTransformer="TemplateLiteralTransformer",e.VariablePreserveTransformer="VariablePreserveTransformer"}(t.NodeTransformer||(t.NodeTransformer={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3);let f=(()=>{var e,t,r,f;let p=class{constructor(e,t,r,o){this.cachedNode=null,this.identifierNamesGenerator=e(o),this.customCodeHelperFormatter=t,this.randomGenerator=r,this.options=o}getNode(){return this.cachedNode||(this.cachedNode=this.customCodeHelperFormatter.formatStructure(this.getNodeStructure())),this.cachedNode}};return p=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(f=void 0!==l.IOptions&&l.IOptions)?f:Object])],p),p})();t.AbstractCustomNode=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InversifyContainerFacade=void 0;const o=r(0),n=r(1),i=r(79),a=r(89),s=r(94),c=r(106),d=r(117),l=r(157),u=r(170),f=r(171),p=r(175),m=r(177),g=r(180),h=r(182),y=r(191),b=r(213),v=r(227),N=r(232),I=r(240),O=r(242),S=r(77),C=r(247),j=r(250),_=r(252),R=r(253);t.InversifyContainerFacade=class{constructor(){this.container=new o.Container}static getFactory(e){return t=>r=>t.container.getNamed(e,r)}static getCacheFactory(e){return t=>{const r=new Map;return o=>{if(r.has(o))return r.get(o);const n=t.container.getNamed(e,o);return r.set(o,n),n}}}static getConstructorFactory(e,...t){return r=>{const o=new Map,n=[];return i=>{if(t.forEach((e,t)=>{n[t]||(n[t]=r.container.get(e))}),o.has(i))return new(o.get(i))(...n);const a=r.container.getNamed(e,i);return o.set(i,a),new a(...n)}}}get(e){return this.container.get(e)}getNamed(e,t){return this.container.getNamed(e,t)}load(e,t,r){this.container.bind(n.ServiceIdentifiers.ISourceCode).toDynamicValue(()=>new R.SourceCode(e,t)).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.TInputOptions).toDynamicValue(()=>r).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.ILogger).to(S.Logger).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.IJavaScriptObfuscator).to(O.JavaScriptObfuscator).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.ICodeTransformersRunner).to(I.CodeTransformersRunner).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.INodeTransformersRunner).to(C.NodeTransformersRunner).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.IObfuscatedCode).to(_.ObfuscatedCode),this.container.bind(n.ServiceIdentifiers.Factory__IObfuscatedCode).toFactory(e=>(t,r)=>{const o=e.container.get(n.ServiceIdentifiers.IObfuscatedCode);return o.initialize(t,r),o}),this.container.bind(n.ServiceIdentifiers.IObfuscationEventEmitter).to(j.ObfuscationEventEmitter).inSingletonScope(),this.container.load(i.analyzersModule),this.container.load(a.codeTransformersModule),this.container.load(s.controlFlowTransformersModule),this.container.load(c.convertingTransformersModule),this.container.load(d.customCodeHelpersModule),this.container.load(l.customNodesModule),this.container.load(u.finalizingTransformersModule),this.container.load(f.generatorsModule),this.container.load(p.initializingTransformersModule),this.container.load(m.nodeModule),this.container.load(g.nodeTransformersModule),this.container.load(h.obfuscatingTransformersModule),this.container.load(y.optionsModule),this.container.load(b.preparingTransformersModule),this.container.load(v.storagesModule),this.container.load(N.utilsModule)}unload(){this.container.unbindAll()}}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(125),m=r(126);let g=(()=>{var e,t,r,g,h,y;let b=e=class{constructor(e,t,r,o,n){this.cachedNode=null,this.identifierNamesGenerator=e(n),this.customCodeHelperFormatter=t,this.customCodeHelperObfuscator=r,this.randomGenerator=o,this.options=n}getNode(){if(!this.cachedNode){const e=this.getCodeHelperTemplate();this.cachedNode=this.customCodeHelperFormatter.formatStructure(this.getNodeStructure(e))}return this.cachedNode}getGlobalVariableTemplate(){return this.randomGenerator.getRandomGenerator().pickone(e.globalVariableTemplateFunctions)}getCodeHelperTemplate(){return""}};return b.globalVariableTemplateFunctions=[p.GlobalVariableTemplate1(),m.GlobalVariableTemplate2()],b=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(g=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?g:Object,"function"==typeof(h=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?h:Object,"function"==typeof(y=void 0!==u.IOptions&&u.IOptions)?y:Object])],b),b})();t.AbstractCustomCodeHelper=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStatementUtils=void 0;const o=r(4);class n{static getParentNodeWithStatements(e){return n.getParentNodesWithStatementsRecursive(e,1)[0]}static getParentNodesWithStatements(e){return n.getParentNodesWithStatementsRecursive(e)}static getNextSiblingStatement(e){return n.getSiblingStatementByOffset(e,1)}static getPreviousSiblingStatement(e){return n.getSiblingStatementByOffset(e,-1)}static getRootStatementOfNode(e){if(o.NodeGuards.isProgramNode(e))throw new Error("Unable to find root statement for `Program` node");const t=e.parentNode;if(!t)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithStatements(t)?e:n.getRootStatementOfNode(t)}static getScopeOfNode(e){const t=e.parentNode;if(!t)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithStatements(t)?t:n.getScopeOfNode(t)}static getParentNodesWithStatementsRecursive(e,t=1/0,r=[],i=0){if(r.length>=t)return r;const a=e.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(o.NodeGuards.isProgramNode(e)||o.NodeGuards.isNodeWithLexicalScopeStatements(e,a)&&i>0)&&r.push(e),e!==a?n.getParentNodesWithStatementsRecursive(a,t,r,++i):r}static getSiblingStatementByOffset(e,t){const r=n.getScopeOfNode(e),i=o.NodeGuards.isSwitchCaseNode(r)?r.consequent:r.body,a=i.indexOf(e);return i[a+t]||null}}t.NodeStatementUtils=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeMetadata=void 0;class o{static set(e,t){var r;e.metadata=Object.assign(null!==(r=e.metadata)&&void 0!==r?r:{},t)}static get(e,t){return void 0!==e.metadata?e.metadata[t]:void 0}static isIgnoredNode(e){return!0===o.get(e,"ignoredNode")}static isReplacedLiteral(e){return!0===o.get(e,"replacedLiteral")}}t.NodeMetadata=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowCustomNode=void 0,function(e){e.BinaryExpressionFunctionNode="BinaryExpressionFunctionNode",e.BlockStatementControlFlowFlatteningNode="BlockStatementControlFlowFlatteningNode",e.CallExpressionControlFlowStorageCallNode="CallExpressionControlFlowStorageCallNode",e.CallExpressionFunctionNode="CallExpressionFunctionNode",e.ControlFlowStorageNode="ControlFlowStorageNode",e.ExpressionWithOperatorControlFlowStorageCallNode="ExpressionWithOperatorControlFlowStorageCallNode",e.LogicalExpressionFunctionNode="LogicalExpressionFunctionNode",e.StringLiteralControlFlowStorageCallNode="StringLiteralControlFlowStorageCallNode",e.StringLiteralNode="StringLiteralNode"}(t.ControlFlowCustomNode||(t.ControlFlowCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeAppender=void 0;const o=r(4);class n{static append(e,t){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...n.getScopeStatements(e),...t])}static appendToOptimalBlockScope(e,t,r,o=0){const i=e.length?n.getOptimalBlockScope(e,o):t;n.prepend(i,r)}static getOptimalBlockScope(e,t,r=1/0){const o=e[t];if(r<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return r>1&&o.callsGraph.length?n.getOptimalBlockScope(o.callsGraph,0,--r):o.callee}static insertBefore(e,t,r){const o=n.getScopeStatements(e).indexOf(r);n.insertAtIndex(e,t,o)}static insertAfter(e,t,r){const o=n.getScopeStatements(e).indexOf(r);n.insertAtIndex(e,t,o+1)}static insertAtIndex(e,t,r){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...n.getScopeStatements(e).slice(0,r),...t,...n.getScopeStatements(e).slice(r)])}static prepend(e,t){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...t,...n.getScopeStatements(e)])}static getScopeStatements(e){return o.NodeGuards.isSwitchCaseNode(e)?e.consequent:e.body}static parentizeScopeStatementsBeforeAppend(e,t){return t.forEach(t=>{t.parentNode=e}),t}static setScopeStatements(e,t){o.NodeGuards.isSwitchCaseNode(e)?e.consequent=t:e.body=t}}t.NodeAppender=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeLexicalScopeUtils=void 0;const o=r(4);class n{static getLexicalScope(e){return n.getLexicalScopesRecursive(e,1)[0]}static getLexicalScopes(e){return n.getLexicalScopesRecursive(e)}static getLexicalScopesRecursive(e,t=1/0,r=[],i=0){if(r.length>=t)return r;const a=e.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithLexicalScope(e)&&r.push(e),e!==a?n.getLexicalScopesRecursive(a,t,r,++i):r}}t.NodeLexicalScopeUtils=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationTarget=void 0;const o=r(31);t.ObfuscationTarget=o.MakeEnum({Browser:"browser",BrowserNoEval:"browser-no-eval",Node:"node"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationEvent=void 0,function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=void 0;let o=(()=>{class e{static buildVersionMessage(e,t){if(!e||!t)return"unknown";return`${e}_${new Date(parseInt(t,10)).toISOString()}`}static extractDomainFrom(e){let t;return t=e.includes("://")||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0],t=t.split(":")[0],t}static getIdentifiersPrefixForMultipleSources(t,r){return`${t||e.baseMultipleSourcesIdentifiersPrefix}${r}`}}return e.baseMultipleSourcesIdentifiersPrefix="a",e.hexadecimalPrefix="0x",e})();t.Utils=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelper=void 0,function(e){e.CallsControllerFunction="CallsControllerFunction",e.ConsoleOutputDisable="ConsoleOutputDisable",e.DebugProtectionFunctionCall="DebugProtectionFunctionCall",e.DebugProtectionFunctionInterval="DebugProtectionFunctionInterval",e.DebugProtectionFunction="DebugProtectionFunction",e.DomainLock="DomainLock",e.SelfDefendingUnicode="SelfDefendingUnicode",e.StringArrayCallsWrapper="StringArrayCallsWrapper",e.StringArray="StringArray",e.StringArrayRotateFunction="StringArrayRotateFunction"}(t.CustomCodeHelper||(t.CustomCodeHelper={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncoding=void 0;const o=r(31);t.StringArrayEncoding=o.MakeEnum({Base64:"base64",Rc4:"rc4"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(5),d=r(2),l=r(3);let u=(()=>{var e,t,r;let u=class{constructor(e,t,r){this.identifierNamesGenerator=e(r),this.randomGenerator=t,this.options=r}getAppendEvent(){return this.appendEvent}getCustomCodeHelpers(){return this.customCodeHelpers}appendCustomNodeIfExist(e,t){const r=this.customCodeHelpers.get(e);r&&t(r)}getRandomCallsGraphIndex(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}};return u=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object])],u),u})();t.AbstractCustomCodeHelperGroup=u},function(e,t){e.exports=require("@gradecam/tsenum")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapMode=void 0;const o=r(31);t.SourceMapMode=o.MakeEnum({Inline:"inline",Separate:"separate"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierNamesGenerator=void 0;const o=r(31);t.IdentifierNamesGenerator=o.MakeEnum({DictionaryIdentifierNamesGenerator:"dictionary",HexadecimalIdentifierNamesGenerator:"hexadecimal",MangledIdentifierNamesGenerator:"mangled"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=void 0,function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassDeclaration="ClassDeclaration",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExpressionStatement="ExpressionStatement",e.ForStatement="ForStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MethodDefinition="MethodDefinition",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateLiteral="TemplateLiteral",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement"}(t.NodeType||(t.NodeType={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberUtils=void 0;const o=r(26);t.NumberUtils=class{static toHex(e){const t="number"==typeof e?e.toString(16):`${e.toString(16)}n`;return`${o.Utils.hexadecimalPrefix}${t}`}static isCeil(e){return"number"!=typeof e||e%1==0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierObfuscatingReplacer=void 0,function(e){e.BaseIdentifierObfuscatingReplacer="BaseIdentifierObfuscatingReplacer"}(t.IdentifierObfuscatingReplacer||(t.IdentifierObfuscatingReplacer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2);let d=(()=>{var e;let t=class{constructor(e){this.options=e}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IOptions&&c.IOptions)?e:Object])],t),t})();t.AbstractObfuscatingReplacer=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PRESET=void 0;const o=r(34),n=r(24),i=r(32);t.DEFAULT_PRESET=Object.freeze({compact:!0,config:"",controlFlowFlattening:!1,controlFlowFlatteningThreshold:.75,deadCodeInjection:!1,deadCodeInjectionThreshold:.4,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",identifiersDictionary:[],inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!0,seed:0,selfDefending:!1,shuffleStringArray:!0,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,splitStrings:!1,splitStringsChunkLength:10,stringArray:!0,stringArrayEncoding:!1,stringArrayThreshold:.75,target:n.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringSeparator=void 0,function(e){e.Dot=".",e.Comma=","}(t.StringSeparator||(t.StringSeparator={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCalleeDataExtractor=void 0;const n=r(0);let i=(()=>{let e=class{};return e=o([n.injectable()],e),e})();t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ecmaVersion=void 0,t.ecmaVersion=11},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeLiteralUtils=void 0;const o=r(4);t.NodeLiteralUtils=class{static isProhibitedLiteralNode(e,t){return!(!o.NodeGuards.isPropertyNode(t)||t.computed||t.key!==e)||!!o.NodeGuards.isImportDeclarationNode(t)}}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3);let u=(()=>{var e,t,r,u;let f=e=class{constructor(e,t,r){this.replacerDataByControlFlowStorageId=new Map,this.controlFlowCustomNodeFactory=e,this.randomGenerator=t,this.options=r}static getStorageKeysByIdForCurrentStorage(e,t){let r;return r=e.has(t)?e.get(t):new Map,r}insertCustomNodeToControlFlowStorage(t,r,o,n){const i=r.getStorageId(),a=e.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,i),s=a.get(o);if(this.randomGenerator.getMathRandom(){const t=this.randomGenerator.getRandomString(e);return r.getStorage().has(t)?c(e):t},d=c(5);return a.set(o,[d]),this.replacerDataByControlFlowStorageId.set(i,a),r.set(d,t),d}};return f=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(u=void 0!==d.IOptions&&d.IOptions)?u:Object])],f),f})();t.AbstractControlFlowReplacer=u},function(e,t){e.exports=require("escodegen")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableNoEvalTemplate=void 0,t.GlobalVariableNoEvalTemplate=function(){return"\n const that = (typeof window !== 'undefined'\n ? window\n : (typeof process === 'object' &&\n typeof require === 'function' &&\n typeof global === 'object')\n ? global\n : this);\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(4);let u=(()=>{var e,t;let r=class{constructor(e,t){this.preservedNamesSet=new Set,this.lexicalScopesPreservedNamesMap=new Map,this.randomGenerator=e,this.options=t}generate(e,t){return l.NodeGuards.isProgramNode(e)?this.generateForGlobalScope():this.generateForLexicalScope(e)}preserveName(e){this.preservedNamesSet.add(e)}preserveNameForLexicalScope(e,t){var r;const o=null!==(r=this.lexicalScopesPreservedNamesMap.get(t))&&void 0!==r?r:new Set;o.add(e),this.lexicalScopesPreservedNamesMap.set(t,o)}isValidIdentifierName(e){return this.notReservedName(e)&&!this.preservedNamesSet.has(e)}isValidIdentifierNameInLexicalScopes(e,t){var r;if(!this.isValidIdentifierName(e))return!1;for(const o of t){const t=null!==(r=this.lexicalScopesPreservedNamesMap.get(o))&&void 0!==r?r:null;if(t&&t.has(e))return!1}return!0}notReservedName(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractIdentifierNamesGenerator=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MapStorage=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(7);let u=(()=>{var e,t,r;let u=class{constructor(e,t){this.randomGenerator=e,this.options=t}initialize(){this.storage=new Map,this.storageId=this.randomGenerator.getRandomString(6)}get(e){return this.storage.get(e)}getOrThrow(e){const t=this.get(e);if(!t)throw new Error(`No value found in map storage with key \`${e}\``);return t}getKeyOf(e){for(const[t,r]of this.storage)if(e===r)return t;return null}getLength(){return this.storage.size}getStorage(){return this.storage}getStorageId(){return this.storageId}has(e){return this.storage.has(e)}mergeWith(e,t=!1){this.storage=new Map([...this.storage,...e.getStorage()]),t&&(this.storageId=e.getStorageId())}set(e,t){this.storage.set(e,t)}};return o([l.initializable(),n("design:type",String)],u.prototype,"storageId",void 0),o([l.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],u.prototype,"storage",void 0),o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],u.prototype,"initialize",null),u=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],u),u})();t.MapStorage=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscator=void 0,r(76);const o=r(1),n=r(16),i=r(26);let a=(()=>{class e{static obfuscate(e,t={}){const r=new n.InversifyContainerFacade;r.load(e,"",t);const i=r.get(o.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return r.unload(),i}static obfuscateMultiple(t,r={}){if("object"!=typeof t)throw new Error("Source codes object should be a plain object");return Object.keys(t).reduce((o,n,a)=>{const s=i.Utils.getIdentifiersPrefixForMultipleSources(r.identifiersPrefix,a),c=t[n],d=Object.assign(Object.assign({},r),{identifiersPrefix:s});return Object.assign(Object.assign({},o),{[n]:e.obfuscate(c,d)})},{})}}return e.version=null!=="0.28.3"?"0.28.3":"unknown",e})();t.JavaScriptObfuscator=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CalleeDataExtractor=void 0,function(e){e.FunctionDeclarationCalleeDataExtractor="FunctionDeclarationCalleeDataExtractor",e.FunctionExpressionCalleeDataExtractor="FunctionExpressionCalleeDataExtractor",e.ObjectExpressionCalleeDataExtractor="ObjectExpressionCalleeDataExtractor"}(t.CalleeDataExtractor||(t.CalleeDataExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformer=void 0,function(e){e.HashbangOperatorTransformer="HashbangOperatorTransformer"}(t.CodeTransformer||(t.CodeTransformer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTransformerNamesGroupsBuilder=void 0;const a=r(0),s=r(1),c=r(91);let d=(()=>{var e;let t=class{constructor(e){this.levelledTopologicalSorter=e}build(e){const t=Object.keys(e),r=this.buildTransformersRelationEdges(t,e);for(const[e,t]of r)this.levelledTopologicalSorter.add(e,t);return this.levelledTopologicalSorter.sortByGroups()}buildTransformersRelationEdges(e,t){const r=[];for(const o of e){const e=t[o].runAfter;if(e&&e.length)for(const n of e){void 0===t[n]?r.push([o,null]):r.push([n,o])}else r.push([o,null])}return r}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ILevelledTopologicalSorter)),n("design:paramtypes",["function"==typeof(e=void 0!==c.ILevelledTopologicalSorter&&c.ILevelledTopologicalSorter)?e:Object])],t),t})();t.AbstractTransformerNamesGroupsBuilder=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformationStage=void 0,function(e){e.PreparingTransformers="PreparingTransformers",e.FinalizingTransformers="FinalizingTransformers"}(t.CodeTransformationStage||(t.CodeTransformationStage={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowReplacer=void 0,function(e){e.BinaryExpressionControlFlowReplacer="BinaryExpressionControlFlowReplacer",e.CallExpressionControlFlowReplacer="CallExpressionControlFlowReplacer",e.LogicalExpressionControlFlowReplacer="LogicalExpressionControlFlowReplacer",e.StringLiteralControlFlowReplacer="StringLiteralControlFlowReplacer"}(t.ControlFlowReplacer||(t.ControlFlowReplacer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithOperatorControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r;let m=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}getControlFlowStorageCallNode(e,t,r,o){const n=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);n.initialize(e,t,r,o);const i=n.getNode()[0];if(!i||!p.NodeGuards.isExpressionStatementNode(i))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return i.expression}};return m=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?e:Object,"function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object])],m),m})();t.ExpressionWithOperatorControlFlowReplacer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ASTParserFacade=void 0;const s=i(r(97)),c=a(r(61));let d=(()=>{class e{static parse(t,r){const o=e.sourceTypes.length;for(let n=0;n"),c=`...${n.substring(i,a).replace(/^\s+/,"")}...`;throw new Error(`ERROR at line ${o.line}: ${r}\n${s} ${c}`)}}return e.colorError=c.default.red,e.nearestSymbolsCount=15,e.sourceTypes=["script","module"],e})();t.ASTParserFacade=d},function(e,t){e.exports=require("chalk")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionCustomNode=void 0,function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionExtractor=void 0,function(e){e.BasePropertiesExtractor="BasePropertiesExtractor",e.ObjectExpressionToVariableDeclarationExtractor="ObjectExpressionToVariableDeclarationExtractor"}(t.ObjectExpressionExtractor||(t.ObjectExpressionExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionKeysTransformerCustomNode=void 0,function(e){e.ObjectExpressionVariableDeclarationHostNode="ObjectExpressionVariableDeclarationHostNode"}(t.ObjectExpressionKeysTransformerCustomNode||(t.ObjectExpressionKeysTransformerCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperGroup=void 0,function(e){e.ConsoleOutput="ConsoleOutput",e.DebugProtection="DebugProtection",e.DomainLock="DomainLock",e.SelfDefending="SelfDefending",e.StringArray="StringArray"}(t.CustomCodeHelperGroup||(t.CustomCodeHelperGroup={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionalCommentObfuscatingGuard=void 0;const n=r(0),i=r(4);let a=(()=>{var e;let t=e=class{constructor(){this.obfuscationAllowed=!0}static isConditionalComment(t){return e.obfuscationEnableCommentRegExp.test(t.value)||e.obfuscationDisableCommentRegExp.test(t.value)}check(e){if(!i.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowed;const t=e.leadingComments;return t&&(this.obfuscationAllowed=this.checkComments(t)),this.obfuscationAllowed}checkComments(t){const r=t.length;let o=this.obfuscationAllowed;for(let n=0;n=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RandomGenerator=void 0;const s=r(0),c=r(1),d=a(r(235)),l=r(236),u=r(2),f=r(237),p=r(7);let m=(()=>{var e,t,r,a;let m=e=class{constructor(e,t){this.sourceCode=e,this.options=t}initialize(){this.randomGenerator=new l.Chance(this.getRawSeed())}getMathRandom(){return this.getRandomInteger(0,99999)/1e5}getRandomGenerator(){return this.randomGenerator}getRandomInteger(e,t){return this.getRandomGenerator().integer({min:e,max:t})}getRandomString(t,r=e.randomGeneratorPool){return this.getRandomGenerator().string({length:t,pool:r})}getInputSeed(){return this.options.seed.toString()}getRawSeed(){const e=this.getInputSeed();return`${e}`.split("|").length>1?e:`${e}|${d.default(this.sourceCode.getSourceCode())}`}};return m.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",o([p.initializable(),n("design:type","function"==typeof(t=void 0!==l.Chance&&l.Chance.Chance)?t:Object)],m.prototype,"randomGenerator",void 0),o([s.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],m.prototype,"initialize",null),m=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.ISourceCode)),i(1,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(r=void 0!==f.ISourceCode&&f.ISourceCode)?r:Object,"function"==typeof(a=void 0!==u.IOptions&&u.IOptions)?a:Object])],m),m})();t.RandomGenerator=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const s=r(0),c=r(1),d=a(r(61)),l=r(2),u=r(78);let f=(()=>{var e,t;let r=e=class{constructor(e){this.options=e}static log(e,t,r,o){const n=e(`\n${t} ${r}`);console.log(n,null!=o?o:"")}info(t,r){this.options.log&&e.log(e.colorInfo,u.LoggingPrefix.Base,t,r)}success(t,r){this.options.log&&e.log(e.colorSuccess,u.LoggingPrefix.Base,t,r)}warn(t,r){this.options.log&&e.log(e.colorWarn,u.LoggingPrefix.Base,t,r)}};return r.colorInfo=d.default.cyan,r.colorSuccess=d.default.green,r.colorWarn=d.default.yellow,r=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==l.IOptions&&l.IOptions)?t:Object])],r),r})();t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingPrefix=void 0,function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.analyzersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(54),s=r(80),c=r(82),d=r(83),l=r(84),u=r(85),f=r(86),p=r(88);t.analyzersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.ICallsGraphAnalyzer).to(s.CallsGraphAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer).to(u.PrevailingKindOfVariablesAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IScopeAnalyzer).to(f.ScopeAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IStringArrayStorageAnalyzer).to(p.StringArrayStorageAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.ICalleeDataExtractor).to(c.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(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsGraphAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(81),p=r(54),m=r(4),g=r(18);let h=(()=>{var e,t;let r=e=class{constructor(e){this.calleeDataExtractorFactory=e}static getLimitIndex(t){const r=t-1,o=e.limitThresholdActivationLength-1;let n=r;return r>o&&(n=Math.round(o+r*e.limitThreshold),n>r&&(n=r)),n}analyze(e){return this.analyzeRecursive(e.body)}analyzeRecursive(t){const r=e.getLimitIndex(t.length),o=[],n=t.length;for(let e=0;er);e++){const r=t[e];u.traverse(r,{enter:e=>{if(m.NodeGuards.isCallExpressionNode(e))return r.parentNode!==g.NodeStatementUtils.getParentNodeWithStatements(e)?u.VisitorOption.Skip:void this.analyzeCallExpressionNode(o,t,e)}})}return o}analyzeCallExpressionNode(t,r,o){e.calleeDataExtractorsList.forEach(e=>{const n=this.calleeDataExtractorFactory(e).extract(r,o.callee);n&&t.push(Object.assign(Object.assign({},n),{callsGraph:this.analyzeRecursive(n.callee.body)}))})}};return r.calleeDataExtractorsList=[p.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,p.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,p.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],r.limitThresholdActivationLength=25,r.limitThreshold=.002,r=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TCalleeDataExtractorFactory&&f.TCalleeDataExtractorFactory)?t:Object])],r),r})();t.CallsGraphAnalyzer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionDeclarationCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{let e=class extends d.AbstractCalleeDataExtractor{extract(e,t){if(!l.NodeGuards.isIdentifierNode(t))return null;const r=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}getCalleeBlockStatement(e,t){let r=null;return c.traverse(e,{enter:e=>{if(l.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,c.VisitorOption.Break}}),r}};return e=i([s.injectable()],e),e})();t.FunctionDeclarationCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionExpressionCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{let e=class extends d.AbstractCalleeDataExtractor{extract(e,t){let r=null,o=null;return l.NodeGuards.isIdentifierNode(t)?(r=t.name,o=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)):l.NodeGuards.isFunctionExpressionNode(t)&&(r=null,o=t.body),o?{callee:o,name:r}:null}getCalleeBlockStatement(e,t){let r=null;return c.traverse(e,{enter:(e,o)=>{if(l.NodeGuards.isFunctionExpressionNode(e)&&o&&l.NodeGuards.isVariableDeclaratorNode(o)&&l.NodeGuards.isIdentifierNode(o.id)&&o.id.name===t)return r=e.body,c.VisitorOption.Break}}),r}};return e=i([s.injectable()],e),e})();t.FunctionExpressionCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{var e;let t=e=class extends d.AbstractCalleeDataExtractor{static isValidTargetPropertyNode(e,t){if(!e.key)return!1;const r=l.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,o=l.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||o}extract(e,t){if(!l.NodeGuards.isMemberExpressionNode(t))return null;const r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;const o=r[r.length-1],n=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return n?{callee:n,name:o}:null}createObjectMembersCallsChain(e,t){if(l.NodeGuards.isIdentifierNode(t.property)&&!t.computed)e.unshift(t.property.name);else{if(!l.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return l.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(l.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}getCalleeBlockStatement(e,t){const r=t.shift();if(!r)return null;let o=null;return c.traverse(e,{enter:e=>{if(l.NodeGuards.isVariableDeclaratorNode(e)&&l.NodeGuards.isIdentifierNode(e.id)&&e.init&&l.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===r)return o=this.findCalleeBlockStatement(e.init.properties,t),c.VisitorOption.Break}}),o}findCalleeBlockStatement(t,r){const o=r.shift();if(!o)return null;for(const n of t)if(l.NodeGuards.isPropertyNode(n)&&e.isValidTargetPropertyNode(n,o)){if(l.NodeGuards.isObjectExpressionNode(n.value))return this.findCalleeBlockStatement(n.value.properties,r);if(l.NodeGuards.isFunctionExpressionNode(n.value))return n.value.body}return null}};return t=e=i([s.injectable()],t),t})();t.ObjectExpressionCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrevailingKindOfVariablesAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(36),p=r(4);let m=(()=>{var e,t;let r=e=class{constructor(t){this.prevailingKindOfVariables=e.defaultKindOfVariables,this.arrayUtils=t}analyze(t){var r;const o=[];u.traverse(t,{enter:e=>{p.NodeGuards.isVariableDeclarationNode(e)&&o.push(e.kind)}}),this.prevailingKindOfVariables=null!==(r=this.arrayUtils.findMostOccurringElement(o))&&void 0!==r?r:e.defaultKindOfVariables}getPrevailingKind(){return this.prevailingKindOfVariables}};return r.defaultKindOfVariables="var",r=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IArrayUtils)),s("design:paramtypes",["function"==typeof(t=void 0!==f.IArrayUtils&&f.IArrayUtils)?t:Object])],r),r})();t.PrevailingKindOfVariablesAnalyzer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeAnalyzer=void 0;const s=r(0),c=a(r(87)),d=a(r(12)),l=r(44),u=r(4);let f=(()=>{var e;let t=e=class{constructor(){this.scopeManager=null}static attachMissingRanges(t){d.replace(t,{enter:t=>{var r,o,n,i,a,s;return t.range||(t.range=[null!==(n=null===(o=null===(r=t.parentNode)||void 0===r?void 0:r.range)||void 0===o?void 0:o[0])&&void 0!==n?n:e.emptyRangeValue,null!==(s=null===(a=null===(i=t.parentNode)||void 0===i?void 0:i.range)||void 0===a?void 0:a[1])&&void 0!==s?s:e.emptyRangeValue]),t}})}static isRootNode(e){return u.NodeGuards.isProgramNode(e)||e.parentNode===e}analyze(t){const r=e.sourceTypes.length;e.attachMissingRanges(t);for(let o=0;o{if("class"===e.type&&e.upper){if(!e.variables.length)return;const t=e.variables[0],r=e.upper.variables.find(e=>t.defs.some(e=>"ClassName"===e.type)&&e.name===t.name);null==r||r.references.push(...e.variables[0].references)}});for(const t of e.childScopes)this.sanitizeScopes(t)}};return t.eslintScopeOptions={ecmaVersion:l.ecmaVersion,optimistic:!0},t.sourceTypes=["script","module"],t.emptyRangeValue=0,t=e=i([s.injectable()],t),t})();t.ScopeAnalyzer=f},function(e,t){e.exports=require("eslint-scope")},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayStorageAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(37),g=r(4),h=r(19),y=r(45);let b=(()=>{var e,t,r,o;let n=e=class{constructor(e,t,r){this.stringArrayStorageData=new Map,this.stringArrayStorage=e,this.randomGenerator=t,this.options=r}analyze(e){this.options.stringArray&&u.traverse(e,{enter:(e,t)=>{if(t)return h.NodeMetadata.isIgnoredNode(e)?u.VisitorOption.Skip:void(g.NodeGuards.isLiteralNode(e)&&this.analyzeLiteralNode(e,t))}})}getItemDataForLiteralNode(e){return this.stringArrayStorageData.get(e)}analyzeLiteralNode(e,t){"string"==typeof e.value&&(y.NodeLiteralUtils.isProhibitedLiteralNode(e,t)||this.shouldAddValueToStringArray(e.value)&&this.stringArrayStorageData.set(e,this.stringArrayStorage.getOrThrow(e.value)))}shouldAddValueToStringArray(t){return t.length>=e.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}};return n.minimumLengthForStringArray=3,n=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IStringArrayStorage)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==m.IStringArrayStorage&&m.IStringArrayStorage)?t:Object,"function"==typeof(r=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?r:Object,"function"==typeof(o=void 0!==f.IOptions&&f.IOptions)?o:Object])],n),n})();t.StringArrayStorageAnalyzer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codeTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(55),s=r(90),c=r(92);t.codeTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Factory__ICodeTransformer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.ICodeTransformer)),e(i.ServiceIdentifiers.ICodeTransformerNamesGroupsBuilder).to(s.CodeTransformerNamesGroupsBuilder).inSingletonScope(),e(i.ServiceIdentifiers.ICodeTransformer).to(c.HashbangOperatorTransformer).whenTargetNamed(a.CodeTransformer.HashbangOperatorTransformer)})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformerNamesGroupsBuilder=void 0;const n=r(0),i=r(56);let a=(()=>{let e=class extends i.AbstractTransformerNamesGroupsBuilder{};return e=o([n.injectable()],e),e})();t.CodeTransformerNamesGroupsBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashbangOperatorTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(57),u=r(93);let f=(()=>{var e,t;let r=class extends u.AbstractCodeTransformer{constructor(e,t){super(e,t),this.hashbangOperatorLine=null}transformCode(e,t){switch(t){case l.CodeTransformationStage.PreparingTransformers:return this.removeAndSaveHashbangOperatorLine(e);case l.CodeTransformationStage.FinalizingTransformers:return this.appendSavedHashbangOperatorLine(e);default:return e}}removeAndSaveHashbangOperatorLine(e){return e.replace(/^#!.*$(\r?\n)*/m,e=>(e&&(this.hashbangOperatorLine=e),"")).trim()}appendSavedHashbangOperatorLine(e){var t;return`${null!==(t=this.hashbangOperatorLine)&&void 0!==t?t:""}${e}`}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.HashbangOperatorTransformer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCodeTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3);let l=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractCodeTransformer=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.controlFlowTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(58),s=r(13),c=r(95),d=r(96),l=r(98),u=r(99),f=r(101),p=r(104),m=r(105);t.controlFlowTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(l.CallExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(i.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(59);let p=(()=>{var e,t,r,p;let m=e=class extends f.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){const n=t.operator,i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.BinaryExpressionFunctionNode);i.initialize(n);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a,t.left,t.right)}};return m.usingExistingIdentifierChance=.5,m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(p=void 0!==d.IOptions&&d.IOptions)?p:Object])],m),m})();t.BinaryExpressionControlFlowReplacer=p},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementControlFlowTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(20),p=r(36),m=r(2),g=r(3),h=r(21),y=r(10),b=r(11),v=r(4),N=r(6);let I=(()=>{var e,t,r,o,n;let a=e=class extends b.AbstractNodeTransformer{constructor(e,t,r,o){super(r,o),this.controlFlowCustomNodeFactory=e,this.arrayUtils=t}static isProhibitedStatementNode(e){const t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),o=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||o}static canTransformBlockStatementNode(t){let r=!0;return u.traverse(t,{enter:t=>{if(v.NodeGuards.isWhileStatementNode(t))return u.VisitorOption.Skip;e.isProhibitedStatementNode(t)&&(r=!1)}}),t.body.length<=4&&(r=!1),r}getVisitor(e){switch(e){case y.NodeTransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&v.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(t,r){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!e.canTransformBlockStatementNode(t))return t;const o=t.body,n=this.arrayUtils.createWithRange(o.length),i=this.arrayUtils.shuffle(n),a=n.map(e=>i.indexOf(e)),s=this.controlFlowCustomNodeFactory(h.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);s.initialize(o,i,a);const c=s.getNode()[0];return N.NodeUtils.parentizeNode(c,r),c}};return a=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),c(1,d.inject(l.ServiceIdentifiers.IArrayUtils)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TControlFlowCustomNodeFactory&&f.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==p.IArrayUtils&&p.IArrayUtils)?r:Object,"function"==typeof(o=void 0!==g.IRandomGenerator&&g.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==m.IOptions&&m.IOptions)?n:Object])],a),a})();t.BlockStatementControlFlowTransformer=I},function(e,t){e.exports=require("acorn")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r,m;let g=e=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){const n=t.callee;if(!p.NodeGuards.isIdentifierNode(n))return t;const i=String(t.arguments.length),a=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.CallExpressionFunctionNode),s=t.arguments;a.initialize(s);const c=this.insertCustomNodeToControlFlowStorage(a,o,i,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),c,n,s)}getControlFlowStorageCallNode(e,t,r,o){const n=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);n.initialize(e,t,r,o);const i=n.getNode()[0];if(!i||!p.NodeGuards.isExpressionStatementNode(i))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return i.expression}};return g.usingExistingIdentifierChance=.5,g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(m=void 0!==d.IOptions&&d.IOptions)?m:Object])],g),g})();t.CallExpressionControlFlowReplacer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(100),p=r(2),m=r(3),g=r(62),h=r(63),y=r(13),b=r(35),v=r(10),N=r(11),I=r(8),O=r(4),S=r(18),C=r(6);let j=(()=>{var e,t,r,o,n;let a=e=class extends N.AbstractNodeTransformer{constructor(e,t,r,o){super(r,o),this.deadCodeInjectionRootAstHostNodeSet=new Set,this.collectedBlockStatements=[],this.collectedBlockStatementsTotalLength=0,this.deadCodeInjectionCustomNodeFactory=e,this.transformersRunner=t}static isProhibitedNodeInsideCollectedBlockStatement(e){return O.NodeGuards.isBreakStatementNode(e)||O.NodeGuards.isContinueStatementNode(e)||O.NodeGuards.isAwaitExpressionNode(e)||O.NodeGuards.isSuperNode(e)}static isScopeHoistingFunctionDeclaration(e){if(!O.NodeGuards.isFunctionDeclarationNode(e))return!1;const t=S.NodeStatementUtils.getScopeOfNode(e),r=O.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,o=r.indexOf(e);if(0===o)return!1;const n=r.slice(0,o),i=I.NodeFactory.blockStatementNode(n),a=e.id.name;let s=!1;return u.traverse(i,{enter:e=>{if(O.NodeGuards.isIdentifierNode(e)&&e.name===a)return s=!0,u.VisitorOption.Break}}),s}static isValidCollectedBlockStatementNode(t){if(!t.body.length)return!1;let r=0,o=!0;return u.traverse(t,{enter:t=>{if(O.NodeGuards.isBlockStatementNode(t)&&r++,r>e.maxNestedBlockStatementsCount||e.isProhibitedNodeInsideCollectedBlockStatement(t)||e.isScopeHoistingFunctionDeclaration(t))return o=!1,u.VisitorOption.Break}}),o}static isValidWrappedBlockStatementNode(t){if(!t.body.length)return!1;let r=!0;if(u.traverse(t,{enter:t=>{if(e.isScopeHoistingFunctionDeclaration(t))return r=!1,u.VisitorOption.Break}}),!r)return!1;return S.NodeStatementUtils.getParentNodeWithStatements(t).type!==b.NodeType.Program}getVisitor(e){switch(e){case v.NodeTransformationStage.DeadCodeInjection:return{enter:(e,t)=>{if(t&&O.NodeGuards.isProgramNode(e))return this.analyzeNode(e,t),e},leave:(e,t)=>{if(t&&O.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};case v.NodeTransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:(e,t)=>{if(t&&this.isDeadCodeInjectionRootAstHostNode(e))return this.restoreNode(e,t)}}:null;default:return null}}analyzeNode(t,r){u.traverse(t,{enter:t=>{if(!O.NodeGuards.isBlockStatementNode(t))return;const r=C.NodeUtils.clone(t);if(!e.isValidCollectedBlockStatementNode(r))return;const o=this.makeClonedBlockStatementNodeUnique(r);this.collectedBlockStatements.push(o)}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}transformNode(t,r){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!e.isValidWrappedBlockStatementNode(t))return t;const o=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,o),i=this.collectedBlockStatements.splice(n,1)[0];return i===t?t:this.replaceBlockStatementNode(t,i,r)}restoreNode(e,t){const r=e.body[0];if(!O.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}isDeadCodeInjectionRootAstHostNode(e){return O.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}makeClonedBlockStatementNodeUnique(t){const r=I.NodeFactory.programNode([I.NodeFactory.expressionStatementNode(I.NodeFactory.functionExpressionNode([],t))]);return C.NodeUtils.parentizeAst(r),C.NodeUtils.parentizeNode(r,r),this.transformersRunner.transform(r,e.transformersToRenameBlockScopeIdentifiers,v.NodeTransformationStage.Obfuscating),t}replaceBlockStatementNode(t,r,o){const n=I.NodeFactory.blockStatementNode([I.NodeFactory.functionDeclarationNode(e.deadCodeInjectionRootAstHostNodeName,[],r)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);const i=this.deadCodeInjectionCustomNodeFactory(h.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);i.initialize(t,n);const a=i.getNode()[0];return C.NodeUtils.parentizeNode(a,o),a}};return a.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",a.maxNestedBlockStatementsCount=4,a.minCollectedBlockStatementsCount=5,a.transformersToRenameBlockScopeIdentifiers=[y.NodeTransformer.LabeledStatementTransformer,y.NodeTransformer.ScopeIdentifiersTransformer],a=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformersRunner)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TDeadNodeInjectionCustomNodeFactory&&f.TDeadNodeInjectionCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==g.INodeTransformersRunner&&g.INodeTransformersRunner)?r:Object,"function"==typeof(o=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==p.IOptions&&p.IOptions)?n:Object])],a),a})();t.DeadCodeInjectionTransformer=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionControlFlowTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(20),p=r(102),m=r(103),g=r(2),h=r(3),y=r(21),b=r(58),v=r(35),N=r(10),I=r(11),O=r(22),S=r(4),C=r(19),j=r(18),_=r(6);let R=(()=>{var e,t,r,o,n,a;let R=e=class extends I.AbstractNodeTransformer{constructor(e,t,r,o,n){super(o,n),this.controlFlowData=new Map,this.visitedFunctionNodes=new Set,this.hostNodesWithControlFlowNode=new Set,this.controlFlowStorageFactory=e,this.controlFlowReplacerFactory=t,this.controlFlowCustomNodeFactory=r}getVisitor(e){switch(e){case N.NodeTransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&(S.NodeGuards.isFunctionDeclarationNode(e)||S.NodeGuards.isFunctionExpressionNode(e)||S.NodeGuards.isArrowFunctionExpressionNode(e)))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(this.visitedFunctionNodes.add(e),!S.NodeGuards.isBlockStatementNode(e.body))return e;const r=this.getHostNode(e.body),o=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,o),this.transformFunctionBody(e.body,o),!o.getLength())return e;const n=this.controlFlowCustomNodeFactory(y.ControlFlowCustomNode.ControlFlowStorageNode);return n.initialize(o),O.NodeAppender.prepend(r,n.getNode()),this.hostNodesWithControlFlowNode.add(r),_.NodeUtils.parentizeAst(e),e}getControlFlowStorage(e){const t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(S.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());const r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}getHostNode(t){const r=j.NodeStatementUtils.getParentNodesWithStatements(t);return 1===r.length?t:(r.pop(),r.length>e.hostNodeSearchMinDepth&&r.splice(0,e.hostNodeSearchMinDepth),r.length>e.hostNodeSearchMaxDepth&&(r.length=e.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(r))}isVisitedFunctionNode(e){return(S.NodeGuards.isFunctionDeclarationNode(e)||S.NodeGuards.isFunctionExpressionNode(e)||S.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}transformFunctionBody(t,r){u.replace(t,{enter:(t,o)=>{if(C.NodeMetadata.isIgnoredNode(t))return u.VisitorOption.Skip;if(this.isVisitedFunctionNode(t)||!o)return u.VisitorOption.Skip;if(!e.controlFlowReplacersMap.has(t.type))return t;if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold)return t;const n=e.controlFlowReplacersMap.get(t.type);return void 0===n?t:Object.assign(Object.assign({},this.controlFlowReplacerFactory(n).replace(t,o,r)),{parentNode:o})}})}};return R.controlFlowReplacersMap=new Map([[v.NodeType.BinaryExpression,b.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[v.NodeType.CallExpression,b.ControlFlowReplacer.CallExpressionControlFlowReplacer],[v.NodeType.LogicalExpression,b.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[v.NodeType.Literal,b.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),R.hostNodeSearchMinDepth=0,R.hostNodeSearchMaxDepth=2,R=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__TControlFlowStorage)),c(1,d.inject(l.ServiceIdentifiers.Factory__IControlFlowReplacer)),c(2,d.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),c(3,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(4,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==m.TControlFlowStorageFactory&&m.TControlFlowStorageFactory)?t:Object,"function"==typeof(r=void 0!==p.TControlFlowReplacerFactory&&p.TControlFlowReplacerFactory)?r:Object,"function"==typeof(o=void 0!==f.TControlFlowCustomNodeFactory&&f.TControlFlowCustomNodeFactory)?o:Object,"function"==typeof(n=void 0!==h.IRandomGenerator&&h.IRandomGenerator)?n:Object,"function"==typeof(a=void 0!==g.IOptions&&g.IOptions)?a:Object])],R),R})();t.FunctionControlFlowTransformer=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(59),p=r(4),m=r(6);let g=(()=>{var e,t,r,g;let h=e=class extends f.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){if(this.checkForProhibitedExpressions(t.left,t.right))return t;const n=t.operator,i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.LogicalExpressionFunctionNode);i.initialize(n);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a,t.left,t.right)}checkForProhibitedExpressions(e,t){return[e,t].some(e=>{let t;return t=p.NodeGuards.isUnaryExpressionNode(e)?m.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(p.NodeGuards.isLiteralNode(t)||p.NodeGuards.isIdentifierNode(t)||p.NodeGuards.isObjectExpressionNode(t)||p.NodeGuards.isExpressionStatementNode(t))})}};return h.usingExistingIdentifierChance=.5,h=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==d.IOptions&&d.IOptions)?g:Object])],h),h})();t.LogicalExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r,m;let g=e=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){if(p.NodeGuards.isPropertyNode(r)&&r.key===t)return t;if("string"!=typeof t.value||t.value.length<3)return t;const n=String(t.value),i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.StringLiteralNode);i.initialize(t.value);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a)}getControlFlowStorageCallNode(e,t){const r=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);const o=r.getNode()[0];if(!o||!p.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}};return g.usingExistingIdentifierChance=1,g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(m=void 0!==d.IOptions&&d.IOptions)?m:Object])],g),g})();t.StringLiteralControlFlowReplacer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertingTransformersModule=void 0;const o=r(0),n=r(16),i=r(1),a=r(13),s=r(64),c=r(107),d=r(109),l=r(110),u=r(111),f=r(113),p=r(114),m=r(115),g=r(116);t.convertingTransformersModule=new o.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(a.NodeTransformer.MemberExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(l.MethodDefinitionTransformer).whenTargetNamed(a.NodeTransformer.MethodDefinitionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.ObjectExpressionKeysTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionKeysTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.SplitStringTransformer).whenTargetNamed(a.NodeTransformer.SplitStringTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(m.TemplateLiteralTransformer).whenTargetNamed(a.NodeTransformer.TemplateLiteralTransformer),e(i.ServiceIdentifiers.IObjectExpressionExtractor).to(c.ObjectExpressionToVariableDeclarationExtractor).whenTargetNamed(s.ObjectExpressionExtractor.ObjectExpressionToVariableDeclarationExtractor),e(i.ServiceIdentifiers.IObjectExpressionExtractor).to(g.BasePropertiesExtractor).whenTargetNamed(s.ObjectExpressionExtractor.BasePropertiesExtractor),e(i.ServiceIdentifiers.Factory__IObjectExpressionExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IObjectExpressionExtractor))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionToVariableDeclarationExtractor=void 0;const a=r(0),s=r(1),c=r(108),d=r(65),l=r(22),u=r(4),f=r(18),p=r(6),m=r(23);let g=(()=>{var e;let t=class{constructor(e){this.objectExpressionKeysTransformerCustomNodeFactory=e}extract(e,t){return this.transformObjectExpressionToVariableDeclaration(e,t)}transformObjectExpressionToVariableDeclaration(e,t){var r;const o=f.NodeStatementUtils.getScopeOfNode(t),n=u.NodeGuards.isNodeWithLexicalScope(o)?o:null!==(r=m.NodeLexicalScopeUtils.getLexicalScope(o))&&void 0!==r?r:null;if(!n)throw new Error("Cannot find lexical scope node for the host statement node");const i=e.properties,a=this.getObjectExpressionHostNode(n,i),s=[a];return l.NodeAppender.insertBefore(o,s,t),p.NodeUtils.parentizeAst(a),p.NodeUtils.parentizeNode(a,o),{nodeToReplace:this.getObjectExpressionIdentifierNode(a),objectExpressionHostStatement:a,objectExpressionNode:this.getObjectExpressionNode(a)}}getObjectExpressionHostNode(e,t){const r=this.objectExpressionKeysTransformerCustomNodeFactory(d.ObjectExpressionKeysTransformerCustomNode.ObjectExpressionVariableDeclarationHostNode);r.initialize(e,t);const o=r.getNode()[0];if(!o||!u.NodeGuards.isVariableDeclarationNode(o))throw new Error("`objectExpressionHostCustomNode.getNode()[0]` should returns array with `VariableDeclaration` node");return o}getObjectExpressionIdentifierNode(e){const t=e.declarations[0].id;if(!u.NodeGuards.isIdentifierNode(t))throw new Error("`objectExpressionHostNode` should contain `VariableDeclarator` node with `Identifier` id property");return t}getObjectExpressionNode(e){var t;const r=null!==(t=e.declarations[0].init)&&void 0!==t?t:null;if(!r||!u.NodeGuards.isObjectExpressionNode(r))throw new Error("`objectExpressionHostNode` should contain `VariableDeclarator` node with `ObjectExpression` init property");return r}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TObjectExpressionKeysTransformerCustomNodeFactory&&c.TObjectExpressionKeysTransformerCustomNodeFactory)?e:Object])],t),t})();t.ObjectExpressionToVariableDeclarationExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MemberExpressionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Converting:return{enter:(e,t)=>{if(t&&p.NodeGuards.isMemberExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(p.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=f.NodeFactory.literalNode(e.property.name)}return e}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.MemberExpressionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MethodDefinitionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t,r;let m=e=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.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)?this.replaceIdentifierKey(e,e.key):p.NodeGuards.isLiteralNode(e.key)?this.replaceLiteralKey(e,e.key):e}replaceIdentifierKey(t,r){return e.ignoredNames.includes(r.name)||t.computed||(t.computed=!0,t.key=f.NodeFactory.literalNode(r.name)),t}replaceLiteralKey(t,r){return"string"!=typeof r.value||e.ignoredNames.includes(r.value)||t.computed||(t.computed=!0),t}};return m.ignoredNames=["constructor"],m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],m),m})();t.MethodDefinitionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionKeysTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(112),p=r(2),m=r(3),g=r(10),h=r(11),y=r(4),b=r(18),v=r(64);let N=(()=>{var e,t,r,o;let n=e=class extends h.AbstractNodeTransformer{constructor(e,t,r){super(t,r),this.objectExpressionExtractorFactory=e}static isProhibitedHostStatement(t,r){return e.isReferencedIdentifierName(t,r)||e.isProhibitedSequenceExpression(t,r)}static isReferencedIdentifierName(e,t){const r=[];let o=!1,n=!1;return u.traverse(t,{enter:t=>{t===e&&(n=!0),y.NodeGuards.isIdentifierNode(t)&&(n?r.includes(t.name)&&(o=!0):r.push(t.name))},leave:t=>{if(t===e)return n=!1,u.VisitorOption.Break}}),o}static isProhibitedSequenceExpression(e,t){return y.NodeGuards.isExpressionStatementNode(t)&&y.NodeGuards.isSequenceExpressionNode(t.expression)&&t.expression.expressions.some(e=>y.NodeGuards.isCallExpressionNode(e)&&y.NodeGuards.isSuperNode(e.callee))}getVisitor(e){if(!this.options.transformObjectKeys)return null;switch(e){case g.NodeTransformationStage.Converting:return{leave:(e,t)=>{if(t&&y.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(t,r){if(!t.properties.length)return t;const o=b.NodeStatementUtils.getRootStatementOfNode(t);return e.isProhibitedHostStatement(t,o)?t:this.applyObjectExpressionKeysExtractorsRecursive(e.objectExpressionExtractorNames,t,o)}applyObjectExpressionKeysExtractorsRecursive(e,t,r){const o=[...e],n=o.shift();if(!n)return t;const{nodeToReplace:i,objectExpressionHostStatement:a,objectExpressionNode:s}=this.objectExpressionExtractorFactory(n).extract(t,r);return this.applyObjectExpressionKeysExtractorsRecursive(o,s,a),i}};return n.objectExpressionExtractorNames=[v.ObjectExpressionExtractor.ObjectExpressionToVariableDeclarationExtractor,v.ObjectExpressionExtractor.BasePropertiesExtractor],n=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IObjectExpressionExtractor)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TObjectExpressionExtractorFactory&&f.TObjectExpressionExtractorFactory)?t:Object,"function"==typeof(r=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?r:Object,"function"==typeof(o=void 0!==p.IOptions&&p.IOptions)?o:Object])],n),n})();t.ObjectExpressionKeysTransformer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Converting:return{enter:(e,t)=>{if(t&&p.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return e.properties.forEach(e=>{p.NodeGuards.isPropertyNode(e)&&e.key&&(e.computed?this.transformComputedProperty(e):this.transformBaseProperty(e))}),e}transformComputedProperty(e){p.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=f.NodeFactory.literalNode(e.key.value))}transformBaseProperty(e){e.shorthand&&(e.shorthand=!1),p.NodeGuards.isIdentifierNode(e.key)&&(e.key=f.NodeFactory.literalNode(e.key.name))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ObjectExpressionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitStringTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(13),g=r(10),h=r(11),y=r(8),b=r(4),v=r(45),N=r(6);let I=(()=>{var e,t,r;let o=e=class extends h.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[m.NodeTransformer.ObjectExpressionKeysTransformer,m.NodeTransformer.TemplateLiteralTransformer]}static chunkString(e,t){const r=Math.ceil(e.length/t),o=[];let n=0;for(let i=0;i{if(this.options.splitStrings)return t&&b.NodeGuards.isLiteralNode(e)?this.transformNode(e,t):void 0}};default:return null}}transformNode(t,r){if(v.NodeLiteralUtils.isProhibitedLiteralNode(t,r))return t;const o=this.transformLiteralNodeByChunkLength(t,r,e.firstPassChunkLength);return u.replace(o,{enter:(e,t)=>{if(t&&b.NodeGuards.isLiteralNode(e))return this.transformLiteralNodeByChunkLength(e,t,this.options.splitStringsChunkLength)}})}transformLiteralNodeByChunkLength(t,r,o){if("string"!=typeof t.value)return t;if(o>=t.value.length)return t;const n=e.chunkString(t.value,o),i=this.transformStringChunksToBinaryExpressionNode(n);return N.NodeUtils.parentizeAst(i),N.NodeUtils.parentizeNode(i,r),i}transformStringChunksToBinaryExpressionNode(e){const t=e.shift(),r=e.shift();if(!t||!r)throw new Error("First and second chunks values should not be empty");const o=y.NodeFactory.binaryExpressionNode("+",y.NodeFactory.literalNode(t),y.NodeFactory.literalNode(r));return e.reduce((e,t)=>{const r=y.NodeFactory.literalNode(t);return y.NodeFactory.binaryExpressionNode("+",e,r)},o)}};return o.firstPassChunkLength=1e3,o=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==f.IOptions&&f.IOptions)?r:Object])],o),o})();t.SplitStringTransformer=I},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateLiteralTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4),m=r(6);let g=(()=>{var e,t,r;let g=e=class extends u.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(t){switch(t){case l.NodeTransformationStage.Converting:return{enter:(t,r)=>{if(r&&e.isValidTemplateLiteralNode(t,r))return this.transformNode(t,r)}};default:return null}}transformNode(t,r){const o=t.expressions;let n,i=[];if(t.quasis.forEach(e=>{i.push(f.NodeFactory.literalNode(e.value.cooked));const t=o.shift();t&&i.push(t)}),i=i.filter(e=>!(p.NodeGuards.isLiteralNode(e)&&""===e.value)),e.isLiteralNodeWithStringValue(i[0])||e.isLiteralNodeWithStringValue(i[1])||i.unshift(f.NodeFactory.literalNode("")),i.length>1){let e=f.NodeFactory.binaryExpressionNode("+",i.shift(),i.shift());i.forEach(t=>{e=f.NodeFactory.binaryExpressionNode("+",e,t)}),n=e}else n=i[0];return m.NodeUtils.parentizeAst(n),m.NodeUtils.parentizeNode(n,r),n}};return g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],g),g})();t.TemplateLiteralTransformer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.BasePropertiesExtractor=void 0;const n=r(0),i=r(22),a=r(8),s=r(4),c=r(18),d=r(6);let l=(()=>{var e;let t=e=class{static getPropertyNodeKeyName(e){const t=e.key;return!s.NodeGuards.isLiteralNode(t)||"string"!=typeof t.value&&"number"!=typeof t.value?s.NodeGuards.isIdentifierNode(t)?t.name:null:t.value.toString()}static isProhibitedPattern(e){return!e||s.NodeGuards.isObjectPatternNode(e)||s.NodeGuards.isArrayPatternNode(e)||s.NodeGuards.isAssignmentPatternNode(e)||s.NodeGuards.isRestElementNode(e)}extract(e,t){const r=e.parentNode;return r&&s.NodeGuards.isVariableDeclaratorNode(r)&&s.NodeGuards.isIdentifierNode(r.id)?this.transformObjectExpressionNode(e,t,r.id):{nodeToReplace:e,objectExpressionHostStatement:t,objectExpressionNode:e}}transformObjectExpressionNode(e,t,r){const o=e.properties,[n,a]=this.extractPropertiesToExpressionStatements(o,t,r),s=c.NodeStatementUtils.getScopeOfNode(t);return this.filterExtractedObjectExpressionProperties(e,a),i.NodeAppender.insertAfter(s,n,t),d.NodeUtils.parentizeAst(s),{nodeToReplace:e,objectExpressionHostStatement:t,objectExpressionNode:e}}extractPropertiesToExpressionStatements(t,r,o){const n=t.length,i=[],c=[];for(let d=0;d!t.includes(r))}};return t=e=o([n.injectable()],t),t})();t.BasePropertiesExtractor=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customCodeHelpersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(27),s=r(66),c=r(118),d=r(119),l=r(120),u=r(121),f=r(122),p=r(123),m=r(127),g=r(129),h=r(131),y=r(133),b=r(135),v=r(139),N=r(141),I=r(143),O=r(145),S=r(152),C=r(154);t.customCodeHelpersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.ICustomCodeHelper).to(p.ConsoleOutputDisableCodeHelper).whenTargetNamed(a.CustomCodeHelper.ConsoleOutputDisable),e(i.ServiceIdentifiers.ICustomCodeHelper).to(h.DebugProtectionFunctionCallCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunctionCall),e(i.ServiceIdentifiers.ICustomCodeHelper).to(y.DebugProtectionFunctionIntervalCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunctionInterval),e(i.ServiceIdentifiers.ICustomCodeHelper).to(b.DebugProtectionFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunction),e(i.ServiceIdentifiers.ICustomCodeHelper).to(v.DomainLockCodeHelper).whenTargetNamed(a.CustomCodeHelper.DomainLock),e(i.ServiceIdentifiers.ICustomCodeHelper).to(N.CallsControllerFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.CallsControllerFunction),e(i.ServiceIdentifiers.ICustomCodeHelper).to(I.SelfDefendingUnicodeCodeHelper).whenTargetNamed(a.CustomCodeHelper.SelfDefendingUnicode),e(i.ServiceIdentifiers.ICustomCodeHelper).to(O.StringArrayCallsWrapperCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArrayCallsWrapper),e(i.ServiceIdentifiers.ICustomCodeHelper).to(S.StringArrayCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArray),e(i.ServiceIdentifiers.ICustomCodeHelper).to(C.StringArrayRotateFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArrayRotateFunction),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(c.ConsoleOutputCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.ConsoleOutput),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(d.DebugProtectionCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.DebugProtection),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(l.DomainLockCustomCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.DomainLock),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(u.SelfDefendingCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.SelfDefending),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(f.StringArrayCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.StringArray),e(i.ServiceIdentifiers.Factory__ICustomCodeHelper).toFactory(o.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomCodeHelper)),e(i.ServiceIdentifiers.Factory__ICustomCodeHelperGroup).toFactory(o.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomCodeHelperGroup)),e(i.ServiceIdentifiers.ICustomCodeHelperFormatter).to(m.CustomCodeHelperFormatter).inSingletonScope(),e(i.ServiceIdentifiers.ICustomCodeHelperObfuscator).to(g.CustomCodeHelperObfuscator).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),h=r(22),y=r(23),b=r(4);let v=(()=>{var e,t,r,v,N;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.disableConsoleOutput)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?h.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?h.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=y.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5),c=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5);this.appendCustomNodeIfExist(p.CustomCodeHelper.ConsoleOutputDisable,e=>{e.initialize(c,s),h.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),h.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.disableConsoleOutput)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.ConsoleOutputDisable),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.ConsoleOutputDisable,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],I),I})();t.ConsoleOutputCodeHelperGroup=v},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),h=r(22),y=r(4),b=r(23);let v=(()=>{var e,t,r,v,N;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.debugProtection)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?h.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?h.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=b.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&y.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5),c=a&&y.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5);this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunctionCall,e=>{e.initialize(s,c),h.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),h.NodeAppender.prepend(i,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunction,t=>{t.initialize(s),h.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunctionInterval,t=>{const r=y.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=this.randomGenerator.getRandomInteger(0,r);t.initialize(s),h.NodeAppender.insertAtIndex(e,t.getNode(),o)})}initialize(){if(this.customCodeHelpers=new Map,!this.options.debugProtection)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunction),t=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunctionCall),r=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunctionInterval),o=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunction,e),this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunctionCall,t),this.options.debugProtectionInterval&&this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunctionInterval,r),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,o)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],I),I})();t.DebugProtectionCodeHelperGroup=v},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockCustomCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),h=r(22),y=r(23),b=r(4);let v=(()=>{var e,t,r,v,N;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.domainLock.length)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?h.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?h.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=y.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext(),c=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext();this.appendCustomNodeIfExist(p.CustomCodeHelper.DomainLock,e=>{e.initialize(c,s),h.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),h.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.domainLock.length)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.DomainLock),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.DomainLock,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],I),I})();t.DomainLockCustomCodeHelperGroup=v},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),h=r(22),y=r(23);let b=(()=>{var e,t,r,b,v;let N=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.selfDefending)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?h.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?h.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=y.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext(),c=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext();this.appendCustomNodeIfExist(p.CustomCodeHelper.SelfDefendingUnicode,e=>{e.initialize(c,s),h.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),h.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.selfDefending)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.SelfDefendingUnicode),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.SelfDefendingUnicode,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],N.prototype,"customCodeHelpers",void 0),N=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(b=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?b:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],N),N})();t.SelfDefendingCodeHelperGroup=b},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(37),p=r(7),m=r(27),g=r(25),h=r(30),y=r(22);let b=(()=>{var e,t,r,b,v,N;let I=class extends h.AbstractCustomCodeHelperGroup{constructor(e,t,r,o,n){super(r,o,n),this.appendEvent=g.ObfuscationEvent.AfterObfuscation,this.customCodeHelperFactory=e,this.stringArrayStorage=t}appendNodes(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArray,t=>{y.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArrayCallsWrapper,t=>{y.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArrayRotateFunction,t=>{y.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}initialize(){if(this.customCodeHelpers=new Map,!this.options.stringArray)return;const e=this.customCodeHelperFactory(m.CustomCodeHelper.StringArray),t=this.customCodeHelperFactory(m.CustomCodeHelper.StringArrayCallsWrapper),r=this.customCodeHelperFactory(m.CustomCodeHelper.StringArrayRotateFunction),o=this.stringArrayStorage.getStorageName(),n=this.stringArrayStorage.getStorageCallsWrapperName(),i=this.stringArrayStorage.getRotationAmount();e.initialize(this.stringArrayStorage,o),t.initialize(o,n),r.initialize(o,i),this.customCodeHelpers.set(m.CustomCodeHelper.StringArray,e),this.customCodeHelpers.set(m.CustomCodeHelper.StringArrayCallsWrapper,t),this.options.rotateStringArray&&this.customCodeHelpers.set(m.CustomCodeHelper.StringArrayRotateFunction,r)}};return o([p.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.IStringArrayStorage)),i(2,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==f.IStringArrayStorage&&f.IStringArrayStorage)?r:Object,"function"==typeof(b=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?b:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],I),I})();t.StringArrayCodeHelperGroup=b},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(24),m=r(124),g=r(48),h=r(7),y=r(17),b=r(6);let v=(()=>{var e,t,r,v,N;let I=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.callsControllerFunctionName=e,this.consoleOutputDisableFunctionName=t}getNodeStructure(e){return b.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():g.GlobalVariableNoEvalTemplate();return this.customCodeHelperFormatter.formatTemplate(m.ConsoleOutputDisableExpressionTemplate(),{callControllerFunctionName:this.callsControllerFunctionName,consoleLogDisableFunctionName:this.consoleOutputDisableFunctionName,globalVariableTemplate:e})}};return o([h.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([h.initializable(),n("design:type",String)],I.prototype,"consoleOutputDisableFunctionName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(v=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==u.IOptions&&u.IOptions)?N:Object])],I),I})();t.ConsoleOutputDisableCodeHelper=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableExpressionTemplate=void 0,t.ConsoleOutputDisableExpressionTemplate=function(){return"\n const {consoleLogDisableFunctionName} = {callControllerFunctionName}(this, function () {\n const func = function () {};\n \n {globalVariableTemplate}\n \n if (!that.console) {\n that.console = (function (func){\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=void 0,t.GlobalVariableTemplate1=function(){return"\n let that;\n \n try {\n const getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=void 0,t.GlobalVariableTemplate2=function(){return"\n const getGlobal = function () {\n let 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 const that = getGlobal();\n "}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperFormatter=void 0;const l=r(0),u=r(1),f=a(r(12)),p=d(r(128)),m=r(67),g=r(4);let h=(()=>{var e;let t=class{constructor(e){this.prevailingKindOfVariables=e.getPrevailingKind()}formatTemplate(e,t){return p.default(e,t)}formatStructure(e){for(const t of e)f.replace(t,{enter:e=>{if(g.NodeGuards.isVariableDeclarationNode(e))return"var"===this.prevailingKindOfVariables&&(e.kind="var"),e}});return e}};return t=i([l.injectable(),c(0,l.inject(u.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),s("design:paramtypes",["function"==typeof(e=void 0!==m.IPrevailingKindOfVariablesAnalyzer&&m.IPrevailingKindOfVariablesAnalyzer)?e:Object])],t),t})();t.CustomCodeHelperFormatter=h},function(e,t){e.exports=require("string-template")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperObfuscator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(130),u=r(53);let f=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}obfuscateTemplate(e,t={}){return u.JavaScriptObfuscator.obfuscate(e,Object.assign(Object.assign(Object.assign({},l.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.randomGenerator.getRawSeed()}),t)).getObfuscatedCode()}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.CustomCodeHelperObfuscator=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NO_ADDITIONAL_NODES_PRESET=void 0;const o=r(34),n=r(24),i=r(32);t.NO_ADDITIONAL_NODES_PRESET=Object.freeze({compact:!0,controlFlowFlattening:!1,controlFlowFlatteningThreshold:0,deadCodeInjection:!1,deadCodeInjectionThreshold:0,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",identifiersDictionary:[],inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!1,seed:0,selfDefending:!1,shuffleStringArray:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,splitStrings:!1,splitStringsChunkLength:0,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:n.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(7),m=r(132),g=r(17),h=r(6);let y=(()=>{var e,t,r,y,b;let v=class extends g.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(m.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,callControllerFunctionName:this.callsControllerFunctionName})}};return o([p.initializable(),n("design:type",String)],v.prototype,"callsControllerFunctionName",void 0),o([p.initializable(),n("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(y=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?y:Object,"function"==typeof(b=void 0!==u.IOptions&&u.IOptions)?b:Object])],v),v})();t.DebugProtectionFunctionCallCodeHelper=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallTemplate=void 0,t.DebugProtectionFunctionCallTemplate=function(){return"\n (function () {\n {callControllerFunctionName}(\n this,\n function () {\n const regExp1 = new RegExp('function *\\\\( *\\\\)');\n const regExp2 = new RegExp('\\\\+\\\\+ *\\(?:[a-zA-Z_$][0-9a-zA-Z_$]*\\)', 'i');\n \n const 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 })();\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(7),m=r(134),g=r(17),h=r(6);let y=(()=>{var e,t,r,y,b;let v=class extends g.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(m.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}};return o([p.initializable(),n("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(y=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?y:Object,"function"==typeof(b=void 0!==u.IOptions&&u.IOptions)?b:Object])],v),v})();t.DebugProtectionFunctionIntervalCodeHelper=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=void 0,t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(24),m=r(7),g=r(136),h=r(137),y=r(138),b=r(17),v=r(6);let N=(()=>{var e,t,r,N,I;let O=class extends b.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(e){return v.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?g.DebuggerTemplate():h.DebuggerTemplateNoEval();return this.customCodeHelperFormatter.formatTemplate(y.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}};return o([m.initializable(),n("design:type",String)],O.prototype,"debugProtectionFunctionName",void 0),O=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(N=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?N:Object,"function"==typeof(I=void 0!==u.IOptions&&u.IOptions)?I:Object])],O),O})();t.DebugProtectionFunctionCodeHelper=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplate=void 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplateNoEval=void 0,t.DebuggerTemplateNoEval=function(){return"\n if (typeof counter === 'string') {\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionTemplate=void 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(49),f=r(2),p=r(3),m=r(24),g=r(7),h=r(140),y=r(48),b=r(17),v=r(6);let N=(()=>{var e,t,r,N,I,O;let S=class extends b.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.cryptUtils=i}initialize(e,t){this.callsControllerFunctionName=e,this.domainLockFunctionName=t}getNodeStructure(e){return v.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.domainLock.join(";"),[t,r]=this.cryptUtils.hideString(e,3*e.length),o=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate();return this.customCodeHelperFormatter.formatTemplate(h.DomainLockTemplate(),{callControllerFunctionName:this.callsControllerFunctionName,domainLockFunctionName:this.domainLockFunctionName,diff:r,domains:t,globalVariableTemplate:o})}};return o([g.initializable(),n("design:type",String)],S.prototype,"callsControllerFunctionName",void 0),o([g.initializable(),n("design:type",String)],S.prototype,"domainLockFunctionName",void 0),S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.ICryptUtils)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(N=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?N:Object,"function"==typeof(I=void 0!==f.IOptions&&f.IOptions)?I:Object,"function"==typeof(O=void 0!==u.ICryptUtils&&u.ICryptUtils)?O:Object])],S),S})();t.DomainLockCodeHelper=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockTemplate=void 0,t.DomainLockTemplate=function(){return'\n const {domainLockFunctionName} = {callControllerFunctionName}(this, function () {\n \n {globalVariableTemplate}\n \n const func = function () {\n return {\n key: \'item\',\n value: \'attribute\',\n getAttribute: function () {\n for (let i = 0; i < 1000; i--) {\n const 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 const regExp = new RegExp("[{diff}]", "g");\n const domains = "{domains}".replace(regExp, "").split(";");\n let document;\n let domain;\n let location;\n let hostname;\n\n for (let 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 (let 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 (let 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 (let 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 const documentDomain = that[document][domain];\n const documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n const currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n let ok = false;\n \n for (let i = 0; i < domains.length; i++) {\n const domain = domains[i];\n const position = currentDomain.length - domain.length;\n const lastIndex = currentDomain.indexOf(domain, position);\n const 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsControllerFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(14),l=r(9),u=r(2),f=r(3),p=r(25),m=r(7),g=r(142),h=r(17),y=r(6);let b=(()=>{var e,t,r,b,v,N;let I=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(g.SingleCallControllerTemplate(),{callControllerFunctionName:this.callsControllerFunctionName})):this.customCodeHelperFormatter.formatTemplate(g.SingleCallControllerTemplate(),{callControllerFunctionName:this.callsControllerFunctionName})}};return o([m.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([m.initializable(),n("design:type","function"==typeof(e=void 0!==p.ObfuscationEvent&&p.ObfuscationEvent)?e:Object)],I.prototype,"appendEvent",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperFormatter&&l.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==d.ICustomCodeHelperObfuscator&&d.ICustomCodeHelperObfuscator)?b:Object,"function"==typeof(v=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==u.IOptions&&u.IOptions)?N:Object])],I),I})();t.CallsControllerFunctionCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleCallControllerTemplate=void 0,t.SingleCallControllerTemplate=function(){return"\n const {callControllerFunctionName} = (function(){\n let firstCall = true;\n \n return function (context, fn){\n const rfn = firstCall ? function(){\n if(fn){\n const 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingUnicodeCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(7),g=r(144),h=r(17),y=r(6);let b=(()=>{var e,t,r,b,v,N;let I=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.callsControllerFunctionName=e,this.selfDefendingFunctionName=t}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{callControllerFunctionName:this.callsControllerFunctionName,selfDefendingFunctionName:this.selfDefendingFunctionName})}};return o([m.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([m.initializable(),n("design:type",String)],I.prototype,"selfDefendingFunctionName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(b=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?b:Object,"function"==typeof(v=void 0!==f.IOptions&&f.IOptions)?v:Object,"function"==typeof(N=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?N:Object])],I),I})();t.SelfDefendingUnicodeCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e){return"\n const {selfDefendingFunctionName} = {callControllerFunctionName}(this, function () {\n const test = function () {\n const regExp = test\n .constructor('return /\" + this + \"/')()\n .compile('^([^ ]+( +[^ ]+)+)+[^ ]}');\n \n return !regExp.test({selfDefendingFunctionName});\n };\n \n return test();\n });\n \n {selfDefendingFunctionName}();\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(24),g=r(28),h=r(7),y=r(146),b=r(48),v=r(147),N=r(148),I=r(149),O=r(150),S=r(151),C=r(17),j=r(6);let _=(()=>{var e,t,r,_,R,F;let T=class extends C.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}getNodeStructure(e){return j.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.getDecodeStringArrayTemplate(),t=[`^${this.stringArrayName}$`];return this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(O.StringArrayCallsWrapperTemplate(),{decodeCodeHelperTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),{reservedNames:t})}getDecodeStringArrayTemplate(){const e=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():b.GlobalVariableNoEvalTemplate(),t=this.customCodeHelperFormatter.formatTemplate(y.AtobTemplate(),{globalVariableTemplate:e});let r="",o="";switch(this.options.selfDefending&&(o=this.customCodeHelperFormatter.formatTemplate(N.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case g.StringArrayEncoding.Rc4:r=this.customCodeHelperFormatter.formatTemplate(S.StringArrayRC4DecodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:o,rc4Polyfill:v.Rc4Template(),stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case g.StringArrayEncoding.Base64:r=this.customCodeHelperFormatter.formatTemplate(I.StringArrayBase64DecodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:o,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}};return o([h.initializable(),n("design:type",String)],T.prototype,"stringArrayName",void 0),o([h.initializable(),n("design:type",String)],T.prototype,"stringArrayCallsWrapperName",void 0),T=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(_=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?_:Object,"function"==typeof(R=void 0!==f.IOptions&&f.IOptions)?R:Object,"function"==typeof(F=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?F:Object])],T),T})();t.StringArrayCallsWrapperCodeHelper=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=void 0,t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n const str = String(input).replace(/=+$/, '');\n let output = '';\n for (\n let bc = 0, bs, buffer, idx = 0;\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 })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=void 0,t.Rc4Template=function(){return"\n const rc4 = function (str, key) {\n let s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (let 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 let i;\n \t \n\t for (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 (let 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e,t){const r=e.getRandomString(6),o=e.getRandomString(6),n=e.getRandomString(6),i=e.getRandomString(6),a=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),l=e.getRandomString(6);return`\n const StatesClass = function (${r}) {\n this.${r} = ${r};\n this.${o} = [1, 0, 0];\n this.${n} = 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 const regExp = new RegExp(this.${i} + this.${a});\n const expression = regExp.test(this.${n}.toString())\n ? --this.${o}[1]\n : --this.${o}[0];\n \n return this.${c}(expression);\n };\n \n StatesClass.prototype.${c} = function (${l}) {\n if (!Boolean(~${l})) {\n return ${l};\n }\n \n return this.${d}(this.${r});\n };\n\n StatesClass.prototype.${d} = function (${r}) {\n for (let i = 0, len = this.${o}.length; i < len; i++) {\n this.${o}.push(Math.round(Math.random()));\n len = this.${o}.length;\n }\n \n return ${r}(this.${o}[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).${s}();\n `}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeTemplate=void 0,t.StringArrayBase64DecodeTemplate=function(e){const t=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.${r} = function (str) {\n const string = atob(str);\n let newStringChars = [];\n \n for (let 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}.${o} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n const cachedValue = {stringArrayCallsWrapperName}.${o}[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.${r}(value);\n {stringArrayCallsWrapperName}.${o}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=void 0,t.StringArrayCallsWrapperTemplate=function(){return"\n const {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n let value = {stringArrayName}[index];\n \n {decodeCodeHelperTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRC4DecodeTemplate=void 0,t.StringArrayRC4DecodeTemplate=function(e){const t=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6),n=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.${r} = rc4;\n \n {stringArrayCallsWrapperName}.${o} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n const cachedValue = {stringArrayCallsWrapperName}.${o}[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.${n} === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.${n} = true;\n }\n \n value = {stringArrayCallsWrapperName}.${r}(value, key);\n {stringArrayCallsWrapperName}.${o}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(37),m=r(7),g=r(153),h=r(17),y=r(6);let b=(()=>{var e,t,r,b,v,N;let I=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.stringArrayStorage=e,this.stringArrayName=t}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}};return o([m.initializable(),n("design:type","function"==typeof(e=void 0!==p.IStringArrayStorage&&p.IStringArrayStorage)?e:Object)],I.prototype,"stringArrayStorage",void 0),o([m.initializable(),n("design:type",String)],I.prototype,"stringArrayName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?b:Object,"function"==typeof(v=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==u.IOptions&&u.IOptions)?N:Object])],I),I})();t.StringArrayCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=void 0,t.StringArrayTemplate=function(){return"\n const {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(7),g=r(155),h=r(156),y=r(17),b=r(6),v=r(38);let N=(()=>{var e,t,r,N,I,O;let S=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.stringArrayName=e,this.stringArrayRotationAmount=t}getNodeStructure(e){return b.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.identifierNamesGenerator.generateNext(),t=this.identifierNamesGenerator.generateNext(),r=[`^${this.stringArrayName}$`];let o="";return o=this.options.selfDefending?this.customCodeHelperFormatter.formatTemplate(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):`${t}(++${e})`,this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(h.StringArrayRotateFunctionTemplate(),{code:o,timesName:e,whileFunctionName:t,stringArrayName:this.stringArrayName,stringArrayRotationAmount:v.NumberUtils.toHex(this.stringArrayRotationAmount)}),{reservedNames:r})}};return o([m.initializable(),n("design:type",String)],S.prototype,"stringArrayName",void 0),o([m.initializable(),n("design:type",Number)],S.prototype,"stringArrayRotationAmount",void 0),S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(N=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?N:Object,"function"==typeof(I=void 0!==f.IOptions&&f.IOptions)?I:Object,"function"==typeof(O=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?O:Object])],S),S})();t.StringArrayRotateFunctionCodeHelper=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e){return`\n const selfDefendingFunc = function () {\n const object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n let updatedCookie = name + "=" + value;\n let i = 0;\n \n for (let i = 0, len = options.length; i < len; i++) {\n const propName = options[i];\n \n updatedCookie += "; " + propName;\n \n const 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 const matches = document(new RegExp(\n "(?:^|; )" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + "=([^;]*)"\n ));\n \n const 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 const test1 = function () {\n const regExp = new RegExp('${e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0)}');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n let cookie = '';\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=void 0,t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n const {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, {stringArrayRotationAmount});\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customNodesModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(21),s=r(63),c=r(65),d=r(158),l=r(159),u=r(160),f=r(161),p=r(162),m=r(163),g=r(164),h=r(166),y=r(167),b=r(168),v=r(169);t.customNodesModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(l.BinaryExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(u.BlockStatementControlFlowFlatteningNode).whenTargetNamed(a.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(p.CallExpressionControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(m.CallExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.ControlFlowStorageNode).whenTargetNamed(a.ControlFlowCustomNode.ControlFlowStorageNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.LogicalExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.StringLiteralNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(b.StringLiteralControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(f.BlockStatementDeadCodeInjectionNode).whenTargetNamed(s.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(d.ObjectExpressionVariableDeclarationHostNode).whenTargetNamed(c.ObjectExpressionKeysTransformerCustomNode.ObjectExpressionVariableDeclarationHostNode),e(i.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions,i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),e(i.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions)),e(i.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions,i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionVariableDeclarationHostNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(4);let g=(()=>{var e,t,r,g;let h=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.lexicalScopeNode=e,this.properties=t}getNodeStructure(){const e=m.NodeGuards.isProgramNode(this.lexicalScopeNode)?this.identifierNamesGenerator.generateForGlobalScope():this.identifierNamesGenerator.generateForLexicalScope(this.lexicalScopeNode);return[p.NodeFactory.variableDeclarationNode([p.NodeFactory.variableDeclaratorNode(p.NodeFactory.identifierNode(e),p.NodeFactory.objectExpressionNode(this.properties))],"const")]}};return h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.ObjectExpressionVariableDeclarationHostNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let h=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.operator=e}getNodeStructure(){const e=p.NodeFactory.expressionStatementNode(p.NodeFactory.functionExpressionNode([p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")],p.NodeFactory.blockStatementNode([p.NodeFactory.returnStatementNode(p.NodeFactory.binaryExpressionNode(this.operator,p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")))])));return m.NodeUtils.parentizeAst(e),[e]}};return h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.BinaryExpressionFunctionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementControlFlowFlatteningNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(4),h=r(6);let y=(()=>{var e,t,r,y;let b=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}getNodeStructure(){const e=this.randomGenerator.getRandomString(6),t=this.randomGenerator.getRandomString(6),r=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(e),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")]))],"const"),m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.literalNode(0))],"let"),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(e),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(t)),!0),this.shuffledKeys.map((e,t)=>{const r=this.blockStatementBody[e],o=[r];return g.NodeGuards.isReturnStatementNode(r)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(t)),o)})),m.NodeFactory.breakStatement()]))]);return h.NodeUtils.parentizeAst(r),[r]}};return o([f.initializable(),n("design:type",Array)],b.prototype,"blockStatementBody",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"originalKeysIndexesInShuffledArray",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"shuffledKeys",void 0),b=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(y=void 0!==l.IOptions&&l.IOptions)?y:Object])],b),b})();t.BlockStatementControlFlowFlatteningNode=y},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementDeadCodeInjectionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let h=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}getNode(){return this.getNodeStructure()}getNodeStructure(){const e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",o=this.randomGenerator.getRandomString(5),n=t?o:this.randomGenerator.getRandomString(5),[i,a]=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=p.NodeFactory.blockStatementNode([p.NodeFactory.ifStatementNode(p.NodeFactory.binaryExpressionNode(r,p.NodeFactory.literalNode(o),p.NodeFactory.literalNode(n)),i,a)]);return m.NodeUtils.parentizeAst(s),[s]}};return h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.BlockStatementDeadCodeInjectionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let h=(()=>{var e,t,r,h,y;let b=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=o}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee,...this.expressionArguments]));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof ESTree&&ESTree.Expression)?e:Object)],b.prototype,"callee",void 0),o([f.initializable(),n("design:type",String)],b.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],b.prototype,"controlFlowStorageName",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"expressionArguments",void 0),b=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(h=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?h:Object,"function"==typeof(y=void 0!==l.IOptions&&l.IOptions)?y:Object])],b),b})();t.CallExpressionControlFlowStorageCallNode=h},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let h=(()=>{var e,t,r,h;let y=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.expressionArguments=e}getNodeStructure(){const e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length;for(let e=0;e=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowStorageNode=void 0;const a=r(0),s=r(1),c=r(165),d=r(5),l=r(9),u=r(2),f=r(3),p=r(7),m=r(15),g=r(8),h=r(4),y=r(6);let b=(()=>{var e,t,r,b,v;let N=class extends m.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.controlFlowStorage=e}getNodeStructure(){const e=Array.from(this.controlFlowStorage.getStorage()).map(([e,t])=>{const r=t.getNode()[0];if(!h.NodeGuards.isExpressionStatementNode(r))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return g.NodeFactory.propertyNode(g.NodeFactory.identifierNode(e),r.expression)});let t=g.NodeFactory.variableDeclarationNode([g.NodeFactory.variableDeclaratorNode(g.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),g.NodeFactory.objectExpressionNode(e))],"const");return t=y.NodeUtils.parentizeAst(t),[t]}};return o([p.initializable(),n("design:type","function"==typeof(e=void 0!==c.TControlFlowStorage&&c.TControlFlowStorage)?e:Object)],N.prototype,"controlFlowStorage",void 0),N=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperFormatter&&l.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?b:Object,"function"==typeof(v=void 0!==u.IOptions&&u.IOptions)?v:Object])],N),N})();t.ControlFlowStorageNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithOperatorControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let h=(()=>{var e,t,r,h;let y=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=o}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type",String)],y.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],y.prototype,"controlFlowStorageName",void 0),y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(h=void 0!==l.IOptions&&l.IOptions)?h:Object])],y),y})();t.ExpressionWithOperatorControlFlowStorageCallNode=h},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let h=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.operator=e}getNodeStructure(){const e=p.NodeFactory.expressionStatementNode(p.NodeFactory.functionExpressionNode([p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")],p.NodeFactory.blockStatementNode([p.NodeFactory.returnStatementNode(p.NodeFactory.logicalExpressionNode(this.operator,p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")))])));return m.NodeUtils.parentizeAst(e),[e]}};return h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.LogicalExpressionFunctionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let h=(()=>{var e,t,r,h;let y=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type",String)],y.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],y.prototype,"controlFlowStorageName",void 0),y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(h=void 0!==l.IOptions&&l.IOptions)?h:Object])],y),y})();t.StringLiteralControlFlowStorageCallNode=h},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8);let g=(()=>{var e,t,r,g;let h=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.literalValue=e}getNodeStructure(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}};return o([f.initializable(),n("design:type",String)],h.prototype,"literalValue",void 0),h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalizingTransformersModule=void 0;const o=r(0);t.finalizingTransformersModule=new o.ContainerModule(e=>{})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generatorsModule=void 0;const o=r(0),n=r(1),i=r(34),a=r(172),s=r(173),c=r(174);t.generatorsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(a.DictionaryIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(c.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(n.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(){let e=null;return t=>r=>{if(e)return e;let o;switch(r.identifierNamesGenerator){case i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return e=o,o}}())})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DictionaryIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(36),d=r(2),l=r(3),u=r(50),f=r(23);let p=(()=>{var e,t,r,p;let m=e=class extends u.AbstractIdentifierNamesGenerator{constructor(e,t,r){super(e,t),this.arrayUtils=r,this.identifierNamesSet=new Set(this.getInitialIdentifierNames(this.options.identifiersDictionary)),this.identifiersIterator=this.identifierNamesSet.values()}static incrementIdentifierName(e){let t="",r=!1;for(const o of e)r||o!==o.toUpperCase()?r||o!==o.toLowerCase()?t+=o:(t+=o.toUpperCase(),r=!0):t+=o.toLowerCase();return r?t:null}generateNext(){const e=this.generateNewDictionaryName();return this.preserveName(e),e}generateForGlobalScope(){const e=`${this.options.identifiersPrefix?`${this.options.identifiersPrefix}`:""}${this.generateNewDictionaryName()}`;return this.isValidIdentifierName(e)?(this.preserveName(e),e):this.generateForGlobalScope()}generateForLexicalScope(e){const t=[e,...f.NodeLexicalScopeUtils.getLexicalScopes(e)],r=this.generateNewDictionaryName();return this.isValidIdentifierNameInLexicalScopes(r,t)?(this.preserveNameForLexicalScope(r,e),r):this.generateForLexicalScope(e)}generateNewDictionaryName(){if(!this.identifierNamesSet.size)throw new Error("Too many identifiers in the code, add more words to identifiers dictionary");const e=this.identifiersIterator.next();if(!e.done){const t=e.value;return this.isValidIdentifierName(t)?e.value:this.generateNewDictionaryName()}return this.identifierNamesSet=new Set(this.getIncrementedIdentifierNames([...this.identifierNamesSet])),this.identifiersIterator=this.identifierNamesSet.values(),this.generateNewDictionaryName()}getInitialIdentifierNames(e){const t=e.filter(Boolean).map(e=>e.toLowerCase());return this.arrayUtils.shuffle(t)}getIncrementedIdentifierNames(t){const r=[];for(const o of t){const t=e.incrementIdentifierName(o);t&&r.push(t)}return this.arrayUtils.shuffle(r)}};return m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),i(2,a.inject(s.ServiceIdentifiers.IArrayUtils)),n("design:paramtypes",["function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object,"function"==typeof(p=void 0!==c.IArrayUtils&&c.IArrayUtils)?p:Object])],m),m})();t.DictionaryIdentifierNamesGenerator=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.HexadecimalIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(50),u=r(38),f=r(26);let p=(()=>{var e,t,r;let p=e=class extends l.AbstractIdentifierNamesGenerator{constructor(e,t){super(e,t)}generateNext(t){const r=this.randomGenerator.getRandomInteger(1e4,99999999),o=u.NumberUtils.toHex(r),n=f.Utils.hexadecimalPrefix.length,i=(null!=t?t:e.baseIdentifierNameLength)+n,a=`_${o.substr(0,i)}`;return this.isValidIdentifierName(a)?(this.preserveName(a),a):this.generateNext(t)}generateForGlobalScope(e){const t=this.generateNext(e);return`${this.options.identifiersPrefix}${t}`.replace("__","_")}generateForLexicalScope(e,t){return this.generateNext(t)}};return p.baseIdentifierNameLength=6,p=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],p),p})();t.HexadecimalIdentifierNamesGenerator=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MangledIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(50),u=r(23);let f=(()=>{var e,t,r;let f=e=class extends l.AbstractIdentifierNamesGenerator{constructor(t,r){super(t,r),this.previousMangledName=e.initMangledNameCharacter}generateNext(e){const t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,this.preserveName(t),t}generateForGlobalScope(e){const t=this.options.identifiersPrefix?`${this.options.identifiersPrefix}`:"",r=this.generateNewMangledName(this.previousMangledName),o=`${t}${r}`;return this.previousMangledName=r,this.isValidIdentifierName(o)?(this.preserveName(o),o):this.generateForGlobalScope(e)}generateForLexicalScope(t,r){const o=[t,...u.NodeLexicalScopeUtils.getLexicalScopes(t)];let n=this.getLastMangledNameForScopes(o);do{n=this.generateNewMangledName(n)}while(!this.isValidIdentifierNameInLexicalScopes(n,o));return e.lastMangledNameInScopeMap.set(t,n),this.preserveNameForLexicalScope(n,t),n}isValidIdentifierName(t){return super.isValidIdentifierName(t)&&!e.reservedNamesSet.has(t)}generateNewMangledName(t){let r=(t=>{const r=e.nameSequence,o=r.length,n=t.length,i=e=>"0".repeat(e);let a=n-1;do{const e=t[a],s=r.indexOf(e);if(s!==o-1){return t.substring(0,a)+r[s+1]+i(n-(a+1))}--a}while(a>=0);return`a${i(n)}`})(t);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}getLastMangledNameForScopes(t){var r;for(const o of t){const t=null!==(r=e.lastMangledNameInScopeMap.get(o))&&void 0!==r?r:null;if(t)return t}return e.initMangledNameCharacter}};return f.initMangledNameCharacter="9",f.lastMangledNameInScopeMap=new WeakMap,f.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),f.reservedNamesSet=new Set(["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"]),f=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],f),f})();t.MangledIdentifierNamesGenerator=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializingTransformersModule=void 0;const o=r(0),n=r(1),i=r(13),a=r(176);t.initializingTransformersModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.INodeTransformer).to(a.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer)})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommentsTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(10),g=r(11),h=r(68),y=r(4);let b=(()=>{var e,t,r;let o=e=class extends g.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case m.NodeTransformationStage.Initializing:return{leave:e=>{if(y.NodeGuards.isProgramNode(e))return this.transformNode(e)}};default:return null}}transformNode(e){if(!e.comments||!e.comments.length)return e;const t=this.transformComments(e.comments);if(0===t.length)return e;if(!e.body.length)return e.leadingComments=t,e;let r=!0;return u.traverse(e,{enter:o=>{if(o===e)return;const n=t.findIndex(e=>e.range&&o.range&&e.range[0]=0&&((r?e:o).leadingComments=t.splice(n,t.length-n).reverse()),r=!1}}),t.length>0&&(e.trailingComments=t.reverse()),e}transformComments(t){return t.filter(t=>e.preservedWords.some(e=>t.value.includes(e))||h.ConditionalCommentObfuscatingGuard.isConditionalComment(t)).reverse()}};return o.preservedWords=["@license","@preserve"],o=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==f.IOptions&&f.IOptions)?r:Object])],o),o})();t.CommentsTransformer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeModule=void 0;const o=r(0),n=r(1),i=r(178);t.nodeModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IScopeIdentifiersTraverser).to(i.ScopeIdentifiersTraverser).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIdentifiersTraverser=void 0;const a=r(0),s=r(1),c=r(179),d=r(4);let l=(()=>{var e,t;let r=e=class{constructor(e){this.scopeAnalyzer=e}traverse(e,t,r){this.scopeAnalyzer.analyze(e);const o=this.scopeAnalyzer.acquireScope(e);this.traverseScopeVariables(o,o,r)}traverseScopeVariables(t,r,o){const n=r.variableScope,i=d.NodeGuards.isNodeWithBlockLexicalScope(n.block)?n.block:null,a=e.globalScopeNames.includes(n.type);if(i){for(const s of r.variables){if(s.name===e.argumentsVariableName)continue;o({isGlobalDeclaration:a,isBubblingDeclaration:s.identifiers.some(e=>e.parentNode&&d.NodeGuards.isPropertyNode(e.parentNode)&&e.parentNode.shorthand),rootScope:t,variable:s,variableScope:n,variableLexicalScopeNode:i})}for(const e of r.childScopes)this.traverseScopeVariables(t,e,o)}}};return r.argumentsVariableName="arguments",r.globalScopeNames=["global","module"],r=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IScopeAnalyzer)),n("design:paramtypes",["function"==typeof(t=void 0!==c.IScopeAnalyzer&&c.IScopeAnalyzer)?t:Object])],r),r})();t.ScopeIdentifiersTraverser=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(181);t.nodeTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Factory__INodeTransformer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.INodeTransformer)),e(i.ServiceIdentifiers.INodeTransformerNamesGroupsBuilder).to(a.NodeTransformerNamesGroupsBuilder).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformerNamesGroupsBuilder=void 0;const n=r(0),i=r(56);let a=(()=>{let e=class extends i.AbstractTransformerNamesGroupsBuilder{};return e=o([n.injectable()],e),e})();t.NodeTransformerNamesGroupsBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.obfuscatingTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(39),s=r(69),c=r(13),d=r(183),l=r(184),u=r(185),f=r(186),p=r(188),m=r(189),g=r(190);t.obfuscatingTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(u.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(g.ScopeIdentifiersTransformer).whenTargetNamed(c.NodeTransformer.ScopeIdentifiersTransformer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(l.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(p.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(m.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(a.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(i.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IObfuscatingReplacer)),e(i.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseIdentifierObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(5),d=r(2),l=r(40),u=r(8);let f=(()=>{var e,t;let r=class extends l.AbstractObfuscatingReplacer{constructor(e,t){super(t),this.blockScopesMap=new Map,this.identifierNamesGenerator=e(t)}replace(e,t){let r=e.name;if(this.blockScopesMap.has(t)){const e=this.blockScopesMap.get(t);e.has(r)&&(r=e.get(r))}return u.NodeFactory.identifierNode(r)}storeGlobalName(e,t){const r=e.name;if(this.isReservedName(r))return;const o=this.identifierNamesGenerator.generateForGlobalScope();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(r,o)}storeLocalName(e,t){const r=e.name;if(this.isReservedName(r))return;const o=this.identifierNamesGenerator.generateForLexicalScope(t);this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(r,o)}preserveName(e){this.identifierNamesGenerator.preserveName(e.name)}preserveNameForLexicalScope(e,t){this.identifierNamesGenerator.preserveNameForLexicalScope(e.name,t)}isReservedName(e){return!!this.options.reservedNames.length&&this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.IOptions&&d.IOptions)?t:Object])],r),r})();t.BaseIdentifierObfuscatingReplacer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(40),l=r(8);let u=(()=>{var e,t;let r=e=class extends d.AbstractObfuscatingReplacer{constructor(e){super(e)}static getTrueUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",e.getFalseUnaryExpressionNode())}static getFalseUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",l.NodeFactory.arrayExpressionNode())}replace(t){const r=t.value;if("boolean"!=typeof r)throw new Error("`BooleanLiteralObfuscatingReplacer` should accept only literals with `boolean` value");return r?e.getTrueUnaryExpressionNode():e.getFalseUnaryExpressionNode()}};return r=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.BooleanLiteralObfuscatingReplacer=u},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LabeledStatementTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(51),p=r(2),m=r(3),g=r(39),h=r(10),y=r(11),b=r(4),v=r(23);let N=(()=>{var e,t,r;let o=class extends y.AbstractNodeTransformer{constructor(e,t,r){super(t,r),this.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}getVisitor(e){switch(e){case h.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&b.NodeGuards.isLabeledStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}storeLabeledStatementName(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label,t)}replaceLabeledStatementName(e,t){u.replace(e,{enter:(e,r)=>{if(r&&b.NodeGuards.isLabelIdentifierNode(e,r)){const r=this.identifierObfuscatingReplacer.replace(e,t);e.name=r.name}}})}};return o=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TIdentifierObfuscatingReplacerFactory&&f.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==p.IOptions&&p.IOptions)?r:Object])],o),o})();t.LabeledStatementTransformer=N},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralTransformer=void 0;const a=r(0),s=r(1),c=r(187),d=r(33),l=r(2),u=r(3),f=r(70),p=r(69),m=r(10),g=r(11),h=r(8),y=r(4),b=r(45),v=r(19),N=r(6);let I=(()=>{var e,t,r,I,O;let S=class extends g.AbstractNodeTransformer{constructor(e,t,r,o,n){super(t,r),this.literalObfuscatingReplacerFactory=e,this.stringArrayStorageAnalyzer=o,this.escapeSequenceEncoder=n}getVisitor(e){switch(e){case m.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(y.NodeGuards.isProgramNode(e)&&this.analyzeNode(e),t&&y.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return this.transformNode(e,t)}};case m.NodeTransformationStage.Finalizing:return{enter:(e,t)=>{if(t&&y.NodeGuards.isLiteralNode(e))return this.encodeLiteralNodeToEscapeSequence(e,t)}};default:return null}}analyzeNode(e){this.stringArrayStorageAnalyzer.analyze(e)}transformNode(e,t){if(b.NodeLiteralUtils.isProhibitedLiteralNode(e,t))return e;let r;switch(typeof e.value){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e);break;case"number":case"bigint":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e);break;default:r=e}return N.NodeUtils.parentizeNode(r,t),r}encodeLiteralNodeToEscapeSequence(e,t){return"string"!=typeof e.value?e:h.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e.value,this.options.unicodeEscapeSequence))}};return S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IObfuscatingReplacer)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),i(3,a.inject(s.ServiceIdentifiers.IStringArrayStorageAnalyzer)),i(4,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TLiteralObfuscatingReplacerFactory&&c.TLiteralObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==l.IOptions&&l.IOptions)?r:Object,"function"==typeof(I=void 0!==f.IStringArrayStorageAnalyzer&&f.IStringArrayStorageAnalyzer)?I:Object,"function"==typeof(O=void 0!==d.IEscapeSequenceEncoder&&d.IEscapeSequenceEncoder)?O:Object])],S),S})();t.LiteralTransformer=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(40),l=r(8),u=r(38);let f=(()=>{var e;let t=class extends d.AbstractObfuscatingReplacer{constructor(e){super(e),this.numberLiteralCache=new Map}replace(e){const t=e.value;if("number"!=typeof t&&"bigint"!=typeof t)throw new Error("`NumberLiteralObfuscatingReplacer` should accept only literals with `number` and `bigint` value");let r;return this.numberLiteralCache.has(t)?r=this.numberLiteralCache.get(t):(r=u.NumberUtils.isCeil(t)?u.NumberUtils.toHex(t):String(t),this.numberLiteralCache.set(t,r)),l.NodeFactory.literalNode(t,r)}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IOptions&&c.IOptions)?e:Object])],t),t})();t.NumberLiteralObfuscatingReplacer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(37),l=r(70),u=r(28),f=r(40),p=r(19),m=r(8),g=r(38);let h=(()=>{var e,t,r,h;let y=e=class extends f.AbstractObfuscatingReplacer{constructor(e,t,r){super(r),this.nodesCache=new Map,this.stringArrayStorage=e,this.stringArrayStorageAnalyzer=t}static getHexadecimalLiteralNode(e){const t=m.NodeFactory.literalNode(e);return p.NodeMetadata.set(t,{replacedLiteral:!0}),t}static getRc4KeyLiteralNode(e){const t=m.NodeFactory.literalNode(e);return p.NodeMetadata.set(t,{replacedLiteral:!0}),t}initialize(){this.options.shuffleStringArray&&this.stringArrayStorage.shuffleStorage(),this.options.rotateStringArray&&this.stringArrayStorage.rotateStorage()}replace(e){const t=e.value;if("string"!=typeof t)throw new Error("`StringLiteralObfuscatingReplacer` should accept only literals with `string` value");const r=this.stringArrayStorageAnalyzer.getItemDataForLiteralNode(e),o=`${t}-${Boolean(r)}`;if(this.nodesCache.has(o)&&this.options.stringArrayEncoding!==u.StringArrayEncoding.Rc4)return this.nodesCache.get(o);const n=r?this.replaceWithStringArrayCallNode(r):this.replaceWithLiteralNode(t);return this.nodesCache.set(o,n),n}replaceWithLiteralNode(e){return m.NodeFactory.literalNode(e)}replaceWithStringArrayCallNode(t){const{index:r,decodeKey:o}=t,n=g.NumberUtils.toHex(r),i=[e.getHexadecimalLiteralNode(n)];o&&i.push(e.getRc4KeyLiteralNode(o));const a=m.NodeFactory.identifierNode(this.stringArrayStorage.getStorageCallsWrapperName());return m.NodeFactory.callExpressionNode(a,i)}};return o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],y.prototype,"initialize",null),y=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IStringArrayStorage)),i(1,a.inject(s.ServiceIdentifiers.IStringArrayStorageAnalyzer)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IStringArrayStorage&&d.IStringArrayStorage)?t:Object,"function"==typeof(r=void 0!==l.IStringArrayStorageAnalyzer&&l.IStringArrayStorageAnalyzer)?r:Object,"function"==typeof(h=void 0!==c.IOptions&&c.IOptions)?h:Object])],y),y})();t.StringLiteralObfuscatingReplacer=h},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIdentifiersTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(51),p=r(2),m=r(3),g=r(71),h=r(39),y=r(10),b=r(11),v=r(4),N=r(19);let I=(()=>{var e,t,r,o;let n=class extends b.AbstractNodeTransformer{constructor(e,t,r,o){super(t,r),this.lexicalScopesWithObjectPatternWithoutDeclarationMap=new Map,this.identifierObfuscatingReplacer=e(h.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),this.scopeIdentifiersTraverser=o}getVisitor(e){switch(e){case y.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&v.NodeGuards.isProgramNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return this.scopeIdentifiersTraverser.traverse(e,t,e=>{const{isGlobalDeclaration:t,variable:r,variableLexicalScopeNode:o}=e;if(!this.options.renameGlobals&&t){if(!r.defs.every(e=>"ImportBinding"===e.type||"CatchClause"===e.type))return}this.transformScopeVariableIdentifiers(r,o,t)}),e}transformScopeVariableIdentifiers(e,t,r){var o;const n=null!==(o=e.identifiers[0])&&void 0!==o?o:null;n&&this.isReplaceableIdentifierNode(n,t,e)&&(this.storeIdentifierName(n,t,r),this.replaceIdentifierName(n,t,e))}storeIdentifierName(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e,t):this.identifierObfuscatingReplacer.storeLocalName(e,t)}replaceIdentifierName(e,t,r){const o=this.identifierObfuscatingReplacer.replace(e,t);r.identifiers.forEach(e=>{e.name=o.name}),r.references.forEach(t=>{t.identifier.name=e.name})}isReplaceableIdentifierNode(e,t,r){const o=e.parentNode;return!(!o||N.NodeMetadata.isIgnoredNode(e)||this.isProhibitedPropertyNode(e,o)||this.isProhibitedClassDeclarationNameIdentifierNode(r,e,o)||this.isProhibitedExportNamedClassDeclarationIdentifierNode(e,o)||this.isProhibitedExportNamedFunctionDeclarationIdentifierNode(e,o)||this.isProhibitedExportNamedVariableDeclarationIdentifierNode(e,o)||this.isProhibitedImportSpecifierNode(e,o)||this.isProhibitedVariableNameUsedInObjectPatternNode(r,e,t)||v.NodeGuards.isLabelIdentifierNode(e,o))}isProhibitedClassDeclarationNameIdentifierNode(e,t,r){return v.NodeGuards.isClassDeclarationNode(e.scope.block)&&v.NodeGuards.isClassDeclarationNode(r)&&r.id===t}isProhibitedExportNamedClassDeclarationIdentifierNode(e,t){return v.NodeGuards.isClassDeclarationNode(t)&&t.id===e&&!!t.parentNode&&v.NodeGuards.isExportNamedDeclarationNode(t.parentNode)}isProhibitedExportNamedFunctionDeclarationIdentifierNode(e,t){return v.NodeGuards.isFunctionDeclarationNode(t)&&t.id===e&&!!t.parentNode&&v.NodeGuards.isExportNamedDeclarationNode(t.parentNode)}isProhibitedExportNamedVariableDeclarationIdentifierNode(e,t){return v.NodeGuards.isVariableDeclaratorNode(t)&&t.id===e&&!!t.parentNode&&v.NodeGuards.isVariableDeclarationNode(t.parentNode)&&!!t.parentNode.parentNode&&v.NodeGuards.isExportNamedDeclarationNode(t.parentNode.parentNode)}isProhibitedImportSpecifierNode(e,t){return v.NodeGuards.isImportSpecifierNode(t)&&t.imported.name===t.local.name}isProhibitedPropertyNode(e,t){const r=v.NodeGuards.isPropertyNode(t)&&!t.computed&&t.key===e,o=v.NodeGuards.isAssignmentPatternNode(t)&&t.left===e&&!!t.parentNode&&v.NodeGuards.isPropertyNode(t.parentNode)&&t.left===t.parentNode.key;return r||o}isProhibitedVariableNameUsedInObjectPatternNode(e,t,r){let o=this.lexicalScopesWithObjectPatternWithoutDeclarationMap.get(r);if(!1===o)return!1;if(!e.defs.some(e=>"var"===e.kind))return!1;let n=!1;return u.traverse(r,{enter:(e,r)=>{if(v.NodeGuards.isObjectPatternNode(e)&&r&&v.NodeGuards.isAssignmentExpressionNode(r)){o=!0;const r=e.properties;for(const e of r)if(v.NodeGuards.isPropertyNode(e)&&!e.computed&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)&&t.name===e.key.name)return n=!0,u.VisitorOption.Break}}}),this.lexicalScopesWithObjectPatternWithoutDeclarationMap.set(r,null!=o&&o),n}};return n=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),c(3,d.inject(l.ServiceIdentifiers.IScopeIdentifiersTraverser)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TIdentifierObfuscatingReplacerFactory&&f.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==p.IOptions&&p.IOptions)?r:Object,"function"==typeof(o=void 0!==g.IScopeIdentifiersTraverser&&g.IScopeIdentifiersTraverser)?o:Object])],n),n})();t.ScopeIdentifiersTransformer=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optionsModule=void 0;const o=r(0),n=r(1),i=r(192),a=r(199);t.optionsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IOptions).to(i.Options).inSingletonScope(),e(n.ServiceIdentifiers.IOptionsNormalizer).to(a.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Options=void 0;const a=r(31),s=r(0),c=r(1),d=r(72),l=r(193),u=r(194),f=r(195),p=r(34),m=r(24),g=r(32),h=r(28),y=r(41),b=r(196),v=r(197);let N=(()=>{var e,t,r,N,I,O,S;let C=e=class{constructor(t,r){Object.assign(this,y.DEFAULT_PRESET,t);const o=d.validateSync(this,e.validatorOptions);if(o.length)throw new ReferenceError(`Validation failed. errors:\n${b.ValidationErrorsFormatter.format(o)}`);Object.assign(this,r.normalize(this))}};return C.validatorOptions={validationError:{target:!1}},o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"compact",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"controlFlowFlattening",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),n("design:type",Number)],C.prototype,"controlFlowFlatteningThreshold",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"deadCodeInjection",void 0),o([d.IsNumber(),n("design:type",Number)],C.prototype,"deadCodeInjectionThreshold",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"debugProtection",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"debugProtectionInterval",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"disableConsoleOutput",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),v.IsAllowedForObfuscationTargets([m.ObfuscationTarget.Browser,m.ObfuscationTarget.BrowserNoEval]),n("design:type",Array)],C.prototype,"domainLock",void 0),o([d.IsIn([p.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator,p.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,p.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),n("design:type","function"==typeof(t=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?t:Object)],C.prototype,"identifierNamesGenerator",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"identifiersPrefix",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),d.ValidateIf(e=>e.identifierNamesGenerator===p.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),d.ArrayNotEmpty(),n("design:type",Array)],C.prototype,"identifiersDictionary",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"inputFileName",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"log",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"renameGlobals",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),n("design:type",Array)],C.prototype,"reservedNames",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),n("design:type",Array)],C.prototype,"reservedStrings",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"rotateStringArray",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"selfDefending",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"shuffleStringArray",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.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}),n("design:type",String)],C.prototype,"sourceMapBaseUrl",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"sourceMapFileName",void 0),o([d.IsIn([g.SourceMapMode.Inline,g.SourceMapMode.Separate]),n("design:type","function"==typeof(r=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?r:Object)],C.prototype,"sourceMapMode",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"splitStrings",void 0),o([d.IsNumber(),d.ValidateIf(e=>Boolean(e.splitStrings)),d.Min(1),n("design:type",Number)],C.prototype,"splitStringsChunkLength",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"stringArray",void 0),o([d.IsIn([!0,!1,h.StringArrayEncoding.Base64,h.StringArrayEncoding.Rc4]),n("design:type","function"==typeof(N=void 0!==u.TStringArrayEncoding&&u.TStringArrayEncoding)?N:Object)],C.prototype,"stringArrayEncoding",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),n("design:type",Number)],C.prototype,"stringArrayThreshold",void 0),o([d.IsIn([m.ObfuscationTarget.Browser,m.ObfuscationTarget.BrowserNoEval,m.ObfuscationTarget.Node]),n("design:type","function"==typeof(I=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?I:Object)],C.prototype,"target",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"transformObjectKeys",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"unicodeEscapeSequence",void 0),C=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.TInputOptions)),i(1,s.inject(c.ServiceIdentifiers.IOptionsNormalizer)),n("design:paramtypes",["function"==typeof(O=void 0!==l.TInputOptions&&l.TInputOptions)?O:Object,"function"==typeof(S=void 0!==f.IOptionsNormalizer&&f.IOptionsNormalizer)?S:Object])],C),C})();t.Options=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationErrorsFormatter=void 0;class o{static format(e){return e.reduce((e,t)=>[...e,o.formatWithNestedConstraints(t)],[]).join("\n")}static formatWithNestedConstraints(e){const t=e.constraints;return t?`${`\`${e.property}\` errors:\n`}${Object.keys(t).map(e=>` - ${t[e]}\n`).join()}`:`\`${e.property}\` error\n`}}t.ValidationErrorsFormatter=o},function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IsAllowedForObfuscationTargets=void 0;const n=r(72),i=o(r(198)),a=r(42),s=r(41);t.IsAllowedForObfuscationTargets=function(e,t){return(r,o)=>{n.registerDecorator({propertyName:o,constraints:[e],name:"IsAllowedForObfuscationTargets",options:t,target:r.constructor,validator:{validate(t,r){const n=r.object,a=s.DEFAULT_PRESET[o];return i.default(t,a)||e.includes(n.target)},defaultMessage:t=>`This option allowed only for obfuscation targets: ${e.join(`${a.StringSeparator.Comma} `)}`}})}}},function(e,t){e.exports=require("fast-deep-equal")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsNormalizer=void 0;const n=r(0),i=r(200),a=r(201),s=r(202),c=r(203),d=r(204),l=r(205),u=r(206),f=r(207),p=r(208),m=r(209),g=r(210),h=r(211),y=r(212);let b=(()=>{var e;let t=e=class{normalize(t){let r=Object.assign({},t);for(const t of e.normalizerRules)r=t(r);return r}};return t.normalizerRules=[i.ControlFlowFlatteningThresholdRule,a.DeadCodeInjectionRule,s.DeadCodeInjectionThresholdRule,c.DomainLockRule,d.InputFileNameRule,l.SeedRule,u.SelfDefendingRule,f.SourceMapBaseUrlRule,p.SourceMapFileNameRule,m.SplitStringsChunkLengthRule,g.StringArrayRule,h.StringArrayEncodingRule,y.StringArrayThresholdRule],t=e=o([n.injectable()],t),t})();t.OptionsNormalizer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=void 0,t.ControlFlowFlatteningThresholdRule=e=>(0===e.controlFlowFlatteningThreshold&&(e=Object.assign(Object.assign({},e),{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionRule=void 0;const o=r(41);t.DeadCodeInjectionRule=e=>(e.deadCodeInjection&&((e=Object.assign(Object.assign({},e),{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign(Object.assign({},e),{stringArray:!0,stringArrayThreshold:o.DEFAULT_PRESET.stringArrayThreshold}))),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=void 0,t.DeadCodeInjectionThresholdRule=e=>(0===e.deadCodeInjectionThreshold&&(e=Object.assign(Object.assign({},e),{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockRule=void 0;const o=r(26);t.DomainLockRule=e=>{if(e.domainLock.length){const t=[];for(const r of e.domainLock)t.push(o.Utils.extractDomainFrom(r));e=Object.assign(Object.assign({},e),{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=void 0;const o=r(42);t.InputFileNameRule=e=>{let{inputFileName:t}=e;return t&&(t=t.replace(/^\/+/,"").split(o.StringSeparator.Dot).slice(0,-1).join(o.StringSeparator.Dot)||t,e=Object.assign(Object.assign({},e),{inputFileName:`${t}.js`})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeedRule=void 0,t.SeedRule=e=>{if(e.seed)return Object.assign(Object.assign({},e),{seed:e.seed});return Object.assign(Object.assign({},e),{seed:(t=0,r=999999999,Math.floor(Math.random()*(r-t+1)+t))});var t,r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=void 0,t.SelfDefendingRule=e=>(e.selfDefending&&(e=Object.assign(Object.assign({},e),{compact:!0,selfDefending:!0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=void 0,t.SourceMapBaseUrlRule=e=>{const{sourceMapBaseUrl:t}=e;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign(Object.assign({},e),{sourceMapBaseUrl:`${t}/`})),e):e=Object.assign(Object.assign({},e),{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=void 0;const o=r(42);t.SourceMapFileNameRule=e=>{let{sourceMapFileName:t}=e;if(t){t=t.replace(/^\/+/,"").replace(/(?:\.js)?(?:\.map)?$/,"");let r=t.split(o.StringSeparator.Dot);const n=r.length,i=r[n-1];n>1&&i.length<=3&&(r=r.slice(0,-1)),t=r.join(o.StringSeparator.Dot),e=Object.assign(Object.assign({},e),{sourceMapFileName:`${t}.js.map`})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitStringsChunkLengthRule=void 0,t.SplitStringsChunkLengthRule=e=>e=0===e.splitStringsChunkLength?Object.assign(Object.assign({},e),{splitStrings:!1,splitStringsChunkLength:0}):Object.assign(Object.assign({},e),{splitStringsChunkLength:Math.floor(e.splitStringsChunkLength)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=void 0,t.StringArrayRule=e=>(e.stringArray||(e=Object.assign(Object.assign({},e),{rotateStringArray:!1,shuffleStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncodingRule=void 0;const o=r(28);t.StringArrayEncodingRule=e=>(!0===e.stringArrayEncoding&&(e=Object.assign(Object.assign({},e),{stringArrayEncoding:o.StringArrayEncoding.Base64})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=void 0,t.StringArrayThresholdRule=e=>(0===e.stringArrayThreshold&&(e=Object.assign(Object.assign({},e),{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preparingTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(13),s=r(73),c=r(214),d=r(68),l=r(215),u=r(219),f=r(221),p=r(222),m=r(224),g=r(225),h=r(226);t.preparingTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(l.CustomCodeHelpersTransformer).whenTargetNamed(a.NodeTransformer.CustomCodeHelpersTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.EvalCallExpressionTransformer).whenTargetNamed(a.NodeTransformer.EvalCallExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.MetadataTransformer).whenTargetNamed(a.NodeTransformer.MetadataTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.ObfuscatingGuardsTransformer).whenTargetNamed(a.NodeTransformer.ObfuscatingGuardsTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(m.ParentificationTransformer).whenTargetNamed(a.NodeTransformer.ParentificationTransformer),e(i.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListObfuscatingGuard),e(i.ServiceIdentifiers.INodeGuard).to(d.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentObfuscatingGuard),e(i.ServiceIdentifiers.INodeGuard).to(g.ReservedStringObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ReservedStringObfuscatingGuard),e(i.ServiceIdentifiers.INodeTransformer).to(h.VariablePreserveTransformer).whenTargetNamed(a.NodeTransformer.VariablePreserveTransformer),e(i.ServiceIdentifiers.Factory__INodeGuard).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BlackListObfuscatingGuard=void 0;const i=r(0),a=r(4);let s=(()=>{var e;let t=e=class{constructor(){this.blackListGuardsLength=e.blackListGuards.length}check(t){for(let r=0;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelpersTransformer=void 0;const a=r(0),s=r(1),c=r(216),d=r(217),l=r(2),u=r(3),f=r(218),p=r(67),m=r(13),g=r(25),h=r(10),y=r(11),b=r(4);let v=(()=>{var e,t,r,v,N,I;let O=class extends y.AbstractNodeTransformer{constructor(e,t,r,o,n,i){super(n,i),this.runAfter=[m.NodeTransformer.ParentificationTransformer,m.NodeTransformer.VariablePreserveTransformer],this.callsGraphData=[],this.callsGraphAnalyzer=e,this.prevailingKindOfVariablesAnalyzer=t,this.obfuscationEventEmitter=r,this.customCodeHelperGroupStorage=o}getVisitor(e){switch(e){case h.NodeTransformationStage.Preparing:return{leave:(e,t)=>{if(b.NodeGuards.isProgramNode(e))return this.analyzeNode(e,t),this.appendCustomNodesBeforeObfuscation(e,t),this.transformNode(e,t)}};case h.NodeTransformationStage.Finalizing:return{leave:(e,t)=>{b.NodeGuards.isProgramNode(e)&&this.appendCustomNodesAfterObfuscation(e,t)}};default:return null}}analyzeNode(e,t){this.callsGraphData=this.callsGraphAnalyzer.analyze(e),this.prevailingKindOfVariablesAnalyzer.analyze(e)}transformNode(e,t){return e}appendCustomNodesBeforeObfuscation(e,t){this.customCodeHelperGroupStorage.getStorage().forEach(e=>{e.initialize(),this.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendNodes.bind(e))}),this.obfuscationEventEmitter.emit(g.ObfuscationEvent.BeforeObfuscation,e,this.callsGraphData)}appendCustomNodesAfterObfuscation(e,t){this.obfuscationEventEmitter.emit(g.ObfuscationEvent.AfterObfuscation,e,this.callsGraphData)}};return O=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ICallsGraphAnalyzer)),i(1,a.inject(s.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),i(2,a.inject(s.ServiceIdentifiers.IObfuscationEventEmitter)),i(3,a.inject(s.ServiceIdentifiers.TCustomNodeGroupStorage)),i(4,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(5,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==f.ICallsGraphAnalyzer&&f.ICallsGraphAnalyzer)?e:Object,"function"==typeof(t=void 0!==p.IPrevailingKindOfVariablesAnalyzer&&p.IPrevailingKindOfVariablesAnalyzer)?t:Object,"function"==typeof(r=void 0!==d.IObfuscationEventEmitter&&d.IObfuscationEventEmitter)?r:Object,"function"==typeof(v=void 0!==c.TCustomCodeHelperGroupStorage&&c.TCustomCodeHelperGroupStorage)?v:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(I=void 0!==l.IOptions&&l.IOptions)?I:Object])],O),O})();t.CustomCodeHelpersTransformer=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvalCallExpressionTransformer=void 0;const s=r(0),c=r(1),d=a(r(220)),l=r(2),u=r(3),f=r(13),p=r(10),m=r(11),g=r(8),h=r(4),y=r(6);let b=(()=>{var e,t,r;let a=e=class extends m.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[f.NodeTransformer.ParentificationTransformer,f.NodeTransformer.VariablePreserveTransformer],this.evalRootAstHostNodeSet=new Set}static extractEvalStringFromCallExpressionArgument(t){return h.NodeGuards.isLiteralNode(t)?e.extractEvalStringFromLiteralNode(t):h.NodeGuards.isTemplateLiteralNode(t)?e.extractEvalStringFromTemplateLiteralNode(t):null}static extractEvalStringFromLiteralNode(e){return"string"==typeof e.value?e.value:null}static extractEvalStringFromTemplateLiteralNode(e){const t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:return{enter:(e,t)=>{if(t&&h.NodeGuards.isCallExpressionNode(e)&&h.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return this.transformNode(e,t)}};case p.NodeTransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:(e,t)=>{if(t&&this.isEvalRootAstHostNode(e))return this.restoreNode(e,t)}}:null;default:return null}}transformNode(t,r){const o=t.arguments[0];if(!o)return t;const n=e.extractEvalStringFromCallExpressionArgument(o);if(!n)return t;let i;try{i=y.NodeUtils.convertCodeToStructure(n)}catch(e){return t}const a=g.NodeFactory.functionExpressionNode([],g.NodeFactory.blockStatementNode(i));return y.NodeUtils.parentizeAst(a),y.NodeUtils.parentizeNode(a,r),this.evalRootAstHostNodeSet.add(a),a}restoreNode(e,t){const r=e.body.body,o=y.NodeUtils.convertStructureToCode(r);return g.NodeFactory.callExpressionNode(g.NodeFactory.identifierNode("eval"),[g.NodeFactory.literalNode(d.default(o))])}isEvalRootAstHostNode(e){return h.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}};return a=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i(1,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==l.IOptions&&l.IOptions)?r:Object])],a),a})();t.EvalCallExpressionTransformer=b},function(e,t){e.exports=require("js-string-escape")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(13),u=r(10),f=r(11),p=r(4),m=r(19);let g=(()=>{var e,t;let r=class extends f.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[l.NodeTransformer.ParentificationTransformer,l.NodeTransformer.VariablePreserveTransformer]}getVisitor(e){switch(e){case u.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){return m.NodeMetadata.set(e,{ignoredNode:!1}),p.NodeGuards.isLiteralNode(e)&&m.NodeMetadata.set(e,{replacedLiteral:!1}),e}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.MetadataTransformer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatingGuardsTransformer=void 0;const a=r(0),s=r(1),c=r(223),d=r(2),l=r(3),u=r(13),f=r(73),p=r(10),m=r(11),g=r(4),h=r(19);let y=(()=>{var e,t,r,y;let b=e=class extends m.AbstractNodeTransformer{constructor(t,r,o){super(r,o),this.runAfter=[u.NodeTransformer.ParentificationTransformer,u.NodeTransformer.VariablePreserveTransformer],this.obfuscatingGuards=e.obfuscatingGuardsList.map(t)}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){const r=this.obfuscatingGuards.every(t=>t.check(e));return h.NodeMetadata.set(e,{ignoredNode:!(g.NodeGuards.isProgramNode(e)||r)}),e}};return b.obfuscatingGuardsList=[f.ObfuscatingGuard.BlackListObfuscatingGuard,f.ObfuscatingGuard.ConditionalCommentObfuscatingGuard,f.ObfuscatingGuard.ReservedStringObfuscatingGuard],b=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__INodeGuard)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TObfuscatingGuardFactory&&c.TObfuscatingGuardFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(y=void 0!==d.IOptions&&d.IOptions)?y:Object])],b),b})();t.ObfuscatingGuardsTransformer=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParentificationTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(6);let p=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){return f.NodeUtils.parentizeNode(e,t)}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ParentificationTransformer=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReservedStringObfuscatingGuard=void 0;const a=r(0),s=r(2),c=r(1),d=r(4);let l=(()=>{var e;let t=class{constructor(e){this.options=e}check(e){return!this.options.reservedStrings.length||!d.NodeGuards.isLiteralNode(e)||"string"!=typeof e.value||!this.isReservedString(e.value)}isReservedString(e){return this.options.reservedStrings.some(t=>null!==new RegExp(t,"g").exec(e))}};return t=o([a.injectable(),i(0,a.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==s.IOptions&&s.IOptions)?e:Object])],t),t})();t.ReservedStringObfuscatingGuard=l},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariablePreserveTransformer=void 0;const a=r(0),s=r(51),c=r(2),d=r(3),l=r(71),u=r(13),f=r(1),p=r(10),m=r(11),g=r(39),h=r(4);let y=(()=>{var e,t,r,y;let b=class extends m.AbstractNodeTransformer{constructor(e,t,r,o){super(t,r),this.runAfter=[u.NodeTransformer.ParentificationTransformer],this.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),this.scopeIdentifiersTraverser=o,this.preserveScopeVariableIdentifiers=this.preserveScopeVariableIdentifiers.bind(this)}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:case p.NodeTransformationStage.Converting:case p.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&h.NodeGuards.isProgramNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return this.scopeIdentifiersTraverser.traverse(e,t,this.preserveScopeVariableIdentifiers),e}preserveScopeVariableIdentifiers(e){const{isGlobalDeclaration:t,isBubblingDeclaration:r,variable:o,variableScope:n}=e;for(const e of o.identifiers)t||r?this.preserveIdentifierNameForRootLexicalScope(e):this.preserveIdentifierNameForLexicalScope(e,n)}preserveIdentifierNameForRootLexicalScope(e){this.identifierObfuscatingReplacer.preserveName(e)}preserveIdentifierNameForLexicalScope(e,t){const r=h.NodeGuards.isNodeWithLexicalScope(t.block)?t.block:null;r&&this.identifierObfuscatingReplacer.preserveNameForLexicalScope(e,r)}};return b=o([a.injectable(),i(0,a.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),i(1,a.inject(f.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(f.ServiceIdentifiers.IOptions)),i(3,a.inject(f.ServiceIdentifiers.IScopeIdentifiersTraverser)),n("design:paramtypes",["function"==typeof(e=void 0!==s.TIdentifierObfuscatingReplacerFactory&&s.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object,"function"==typeof(y=void 0!==l.IScopeIdentifiersTraverser&&l.IScopeIdentifiersTraverser)?y:Object])],b),b})();t.VariablePreserveTransformer=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storagesModule=void 0;const o=r(0),n=r(1),i=r(228),a=r(229),s=r(231);t.storagesModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.TCustomNodeGroupStorage).to(a.CustomCodeHelperGroupStorage).inSingletonScope(),e(n.ServiceIdentifiers.IStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(n.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(i.ControlFlowStorage),e(n.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(e=>()=>{const t=new(e.container.get(n.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(n.ServiceIdentifiers.IRandomGenerator),e.container.get(n.ServiceIdentifiers.IOptions));return t.initialize(),t})})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowStorage=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(52);let u=(()=>{var e,t;let r=class extends l.MapStorage{constructor(e,t){super(e,t)}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ControlFlowStorage=u},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperGroupStorage=void 0;const a=r(0),s=r(1),c=r(230),d=r(2),l=r(3),u=r(66),f=r(52);let p=(()=>{var e,t,r,p;let m=e=class extends f.MapStorage{constructor(e,t,r){super(t,r),this.customCodeHelperGroupFactory=e}initialize(){super.initialize(),e.customCodeHelperGroupsList.forEach(e=>{const t=this.customCodeHelperGroupFactory(e);this.storage.set(e,t)})}};return m.customCodeHelperGroupsList=[u.CustomCodeHelperGroup.ConsoleOutput,u.CustomCodeHelperGroup.DebugProtection,u.CustomCodeHelperGroup.DomainLock,u.CustomCodeHelperGroup.SelfDefending,u.CustomCodeHelperGroup.StringArray],o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],m.prototype,"initialize",null),m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelperGroup)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperGroupFactory&&c.TCustomCodeHelperGroupFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(p=void 0!==d.IOptions&&d.IOptions)?p:Object])],m),m})();t.CustomCodeHelperGroupStorage=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayStorage=void 0;const a=r(0),s=r(1),c=r(5),d=r(36),l=r(49),u=r(33),f=r(2),p=r(3),m=r(28),g=r(52);let h=(()=>{var e,t,r,h,y,b,v;let N=e=class extends g.MapStorage{constructor(t,r,o,n,i,a){super(o,n),this.rc4EncodedValuesSourcesCache=new Map,this.rotationAmount=0,this.identifierNamesGenerator=t(n),this.arrayUtils=r,this.cryptUtils=i,this.escapeSequenceEncoder=a,this.rc4Keys=this.randomGenerator.getRandomGenerator().n(()=>this.randomGenerator.getRandomGenerator().string({length:e.rc4KeyLength}),e.rc4KeysCount)}initialize(){super.initialize(),this.rotationAmount=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(e.minimumRotationAmount,e.maximumRotationAmount):0}get(e){return this.getOrSetIfDoesNotExist(e)}getRotationAmount(){return this.rotationAmount}getStorageName(){return this.getStorageId()}getStorageId(){return this.stringArrayStorageName||(this.stringArrayStorageName=this.identifierNamesGenerator.generateForGlobalScope(e.stringArrayNameLength)),this.stringArrayStorageName}getStorageCallsWrapperName(){return this.stringArrayStorageCallsWrapperName||(this.stringArrayStorageCallsWrapperName=this.identifierNamesGenerator.generateForGlobalScope(e.stringArrayNameLength)),this.stringArrayStorageCallsWrapperName}rotateStorage(){this.getLength()&&(this.storage=new Map(this.arrayUtils.rotate(Array.from(this.storage.entries()),this.rotationAmount)))}shuffleStorage(){this.storage=new Map(this.arrayUtils.shuffle(Array.from(this.storage.entries())).map(([e,t],r)=>(t.index=r,[e,t])).sort(([,e],[,t])=>e.index-t.index))}toString(){return Array.from(this.storage.values()).map(e=>`'${this.escapeSequenceEncoder.encode(e.encodedValue,this.options.unicodeEscapeSequence)}'`).toString()}getOrSetIfDoesNotExist(e){const{encodedValue:t,decodeKey:r}=this.getEncodedValue(e),o=this.storage.get(t);if(o)return o;const n={encodedValue:t,decodeKey:r,value:e,index:this.getLength()};return this.storage.set(t,n),n}getEncodedValue(e){var t;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:{const r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),o=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r)),n=null!==(t=this.rc4EncodedValuesSourcesCache.get(o))&&void 0!==t?t:[];let i=n.length;return(!i||!n.includes(e))&&(n.push(e),i++),this.rc4EncodedValuesSourcesCache.set(o,n),i>1?this.getEncodedValue(e):{encodedValue:o,decodeKey:r}}case m.StringArrayEncoding.Base64:{const t=null;return{encodedValue:this.cryptUtils.btoa(e),decodeKey:t}}default:return{encodedValue:e,decodeKey:null}}}};return N.minimumRotationAmount=100,N.maximumRotationAmount=500,N.rc4KeyLength=4,N.rc4KeysCount=50,N.stringArrayNameLength=4,o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],N.prototype,"initialize",null),N=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IArrayUtils)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),i(4,a.inject(s.ServiceIdentifiers.ICryptUtils)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.IArrayUtils&&d.IArrayUtils)?r:Object,"function"==typeof(h=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?h:Object,"function"==typeof(y=void 0!==f.IOptions&&f.IOptions)?y:Object,"function"==typeof(b=void 0!==l.ICryptUtils&&l.ICryptUtils)?b:Object,"function"==typeof(v=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?v:Object])],N),N})();t.StringArrayStorage=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utilsModule=void 0;const o=r(0),n=r(1),i=r(233),a=r(234),s=r(238),c=r(239),d=r(74);t.utilsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IArrayUtils).to(i.ArrayUtils).inSingletonScope(),e(n.ServiceIdentifiers.IRandomGenerator).to(d.RandomGenerator).inSingletonScope(),e(n.ServiceIdentifiers.ICryptUtils).to(a.CryptUtils).inSingletonScope(),e(n.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope(),e(n.ServiceIdentifiers.ILevelledTopologicalSorter).to(c.LevelledTopologicalSorter)})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0;const a=r(0),s=r(1),c=r(3);let d=(()=>{var e;let t=class{constructor(e){this.randomGenerator=e}createWithRange(e){const t=[];for(let r=0;rn&&(o=i,n=e),r[i]=e}return o}rotate(e,t){if(!e.length)throw new ReferenceError("Cannot rotate empty array.");if(t<=0)return e;const r=e;let o;for(;t--;)o=r.pop(),o&&r.unshift(o);return r}shuffle(e){const t=[...e];for(let e=t.length;e;e--){const r=Math.floor(this.randomGenerator.getMathRandom()*e);[t[e-1],t[r]]=[t[r],t[e-1]]}return t}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IRandomGenerator&&c.IRandomGenerator)?e:Object])],t),t})();t.ArrayUtils=d},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CryptUtils=void 0;const a=r(0),s=r(1),c=r(3),d=r(74),l=r(26);let u=(()=>{var e;let t=class{constructor(e){this.randomGenerator=e}btoa(e){let t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(`${l.Utils.hexadecimalPrefix}${t}`,16)));for(let r,o,n=0,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|n)||(i="=",n%1);t+=i.charAt(63&r>>8-n%1*8)){if(o=e.charCodeAt(n+=3/4),o>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|o}return t}hideString(e,t){let r=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp(`[${o=e,o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}]`,"g"),"");var o;const n=r.split("");return this.randomGenerator.getRandomGenerator().shuffle(n),r=n.join(""),[((e,t)=>{let r=-1,o=-1,n="";for(;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceEncoder=void 0;const n=r(0);let i=(()=>{let e=class{constructor(){this.stringsCache=new Map}encode(e,t){const r=`${e}-${String(t)}`;if(this.stringsCache.has(r))return this.stringsCache.get(r);const o=new RegExp("[\\s\\S]","g"),n=new RegExp("['\"\\\\\\s]"),i=new RegExp("[\\x00-\\x7F]");let a,s;const c=e.replace(o,e=>t||n.exec(e)?(i.exec(e)?(a="\\x",s="00"):(a="\\u",s="0000"),`${a}${(s+e.charCodeAt(0).toString(16)).slice(-s.length)}`):e);return this.stringsCache.set(r,c),this.stringsCache.set(`${c}-${String(t)}`,c),c}};return e=o([n.injectable()],e),e})();t.EscapeSequenceEncoder=i},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.LevelledTopologicalSorter=void 0;const n=r(0);let i=(()=>{let e=class{constructor(){this.graph=new Map}add(e,t=null){return null!==t?this.link(e,t):this.register(e)}sort(){const e=Array.from(this.graph.keys()),t=[],r={};for(const o of e)void 0===r[o]&&this.visit(t,r,o);return t}sortByGroups(){this.sort();const e=[];for(;this.hasNodes();){const t=this.findRootNodes();e.push(t);for(const e of t)this.delete(e)}return e}delete(e){if(this.getPrecedents(e).length)throw new Error(`Unable to remove non-root node: ${e}`);this.graph.delete(e);const t=Array.from(this.graph.values());for(const r of t){for(let t=r.length-1;t>=0;t-=1)r[t]===e&&r.splice(t,1)}}findRootNodes(){const e=Array.from(this.graph.keys()),t=[];for(const r of e)this.hasPrecedents(r)||t.push(r);return t}getPrecedents(e){const t=this.graph.get(e);if(!t)throw new Error(`Unknown node: ${e}`);return t}hasNodes(){return this.graph.size>0}hasPrecedents(e){return this.getPrecedents(e).length>0}link(e,t){this.register(e),this.register(t);const r=this.graph.get(t);return r&&!r.includes(e)&&r.push(e),this}register(e){return this.graph.has(e)||this.graph.set(e,[]),this}visit(e,t,r){const o=t[r];if("visiting"===o)throw new Error(`Detected cycle involving node: ${r}`);if(o)return;t[r]="visiting";const n=this.getPrecedents(r);for(const r of n)this.visit(e,t,r);t[r]="ok",e.push(r)}};return e=o([n.injectable()],e),e})();t.LevelledTopologicalSorter=i},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformersRunner=void 0;const a=r(0),s=r(1),c=r(241),d=r(75);let l=(()=>{var e,t;let r=class{constructor(e,t){this.codeTransformerFactory=e,this.codeTransformerNamesGroupsBuilder=t}transform(e,t,r){if(!t.length)return e;const o=this.buildNormalizedCodeTransformers(t,r),n=this.codeTransformerNamesGroupsBuilder.build(o);for(const t of n)for(const n of t){e=o[n].transformCode(e,r)}return e}buildNormalizedCodeTransformers(e,t){return e.reduce((e,t)=>{const r=this.codeTransformerFactory(t);return Object.assign(Object.assign({},e),{[t]:r})},{})}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICodeTransformer)),i(1,a.inject(s.ServiceIdentifiers.ICodeTransformerNamesGroupsBuilder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TCodeTransformerFactory&&c.TCodeTransformerFactory)?e:Object,"function"==typeof(t=void 0!==d.ITransformerNamesGroupsBuilder&&d.ITransformerNamesGroupsBuilder)?t:Object])],r),r})();t.CodeTransformersRunner=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscator=void 0;const d=r(0),l=r(1),u=a(r(47)),f=r(243),p=r(244),m=r(245),g=r(2),h=r(3),y=r(62),b=r(55),v=r(57),N=r(246),I=r(13),O=r(10),S=r(44),C=r(60),j=r(4),_=r(26);let R=(()=>{var e,t,r,o,n,a,R;let F=e=class{constructor(e,t,r,o,n,i){this.codeTransformersRunner=e,this.nodeTransformersRunner=t,this.randomGenerator=r,this.obfuscatedCodeFactory=o,this.logger=n,this.options=i}obfuscate(e){"string"!=typeof e&&(e="");const t=Date.now();this.logger.info(N.LoggingMessage.Version,_.Utils.buildVersionMessage("0.28.3",1590787508551)),this.logger.info(N.LoggingMessage.ObfuscationStarted),this.logger.info(N.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getInputSeed()),e=this.runCodeTransformationStage(e,v.CodeTransformationStage.PreparingTransformers);const r=this.parseCode(e),o=this.transformAstTree(r),n=this.generateCode(e,o);n.code=this.runCodeTransformationStage(n.code,v.CodeTransformationStage.FinalizingTransformers);const i=(Date.now()-t)/1e3;return this.logger.success(N.LoggingMessage.ObfuscationCompleted,i),this.getObfuscatedCode(n)}parseCode(t){return C.ASTParserFacade.parse(t,e.parseOptions)}transformAstTree(e){return e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Initializing),!j.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.ControlFlowFlattening)),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Converting),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Obfuscating),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Finalizing)):(this.logger.warn(N.LoggingMessage.EmptySourceCode),e)}generateCode(t,r){const o=Object.assign({},e.escodegenParams);this.options.sourceMap&&(o.sourceMap=this.options.inputFileName||"sourceMap",o.sourceContent=t);const n=u.generate(r,Object.assign(Object.assign({},o),{format:{compact:this.options.compact}}));return n.map=n.map?n.map.toString():"",n}getObfuscatedCode(e){return this.obfuscatedCodeFactory(e.code,e.map)}runCodeTransformationStage(t,r){return this.logger.info(N.LoggingMessage.CodeTransformationStage,r),this.codeTransformersRunner.transform(t,e.codeTransformersList,r)}runNodeTransformationStage(t,r){return this.logger.info(N.LoggingMessage.NodeTransformationStage,r),this.nodeTransformersRunner.transform(t,e.nodeTransformersList,r)}};return F.parseOptions={ecmaVersion:S.ecmaVersion,allowHashBang:!0,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,locations:!0,ranges:!0},F.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},F.codeTransformersList=[b.CodeTransformer.HashbangOperatorTransformer],F.nodeTransformersList=[I.NodeTransformer.BlockStatementControlFlowTransformer,I.NodeTransformer.CommentsTransformer,I.NodeTransformer.CustomCodeHelpersTransformer,I.NodeTransformer.DeadCodeInjectionTransformer,I.NodeTransformer.EvalCallExpressionTransformer,I.NodeTransformer.FunctionControlFlowTransformer,I.NodeTransformer.LabeledStatementTransformer,I.NodeTransformer.LiteralTransformer,I.NodeTransformer.MemberExpressionTransformer,I.NodeTransformer.MetadataTransformer,I.NodeTransformer.MethodDefinitionTransformer,I.NodeTransformer.ObfuscatingGuardsTransformer,I.NodeTransformer.ObjectExpressionKeysTransformer,I.NodeTransformer.ObjectExpressionTransformer,I.NodeTransformer.ParentificationTransformer,I.NodeTransformer.ScopeIdentifiersTransformer,I.NodeTransformer.SplitStringTransformer,I.NodeTransformer.TemplateLiteralTransformer,I.NodeTransformer.VariablePreserveTransformer],F=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.ICodeTransformersRunner)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformersRunner)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.Factory__IObfuscatedCode)),c(4,d.inject(l.ServiceIdentifiers.ILogger)),c(5,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.ICodeTransformersRunner&&p.ICodeTransformersRunner)?t:Object,"function"==typeof(r=void 0!==y.INodeTransformersRunner&&y.INodeTransformersRunner)?r:Object,"function"==typeof(o=void 0!==h.IRandomGenerator&&h.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==f.TObfuscatedCodeFactory&&f.TObfuscatedCodeFactory)?n:Object,"function"==typeof(a=void 0!==m.ILogger&&m.ILogger)?a:Object,"function"==typeof(R=void 0!==g.IOptions&&g.IOptions)?R:Object])],F),F})();t.JavaScriptObfuscator=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingMessage=void 0,function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.CodeTransformationStage="Code transformation stage: %s...",e.NodeTransformationStage="AST transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformersRunner=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(248),p=r(75),m=r(249),g=r(4),h=r(19);let y=(()=>{var e,t;let r=class{constructor(e,t){this.nodeTransformerFactory=e,this.nodeTransformerNamesGroupsBuilder=t}transform(e,t,r){if(!t.length)return e;const o=this.buildNormalizedNodeTransformers(t,r),n=this.nodeTransformerNamesGroupsBuilder.build(o);for(const t of n){const n=[],i=[];for(const e of t){const t=o[e].getVisitor(r);t&&(t.enter&&n.push({enter:t.enter}),t.leave&&i.push({leave:t.leave}))}(n.length||i.length)&&u.replace(e,{enter:this.mergeVisitorsForDirection(n,m.VisitorDirection.Enter),leave:this.mergeVisitorsForDirection(i,m.VisitorDirection.Leave)})}return e}buildNormalizedNodeTransformers(e,t){return e.reduce((e,r)=>{const o=this.nodeTransformerFactory(r);return o.getVisitor(t)?Object.assign(Object.assign({},e),{[r]:o}):e},{})}mergeVisitorsForDirection(e,t){const r=e.length;return r?(o,n)=>{if(h.NodeMetadata.isIgnoredNode(o))return u.VisitorOption.Skip;for(let i=0;ie}};return r=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__INodeTransformer)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformerNamesGroupsBuilder)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TNodeTransformerFactory&&f.TNodeTransformerFactory)?e:Object,"function"==typeof(t=void 0!==p.ITransformerNamesGroupsBuilder&&p.ITransformerNamesGroupsBuilder)?t:Object])],r),r})();t.NodeTransformersRunner=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisitorDirection=void 0,function(e){e.Enter="enter",e.Leave="leave"}(t.VisitorDirection||(t.VisitorDirection={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationEventEmitter=void 0;const i=r(0),a=n(r(251));i.decorate(i.injectable(),a.default);let s=(()=>{let e=class extends a.default{};return e=o([i.injectable()],e),e})();t.ObfuscationEventEmitter=s},function(e,t){e.exports=require("eventemitter3")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatedCode=void 0;const a=r(0),s=r(1),c=r(49),d=r(7),l=r(32),u=r(2);let f=(()=>{var e,t;let r=class{constructor(e,t){this.cryptUtils=e,this.options=t}initialize(e,t){this.obfuscatedCode=e,this.sourceMap=t}getObfuscatedCode(){return this.correctObfuscatedCode()}getSourceMap(){return this.sourceMap}toString(){return this.obfuscatedCode}correctObfuscatedCode(){if(!this.sourceMap)return this.obfuscatedCode;const e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName;let t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case l.SourceMapMode.Inline:t+=`data:application/json;base64,${this.cryptUtils.btoa(this.sourceMap)}`;break;case l.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return`${this.obfuscatedCode}\n${t}`}};return o([d.initializable(),n("design:type",String)],r.prototype,"obfuscatedCode",void 0),o([d.initializable(),n("design:type",String)],r.prototype,"sourceMap",void 0),r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ICryptUtils)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.ICryptUtils&&c.ICryptUtils)?e:Object,"function"==typeof(t=void 0!==u.IOptions&&u.IOptions)?t:Object])],r),r})();t.ObfuscatedCode=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceCode=void 0;t.SourceCode=class{constructor(e,t){this.sourceCode=e,this.sourceMap=t}getSourceCode(){return this.sourceCode}getSourceMap(){return this.sourceMap}toString(){return this.sourceCode}}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscatorCLI=void 0;const c=a(r(260)),d=a(r(255)),l=r(261),u=r(7),f=r(78),p=r(32),m=r(41),g=r(262),h=r(263),y=r(264),b=r(265),v=r(266),N=r(267),I=r(268),O=r(53),S=r(77),C=r(270),j=r(272),_=r(26);let R=(()=>{var e,t,r,o;class n{constructor(e){this.rawArguments=e,this.arguments=e.slice(2)}static buildOptions(e){const t=n.filterOptions(e),r=e.config,o=r?d.resolve(r,"."):"",i=o?I.CLIUtils.getUserConfig(o):{};return Object.assign(Object.assign(Object.assign({},m.DEFAULT_PRESET),i),t)}static filterOptions(e){const t={};return Object.keys(e).forEach(r=>{void 0!==e[r]&&(t[r]=e[r])}),t}initialize(){this.inputPath=d.normalize(this.arguments[0]||""),this.commands=new c.Command,this.configureCommands(),this.configureHelp(),this.inputCLIOptions=n.buildOptions(this.commands.opts()),this.sourceCodeReader=new j.SourceCodeReader(this.inputPath,this.inputCLIOptions),this.obfuscatedCodeWriter=new C.ObfuscatedCodeWriter(this.inputPath,this.inputCLIOptions)}run(){if(!this.arguments.length||this.arguments.includes("--help"))return void this.commands.outputHelp();const e=this.sourceCodeReader.readSourceCode();this.processSourceCodeData(e)}configureCommands(){this.commands.usage(" [options]").version(_.Utils.buildVersionMessage("0.28.3",1590787508551),"-v, --version").option("-o, --output ","Output path for obfuscated code").option("--compact ","Disable one line output code compacting",h.BooleanSanitizer).option("--config ","Name of js / json config file").option("--control-flow-flattening ","Enables control flow flattening",h.BooleanSanitizer).option("--control-flow-flattening-threshold ","The probability that the control flow flattening transformation will be applied to the node",parseFloat).option("--dead-code-injection ","Enables dead code injection",h.BooleanSanitizer).option("--dead-code-injection-threshold ","The probability that the dead code injection transformation will be applied to the node",parseFloat).option("--debug-protection ","Disable browser Debug panel (can cause DevTools enabled browser freeze)",h.BooleanSanitizer).option("--debug-protection-interval ","Disable browser Debug panel even after page was loaded (can cause DevTools enabled browser freeze)",h.BooleanSanitizer).option("--disable-console-output ","Allow console.log, console.info, console.error and console.warn messages output into browser console",h.BooleanSanitizer).option("--domain-lock (comma separated, without whitespaces)","Blocks the execution of the code in domains that do not match the passed RegExp patterns (comma separated)",g.ArraySanitizer).option("--exclude (comma separated, without whitespaces)","A filename or glob which indicates files to exclude from obfuscation",g.ArraySanitizer).option("--identifier-names-generator ","Sets identifier names generator. Values: hexadecimal, mangled, dictionary. Default: hexadecimal",y.IdentifierNamesGeneratorSanitizer).option("--identifiers-prefix ","Sets prefix for all global identifiers.").option("--identifiers-dictionary (comma separated, without whitespaces)","Identifiers dictionary (comma separated) for `--identifier-names-generator dictionary` option",g.ArraySanitizer).option("--log ","Enables logging of the information to the console",h.BooleanSanitizer).option("--reserved-names (comma separated, without whitespaces)","Disables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated)",g.ArraySanitizer).option("--reserved-strings (comma separated, without whitespaces)","Disables transformation of string literals, which being matched by passed RegExp patterns (comma separated)",g.ArraySanitizer).option("--rename-globals ","Allows to enable obfuscation of global variable and function names with declaration.",h.BooleanSanitizer).option("--rotate-string-array ","Enable rotation of string array values during obfuscation",h.BooleanSanitizer).option("--seed ","Sets seed for random generator. This is useful for creating repeatable results.",parseFloat).option("--self-defending ","Disables self-defending for obfuscated code",h.BooleanSanitizer).option("--shuffle-string-array ","Randomly shuffles string array items",h.BooleanSanitizer).option("--source-map ","Enables source map generation",h.BooleanSanitizer).option("--source-map-base-url ","Sets base url to the source map import url when `--source-map-mode=separate`").option("--source-map-file-name ","Sets file name for output source map when `--source-map-mode=separate`").option("--source-map-mode ","Specify source map output mode. Values: inline, separate. Default: separate",v.SourceMapModeSanitizer).option("--split-strings ","Splits literal strings into chunks with length of `splitStringsChunkLength` option value",h.BooleanSanitizer).option("--split-strings-chunk-length ","Sets chunk length of `splitStrings` option",parseFloat).option("--string-array ","Disables gathering of all literal strings into an array and replacing every literal string with an array call",h.BooleanSanitizer).option("--string-array-encoding ","Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed. Values: true, false, base64, rc4. Default: false",N.StringArrayEncodingSanitizer).option("--string-array-threshold ","The probability that the literal string will be inserted into stringArray (Default: 0.8, Min: 0, Max: 1)",parseFloat).option("--target ","Allows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser",b.ObfuscationTargetSanitizer).option("--transform-object-keys ","Enables transformation of object keys",h.BooleanSanitizer).option("--unicode-escape-sequence ","Allows to enable/disable string conversion to unicode escape sequence",h.BooleanSanitizer).parse(this.rawArguments)}configureHelp(){this.commands.on("--help",()=>{console.log(" Examples:\n"),console.log(" %> javascript-obfuscator input_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_file_name.js --output output_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_directory_name --compact true --self-defending false"),console.log("")})}processSourceCodeData(e){e.forEach(({filePath:e,content:t},r)=>{const o=this.obfuscatedCodeWriter.getOutputCodePath(e);try{S.Logger.log(S.Logger.colorInfo,f.LoggingPrefix.CLI,`Obfuscating file: ${e}...`),this.processSourceCode(t,e,o,r)}catch(t){throw S.Logger.log(S.Logger.colorInfo,f.LoggingPrefix.CLI,`Error in file: ${e}...`),t}})}processSourceCode(e,t,r,o){const n=Object.assign(Object.assign(Object.assign({},this.inputCLIOptions),{inputFileName:d.basename(t)}),null!==o&&{identifiersPrefix:_.Utils.getIdentifiersPrefixForMultipleSources(this.inputCLIOptions.identifiersPrefix,o)});n.sourceMap?this.processSourceCodeWithSourceMap(e,r,n):this.processSourceCodeWithoutSourceMap(e,r,n)}processSourceCodeWithoutSourceMap(e,t,r){const o=O.JavaScriptObfuscator.obfuscate(e,r).getObfuscatedCode();this.obfuscatedCodeWriter.writeFile(t,o)}processSourceCodeWithSourceMap(e,t,r){var o;const n=this.obfuscatedCodeWriter.getOutputSourceMapPath(t,null!==(o=r.sourceMapFileName)&&void 0!==o?o:"");r=Object.assign(Object.assign({},r),{sourceMapFileName:d.basename(n)});const i=O.JavaScriptObfuscator.obfuscate(e,r);this.obfuscatedCodeWriter.writeFile(t,i.getObfuscatedCode()),r.sourceMapMode===p.SourceMapMode.Separate&&i.getSourceMap()&&this.obfuscatedCodeWriter.writeFile(n,i.getSourceMap())}}return n.availableInputExtensions=[".js"],n.encoding="utf8",n.obfuscatedFilePrefix="-obfuscated",i([u.initializable(),s("design:type","function"==typeof(e=void 0!==c&&c.CommanderStatic)?e:Object)],n.prototype,"commands",void 0),i([u.initializable(),s("design:type","function"==typeof(t=void 0!==l.TInputCLIOptions&&l.TInputCLIOptions)?t:Object)],n.prototype,"inputCLIOptions",void 0),i([u.initializable(),s("design:type",String)],n.prototype,"inputPath",void 0),i([u.initializable(),s("design:type","function"==typeof(r=void 0!==j.SourceCodeReader&&j.SourceCodeReader)?r:Object)],n.prototype,"sourceCodeReader",void 0),i([u.initializable(),s("design:type","function"==typeof(o=void 0!==C.ObfuscatedCodeWriter&&C.ObfuscatedCodeWriter)?o:Object)],n.prototype,"obfuscatedCodeWriter",void 0),n})();t.JavaScriptObfuscatorCLI=R},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("fs")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(259);e.exports=o.JavaScriptObfuscatorCLI},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscatorCLI=void 0,r(76);const o=r(254);t.JavaScriptObfuscatorCLI=class{static obfuscate(e){const t=new o.JavaScriptObfuscatorCLI(e);t.initialize(),t.run()}}},function(e,t){e.exports=require("commander")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArraySanitizer=void 0,t.ArraySanitizer=e=>{if(e.endsWith(","))throw new SyntaxError("Multiple values should be wrapped inside quotes: --option-name 'value1','value2'");return e.split(",").map(e=>e.trim())}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanSanitizer=void 0,t.BooleanSanitizer=e=>"true"===e||"1"===e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierNamesGeneratorSanitizer=void 0;const o=r(34);t.IdentifierNamesGeneratorSanitizer=e=>{if(!Object.keys(o.IdentifierNamesGenerator).some(t=>o.IdentifierNamesGenerator[t]===e))throw new ReferenceError("Invalid value of `--identifier-names-generator` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationTargetSanitizer=void 0;const o=r(24);t.ObfuscationTargetSanitizer=e=>{if(!Object.keys(o.ObfuscationTarget).some(t=>o.ObfuscationTarget[t]===e))throw new ReferenceError("Invalid value of `--target` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapModeSanitizer=void 0;const o=r(32);t.SourceMapModeSanitizer=e=>{if(!Object.keys(o.SourceMapMode).some(t=>o.SourceMapMode[t]===e))throw new ReferenceError("Invalid value of `--source-map-mode` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncodingSanitizer=void 0;const o=r(28);t.StringArrayEncodingSanitizer=e=>{switch(e){case"true":case"1":case o.StringArrayEncoding.Base64:return!0;case o.StringArrayEncoding.Rc4:return o.StringArrayEncoding.Rc4;default:return!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CLIUtils=void 0;t.CLIUtils=class{static getUserConfig(e){let t;try{t=r(269)(e)}catch(r){try{t=require(e)}catch(e){throw new ReferenceError("Given config path must be a valid `.js` or `.json` file path")}}return t}}},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=269},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatedCodeWriter=void 0;const a=i(r(256)),s=i(r(271)),c=i(r(255)),d=r(42),l=r(254);t.ObfuscatedCodeWriter=class{constructor(e,t){this.inputPath=e,this.options=t}getOutputCodePath(e){const t=this.options.output?c.normalize(this.options.output):null;if(!t)return c.normalize(e).split(d.StringSeparator.Dot).map((e,t)=>0===t?`${e}${l.JavaScriptObfuscatorCLI.obfuscatedFilePrefix}`:e).join(d.StringSeparator.Dot);const r=a.lstatSync(this.inputPath),o=c.extname(t),n=r.isDirectory(),i=!l.JavaScriptObfuscatorCLI.availableInputExtensions.includes(o);if(n){if(i)return c.join(t,e);throw new Error("Output path for directory obfuscation should be a directory path")}return i?c.join(t,c.basename(e)):t}getOutputSourceMapPath(e,t=""){return t&&(e=`${e.substring(0,e.lastIndexOf("/"))}/${t}`),/\.js\.map$/.test(e)?/\.js$/.test(e)&&(e+=".map"):e=`${e.split(d.StringSeparator.Dot)[0]}.js.map`,e}writeFile(e,t){s.sync(c.dirname(e)),a.writeFileSync(e,t,{encoding:l.JavaScriptObfuscatorCLI.encoding})}}},function(e,t){e.exports=require("mkdirp")},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceCodeReader=void 0;const s=i(r(256)),c=i(r(255)),d=a(r(273)),l=r(254);class u{constructor(e,t){this.inputPath=e,this.options=t}static isExcludedPath(e,t=[]){if(!t.length)return!1;const r=c.basename(e),o=!!d.default([e],t).length;return t.some(t=>e.includes(t)||r.includes(t))||o}static isDirectoryPath(e){try{return s.statSync(e).isDirectory()}catch(e){return!1}}static isFilePath(e){try{return s.statSync(e).isFile()}catch(e){return!1}}static isValidDirectory(e,t=[]){return!u.isExcludedPath(e,t)}static isValidFile(e,t=[]){return l.JavaScriptObfuscatorCLI.availableInputExtensions.includes(c.extname(e))&&!e.includes(l.JavaScriptObfuscatorCLI.obfuscatedFilePrefix)&&!u.isExcludedPath(e,t)}static readFile(e){return{filePath:c.normalize(e),content:s.readFileSync(e,l.JavaScriptObfuscatorCLI.encoding)}}readSourceCode(){if(u.isFilePath(this.inputPath)&&u.isValidFile(this.inputPath,this.options.exclude))return[u.readFile(this.inputPath)];if(u.isDirectoryPath(this.inputPath)&&u.isValidDirectory(this.inputPath,this.options.exclude))return this.readDirectoryRecursive(this.inputPath);const e=l.JavaScriptObfuscatorCLI.availableInputExtensions.map(e=>`\`${e}\``).join(", ");throw new ReferenceError(`Given input path must be a valid ${e} file or directory path`)}readDirectoryRecursive(e,t=[]){return s.readdirSync(e,l.JavaScriptObfuscatorCLI.encoding).forEach(r=>{const o=`${e}/${r}`;if(u.isDirectoryPath(o)&&u.isValidDirectory(o,this.options.exclude))t.push(...this.readDirectoryRecursive(o));else if(u.isFilePath(o)&&u.isValidFile(o,this.options.exclude)){const e=u.readFile(o);t.push(e)}else;}),t}}t.SourceCodeReader=u},function(e,t){e.exports=require("multimatch")}]); +require("source-map-support").install(),module.exports=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=258)}([function(e,t){e.exports=require("inversify")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceIdentifiers=void 0,function(e){e.Factory__ICalleeDataExtractor="Factory",e.Factory__ICodeTransformer="Factory",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomCodeHelper="Factory",e.Factory__ICustomCodeHelperGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscatedCode="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__IObjectExpressionKeysTransformerCustomNode="Factory",e.Factory__IObjectExpressionExtractor="Factory",e.Factory__TControlFlowStorage="Factory",e.IArrayUtils="IArrayUtils",e.ICalleeDataExtractor="ICalleeDataExtractor",e.ICallsGraphAnalyzer="ICallsGraphAnalyzer",e.ICodeTransformer="ICodeTransformer",e.ICodeTransformerNamesGroupsBuilder="ICodeTransformerNamesGroupsBuilder",e.ICodeTransformersRunner="ICodeTransformersRunner",e.ICryptUtils="ICryptUtils",e.ICustomCodeHelper="ICustomCodeHelper",e.ICustomCodeHelperGroup="ICustomCodeHelperGroup",e.IControlFlowReplacer="IControlFlowReplacer",e.ICustomCodeHelperFormatter="ICustomCodeHelperFormatter",e.ICustomCodeHelperObfuscator="ICustomCodeHelperObfuscator",e.IEscapeSequenceEncoder="IEscapeSequenceEncoder",e.IIdentifierNamesGenerator="IIdentifierNamesGenerator",e.IIdentifierObfuscatingReplacer="IIdentifierObfuscatingReplacer",e.IJavaScriptObfuscator="IJavaScriptObfuscator",e.ILevelledTopologicalSorter="ILevelledTopologicalSorter",e.ILogger="ILogger",e.INodeGuard="INodeGuard",e.INodeTransformer="INodeTransformer",e.INodeTransformerNamesGroupsBuilder="INodeTransformerNamesGroupsBuilder",e.IObfuscationEventEmitter="IObfuscationEventEmitter",e.IObfuscatedCode="IObfuscatedCode",e.IOptions="IOptions",e.IOptionsNormalizer="IOptionsNormalizer",e.IObfuscatingReplacer="IObfuscatingReplacer",e.IPrevailingKindOfVariablesAnalyzer="IPrevailingKindOfVariablesAnalyzer",e.IObjectExpressionExtractor="IObjectExpressionExtractor",e.IRandomGenerator="IRandomGenerator",e.IScopeIdentifiersTraverser="IScopeIdentifiersTraverser",e.ISourceCode="ISourceCode",e.IScopeAnalyzer="IScopeAnalyzer",e.IStringArrayStorage="IStringArrayStorage",e.IStringArrayStorageAnalyzer="IStringArrayStorageAnalyzer",e.INodeTransformersRunner="INodeTransformersRunner",e.Newable__ICustomNode="Newable",e.Newable__TControlFlowStorage="Newable",e.TCustomNodeGroupStorage="TCustomNodeGroupStorage",e.TInputOptions="TInputOptions"}(t.ServiceIdentifiers||(t.ServiceIdentifiers={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeGuards=void 0;const o=r(35);let n=(()=>{class e{static isArrayPatternNode(e){return e.type===o.NodeType.ArrayPattern}static isArrowFunctionExpressionNode(e){return e.type===o.NodeType.ArrowFunctionExpression}static isAssignmentExpressionNode(e){return e.type===o.NodeType.AssignmentExpression}static isAssignmentPatternNode(e){return e.type===o.NodeType.AssignmentPattern}static isAwaitExpressionNode(e){return e.type===o.NodeType.AwaitExpression}static isBigIntLiteralNode(t){return e.isLiteralNode(t)&&!!t.bigint}static isBlockStatementNode(e){return e.type===o.NodeType.BlockStatement}static isBreakStatementNode(e){return e.type===o.NodeType.BreakStatement}static isCallExpressionNode(e){return e.type===o.NodeType.CallExpression}static isClassDeclarationNode(e){return e.type===o.NodeType.ClassDeclaration&&null!==e.id}static isContinueStatementNode(e){return e.type===o.NodeType.ContinueStatement}static isDirectiveNode(e){return e.type===o.NodeType.ExpressionStatement&&"directive"in e}static isExportNamedDeclarationNode(e){return e.type===o.NodeType.ExportNamedDeclaration}static isExpressionStatementNode(e){return e.type===o.NodeType.ExpressionStatement&&!("directive"in e)}static isFunctionNode(t){return e.isFunctionDeclarationNode(t)||e.isFunctionExpressionNode(t)||e.isArrowFunctionExpressionNode(t)}static isFunctionDeclarationNode(e){return e.type===o.NodeType.FunctionDeclaration&&null!==e.id}static isFunctionExpressionNode(e){return e.type===o.NodeType.FunctionExpression}static isIdentifierNode(e){return e.type===o.NodeType.Identifier}static isImportDeclarationNode(e){return e.type===o.NodeType.ImportDeclaration}static isImportSpecifierNode(e){return e.type===o.NodeType.ImportSpecifier}static isLabelIdentifierNode(t,r){const o=e.isLabeledStatementNode(r)&&r.label===t,n=e.isContinueStatementNode(r)&&r.label===t,i=e.isBreakStatementNode(r)&&r.label===t;return o||n||i}static isLabeledStatementNode(e){return e.type===o.NodeType.LabeledStatement}static isLiteralNode(e){return e.type===o.NodeType.Literal}static isMemberExpressionNode(e){return e.type===o.NodeType.MemberExpression}static isMethodDefinitionNode(e){return e.type===o.NodeType.MethodDefinition}static isNode(e){return e&&void 0!==!e.type}static isNodeWithLexicalScope(t){return e.isProgramNode(t)||e.isFunctionNode(t)}static isNodeWithBlockLexicalScope(t){return e.isNodeWithLexicalScope(t)||e.isBlockStatementNode(t)}static isNodeWithLexicalScopeStatements(t,r){return e.isProgramNode(t)||e.isBlockStatementNode(t)&&e.nodesWithLexicalStatements.includes(r.type)}static isNodeWithStatements(t){return e.isProgramNode(t)||e.isBlockStatementNode(t)||e.isSwitchCaseNode(t)}static isNodeWithComments(e){return Boolean(e.leadingComments)||Boolean(e.trailingComments)}static isObjectPatternNode(e){return e.type===o.NodeType.ObjectPattern}static isObjectExpressionNode(e){return e.type===o.NodeType.ObjectExpression}static isProgramNode(e){return e.type===o.NodeType.Program}static isPropertyNode(e){return e.type===o.NodeType.Property}static isRestElementNode(e){return e.type===o.NodeType.RestElement}static isReturnStatementNode(e){return e.type===o.NodeType.ReturnStatement}static isSequenceExpressionNode(e){return e.type===o.NodeType.SequenceExpression}static isSuperNode(e){return e.type===o.NodeType.Super}static isSwitchCaseNode(e){return e.type===o.NodeType.SwitchCase}static isTaggedTemplateExpressionNode(e){return e.type===o.NodeType.TaggedTemplateExpression}static isTemplateLiteralNode(e){return e.type===o.NodeType.TemplateLiteral}static isUnaryExpressionNode(e){return e.type===o.NodeType.UnaryExpression}static isUseStrictOperator(t){return e.isDirectiveNode(t)&&"use strict"===t.directive}static isVariableDeclarationNode(e){return e.type===o.NodeType.VariableDeclaration}static isVariableDeclaratorNode(e){return e.type===o.NodeType.VariableDeclarator}static isWhileStatementNode(e){return e.type===o.NodeType.WhileStatement}}return e.nodesWithLexicalStatements=[o.NodeType.ArrowFunctionExpression,o.NodeType.FunctionDeclaration,o.NodeType.FunctionExpression,o.NodeType.MethodDefinition],e})();t.NodeGuards=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeUtils=void 0;const a=i(r(47)),s=i(r(12)),c=r(44),d=r(60),l=r(4),u=r(19);class f{static addXVerbatimPropertyTo(e){return e["x-verbatim-property"]={content:e.raw,precedence:a.Precedence.Primary},e}static clone(e){return f.parentizeAst(f.cloneRecursive(e))}static convertCodeToStructure(e){const t=d.ASTParserFacade.parse(e,{ecmaVersion:c.ecmaVersion,sourceType:"script"});return s.replace(t,{enter:(e,t)=>(f.parentizeNode(e,t),l.NodeGuards.isLiteralNode(e)&&f.addXVerbatimPropertyTo(e),u.NodeMetadata.set(e,{ignoredNode:!1}),e)}),t.body}static convertStructureToCode(e){return e.reduce((e,t)=>e+a.generate(t,{sourceMapWithCode:!0}).code,"")}static getUnaryExpressionArgumentNode(e){return l.NodeGuards.isUnaryExpressionNode(e.argument)?f.getUnaryExpressionArgumentNode(e.argument):e.argument}static parentizeAst(e){var t;const r=null!==(t=e.parentNode)&&void 0!==t?t:null;return s.replace(e,{enter:f.parentizeNode}),r&&(e.parentNode=r),e}static parentizeNode(e,t){return e.parentNode=null!=t?t:e,e}static cloneRecursive(e){if(null===e)return e;const t={};return Object.keys(e).forEach(r=>{if("parentNode"===r)return;const o=e[r];let n;n=null===o||o instanceof RegExp?o:Array.isArray(o)?o.map(f.cloneRecursive):"object"==typeof o?f.cloneRecursive(o):o,t[r]=n}),t}}t.NodeUtils=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializable=void 0;const o={configurable:!0,enumerable:!0};function n(e,t,r){Reflect.hasMetadata(e,r)||Reflect.defineMetadata(e,t,r)}t.initializable=function(e="initialize"){const t=Object.keys(this)[0];return(r,i)=>{const a=r[e];if(!a||"function"!=typeof a)throw new Error(`\`${e}\` method with initialization logic not `+`found. \`@${t}\` decorator requires \`${e}\` method`);return n("_initialized",!1,r),n("_initializablePropertiesSet",new Set,r),n("_wrappedMethodsSet",new Set,r),function(e,t){const r=Object.getOwnPropertyNames(e),n=[t,"constructor"];r.forEach(r=>{var i;const a=Reflect.getMetadata("_initializablePropertiesSet",e),s=Reflect.getMetadata("_wrappedMethodsSet",e);if(n.includes(r)||a.has(r)||s.has(r))return;if("function"!=typeof e[r])return;const c=null!==(i=Object.getOwnPropertyDescriptor(e,r))&&void 0!==i?i:o,d=c.value;Object.defineProperty(e,r,Object.assign(Object.assign({},c),{value(){if(!Reflect.getMetadata("_initialized",this))throw new Error(`Class should be initialized with \`${t}()\` method`);return d.apply(this,arguments)}})),s.add(r)})}(r,e),function(e,t,r){var n;const i=null!==(n=Object.getOwnPropertyDescriptor(e,t))&&void 0!==n?n:o,a=i.value;Object.defineProperty(e,t,Object.assign(Object.assign({},i),{value:function(){Reflect.defineMetadata("_initialized",!0,this);const e=a.apply(this,arguments);return this[r],e}}))}(r,e,i),function(e,t){var r;Reflect.getMetadata("_initializablePropertiesSet",e).add(t);const n=`_${t.toString()}`,i=null!==(r=Object.getOwnPropertyDescriptor(e,n))&&void 0!==r?r:o;return Object.defineProperty(e,t,Object.assign(Object.assign({},i),{get:function(){if(void 0===this[n])throw new Error(`Property \`${t.toString()}\` is not initialized! Initialize it first!`);return this[n]},set:function(e){this[n]=e}})),i}(r,i)}}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeFactory=void 0;const a=i(r(47)),s=r(35);class c{static programNode(e=[]){return{type:s.NodeType.Program,body:e,sourceType:"script",metadata:{ignoredNode:!1}}}static arrayExpressionNode(e=[]){return{type:s.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}static assignmentExpressionNode(e,t,r){return{type:s.NodeType.AssignmentExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static binaryExpressionNode(e,t,r){return{type:s.NodeType.BinaryExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static blockStatementNode(e=[]){return{type:s.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}static breakStatement(e){return{type:s.NodeType.BreakStatement,label:e,metadata:{ignoredNode:!1}}}static callExpressionNode(e,t=[]){return{type:s.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}static continueStatement(e){return{type:s.NodeType.ContinueStatement,label:e,metadata:{ignoredNode:!1}}}static directiveNode(e,t){return{type:s.NodeType.ExpressionStatement,expression:e,directive:t,metadata:{ignoredNode:!1}}}static expressionStatementNode(e){return{type:s.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}static functionDeclarationNode(e,t,r){return{type:s.NodeType.FunctionDeclaration,id:c.identifierNode(e),params:t,body:r,generator:!1,metadata:{ignoredNode:!1}}}static functionExpressionNode(e,t){return{type:s.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}static ifStatementNode(e,t,r){return Object.assign(Object.assign({type:s.NodeType.IfStatement,test:e,consequent:t},r&&{alternate:r}),{metadata:{ignoredNode:!1}})}static identifierNode(e){return{type:s.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}static importDeclarationNode(e,t){return{type:s.NodeType.ImportDeclaration,specifiers:e,source:t,metadata:{ignoredNode:!1}}}static literalNode(e,t){return t=void 0!==t?t:`'${e}'`,{type:s.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:a.Precedence.Primary},metadata:{ignoredNode:!1}}}static logicalExpressionNode(e,t,r){return{type:s.NodeType.LogicalExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static memberExpressionNode(e,t,r=!1){return{type:s.NodeType.MemberExpression,computed:r,object:e,property:t,metadata:{ignoredNode:!1}}}static objectExpressionNode(e){return{type:s.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}static propertyNode(e,t,r=!1){return{type:s.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:r,metadata:{ignoredNode:!1}}}static returnStatementNode(e){return{type:s.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}static switchStatementNode(e,t){return{type:s.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}static switchCaseNode(e,t){return{type:s.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}static unaryExpressionNode(e,t,r=!0){return{type:s.NodeType.UnaryExpression,operator:e,argument:t,prefix:r,metadata:{ignoredNode:!1}}}static updateExpressionNode(e,t){return{type:s.NodeType.UpdateExpression,operator:e,argument:t,prefix:!1,metadata:{ignoredNode:!1}}}static variableDeclarationNode(e=[],t="var"){return{type:s.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}static variableDeclaratorNode(e,t){return{type:s.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}static whileStatementNode(e,t){return{type:s.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}t.NodeFactory=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformationStage=void 0,function(e){e.Initializing="Initializing",e.Preparing="Preparing",e.DeadCodeInjection="DeadCodeInjection",e.ControlFlowFlattening="ControlFlowFlattening",e.Converting="Converting",e.Obfuscating="Obfuscating",e.Finalizing="Finalizing"}(t.NodeTransformationStage||(t.NodeTransformationStage={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractNodeTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3);let l=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractNodeTransformer=l},function(e,t){e.exports=require("estraverse")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformer=void 0,function(e){e.BlockStatementControlFlowTransformer="BlockStatementControlFlowTransformer",e.CommentsTransformer="CommentsTransformer",e.CustomCodeHelpersTransformer="CustomCodeHelpersTransformer",e.DeadCodeInjectionTransformer="DeadCodeInjectionTransformer",e.EvalCallExpressionTransformer="EvalCallExpressionTransformer",e.FunctionControlFlowTransformer="FunctionControlFlowTransformer",e.LabeledStatementTransformer="LabeledStatementTransformer",e.LiteralTransformer="LiteralTransformer",e.MemberExpressionTransformer="MemberExpressionTransformer",e.MetadataTransformer="MetadataTransformer",e.MethodDefinitionTransformer="MethodDefinitionTransformer",e.ObfuscatingGuardsTransformer="ObfuscatingGuardsTransformer",e.ObjectExpressionKeysTransformer="ObjectExpressionKeysTransformer",e.ObjectExpressionTransformer="ObjectExpressionTransformer",e.ParentificationTransformer="ParentificationTransformer",e.ScopeIdentifiersTransformer="ScopeIdentifiersTransformer",e.SplitStringTransformer="SplitStringTransformer",e.TemplateLiteralTransformer="TemplateLiteralTransformer",e.VariablePreserveTransformer="VariablePreserveTransformer"}(t.NodeTransformer||(t.NodeTransformer={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3);let f=(()=>{var e,t,r,f;let p=class{constructor(e,t,r,o){this.cachedNode=null,this.identifierNamesGenerator=e(o),this.customCodeHelperFormatter=t,this.randomGenerator=r,this.options=o}getNode(){return this.cachedNode||(this.cachedNode=this.customCodeHelperFormatter.formatStructure(this.getNodeStructure())),this.cachedNode}};return p=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(f=void 0!==l.IOptions&&l.IOptions)?f:Object])],p),p})();t.AbstractCustomNode=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InversifyContainerFacade=void 0;const o=r(0),n=r(1),i=r(79),a=r(89),s=r(94),c=r(106),d=r(117),l=r(157),u=r(170),f=r(171),p=r(175),m=r(177),g=r(180),h=r(182),y=r(191),b=r(213),v=r(227),N=r(232),I=r(240),O=r(242),S=r(77),C=r(247),j=r(250),_=r(252),R=r(253);t.InversifyContainerFacade=class{constructor(){this.container=new o.Container}static getFactory(e){return t=>r=>t.container.getNamed(e,r)}static getCacheFactory(e){return t=>{const r=new Map;return o=>{if(r.has(o))return r.get(o);const n=t.container.getNamed(e,o);return r.set(o,n),n}}}static getConstructorFactory(e,...t){return r=>{const o=new Map,n=[];return i=>{if(t.forEach((e,t)=>{n[t]||(n[t]=r.container.get(e))}),o.has(i))return new(o.get(i))(...n);const a=r.container.getNamed(e,i);return o.set(i,a),new a(...n)}}}get(e){return this.container.get(e)}getNamed(e,t){return this.container.getNamed(e,t)}load(e,t,r){this.container.bind(n.ServiceIdentifiers.ISourceCode).toDynamicValue(()=>new R.SourceCode(e,t)).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.TInputOptions).toDynamicValue(()=>r).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.ILogger).to(S.Logger).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.IJavaScriptObfuscator).to(O.JavaScriptObfuscator).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.ICodeTransformersRunner).to(I.CodeTransformersRunner).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.INodeTransformersRunner).to(C.NodeTransformersRunner).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.IObfuscatedCode).to(_.ObfuscatedCode),this.container.bind(n.ServiceIdentifiers.Factory__IObfuscatedCode).toFactory(e=>(t,r)=>{const o=e.container.get(n.ServiceIdentifiers.IObfuscatedCode);return o.initialize(t,r),o}),this.container.bind(n.ServiceIdentifiers.IObfuscationEventEmitter).to(j.ObfuscationEventEmitter).inSingletonScope(),this.container.load(i.analyzersModule),this.container.load(a.codeTransformersModule),this.container.load(s.controlFlowTransformersModule),this.container.load(c.convertingTransformersModule),this.container.load(d.customCodeHelpersModule),this.container.load(l.customNodesModule),this.container.load(u.finalizingTransformersModule),this.container.load(f.generatorsModule),this.container.load(p.initializingTransformersModule),this.container.load(m.nodeModule),this.container.load(g.nodeTransformersModule),this.container.load(h.obfuscatingTransformersModule),this.container.load(y.optionsModule),this.container.load(b.preparingTransformersModule),this.container.load(v.storagesModule),this.container.load(N.utilsModule)}unload(){this.container.unbindAll()}}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(125),m=r(126);let g=(()=>{var e,t,r,g,h,y;let b=e=class{constructor(e,t,r,o,n){this.cachedNode=null,this.identifierNamesGenerator=e(n),this.customCodeHelperFormatter=t,this.customCodeHelperObfuscator=r,this.randomGenerator=o,this.options=n}getNode(){if(!this.cachedNode){const e=this.getCodeHelperTemplate();this.cachedNode=this.customCodeHelperFormatter.formatStructure(this.getNodeStructure(e))}return this.cachedNode}getGlobalVariableTemplate(){return this.randomGenerator.getRandomGenerator().pickone(e.globalVariableTemplateFunctions)}getCodeHelperTemplate(){return""}};return b.globalVariableTemplateFunctions=[p.GlobalVariableTemplate1(),m.GlobalVariableTemplate2()],b=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(g=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?g:Object,"function"==typeof(h=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?h:Object,"function"==typeof(y=void 0!==u.IOptions&&u.IOptions)?y:Object])],b),b})();t.AbstractCustomCodeHelper=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStatementUtils=void 0;const o=r(4);class n{static getParentNodeWithStatements(e){return n.getParentNodesWithStatementsRecursive(e,1)[0]}static getParentNodesWithStatements(e){return n.getParentNodesWithStatementsRecursive(e)}static getNextSiblingStatement(e){return n.getSiblingStatementByOffset(e,1)}static getPreviousSiblingStatement(e){return n.getSiblingStatementByOffset(e,-1)}static getRootStatementOfNode(e){if(o.NodeGuards.isProgramNode(e))throw new Error("Unable to find root statement for `Program` node");const t=e.parentNode;if(!t)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithStatements(t)?e:n.getRootStatementOfNode(t)}static getScopeOfNode(e){const t=e.parentNode;if(!t)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithStatements(t)?t:n.getScopeOfNode(t)}static getParentNodesWithStatementsRecursive(e,t=1/0,r=[],i=0){if(r.length>=t)return r;const a=e.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(o.NodeGuards.isProgramNode(e)||o.NodeGuards.isNodeWithLexicalScopeStatements(e,a)&&i>0)&&r.push(e),e!==a?n.getParentNodesWithStatementsRecursive(a,t,r,++i):r}static getSiblingStatementByOffset(e,t){const r=n.getScopeOfNode(e),i=o.NodeGuards.isSwitchCaseNode(r)?r.consequent:r.body,a=i.indexOf(e);return i[a+t]||null}}t.NodeStatementUtils=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeMetadata=void 0;class o{static set(e,t){var r;e.metadata=Object.assign(null!==(r=e.metadata)&&void 0!==r?r:{},t)}static get(e,t){return void 0!==e.metadata?e.metadata[t]:void 0}static isIgnoredNode(e){return!0===o.get(e,"ignoredNode")}static isReplacedLiteral(e){return!0===o.get(e,"replacedLiteral")}}t.NodeMetadata=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowCustomNode=void 0,function(e){e.BinaryExpressionFunctionNode="BinaryExpressionFunctionNode",e.BlockStatementControlFlowFlatteningNode="BlockStatementControlFlowFlatteningNode",e.CallExpressionControlFlowStorageCallNode="CallExpressionControlFlowStorageCallNode",e.CallExpressionFunctionNode="CallExpressionFunctionNode",e.ControlFlowStorageNode="ControlFlowStorageNode",e.ExpressionWithOperatorControlFlowStorageCallNode="ExpressionWithOperatorControlFlowStorageCallNode",e.LogicalExpressionFunctionNode="LogicalExpressionFunctionNode",e.StringLiteralControlFlowStorageCallNode="StringLiteralControlFlowStorageCallNode",e.StringLiteralNode="StringLiteralNode"}(t.ControlFlowCustomNode||(t.ControlFlowCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeAppender=void 0;const o=r(4);class n{static append(e,t){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...n.getScopeStatements(e),...t])}static appendToOptimalBlockScope(e,t,r,o=0){const i=e.length?n.getOptimalBlockScope(e,o):t;n.prepend(i,r)}static getOptimalBlockScope(e,t,r=1/0){const o=e[t];if(r<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return r>1&&o.callsGraph.length?n.getOptimalBlockScope(o.callsGraph,0,--r):o.callee}static insertBefore(e,t,r){const o=n.getScopeStatements(e).indexOf(r);n.insertAtIndex(e,t,o)}static insertAfter(e,t,r){const o=n.getScopeStatements(e).indexOf(r);n.insertAtIndex(e,t,o+1)}static insertAtIndex(e,t,r){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...n.getScopeStatements(e).slice(0,r),...t,...n.getScopeStatements(e).slice(r)])}static prepend(e,t){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...t,...n.getScopeStatements(e)])}static getScopeStatements(e){return o.NodeGuards.isSwitchCaseNode(e)?e.consequent:e.body}static parentizeScopeStatementsBeforeAppend(e,t){return t.forEach(t=>{t.parentNode=e}),t}static setScopeStatements(e,t){o.NodeGuards.isSwitchCaseNode(e)?e.consequent=t:e.body=t}}t.NodeAppender=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeLexicalScopeUtils=void 0;const o=r(4);class n{static getLexicalScope(e){return n.getLexicalScopesRecursive(e,1)[0]}static getLexicalScopes(e){return n.getLexicalScopesRecursive(e)}static getLexicalScopesRecursive(e,t=1/0,r=[],i=0){if(r.length>=t)return r;const a=e.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithLexicalScope(e)&&r.push(e),e!==a?n.getLexicalScopesRecursive(a,t,r,++i):r}}t.NodeLexicalScopeUtils=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationTarget=void 0;const o=r(31);t.ObfuscationTarget=o.MakeEnum({Browser:"browser",BrowserNoEval:"browser-no-eval",Node:"node"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationEvent=void 0,function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=void 0;let o=(()=>{class e{static buildVersionMessage(e,t){if(!e||!t)return"unknown";return`${e}_${new Date(parseInt(t,10)).toISOString()}`}static extractDomainFrom(e){let t;return t=e.includes("://")||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0],t=t.split(":")[0],t}static getIdentifiersPrefixForMultipleSources(t,r){return`${t||e.baseMultipleSourcesIdentifiersPrefix}${r}`}}return e.baseMultipleSourcesIdentifiersPrefix="a",e.hexadecimalPrefix="0x",e})();t.Utils=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelper=void 0,function(e){e.CallsControllerFunction="CallsControllerFunction",e.ConsoleOutputDisable="ConsoleOutputDisable",e.DebugProtectionFunctionCall="DebugProtectionFunctionCall",e.DebugProtectionFunctionInterval="DebugProtectionFunctionInterval",e.DebugProtectionFunction="DebugProtectionFunction",e.DomainLock="DomainLock",e.SelfDefendingUnicode="SelfDefendingUnicode",e.StringArrayCallsWrapper="StringArrayCallsWrapper",e.StringArray="StringArray",e.StringArrayRotateFunction="StringArrayRotateFunction"}(t.CustomCodeHelper||(t.CustomCodeHelper={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncoding=void 0;const o=r(31);t.StringArrayEncoding=o.MakeEnum({Base64:"base64",Rc4:"rc4"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(5),d=r(2),l=r(3);let u=(()=>{var e,t,r;let u=class{constructor(e,t,r){this.identifierNamesGenerator=e(r),this.randomGenerator=t,this.options=r}getAppendEvent(){return this.appendEvent}getCustomCodeHelpers(){return this.customCodeHelpers}appendCustomNodeIfExist(e,t){const r=this.customCodeHelpers.get(e);r&&t(r)}getRandomCallsGraphIndex(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}};return u=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object])],u),u})();t.AbstractCustomCodeHelperGroup=u},function(e,t){e.exports=require("@gradecam/tsenum")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapMode=void 0;const o=r(31);t.SourceMapMode=o.MakeEnum({Inline:"inline",Separate:"separate"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierNamesGenerator=void 0;const o=r(31);t.IdentifierNamesGenerator=o.MakeEnum({DictionaryIdentifierNamesGenerator:"dictionary",HexadecimalIdentifierNamesGenerator:"hexadecimal",MangledIdentifierNamesGenerator:"mangled"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=void 0,function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassDeclaration="ClassDeclaration",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExpressionStatement="ExpressionStatement",e.ForStatement="ForStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MethodDefinition="MethodDefinition",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateLiteral="TemplateLiteral",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement"}(t.NodeType||(t.NodeType={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberUtils=void 0;const o=r(26);t.NumberUtils=class{static toHex(e){const t="number"==typeof e?e.toString(16):`${e.toString(16)}n`;return`${o.Utils.hexadecimalPrefix}${t}`}static isCeil(e){return"number"!=typeof e||e%1==0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierObfuscatingReplacer=void 0,function(e){e.BaseIdentifierObfuscatingReplacer="BaseIdentifierObfuscatingReplacer"}(t.IdentifierObfuscatingReplacer||(t.IdentifierObfuscatingReplacer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2);let d=(()=>{var e;let t=class{constructor(e){this.options=e}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IOptions&&c.IOptions)?e:Object])],t),t})();t.AbstractObfuscatingReplacer=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PRESET=void 0;const o=r(34),n=r(24),i=r(32);t.DEFAULT_PRESET=Object.freeze({compact:!0,config:"",controlFlowFlattening:!1,controlFlowFlatteningThreshold:.75,deadCodeInjection:!1,deadCodeInjectionThreshold:.4,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",identifiersDictionary:[],inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!0,seed:0,selfDefending:!1,shuffleStringArray:!0,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,splitStrings:!1,splitStringsChunkLength:10,stringArray:!0,stringArrayEncoding:!1,stringArrayThreshold:.75,target:n.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringSeparator=void 0,function(e){e.Dot=".",e.Comma=","}(t.StringSeparator||(t.StringSeparator={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCalleeDataExtractor=void 0;const n=r(0);let i=(()=>{let e=class{};return e=o([n.injectable()],e),e})();t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ecmaVersion=void 0,t.ecmaVersion=11},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeLiteralUtils=void 0;const o=r(4);t.NodeLiteralUtils=class{static isProhibitedLiteralNode(e,t){return!(!o.NodeGuards.isPropertyNode(t)||t.computed||t.key!==e)||!!o.NodeGuards.isImportDeclarationNode(t)}}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3);let u=(()=>{var e,t,r,u;let f=e=class{constructor(e,t,r){this.replacerDataByControlFlowStorageId=new Map,this.controlFlowCustomNodeFactory=e,this.randomGenerator=t,this.options=r}static getStorageKeysByIdForCurrentStorage(e,t){let r;return r=e.has(t)?e.get(t):new Map,r}insertCustomNodeToControlFlowStorage(t,r,o,n){const i=r.getStorageId(),a=e.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,i),s=a.get(o);if(this.randomGenerator.getMathRandom(){const t=this.randomGenerator.getRandomString(e);return r.getStorage().has(t)?c(e):t},d=c(5);return a.set(o,[d]),this.replacerDataByControlFlowStorageId.set(i,a),r.set(d,t),d}};return f=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(u=void 0!==d.IOptions&&d.IOptions)?u:Object])],f),f})();t.AbstractControlFlowReplacer=u},function(e,t){e.exports=require("escodegen")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableNoEvalTemplate=void 0,t.GlobalVariableNoEvalTemplate=function(){return"\n const that = (typeof window !== 'undefined'\n ? window\n : (typeof process === 'object' &&\n typeof require === 'function' &&\n typeof global === 'object')\n ? global\n : this);\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(4);let u=(()=>{var e,t;let r=class{constructor(e,t){this.preservedNamesSet=new Set,this.lexicalScopesPreservedNamesMap=new Map,this.randomGenerator=e,this.options=t}generate(e,t){return l.NodeGuards.isProgramNode(e)?this.generateForGlobalScope():this.generateForLexicalScope(e)}preserveName(e){this.preservedNamesSet.add(e)}preserveNameForLexicalScope(e,t){var r;const o=null!==(r=this.lexicalScopesPreservedNamesMap.get(t))&&void 0!==r?r:new Set;o.add(e),this.lexicalScopesPreservedNamesMap.set(t,o)}isValidIdentifierName(e){return this.notReservedName(e)&&!this.preservedNamesSet.has(e)}isValidIdentifierNameInLexicalScopes(e,t){var r;if(!this.isValidIdentifierName(e))return!1;for(const o of t){const t=null!==(r=this.lexicalScopesPreservedNamesMap.get(o))&&void 0!==r?r:null;if(t&&t.has(e))return!1}return!0}notReservedName(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractIdentifierNamesGenerator=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MapStorage=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(7);let u=(()=>{var e,t,r;let u=class{constructor(e,t){this.randomGenerator=e,this.options=t}initialize(){this.storage=new Map,this.storageId=this.randomGenerator.getRandomString(6)}get(e){return this.storage.get(e)}getOrThrow(e){const t=this.get(e);if(!t)throw new Error(`No value found in map storage with key \`${e}\``);return t}getKeyOf(e){for(const[t,r]of this.storage)if(e===r)return t;return null}getLength(){return this.storage.size}getStorage(){return this.storage}getStorageId(){return this.storageId}has(e){return this.storage.has(e)}mergeWith(e,t=!1){this.storage=new Map([...this.storage,...e.getStorage()]),t&&(this.storageId=e.getStorageId())}set(e,t){this.storage.set(e,t)}};return o([l.initializable(),n("design:type",String)],u.prototype,"storageId",void 0),o([l.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],u.prototype,"storage",void 0),o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],u.prototype,"initialize",null),u=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],u),u})();t.MapStorage=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscator=void 0,r(76);const o=r(1),n=r(16),i=r(26);let a=(()=>{class e{static obfuscate(e,t={}){const r=new n.InversifyContainerFacade;r.load(e,"",t);const i=r.get(o.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return r.unload(),i}static obfuscateMultiple(t,r={}){if("object"!=typeof t)throw new Error("Source codes object should be a plain object");return Object.keys(t).reduce((o,n,a)=>{const s=i.Utils.getIdentifiersPrefixForMultipleSources(r.identifiersPrefix,a),c=t[n],d=Object.assign(Object.assign({},r),{identifiersPrefix:s});return Object.assign(Object.assign({},o),{[n]:e.obfuscate(c,d)})},{})}}return e.version=null!=="0.28.3"?"0.28.3":"unknown",e})();t.JavaScriptObfuscator=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CalleeDataExtractor=void 0,function(e){e.FunctionDeclarationCalleeDataExtractor="FunctionDeclarationCalleeDataExtractor",e.FunctionExpressionCalleeDataExtractor="FunctionExpressionCalleeDataExtractor",e.ObjectExpressionCalleeDataExtractor="ObjectExpressionCalleeDataExtractor"}(t.CalleeDataExtractor||(t.CalleeDataExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformer=void 0,function(e){e.HashbangOperatorTransformer="HashbangOperatorTransformer"}(t.CodeTransformer||(t.CodeTransformer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTransformerNamesGroupsBuilder=void 0;const a=r(0),s=r(1),c=r(91);let d=(()=>{var e;let t=class{constructor(e){this.levelledTopologicalSorter=e}build(e){const t=Object.keys(e),r=this.buildTransformersRelationEdges(t,e);for(const[e,t]of r)this.levelledTopologicalSorter.add(e,t);return this.levelledTopologicalSorter.sortByGroups()}buildTransformersRelationEdges(e,t){const r=[];for(const o of e){const e=t[o].runAfter;if(e&&e.length)for(const n of e){void 0===t[n]?r.push([o,null]):r.push([n,o])}else r.push([o,null])}return r}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ILevelledTopologicalSorter)),n("design:paramtypes",["function"==typeof(e=void 0!==c.ILevelledTopologicalSorter&&c.ILevelledTopologicalSorter)?e:Object])],t),t})();t.AbstractTransformerNamesGroupsBuilder=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformationStage=void 0,function(e){e.PreparingTransformers="PreparingTransformers",e.FinalizingTransformers="FinalizingTransformers"}(t.CodeTransformationStage||(t.CodeTransformationStage={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowReplacer=void 0,function(e){e.BinaryExpressionControlFlowReplacer="BinaryExpressionControlFlowReplacer",e.CallExpressionControlFlowReplacer="CallExpressionControlFlowReplacer",e.LogicalExpressionControlFlowReplacer="LogicalExpressionControlFlowReplacer",e.StringLiteralControlFlowReplacer="StringLiteralControlFlowReplacer"}(t.ControlFlowReplacer||(t.ControlFlowReplacer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithOperatorControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r;let m=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}getControlFlowStorageCallNode(e,t,r,o){const n=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);n.initialize(e,t,r,o);const i=n.getNode()[0];if(!i||!p.NodeGuards.isExpressionStatementNode(i))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return i.expression}};return m=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?e:Object,"function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object])],m),m})();t.ExpressionWithOperatorControlFlowReplacer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ASTParserFacade=void 0;const s=i(r(97)),c=a(r(61));let d=(()=>{class e{static parse(t,r){const o=e.sourceTypes.length;for(let n=0;n"),c=`...${n.substring(i,a).replace(/^\s+/,"")}...`;throw new Error(`ERROR at line ${o.line}: ${r}\n${s} ${c}`)}}return e.colorError=c.default.red,e.nearestSymbolsCount=15,e.sourceTypes=["script","module"],e})();t.ASTParserFacade=d},function(e,t){e.exports=require("chalk")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionCustomNode=void 0,function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionExtractor=void 0,function(e){e.BasePropertiesExtractor="BasePropertiesExtractor",e.ObjectExpressionToVariableDeclarationExtractor="ObjectExpressionToVariableDeclarationExtractor"}(t.ObjectExpressionExtractor||(t.ObjectExpressionExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionKeysTransformerCustomNode=void 0,function(e){e.ObjectExpressionVariableDeclarationHostNode="ObjectExpressionVariableDeclarationHostNode"}(t.ObjectExpressionKeysTransformerCustomNode||(t.ObjectExpressionKeysTransformerCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperGroup=void 0,function(e){e.ConsoleOutput="ConsoleOutput",e.DebugProtection="DebugProtection",e.DomainLock="DomainLock",e.SelfDefending="SelfDefending",e.StringArray="StringArray"}(t.CustomCodeHelperGroup||(t.CustomCodeHelperGroup={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionalCommentObfuscatingGuard=void 0;const n=r(0),i=r(4);let a=(()=>{var e;let t=e=class{constructor(){this.obfuscationAllowed=!0}static isConditionalComment(t){return e.obfuscationEnableCommentRegExp.test(t.value)||e.obfuscationDisableCommentRegExp.test(t.value)}check(e){if(!i.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowed;const t=e.leadingComments;return t&&(this.obfuscationAllowed=this.checkComments(t)),this.obfuscationAllowed}checkComments(t){const r=t.length;let o=this.obfuscationAllowed;for(let n=0;n=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RandomGenerator=void 0;const s=r(0),c=r(1),d=a(r(235)),l=r(236),u=r(2),f=r(237),p=r(7);let m=(()=>{var e,t,r,a;let m=e=class{constructor(e,t){this.sourceCode=e,this.options=t}initialize(){this.randomGenerator=new l.Chance(this.getRawSeed())}getMathRandom(){return this.getRandomInteger(0,99999)/1e5}getRandomGenerator(){return this.randomGenerator}getRandomInteger(e,t){return this.getRandomGenerator().integer({min:e,max:t})}getRandomString(t,r=e.randomGeneratorPool){return this.getRandomGenerator().string({length:t,pool:r})}getInputSeed(){return this.options.seed.toString()}getRawSeed(){const e=this.getInputSeed();return`${e}`.split("|").length>1?e:`${e}|${d.default(this.sourceCode.getSourceCode())}`}};return m.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",o([p.initializable(),n("design:type","function"==typeof(t=void 0!==l.Chance&&l.Chance.Chance)?t:Object)],m.prototype,"randomGenerator",void 0),o([s.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],m.prototype,"initialize",null),m=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.ISourceCode)),i(1,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(r=void 0!==f.ISourceCode&&f.ISourceCode)?r:Object,"function"==typeof(a=void 0!==u.IOptions&&u.IOptions)?a:Object])],m),m})();t.RandomGenerator=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const s=r(0),c=r(1),d=a(r(61)),l=r(2),u=r(78);let f=(()=>{var e,t;let r=e=class{constructor(e){this.options=e}static log(e,t,r,o){const n=e(`\n${t} ${r}`);console.log(n,null!=o?o:"")}info(t,r){this.options.log&&e.log(e.colorInfo,u.LoggingPrefix.Base,t,r)}success(t,r){this.options.log&&e.log(e.colorSuccess,u.LoggingPrefix.Base,t,r)}warn(t,r){this.options.log&&e.log(e.colorWarn,u.LoggingPrefix.Base,t,r)}};return r.colorInfo=d.default.cyan,r.colorSuccess=d.default.green,r.colorWarn=d.default.yellow,r=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==l.IOptions&&l.IOptions)?t:Object])],r),r})();t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingPrefix=void 0,function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.analyzersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(54),s=r(80),c=r(82),d=r(83),l=r(84),u=r(85),f=r(86),p=r(88);t.analyzersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.ICallsGraphAnalyzer).to(s.CallsGraphAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer).to(u.PrevailingKindOfVariablesAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IScopeAnalyzer).to(f.ScopeAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IStringArrayStorageAnalyzer).to(p.StringArrayStorageAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.ICalleeDataExtractor).to(c.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(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsGraphAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(81),p=r(54),m=r(4),g=r(18);let h=(()=>{var e,t;let r=e=class{constructor(e){this.calleeDataExtractorFactory=e}static getLimitIndex(t){const r=t-1,o=e.limitThresholdActivationLength-1;let n=r;return r>o&&(n=Math.round(o+r*e.limitThreshold),n>r&&(n=r)),n}analyze(e){return this.analyzeRecursive(e.body)}analyzeRecursive(t){const r=e.getLimitIndex(t.length),o=[],n=t.length;for(let e=0;er);e++){const r=t[e];u.traverse(r,{enter:e=>{if(m.NodeGuards.isCallExpressionNode(e))return r.parentNode!==g.NodeStatementUtils.getParentNodeWithStatements(e)?u.VisitorOption.Skip:void this.analyzeCallExpressionNode(o,t,e)}})}return o}analyzeCallExpressionNode(t,r,o){e.calleeDataExtractorsList.forEach(e=>{const n=this.calleeDataExtractorFactory(e).extract(r,o.callee);n&&t.push(Object.assign(Object.assign({},n),{callsGraph:this.analyzeRecursive(n.callee.body)}))})}};return r.calleeDataExtractorsList=[p.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,p.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,p.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],r.limitThresholdActivationLength=25,r.limitThreshold=.002,r=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TCalleeDataExtractorFactory&&f.TCalleeDataExtractorFactory)?t:Object])],r),r})();t.CallsGraphAnalyzer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionDeclarationCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{let e=class extends d.AbstractCalleeDataExtractor{extract(e,t){if(!l.NodeGuards.isIdentifierNode(t))return null;const r=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}getCalleeBlockStatement(e,t){let r=null;return c.traverse(e,{enter:e=>{if(l.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,c.VisitorOption.Break}}),r}};return e=i([s.injectable()],e),e})();t.FunctionDeclarationCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionExpressionCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{let e=class extends d.AbstractCalleeDataExtractor{extract(e,t){let r=null,o=null;return l.NodeGuards.isIdentifierNode(t)?(r=t.name,o=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)):l.NodeGuards.isFunctionExpressionNode(t)&&(r=null,o=t.body),o?{callee:o,name:r}:null}getCalleeBlockStatement(e,t){let r=null;return c.traverse(e,{enter:(e,o)=>{if(l.NodeGuards.isFunctionExpressionNode(e)&&o&&l.NodeGuards.isVariableDeclaratorNode(o)&&l.NodeGuards.isIdentifierNode(o.id)&&o.id.name===t)return r=e.body,c.VisitorOption.Break}}),r}};return e=i([s.injectable()],e),e})();t.FunctionExpressionCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{var e;let t=e=class extends d.AbstractCalleeDataExtractor{static isValidTargetPropertyNode(e,t){if(!e.key)return!1;const r=l.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,o=l.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||o}extract(e,t){if(!l.NodeGuards.isMemberExpressionNode(t))return null;const r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;const o=r[r.length-1],n=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return n?{callee:n,name:o}:null}createObjectMembersCallsChain(e,t){if(l.NodeGuards.isIdentifierNode(t.property)&&!t.computed)e.unshift(t.property.name);else{if(!l.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return l.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(l.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}getCalleeBlockStatement(e,t){const r=t.shift();if(!r)return null;let o=null;return c.traverse(e,{enter:e=>{if(l.NodeGuards.isVariableDeclaratorNode(e)&&l.NodeGuards.isIdentifierNode(e.id)&&e.init&&l.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===r)return o=this.findCalleeBlockStatement(e.init.properties,t),c.VisitorOption.Break}}),o}findCalleeBlockStatement(t,r){const o=r.shift();if(!o)return null;for(const n of t)if(l.NodeGuards.isPropertyNode(n)&&e.isValidTargetPropertyNode(n,o)){if(l.NodeGuards.isObjectExpressionNode(n.value))return this.findCalleeBlockStatement(n.value.properties,r);if(l.NodeGuards.isFunctionExpressionNode(n.value))return n.value.body}return null}};return t=e=i([s.injectable()],t),t})();t.ObjectExpressionCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrevailingKindOfVariablesAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(36),p=r(4);let m=(()=>{var e,t;let r=e=class{constructor(t){this.prevailingKindOfVariables=e.defaultKindOfVariables,this.arrayUtils=t}analyze(t){var r;const o=[];u.traverse(t,{enter:e=>{p.NodeGuards.isVariableDeclarationNode(e)&&o.push(e.kind)}}),this.prevailingKindOfVariables=null!==(r=this.arrayUtils.findMostOccurringElement(o))&&void 0!==r?r:e.defaultKindOfVariables}getPrevailingKind(){return this.prevailingKindOfVariables}};return r.defaultKindOfVariables="var",r=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IArrayUtils)),s("design:paramtypes",["function"==typeof(t=void 0!==f.IArrayUtils&&f.IArrayUtils)?t:Object])],r),r})();t.PrevailingKindOfVariablesAnalyzer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeAnalyzer=void 0;const s=r(0),c=a(r(87)),d=a(r(12)),l=r(44),u=r(4);let f=(()=>{var e;let t=e=class{constructor(){this.scopeManager=null}static attachMissingRanges(t){d.replace(t,{enter:t=>{var r,o,n,i,a,s;return t.range||(t.range=[null!==(n=null===(o=null===(r=t.parentNode)||void 0===r?void 0:r.range)||void 0===o?void 0:o[0])&&void 0!==n?n:e.emptyRangeValue,null!==(s=null===(a=null===(i=t.parentNode)||void 0===i?void 0:i.range)||void 0===a?void 0:a[1])&&void 0!==s?s:e.emptyRangeValue]),t}})}static isRootNode(e){return u.NodeGuards.isProgramNode(e)||e.parentNode===e}analyze(t){const r=e.sourceTypes.length;e.attachMissingRanges(t);for(let o=0;o{if("class"===e.type&&e.upper){if(!e.variables.length)return;const t=e.variables[0],r=e.upper.variables.find(e=>t.defs.some(e=>"ClassName"===e.type)&&e.name===t.name);null==r||r.references.push(...e.variables[0].references)}});for(const t of e.childScopes)this.sanitizeScopes(t)}};return t.eslintScopeOptions={ecmaVersion:l.ecmaVersion,optimistic:!0},t.sourceTypes=["script","module"],t.emptyRangeValue=0,t=e=i([s.injectable()],t),t})();t.ScopeAnalyzer=f},function(e,t){e.exports=require("eslint-scope")},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayStorageAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(37),g=r(4),h=r(19),y=r(45);let b=(()=>{var e,t,r,o;let n=e=class{constructor(e,t,r){this.stringArrayStorageData=new Map,this.stringArrayStorage=e,this.randomGenerator=t,this.options=r}analyze(e){this.options.stringArray&&u.traverse(e,{enter:(e,t)=>{if(t)return h.NodeMetadata.isIgnoredNode(e)?u.VisitorOption.Skip:void(g.NodeGuards.isLiteralNode(e)&&this.analyzeLiteralNode(e,t))}})}getItemDataForLiteralNode(e){return this.stringArrayStorageData.get(e)}analyzeLiteralNode(e,t){"string"==typeof e.value&&(y.NodeLiteralUtils.isProhibitedLiteralNode(e,t)||this.shouldAddValueToStringArray(e.value)&&this.stringArrayStorageData.set(e,this.stringArrayStorage.getOrThrow(e.value)))}shouldAddValueToStringArray(t){return t.length>=e.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}};return n.minimumLengthForStringArray=3,n=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IStringArrayStorage)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==m.IStringArrayStorage&&m.IStringArrayStorage)?t:Object,"function"==typeof(r=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?r:Object,"function"==typeof(o=void 0!==f.IOptions&&f.IOptions)?o:Object])],n),n})();t.StringArrayStorageAnalyzer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codeTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(55),s=r(90),c=r(92);t.codeTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Factory__ICodeTransformer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.ICodeTransformer)),e(i.ServiceIdentifiers.ICodeTransformerNamesGroupsBuilder).to(s.CodeTransformerNamesGroupsBuilder).inSingletonScope(),e(i.ServiceIdentifiers.ICodeTransformer).to(c.HashbangOperatorTransformer).whenTargetNamed(a.CodeTransformer.HashbangOperatorTransformer)})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformerNamesGroupsBuilder=void 0;const n=r(0),i=r(56);let a=(()=>{let e=class extends i.AbstractTransformerNamesGroupsBuilder{};return e=o([n.injectable()],e),e})();t.CodeTransformerNamesGroupsBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashbangOperatorTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(57),u=r(93);let f=(()=>{var e,t;let r=class extends u.AbstractCodeTransformer{constructor(e,t){super(e,t),this.hashbangOperatorLine=null}transformCode(e,t){switch(t){case l.CodeTransformationStage.PreparingTransformers:return this.removeAndSaveHashbangOperatorLine(e);case l.CodeTransformationStage.FinalizingTransformers:return this.appendSavedHashbangOperatorLine(e);default:return e}}removeAndSaveHashbangOperatorLine(e){return e.replace(/^#!.*$(\r?\n)*/m,e=>(e&&(this.hashbangOperatorLine=e),"")).trim()}appendSavedHashbangOperatorLine(e){var t;return`${null!==(t=this.hashbangOperatorLine)&&void 0!==t?t:""}${e}`}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.HashbangOperatorTransformer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCodeTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3);let l=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractCodeTransformer=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.controlFlowTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(58),s=r(13),c=r(95),d=r(96),l=r(98),u=r(99),f=r(101),p=r(104),m=r(105);t.controlFlowTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(l.CallExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(i.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(59);let p=(()=>{var e,t,r,p;let m=e=class extends f.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){const n=t.operator,i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.BinaryExpressionFunctionNode);i.initialize(n);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a,t.left,t.right)}};return m.usingExistingIdentifierChance=.5,m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(p=void 0!==d.IOptions&&d.IOptions)?p:Object])],m),m})();t.BinaryExpressionControlFlowReplacer=p},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementControlFlowTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(20),p=r(36),m=r(2),g=r(3),h=r(21),y=r(10),b=r(11),v=r(4),N=r(6);let I=(()=>{var e,t,r,o,n;let a=e=class extends b.AbstractNodeTransformer{constructor(e,t,r,o){super(r,o),this.controlFlowCustomNodeFactory=e,this.arrayUtils=t}static isProhibitedStatementNode(e){const t=v.NodeGuards.isBreakStatementNode(e)||v.NodeGuards.isContinueStatementNode(e),r=v.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),o=v.NodeGuards.isClassDeclarationNode(e);return v.NodeGuards.isFunctionDeclarationNode(e)||t||r||o}static canTransformBlockStatementNode(t){let r=!0;return u.traverse(t,{enter:t=>{if(v.NodeGuards.isWhileStatementNode(t))return u.VisitorOption.Skip;e.isProhibitedStatementNode(t)&&(r=!1)}}),t.body.length<=4&&(r=!1),r}getVisitor(e){switch(e){case y.NodeTransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&v.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(t,r){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!e.canTransformBlockStatementNode(t))return t;const o=t.body,n=this.arrayUtils.createWithRange(o.length),i=this.arrayUtils.shuffle(n),a=n.map(e=>i.indexOf(e)),s=this.controlFlowCustomNodeFactory(h.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);s.initialize(o,i,a);const c=s.getNode()[0];return N.NodeUtils.parentizeNode(c,r),c}};return a=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),c(1,d.inject(l.ServiceIdentifiers.IArrayUtils)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TControlFlowCustomNodeFactory&&f.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==p.IArrayUtils&&p.IArrayUtils)?r:Object,"function"==typeof(o=void 0!==g.IRandomGenerator&&g.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==m.IOptions&&m.IOptions)?n:Object])],a),a})();t.BlockStatementControlFlowTransformer=I},function(e,t){e.exports=require("acorn")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r,m;let g=e=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){const n=t.callee;if(!p.NodeGuards.isIdentifierNode(n))return t;const i=String(t.arguments.length),a=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.CallExpressionFunctionNode),s=t.arguments;a.initialize(s);const c=this.insertCustomNodeToControlFlowStorage(a,o,i,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),c,n,s)}getControlFlowStorageCallNode(e,t,r,o){const n=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);n.initialize(e,t,r,o);const i=n.getNode()[0];if(!i||!p.NodeGuards.isExpressionStatementNode(i))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return i.expression}};return g.usingExistingIdentifierChance=.5,g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(m=void 0!==d.IOptions&&d.IOptions)?m:Object])],g),g})();t.CallExpressionControlFlowReplacer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(100),p=r(2),m=r(3),g=r(62),h=r(63),y=r(13),b=r(35),v=r(10),N=r(11),I=r(8),O=r(4),S=r(18),C=r(6);let j=(()=>{var e,t,r,o,n;let a=e=class extends N.AbstractNodeTransformer{constructor(e,t,r,o){super(r,o),this.deadCodeInjectionRootAstHostNodeSet=new Set,this.collectedBlockStatements=[],this.collectedBlockStatementsTotalLength=0,this.deadCodeInjectionCustomNodeFactory=e,this.transformersRunner=t}static isProhibitedNodeInsideCollectedBlockStatement(e){return O.NodeGuards.isBreakStatementNode(e)||O.NodeGuards.isContinueStatementNode(e)||O.NodeGuards.isAwaitExpressionNode(e)||O.NodeGuards.isSuperNode(e)}static isScopeHoistingFunctionDeclaration(e){if(!O.NodeGuards.isFunctionDeclarationNode(e))return!1;const t=S.NodeStatementUtils.getScopeOfNode(e),r=O.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,o=r.indexOf(e);if(0===o)return!1;const n=r.slice(0,o),i=I.NodeFactory.blockStatementNode(n),a=e.id.name;let s=!1;return u.traverse(i,{enter:e=>{if(O.NodeGuards.isIdentifierNode(e)&&e.name===a)return s=!0,u.VisitorOption.Break}}),s}static isValidCollectedBlockStatementNode(t){if(!t.body.length)return!1;let r=0,o=!0;return u.traverse(t,{enter:t=>{if(O.NodeGuards.isBlockStatementNode(t)&&r++,r>e.maxNestedBlockStatementsCount||e.isProhibitedNodeInsideCollectedBlockStatement(t)||e.isScopeHoistingFunctionDeclaration(t))return o=!1,u.VisitorOption.Break}}),o}static isValidWrappedBlockStatementNode(t){if(!t.body.length)return!1;let r=!0;if(u.traverse(t,{enter:t=>{if(e.isScopeHoistingFunctionDeclaration(t))return r=!1,u.VisitorOption.Break}}),!r)return!1;return S.NodeStatementUtils.getParentNodeWithStatements(t).type!==b.NodeType.Program}getVisitor(e){switch(e){case v.NodeTransformationStage.DeadCodeInjection:return{enter:(e,t)=>{if(t&&O.NodeGuards.isProgramNode(e))return this.analyzeNode(e,t),e},leave:(e,t)=>{if(t&&O.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};case v.NodeTransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:(e,t)=>{if(t&&this.isDeadCodeInjectionRootAstHostNode(e))return this.restoreNode(e,t)}}:null;default:return null}}analyzeNode(t,r){u.traverse(t,{enter:t=>{if(!O.NodeGuards.isBlockStatementNode(t))return;const r=C.NodeUtils.clone(t);if(!e.isValidCollectedBlockStatementNode(r))return;const o=this.makeClonedBlockStatementNodeUnique(r);this.collectedBlockStatements.push(o)}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}transformNode(t,r){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!e.isValidWrappedBlockStatementNode(t))return t;const o=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,o),i=this.collectedBlockStatements.splice(n,1)[0];return i===t?t:this.replaceBlockStatementNode(t,i,r)}restoreNode(e,t){const r=e.body[0];if(!O.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}isDeadCodeInjectionRootAstHostNode(e){return O.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}makeClonedBlockStatementNodeUnique(t){const r=I.NodeFactory.programNode([I.NodeFactory.expressionStatementNode(I.NodeFactory.functionExpressionNode([],t))]);return C.NodeUtils.parentizeAst(r),C.NodeUtils.parentizeNode(r,r),this.transformersRunner.transform(r,e.transformersToRenameBlockScopeIdentifiers,v.NodeTransformationStage.Obfuscating),t}replaceBlockStatementNode(t,r,o){const n=I.NodeFactory.blockStatementNode([I.NodeFactory.functionDeclarationNode(e.deadCodeInjectionRootAstHostNodeName,[],r)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);const i=this.deadCodeInjectionCustomNodeFactory(h.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);i.initialize(t,n);const a=i.getNode()[0];return C.NodeUtils.parentizeNode(a,o),a}};return a.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",a.maxNestedBlockStatementsCount=4,a.minCollectedBlockStatementsCount=5,a.transformersToRenameBlockScopeIdentifiers=[y.NodeTransformer.LabeledStatementTransformer,y.NodeTransformer.ScopeIdentifiersTransformer],a=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformersRunner)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TDeadNodeInjectionCustomNodeFactory&&f.TDeadNodeInjectionCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==g.INodeTransformersRunner&&g.INodeTransformersRunner)?r:Object,"function"==typeof(o=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==p.IOptions&&p.IOptions)?n:Object])],a),a})();t.DeadCodeInjectionTransformer=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionControlFlowTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(20),p=r(102),m=r(103),g=r(2),h=r(3),y=r(21),b=r(58),v=r(35),N=r(10),I=r(11),O=r(22),S=r(4),C=r(19),j=r(18),_=r(6);let R=(()=>{var e,t,r,o,n,a;let R=e=class extends I.AbstractNodeTransformer{constructor(e,t,r,o,n){super(o,n),this.controlFlowData=new Map,this.visitedFunctionNodes=new Set,this.hostNodesWithControlFlowNode=new Set,this.controlFlowStorageFactory=e,this.controlFlowReplacerFactory=t,this.controlFlowCustomNodeFactory=r}getVisitor(e){switch(e){case N.NodeTransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&(S.NodeGuards.isFunctionDeclarationNode(e)||S.NodeGuards.isFunctionExpressionNode(e)||S.NodeGuards.isArrowFunctionExpressionNode(e)))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(this.visitedFunctionNodes.add(e),!S.NodeGuards.isBlockStatementNode(e.body))return e;const r=this.getHostNode(e.body),o=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,o),this.transformFunctionBody(e.body,o),!o.getLength())return e;const n=this.controlFlowCustomNodeFactory(y.ControlFlowCustomNode.ControlFlowStorageNode);return n.initialize(o),O.NodeAppender.prepend(r,n.getNode()),this.hostNodesWithControlFlowNode.add(r),_.NodeUtils.parentizeAst(e),e}getControlFlowStorage(e){const t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(S.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());const r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}getHostNode(t){const r=j.NodeStatementUtils.getParentNodesWithStatements(t);return 1===r.length?t:(r.pop(),r.length>e.hostNodeSearchMinDepth&&r.splice(0,e.hostNodeSearchMinDepth),r.length>e.hostNodeSearchMaxDepth&&(r.length=e.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(r))}isVisitedFunctionNode(e){return(S.NodeGuards.isFunctionDeclarationNode(e)||S.NodeGuards.isFunctionExpressionNode(e)||S.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}transformFunctionBody(t,r){u.replace(t,{enter:(t,o)=>{if(C.NodeMetadata.isIgnoredNode(t))return u.VisitorOption.Skip;if(this.isVisitedFunctionNode(t)||!o)return u.VisitorOption.Skip;if(!e.controlFlowReplacersMap.has(t.type))return t;if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold)return t;const n=e.controlFlowReplacersMap.get(t.type);return void 0===n?t:Object.assign(Object.assign({},this.controlFlowReplacerFactory(n).replace(t,o,r)),{parentNode:o})}})}};return R.controlFlowReplacersMap=new Map([[v.NodeType.BinaryExpression,b.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[v.NodeType.CallExpression,b.ControlFlowReplacer.CallExpressionControlFlowReplacer],[v.NodeType.LogicalExpression,b.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[v.NodeType.Literal,b.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),R.hostNodeSearchMinDepth=0,R.hostNodeSearchMaxDepth=2,R=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__TControlFlowStorage)),c(1,d.inject(l.ServiceIdentifiers.Factory__IControlFlowReplacer)),c(2,d.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),c(3,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(4,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==m.TControlFlowStorageFactory&&m.TControlFlowStorageFactory)?t:Object,"function"==typeof(r=void 0!==p.TControlFlowReplacerFactory&&p.TControlFlowReplacerFactory)?r:Object,"function"==typeof(o=void 0!==f.TControlFlowCustomNodeFactory&&f.TControlFlowCustomNodeFactory)?o:Object,"function"==typeof(n=void 0!==h.IRandomGenerator&&h.IRandomGenerator)?n:Object,"function"==typeof(a=void 0!==g.IOptions&&g.IOptions)?a:Object])],R),R})();t.FunctionControlFlowTransformer=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(59),p=r(4),m=r(6);let g=(()=>{var e,t,r,g;let h=e=class extends f.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){if(this.checkForProhibitedExpressions(t.left,t.right))return t;const n=t.operator,i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.LogicalExpressionFunctionNode);i.initialize(n);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a,t.left,t.right)}checkForProhibitedExpressions(e,t){return[e,t].some(e=>{let t;return t=p.NodeGuards.isUnaryExpressionNode(e)?m.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(p.NodeGuards.isLiteralNode(t)||p.NodeGuards.isIdentifierNode(t)||p.NodeGuards.isObjectExpressionNode(t)||p.NodeGuards.isExpressionStatementNode(t))})}};return h.usingExistingIdentifierChance=.5,h=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==d.IOptions&&d.IOptions)?g:Object])],h),h})();t.LogicalExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r,m;let g=e=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){if(p.NodeGuards.isPropertyNode(r)&&r.key===t)return t;if("string"!=typeof t.value||t.value.length<3)return t;const n=String(t.value),i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.StringLiteralNode);i.initialize(t.value);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a)}getControlFlowStorageCallNode(e,t){const r=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);const o=r.getNode()[0];if(!o||!p.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}};return g.usingExistingIdentifierChance=1,g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(m=void 0!==d.IOptions&&d.IOptions)?m:Object])],g),g})();t.StringLiteralControlFlowReplacer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertingTransformersModule=void 0;const o=r(0),n=r(16),i=r(1),a=r(13),s=r(64),c=r(107),d=r(109),l=r(110),u=r(111),f=r(113),p=r(114),m=r(115),g=r(116);t.convertingTransformersModule=new o.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(a.NodeTransformer.MemberExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(l.MethodDefinitionTransformer).whenTargetNamed(a.NodeTransformer.MethodDefinitionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.ObjectExpressionKeysTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionKeysTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.SplitStringTransformer).whenTargetNamed(a.NodeTransformer.SplitStringTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(m.TemplateLiteralTransformer).whenTargetNamed(a.NodeTransformer.TemplateLiteralTransformer),e(i.ServiceIdentifiers.IObjectExpressionExtractor).to(c.ObjectExpressionToVariableDeclarationExtractor).whenTargetNamed(s.ObjectExpressionExtractor.ObjectExpressionToVariableDeclarationExtractor),e(i.ServiceIdentifiers.IObjectExpressionExtractor).to(g.BasePropertiesExtractor).whenTargetNamed(s.ObjectExpressionExtractor.BasePropertiesExtractor),e(i.ServiceIdentifiers.Factory__IObjectExpressionExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IObjectExpressionExtractor))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionToVariableDeclarationExtractor=void 0;const a=r(0),s=r(1),c=r(108),d=r(65),l=r(22),u=r(4),f=r(18),p=r(6),m=r(23);let g=(()=>{var e;let t=class{constructor(e){this.objectExpressionKeysTransformerCustomNodeFactory=e}extract(e,t){return this.transformObjectExpressionToVariableDeclaration(e,t)}transformObjectExpressionToVariableDeclaration(e,t){var r;const o=f.NodeStatementUtils.getScopeOfNode(t),n=u.NodeGuards.isNodeWithLexicalScope(o)?o:null!==(r=m.NodeLexicalScopeUtils.getLexicalScope(o))&&void 0!==r?r:null;if(!n)throw new Error("Cannot find lexical scope node for the host statement node");const i=e.properties,a=this.getObjectExpressionHostNode(n,i),s=[a];return l.NodeAppender.insertBefore(o,s,t),p.NodeUtils.parentizeAst(a),p.NodeUtils.parentizeNode(a,o),{nodeToReplace:this.getObjectExpressionIdentifierNode(a),objectExpressionHostStatement:a,objectExpressionNode:this.getObjectExpressionNode(a)}}getObjectExpressionHostNode(e,t){const r=this.objectExpressionKeysTransformerCustomNodeFactory(d.ObjectExpressionKeysTransformerCustomNode.ObjectExpressionVariableDeclarationHostNode);r.initialize(e,t);const o=r.getNode()[0];if(!o||!u.NodeGuards.isVariableDeclarationNode(o))throw new Error("`objectExpressionHostCustomNode.getNode()[0]` should returns array with `VariableDeclaration` node");return o}getObjectExpressionIdentifierNode(e){const t=e.declarations[0].id;if(!u.NodeGuards.isIdentifierNode(t))throw new Error("`objectExpressionHostNode` should contain `VariableDeclarator` node with `Identifier` id property");return t}getObjectExpressionNode(e){var t;const r=null!==(t=e.declarations[0].init)&&void 0!==t?t:null;if(!r||!u.NodeGuards.isObjectExpressionNode(r))throw new Error("`objectExpressionHostNode` should contain `VariableDeclarator` node with `ObjectExpression` init property");return r}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TObjectExpressionKeysTransformerCustomNodeFactory&&c.TObjectExpressionKeysTransformerCustomNodeFactory)?e:Object])],t),t})();t.ObjectExpressionToVariableDeclarationExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MemberExpressionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Converting:return{enter:(e,t)=>{if(t&&p.NodeGuards.isMemberExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(p.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=f.NodeFactory.literalNode(e.property.name)}return e}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.MemberExpressionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MethodDefinitionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t,r;let m=e=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.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)?this.replaceIdentifierKey(e,e.key):p.NodeGuards.isLiteralNode(e.key)?this.replaceLiteralKey(e,e.key):e}replaceIdentifierKey(t,r){return e.ignoredNames.includes(r.name)||t.computed||(t.computed=!0,t.key=f.NodeFactory.literalNode(r.name)),t}replaceLiteralKey(t,r){return"string"!=typeof r.value||e.ignoredNames.includes(r.value)||t.computed||(t.computed=!0),t}};return m.ignoredNames=["constructor"],m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],m),m})();t.MethodDefinitionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionKeysTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(112),p=r(2),m=r(3),g=r(10),h=r(11),y=r(4),b=r(18),v=r(64);let N=(()=>{var e,t,r,o;let n=e=class extends h.AbstractNodeTransformer{constructor(e,t,r){super(t,r),this.objectExpressionExtractorFactory=e}static isProhibitedHostStatement(t,r){return e.isReferencedIdentifierName(t,r)||e.isProhibitedSequenceExpression(t,r)}static isReferencedIdentifierName(e,t){const r=[];let o=!1,n=!1;return u.traverse(t,{enter:t=>{t===e&&(n=!0),y.NodeGuards.isIdentifierNode(t)&&(n?r.includes(t.name)&&(o=!0):r.push(t.name))},leave:t=>{if(t===e)return n=!1,u.VisitorOption.Break}}),o}static isProhibitedSequenceExpression(e,t){return y.NodeGuards.isExpressionStatementNode(t)&&y.NodeGuards.isSequenceExpressionNode(t.expression)&&t.expression.expressions.some(e=>y.NodeGuards.isCallExpressionNode(e)&&y.NodeGuards.isSuperNode(e.callee))}getVisitor(e){if(!this.options.transformObjectKeys)return null;switch(e){case g.NodeTransformationStage.Converting:return{leave:(e,t)=>{if(t&&y.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(t,r){if(!t.properties.length)return t;const o=b.NodeStatementUtils.getRootStatementOfNode(t);return e.isProhibitedHostStatement(t,o)?t:this.applyObjectExpressionKeysExtractorsRecursive(e.objectExpressionExtractorNames,t,o)}applyObjectExpressionKeysExtractorsRecursive(e,t,r){const o=[...e],n=o.shift();if(!n)return t;const{nodeToReplace:i,objectExpressionHostStatement:a,objectExpressionNode:s}=this.objectExpressionExtractorFactory(n).extract(t,r);return this.applyObjectExpressionKeysExtractorsRecursive(o,s,a),i}};return n.objectExpressionExtractorNames=[v.ObjectExpressionExtractor.ObjectExpressionToVariableDeclarationExtractor,v.ObjectExpressionExtractor.BasePropertiesExtractor],n=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IObjectExpressionExtractor)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TObjectExpressionExtractorFactory&&f.TObjectExpressionExtractorFactory)?t:Object,"function"==typeof(r=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?r:Object,"function"==typeof(o=void 0!==p.IOptions&&p.IOptions)?o:Object])],n),n})();t.ObjectExpressionKeysTransformer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Converting:return{enter:(e,t)=>{if(t&&p.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return e.properties.forEach(e=>{p.NodeGuards.isPropertyNode(e)&&e.key&&(e.computed?this.transformComputedProperty(e):this.transformBaseProperty(e))}),e}transformComputedProperty(e){p.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=f.NodeFactory.literalNode(e.key.value))}transformBaseProperty(e){e.shorthand&&(e.shorthand=!1),p.NodeGuards.isIdentifierNode(e.key)&&(e.key=f.NodeFactory.literalNode(e.key.name))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ObjectExpressionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitStringTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(13),g=r(10),h=r(11),y=r(8),b=r(4),v=r(45),N=r(6);let I=(()=>{var e,t,r;let o=e=class extends h.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[m.NodeTransformer.ObjectExpressionKeysTransformer,m.NodeTransformer.TemplateLiteralTransformer]}static chunkString(e,t){const r=Math.ceil(e.length/t),o=[];let n=0;for(let i=0;i{if(this.options.splitStrings)return t&&b.NodeGuards.isLiteralNode(e)?this.transformNode(e,t):void 0}};default:return null}}transformNode(t,r){if(v.NodeLiteralUtils.isProhibitedLiteralNode(t,r))return t;const o=this.transformLiteralNodeByChunkLength(t,r,e.firstPassChunkLength);return u.replace(o,{enter:(e,t)=>{if(t&&b.NodeGuards.isLiteralNode(e))return this.transformLiteralNodeByChunkLength(e,t,this.options.splitStringsChunkLength)}})}transformLiteralNodeByChunkLength(t,r,o){if("string"!=typeof t.value)return t;if(o>=t.value.length)return t;const n=e.chunkString(t.value,o),i=this.transformStringChunksToBinaryExpressionNode(n);return N.NodeUtils.parentizeAst(i),N.NodeUtils.parentizeNode(i,r),i}transformStringChunksToBinaryExpressionNode(e){const t=e.shift(),r=e.shift();if(!t||!r)throw new Error("First and second chunks values should not be empty");const o=y.NodeFactory.binaryExpressionNode("+",y.NodeFactory.literalNode(t),y.NodeFactory.literalNode(r));return e.reduce((e,t)=>{const r=y.NodeFactory.literalNode(t);return y.NodeFactory.binaryExpressionNode("+",e,r)},o)}};return o.firstPassChunkLength=1e3,o=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==f.IOptions&&f.IOptions)?r:Object])],o),o})();t.SplitStringTransformer=I},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateLiteralTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4),m=r(6);let g=(()=>{var e,t,r;let g=e=class extends u.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(t){switch(t){case l.NodeTransformationStage.Converting:return{enter:(t,r)=>{if(r&&e.isValidTemplateLiteralNode(t,r))return this.transformNode(t,r)}};default:return null}}transformNode(t,r){const o=t.expressions;let n,i=[];if(t.quasis.forEach(e=>{i.push(f.NodeFactory.literalNode(e.value.cooked));const t=o.shift();t&&i.push(t)}),i=i.filter(e=>!(p.NodeGuards.isLiteralNode(e)&&""===e.value)),e.isLiteralNodeWithStringValue(i[0])||e.isLiteralNodeWithStringValue(i[1])||i.unshift(f.NodeFactory.literalNode("")),i.length>1){let e=f.NodeFactory.binaryExpressionNode("+",i.shift(),i.shift());i.forEach(t=>{e=f.NodeFactory.binaryExpressionNode("+",e,t)}),n=e}else n=i[0];return m.NodeUtils.parentizeAst(n),m.NodeUtils.parentizeNode(n,r),n}};return g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],g),g})();t.TemplateLiteralTransformer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.BasePropertiesExtractor=void 0;const n=r(0),i=r(22),a=r(8),s=r(4),c=r(18),d=r(6);let l=(()=>{var e;let t=e=class{static getPropertyNodeKeyName(e){const t=e.key;return!s.NodeGuards.isLiteralNode(t)||"string"!=typeof t.value&&"number"!=typeof t.value?s.NodeGuards.isIdentifierNode(t)?t.name:null:t.value.toString()}static isProhibitedPattern(e){return!e||s.NodeGuards.isObjectPatternNode(e)||s.NodeGuards.isArrayPatternNode(e)||s.NodeGuards.isAssignmentPatternNode(e)||s.NodeGuards.isRestElementNode(e)}extract(e,t){const r=e.parentNode;return r&&s.NodeGuards.isVariableDeclaratorNode(r)&&s.NodeGuards.isIdentifierNode(r.id)?this.transformObjectExpressionNode(e,t,r.id):{nodeToReplace:e,objectExpressionHostStatement:t,objectExpressionNode:e}}transformObjectExpressionNode(e,t,r){const o=e.properties,[n,a]=this.extractPropertiesToExpressionStatements(o,t,r),s=c.NodeStatementUtils.getScopeOfNode(t);return this.filterExtractedObjectExpressionProperties(e,a),i.NodeAppender.insertAfter(s,n,t),d.NodeUtils.parentizeAst(s),{nodeToReplace:e,objectExpressionHostStatement:t,objectExpressionNode:e}}extractPropertiesToExpressionStatements(t,r,o){const n=t.length,i=[],c=[];for(let d=0;d!t.includes(r))}};return t=e=o([n.injectable()],t),t})();t.BasePropertiesExtractor=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customCodeHelpersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(27),s=r(66),c=r(118),d=r(119),l=r(120),u=r(121),f=r(122),p=r(123),m=r(127),g=r(129),h=r(131),y=r(133),b=r(135),v=r(139),N=r(141),I=r(143),O=r(145),S=r(152),C=r(154);t.customCodeHelpersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.ICustomCodeHelper).to(p.ConsoleOutputDisableCodeHelper).whenTargetNamed(a.CustomCodeHelper.ConsoleOutputDisable),e(i.ServiceIdentifiers.ICustomCodeHelper).to(h.DebugProtectionFunctionCallCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunctionCall),e(i.ServiceIdentifiers.ICustomCodeHelper).to(y.DebugProtectionFunctionIntervalCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunctionInterval),e(i.ServiceIdentifiers.ICustomCodeHelper).to(b.DebugProtectionFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunction),e(i.ServiceIdentifiers.ICustomCodeHelper).to(v.DomainLockCodeHelper).whenTargetNamed(a.CustomCodeHelper.DomainLock),e(i.ServiceIdentifiers.ICustomCodeHelper).to(N.CallsControllerFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.CallsControllerFunction),e(i.ServiceIdentifiers.ICustomCodeHelper).to(I.SelfDefendingUnicodeCodeHelper).whenTargetNamed(a.CustomCodeHelper.SelfDefendingUnicode),e(i.ServiceIdentifiers.ICustomCodeHelper).to(O.StringArrayCallsWrapperCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArrayCallsWrapper),e(i.ServiceIdentifiers.ICustomCodeHelper).to(S.StringArrayCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArray),e(i.ServiceIdentifiers.ICustomCodeHelper).to(C.StringArrayRotateFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArrayRotateFunction),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(c.ConsoleOutputCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.ConsoleOutput),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(d.DebugProtectionCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.DebugProtection),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(l.DomainLockCustomCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.DomainLock),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(u.SelfDefendingCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.SelfDefending),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(f.StringArrayCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.StringArray),e(i.ServiceIdentifiers.Factory__ICustomCodeHelper).toFactory(o.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomCodeHelper)),e(i.ServiceIdentifiers.Factory__ICustomCodeHelperGroup).toFactory(o.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomCodeHelperGroup)),e(i.ServiceIdentifiers.ICustomCodeHelperFormatter).to(m.CustomCodeHelperFormatter).inSingletonScope(),e(i.ServiceIdentifiers.ICustomCodeHelperObfuscator).to(g.CustomCodeHelperObfuscator).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),h=r(22),y=r(23),b=r(4);let v=(()=>{var e,t,r,v,N;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.disableConsoleOutput)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?h.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?h.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=y.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5),c=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5);this.appendCustomNodeIfExist(p.CustomCodeHelper.ConsoleOutputDisable,e=>{e.initialize(c,s),h.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),h.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.disableConsoleOutput)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.ConsoleOutputDisable),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.ConsoleOutputDisable,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],I),I})();t.ConsoleOutputCodeHelperGroup=v},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),h=r(22),y=r(4),b=r(23);let v=(()=>{var e,t,r,v,N;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.debugProtection)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?h.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?h.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=b.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&y.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5),c=a&&y.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5);this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunctionCall,e=>{e.initialize(s,c),h.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),h.NodeAppender.prepend(i,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunction,t=>{t.initialize(s),h.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunctionInterval,t=>{const r=y.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=this.randomGenerator.getRandomInteger(0,r);t.initialize(s),h.NodeAppender.insertAtIndex(e,t.getNode(),o)})}initialize(){if(this.customCodeHelpers=new Map,!this.options.debugProtection)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunction),t=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunctionCall),r=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunctionInterval),o=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunction,e),this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunctionCall,t),this.options.debugProtectionInterval&&this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunctionInterval,r),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,o)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],I),I})();t.DebugProtectionCodeHelperGroup=v},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockCustomCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),h=r(22),y=r(23),b=r(4);let v=(()=>{var e,t,r,v,N;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.domainLock.length)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?h.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?h.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=y.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext(),c=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext();this.appendCustomNodeIfExist(p.CustomCodeHelper.DomainLock,e=>{e.initialize(c,s),h.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),h.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.domainLock.length)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.DomainLock),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.DomainLock,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],I),I})();t.DomainLockCustomCodeHelperGroup=v},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),h=r(22),y=r(23);let b=(()=>{var e,t,r,b,v;let N=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.selfDefending)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?h.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?h.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=y.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext(),c=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext();this.appendCustomNodeIfExist(p.CustomCodeHelper.SelfDefendingUnicode,e=>{e.initialize(c,s),h.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),h.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.selfDefending)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.SelfDefendingUnicode),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.SelfDefendingUnicode,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],N.prototype,"customCodeHelpers",void 0),N=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(b=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?b:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],N),N})();t.SelfDefendingCodeHelperGroup=b},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(37),p=r(7),m=r(27),g=r(25),h=r(30),y=r(22);let b=(()=>{var e,t,r,b,v,N;let I=class extends h.AbstractCustomCodeHelperGroup{constructor(e,t,r,o,n){super(r,o,n),this.appendEvent=g.ObfuscationEvent.AfterObfuscation,this.customCodeHelperFactory=e,this.stringArrayStorage=t}appendNodes(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArray,t=>{y.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArrayCallsWrapper,t=>{y.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArrayRotateFunction,t=>{y.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}initialize(){if(this.customCodeHelpers=new Map,!this.options.stringArray)return;const e=this.customCodeHelperFactory(m.CustomCodeHelper.StringArray),t=this.customCodeHelperFactory(m.CustomCodeHelper.StringArrayCallsWrapper),r=this.customCodeHelperFactory(m.CustomCodeHelper.StringArrayRotateFunction),o=this.stringArrayStorage.getStorageName(),n=this.stringArrayStorage.getStorageCallsWrapperName(),i=this.stringArrayStorage.getRotationAmount();e.initialize(this.stringArrayStorage,o),t.initialize(o,n),r.initialize(o,i),this.customCodeHelpers.set(m.CustomCodeHelper.StringArray,e),this.customCodeHelpers.set(m.CustomCodeHelper.StringArrayCallsWrapper,t),this.options.rotateStringArray&&this.customCodeHelpers.set(m.CustomCodeHelper.StringArrayRotateFunction,r)}};return o([p.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.IStringArrayStorage)),i(2,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==f.IStringArrayStorage&&f.IStringArrayStorage)?r:Object,"function"==typeof(b=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?b:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],I),I})();t.StringArrayCodeHelperGroup=b},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(24),m=r(124),g=r(48),h=r(7),y=r(17),b=r(6);let v=(()=>{var e,t,r,v,N;let I=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.callsControllerFunctionName=e,this.consoleOutputDisableFunctionName=t}getNodeStructure(e){return b.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():g.GlobalVariableNoEvalTemplate();return this.customCodeHelperFormatter.formatTemplate(m.ConsoleOutputDisableExpressionTemplate(),{callControllerFunctionName:this.callsControllerFunctionName,consoleLogDisableFunctionName:this.consoleOutputDisableFunctionName,globalVariableTemplate:e})}};return o([h.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([h.initializable(),n("design:type",String)],I.prototype,"consoleOutputDisableFunctionName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(v=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==u.IOptions&&u.IOptions)?N:Object])],I),I})();t.ConsoleOutputDisableCodeHelper=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableExpressionTemplate=void 0,t.ConsoleOutputDisableExpressionTemplate=function(){return"\n const {consoleLogDisableFunctionName} = {callControllerFunctionName}(this, function () {\n const func = function () {};\n \n {globalVariableTemplate}\n \n if (!that.console) {\n that.console = (function (func){\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=void 0,t.GlobalVariableTemplate1=function(){return"\n let that;\n \n try {\n const getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=void 0,t.GlobalVariableTemplate2=function(){return"\n const getGlobal = function () {\n let 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 const that = getGlobal();\n "}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperFormatter=void 0;const l=r(0),u=r(1),f=a(r(12)),p=d(r(128)),m=r(67),g=r(4);let h=(()=>{var e;let t=class{constructor(e){this.prevailingKindOfVariables=e.getPrevailingKind()}formatTemplate(e,t){return p.default(e,t)}formatStructure(e){for(const t of e)f.replace(t,{enter:e=>{if(g.NodeGuards.isVariableDeclarationNode(e))return"var"===this.prevailingKindOfVariables&&(e.kind="var"),e}});return e}};return t=i([l.injectable(),c(0,l.inject(u.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),s("design:paramtypes",["function"==typeof(e=void 0!==m.IPrevailingKindOfVariablesAnalyzer&&m.IPrevailingKindOfVariablesAnalyzer)?e:Object])],t),t})();t.CustomCodeHelperFormatter=h},function(e,t){e.exports=require("string-template")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperObfuscator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(130),u=r(53);let f=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}obfuscateTemplate(e,t={}){return u.JavaScriptObfuscator.obfuscate(e,Object.assign(Object.assign(Object.assign({},l.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.randomGenerator.getRawSeed()}),t)).getObfuscatedCode()}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.CustomCodeHelperObfuscator=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NO_ADDITIONAL_NODES_PRESET=void 0;const o=r(34),n=r(24),i=r(32);t.NO_ADDITIONAL_NODES_PRESET=Object.freeze({compact:!0,controlFlowFlattening:!1,controlFlowFlatteningThreshold:0,deadCodeInjection:!1,deadCodeInjectionThreshold:0,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",identifiersDictionary:[],inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!1,seed:0,selfDefending:!1,shuffleStringArray:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,splitStrings:!1,splitStringsChunkLength:0,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:n.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(7),m=r(132),g=r(17),h=r(6);let y=(()=>{var e,t,r,y,b;let v=class extends g.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(m.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,callControllerFunctionName:this.callsControllerFunctionName})}};return o([p.initializable(),n("design:type",String)],v.prototype,"callsControllerFunctionName",void 0),o([p.initializable(),n("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(y=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?y:Object,"function"==typeof(b=void 0!==u.IOptions&&u.IOptions)?b:Object])],v),v})();t.DebugProtectionFunctionCallCodeHelper=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallTemplate=void 0,t.DebugProtectionFunctionCallTemplate=function(){return"\n (function () {\n {callControllerFunctionName}(\n this,\n function () {\n const regExp1 = new RegExp('function *\\\\( *\\\\)');\n const regExp2 = new RegExp('\\\\+\\\\+ *\\(?:[a-zA-Z_$][0-9a-zA-Z_$]*\\)', 'i');\n \n const 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 })();\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(7),m=r(134),g=r(17),h=r(6);let y=(()=>{var e,t,r,y,b;let v=class extends g.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(m.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}};return o([p.initializable(),n("design:type",String)],v.prototype,"debugProtectionFunctionName",void 0),v=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(y=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?y:Object,"function"==typeof(b=void 0!==u.IOptions&&u.IOptions)?b:Object])],v),v})();t.DebugProtectionFunctionIntervalCodeHelper=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=void 0,t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(24),m=r(7),g=r(136),h=r(137),y=r(138),b=r(17),v=r(6);let N=(()=>{var e,t,r,N,I;let O=class extends b.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(e){return v.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?g.DebuggerTemplate():h.DebuggerTemplateNoEval();return this.customCodeHelperFormatter.formatTemplate(y.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}};return o([m.initializable(),n("design:type",String)],O.prototype,"debugProtectionFunctionName",void 0),O=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(N=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?N:Object,"function"==typeof(I=void 0!==u.IOptions&&u.IOptions)?I:Object])],O),O})();t.DebugProtectionFunctionCodeHelper=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplate=void 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplateNoEval=void 0,t.DebuggerTemplateNoEval=function(){return"\n if (typeof counter === 'string') {\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionTemplate=void 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(49),f=r(2),p=r(3),m=r(24),g=r(7),h=r(140),y=r(48),b=r(17),v=r(6);let N=(()=>{var e,t,r,N,I,O;let S=class extends b.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.cryptUtils=i}initialize(e,t){this.callsControllerFunctionName=e,this.domainLockFunctionName=t}getNodeStructure(e){return v.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.domainLock.join(";"),[t,r]=this.cryptUtils.hideString(e,3*e.length),o=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():y.GlobalVariableNoEvalTemplate();return this.customCodeHelperFormatter.formatTemplate(h.DomainLockTemplate(),{callControllerFunctionName:this.callsControllerFunctionName,domainLockFunctionName:this.domainLockFunctionName,diff:r,domains:t,globalVariableTemplate:o})}};return o([g.initializable(),n("design:type",String)],S.prototype,"callsControllerFunctionName",void 0),o([g.initializable(),n("design:type",String)],S.prototype,"domainLockFunctionName",void 0),S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.ICryptUtils)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(N=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?N:Object,"function"==typeof(I=void 0!==f.IOptions&&f.IOptions)?I:Object,"function"==typeof(O=void 0!==u.ICryptUtils&&u.ICryptUtils)?O:Object])],S),S})();t.DomainLockCodeHelper=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockTemplate=void 0,t.DomainLockTemplate=function(){return'\n const {domainLockFunctionName} = {callControllerFunctionName}(this, function () {\n \n {globalVariableTemplate}\n \n const func = function () {\n return {\n key: \'item\',\n value: \'attribute\',\n getAttribute: function () {\n for (let i = 0; i < 1000; i--) {\n const 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 const regExp = new RegExp("[{diff}]", "g");\n const domains = "{domains}".replace(regExp, "").split(";");\n let document;\n let domain;\n let location;\n let hostname;\n\n for (let 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 (let 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 (let 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 (let 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 const documentDomain = that[document][domain];\n const documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n const currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n let ok = false;\n \n for (let i = 0; i < domains.length; i++) {\n const domain = domains[i];\n const position = currentDomain.length - domain.length;\n const lastIndex = currentDomain.indexOf(domain, position);\n const 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsControllerFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(14),l=r(9),u=r(2),f=r(3),p=r(25),m=r(7),g=r(142),h=r(17),y=r(6);let b=(()=>{var e,t,r,b,v,N;let I=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(g.SingleCallControllerTemplate(),{callControllerFunctionName:this.callsControllerFunctionName})):this.customCodeHelperFormatter.formatTemplate(g.SingleCallControllerTemplate(),{callControllerFunctionName:this.callsControllerFunctionName})}};return o([m.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([m.initializable(),n("design:type","function"==typeof(e=void 0!==p.ObfuscationEvent&&p.ObfuscationEvent)?e:Object)],I.prototype,"appendEvent",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperFormatter&&l.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==d.ICustomCodeHelperObfuscator&&d.ICustomCodeHelperObfuscator)?b:Object,"function"==typeof(v=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==u.IOptions&&u.IOptions)?N:Object])],I),I})();t.CallsControllerFunctionCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleCallControllerTemplate=void 0,t.SingleCallControllerTemplate=function(){return"\n const {callControllerFunctionName} = (function(){\n let firstCall = true;\n \n return function (context, fn){\n const rfn = firstCall ? function(){\n if(fn){\n const 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingUnicodeCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(7),g=r(144),h=r(17),y=r(6);let b=(()=>{var e,t,r,b,v,N;let I=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.callsControllerFunctionName=e,this.selfDefendingFunctionName=t}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{callControllerFunctionName:this.callsControllerFunctionName,selfDefendingFunctionName:this.selfDefendingFunctionName})}};return o([m.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([m.initializable(),n("design:type",String)],I.prototype,"selfDefendingFunctionName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(b=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?b:Object,"function"==typeof(v=void 0!==f.IOptions&&f.IOptions)?v:Object,"function"==typeof(N=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?N:Object])],I),I})();t.SelfDefendingUnicodeCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e){return"\n const {selfDefendingFunctionName} = {callControllerFunctionName}(this, function () {\n const test = function () {\n const regExp = test\n .constructor('return /\" + this + \"/')()\n .compile('^([^ ]+( +[^ ]+)+)+[^ ]}');\n \n return !regExp.test({selfDefendingFunctionName});\n };\n \n return test();\n });\n \n {selfDefendingFunctionName}();\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(24),g=r(28),h=r(7),y=r(146),b=r(48),v=r(147),N=r(148),I=r(149),O=r(150),S=r(151),C=r(17),j=r(6);let _=(()=>{var e,t,r,_,R,F;let T=class extends C.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}getNodeStructure(e){return j.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.getDecodeStringArrayTemplate(),t=[`^${this.stringArrayName}$`];return this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(O.StringArrayCallsWrapperTemplate(),{decodeCodeHelperTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),{reservedNames:t})}getDecodeStringArrayTemplate(){const e=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():b.GlobalVariableNoEvalTemplate(),t=this.customCodeHelperFormatter.formatTemplate(y.AtobTemplate(),{globalVariableTemplate:e});let r="",o="";switch(this.options.selfDefending&&(o=this.customCodeHelperFormatter.formatTemplate(N.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case g.StringArrayEncoding.Rc4:r=this.customCodeHelperFormatter.formatTemplate(S.StringArrayRC4DecodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:o,rc4Polyfill:v.Rc4Template(),stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case g.StringArrayEncoding.Base64:r=this.customCodeHelperFormatter.formatTemplate(I.StringArrayBase64DecodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:o,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}};return o([h.initializable(),n("design:type",String)],T.prototype,"stringArrayName",void 0),o([h.initializable(),n("design:type",String)],T.prototype,"stringArrayCallsWrapperName",void 0),T=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(_=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?_:Object,"function"==typeof(R=void 0!==f.IOptions&&f.IOptions)?R:Object,"function"==typeof(F=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?F:Object])],T),T})();t.StringArrayCallsWrapperCodeHelper=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=void 0,t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n const str = String(input).replace(/=+$/, '');\n let output = '';\n for (\n let bc = 0, bs, buffer, idx = 0;\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 })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=void 0,t.Rc4Template=function(){return"\n const rc4 = function (str, key) {\n let s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (let 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 let i;\n \t \n\t for (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 (let 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e,t){const r=e.getRandomString(6),o=e.getRandomString(6),n=e.getRandomString(6),i=e.getRandomString(6),a=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),l=e.getRandomString(6);return`\n const StatesClass = function (${r}) {\n this.${r} = ${r};\n this.${o} = [1, 0, 0];\n this.${n} = 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 const regExp = new RegExp(this.${i} + this.${a});\n const expression = regExp.test(this.${n}.toString())\n ? --this.${o}[1]\n : --this.${o}[0];\n \n return this.${c}(expression);\n };\n \n StatesClass.prototype.${c} = function (${l}) {\n if (!Boolean(~${l})) {\n return ${l};\n }\n \n return this.${d}(this.${r});\n };\n\n StatesClass.prototype.${d} = function (${r}) {\n for (let i = 0, len = this.${o}.length; i < len; i++) {\n this.${o}.push(Math.round(Math.random()));\n len = this.${o}.length;\n }\n \n return ${r}(this.${o}[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).${s}();\n `}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeTemplate=void 0,t.StringArrayBase64DecodeTemplate=function(e){const t=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.${r} = function (str) {\n const string = atob(str);\n let newStringChars = [];\n \n for (let 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}.${o} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n const cachedValue = {stringArrayCallsWrapperName}.${o}[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.${r}(value);\n {stringArrayCallsWrapperName}.${o}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=void 0,t.StringArrayCallsWrapperTemplate=function(){return"\n const {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n let value = {stringArrayName}[index];\n \n {decodeCodeHelperTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRC4DecodeTemplate=void 0,t.StringArrayRC4DecodeTemplate=function(e){const t=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6),n=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.${r} = rc4;\n \n {stringArrayCallsWrapperName}.${o} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n const cachedValue = {stringArrayCallsWrapperName}.${o}[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.${n} === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.${n} = true;\n }\n \n value = {stringArrayCallsWrapperName}.${r}(value, key);\n {stringArrayCallsWrapperName}.${o}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(37),m=r(7),g=r(153),h=r(17),y=r(6);let b=(()=>{var e,t,r,b,v,N;let I=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.stringArrayStorage=e,this.stringArrayName=t}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}};return o([m.initializable(),n("design:type","function"==typeof(e=void 0!==p.IStringArrayStorage&&p.IStringArrayStorage)?e:Object)],I.prototype,"stringArrayStorage",void 0),o([m.initializable(),n("design:type",String)],I.prototype,"stringArrayName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?b:Object,"function"==typeof(v=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?v:Object,"function"==typeof(N=void 0!==u.IOptions&&u.IOptions)?N:Object])],I),I})();t.StringArrayCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=void 0,t.StringArrayTemplate=function(){return"\n const {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(7),g=r(155),h=r(156),y=r(17),b=r(6),v=r(38);let N=(()=>{var e,t,r,N,I,O;let S=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.stringArrayName=e,this.stringArrayRotationAmount=t}getNodeStructure(e){return b.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.identifierNamesGenerator.generateNext(),t=this.identifierNamesGenerator.generateNext(),r=[`^${this.stringArrayName}$`];let o="";return o=this.options.selfDefending?this.customCodeHelperFormatter.formatTemplate(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):`${t}(++${e})`,this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(h.StringArrayRotateFunctionTemplate(),{code:o,timesName:e,whileFunctionName:t,stringArrayName:this.stringArrayName,stringArrayRotationAmount:v.NumberUtils.toHex(this.stringArrayRotationAmount)}),{reservedNames:r})}};return o([m.initializable(),n("design:type",String)],S.prototype,"stringArrayName",void 0),o([m.initializable(),n("design:type",Number)],S.prototype,"stringArrayRotationAmount",void 0),S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(N=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?N:Object,"function"==typeof(I=void 0!==f.IOptions&&f.IOptions)?I:Object,"function"==typeof(O=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?O:Object])],S),S})();t.StringArrayRotateFunctionCodeHelper=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e){return`\n const selfDefendingFunc = function () {\n const object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n let updatedCookie = name + "=" + value;\n let i = 0;\n \n for (let i = 0, len = options.length; i < len; i++) {\n const propName = options[i];\n \n updatedCookie += "; " + propName;\n \n const 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 const matches = document(new RegExp(\n "(?:^|; )" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + "=([^;]*)"\n ));\n \n const 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 const test1 = function () {\n const regExp = new RegExp('${e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0)}');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n let cookie = '';\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=void 0,t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n const {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, {stringArrayRotationAmount});\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customNodesModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(21),s=r(63),c=r(65),d=r(158),l=r(159),u=r(160),f=r(161),p=r(162),m=r(163),g=r(164),h=r(166),y=r(167),b=r(168),v=r(169);t.customNodesModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(l.BinaryExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(u.BlockStatementControlFlowFlatteningNode).whenTargetNamed(a.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(p.CallExpressionControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(m.CallExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.ControlFlowStorageNode).whenTargetNamed(a.ControlFlowCustomNode.ControlFlowStorageNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.LogicalExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(v.StringLiteralNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(b.StringLiteralControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(f.BlockStatementDeadCodeInjectionNode).whenTargetNamed(s.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(d.ObjectExpressionVariableDeclarationHostNode).whenTargetNamed(c.ObjectExpressionKeysTransformerCustomNode.ObjectExpressionVariableDeclarationHostNode),e(i.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions,i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),e(i.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions)),e(i.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions,i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionVariableDeclarationHostNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(4);let g=(()=>{var e,t,r,g;let h=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.lexicalScopeNode=e,this.properties=t}getNodeStructure(){const e=m.NodeGuards.isProgramNode(this.lexicalScopeNode)?this.identifierNamesGenerator.generateForGlobalScope():this.identifierNamesGenerator.generateForLexicalScope(this.lexicalScopeNode);return[p.NodeFactory.variableDeclarationNode([p.NodeFactory.variableDeclaratorNode(p.NodeFactory.identifierNode(e),p.NodeFactory.objectExpressionNode(this.properties))],"const")]}};return h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.ObjectExpressionVariableDeclarationHostNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let h=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.operator=e}getNodeStructure(){const e=p.NodeFactory.expressionStatementNode(p.NodeFactory.functionExpressionNode([p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")],p.NodeFactory.blockStatementNode([p.NodeFactory.returnStatementNode(p.NodeFactory.binaryExpressionNode(this.operator,p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")))])));return m.NodeUtils.parentizeAst(e),[e]}};return h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.BinaryExpressionFunctionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementControlFlowFlatteningNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(4),h=r(6);let y=(()=>{var e,t,r,y;let b=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}getNodeStructure(){const e=this.randomGenerator.getRandomString(6),t=this.randomGenerator.getRandomString(6),r=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(e),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")]))],"const"),m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.literalNode(0))],"let"),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(e),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(t)),!0),this.shuffledKeys.map((e,t)=>{const r=this.blockStatementBody[e],o=[r];return g.NodeGuards.isReturnStatementNode(r)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(t)),o)})),m.NodeFactory.breakStatement()]))]);return h.NodeUtils.parentizeAst(r),[r]}};return o([f.initializable(),n("design:type",Array)],b.prototype,"blockStatementBody",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"originalKeysIndexesInShuffledArray",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"shuffledKeys",void 0),b=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(y=void 0!==l.IOptions&&l.IOptions)?y:Object])],b),b})();t.BlockStatementControlFlowFlatteningNode=y},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementDeadCodeInjectionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let h=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}getNode(){return this.getNodeStructure()}getNodeStructure(){const e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",o=this.randomGenerator.getRandomString(5),n=t?o:this.randomGenerator.getRandomString(5),[i,a]=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=p.NodeFactory.blockStatementNode([p.NodeFactory.ifStatementNode(p.NodeFactory.binaryExpressionNode(r,p.NodeFactory.literalNode(o),p.NodeFactory.literalNode(n)),i,a)]);return m.NodeUtils.parentizeAst(s),[s]}};return h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.BlockStatementDeadCodeInjectionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let h=(()=>{var e,t,r,h,y;let b=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=o}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee,...this.expressionArguments]));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof ESTree&&ESTree.Expression)?e:Object)],b.prototype,"callee",void 0),o([f.initializable(),n("design:type",String)],b.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],b.prototype,"controlFlowStorageName",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"expressionArguments",void 0),b=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(h=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?h:Object,"function"==typeof(y=void 0!==l.IOptions&&l.IOptions)?y:Object])],b),b})();t.CallExpressionControlFlowStorageCallNode=h},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let h=(()=>{var e,t,r,h;let y=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.expressionArguments=e}getNodeStructure(){const e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length;for(let e=0;e=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowStorageNode=void 0;const a=r(0),s=r(1),c=r(165),d=r(5),l=r(9),u=r(2),f=r(3),p=r(7),m=r(15),g=r(8),h=r(4),y=r(6);let b=(()=>{var e,t,r,b,v;let N=class extends m.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.controlFlowStorage=e}getNodeStructure(){const e=Array.from(this.controlFlowStorage.getStorage()).map(([e,t])=>{const r=t.getNode()[0];if(!h.NodeGuards.isExpressionStatementNode(r))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return g.NodeFactory.propertyNode(g.NodeFactory.identifierNode(e),r.expression)});let t=g.NodeFactory.variableDeclarationNode([g.NodeFactory.variableDeclaratorNode(g.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),g.NodeFactory.objectExpressionNode(e))],"const");return t=y.NodeUtils.parentizeAst(t),[t]}};return o([p.initializable(),n("design:type","function"==typeof(e=void 0!==c.TControlFlowStorage&&c.TControlFlowStorage)?e:Object)],N.prototype,"controlFlowStorage",void 0),N=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperFormatter&&l.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?b:Object,"function"==typeof(v=void 0!==u.IOptions&&u.IOptions)?v:Object])],N),N})();t.ControlFlowStorageNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithOperatorControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let h=(()=>{var e,t,r,h;let y=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=o}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type",String)],y.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],y.prototype,"controlFlowStorageName",void 0),y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(h=void 0!==l.IOptions&&l.IOptions)?h:Object])],y),y})();t.ExpressionWithOperatorControlFlowStorageCallNode=h},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let h=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.operator=e}getNodeStructure(){const e=p.NodeFactory.expressionStatementNode(p.NodeFactory.functionExpressionNode([p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")],p.NodeFactory.blockStatementNode([p.NodeFactory.returnStatementNode(p.NodeFactory.logicalExpressionNode(this.operator,p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")))])));return m.NodeUtils.parentizeAst(e),[e]}};return h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.LogicalExpressionFunctionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let h=(()=>{var e,t,r,h;let y=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type",String)],y.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],y.prototype,"controlFlowStorageName",void 0),y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(h=void 0!==l.IOptions&&l.IOptions)?h:Object])],y),y})();t.StringLiteralControlFlowStorageCallNode=h},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8);let g=(()=>{var e,t,r,g;let h=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.literalValue=e}getNodeStructure(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}};return o([f.initializable(),n("design:type",String)],h.prototype,"literalValue",void 0),h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],h),h})();t.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalizingTransformersModule=void 0;const o=r(0);t.finalizingTransformersModule=new o.ContainerModule(e=>{})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generatorsModule=void 0;const o=r(0),n=r(1),i=r(34),a=r(172),s=r(173),c=r(174);t.generatorsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(a.DictionaryIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(c.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(n.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(){let e=null;return t=>r=>{if(e)return e;let o;switch(r.identifierNamesGenerator){case i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return e=o,o}}())})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DictionaryIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(36),d=r(2),l=r(3),u=r(50),f=r(23);let p=(()=>{var e,t,r,p;let m=e=class extends u.AbstractIdentifierNamesGenerator{constructor(e,t,r){super(e,t),this.arrayUtils=r,this.identifierNamesSet=new Set(this.getInitialIdentifierNames(this.options.identifiersDictionary)),this.identifiersIterator=this.identifierNamesSet.values()}static incrementIdentifierName(e){let t="",r=!1;for(const o of e)r||o!==o.toUpperCase()?r||o!==o.toLowerCase()?t+=o:(t+=o.toUpperCase(),r=!0):t+=o.toLowerCase();return r?t:null}generateNext(){const e=this.generateNewDictionaryName();return this.preserveName(e),e}generateForGlobalScope(){const e=`${this.options.identifiersPrefix?`${this.options.identifiersPrefix}`:""}${this.generateNewDictionaryName()}`;return this.isValidIdentifierName(e)?(this.preserveName(e),e):this.generateForGlobalScope()}generateForLexicalScope(e){const t=[e,...f.NodeLexicalScopeUtils.getLexicalScopes(e)],r=this.generateNewDictionaryName();return this.isValidIdentifierNameInLexicalScopes(r,t)?(this.preserveNameForLexicalScope(r,e),r):this.generateForLexicalScope(e)}generateNewDictionaryName(){if(!this.identifierNamesSet.size)throw new Error("Too many identifiers in the code, add more words to identifiers dictionary");const e=this.identifiersIterator.next();if(!e.done){const t=e.value;return this.isValidIdentifierName(t)?e.value:this.generateNewDictionaryName()}return this.identifierNamesSet=new Set(this.getIncrementedIdentifierNames([...this.identifierNamesSet])),this.identifiersIterator=this.identifierNamesSet.values(),this.generateNewDictionaryName()}getInitialIdentifierNames(e){const t=e.filter(Boolean).map(e=>e.toLowerCase());return this.arrayUtils.shuffle(t)}getIncrementedIdentifierNames(t){const r=[];for(const o of t){const t=e.incrementIdentifierName(o);t&&r.push(t)}return this.arrayUtils.shuffle(r)}};return m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),i(2,a.inject(s.ServiceIdentifiers.IArrayUtils)),n("design:paramtypes",["function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object,"function"==typeof(p=void 0!==c.IArrayUtils&&c.IArrayUtils)?p:Object])],m),m})();t.DictionaryIdentifierNamesGenerator=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.HexadecimalIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(50),u=r(38),f=r(26);let p=(()=>{var e,t,r;let p=e=class extends l.AbstractIdentifierNamesGenerator{constructor(e,t){super(e,t)}generateNext(t){const r=this.randomGenerator.getRandomInteger(1e4,99999999),o=u.NumberUtils.toHex(r),n=f.Utils.hexadecimalPrefix.length,i=(null!=t?t:e.baseIdentifierNameLength)+n,a=`_${o.substr(0,i)}`;return this.isValidIdentifierName(a)?(this.preserveName(a),a):this.generateNext(t)}generateForGlobalScope(e){const t=this.generateNext(e);return`${this.options.identifiersPrefix}${t}`.replace("__","_")}generateForLexicalScope(e,t){return this.generateNext(t)}};return p.baseIdentifierNameLength=6,p=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],p),p})();t.HexadecimalIdentifierNamesGenerator=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MangledIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(50),u=r(23);let f=(()=>{var e,t,r;let f=e=class extends l.AbstractIdentifierNamesGenerator{constructor(t,r){super(t,r),this.previousMangledName=e.initMangledNameCharacter}generateNext(e){const t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,this.preserveName(t),t}generateForGlobalScope(e){const t=this.options.identifiersPrefix?`${this.options.identifiersPrefix}`:"",r=this.generateNewMangledName(this.previousMangledName),o=`${t}${r}`;return this.previousMangledName=r,this.isValidIdentifierName(o)?(this.preserveName(o),o):this.generateForGlobalScope(e)}generateForLexicalScope(t,r){const o=[t,...u.NodeLexicalScopeUtils.getLexicalScopes(t)];let n=this.getLastMangledNameForScopes(o);do{n=this.generateNewMangledName(n)}while(!this.isValidIdentifierNameInLexicalScopes(n,o));return e.lastMangledNameInScopeMap.set(t,n),this.preserveNameForLexicalScope(n,t),n}isValidIdentifierName(t){return super.isValidIdentifierName(t)&&!e.reservedNamesSet.has(t)}generateNewMangledName(t){let r=(t=>{const r=e.nameSequence,o=r.length,n=t.length,i=e=>"0".repeat(e);let a=n-1;do{const e=t[a],s=r.indexOf(e);if(s!==o-1){return t.substring(0,a)+r[s+1]+i(n-(a+1))}--a}while(a>=0);return`a${i(n)}`})(t);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}getLastMangledNameForScopes(t){var r;for(const o of t){const t=null!==(r=e.lastMangledNameInScopeMap.get(o))&&void 0!==r?r:null;if(t)return t}return e.initMangledNameCharacter}};return f.initMangledNameCharacter="9",f.lastMangledNameInScopeMap=new WeakMap,f.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),f.reservedNamesSet=new Set(["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"]),f=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],f),f})();t.MangledIdentifierNamesGenerator=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializingTransformersModule=void 0;const o=r(0),n=r(1),i=r(13),a=r(176);t.initializingTransformersModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.INodeTransformer).to(a.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer)})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommentsTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(10),g=r(11),h=r(68),y=r(4);let b=(()=>{var e,t,r;let o=e=class extends g.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case m.NodeTransformationStage.Initializing:return{leave:e=>{if(y.NodeGuards.isProgramNode(e))return this.transformNode(e)}};default:return null}}transformNode(e){if(!e.comments||!e.comments.length)return e;const t=this.transformComments(e.comments);if(0===t.length)return e;if(!e.body.length)return e.leadingComments=t,e;let r=!0;return u.traverse(e,{enter:o=>{if(o===e)return;const n=t.findIndex(e=>e.range&&o.range&&e.range[0]=0&&((r?e:o).leadingComments=t.splice(n,t.length-n).reverse()),r=!1}}),t.length>0&&(e.trailingComments=t.reverse()),e}transformComments(t){return t.filter(t=>e.preservedWords.some(e=>t.value.includes(e))||h.ConditionalCommentObfuscatingGuard.isConditionalComment(t)).reverse()}};return o.preservedWords=["@license","@preserve"],o=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==f.IOptions&&f.IOptions)?r:Object])],o),o})();t.CommentsTransformer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeModule=void 0;const o=r(0),n=r(1),i=r(178);t.nodeModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IScopeIdentifiersTraverser).to(i.ScopeIdentifiersTraverser).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIdentifiersTraverser=void 0;const a=r(0),s=r(1),c=r(179),d=r(4);let l=(()=>{var e,t;let r=e=class{constructor(e){this.scopeAnalyzer=e}traverse(e,t,r){this.scopeAnalyzer.analyze(e);const o=this.scopeAnalyzer.acquireScope(e);this.traverseScopeVariables(o,o,r)}traverseScopeVariables(t,r,o){const n=r.variableScope,i=d.NodeGuards.isNodeWithBlockLexicalScope(n.block)?n.block:null,a=e.globalScopeNames.includes(n.type);if(i){for(const s of r.variables){if(s.name===e.argumentsVariableName)continue;o({isGlobalDeclaration:a,isBubblingDeclaration:s.identifiers.some(e=>e.parentNode&&d.NodeGuards.isPropertyNode(e.parentNode)&&e.parentNode.shorthand),rootScope:t,variable:s,variableScope:n,variableLexicalScopeNode:i})}for(const e of r.childScopes)this.traverseScopeVariables(t,e,o)}}};return r.argumentsVariableName="arguments",r.globalScopeNames=["global","module"],r=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IScopeAnalyzer)),n("design:paramtypes",["function"==typeof(t=void 0!==c.IScopeAnalyzer&&c.IScopeAnalyzer)?t:Object])],r),r})();t.ScopeIdentifiersTraverser=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(181);t.nodeTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Factory__INodeTransformer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.INodeTransformer)),e(i.ServiceIdentifiers.INodeTransformerNamesGroupsBuilder).to(a.NodeTransformerNamesGroupsBuilder).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformerNamesGroupsBuilder=void 0;const n=r(0),i=r(56);let a=(()=>{let e=class extends i.AbstractTransformerNamesGroupsBuilder{};return e=o([n.injectable()],e),e})();t.NodeTransformerNamesGroupsBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.obfuscatingTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(39),s=r(69),c=r(13),d=r(183),l=r(184),u=r(185),f=r(186),p=r(188),m=r(189),g=r(190);t.obfuscatingTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(u.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(g.ScopeIdentifiersTransformer).whenTargetNamed(c.NodeTransformer.ScopeIdentifiersTransformer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(l.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(p.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(m.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(a.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(i.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IObfuscatingReplacer)),e(i.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseIdentifierObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(5),d=r(2),l=r(40),u=r(8);let f=(()=>{var e,t;let r=class extends l.AbstractObfuscatingReplacer{constructor(e,t){super(t),this.blockScopesMap=new Map,this.identifierNamesGenerator=e(t)}replace(e,t){let r=e.name;if(this.blockScopesMap.has(t)){const e=this.blockScopesMap.get(t);e.has(r)&&(r=e.get(r))}return u.NodeFactory.identifierNode(r)}storeGlobalName(e,t){const r=e.name;if(this.isReservedName(r))return;const o=this.identifierNamesGenerator.generateForGlobalScope();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(r,o)}storeLocalName(e,t){const r=e.name;if(this.isReservedName(r))return;const o=this.identifierNamesGenerator.generateForLexicalScope(t);this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(r,o)}preserveName(e){this.identifierNamesGenerator.preserveName(e.name)}preserveNameForLexicalScope(e,t){this.identifierNamesGenerator.preserveNameForLexicalScope(e.name,t)}isReservedName(e){return!!this.options.reservedNames.length&&this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.IOptions&&d.IOptions)?t:Object])],r),r})();t.BaseIdentifierObfuscatingReplacer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(40),l=r(8);let u=(()=>{var e,t;let r=e=class extends d.AbstractObfuscatingReplacer{constructor(e){super(e)}static getTrueUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",e.getFalseUnaryExpressionNode())}static getFalseUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",l.NodeFactory.arrayExpressionNode())}replace(t){const r=t.value;if("boolean"!=typeof r)throw new Error("`BooleanLiteralObfuscatingReplacer` should accept only literals with `boolean` value");return r?e.getTrueUnaryExpressionNode():e.getFalseUnaryExpressionNode()}};return r=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.BooleanLiteralObfuscatingReplacer=u},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LabeledStatementTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(51),p=r(2),m=r(3),g=r(39),h=r(10),y=r(11),b=r(4),v=r(23);let N=(()=>{var e,t,r;let o=class extends y.AbstractNodeTransformer{constructor(e,t,r){super(t,r),this.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}getVisitor(e){switch(e){case h.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&b.NodeGuards.isLabeledStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const r=v.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}storeLabeledStatementName(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label,t)}replaceLabeledStatementName(e,t){u.replace(e,{enter:(e,r)=>{if(r&&b.NodeGuards.isLabelIdentifierNode(e,r)){const r=this.identifierObfuscatingReplacer.replace(e,t);e.name=r.name}}})}};return o=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TIdentifierObfuscatingReplacerFactory&&f.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==p.IOptions&&p.IOptions)?r:Object])],o),o})();t.LabeledStatementTransformer=N},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralTransformer=void 0;const a=r(0),s=r(1),c=r(187),d=r(33),l=r(2),u=r(3),f=r(70),p=r(69),m=r(10),g=r(11),h=r(8),y=r(4),b=r(45),v=r(19),N=r(6);let I=(()=>{var e,t,r,I,O;let S=class extends g.AbstractNodeTransformer{constructor(e,t,r,o,n){super(t,r),this.literalObfuscatingReplacerFactory=e,this.stringArrayStorageAnalyzer=o,this.escapeSequenceEncoder=n}getVisitor(e){switch(e){case m.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(y.NodeGuards.isProgramNode(e)&&this.analyzeNode(e),t&&y.NodeGuards.isLiteralNode(e)&&!v.NodeMetadata.isReplacedLiteral(e))return this.transformNode(e,t)}};case m.NodeTransformationStage.Finalizing:return{enter:(e,t)=>{if(t&&y.NodeGuards.isLiteralNode(e))return this.encodeLiteralNodeToEscapeSequence(e,t)}};default:return null}}analyzeNode(e){this.stringArrayStorageAnalyzer.analyze(e)}transformNode(e,t){if(b.NodeLiteralUtils.isProhibitedLiteralNode(e,t))return e;let r;switch(typeof e.value){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e);break;case"number":case"bigint":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e);break;default:r=e}return N.NodeUtils.parentizeNode(r,t),r}encodeLiteralNodeToEscapeSequence(e,t){return"string"!=typeof e.value?e:h.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e.value,this.options.unicodeEscapeSequence))}};return S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IObfuscatingReplacer)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),i(3,a.inject(s.ServiceIdentifiers.IStringArrayStorageAnalyzer)),i(4,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TLiteralObfuscatingReplacerFactory&&c.TLiteralObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==l.IOptions&&l.IOptions)?r:Object,"function"==typeof(I=void 0!==f.IStringArrayStorageAnalyzer&&f.IStringArrayStorageAnalyzer)?I:Object,"function"==typeof(O=void 0!==d.IEscapeSequenceEncoder&&d.IEscapeSequenceEncoder)?O:Object])],S),S})();t.LiteralTransformer=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(40),l=r(8),u=r(38);let f=(()=>{var e;let t=class extends d.AbstractObfuscatingReplacer{constructor(e){super(e),this.numberLiteralCache=new Map}replace(e){const t=e.value;if("number"!=typeof t&&"bigint"!=typeof t)throw new Error("`NumberLiteralObfuscatingReplacer` should accept only literals with `number` and `bigint` value");let r;return this.numberLiteralCache.has(t)?r=this.numberLiteralCache.get(t):(r=u.NumberUtils.isCeil(t)?u.NumberUtils.toHex(t):String(t),this.numberLiteralCache.set(t,r)),l.NodeFactory.literalNode(t,r)}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IOptions&&c.IOptions)?e:Object])],t),t})();t.NumberLiteralObfuscatingReplacer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(37),l=r(70),u=r(28),f=r(40),p=r(19),m=r(8),g=r(38);let h=(()=>{var e,t,r,h;let y=e=class extends f.AbstractObfuscatingReplacer{constructor(e,t,r){super(r),this.nodesCache=new Map,this.stringArrayStorage=e,this.stringArrayStorageAnalyzer=t}static getHexadecimalLiteralNode(e){const t=m.NodeFactory.literalNode(e);return p.NodeMetadata.set(t,{replacedLiteral:!0}),t}static getRc4KeyLiteralNode(e){const t=m.NodeFactory.literalNode(e);return p.NodeMetadata.set(t,{replacedLiteral:!0}),t}initialize(){this.options.shuffleStringArray&&this.stringArrayStorage.shuffleStorage(),this.options.rotateStringArray&&this.stringArrayStorage.rotateStorage()}replace(e){const t=e.value;if("string"!=typeof t)throw new Error("`StringLiteralObfuscatingReplacer` should accept only literals with `string` value");const r=this.stringArrayStorageAnalyzer.getItemDataForLiteralNode(e),o=`${t}-${Boolean(r)}`;if(this.nodesCache.has(o)&&this.options.stringArrayEncoding!==u.StringArrayEncoding.Rc4)return this.nodesCache.get(o);const n=r?this.replaceWithStringArrayCallNode(r):this.replaceWithLiteralNode(t);return this.nodesCache.set(o,n),n}replaceWithLiteralNode(e){return m.NodeFactory.literalNode(e)}replaceWithStringArrayCallNode(t){const{index:r,decodeKey:o}=t,n=g.NumberUtils.toHex(r),i=[e.getHexadecimalLiteralNode(n)];o&&i.push(e.getRc4KeyLiteralNode(o));const a=m.NodeFactory.identifierNode(this.stringArrayStorage.getStorageCallsWrapperName());return m.NodeFactory.callExpressionNode(a,i)}};return o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],y.prototype,"initialize",null),y=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IStringArrayStorage)),i(1,a.inject(s.ServiceIdentifiers.IStringArrayStorageAnalyzer)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IStringArrayStorage&&d.IStringArrayStorage)?t:Object,"function"==typeof(r=void 0!==l.IStringArrayStorageAnalyzer&&l.IStringArrayStorageAnalyzer)?r:Object,"function"==typeof(h=void 0!==c.IOptions&&c.IOptions)?h:Object])],y),y})();t.StringLiteralObfuscatingReplacer=h},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIdentifiersTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(51),p=r(2),m=r(3),g=r(71),h=r(39),y=r(10),b=r(11),v=r(4),N=r(19);let I=(()=>{var e,t,r,o;let n=class extends b.AbstractNodeTransformer{constructor(e,t,r,o){super(t,r),this.lexicalScopesWithObjectPatternWithoutDeclarationMap=new Map,this.identifierObfuscatingReplacer=e(h.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),this.scopeIdentifiersTraverser=o}getVisitor(e){switch(e){case y.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&v.NodeGuards.isProgramNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return this.scopeIdentifiersTraverser.traverse(e,t,e=>{const{isGlobalDeclaration:t,variable:r,variableLexicalScopeNode:o}=e;if(!this.options.renameGlobals&&t){if(!r.defs.every(e=>"ImportBinding"===e.type||"CatchClause"===e.type))return}this.transformScopeVariableIdentifiers(r,o,t)}),e}transformScopeVariableIdentifiers(e,t,r){var o;const n=null!==(o=e.identifiers[0])&&void 0!==o?o:null;n&&this.isReplaceableIdentifierNode(n,t,e)&&(this.storeIdentifierName(n,t,r),this.replaceIdentifierName(n,t,e))}storeIdentifierName(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e,t):this.identifierObfuscatingReplacer.storeLocalName(e,t)}replaceIdentifierName(e,t,r){const o=this.identifierObfuscatingReplacer.replace(e,t);r.identifiers.forEach(e=>{e.name=o.name}),r.references.forEach(t=>{t.identifier.name=e.name})}isReplaceableIdentifierNode(e,t,r){const o=e.parentNode;return!(!o||N.NodeMetadata.isIgnoredNode(e)||this.isProhibitedPropertyNode(e,o)||this.isProhibitedClassDeclarationNameIdentifierNode(r,e,o)||this.isProhibitedExportNamedClassDeclarationIdentifierNode(e,o)||this.isProhibitedExportNamedFunctionDeclarationIdentifierNode(e,o)||this.isProhibitedExportNamedVariableDeclarationIdentifierNode(e,o)||this.isProhibitedImportSpecifierNode(e,o)||this.isProhibitedVariableNameUsedInObjectPatternNode(r,e,t)||v.NodeGuards.isLabelIdentifierNode(e,o))}isProhibitedClassDeclarationNameIdentifierNode(e,t,r){return v.NodeGuards.isClassDeclarationNode(e.scope.block)&&v.NodeGuards.isClassDeclarationNode(r)&&r.id===t}isProhibitedExportNamedClassDeclarationIdentifierNode(e,t){return v.NodeGuards.isClassDeclarationNode(t)&&t.id===e&&!!t.parentNode&&v.NodeGuards.isExportNamedDeclarationNode(t.parentNode)}isProhibitedExportNamedFunctionDeclarationIdentifierNode(e,t){return v.NodeGuards.isFunctionDeclarationNode(t)&&t.id===e&&!!t.parentNode&&v.NodeGuards.isExportNamedDeclarationNode(t.parentNode)}isProhibitedExportNamedVariableDeclarationIdentifierNode(e,t){return v.NodeGuards.isVariableDeclaratorNode(t)&&t.id===e&&!!t.parentNode&&v.NodeGuards.isVariableDeclarationNode(t.parentNode)&&!!t.parentNode.parentNode&&v.NodeGuards.isExportNamedDeclarationNode(t.parentNode.parentNode)}isProhibitedImportSpecifierNode(e,t){return v.NodeGuards.isImportSpecifierNode(t)&&t.imported.name===t.local.name}isProhibitedPropertyNode(e,t){const r=v.NodeGuards.isPropertyNode(t)&&!t.computed&&t.key===e,o=v.NodeGuards.isAssignmentPatternNode(t)&&t.left===e&&!!t.parentNode&&v.NodeGuards.isPropertyNode(t.parentNode)&&t.left===t.parentNode.key;return r||o}isProhibitedVariableNameUsedInObjectPatternNode(e,t,r){let o=this.lexicalScopesWithObjectPatternWithoutDeclarationMap.get(r);if(!1===o)return!1;if(!e.defs.some(e=>"var"===e.kind))return!1;let n=!1;return u.traverse(r,{enter:(e,r)=>{if(v.NodeGuards.isObjectPatternNode(e)&&r&&v.NodeGuards.isAssignmentExpressionNode(r)){o=!0;const r=e.properties;for(const e of r)if(v.NodeGuards.isPropertyNode(e)&&!e.computed&&e.shorthand&&v.NodeGuards.isIdentifierNode(e.key)&&t.name===e.key.name)return n=!0,u.VisitorOption.Break}}}),this.lexicalScopesWithObjectPatternWithoutDeclarationMap.set(r,null!=o&&o),n}};return n=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),c(3,d.inject(l.ServiceIdentifiers.IScopeIdentifiersTraverser)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TIdentifierObfuscatingReplacerFactory&&f.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==p.IOptions&&p.IOptions)?r:Object,"function"==typeof(o=void 0!==g.IScopeIdentifiersTraverser&&g.IScopeIdentifiersTraverser)?o:Object])],n),n})();t.ScopeIdentifiersTransformer=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optionsModule=void 0;const o=r(0),n=r(1),i=r(192),a=r(199);t.optionsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IOptions).to(i.Options).inSingletonScope(),e(n.ServiceIdentifiers.IOptionsNormalizer).to(a.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Options=void 0;const a=r(31),s=r(0),c=r(1),d=r(72),l=r(193),u=r(194),f=r(195),p=r(34),m=r(24),g=r(32),h=r(28),y=r(41),b=r(196),v=r(197);let N=(()=>{var e,t,r,N,I,O,S;let C=e=class{constructor(t,r){Object.assign(this,y.DEFAULT_PRESET,t);const o=d.validateSync(this,e.validatorOptions);if(o.length)throw new ReferenceError(`Validation failed. errors:\n${b.ValidationErrorsFormatter.format(o)}`);Object.assign(this,r.normalize(this))}};return C.validatorOptions={validationError:{target:!1}},o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"compact",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"controlFlowFlattening",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),n("design:type",Number)],C.prototype,"controlFlowFlatteningThreshold",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"deadCodeInjection",void 0),o([d.IsNumber(),n("design:type",Number)],C.prototype,"deadCodeInjectionThreshold",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"debugProtection",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"debugProtectionInterval",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"disableConsoleOutput",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),v.IsAllowedForObfuscationTargets([m.ObfuscationTarget.Browser,m.ObfuscationTarget.BrowserNoEval]),n("design:type",Array)],C.prototype,"domainLock",void 0),o([d.IsIn([p.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator,p.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,p.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),n("design:type","function"==typeof(t=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?t:Object)],C.prototype,"identifierNamesGenerator",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"identifiersPrefix",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),d.ValidateIf(e=>e.identifierNamesGenerator===p.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),d.ArrayNotEmpty(),n("design:type",Array)],C.prototype,"identifiersDictionary",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"inputFileName",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"log",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"renameGlobals",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),n("design:type",Array)],C.prototype,"reservedNames",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),n("design:type",Array)],C.prototype,"reservedStrings",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"rotateStringArray",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"selfDefending",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"shuffleStringArray",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.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}),n("design:type",String)],C.prototype,"sourceMapBaseUrl",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"sourceMapFileName",void 0),o([d.IsIn([g.SourceMapMode.Inline,g.SourceMapMode.Separate]),n("design:type","function"==typeof(r=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?r:Object)],C.prototype,"sourceMapMode",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"splitStrings",void 0),o([d.IsNumber(),d.ValidateIf(e=>Boolean(e.splitStrings)),d.Min(1),n("design:type",Number)],C.prototype,"splitStringsChunkLength",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"stringArray",void 0),o([d.IsIn([!0,!1,h.StringArrayEncoding.Base64,h.StringArrayEncoding.Rc4]),n("design:type","function"==typeof(N=void 0!==u.TStringArrayEncoding&&u.TStringArrayEncoding)?N:Object)],C.prototype,"stringArrayEncoding",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),n("design:type",Number)],C.prototype,"stringArrayThreshold",void 0),o([d.IsIn([m.ObfuscationTarget.Browser,m.ObfuscationTarget.BrowserNoEval,m.ObfuscationTarget.Node]),n("design:type","function"==typeof(I=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?I:Object)],C.prototype,"target",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"transformObjectKeys",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"unicodeEscapeSequence",void 0),C=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.TInputOptions)),i(1,s.inject(c.ServiceIdentifiers.IOptionsNormalizer)),n("design:paramtypes",["function"==typeof(O=void 0!==l.TInputOptions&&l.TInputOptions)?O:Object,"function"==typeof(S=void 0!==f.IOptionsNormalizer&&f.IOptionsNormalizer)?S:Object])],C),C})();t.Options=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationErrorsFormatter=void 0;class o{static format(e){return e.reduce((e,t)=>[...e,o.formatWithNestedConstraints(t)],[]).join("\n")}static formatWithNestedConstraints(e){const t=e.constraints;return t?`${`\`${e.property}\` errors:\n`}${Object.keys(t).map(e=>` - ${t[e]}\n`).join()}`:`\`${e.property}\` error\n`}}t.ValidationErrorsFormatter=o},function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IsAllowedForObfuscationTargets=void 0;const n=r(72),i=o(r(198)),a=r(42),s=r(41);t.IsAllowedForObfuscationTargets=function(e,t){return(r,o)=>{n.registerDecorator({propertyName:o,constraints:[e],name:"IsAllowedForObfuscationTargets",options:t,target:r.constructor,validator:{validate(t,r){const n=r.object,a=s.DEFAULT_PRESET[o];return i.default(t,a)||e.includes(n.target)},defaultMessage:t=>`This option allowed only for obfuscation targets: ${e.join(`${a.StringSeparator.Comma} `)}`}})}}},function(e,t){e.exports=require("fast-deep-equal")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsNormalizer=void 0;const n=r(0),i=r(200),a=r(201),s=r(202),c=r(203),d=r(204),l=r(205),u=r(206),f=r(207),p=r(208),m=r(209),g=r(210),h=r(211),y=r(212);let b=(()=>{var e;let t=e=class{normalize(t){let r=Object.assign({},t);for(const t of e.normalizerRules)r=t(r);return r}};return t.normalizerRules=[i.ControlFlowFlatteningThresholdRule,a.DeadCodeInjectionRule,s.DeadCodeInjectionThresholdRule,c.DomainLockRule,d.InputFileNameRule,l.SeedRule,u.SelfDefendingRule,f.SourceMapBaseUrlRule,p.SourceMapFileNameRule,m.SplitStringsChunkLengthRule,g.StringArrayRule,h.StringArrayEncodingRule,y.StringArrayThresholdRule],t=e=o([n.injectable()],t),t})();t.OptionsNormalizer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=void 0,t.ControlFlowFlatteningThresholdRule=e=>(0===e.controlFlowFlatteningThreshold&&(e=Object.assign(Object.assign({},e),{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionRule=void 0;const o=r(41);t.DeadCodeInjectionRule=e=>(e.deadCodeInjection&&((e=Object.assign(Object.assign({},e),{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign(Object.assign({},e),{stringArray:!0,stringArrayThreshold:o.DEFAULT_PRESET.stringArrayThreshold}))),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=void 0,t.DeadCodeInjectionThresholdRule=e=>(0===e.deadCodeInjectionThreshold&&(e=Object.assign(Object.assign({},e),{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockRule=void 0;const o=r(26);t.DomainLockRule=e=>{if(e.domainLock.length){const t=[];for(const r of e.domainLock)t.push(o.Utils.extractDomainFrom(r));e=Object.assign(Object.assign({},e),{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=void 0;const o=r(42);t.InputFileNameRule=e=>{let{inputFileName:t}=e;return t&&(t=t.replace(/^\/+/,"").split(o.StringSeparator.Dot).slice(0,-1).join(o.StringSeparator.Dot)||t,e=Object.assign(Object.assign({},e),{inputFileName:`${t}.js`})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeedRule=void 0,t.SeedRule=e=>{if(e.seed)return Object.assign(Object.assign({},e),{seed:e.seed});return Object.assign(Object.assign({},e),{seed:(t=0,r=999999999,Math.floor(Math.random()*(r-t+1)+t))});var t,r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=void 0,t.SelfDefendingRule=e=>(e.selfDefending&&(e=Object.assign(Object.assign({},e),{compact:!0,selfDefending:!0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=void 0,t.SourceMapBaseUrlRule=e=>{const{sourceMapBaseUrl:t}=e;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign(Object.assign({},e),{sourceMapBaseUrl:`${t}/`})),e):e=Object.assign(Object.assign({},e),{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=void 0;const o=r(42);t.SourceMapFileNameRule=e=>{let{sourceMapFileName:t}=e;if(t){t=t.replace(/^\/+/,"").replace(/(?:\.js)?(?:\.map)?$/,"");let r=t.split(o.StringSeparator.Dot);const n=r.length,i=r[n-1];n>1&&i.length<=3&&(r=r.slice(0,-1)),t=r.join(o.StringSeparator.Dot),e=Object.assign(Object.assign({},e),{sourceMapFileName:`${t}.js.map`})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitStringsChunkLengthRule=void 0,t.SplitStringsChunkLengthRule=e=>e=0===e.splitStringsChunkLength?Object.assign(Object.assign({},e),{splitStrings:!1,splitStringsChunkLength:0}):Object.assign(Object.assign({},e),{splitStringsChunkLength:Math.floor(e.splitStringsChunkLength)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=void 0,t.StringArrayRule=e=>(e.stringArray||(e=Object.assign(Object.assign({},e),{rotateStringArray:!1,shuffleStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncodingRule=void 0;const o=r(28);t.StringArrayEncodingRule=e=>(!0===e.stringArrayEncoding&&(e=Object.assign(Object.assign({},e),{stringArrayEncoding:o.StringArrayEncoding.Base64})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=void 0,t.StringArrayThresholdRule=e=>(0===e.stringArrayThreshold&&(e=Object.assign(Object.assign({},e),{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preparingTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(13),s=r(73),c=r(214),d=r(68),l=r(215),u=r(219),f=r(221),p=r(222),m=r(224),g=r(225),h=r(226);t.preparingTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(l.CustomCodeHelpersTransformer).whenTargetNamed(a.NodeTransformer.CustomCodeHelpersTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.EvalCallExpressionTransformer).whenTargetNamed(a.NodeTransformer.EvalCallExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.MetadataTransformer).whenTargetNamed(a.NodeTransformer.MetadataTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.ObfuscatingGuardsTransformer).whenTargetNamed(a.NodeTransformer.ObfuscatingGuardsTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(m.ParentificationTransformer).whenTargetNamed(a.NodeTransformer.ParentificationTransformer),e(i.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListObfuscatingGuard),e(i.ServiceIdentifiers.INodeGuard).to(d.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentObfuscatingGuard),e(i.ServiceIdentifiers.INodeGuard).to(g.ReservedStringObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ReservedStringObfuscatingGuard),e(i.ServiceIdentifiers.INodeTransformer).to(h.VariablePreserveTransformer).whenTargetNamed(a.NodeTransformer.VariablePreserveTransformer),e(i.ServiceIdentifiers.Factory__INodeGuard).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BlackListObfuscatingGuard=void 0;const i=r(0),a=r(4);let s=(()=>{var e;let t=e=class{constructor(){this.blackListGuardsLength=e.blackListGuards.length}check(t){for(let r=0;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelpersTransformer=void 0;const a=r(0),s=r(1),c=r(216),d=r(217),l=r(2),u=r(3),f=r(218),p=r(67),m=r(13),g=r(25),h=r(10),y=r(11),b=r(4);let v=(()=>{var e,t,r,v,N,I;let O=class extends y.AbstractNodeTransformer{constructor(e,t,r,o,n,i){super(n,i),this.runAfter=[m.NodeTransformer.ParentificationTransformer,m.NodeTransformer.VariablePreserveTransformer],this.callsGraphData=[],this.callsGraphAnalyzer=e,this.prevailingKindOfVariablesAnalyzer=t,this.obfuscationEventEmitter=r,this.customCodeHelperGroupStorage=o}getVisitor(e){switch(e){case h.NodeTransformationStage.Preparing:return{leave:(e,t)=>{if(b.NodeGuards.isProgramNode(e))return this.analyzeNode(e,t),this.appendCustomNodesBeforeObfuscation(e,t),this.transformNode(e,t)}};case h.NodeTransformationStage.Finalizing:return{leave:(e,t)=>{b.NodeGuards.isProgramNode(e)&&this.appendCustomNodesAfterObfuscation(e,t)}};default:return null}}analyzeNode(e,t){this.callsGraphData=this.callsGraphAnalyzer.analyze(e),this.prevailingKindOfVariablesAnalyzer.analyze(e)}transformNode(e,t){return e}appendCustomNodesBeforeObfuscation(e,t){this.customCodeHelperGroupStorage.getStorage().forEach(e=>{e.initialize(),this.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendNodes.bind(e))}),this.obfuscationEventEmitter.emit(g.ObfuscationEvent.BeforeObfuscation,e,this.callsGraphData)}appendCustomNodesAfterObfuscation(e,t){this.obfuscationEventEmitter.emit(g.ObfuscationEvent.AfterObfuscation,e,this.callsGraphData)}};return O=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ICallsGraphAnalyzer)),i(1,a.inject(s.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),i(2,a.inject(s.ServiceIdentifiers.IObfuscationEventEmitter)),i(3,a.inject(s.ServiceIdentifiers.TCustomNodeGroupStorage)),i(4,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(5,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==f.ICallsGraphAnalyzer&&f.ICallsGraphAnalyzer)?e:Object,"function"==typeof(t=void 0!==p.IPrevailingKindOfVariablesAnalyzer&&p.IPrevailingKindOfVariablesAnalyzer)?t:Object,"function"==typeof(r=void 0!==d.IObfuscationEventEmitter&&d.IObfuscationEventEmitter)?r:Object,"function"==typeof(v=void 0!==c.TCustomCodeHelperGroupStorage&&c.TCustomCodeHelperGroupStorage)?v:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(I=void 0!==l.IOptions&&l.IOptions)?I:Object])],O),O})();t.CustomCodeHelpersTransformer=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvalCallExpressionTransformer=void 0;const s=r(0),c=r(1),d=a(r(220)),l=r(2),u=r(3),f=r(13),p=r(10),m=r(11),g=r(8),h=r(4),y=r(6);let b=(()=>{var e,t,r;let a=e=class extends m.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[f.NodeTransformer.ParentificationTransformer,f.NodeTransformer.VariablePreserveTransformer],this.evalRootAstHostNodeSet=new Set}static extractEvalStringFromCallExpressionArgument(t){return h.NodeGuards.isLiteralNode(t)?e.extractEvalStringFromLiteralNode(t):h.NodeGuards.isTemplateLiteralNode(t)?e.extractEvalStringFromTemplateLiteralNode(t):null}static extractEvalStringFromLiteralNode(e){return"string"==typeof e.value?e.value:null}static extractEvalStringFromTemplateLiteralNode(e){const t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:return{enter:(e,t)=>{if(t&&h.NodeGuards.isCallExpressionNode(e)&&h.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return this.transformNode(e,t)}};case p.NodeTransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:(e,t)=>{if(t&&this.isEvalRootAstHostNode(e))return this.restoreNode(e,t)}}:null;default:return null}}transformNode(t,r){const o=t.arguments[0];if(!o)return t;const n=e.extractEvalStringFromCallExpressionArgument(o);if(!n)return t;let i;try{i=y.NodeUtils.convertCodeToStructure(n)}catch(e){return t}const a=g.NodeFactory.functionExpressionNode([],g.NodeFactory.blockStatementNode(i));return y.NodeUtils.parentizeAst(a),y.NodeUtils.parentizeNode(a,r),this.evalRootAstHostNodeSet.add(a),a}restoreNode(e,t){const r=e.body.body,o=y.NodeUtils.convertStructureToCode(r);return g.NodeFactory.callExpressionNode(g.NodeFactory.identifierNode("eval"),[g.NodeFactory.literalNode(d.default(o))])}isEvalRootAstHostNode(e){return h.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}};return a=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i(1,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==l.IOptions&&l.IOptions)?r:Object])],a),a})();t.EvalCallExpressionTransformer=b},function(e,t){e.exports=require("js-string-escape")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(13),u=r(10),f=r(11),p=r(4),m=r(19);let g=(()=>{var e,t;let r=class extends f.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[l.NodeTransformer.ParentificationTransformer,l.NodeTransformer.VariablePreserveTransformer]}getVisitor(e){switch(e){case u.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){return m.NodeMetadata.set(e,{ignoredNode:!1}),p.NodeGuards.isLiteralNode(e)&&m.NodeMetadata.set(e,{replacedLiteral:!1}),e}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.MetadataTransformer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatingGuardsTransformer=void 0;const a=r(0),s=r(1),c=r(223),d=r(2),l=r(3),u=r(13),f=r(73),p=r(10),m=r(11),g=r(4),h=r(19);let y=(()=>{var e,t,r,y;let b=e=class extends m.AbstractNodeTransformer{constructor(t,r,o){super(r,o),this.runAfter=[u.NodeTransformer.ParentificationTransformer,u.NodeTransformer.VariablePreserveTransformer],this.obfuscatingGuards=e.obfuscatingGuardsList.map(t)}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){const r=this.obfuscatingGuards.every(t=>t.check(e));return h.NodeMetadata.set(e,{ignoredNode:!(g.NodeGuards.isProgramNode(e)||r)}),e}};return b.obfuscatingGuardsList=[f.ObfuscatingGuard.BlackListObfuscatingGuard,f.ObfuscatingGuard.ConditionalCommentObfuscatingGuard,f.ObfuscatingGuard.ReservedStringObfuscatingGuard],b=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__INodeGuard)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TObfuscatingGuardFactory&&c.TObfuscatingGuardFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(y=void 0!==d.IOptions&&d.IOptions)?y:Object])],b),b})();t.ObfuscatingGuardsTransformer=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParentificationTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(6);let p=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){return f.NodeUtils.parentizeNode(e,t)}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ParentificationTransformer=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReservedStringObfuscatingGuard=void 0;const a=r(0),s=r(2),c=r(1),d=r(4);let l=(()=>{var e;let t=class{constructor(e){this.options=e}check(e){return!this.options.reservedStrings.length||!d.NodeGuards.isLiteralNode(e)||"string"!=typeof e.value||!this.isReservedString(e.value)}isReservedString(e){return this.options.reservedStrings.some(t=>null!==new RegExp(t,"g").exec(e))}};return t=o([a.injectable(),i(0,a.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==s.IOptions&&s.IOptions)?e:Object])],t),t})();t.ReservedStringObfuscatingGuard=l},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariablePreserveTransformer=void 0;const a=r(0),s=r(51),c=r(2),d=r(3),l=r(71),u=r(13),f=r(1),p=r(10),m=r(11),g=r(39),h=r(4);let y=(()=>{var e,t,r,y;let b=class extends m.AbstractNodeTransformer{constructor(e,t,r,o){super(t,r),this.runAfter=[u.NodeTransformer.ParentificationTransformer],this.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),this.scopeIdentifiersTraverser=o,this.preserveScopeVariableIdentifiers=this.preserveScopeVariableIdentifiers.bind(this)}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:case p.NodeTransformationStage.Converting:case p.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&h.NodeGuards.isProgramNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return this.scopeIdentifiersTraverser.traverse(e,t,this.preserveScopeVariableIdentifiers),e}preserveScopeVariableIdentifiers(e){const{isGlobalDeclaration:t,isBubblingDeclaration:r,variable:o,variableScope:n}=e;for(const e of o.identifiers)t||r?this.preserveIdentifierNameForRootLexicalScope(e):this.preserveIdentifierNameForLexicalScope(e,n)}preserveIdentifierNameForRootLexicalScope(e){this.identifierObfuscatingReplacer.preserveName(e)}preserveIdentifierNameForLexicalScope(e,t){const r=h.NodeGuards.isNodeWithLexicalScope(t.block)?t.block:null;r&&this.identifierObfuscatingReplacer.preserveNameForLexicalScope(e,r)}};return b=o([a.injectable(),i(0,a.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),i(1,a.inject(f.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(f.ServiceIdentifiers.IOptions)),i(3,a.inject(f.ServiceIdentifiers.IScopeIdentifiersTraverser)),n("design:paramtypes",["function"==typeof(e=void 0!==s.TIdentifierObfuscatingReplacerFactory&&s.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object,"function"==typeof(y=void 0!==l.IScopeIdentifiersTraverser&&l.IScopeIdentifiersTraverser)?y:Object])],b),b})();t.VariablePreserveTransformer=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storagesModule=void 0;const o=r(0),n=r(1),i=r(228),a=r(229),s=r(231);t.storagesModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.TCustomNodeGroupStorage).to(a.CustomCodeHelperGroupStorage).inSingletonScope(),e(n.ServiceIdentifiers.IStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(n.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(i.ControlFlowStorage),e(n.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(e=>()=>{const t=new(e.container.get(n.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(n.ServiceIdentifiers.IRandomGenerator),e.container.get(n.ServiceIdentifiers.IOptions));return t.initialize(),t})})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowStorage=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(52);let u=(()=>{var e,t;let r=class extends l.MapStorage{constructor(e,t){super(e,t)}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ControlFlowStorage=u},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperGroupStorage=void 0;const a=r(0),s=r(1),c=r(230),d=r(2),l=r(3),u=r(66),f=r(52);let p=(()=>{var e,t,r,p;let m=e=class extends f.MapStorage{constructor(e,t,r){super(t,r),this.customCodeHelperGroupFactory=e}initialize(){super.initialize(),e.customCodeHelperGroupsList.forEach(e=>{const t=this.customCodeHelperGroupFactory(e);this.storage.set(e,t)})}};return m.customCodeHelperGroupsList=[u.CustomCodeHelperGroup.ConsoleOutput,u.CustomCodeHelperGroup.DebugProtection,u.CustomCodeHelperGroup.DomainLock,u.CustomCodeHelperGroup.SelfDefending,u.CustomCodeHelperGroup.StringArray],o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],m.prototype,"initialize",null),m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelperGroup)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperGroupFactory&&c.TCustomCodeHelperGroupFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(p=void 0!==d.IOptions&&d.IOptions)?p:Object])],m),m})();t.CustomCodeHelperGroupStorage=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayStorage=void 0;const a=r(0),s=r(1),c=r(5),d=r(36),l=r(49),u=r(33),f=r(2),p=r(3),m=r(28),g=r(52);let h=(()=>{var e,t,r,h,y,b,v;let N=e=class extends g.MapStorage{constructor(t,r,o,n,i,a){super(o,n),this.rc4EncodedValuesSourcesCache=new Map,this.rotationAmount=0,this.identifierNamesGenerator=t(n),this.arrayUtils=r,this.cryptUtils=i,this.escapeSequenceEncoder=a,this.rc4Keys=this.randomGenerator.getRandomGenerator().n(()=>this.randomGenerator.getRandomGenerator().string({length:e.rc4KeyLength}),e.rc4KeysCount)}initialize(){super.initialize(),this.rotationAmount=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(e.minimumRotationAmount,e.maximumRotationAmount):0}get(e){return this.getOrSetIfDoesNotExist(e)}getRotationAmount(){return this.rotationAmount}getStorageName(){return this.getStorageId()}getStorageId(){return this.stringArrayStorageName||(this.stringArrayStorageName=this.identifierNamesGenerator.generateForGlobalScope(e.stringArrayNameLength)),this.stringArrayStorageName}getStorageCallsWrapperName(){return this.stringArrayStorageCallsWrapperName||(this.stringArrayStorageCallsWrapperName=this.identifierNamesGenerator.generateForGlobalScope(e.stringArrayNameLength)),this.stringArrayStorageCallsWrapperName}rotateStorage(){this.getLength()&&(this.storage=new Map(this.arrayUtils.rotate(Array.from(this.storage.entries()),this.rotationAmount)))}shuffleStorage(){this.storage=new Map(this.arrayUtils.shuffle(Array.from(this.storage.entries())).map(([e,t],r)=>(t.index=r,[e,t])).sort(([,e],[,t])=>e.index-t.index))}toString(){return Array.from(this.storage.values()).map(e=>`'${this.escapeSequenceEncoder.encode(e.encodedValue,this.options.unicodeEscapeSequence)}'`).toString()}getOrSetIfDoesNotExist(e){const{encodedValue:t,decodeKey:r}=this.getEncodedValue(e),o=this.storage.get(t);if(o)return o;const n={encodedValue:t,decodeKey:r,value:e,index:this.getLength()};return this.storage.set(t,n),n}getEncodedValue(e){var t;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:{const r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),o=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r)),n=null!==(t=this.rc4EncodedValuesSourcesCache.get(o))&&void 0!==t?t:[];let i=n.length;return(!i||!n.includes(e))&&(n.push(e),i++),this.rc4EncodedValuesSourcesCache.set(o,n),i>1?this.getEncodedValue(e):{encodedValue:o,decodeKey:r}}case m.StringArrayEncoding.Base64:{const t=null;return{encodedValue:this.cryptUtils.btoa(e),decodeKey:t}}default:return{encodedValue:e,decodeKey:null}}}};return N.minimumRotationAmount=100,N.maximumRotationAmount=500,N.rc4KeyLength=4,N.rc4KeysCount=50,N.stringArrayNameLength=4,o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],N.prototype,"initialize",null),N=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IArrayUtils)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),i(4,a.inject(s.ServiceIdentifiers.ICryptUtils)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.IArrayUtils&&d.IArrayUtils)?r:Object,"function"==typeof(h=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?h:Object,"function"==typeof(y=void 0!==f.IOptions&&f.IOptions)?y:Object,"function"==typeof(b=void 0!==l.ICryptUtils&&l.ICryptUtils)?b:Object,"function"==typeof(v=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?v:Object])],N),N})();t.StringArrayStorage=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utilsModule=void 0;const o=r(0),n=r(1),i=r(233),a=r(234),s=r(238),c=r(239),d=r(74);t.utilsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IArrayUtils).to(i.ArrayUtils).inSingletonScope(),e(n.ServiceIdentifiers.IRandomGenerator).to(d.RandomGenerator).inSingletonScope(),e(n.ServiceIdentifiers.ICryptUtils).to(a.CryptUtils).inSingletonScope(),e(n.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope(),e(n.ServiceIdentifiers.ILevelledTopologicalSorter).to(c.LevelledTopologicalSorter)})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0;const a=r(0),s=r(1),c=r(3);let d=(()=>{var e;let t=class{constructor(e){this.randomGenerator=e}createWithRange(e){const t=[];for(let r=0;rn&&(o=i,n=e),r[i]=e}return o}rotate(e,t){if(!e.length)throw new ReferenceError("Cannot rotate empty array.");if(t<=0)return e;const r=e;let o;for(;t--;)o=r.pop(),o&&r.unshift(o);return r}shuffle(e){const t=[...e];for(let e=t.length;e;e--){const r=Math.floor(this.randomGenerator.getMathRandom()*e);[t[e-1],t[r]]=[t[r],t[e-1]]}return t}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IRandomGenerator&&c.IRandomGenerator)?e:Object])],t),t})();t.ArrayUtils=d},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CryptUtils=void 0;const a=r(0),s=r(1),c=r(3),d=r(74),l=r(26);let u=(()=>{var e;let t=class{constructor(e){this.randomGenerator=e}btoa(e){let t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(`${l.Utils.hexadecimalPrefix}${t}`,16)));for(let r,o,n=0,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|n)||(i="=",n%1);t+=i.charAt(63&r>>8-n%1*8)){if(o=e.charCodeAt(n+=3/4),o>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|o}return t}hideString(e,t){let r=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp(`[${o=e,o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}]`,"g"),"");var o;const n=r.split("");return this.randomGenerator.getRandomGenerator().shuffle(n),r=n.join(""),[((e,t)=>{let r=-1,o=-1,n="";for(;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceEncoder=void 0;const n=r(0);let i=(()=>{let e=class{constructor(){this.stringsCache=new Map}encode(e,t){const r=`${e}-${String(t)}`;if(this.stringsCache.has(r))return this.stringsCache.get(r);const o=new RegExp("[\\s\\S]","g"),n=new RegExp("['\"\\\\\\s]"),i=new RegExp("[\\x00-\\x7F]");let a,s;const c=e.replace(o,e=>t||n.exec(e)?(i.exec(e)?(a="\\x",s="00"):(a="\\u",s="0000"),`${a}${(s+e.charCodeAt(0).toString(16)).slice(-s.length)}`):e);return this.stringsCache.set(r,c),this.stringsCache.set(`${c}-${String(t)}`,c),c}};return e=o([n.injectable()],e),e})();t.EscapeSequenceEncoder=i},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.LevelledTopologicalSorter=void 0;const n=r(0);let i=(()=>{let e=class{constructor(){this.graph=new Map}add(e,t=null){return null!==t?this.link(e,t):this.register(e)}sort(){const e=Array.from(this.graph.keys()),t=[],r={};for(const o of e)void 0===r[o]&&this.visit(t,r,o);return t}sortByGroups(){this.sort();const e=[];for(;this.hasNodes();){const t=this.findRootNodes();e.push(t);for(const e of t)this.delete(e)}return e}delete(e){if(this.getPrecedents(e).length)throw new Error(`Unable to remove non-root node: ${e}`);this.graph.delete(e);const t=Array.from(this.graph.values());for(const r of t){for(let t=r.length-1;t>=0;t-=1)r[t]===e&&r.splice(t,1)}}findRootNodes(){const e=Array.from(this.graph.keys()),t=[];for(const r of e)this.hasPrecedents(r)||t.push(r);return t}getPrecedents(e){const t=this.graph.get(e);if(!t)throw new Error(`Unknown node: ${e}`);return t}hasNodes(){return this.graph.size>0}hasPrecedents(e){return this.getPrecedents(e).length>0}link(e,t){this.register(e),this.register(t);const r=this.graph.get(t);return r&&!r.includes(e)&&r.push(e),this}register(e){return this.graph.has(e)||this.graph.set(e,[]),this}visit(e,t,r){const o=t[r];if("visiting"===o)throw new Error(`Detected cycle involving node: ${r}`);if(o)return;t[r]="visiting";const n=this.getPrecedents(r);for(const r of n)this.visit(e,t,r);t[r]="ok",e.push(r)}};return e=o([n.injectable()],e),e})();t.LevelledTopologicalSorter=i},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformersRunner=void 0;const a=r(0),s=r(1),c=r(241),d=r(75);let l=(()=>{var e,t;let r=class{constructor(e,t){this.codeTransformerFactory=e,this.codeTransformerNamesGroupsBuilder=t}transform(e,t,r){if(!t.length)return e;const o=this.buildNormalizedCodeTransformers(t,r),n=this.codeTransformerNamesGroupsBuilder.build(o);for(const t of n)for(const n of t){e=o[n].transformCode(e,r)}return e}buildNormalizedCodeTransformers(e,t){return e.reduce((e,t)=>{const r=this.codeTransformerFactory(t);return Object.assign(Object.assign({},e),{[t]:r})},{})}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICodeTransformer)),i(1,a.inject(s.ServiceIdentifiers.ICodeTransformerNamesGroupsBuilder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TCodeTransformerFactory&&c.TCodeTransformerFactory)?e:Object,"function"==typeof(t=void 0!==d.ITransformerNamesGroupsBuilder&&d.ITransformerNamesGroupsBuilder)?t:Object])],r),r})();t.CodeTransformersRunner=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscator=void 0;const d=r(0),l=r(1),u=a(r(47)),f=r(243),p=r(244),m=r(245),g=r(2),h=r(3),y=r(62),b=r(55),v=r(57),N=r(246),I=r(13),O=r(10),S=r(44),C=r(60),j=r(4),_=r(26);let R=(()=>{var e,t,r,o,n,a,R;let F=e=class{constructor(e,t,r,o,n,i){this.codeTransformersRunner=e,this.nodeTransformersRunner=t,this.randomGenerator=r,this.obfuscatedCodeFactory=o,this.logger=n,this.options=i}obfuscate(e){"string"!=typeof e&&(e="");const t=Date.now();this.logger.info(N.LoggingMessage.Version,_.Utils.buildVersionMessage("0.28.3",1590871705560)),this.logger.info(N.LoggingMessage.ObfuscationStarted),this.logger.info(N.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getInputSeed()),e=this.runCodeTransformationStage(e,v.CodeTransformationStage.PreparingTransformers);const r=this.parseCode(e),o=this.transformAstTree(r),n=this.generateCode(e,o);n.code=this.runCodeTransformationStage(n.code,v.CodeTransformationStage.FinalizingTransformers);const i=(Date.now()-t)/1e3;return this.logger.success(N.LoggingMessage.ObfuscationCompleted,i),this.getObfuscatedCode(n)}parseCode(t){return C.ASTParserFacade.parse(t,e.parseOptions)}transformAstTree(e){return e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Initializing),!j.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.ControlFlowFlattening)),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Converting),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Obfuscating),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Finalizing)):(this.logger.warn(N.LoggingMessage.EmptySourceCode),e)}generateCode(t,r){const o=Object.assign({},e.escodegenParams);this.options.sourceMap&&(o.sourceMap=this.options.inputFileName||"sourceMap",o.sourceContent=t);const n=u.generate(r,Object.assign(Object.assign({},o),{format:{compact:this.options.compact}}));return n.map=n.map?n.map.toString():"",n}getObfuscatedCode(e){return this.obfuscatedCodeFactory(e.code,e.map)}runCodeTransformationStage(t,r){return this.logger.info(N.LoggingMessage.CodeTransformationStage,r),this.codeTransformersRunner.transform(t,e.codeTransformersList,r)}runNodeTransformationStage(t,r){return this.logger.info(N.LoggingMessage.NodeTransformationStage,r),this.nodeTransformersRunner.transform(t,e.nodeTransformersList,r)}};return F.parseOptions={ecmaVersion:S.ecmaVersion,allowHashBang:!0,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,locations:!0,ranges:!0},F.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},F.codeTransformersList=[b.CodeTransformer.HashbangOperatorTransformer],F.nodeTransformersList=[I.NodeTransformer.BlockStatementControlFlowTransformer,I.NodeTransformer.CommentsTransformer,I.NodeTransformer.CustomCodeHelpersTransformer,I.NodeTransformer.DeadCodeInjectionTransformer,I.NodeTransformer.EvalCallExpressionTransformer,I.NodeTransformer.FunctionControlFlowTransformer,I.NodeTransformer.LabeledStatementTransformer,I.NodeTransformer.LiteralTransformer,I.NodeTransformer.MemberExpressionTransformer,I.NodeTransformer.MetadataTransformer,I.NodeTransformer.MethodDefinitionTransformer,I.NodeTransformer.ObfuscatingGuardsTransformer,I.NodeTransformer.ObjectExpressionKeysTransformer,I.NodeTransformer.ObjectExpressionTransformer,I.NodeTransformer.ParentificationTransformer,I.NodeTransformer.ScopeIdentifiersTransformer,I.NodeTransformer.SplitStringTransformer,I.NodeTransformer.TemplateLiteralTransformer,I.NodeTransformer.VariablePreserveTransformer],F=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.ICodeTransformersRunner)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformersRunner)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.Factory__IObfuscatedCode)),c(4,d.inject(l.ServiceIdentifiers.ILogger)),c(5,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.ICodeTransformersRunner&&p.ICodeTransformersRunner)?t:Object,"function"==typeof(r=void 0!==y.INodeTransformersRunner&&y.INodeTransformersRunner)?r:Object,"function"==typeof(o=void 0!==h.IRandomGenerator&&h.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==f.TObfuscatedCodeFactory&&f.TObfuscatedCodeFactory)?n:Object,"function"==typeof(a=void 0!==m.ILogger&&m.ILogger)?a:Object,"function"==typeof(R=void 0!==g.IOptions&&g.IOptions)?R:Object])],F),F})();t.JavaScriptObfuscator=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingMessage=void 0,function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.CodeTransformationStage="Code transformation stage: %s...",e.NodeTransformationStage="AST transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformersRunner=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(248),p=r(75),m=r(249),g=r(4),h=r(19);let y=(()=>{var e,t;let r=class{constructor(e,t){this.nodeTransformerFactory=e,this.nodeTransformerNamesGroupsBuilder=t}transform(e,t,r){if(!t.length)return e;const o=this.buildNormalizedNodeTransformers(t,r),n=this.nodeTransformerNamesGroupsBuilder.build(o);for(const t of n){const n=[],i=[];for(const e of t){const t=o[e].getVisitor(r);t&&(t.enter&&n.push({enter:t.enter}),t.leave&&i.push({leave:t.leave}))}(n.length||i.length)&&u.replace(e,{enter:this.mergeVisitorsForDirection(n,m.VisitorDirection.Enter),leave:this.mergeVisitorsForDirection(i,m.VisitorDirection.Leave)})}return e}buildNormalizedNodeTransformers(e,t){return e.reduce((e,r)=>{const o=this.nodeTransformerFactory(r);return o.getVisitor(t)?Object.assign(Object.assign({},e),{[r]:o}):e},{})}mergeVisitorsForDirection(e,t){const r=e.length;return r?(o,n)=>{if(h.NodeMetadata.isIgnoredNode(o))return u.VisitorOption.Skip;for(let i=0;ie}};return r=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__INodeTransformer)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformerNamesGroupsBuilder)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TNodeTransformerFactory&&f.TNodeTransformerFactory)?e:Object,"function"==typeof(t=void 0!==p.ITransformerNamesGroupsBuilder&&p.ITransformerNamesGroupsBuilder)?t:Object])],r),r})();t.NodeTransformersRunner=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisitorDirection=void 0,function(e){e.Enter="enter",e.Leave="leave"}(t.VisitorDirection||(t.VisitorDirection={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationEventEmitter=void 0;const i=r(0),a=n(r(251));i.decorate(i.injectable(),a.default);let s=(()=>{let e=class extends a.default{};return e=o([i.injectable()],e),e})();t.ObfuscationEventEmitter=s},function(e,t){e.exports=require("eventemitter3")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatedCode=void 0;const a=r(0),s=r(1),c=r(49),d=r(7),l=r(32),u=r(2);let f=(()=>{var e,t;let r=class{constructor(e,t){this.cryptUtils=e,this.options=t}initialize(e,t){this.obfuscatedCode=e,this.sourceMap=t}getObfuscatedCode(){return this.correctObfuscatedCode()}getSourceMap(){return this.sourceMap}toString(){return this.obfuscatedCode}correctObfuscatedCode(){if(!this.sourceMap)return this.obfuscatedCode;const e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName;let t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case l.SourceMapMode.Inline:t+=`data:application/json;base64,${this.cryptUtils.btoa(this.sourceMap)}`;break;case l.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return`${this.obfuscatedCode}\n${t}`}};return o([d.initializable(),n("design:type",String)],r.prototype,"obfuscatedCode",void 0),o([d.initializable(),n("design:type",String)],r.prototype,"sourceMap",void 0),r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ICryptUtils)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.ICryptUtils&&c.ICryptUtils)?e:Object,"function"==typeof(t=void 0!==u.IOptions&&u.IOptions)?t:Object])],r),r})();t.ObfuscatedCode=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceCode=void 0;t.SourceCode=class{constructor(e,t){this.sourceCode=e,this.sourceMap=t}getSourceCode(){return this.sourceCode}getSourceMap(){return this.sourceMap}toString(){return this.sourceCode}}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscatorCLI=void 0;const c=a(r(260)),d=a(r(255)),l=r(261),u=r(7),f=r(78),p=r(32),m=r(41),g=r(262),h=r(263),y=r(264),b=r(265),v=r(266),N=r(267),I=r(268),O=r(53),S=r(77),C=r(270),j=r(272),_=r(26);let R=(()=>{var e,t,r,o;class n{constructor(e){this.rawArguments=e,this.arguments=e.slice(2)}static buildOptions(e){const t=n.filterOptions(e),r=e.config,o=r?d.resolve(r,"."):"",i=o?I.CLIUtils.getUserConfig(o):{};return Object.assign(Object.assign(Object.assign({},m.DEFAULT_PRESET),i),t)}static filterOptions(e){const t={};return Object.keys(e).forEach(r=>{void 0!==e[r]&&(t[r]=e[r])}),t}initialize(){this.inputPath=d.normalize(this.arguments[0]||""),this.commands=new c.Command,this.configureCommands(),this.configureHelp(),this.inputCLIOptions=n.buildOptions(this.commands.opts()),this.sourceCodeReader=new j.SourceCodeReader(this.inputPath,this.inputCLIOptions),this.obfuscatedCodeWriter=new C.ObfuscatedCodeWriter(this.inputPath,this.inputCLIOptions)}run(){if(!this.arguments.length||this.arguments.includes("--help"))return void this.commands.outputHelp();const e=this.sourceCodeReader.readSourceCode();this.processSourceCodeData(e)}configureCommands(){this.commands.usage(" [options]").version(_.Utils.buildVersionMessage("0.28.3",1590871705560),"-v, --version").option("-o, --output ","Output path for obfuscated code").option("--compact ","Disable one line output code compacting",h.BooleanSanitizer).option("--config ","Name of js / json config file").option("--control-flow-flattening ","Enables control flow flattening",h.BooleanSanitizer).option("--control-flow-flattening-threshold ","The probability that the control flow flattening transformation will be applied to the node",parseFloat).option("--dead-code-injection ","Enables dead code injection",h.BooleanSanitizer).option("--dead-code-injection-threshold ","The probability that the dead code injection transformation will be applied to the node",parseFloat).option("--debug-protection ","Disable browser Debug panel (can cause DevTools enabled browser freeze)",h.BooleanSanitizer).option("--debug-protection-interval ","Disable browser Debug panel even after page was loaded (can cause DevTools enabled browser freeze)",h.BooleanSanitizer).option("--disable-console-output ","Allow console.log, console.info, console.error and console.warn messages output into browser console",h.BooleanSanitizer).option("--domain-lock (comma separated, without whitespaces)","Blocks the execution of the code in domains that do not match the passed RegExp patterns (comma separated)",g.ArraySanitizer).option("--exclude (comma separated, without whitespaces)","A filename or glob which indicates files to exclude from obfuscation",g.ArraySanitizer).option("--identifier-names-generator ","Sets identifier names generator. Values: hexadecimal, mangled, dictionary. Default: hexadecimal",y.IdentifierNamesGeneratorSanitizer).option("--identifiers-prefix ","Sets prefix for all global identifiers.").option("--identifiers-dictionary (comma separated, without whitespaces)","Identifiers dictionary (comma separated) for `--identifier-names-generator dictionary` option",g.ArraySanitizer).option("--log ","Enables logging of the information to the console",h.BooleanSanitizer).option("--reserved-names (comma separated, without whitespaces)","Disables obfuscation and generation of identifiers, which being matched by passed RegExp patterns (comma separated)",g.ArraySanitizer).option("--reserved-strings (comma separated, without whitespaces)","Disables transformation of string literals, which being matched by passed RegExp patterns (comma separated)",g.ArraySanitizer).option("--rename-globals ","Allows to enable obfuscation of global variable and function names with declaration.",h.BooleanSanitizer).option("--rotate-string-array ","Enable rotation of string array values during obfuscation",h.BooleanSanitizer).option("--seed ","Sets seed for random generator. This is useful for creating repeatable results.",parseFloat).option("--self-defending ","Disables self-defending for obfuscated code",h.BooleanSanitizer).option("--shuffle-string-array ","Randomly shuffles string array items",h.BooleanSanitizer).option("--source-map ","Enables source map generation",h.BooleanSanitizer).option("--source-map-base-url ","Sets base url to the source map import url when `--source-map-mode=separate`").option("--source-map-file-name ","Sets file name for output source map when `--source-map-mode=separate`").option("--source-map-mode ","Specify source map output mode. Values: inline, separate. Default: separate",v.SourceMapModeSanitizer).option("--split-strings ","Splits literal strings into chunks with length of `splitStringsChunkLength` option value",h.BooleanSanitizer).option("--split-strings-chunk-length ","Sets chunk length of `splitStrings` option",parseFloat).option("--string-array ","Disables gathering of all literal strings into an array and replacing every literal string with an array call",h.BooleanSanitizer).option("--string-array-encoding ","Encodes all strings in strings array using base64 or rc4 (this option can slow down your code speed. Values: true, false, base64, rc4. Default: false",N.StringArrayEncodingSanitizer).option("--string-array-threshold ","The probability that the literal string will be inserted into stringArray (Default: 0.8, Min: 0, Max: 1)",parseFloat).option("--target ","Allows to set target environment for obfuscated code. Values: browser, browser-no-eval, node. Default: browser",b.ObfuscationTargetSanitizer).option("--transform-object-keys ","Enables transformation of object keys",h.BooleanSanitizer).option("--unicode-escape-sequence ","Allows to enable/disable string conversion to unicode escape sequence",h.BooleanSanitizer).parse(this.rawArguments)}configureHelp(){this.commands.on("--help",()=>{console.log(" Examples:\n"),console.log(" %> javascript-obfuscator input_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_file_name.js --output output_file_name.js --compact true --self-defending false"),console.log(" %> javascript-obfuscator input_directory_name --compact true --self-defending false"),console.log("")})}processSourceCodeData(e){e.forEach(({filePath:e,content:t},r)=>{const o=this.obfuscatedCodeWriter.getOutputCodePath(e);try{S.Logger.log(S.Logger.colorInfo,f.LoggingPrefix.CLI,`Obfuscating file: ${e}...`),this.processSourceCode(t,e,o,r)}catch(t){throw S.Logger.log(S.Logger.colorInfo,f.LoggingPrefix.CLI,`Error in file: ${e}...`),t}})}processSourceCode(e,t,r,o){const n=Object.assign(Object.assign(Object.assign({},this.inputCLIOptions),{inputFileName:d.basename(t)}),null!==o&&{identifiersPrefix:_.Utils.getIdentifiersPrefixForMultipleSources(this.inputCLIOptions.identifiersPrefix,o)});n.sourceMap?this.processSourceCodeWithSourceMap(e,r,n):this.processSourceCodeWithoutSourceMap(e,r,n)}processSourceCodeWithoutSourceMap(e,t,r){const o=O.JavaScriptObfuscator.obfuscate(e,r).getObfuscatedCode();this.obfuscatedCodeWriter.writeFile(t,o)}processSourceCodeWithSourceMap(e,t,r){var o;const n=this.obfuscatedCodeWriter.getOutputSourceMapPath(t,null!==(o=r.sourceMapFileName)&&void 0!==o?o:"");r=Object.assign(Object.assign({},r),{sourceMapFileName:d.basename(n)});const i=O.JavaScriptObfuscator.obfuscate(e,r);this.obfuscatedCodeWriter.writeFile(t,i.getObfuscatedCode()),r.sourceMapMode===p.SourceMapMode.Separate&&i.getSourceMap()&&this.obfuscatedCodeWriter.writeFile(n,i.getSourceMap())}}return n.availableInputExtensions=[".js"],n.encoding="utf8",n.obfuscatedFilePrefix="-obfuscated",i([u.initializable(),s("design:type","function"==typeof(e=void 0!==c&&c.CommanderStatic)?e:Object)],n.prototype,"commands",void 0),i([u.initializable(),s("design:type","function"==typeof(t=void 0!==l.TInputCLIOptions&&l.TInputCLIOptions)?t:Object)],n.prototype,"inputCLIOptions",void 0),i([u.initializable(),s("design:type",String)],n.prototype,"inputPath",void 0),i([u.initializable(),s("design:type","function"==typeof(r=void 0!==j.SourceCodeReader&&j.SourceCodeReader)?r:Object)],n.prototype,"sourceCodeReader",void 0),i([u.initializable(),s("design:type","function"==typeof(o=void 0!==C.ObfuscatedCodeWriter&&C.ObfuscatedCodeWriter)?o:Object)],n.prototype,"obfuscatedCodeWriter",void 0),n})();t.JavaScriptObfuscatorCLI=R},function(e,t){e.exports=require("path")},function(e,t){e.exports=require("fs")},,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(259);e.exports=o.JavaScriptObfuscatorCLI},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscatorCLI=void 0,r(76);const o=r(254);t.JavaScriptObfuscatorCLI=class{static obfuscate(e){const t=new o.JavaScriptObfuscatorCLI(e);t.initialize(),t.run()}}},function(e,t){e.exports=require("commander")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArraySanitizer=void 0,t.ArraySanitizer=e=>{if(e.endsWith(","))throw new SyntaxError("Multiple values should be wrapped inside quotes: --option-name 'value1','value2'");return e.split(",").map(e=>e.trim())}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanSanitizer=void 0,t.BooleanSanitizer=e=>"true"===e||"1"===e},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierNamesGeneratorSanitizer=void 0;const o=r(34);t.IdentifierNamesGeneratorSanitizer=e=>{if(!Object.keys(o.IdentifierNamesGenerator).some(t=>o.IdentifierNamesGenerator[t]===e))throw new ReferenceError("Invalid value of `--identifier-names-generator` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationTargetSanitizer=void 0;const o=r(24);t.ObfuscationTargetSanitizer=e=>{if(!Object.keys(o.ObfuscationTarget).some(t=>o.ObfuscationTarget[t]===e))throw new ReferenceError("Invalid value of `--target` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapModeSanitizer=void 0;const o=r(32);t.SourceMapModeSanitizer=e=>{if(!Object.keys(o.SourceMapMode).some(t=>o.SourceMapMode[t]===e))throw new ReferenceError("Invalid value of `--source-map-mode` option");return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncodingSanitizer=void 0;const o=r(28);t.StringArrayEncodingSanitizer=e=>{switch(e){case"true":case"1":case o.StringArrayEncoding.Base64:return!0;case o.StringArrayEncoding.Rc4:return o.StringArrayEncoding.Rc4;default:return!1}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CLIUtils=void 0;t.CLIUtils=class{static getUserConfig(e){let t;try{t=r(269)(e)}catch(r){try{t=require(e)}catch(e){throw new ReferenceError("Given config path must be a valid `.js` or `.json` file path")}}return t}}},function(e,t){function r(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}r.keys=function(){return[]},r.resolve=r,e.exports=r,r.id=269},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatedCodeWriter=void 0;const a=i(r(256)),s=i(r(271)),c=i(r(255)),d=r(42),l=r(254);t.ObfuscatedCodeWriter=class{constructor(e,t){this.inputPath=e,this.options=t}getOutputCodePath(e){const t=this.options.output?c.normalize(this.options.output):null;if(!t)return c.normalize(e).split(d.StringSeparator.Dot).map((e,t)=>0===t?`${e}${l.JavaScriptObfuscatorCLI.obfuscatedFilePrefix}`:e).join(d.StringSeparator.Dot);const r=a.lstatSync(this.inputPath),o=c.extname(t),n=r.isDirectory(),i=!l.JavaScriptObfuscatorCLI.availableInputExtensions.includes(o);if(n){if(i)return c.join(t,e);throw new Error("Output path for directory obfuscation should be a directory path")}return i?c.join(t,c.basename(e)):t}getOutputSourceMapPath(e,t=""){return t&&(e=`${e.substring(0,e.lastIndexOf("/"))}/${t}`),/\.js\.map$/.test(e)?/\.js$/.test(e)&&(e+=".map"):e=`${e.split(d.StringSeparator.Dot)[0]}.js.map`,e}writeFile(e,t){s.sync(c.dirname(e)),a.writeFileSync(e,t,{encoding:l.JavaScriptObfuscatorCLI.encoding})}}},function(e,t){e.exports=require("mkdirp")},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.SourceCodeReader=void 0;const s=i(r(256)),c=i(r(255)),d=a(r(273)),l=r(254);class u{constructor(e,t){this.inputPath=e,this.options=t}static isExcludedPath(e,t=[]){if(!t.length)return!1;const r=c.basename(e),o=!!d.default([e],t).length;return t.some(t=>e.includes(t)||r.includes(t))||o}static isDirectoryPath(e){try{return s.statSync(e).isDirectory()}catch(e){return!1}}static isFilePath(e){try{return s.statSync(e).isFile()}catch(e){return!1}}static isValidDirectory(e,t=[]){return!u.isExcludedPath(e,t)}static isValidFile(e,t=[]){return l.JavaScriptObfuscatorCLI.availableInputExtensions.includes(c.extname(e))&&!e.includes(l.JavaScriptObfuscatorCLI.obfuscatedFilePrefix)&&!u.isExcludedPath(e,t)}static readFile(e){return{filePath:c.normalize(e),content:s.readFileSync(e,l.JavaScriptObfuscatorCLI.encoding)}}readSourceCode(){if(u.isFilePath(this.inputPath)&&u.isValidFile(this.inputPath,this.options.exclude))return[u.readFile(this.inputPath)];if(u.isDirectoryPath(this.inputPath)&&u.isValidDirectory(this.inputPath,this.options.exclude))return this.readDirectoryRecursive(this.inputPath);const e=l.JavaScriptObfuscatorCLI.availableInputExtensions.map(e=>`\`${e}\``).join(", ");throw new ReferenceError(`Given input path must be a valid ${e} file or directory path`)}readDirectoryRecursive(e,t=[]){return s.readdirSync(e,l.JavaScriptObfuscatorCLI.encoding).forEach(r=>{const o=`${e}/${r}`;if(u.isDirectoryPath(o)&&u.isValidDirectory(o,this.options.exclude))t.push(...this.readDirectoryRecursive(o));else if(u.isFilePath(o)&&u.isValidFile(o,this.options.exclude)){const e=u.readFile(o);t.push(e)}else;}),t}}t.SourceCodeReader=u},function(e,t){e.exports=require("multimatch")}]); //# sourceMappingURL=index.cli.js.map \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 4c01d4c2b..b6b767bcd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -21,5 +21,5 @@ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -require("source-map-support").install(),module.exports=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=257)}([function(e,t){e.exports=require("inversify")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceIdentifiers=void 0,function(e){e.Factory__ICalleeDataExtractor="Factory",e.Factory__ICodeTransformer="Factory",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomCodeHelper="Factory",e.Factory__ICustomCodeHelperGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscatedCode="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__IObjectExpressionKeysTransformerCustomNode="Factory",e.Factory__IObjectExpressionExtractor="Factory",e.Factory__TControlFlowStorage="Factory",e.IArrayUtils="IArrayUtils",e.ICalleeDataExtractor="ICalleeDataExtractor",e.ICallsGraphAnalyzer="ICallsGraphAnalyzer",e.ICodeTransformer="ICodeTransformer",e.ICodeTransformerNamesGroupsBuilder="ICodeTransformerNamesGroupsBuilder",e.ICodeTransformersRunner="ICodeTransformersRunner",e.ICryptUtils="ICryptUtils",e.ICustomCodeHelper="ICustomCodeHelper",e.ICustomCodeHelperGroup="ICustomCodeHelperGroup",e.IControlFlowReplacer="IControlFlowReplacer",e.ICustomCodeHelperFormatter="ICustomCodeHelperFormatter",e.ICustomCodeHelperObfuscator="ICustomCodeHelperObfuscator",e.IEscapeSequenceEncoder="IEscapeSequenceEncoder",e.IIdentifierNamesGenerator="IIdentifierNamesGenerator",e.IIdentifierObfuscatingReplacer="IIdentifierObfuscatingReplacer",e.IJavaScriptObfuscator="IJavaScriptObfuscator",e.ILevelledTopologicalSorter="ILevelledTopologicalSorter",e.ILogger="ILogger",e.INodeGuard="INodeGuard",e.INodeTransformer="INodeTransformer",e.INodeTransformerNamesGroupsBuilder="INodeTransformerNamesGroupsBuilder",e.IObfuscationEventEmitter="IObfuscationEventEmitter",e.IObfuscatedCode="IObfuscatedCode",e.IOptions="IOptions",e.IOptionsNormalizer="IOptionsNormalizer",e.IObfuscatingReplacer="IObfuscatingReplacer",e.IPrevailingKindOfVariablesAnalyzer="IPrevailingKindOfVariablesAnalyzer",e.IObjectExpressionExtractor="IObjectExpressionExtractor",e.IRandomGenerator="IRandomGenerator",e.IScopeIdentifiersTraverser="IScopeIdentifiersTraverser",e.ISourceCode="ISourceCode",e.IScopeAnalyzer="IScopeAnalyzer",e.IStringArrayStorage="IStringArrayStorage",e.IStringArrayStorageAnalyzer="IStringArrayStorageAnalyzer",e.INodeTransformersRunner="INodeTransformersRunner",e.Newable__ICustomNode="Newable",e.Newable__TControlFlowStorage="Newable",e.TCustomNodeGroupStorage="TCustomNodeGroupStorage",e.TInputOptions="TInputOptions"}(t.ServiceIdentifiers||(t.ServiceIdentifiers={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeGuards=void 0;const o=r(35);let n=(()=>{class e{static isArrayPatternNode(e){return e.type===o.NodeType.ArrayPattern}static isArrowFunctionExpressionNode(e){return e.type===o.NodeType.ArrowFunctionExpression}static isAssignmentExpressionNode(e){return e.type===o.NodeType.AssignmentExpression}static isAssignmentPatternNode(e){return e.type===o.NodeType.AssignmentPattern}static isAwaitExpressionNode(e){return e.type===o.NodeType.AwaitExpression}static isBigIntLiteralNode(t){return e.isLiteralNode(t)&&!!t.bigint}static isBlockStatementNode(e){return e.type===o.NodeType.BlockStatement}static isBreakStatementNode(e){return e.type===o.NodeType.BreakStatement}static isCallExpressionNode(e){return e.type===o.NodeType.CallExpression}static isClassDeclarationNode(e){return e.type===o.NodeType.ClassDeclaration&&null!==e.id}static isContinueStatementNode(e){return e.type===o.NodeType.ContinueStatement}static isDirectiveNode(e){return e.type===o.NodeType.ExpressionStatement&&"directive"in e}static isExportNamedDeclarationNode(e){return e.type===o.NodeType.ExportNamedDeclaration}static isExpressionStatementNode(e){return e.type===o.NodeType.ExpressionStatement&&!("directive"in e)}static isFunctionNode(t){return e.isFunctionDeclarationNode(t)||e.isFunctionExpressionNode(t)||e.isArrowFunctionExpressionNode(t)}static isFunctionDeclarationNode(e){return e.type===o.NodeType.FunctionDeclaration&&null!==e.id}static isFunctionExpressionNode(e){return e.type===o.NodeType.FunctionExpression}static isIdentifierNode(e){return e.type===o.NodeType.Identifier}static isImportDeclarationNode(e){return e.type===o.NodeType.ImportDeclaration}static isImportSpecifierNode(e){return e.type===o.NodeType.ImportSpecifier}static isLabelIdentifierNode(t,r){const o=e.isLabeledStatementNode(r)&&r.label===t,n=e.isContinueStatementNode(r)&&r.label===t,i=e.isBreakStatementNode(r)&&r.label===t;return o||n||i}static isLabeledStatementNode(e){return e.type===o.NodeType.LabeledStatement}static isLiteralNode(e){return e.type===o.NodeType.Literal}static isMemberExpressionNode(e){return e.type===o.NodeType.MemberExpression}static isMethodDefinitionNode(e){return e.type===o.NodeType.MethodDefinition}static isNode(e){return e&&void 0!==!e.type}static isNodeWithLexicalScope(t){return e.isProgramNode(t)||e.isFunctionNode(t)}static isNodeWithBlockLexicalScope(t){return e.isNodeWithLexicalScope(t)||e.isBlockStatementNode(t)}static isNodeWithLexicalScopeStatements(t,r){return e.isProgramNode(t)||e.isBlockStatementNode(t)&&e.nodesWithLexicalStatements.includes(r.type)}static isNodeWithStatements(t){return e.isProgramNode(t)||e.isBlockStatementNode(t)||e.isSwitchCaseNode(t)}static isNodeWithComments(e){return Boolean(e.leadingComments)||Boolean(e.trailingComments)}static isObjectPatternNode(e){return e.type===o.NodeType.ObjectPattern}static isObjectExpressionNode(e){return e.type===o.NodeType.ObjectExpression}static isProgramNode(e){return e.type===o.NodeType.Program}static isPropertyNode(e){return e.type===o.NodeType.Property}static isRestElementNode(e){return e.type===o.NodeType.RestElement}static isReturnStatementNode(e){return e.type===o.NodeType.ReturnStatement}static isSequenceExpressionNode(e){return e.type===o.NodeType.SequenceExpression}static isSuperNode(e){return e.type===o.NodeType.Super}static isSwitchCaseNode(e){return e.type===o.NodeType.SwitchCase}static isTaggedTemplateExpressionNode(e){return e.type===o.NodeType.TaggedTemplateExpression}static isTemplateLiteralNode(e){return e.type===o.NodeType.TemplateLiteral}static isUnaryExpressionNode(e){return e.type===o.NodeType.UnaryExpression}static isUseStrictOperator(t){return e.isDirectiveNode(t)&&"use strict"===t.directive}static isVariableDeclarationNode(e){return e.type===o.NodeType.VariableDeclaration}static isVariableDeclaratorNode(e){return e.type===o.NodeType.VariableDeclarator}static isWhileStatementNode(e){return e.type===o.NodeType.WhileStatement}}return e.nodesWithLexicalStatements=[o.NodeType.ArrowFunctionExpression,o.NodeType.FunctionDeclaration,o.NodeType.FunctionExpression,o.NodeType.MethodDefinition],e})();t.NodeGuards=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeUtils=void 0;const a=i(r(47)),s=i(r(12)),c=r(44),d=r(60),l=r(4),u=r(19);class f{static addXVerbatimPropertyTo(e){return e["x-verbatim-property"]={content:e.raw,precedence:a.Precedence.Primary},e}static clone(e){return f.parentizeAst(f.cloneRecursive(e))}static convertCodeToStructure(e){const t=d.ASTParserFacade.parse(e,{ecmaVersion:c.ecmaVersion,sourceType:"script"});return s.replace(t,{enter:(e,t)=>(f.parentizeNode(e,t),l.NodeGuards.isLiteralNode(e)&&f.addXVerbatimPropertyTo(e),u.NodeMetadata.set(e,{ignoredNode:!1}),e)}),t.body}static convertStructureToCode(e){return e.reduce((e,t)=>e+a.generate(t,{sourceMapWithCode:!0}).code,"")}static getUnaryExpressionArgumentNode(e){return l.NodeGuards.isUnaryExpressionNode(e.argument)?f.getUnaryExpressionArgumentNode(e.argument):e.argument}static parentizeAst(e){var t;const r=null!==(t=e.parentNode)&&void 0!==t?t:null;return s.replace(e,{enter:f.parentizeNode}),r&&(e.parentNode=r),e}static parentizeNode(e,t){return e.parentNode=null!=t?t:e,e}static cloneRecursive(e){if(null===e)return e;const t={};return Object.keys(e).forEach(r=>{if("parentNode"===r)return;const o=e[r];let n;n=null===o||o instanceof RegExp?o:Array.isArray(o)?o.map(f.cloneRecursive):"object"==typeof o?f.cloneRecursive(o):o,t[r]=n}),t}}t.NodeUtils=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializable=void 0;const o={configurable:!0,enumerable:!0};function n(e,t,r){Reflect.hasMetadata(e,r)||Reflect.defineMetadata(e,t,r)}t.initializable=function(e="initialize"){const t=Object.keys(this)[0];return(r,i)=>{const a=r[e];if(!a||"function"!=typeof a)throw new Error(`\`${e}\` method with initialization logic not `+`found. \`@${t}\` decorator requires \`${e}\` method`);return n("_initialized",!1,r),n("_initializablePropertiesSet",new Set,r),n("_wrappedMethodsSet",new Set,r),function(e,t){const r=Object.getOwnPropertyNames(e),n=[t,"constructor"];r.forEach(r=>{var i;const a=Reflect.getMetadata("_initializablePropertiesSet",e),s=Reflect.getMetadata("_wrappedMethodsSet",e);if(n.includes(r)||a.has(r)||s.has(r))return;if("function"!=typeof e[r])return;const c=null!==(i=Object.getOwnPropertyDescriptor(e,r))&&void 0!==i?i:o,d=c.value;Object.defineProperty(e,r,Object.assign(Object.assign({},c),{value(){if(!Reflect.getMetadata("_initialized",this))throw new Error(`Class should be initialized with \`${t}()\` method`);return d.apply(this,arguments)}})),s.add(r)})}(r,e),function(e,t,r){var n;const i=null!==(n=Object.getOwnPropertyDescriptor(e,t))&&void 0!==n?n:o,a=i.value;Object.defineProperty(e,t,Object.assign(Object.assign({},i),{value:function(){Reflect.defineMetadata("_initialized",!0,this);const e=a.apply(this,arguments);return this[r],e}}))}(r,e,i),function(e,t){var r;Reflect.getMetadata("_initializablePropertiesSet",e).add(t);const n=`_${t.toString()}`,i=null!==(r=Object.getOwnPropertyDescriptor(e,n))&&void 0!==r?r:o;return Object.defineProperty(e,t,Object.assign(Object.assign({},i),{get:function(){if(void 0===this[n])throw new Error(`Property \`${t.toString()}\` is not initialized! Initialize it first!`);return this[n]},set:function(e){this[n]=e}})),i}(r,i)}}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeFactory=void 0;const a=i(r(47)),s=r(35);class c{static programNode(e=[]){return{type:s.NodeType.Program,body:e,sourceType:"script",metadata:{ignoredNode:!1}}}static arrayExpressionNode(e=[]){return{type:s.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}static assignmentExpressionNode(e,t,r){return{type:s.NodeType.AssignmentExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static binaryExpressionNode(e,t,r){return{type:s.NodeType.BinaryExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static blockStatementNode(e=[]){return{type:s.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}static breakStatement(e){return{type:s.NodeType.BreakStatement,label:e,metadata:{ignoredNode:!1}}}static callExpressionNode(e,t=[]){return{type:s.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}static continueStatement(e){return{type:s.NodeType.ContinueStatement,label:e,metadata:{ignoredNode:!1}}}static directiveNode(e,t){return{type:s.NodeType.ExpressionStatement,expression:e,directive:t,metadata:{ignoredNode:!1}}}static expressionStatementNode(e){return{type:s.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}static functionDeclarationNode(e,t,r){return{type:s.NodeType.FunctionDeclaration,id:c.identifierNode(e),params:t,body:r,generator:!1,metadata:{ignoredNode:!1}}}static functionExpressionNode(e,t){return{type:s.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}static ifStatementNode(e,t,r){return Object.assign(Object.assign({type:s.NodeType.IfStatement,test:e,consequent:t},r&&{alternate:r}),{metadata:{ignoredNode:!1}})}static identifierNode(e){return{type:s.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}static importDeclarationNode(e,t){return{type:s.NodeType.ImportDeclaration,specifiers:e,source:t,metadata:{ignoredNode:!1}}}static literalNode(e,t){return t=void 0!==t?t:`'${e}'`,{type:s.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:a.Precedence.Primary},metadata:{ignoredNode:!1}}}static logicalExpressionNode(e,t,r){return{type:s.NodeType.LogicalExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static memberExpressionNode(e,t,r=!1){return{type:s.NodeType.MemberExpression,computed:r,object:e,property:t,metadata:{ignoredNode:!1}}}static objectExpressionNode(e){return{type:s.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}static propertyNode(e,t,r=!1){return{type:s.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:r,metadata:{ignoredNode:!1}}}static returnStatementNode(e){return{type:s.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}static switchStatementNode(e,t){return{type:s.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}static switchCaseNode(e,t){return{type:s.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}static unaryExpressionNode(e,t,r=!0){return{type:s.NodeType.UnaryExpression,operator:e,argument:t,prefix:r,metadata:{ignoredNode:!1}}}static updateExpressionNode(e,t){return{type:s.NodeType.UpdateExpression,operator:e,argument:t,prefix:!1,metadata:{ignoredNode:!1}}}static variableDeclarationNode(e=[],t="var"){return{type:s.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}static variableDeclaratorNode(e,t){return{type:s.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}static whileStatementNode(e,t){return{type:s.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}t.NodeFactory=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformationStage=void 0,function(e){e.Initializing="Initializing",e.Preparing="Preparing",e.DeadCodeInjection="DeadCodeInjection",e.ControlFlowFlattening="ControlFlowFlattening",e.Converting="Converting",e.Obfuscating="Obfuscating",e.Finalizing="Finalizing"}(t.NodeTransformationStage||(t.NodeTransformationStage={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractNodeTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3);let l=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractNodeTransformer=l},function(e,t){e.exports=require("estraverse")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformer=void 0,function(e){e.BlockStatementControlFlowTransformer="BlockStatementControlFlowTransformer",e.CommentsTransformer="CommentsTransformer",e.CustomCodeHelpersTransformer="CustomCodeHelpersTransformer",e.DeadCodeInjectionTransformer="DeadCodeInjectionTransformer",e.EvalCallExpressionTransformer="EvalCallExpressionTransformer",e.FunctionControlFlowTransformer="FunctionControlFlowTransformer",e.LabeledStatementTransformer="LabeledStatementTransformer",e.LiteralTransformer="LiteralTransformer",e.MemberExpressionTransformer="MemberExpressionTransformer",e.MetadataTransformer="MetadataTransformer",e.MethodDefinitionTransformer="MethodDefinitionTransformer",e.ObfuscatingGuardsTransformer="ObfuscatingGuardsTransformer",e.ObjectExpressionKeysTransformer="ObjectExpressionKeysTransformer",e.ObjectExpressionTransformer="ObjectExpressionTransformer",e.ParentificationTransformer="ParentificationTransformer",e.ScopeIdentifiersTransformer="ScopeIdentifiersTransformer",e.SplitStringTransformer="SplitStringTransformer",e.TemplateLiteralTransformer="TemplateLiteralTransformer",e.VariablePreserveTransformer="VariablePreserveTransformer"}(t.NodeTransformer||(t.NodeTransformer={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3);let f=(()=>{var e,t,r,f;let p=class{constructor(e,t,r,o){this.cachedNode=null,this.identifierNamesGenerator=e(o),this.customCodeHelperFormatter=t,this.randomGenerator=r,this.options=o}getNode(){return this.cachedNode||(this.cachedNode=this.customCodeHelperFormatter.formatStructure(this.getNodeStructure())),this.cachedNode}};return p=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(f=void 0!==l.IOptions&&l.IOptions)?f:Object])],p),p})();t.AbstractCustomNode=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InversifyContainerFacade=void 0;const o=r(0),n=r(1),i=r(79),a=r(89),s=r(94),c=r(106),d=r(117),l=r(157),u=r(170),f=r(171),p=r(175),m=r(177),g=r(180),y=r(182),h=r(191),b=r(213),N=r(227),v=r(232),I=r(240),O=r(242),S=r(77),C=r(247),j=r(250),_=r(252),R=r(253);t.InversifyContainerFacade=class{constructor(){this.container=new o.Container}static getFactory(e){return t=>r=>t.container.getNamed(e,r)}static getCacheFactory(e){return t=>{const r=new Map;return o=>{if(r.has(o))return r.get(o);const n=t.container.getNamed(e,o);return r.set(o,n),n}}}static getConstructorFactory(e,...t){return r=>{const o=new Map,n=[];return i=>{if(t.forEach((e,t)=>{n[t]||(n[t]=r.container.get(e))}),o.has(i))return new(o.get(i))(...n);const a=r.container.getNamed(e,i);return o.set(i,a),new a(...n)}}}get(e){return this.container.get(e)}getNamed(e,t){return this.container.getNamed(e,t)}load(e,t,r){this.container.bind(n.ServiceIdentifiers.ISourceCode).toDynamicValue(()=>new R.SourceCode(e,t)).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.TInputOptions).toDynamicValue(()=>r).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.ILogger).to(S.Logger).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.IJavaScriptObfuscator).to(O.JavaScriptObfuscator).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.ICodeTransformersRunner).to(I.CodeTransformersRunner).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.INodeTransformersRunner).to(C.NodeTransformersRunner).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.IObfuscatedCode).to(_.ObfuscatedCode),this.container.bind(n.ServiceIdentifiers.Factory__IObfuscatedCode).toFactory(e=>(t,r)=>{const o=e.container.get(n.ServiceIdentifiers.IObfuscatedCode);return o.initialize(t,r),o}),this.container.bind(n.ServiceIdentifiers.IObfuscationEventEmitter).to(j.ObfuscationEventEmitter).inSingletonScope(),this.container.load(i.analyzersModule),this.container.load(a.codeTransformersModule),this.container.load(s.controlFlowTransformersModule),this.container.load(c.convertingTransformersModule),this.container.load(d.customCodeHelpersModule),this.container.load(l.customNodesModule),this.container.load(u.finalizingTransformersModule),this.container.load(f.generatorsModule),this.container.load(p.initializingTransformersModule),this.container.load(m.nodeModule),this.container.load(g.nodeTransformersModule),this.container.load(y.obfuscatingTransformersModule),this.container.load(h.optionsModule),this.container.load(b.preparingTransformersModule),this.container.load(N.storagesModule),this.container.load(v.utilsModule)}unload(){this.container.unbindAll()}}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(125),m=r(126);let g=(()=>{var e,t,r,g,y,h;let b=e=class{constructor(e,t,r,o,n){this.cachedNode=null,this.identifierNamesGenerator=e(n),this.customCodeHelperFormatter=t,this.customCodeHelperObfuscator=r,this.randomGenerator=o,this.options=n}getNode(){if(!this.cachedNode){const e=this.getCodeHelperTemplate();this.cachedNode=this.customCodeHelperFormatter.formatStructure(this.getNodeStructure(e))}return this.cachedNode}getGlobalVariableTemplate(){return this.randomGenerator.getRandomGenerator().pickone(e.globalVariableTemplateFunctions)}getCodeHelperTemplate(){return""}};return b.globalVariableTemplateFunctions=[p.GlobalVariableTemplate1(),m.GlobalVariableTemplate2()],b=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(g=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?g:Object,"function"==typeof(y=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?y:Object,"function"==typeof(h=void 0!==u.IOptions&&u.IOptions)?h:Object])],b),b})();t.AbstractCustomCodeHelper=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStatementUtils=void 0;const o=r(4);class n{static getParentNodeWithStatements(e){return n.getParentNodesWithStatementsRecursive(e,1)[0]}static getParentNodesWithStatements(e){return n.getParentNodesWithStatementsRecursive(e)}static getNextSiblingStatement(e){return n.getSiblingStatementByOffset(e,1)}static getPreviousSiblingStatement(e){return n.getSiblingStatementByOffset(e,-1)}static getRootStatementOfNode(e){if(o.NodeGuards.isProgramNode(e))throw new Error("Unable to find root statement for `Program` node");const t=e.parentNode;if(!t)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithStatements(t)?e:n.getRootStatementOfNode(t)}static getScopeOfNode(e){const t=e.parentNode;if(!t)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithStatements(t)?t:n.getScopeOfNode(t)}static getParentNodesWithStatementsRecursive(e,t=1/0,r=[],i=0){if(r.length>=t)return r;const a=e.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(o.NodeGuards.isProgramNode(e)||o.NodeGuards.isNodeWithLexicalScopeStatements(e,a)&&i>0)&&r.push(e),e!==a?n.getParentNodesWithStatementsRecursive(a,t,r,++i):r}static getSiblingStatementByOffset(e,t){const r=n.getScopeOfNode(e),i=o.NodeGuards.isSwitchCaseNode(r)?r.consequent:r.body,a=i.indexOf(e);return i[a+t]||null}}t.NodeStatementUtils=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeMetadata=void 0;class o{static set(e,t){var r;e.metadata=Object.assign(null!==(r=e.metadata)&&void 0!==r?r:{},t)}static get(e,t){return void 0!==e.metadata?e.metadata[t]:void 0}static isIgnoredNode(e){return!0===o.get(e,"ignoredNode")}static isReplacedLiteral(e){return!0===o.get(e,"replacedLiteral")}}t.NodeMetadata=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowCustomNode=void 0,function(e){e.BinaryExpressionFunctionNode="BinaryExpressionFunctionNode",e.BlockStatementControlFlowFlatteningNode="BlockStatementControlFlowFlatteningNode",e.CallExpressionControlFlowStorageCallNode="CallExpressionControlFlowStorageCallNode",e.CallExpressionFunctionNode="CallExpressionFunctionNode",e.ControlFlowStorageNode="ControlFlowStorageNode",e.ExpressionWithOperatorControlFlowStorageCallNode="ExpressionWithOperatorControlFlowStorageCallNode",e.LogicalExpressionFunctionNode="LogicalExpressionFunctionNode",e.StringLiteralControlFlowStorageCallNode="StringLiteralControlFlowStorageCallNode",e.StringLiteralNode="StringLiteralNode"}(t.ControlFlowCustomNode||(t.ControlFlowCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeAppender=void 0;const o=r(4);class n{static append(e,t){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...n.getScopeStatements(e),...t])}static appendToOptimalBlockScope(e,t,r,o=0){const i=e.length?n.getOptimalBlockScope(e,o):t;n.prepend(i,r)}static getOptimalBlockScope(e,t,r=1/0){const o=e[t];if(r<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return r>1&&o.callsGraph.length?n.getOptimalBlockScope(o.callsGraph,0,--r):o.callee}static insertBefore(e,t,r){const o=n.getScopeStatements(e).indexOf(r);n.insertAtIndex(e,t,o)}static insertAfter(e,t,r){const o=n.getScopeStatements(e).indexOf(r);n.insertAtIndex(e,t,o+1)}static insertAtIndex(e,t,r){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...n.getScopeStatements(e).slice(0,r),...t,...n.getScopeStatements(e).slice(r)])}static prepend(e,t){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...t,...n.getScopeStatements(e)])}static getScopeStatements(e){return o.NodeGuards.isSwitchCaseNode(e)?e.consequent:e.body}static parentizeScopeStatementsBeforeAppend(e,t){return t.forEach(t=>{t.parentNode=e}),t}static setScopeStatements(e,t){o.NodeGuards.isSwitchCaseNode(e)?e.consequent=t:e.body=t}}t.NodeAppender=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeLexicalScopeUtils=void 0;const o=r(4);class n{static getLexicalScope(e){return n.getLexicalScopesRecursive(e,1)[0]}static getLexicalScopes(e){return n.getLexicalScopesRecursive(e)}static getLexicalScopesRecursive(e,t=1/0,r=[],i=0){if(r.length>=t)return r;const a=e.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithLexicalScope(e)&&r.push(e),e!==a?n.getLexicalScopesRecursive(a,t,r,++i):r}}t.NodeLexicalScopeUtils=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationTarget=void 0;const o=r(31);t.ObfuscationTarget=o.MakeEnum({Browser:"browser",BrowserNoEval:"browser-no-eval",Node:"node"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationEvent=void 0,function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=void 0;let o=(()=>{class e{static buildVersionMessage(e,t){if(!e||!t)return"unknown";return`${e}_${new Date(parseInt(t,10)).toISOString()}`}static extractDomainFrom(e){let t;return t=e.includes("://")||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0],t=t.split(":")[0],t}static getIdentifiersPrefixForMultipleSources(t,r){return`${t||e.baseMultipleSourcesIdentifiersPrefix}${r}`}}return e.baseMultipleSourcesIdentifiersPrefix="a",e.hexadecimalPrefix="0x",e})();t.Utils=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelper=void 0,function(e){e.CallsControllerFunction="CallsControllerFunction",e.ConsoleOutputDisable="ConsoleOutputDisable",e.DebugProtectionFunctionCall="DebugProtectionFunctionCall",e.DebugProtectionFunctionInterval="DebugProtectionFunctionInterval",e.DebugProtectionFunction="DebugProtectionFunction",e.DomainLock="DomainLock",e.SelfDefendingUnicode="SelfDefendingUnicode",e.StringArrayCallsWrapper="StringArrayCallsWrapper",e.StringArray="StringArray",e.StringArrayRotateFunction="StringArrayRotateFunction"}(t.CustomCodeHelper||(t.CustomCodeHelper={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncoding=void 0;const o=r(31);t.StringArrayEncoding=o.MakeEnum({Base64:"base64",Rc4:"rc4"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(5),d=r(2),l=r(3);let u=(()=>{var e,t,r;let u=class{constructor(e,t,r){this.identifierNamesGenerator=e(r),this.randomGenerator=t,this.options=r}getAppendEvent(){return this.appendEvent}getCustomCodeHelpers(){return this.customCodeHelpers}appendCustomNodeIfExist(e,t){const r=this.customCodeHelpers.get(e);r&&t(r)}getRandomCallsGraphIndex(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}};return u=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object])],u),u})();t.AbstractCustomCodeHelperGroup=u},function(e,t){e.exports=require("@gradecam/tsenum")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapMode=void 0;const o=r(31);t.SourceMapMode=o.MakeEnum({Inline:"inline",Separate:"separate"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierNamesGenerator=void 0;const o=r(31);t.IdentifierNamesGenerator=o.MakeEnum({DictionaryIdentifierNamesGenerator:"dictionary",HexadecimalIdentifierNamesGenerator:"hexadecimal",MangledIdentifierNamesGenerator:"mangled"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=void 0,function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassDeclaration="ClassDeclaration",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExpressionStatement="ExpressionStatement",e.ForStatement="ForStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MethodDefinition="MethodDefinition",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateLiteral="TemplateLiteral",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement"}(t.NodeType||(t.NodeType={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberUtils=void 0;const o=r(26);t.NumberUtils=class{static toHex(e){const t="number"==typeof e?e.toString(16):`${e.toString(16)}n`;return`${o.Utils.hexadecimalPrefix}${t}`}static isCeil(e){return"number"!=typeof e||e%1==0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierObfuscatingReplacer=void 0,function(e){e.BaseIdentifierObfuscatingReplacer="BaseIdentifierObfuscatingReplacer"}(t.IdentifierObfuscatingReplacer||(t.IdentifierObfuscatingReplacer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2);let d=(()=>{var e;let t=class{constructor(e){this.options=e}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IOptions&&c.IOptions)?e:Object])],t),t})();t.AbstractObfuscatingReplacer=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PRESET=void 0;const o=r(34),n=r(24),i=r(32);t.DEFAULT_PRESET=Object.freeze({compact:!0,config:"",controlFlowFlattening:!1,controlFlowFlatteningThreshold:.75,deadCodeInjection:!1,deadCodeInjectionThreshold:.4,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",identifiersDictionary:[],inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!0,seed:0,selfDefending:!1,shuffleStringArray:!0,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,splitStrings:!1,splitStringsChunkLength:10,stringArray:!0,stringArrayEncoding:!1,stringArrayThreshold:.75,target:n.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringSeparator=void 0,function(e){e.Dot=".",e.Comma=","}(t.StringSeparator||(t.StringSeparator={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCalleeDataExtractor=void 0;const n=r(0);let i=(()=>{let e=class{};return e=o([n.injectable()],e),e})();t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ecmaVersion=void 0,t.ecmaVersion=11},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeLiteralUtils=void 0;const o=r(4);t.NodeLiteralUtils=class{static isProhibitedLiteralNode(e,t){return!(!o.NodeGuards.isPropertyNode(t)||t.computed||t.key!==e)||!!o.NodeGuards.isImportDeclarationNode(t)}}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3);let u=(()=>{var e,t,r,u;let f=e=class{constructor(e,t,r){this.replacerDataByControlFlowStorageId=new Map,this.controlFlowCustomNodeFactory=e,this.randomGenerator=t,this.options=r}static getStorageKeysByIdForCurrentStorage(e,t){let r;return r=e.has(t)?e.get(t):new Map,r}insertCustomNodeToControlFlowStorage(t,r,o,n){const i=r.getStorageId(),a=e.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,i),s=a.get(o);if(this.randomGenerator.getMathRandom(){const t=this.randomGenerator.getRandomString(e);return r.getStorage().has(t)?c(e):t},d=c(5);return a.set(o,[d]),this.replacerDataByControlFlowStorageId.set(i,a),r.set(d,t),d}};return f=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(u=void 0!==d.IOptions&&d.IOptions)?u:Object])],f),f})();t.AbstractControlFlowReplacer=u},function(e,t){e.exports=require("escodegen")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableNoEvalTemplate=void 0,t.GlobalVariableNoEvalTemplate=function(){return"\n const that = (typeof window !== 'undefined'\n ? window\n : (typeof process === 'object' &&\n typeof require === 'function' &&\n typeof global === 'object')\n ? global\n : this);\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(4);let u=(()=>{var e,t;let r=class{constructor(e,t){this.preservedNamesSet=new Set,this.lexicalScopesPreservedNamesMap=new Map,this.randomGenerator=e,this.options=t}generate(e,t){return l.NodeGuards.isProgramNode(e)?this.generateForGlobalScope():this.generateForLexicalScope(e)}preserveName(e){this.preservedNamesSet.add(e)}preserveNameForLexicalScope(e,t){var r;const o=null!==(r=this.lexicalScopesPreservedNamesMap.get(t))&&void 0!==r?r:new Set;o.add(e),this.lexicalScopesPreservedNamesMap.set(t,o)}isValidIdentifierName(e){return this.notReservedName(e)&&!this.preservedNamesSet.has(e)}isValidIdentifierNameInLexicalScopes(e,t){var r;if(!this.isValidIdentifierName(e))return!1;for(const o of t){const t=null!==(r=this.lexicalScopesPreservedNamesMap.get(o))&&void 0!==r?r:null;if(t&&t.has(e))return!1}return!0}notReservedName(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractIdentifierNamesGenerator=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MapStorage=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(7);let u=(()=>{var e,t,r;let u=class{constructor(e,t){this.randomGenerator=e,this.options=t}initialize(){this.storage=new Map,this.storageId=this.randomGenerator.getRandomString(6)}get(e){return this.storage.get(e)}getOrThrow(e){const t=this.get(e);if(!t)throw new Error(`No value found in map storage with key \`${e}\``);return t}getKeyOf(e){for(const[t,r]of this.storage)if(e===r)return t;return null}getLength(){return this.storage.size}getStorage(){return this.storage}getStorageId(){return this.storageId}has(e){return this.storage.has(e)}mergeWith(e,t=!1){this.storage=new Map([...this.storage,...e.getStorage()]),t&&(this.storageId=e.getStorageId())}set(e,t){this.storage.set(e,t)}};return o([l.initializable(),n("design:type",String)],u.prototype,"storageId",void 0),o([l.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],u.prototype,"storage",void 0),o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],u.prototype,"initialize",null),u=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],u),u})();t.MapStorage=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscator=void 0,r(76);const o=r(1),n=r(16),i=r(26);let a=(()=>{class e{static obfuscate(e,t={}){const r=new n.InversifyContainerFacade;r.load(e,"",t);const i=r.get(o.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return r.unload(),i}static obfuscateMultiple(t,r={}){if("object"!=typeof t)throw new Error("Source codes object should be a plain object");return Object.keys(t).reduce((o,n,a)=>{const s=i.Utils.getIdentifiersPrefixForMultipleSources(r.identifiersPrefix,a),c=t[n],d=Object.assign(Object.assign({},r),{identifiersPrefix:s});return Object.assign(Object.assign({},o),{[n]:e.obfuscate(c,d)})},{})}}return e.version=null!=="0.28.3"?"0.28.3":"unknown",e})();t.JavaScriptObfuscator=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CalleeDataExtractor=void 0,function(e){e.FunctionDeclarationCalleeDataExtractor="FunctionDeclarationCalleeDataExtractor",e.FunctionExpressionCalleeDataExtractor="FunctionExpressionCalleeDataExtractor",e.ObjectExpressionCalleeDataExtractor="ObjectExpressionCalleeDataExtractor"}(t.CalleeDataExtractor||(t.CalleeDataExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformer=void 0,function(e){e.HashbangOperatorTransformer="HashbangOperatorTransformer"}(t.CodeTransformer||(t.CodeTransformer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTransformerNamesGroupsBuilder=void 0;const a=r(0),s=r(1),c=r(91);let d=(()=>{var e;let t=class{constructor(e){this.levelledTopologicalSorter=e}build(e){const t=Object.keys(e),r=this.buildTransformersRelationEdges(t,e);for(const[e,t]of r)this.levelledTopologicalSorter.add(e,t);return this.levelledTopologicalSorter.sortByGroups()}buildTransformersRelationEdges(e,t){const r=[];for(const o of e){const e=t[o].runAfter;if(e&&e.length)for(const n of e){void 0===t[n]?r.push([o,null]):r.push([n,o])}else r.push([o,null])}return r}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ILevelledTopologicalSorter)),n("design:paramtypes",["function"==typeof(e=void 0!==c.ILevelledTopologicalSorter&&c.ILevelledTopologicalSorter)?e:Object])],t),t})();t.AbstractTransformerNamesGroupsBuilder=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformationStage=void 0,function(e){e.PreparingTransformers="PreparingTransformers",e.FinalizingTransformers="FinalizingTransformers"}(t.CodeTransformationStage||(t.CodeTransformationStage={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowReplacer=void 0,function(e){e.BinaryExpressionControlFlowReplacer="BinaryExpressionControlFlowReplacer",e.CallExpressionControlFlowReplacer="CallExpressionControlFlowReplacer",e.LogicalExpressionControlFlowReplacer="LogicalExpressionControlFlowReplacer",e.StringLiteralControlFlowReplacer="StringLiteralControlFlowReplacer"}(t.ControlFlowReplacer||(t.ControlFlowReplacer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithOperatorControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r;let m=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}getControlFlowStorageCallNode(e,t,r,o){const n=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);n.initialize(e,t,r,o);const i=n.getNode()[0];if(!i||!p.NodeGuards.isExpressionStatementNode(i))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return i.expression}};return m=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?e:Object,"function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object])],m),m})();t.ExpressionWithOperatorControlFlowReplacer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ASTParserFacade=void 0;const s=i(r(97)),c=a(r(61));let d=(()=>{class e{static parse(t,r){const o=e.sourceTypes.length;for(let n=0;n"),c=`...${n.substring(i,a).replace(/^\s+/,"")}...`;throw new Error(`ERROR at line ${o.line}: ${r}\n${s} ${c}`)}}return e.colorError=c.default.red,e.nearestSymbolsCount=15,e.sourceTypes=["script","module"],e})();t.ASTParserFacade=d},function(e,t){e.exports=require("chalk")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionCustomNode=void 0,function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionExtractor=void 0,function(e){e.BasePropertiesExtractor="BasePropertiesExtractor",e.ObjectExpressionToVariableDeclarationExtractor="ObjectExpressionToVariableDeclarationExtractor"}(t.ObjectExpressionExtractor||(t.ObjectExpressionExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionKeysTransformerCustomNode=void 0,function(e){e.ObjectExpressionVariableDeclarationHostNode="ObjectExpressionVariableDeclarationHostNode"}(t.ObjectExpressionKeysTransformerCustomNode||(t.ObjectExpressionKeysTransformerCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperGroup=void 0,function(e){e.ConsoleOutput="ConsoleOutput",e.DebugProtection="DebugProtection",e.DomainLock="DomainLock",e.SelfDefending="SelfDefending",e.StringArray="StringArray"}(t.CustomCodeHelperGroup||(t.CustomCodeHelperGroup={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionalCommentObfuscatingGuard=void 0;const n=r(0),i=r(4);let a=(()=>{var e;let t=e=class{constructor(){this.obfuscationAllowed=!0}static isConditionalComment(t){return e.obfuscationEnableCommentRegExp.test(t.value)||e.obfuscationDisableCommentRegExp.test(t.value)}check(e){if(!i.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowed;const t=e.leadingComments;return t&&(this.obfuscationAllowed=this.checkComments(t)),this.obfuscationAllowed}checkComments(t){const r=t.length;let o=this.obfuscationAllowed;for(let n=0;n=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RandomGenerator=void 0;const s=r(0),c=r(1),d=a(r(235)),l=r(236),u=r(2),f=r(237),p=r(7);let m=(()=>{var e,t,r,a;let m=e=class{constructor(e,t){this.sourceCode=e,this.options=t}initialize(){this.randomGenerator=new l.Chance(this.getRawSeed())}getMathRandom(){return this.getRandomInteger(0,99999)/1e5}getRandomGenerator(){return this.randomGenerator}getRandomInteger(e,t){return this.getRandomGenerator().integer({min:e,max:t})}getRandomString(t,r=e.randomGeneratorPool){return this.getRandomGenerator().string({length:t,pool:r})}getInputSeed(){return this.options.seed.toString()}getRawSeed(){const e=this.getInputSeed();return`${e}`.split("|").length>1?e:`${e}|${d.default(this.sourceCode.getSourceCode())}`}};return m.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",o([p.initializable(),n("design:type","function"==typeof(t=void 0!==l.Chance&&l.Chance.Chance)?t:Object)],m.prototype,"randomGenerator",void 0),o([s.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],m.prototype,"initialize",null),m=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.ISourceCode)),i(1,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(r=void 0!==f.ISourceCode&&f.ISourceCode)?r:Object,"function"==typeof(a=void 0!==u.IOptions&&u.IOptions)?a:Object])],m),m})();t.RandomGenerator=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const s=r(0),c=r(1),d=a(r(61)),l=r(2),u=r(78);let f=(()=>{var e,t;let r=e=class{constructor(e){this.options=e}static log(e,t,r,o){const n=e(`\n${t} ${r}`);console.log(n,null!=o?o:"")}info(t,r){this.options.log&&e.log(e.colorInfo,u.LoggingPrefix.Base,t,r)}success(t,r){this.options.log&&e.log(e.colorSuccess,u.LoggingPrefix.Base,t,r)}warn(t,r){this.options.log&&e.log(e.colorWarn,u.LoggingPrefix.Base,t,r)}};return r.colorInfo=d.default.cyan,r.colorSuccess=d.default.green,r.colorWarn=d.default.yellow,r=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==l.IOptions&&l.IOptions)?t:Object])],r),r})();t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingPrefix=void 0,function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.analyzersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(54),s=r(80),c=r(82),d=r(83),l=r(84),u=r(85),f=r(86),p=r(88);t.analyzersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.ICallsGraphAnalyzer).to(s.CallsGraphAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer).to(u.PrevailingKindOfVariablesAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IScopeAnalyzer).to(f.ScopeAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IStringArrayStorageAnalyzer).to(p.StringArrayStorageAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.ICalleeDataExtractor).to(c.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(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsGraphAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(81),p=r(54),m=r(4),g=r(18);let y=(()=>{var e,t;let r=e=class{constructor(e){this.calleeDataExtractorFactory=e}static getLimitIndex(t){const r=t-1,o=e.limitThresholdActivationLength-1;let n=r;return r>o&&(n=Math.round(o+r*e.limitThreshold),n>r&&(n=r)),n}analyze(e){return this.analyzeRecursive(e.body)}analyzeRecursive(t){const r=e.getLimitIndex(t.length),o=[],n=t.length;for(let e=0;er);e++){const r=t[e];u.traverse(r,{enter:e=>{if(m.NodeGuards.isCallExpressionNode(e))return r.parentNode!==g.NodeStatementUtils.getParentNodeWithStatements(e)?u.VisitorOption.Skip:void this.analyzeCallExpressionNode(o,t,e)}})}return o}analyzeCallExpressionNode(t,r,o){e.calleeDataExtractorsList.forEach(e=>{const n=this.calleeDataExtractorFactory(e).extract(r,o.callee);n&&t.push(Object.assign(Object.assign({},n),{callsGraph:this.analyzeRecursive(n.callee.body)}))})}};return r.calleeDataExtractorsList=[p.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,p.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,p.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],r.limitThresholdActivationLength=25,r.limitThreshold=.002,r=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TCalleeDataExtractorFactory&&f.TCalleeDataExtractorFactory)?t:Object])],r),r})();t.CallsGraphAnalyzer=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionDeclarationCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{let e=class extends d.AbstractCalleeDataExtractor{extract(e,t){if(!l.NodeGuards.isIdentifierNode(t))return null;const r=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}getCalleeBlockStatement(e,t){let r=null;return c.traverse(e,{enter:e=>{if(l.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,c.VisitorOption.Break}}),r}};return e=i([s.injectable()],e),e})();t.FunctionDeclarationCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionExpressionCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{let e=class extends d.AbstractCalleeDataExtractor{extract(e,t){let r=null,o=null;return l.NodeGuards.isIdentifierNode(t)?(r=t.name,o=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)):l.NodeGuards.isFunctionExpressionNode(t)&&(r=null,o=t.body),o?{callee:o,name:r}:null}getCalleeBlockStatement(e,t){let r=null;return c.traverse(e,{enter:(e,o)=>{if(l.NodeGuards.isFunctionExpressionNode(e)&&o&&l.NodeGuards.isVariableDeclaratorNode(o)&&l.NodeGuards.isIdentifierNode(o.id)&&o.id.name===t)return r=e.body,c.VisitorOption.Break}}),r}};return e=i([s.injectable()],e),e})();t.FunctionExpressionCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{var e;let t=e=class extends d.AbstractCalleeDataExtractor{static isValidTargetPropertyNode(e,t){if(!e.key)return!1;const r=l.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,o=l.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||o}extract(e,t){if(!l.NodeGuards.isMemberExpressionNode(t))return null;const r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;const o=r[r.length-1],n=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return n?{callee:n,name:o}:null}createObjectMembersCallsChain(e,t){if(l.NodeGuards.isIdentifierNode(t.property)&&!t.computed)e.unshift(t.property.name);else{if(!l.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return l.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(l.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}getCalleeBlockStatement(e,t){const r=t.shift();if(!r)return null;let o=null;return c.traverse(e,{enter:e=>{if(l.NodeGuards.isVariableDeclaratorNode(e)&&l.NodeGuards.isIdentifierNode(e.id)&&e.init&&l.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===r)return o=this.findCalleeBlockStatement(e.init.properties,t),c.VisitorOption.Break}}),o}findCalleeBlockStatement(t,r){const o=r.shift();if(!o)return null;for(const n of t)if(l.NodeGuards.isPropertyNode(n)&&e.isValidTargetPropertyNode(n,o)){if(l.NodeGuards.isObjectExpressionNode(n.value))return this.findCalleeBlockStatement(n.value.properties,r);if(l.NodeGuards.isFunctionExpressionNode(n.value))return n.value.body}return null}};return t=e=i([s.injectable()],t),t})();t.ObjectExpressionCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrevailingKindOfVariablesAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(36),p=r(4);let m=(()=>{var e,t;let r=e=class{constructor(t){this.prevailingKindOfVariables=e.defaultKindOfVariables,this.arrayUtils=t}analyze(t){var r;const o=[];u.traverse(t,{enter:e=>{p.NodeGuards.isVariableDeclarationNode(e)&&o.push(e.kind)}}),this.prevailingKindOfVariables=null!==(r=this.arrayUtils.findMostOccurringElement(o))&&void 0!==r?r:e.defaultKindOfVariables}getPrevailingKind(){return this.prevailingKindOfVariables}};return r.defaultKindOfVariables="var",r=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IArrayUtils)),s("design:paramtypes",["function"==typeof(t=void 0!==f.IArrayUtils&&f.IArrayUtils)?t:Object])],r),r})();t.PrevailingKindOfVariablesAnalyzer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeAnalyzer=void 0;const s=r(0),c=a(r(87)),d=a(r(12)),l=r(44),u=r(4);let f=(()=>{var e;let t=e=class{constructor(){this.scopeManager=null}static attachMissingRanges(t){d.replace(t,{enter:t=>{var r,o,n,i,a,s;return t.range||(t.range=[null!==(n=null===(o=null===(r=t.parentNode)||void 0===r?void 0:r.range)||void 0===o?void 0:o[0])&&void 0!==n?n:e.emptyRangeValue,null!==(s=null===(a=null===(i=t.parentNode)||void 0===i?void 0:i.range)||void 0===a?void 0:a[1])&&void 0!==s?s:e.emptyRangeValue]),t}})}static isRootNode(e){return u.NodeGuards.isProgramNode(e)||e.parentNode===e}analyze(t){const r=e.sourceTypes.length;e.attachMissingRanges(t);for(let o=0;o{if("class"===e.type&&e.upper){if(!e.variables.length)return;const t=e.variables[0],r=e.upper.variables.find(e=>t.defs.some(e=>"ClassName"===e.type)&&e.name===t.name);null==r||r.references.push(...e.variables[0].references)}});for(const t of e.childScopes)this.sanitizeScopes(t)}};return t.eslintScopeOptions={ecmaVersion:l.ecmaVersion,optimistic:!0},t.sourceTypes=["script","module"],t.emptyRangeValue=0,t=e=i([s.injectable()],t),t})();t.ScopeAnalyzer=f},function(e,t){e.exports=require("eslint-scope")},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayStorageAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(37),g=r(4),y=r(19),h=r(45);let b=(()=>{var e,t,r,o;let n=e=class{constructor(e,t,r){this.stringArrayStorageData=new Map,this.stringArrayStorage=e,this.randomGenerator=t,this.options=r}analyze(e){this.options.stringArray&&u.traverse(e,{enter:(e,t)=>{if(t)return y.NodeMetadata.isIgnoredNode(e)?u.VisitorOption.Skip:void(g.NodeGuards.isLiteralNode(e)&&this.analyzeLiteralNode(e,t))}})}getItemDataForLiteralNode(e){return this.stringArrayStorageData.get(e)}analyzeLiteralNode(e,t){"string"==typeof e.value&&(h.NodeLiteralUtils.isProhibitedLiteralNode(e,t)||this.shouldAddValueToStringArray(e.value)&&this.stringArrayStorageData.set(e,this.stringArrayStorage.getOrThrow(e.value)))}shouldAddValueToStringArray(t){return t.length>=e.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}};return n.minimumLengthForStringArray=3,n=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IStringArrayStorage)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==m.IStringArrayStorage&&m.IStringArrayStorage)?t:Object,"function"==typeof(r=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?r:Object,"function"==typeof(o=void 0!==f.IOptions&&f.IOptions)?o:Object])],n),n})();t.StringArrayStorageAnalyzer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codeTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(55),s=r(90),c=r(92);t.codeTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Factory__ICodeTransformer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.ICodeTransformer)),e(i.ServiceIdentifiers.ICodeTransformerNamesGroupsBuilder).to(s.CodeTransformerNamesGroupsBuilder).inSingletonScope(),e(i.ServiceIdentifiers.ICodeTransformer).to(c.HashbangOperatorTransformer).whenTargetNamed(a.CodeTransformer.HashbangOperatorTransformer)})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformerNamesGroupsBuilder=void 0;const n=r(0),i=r(56);let a=(()=>{let e=class extends i.AbstractTransformerNamesGroupsBuilder{};return e=o([n.injectable()],e),e})();t.CodeTransformerNamesGroupsBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashbangOperatorTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(57),u=r(93);let f=(()=>{var e,t;let r=class extends u.AbstractCodeTransformer{constructor(e,t){super(e,t),this.hashbangOperatorLine=null}transformCode(e,t){switch(t){case l.CodeTransformationStage.PreparingTransformers:return this.removeAndSaveHashbangOperatorLine(e);case l.CodeTransformationStage.FinalizingTransformers:return this.appendSavedHashbangOperatorLine(e);default:return e}}removeAndSaveHashbangOperatorLine(e){return e.replace(/^#!.*$(\r?\n)*/m,e=>(e&&(this.hashbangOperatorLine=e),"")).trim()}appendSavedHashbangOperatorLine(e){var t;return`${null!==(t=this.hashbangOperatorLine)&&void 0!==t?t:""}${e}`}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.HashbangOperatorTransformer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCodeTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3);let l=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractCodeTransformer=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.controlFlowTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(58),s=r(13),c=r(95),d=r(96),l=r(98),u=r(99),f=r(101),p=r(104),m=r(105);t.controlFlowTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(l.CallExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(i.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(59);let p=(()=>{var e,t,r,p;let m=e=class extends f.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){const n=t.operator,i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.BinaryExpressionFunctionNode);i.initialize(n);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a,t.left,t.right)}};return m.usingExistingIdentifierChance=.5,m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(p=void 0!==d.IOptions&&d.IOptions)?p:Object])],m),m})();t.BinaryExpressionControlFlowReplacer=p},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementControlFlowTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(20),p=r(36),m=r(2),g=r(3),y=r(21),h=r(10),b=r(11),N=r(4),v=r(6);let I=(()=>{var e,t,r,o,n;let a=e=class extends b.AbstractNodeTransformer{constructor(e,t,r,o){super(r,o),this.controlFlowCustomNodeFactory=e,this.arrayUtils=t}static isProhibitedStatementNode(e){const t=N.NodeGuards.isBreakStatementNode(e)||N.NodeGuards.isContinueStatementNode(e),r=N.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),o=N.NodeGuards.isClassDeclarationNode(e);return N.NodeGuards.isFunctionDeclarationNode(e)||t||r||o}static canTransformBlockStatementNode(t){let r=!0;return u.traverse(t,{enter:t=>{if(N.NodeGuards.isWhileStatementNode(t))return u.VisitorOption.Skip;e.isProhibitedStatementNode(t)&&(r=!1)}}),t.body.length<=4&&(r=!1),r}getVisitor(e){switch(e){case h.NodeTransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&N.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(t,r){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!e.canTransformBlockStatementNode(t))return t;const o=t.body,n=this.arrayUtils.createWithRange(o.length),i=this.arrayUtils.shuffle(n),a=n.map(e=>i.indexOf(e)),s=this.controlFlowCustomNodeFactory(y.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);s.initialize(o,i,a);const c=s.getNode()[0];return v.NodeUtils.parentizeNode(c,r),c}};return a=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),c(1,d.inject(l.ServiceIdentifiers.IArrayUtils)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TControlFlowCustomNodeFactory&&f.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==p.IArrayUtils&&p.IArrayUtils)?r:Object,"function"==typeof(o=void 0!==g.IRandomGenerator&&g.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==m.IOptions&&m.IOptions)?n:Object])],a),a})();t.BlockStatementControlFlowTransformer=I},function(e,t){e.exports=require("acorn")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r,m;let g=e=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){const n=t.callee;if(!p.NodeGuards.isIdentifierNode(n))return t;const i=String(t.arguments.length),a=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.CallExpressionFunctionNode),s=t.arguments;a.initialize(s);const c=this.insertCustomNodeToControlFlowStorage(a,o,i,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),c,n,s)}getControlFlowStorageCallNode(e,t,r,o){const n=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);n.initialize(e,t,r,o);const i=n.getNode()[0];if(!i||!p.NodeGuards.isExpressionStatementNode(i))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return i.expression}};return g.usingExistingIdentifierChance=.5,g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(m=void 0!==d.IOptions&&d.IOptions)?m:Object])],g),g})();t.CallExpressionControlFlowReplacer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(100),p=r(2),m=r(3),g=r(62),y=r(63),h=r(13),b=r(35),N=r(10),v=r(11),I=r(8),O=r(4),S=r(18),C=r(6);let j=(()=>{var e,t,r,o,n;let a=e=class extends v.AbstractNodeTransformer{constructor(e,t,r,o){super(r,o),this.deadCodeInjectionRootAstHostNodeSet=new Set,this.collectedBlockStatements=[],this.collectedBlockStatementsTotalLength=0,this.deadCodeInjectionCustomNodeFactory=e,this.transformersRunner=t}static isProhibitedNodeInsideCollectedBlockStatement(e){return O.NodeGuards.isBreakStatementNode(e)||O.NodeGuards.isContinueStatementNode(e)||O.NodeGuards.isAwaitExpressionNode(e)||O.NodeGuards.isSuperNode(e)}static isScopeHoistingFunctionDeclaration(e){if(!O.NodeGuards.isFunctionDeclarationNode(e))return!1;const t=S.NodeStatementUtils.getScopeOfNode(e),r=O.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,o=r.indexOf(e);if(0===o)return!1;const n=r.slice(0,o),i=I.NodeFactory.blockStatementNode(n),a=e.id.name;let s=!1;return u.traverse(i,{enter:e=>{if(O.NodeGuards.isIdentifierNode(e)&&e.name===a)return s=!0,u.VisitorOption.Break}}),s}static isValidCollectedBlockStatementNode(t){if(!t.body.length)return!1;let r=0,o=!0;return u.traverse(t,{enter:t=>{if(O.NodeGuards.isBlockStatementNode(t)&&r++,r>e.maxNestedBlockStatementsCount||e.isProhibitedNodeInsideCollectedBlockStatement(t)||e.isScopeHoistingFunctionDeclaration(t))return o=!1,u.VisitorOption.Break}}),o}static isValidWrappedBlockStatementNode(t){if(!t.body.length)return!1;let r=!0;if(u.traverse(t,{enter:t=>{if(e.isScopeHoistingFunctionDeclaration(t))return r=!1,u.VisitorOption.Break}}),!r)return!1;return S.NodeStatementUtils.getParentNodeWithStatements(t).type!==b.NodeType.Program}getVisitor(e){switch(e){case N.NodeTransformationStage.DeadCodeInjection:return{enter:(e,t)=>{if(t&&O.NodeGuards.isProgramNode(e))return this.analyzeNode(e,t),e},leave:(e,t)=>{if(t&&O.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};case N.NodeTransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:(e,t)=>{if(t&&this.isDeadCodeInjectionRootAstHostNode(e))return this.restoreNode(e,t)}}:null;default:return null}}analyzeNode(t,r){u.traverse(t,{enter:t=>{if(!O.NodeGuards.isBlockStatementNode(t))return;const r=C.NodeUtils.clone(t);if(!e.isValidCollectedBlockStatementNode(r))return;const o=this.makeClonedBlockStatementNodeUnique(r);this.collectedBlockStatements.push(o)}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}transformNode(t,r){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!e.isValidWrappedBlockStatementNode(t))return t;const o=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,o),i=this.collectedBlockStatements.splice(n,1)[0];return i===t?t:this.replaceBlockStatementNode(t,i,r)}restoreNode(e,t){const r=e.body[0];if(!O.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}isDeadCodeInjectionRootAstHostNode(e){return O.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}makeClonedBlockStatementNodeUnique(t){const r=I.NodeFactory.programNode([I.NodeFactory.expressionStatementNode(I.NodeFactory.functionExpressionNode([],t))]);return C.NodeUtils.parentizeAst(r),C.NodeUtils.parentizeNode(r,r),this.transformersRunner.transform(r,e.transformersToRenameBlockScopeIdentifiers,N.NodeTransformationStage.Obfuscating),t}replaceBlockStatementNode(t,r,o){const n=I.NodeFactory.blockStatementNode([I.NodeFactory.functionDeclarationNode(e.deadCodeInjectionRootAstHostNodeName,[],r)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);const i=this.deadCodeInjectionCustomNodeFactory(y.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);i.initialize(t,n);const a=i.getNode()[0];return C.NodeUtils.parentizeNode(a,o),a}};return a.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",a.maxNestedBlockStatementsCount=4,a.minCollectedBlockStatementsCount=5,a.transformersToRenameBlockScopeIdentifiers=[h.NodeTransformer.LabeledStatementTransformer,h.NodeTransformer.ScopeIdentifiersTransformer],a=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformersRunner)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TDeadNodeInjectionCustomNodeFactory&&f.TDeadNodeInjectionCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==g.INodeTransformersRunner&&g.INodeTransformersRunner)?r:Object,"function"==typeof(o=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==p.IOptions&&p.IOptions)?n:Object])],a),a})();t.DeadCodeInjectionTransformer=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionControlFlowTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(20),p=r(102),m=r(103),g=r(2),y=r(3),h=r(21),b=r(58),N=r(35),v=r(10),I=r(11),O=r(22),S=r(4),C=r(19),j=r(18),_=r(6);let R=(()=>{var e,t,r,o,n,a;let R=e=class extends I.AbstractNodeTransformer{constructor(e,t,r,o,n){super(o,n),this.controlFlowData=new Map,this.visitedFunctionNodes=new Set,this.hostNodesWithControlFlowNode=new Set,this.controlFlowStorageFactory=e,this.controlFlowReplacerFactory=t,this.controlFlowCustomNodeFactory=r}getVisitor(e){switch(e){case v.NodeTransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&(S.NodeGuards.isFunctionDeclarationNode(e)||S.NodeGuards.isFunctionExpressionNode(e)||S.NodeGuards.isArrowFunctionExpressionNode(e)))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(this.visitedFunctionNodes.add(e),!S.NodeGuards.isBlockStatementNode(e.body))return e;const r=this.getHostNode(e.body),o=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,o),this.transformFunctionBody(e.body,o),!o.getLength())return e;const n=this.controlFlowCustomNodeFactory(h.ControlFlowCustomNode.ControlFlowStorageNode);return n.initialize(o),O.NodeAppender.prepend(r,n.getNode()),this.hostNodesWithControlFlowNode.add(r),_.NodeUtils.parentizeAst(e),e}getControlFlowStorage(e){const t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(S.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());const r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}getHostNode(t){const r=j.NodeStatementUtils.getParentNodesWithStatements(t);return 1===r.length?t:(r.pop(),r.length>e.hostNodeSearchMinDepth&&r.splice(0,e.hostNodeSearchMinDepth),r.length>e.hostNodeSearchMaxDepth&&(r.length=e.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(r))}isVisitedFunctionNode(e){return(S.NodeGuards.isFunctionDeclarationNode(e)||S.NodeGuards.isFunctionExpressionNode(e)||S.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}transformFunctionBody(t,r){u.replace(t,{enter:(t,o)=>{if(C.NodeMetadata.isIgnoredNode(t))return u.VisitorOption.Skip;if(this.isVisitedFunctionNode(t)||!o)return u.VisitorOption.Skip;if(!e.controlFlowReplacersMap.has(t.type))return t;if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold)return t;const n=e.controlFlowReplacersMap.get(t.type);return void 0===n?t:Object.assign(Object.assign({},this.controlFlowReplacerFactory(n).replace(t,o,r)),{parentNode:o})}})}};return R.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,b.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,b.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,b.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,b.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),R.hostNodeSearchMinDepth=0,R.hostNodeSearchMaxDepth=2,R=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__TControlFlowStorage)),c(1,d.inject(l.ServiceIdentifiers.Factory__IControlFlowReplacer)),c(2,d.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),c(3,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(4,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==m.TControlFlowStorageFactory&&m.TControlFlowStorageFactory)?t:Object,"function"==typeof(r=void 0!==p.TControlFlowReplacerFactory&&p.TControlFlowReplacerFactory)?r:Object,"function"==typeof(o=void 0!==f.TControlFlowCustomNodeFactory&&f.TControlFlowCustomNodeFactory)?o:Object,"function"==typeof(n=void 0!==y.IRandomGenerator&&y.IRandomGenerator)?n:Object,"function"==typeof(a=void 0!==g.IOptions&&g.IOptions)?a:Object])],R),R})();t.FunctionControlFlowTransformer=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(59),p=r(4),m=r(6);let g=(()=>{var e,t,r,g;let y=e=class extends f.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){if(this.checkForProhibitedExpressions(t.left,t.right))return t;const n=t.operator,i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.LogicalExpressionFunctionNode);i.initialize(n);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a,t.left,t.right)}checkForProhibitedExpressions(e,t){return[e,t].some(e=>{let t;return t=p.NodeGuards.isUnaryExpressionNode(e)?m.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(p.NodeGuards.isLiteralNode(t)||p.NodeGuards.isIdentifierNode(t)||p.NodeGuards.isObjectExpressionNode(t)||p.NodeGuards.isExpressionStatementNode(t))})}};return y.usingExistingIdentifierChance=.5,y=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==d.IOptions&&d.IOptions)?g:Object])],y),y})();t.LogicalExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r,m;let g=e=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){if(p.NodeGuards.isPropertyNode(r)&&r.key===t)return t;if("string"!=typeof t.value||t.value.length<3)return t;const n=String(t.value),i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.StringLiteralNode);i.initialize(t.value);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a)}getControlFlowStorageCallNode(e,t){const r=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);const o=r.getNode()[0];if(!o||!p.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}};return g.usingExistingIdentifierChance=1,g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(m=void 0!==d.IOptions&&d.IOptions)?m:Object])],g),g})();t.StringLiteralControlFlowReplacer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertingTransformersModule=void 0;const o=r(0),n=r(16),i=r(1),a=r(13),s=r(64),c=r(107),d=r(109),l=r(110),u=r(111),f=r(113),p=r(114),m=r(115),g=r(116);t.convertingTransformersModule=new o.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(a.NodeTransformer.MemberExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(l.MethodDefinitionTransformer).whenTargetNamed(a.NodeTransformer.MethodDefinitionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.ObjectExpressionKeysTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionKeysTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.SplitStringTransformer).whenTargetNamed(a.NodeTransformer.SplitStringTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(m.TemplateLiteralTransformer).whenTargetNamed(a.NodeTransformer.TemplateLiteralTransformer),e(i.ServiceIdentifiers.IObjectExpressionExtractor).to(c.ObjectExpressionToVariableDeclarationExtractor).whenTargetNamed(s.ObjectExpressionExtractor.ObjectExpressionToVariableDeclarationExtractor),e(i.ServiceIdentifiers.IObjectExpressionExtractor).to(g.BasePropertiesExtractor).whenTargetNamed(s.ObjectExpressionExtractor.BasePropertiesExtractor),e(i.ServiceIdentifiers.Factory__IObjectExpressionExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IObjectExpressionExtractor))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionToVariableDeclarationExtractor=void 0;const a=r(0),s=r(1),c=r(108),d=r(65),l=r(22),u=r(4),f=r(18),p=r(6),m=r(23);let g=(()=>{var e;let t=class{constructor(e){this.objectExpressionKeysTransformerCustomNodeFactory=e}extract(e,t){return this.transformObjectExpressionToVariableDeclaration(e,t)}transformObjectExpressionToVariableDeclaration(e,t){var r;const o=f.NodeStatementUtils.getScopeOfNode(t),n=u.NodeGuards.isNodeWithLexicalScope(o)?o:null!==(r=m.NodeLexicalScopeUtils.getLexicalScope(o))&&void 0!==r?r:null;if(!n)throw new Error("Cannot find lexical scope node for the host statement node");const i=e.properties,a=this.getObjectExpressionHostNode(n,i),s=[a];return l.NodeAppender.insertBefore(o,s,t),p.NodeUtils.parentizeAst(a),p.NodeUtils.parentizeNode(a,o),{nodeToReplace:this.getObjectExpressionIdentifierNode(a),objectExpressionHostStatement:a,objectExpressionNode:this.getObjectExpressionNode(a)}}getObjectExpressionHostNode(e,t){const r=this.objectExpressionKeysTransformerCustomNodeFactory(d.ObjectExpressionKeysTransformerCustomNode.ObjectExpressionVariableDeclarationHostNode);r.initialize(e,t);const o=r.getNode()[0];if(!o||!u.NodeGuards.isVariableDeclarationNode(o))throw new Error("`objectExpressionHostCustomNode.getNode()[0]` should returns array with `VariableDeclaration` node");return o}getObjectExpressionIdentifierNode(e){const t=e.declarations[0].id;if(!u.NodeGuards.isIdentifierNode(t))throw new Error("`objectExpressionHostNode` should contain `VariableDeclarator` node with `Identifier` id property");return t}getObjectExpressionNode(e){var t;const r=null!==(t=e.declarations[0].init)&&void 0!==t?t:null;if(!r||!u.NodeGuards.isObjectExpressionNode(r))throw new Error("`objectExpressionHostNode` should contain `VariableDeclarator` node with `ObjectExpression` init property");return r}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TObjectExpressionKeysTransformerCustomNodeFactory&&c.TObjectExpressionKeysTransformerCustomNodeFactory)?e:Object])],t),t})();t.ObjectExpressionToVariableDeclarationExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MemberExpressionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Converting:return{enter:(e,t)=>{if(t&&p.NodeGuards.isMemberExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(p.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=f.NodeFactory.literalNode(e.property.name)}return e}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.MemberExpressionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MethodDefinitionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t,r;let m=e=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.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)?this.replaceIdentifierKey(e,e.key):p.NodeGuards.isLiteralNode(e.key)?this.replaceLiteralKey(e,e.key):e}replaceIdentifierKey(t,r){return e.ignoredNames.includes(r.name)||t.computed||(t.computed=!0,t.key=f.NodeFactory.literalNode(r.name)),t}replaceLiteralKey(t,r){return"string"!=typeof r.value||e.ignoredNames.includes(r.value)||t.computed||(t.computed=!0),t}};return m.ignoredNames=["constructor"],m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],m),m})();t.MethodDefinitionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionKeysTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(112),p=r(2),m=r(3),g=r(10),y=r(11),h=r(4),b=r(18),N=r(64);let v=(()=>{var e,t,r,o;let n=e=class extends y.AbstractNodeTransformer{constructor(e,t,r){super(t,r),this.objectExpressionExtractorFactory=e}static isProhibitedHostStatement(t,r){return e.isReferencedIdentifierName(t,r)||e.isProhibitedSequenceExpression(t,r)}static isReferencedIdentifierName(e,t){const r=[];let o=!1,n=!1;return u.traverse(t,{enter:t=>{t===e&&(n=!0),h.NodeGuards.isIdentifierNode(t)&&(n?r.includes(t.name)&&(o=!0):r.push(t.name))},leave:t=>{if(t===e)return n=!1,u.VisitorOption.Break}}),o}static isProhibitedSequenceExpression(e,t){return h.NodeGuards.isExpressionStatementNode(t)&&h.NodeGuards.isSequenceExpressionNode(t.expression)&&t.expression.expressions.some(e=>h.NodeGuards.isCallExpressionNode(e)&&h.NodeGuards.isSuperNode(e.callee))}getVisitor(e){if(!this.options.transformObjectKeys)return null;switch(e){case g.NodeTransformationStage.Converting:return{leave:(e,t)=>{if(t&&h.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(t,r){if(!t.properties.length)return t;const o=b.NodeStatementUtils.getRootStatementOfNode(t);return e.isProhibitedHostStatement(t,o)?t:this.applyObjectExpressionKeysExtractorsRecursive(e.objectExpressionExtractorNames,t,o)}applyObjectExpressionKeysExtractorsRecursive(e,t,r){const o=[...e],n=o.shift();if(!n)return t;const{nodeToReplace:i,objectExpressionHostStatement:a,objectExpressionNode:s}=this.objectExpressionExtractorFactory(n).extract(t,r);return this.applyObjectExpressionKeysExtractorsRecursive(o,s,a),i}};return n.objectExpressionExtractorNames=[N.ObjectExpressionExtractor.ObjectExpressionToVariableDeclarationExtractor,N.ObjectExpressionExtractor.BasePropertiesExtractor],n=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IObjectExpressionExtractor)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TObjectExpressionExtractorFactory&&f.TObjectExpressionExtractorFactory)?t:Object,"function"==typeof(r=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?r:Object,"function"==typeof(o=void 0!==p.IOptions&&p.IOptions)?o:Object])],n),n})();t.ObjectExpressionKeysTransformer=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Converting:return{enter:(e,t)=>{if(t&&p.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return e.properties.forEach(e=>{p.NodeGuards.isPropertyNode(e)&&e.key&&(e.computed?this.transformComputedProperty(e):this.transformBaseProperty(e))}),e}transformComputedProperty(e){p.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=f.NodeFactory.literalNode(e.key.value))}transformBaseProperty(e){e.shorthand&&(e.shorthand=!1),p.NodeGuards.isIdentifierNode(e.key)&&(e.key=f.NodeFactory.literalNode(e.key.name))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ObjectExpressionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitStringTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(13),g=r(10),y=r(11),h=r(8),b=r(4),N=r(45),v=r(6);let I=(()=>{var e,t,r;let o=e=class extends y.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[m.NodeTransformer.ObjectExpressionKeysTransformer,m.NodeTransformer.TemplateLiteralTransformer]}static chunkString(e,t){const r=Math.ceil(e.length/t),o=[];let n=0;for(let i=0;i{if(this.options.splitStrings)return t&&b.NodeGuards.isLiteralNode(e)?this.transformNode(e,t):void 0}};default:return null}}transformNode(t,r){if(N.NodeLiteralUtils.isProhibitedLiteralNode(t,r))return t;const o=this.transformLiteralNodeByChunkLength(t,r,e.firstPassChunkLength);return u.replace(o,{enter:(e,t)=>{if(t&&b.NodeGuards.isLiteralNode(e))return this.transformLiteralNodeByChunkLength(e,t,this.options.splitStringsChunkLength)}})}transformLiteralNodeByChunkLength(t,r,o){if("string"!=typeof t.value)return t;if(o>=t.value.length)return t;const n=e.chunkString(t.value,o),i=this.transformStringChunksToBinaryExpressionNode(n);return v.NodeUtils.parentizeAst(i),v.NodeUtils.parentizeNode(i,r),i}transformStringChunksToBinaryExpressionNode(e){const t=e.shift(),r=e.shift();if(!t||!r)throw new Error("First and second chunks values should not be empty");const o=h.NodeFactory.binaryExpressionNode("+",h.NodeFactory.literalNode(t),h.NodeFactory.literalNode(r));return e.reduce((e,t)=>{const r=h.NodeFactory.literalNode(t);return h.NodeFactory.binaryExpressionNode("+",e,r)},o)}};return o.firstPassChunkLength=1e3,o=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==f.IOptions&&f.IOptions)?r:Object])],o),o})();t.SplitStringTransformer=I},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateLiteralTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4),m=r(6);let g=(()=>{var e,t,r;let g=e=class extends u.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(t){switch(t){case l.NodeTransformationStage.Converting:return{enter:(t,r)=>{if(r&&e.isValidTemplateLiteralNode(t,r))return this.transformNode(t,r)}};default:return null}}transformNode(t,r){const o=t.expressions;let n,i=[];if(t.quasis.forEach(e=>{i.push(f.NodeFactory.literalNode(e.value.cooked));const t=o.shift();t&&i.push(t)}),i=i.filter(e=>!(p.NodeGuards.isLiteralNode(e)&&""===e.value)),e.isLiteralNodeWithStringValue(i[0])||e.isLiteralNodeWithStringValue(i[1])||i.unshift(f.NodeFactory.literalNode("")),i.length>1){let e=f.NodeFactory.binaryExpressionNode("+",i.shift(),i.shift());i.forEach(t=>{e=f.NodeFactory.binaryExpressionNode("+",e,t)}),n=e}else n=i[0];return m.NodeUtils.parentizeAst(n),m.NodeUtils.parentizeNode(n,r),n}};return g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],g),g})();t.TemplateLiteralTransformer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.BasePropertiesExtractor=void 0;const n=r(0),i=r(22),a=r(8),s=r(4),c=r(18),d=r(6);let l=(()=>{var e;let t=e=class{static getPropertyNodeKeyName(e){const t=e.key;return!s.NodeGuards.isLiteralNode(t)||"string"!=typeof t.value&&"number"!=typeof t.value?s.NodeGuards.isIdentifierNode(t)?t.name:null:t.value.toString()}static isProhibitedPattern(e){return!e||s.NodeGuards.isObjectPatternNode(e)||s.NodeGuards.isArrayPatternNode(e)||s.NodeGuards.isAssignmentPatternNode(e)||s.NodeGuards.isRestElementNode(e)}extract(e,t){const r=e.parentNode;return r&&s.NodeGuards.isVariableDeclaratorNode(r)&&s.NodeGuards.isIdentifierNode(r.id)?this.transformObjectExpressionNode(e,t,r.id):{nodeToReplace:e,objectExpressionHostStatement:t,objectExpressionNode:e}}transformObjectExpressionNode(e,t,r){const o=e.properties,[n,a]=this.extractPropertiesToExpressionStatements(o,t,r),s=c.NodeStatementUtils.getScopeOfNode(t);return this.filterExtractedObjectExpressionProperties(e,a),i.NodeAppender.insertAfter(s,n,t),d.NodeUtils.parentizeAst(s),{nodeToReplace:e,objectExpressionHostStatement:t,objectExpressionNode:e}}extractPropertiesToExpressionStatements(t,r,o){const n=t.length,i=[],c=[];for(let d=0;d!t.includes(r))}};return t=e=o([n.injectable()],t),t})();t.BasePropertiesExtractor=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customCodeHelpersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(27),s=r(66),c=r(118),d=r(119),l=r(120),u=r(121),f=r(122),p=r(123),m=r(127),g=r(129),y=r(131),h=r(133),b=r(135),N=r(139),v=r(141),I=r(143),O=r(145),S=r(152),C=r(154);t.customCodeHelpersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.ICustomCodeHelper).to(p.ConsoleOutputDisableCodeHelper).whenTargetNamed(a.CustomCodeHelper.ConsoleOutputDisable),e(i.ServiceIdentifiers.ICustomCodeHelper).to(y.DebugProtectionFunctionCallCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunctionCall),e(i.ServiceIdentifiers.ICustomCodeHelper).to(h.DebugProtectionFunctionIntervalCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunctionInterval),e(i.ServiceIdentifiers.ICustomCodeHelper).to(b.DebugProtectionFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunction),e(i.ServiceIdentifiers.ICustomCodeHelper).to(N.DomainLockCodeHelper).whenTargetNamed(a.CustomCodeHelper.DomainLock),e(i.ServiceIdentifiers.ICustomCodeHelper).to(v.CallsControllerFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.CallsControllerFunction),e(i.ServiceIdentifiers.ICustomCodeHelper).to(I.SelfDefendingUnicodeCodeHelper).whenTargetNamed(a.CustomCodeHelper.SelfDefendingUnicode),e(i.ServiceIdentifiers.ICustomCodeHelper).to(O.StringArrayCallsWrapperCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArrayCallsWrapper),e(i.ServiceIdentifiers.ICustomCodeHelper).to(S.StringArrayCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArray),e(i.ServiceIdentifiers.ICustomCodeHelper).to(C.StringArrayRotateFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArrayRotateFunction),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(c.ConsoleOutputCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.ConsoleOutput),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(d.DebugProtectionCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.DebugProtection),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(l.DomainLockCustomCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.DomainLock),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(u.SelfDefendingCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.SelfDefending),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(f.StringArrayCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.StringArray),e(i.ServiceIdentifiers.Factory__ICustomCodeHelper).toFactory(o.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomCodeHelper)),e(i.ServiceIdentifiers.Factory__ICustomCodeHelperGroup).toFactory(o.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomCodeHelperGroup)),e(i.ServiceIdentifiers.ICustomCodeHelperFormatter).to(m.CustomCodeHelperFormatter).inSingletonScope(),e(i.ServiceIdentifiers.ICustomCodeHelperObfuscator).to(g.CustomCodeHelperObfuscator).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),y=r(22),h=r(23),b=r(4);let N=(()=>{var e,t,r,N,v;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.disableConsoleOutput)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?y.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?y.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=h.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5),c=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5);this.appendCustomNodeIfExist(p.CustomCodeHelper.ConsoleOutputDisable,e=>{e.initialize(c,s),y.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),y.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.disableConsoleOutput)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.ConsoleOutputDisable),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.ConsoleOutputDisable,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],I),I})();t.ConsoleOutputCodeHelperGroup=N},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),y=r(22),h=r(4),b=r(23);let N=(()=>{var e,t,r,N,v;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.debugProtection)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?y.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?y.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=b.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&h.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5),c=a&&h.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5);this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunctionCall,e=>{e.initialize(s,c),y.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),y.NodeAppender.prepend(i,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunction,t=>{t.initialize(s),y.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunctionInterval,t=>{const r=h.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=this.randomGenerator.getRandomInteger(0,r);t.initialize(s),y.NodeAppender.insertAtIndex(e,t.getNode(),o)})}initialize(){if(this.customCodeHelpers=new Map,!this.options.debugProtection)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunction),t=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunctionCall),r=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunctionInterval),o=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunction,e),this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunctionCall,t),this.options.debugProtectionInterval&&this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunctionInterval,r),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,o)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],I),I})();t.DebugProtectionCodeHelperGroup=N},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockCustomCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),y=r(22),h=r(23),b=r(4);let N=(()=>{var e,t,r,N,v;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.domainLock.length)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?y.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?y.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=h.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext(),c=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext();this.appendCustomNodeIfExist(p.CustomCodeHelper.DomainLock,e=>{e.initialize(c,s),y.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),y.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.domainLock.length)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.DomainLock),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.DomainLock,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],I),I})();t.DomainLockCustomCodeHelperGroup=N},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),y=r(22),h=r(23);let b=(()=>{var e,t,r,b,N;let v=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.selfDefending)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?y.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?y.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=h.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext(),c=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext();this.appendCustomNodeIfExist(p.CustomCodeHelper.SelfDefendingUnicode,e=>{e.initialize(c,s),y.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),y.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.selfDefending)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.SelfDefendingUnicode),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.SelfDefendingUnicode,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],v.prototype,"customCodeHelpers",void 0),v=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(b=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?b:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],v),v})();t.SelfDefendingCodeHelperGroup=b},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(37),p=r(7),m=r(27),g=r(25),y=r(30),h=r(22);let b=(()=>{var e,t,r,b,N,v;let I=class extends y.AbstractCustomCodeHelperGroup{constructor(e,t,r,o,n){super(r,o,n),this.appendEvent=g.ObfuscationEvent.AfterObfuscation,this.customCodeHelperFactory=e,this.stringArrayStorage=t}appendNodes(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArray,t=>{h.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArrayCallsWrapper,t=>{h.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArrayRotateFunction,t=>{h.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}initialize(){if(this.customCodeHelpers=new Map,!this.options.stringArray)return;const e=this.customCodeHelperFactory(m.CustomCodeHelper.StringArray),t=this.customCodeHelperFactory(m.CustomCodeHelper.StringArrayCallsWrapper),r=this.customCodeHelperFactory(m.CustomCodeHelper.StringArrayRotateFunction),o=this.stringArrayStorage.getStorageName(),n=this.stringArrayStorage.getStorageCallsWrapperName(),i=this.stringArrayStorage.getRotationAmount();e.initialize(this.stringArrayStorage,o),t.initialize(o,n),r.initialize(o,i),this.customCodeHelpers.set(m.CustomCodeHelper.StringArray,e),this.customCodeHelpers.set(m.CustomCodeHelper.StringArrayCallsWrapper,t),this.options.rotateStringArray&&this.customCodeHelpers.set(m.CustomCodeHelper.StringArrayRotateFunction,r)}};return o([p.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.IStringArrayStorage)),i(2,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==f.IStringArrayStorage&&f.IStringArrayStorage)?r:Object,"function"==typeof(b=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?b:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],I),I})();t.StringArrayCodeHelperGroup=b},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(24),m=r(124),g=r(48),y=r(7),h=r(17),b=r(6);let N=(()=>{var e,t,r,N,v;let I=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.callsControllerFunctionName=e,this.consoleOutputDisableFunctionName=t}getNodeStructure(e){return b.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():g.GlobalVariableNoEvalTemplate();return this.customCodeHelperFormatter.formatTemplate(m.ConsoleOutputDisableExpressionTemplate(),{callControllerFunctionName:this.callsControllerFunctionName,consoleLogDisableFunctionName:this.consoleOutputDisableFunctionName,globalVariableTemplate:e})}};return o([y.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([y.initializable(),n("design:type",String)],I.prototype,"consoleOutputDisableFunctionName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(N=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==u.IOptions&&u.IOptions)?v:Object])],I),I})();t.ConsoleOutputDisableCodeHelper=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableExpressionTemplate=void 0,t.ConsoleOutputDisableExpressionTemplate=function(){return"\n const {consoleLogDisableFunctionName} = {callControllerFunctionName}(this, function () {\n const func = function () {};\n \n {globalVariableTemplate}\n \n if (!that.console) {\n that.console = (function (func){\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=void 0,t.GlobalVariableTemplate1=function(){return"\n let that;\n \n try {\n const getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=void 0,t.GlobalVariableTemplate2=function(){return"\n const getGlobal = function () {\n let 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 const that = getGlobal();\n "}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperFormatter=void 0;const l=r(0),u=r(1),f=a(r(12)),p=d(r(128)),m=r(67),g=r(4);let y=(()=>{var e;let t=class{constructor(e){this.prevailingKindOfVariables=e.getPrevailingKind()}formatTemplate(e,t){return p.default(e,t)}formatStructure(e){for(const t of e)f.replace(t,{enter:e=>{if(g.NodeGuards.isVariableDeclarationNode(e))return"var"===this.prevailingKindOfVariables&&(e.kind="var"),e}});return e}};return t=i([l.injectable(),c(0,l.inject(u.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),s("design:paramtypes",["function"==typeof(e=void 0!==m.IPrevailingKindOfVariablesAnalyzer&&m.IPrevailingKindOfVariablesAnalyzer)?e:Object])],t),t})();t.CustomCodeHelperFormatter=y},function(e,t){e.exports=require("string-template")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperObfuscator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(130),u=r(53);let f=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}obfuscateTemplate(e,t={}){return u.JavaScriptObfuscator.obfuscate(e,Object.assign(Object.assign(Object.assign({},l.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.randomGenerator.getRawSeed()}),t)).getObfuscatedCode()}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.CustomCodeHelperObfuscator=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NO_ADDITIONAL_NODES_PRESET=void 0;const o=r(34),n=r(24),i=r(32);t.NO_ADDITIONAL_NODES_PRESET=Object.freeze({compact:!0,controlFlowFlattening:!1,controlFlowFlatteningThreshold:0,deadCodeInjection:!1,deadCodeInjectionThreshold:0,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",identifiersDictionary:[],inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!1,seed:0,selfDefending:!1,shuffleStringArray:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,splitStrings:!1,splitStringsChunkLength:0,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:n.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(7),m=r(132),g=r(17),y=r(6);let h=(()=>{var e,t,r,h,b;let N=class extends g.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(m.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,callControllerFunctionName:this.callsControllerFunctionName})}};return o([p.initializable(),n("design:type",String)],N.prototype,"callsControllerFunctionName",void 0),o([p.initializable(),n("design:type",String)],N.prototype,"debugProtectionFunctionName",void 0),N=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(h=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?h:Object,"function"==typeof(b=void 0!==u.IOptions&&u.IOptions)?b:Object])],N),N})();t.DebugProtectionFunctionCallCodeHelper=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallTemplate=void 0,t.DebugProtectionFunctionCallTemplate=function(){return"\n (function () {\n {callControllerFunctionName}(\n this,\n function () {\n const regExp1 = new RegExp('function *\\\\( *\\\\)');\n const regExp2 = new RegExp('\\\\+\\\\+ *\\(?:[a-zA-Z_$][0-9a-zA-Z_$]*\\)', 'i');\n \n const 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 })();\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(7),m=r(134),g=r(17),y=r(6);let h=(()=>{var e,t,r,h,b;let N=class extends g.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(m.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}};return o([p.initializable(),n("design:type",String)],N.prototype,"debugProtectionFunctionName",void 0),N=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(h=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?h:Object,"function"==typeof(b=void 0!==u.IOptions&&u.IOptions)?b:Object])],N),N})();t.DebugProtectionFunctionIntervalCodeHelper=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=void 0,t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(24),m=r(7),g=r(136),y=r(137),h=r(138),b=r(17),N=r(6);let v=(()=>{var e,t,r,v,I;let O=class extends b.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(e){return N.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?g.DebuggerTemplate():y.DebuggerTemplateNoEval();return this.customCodeHelperFormatter.formatTemplate(h.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}};return o([m.initializable(),n("design:type",String)],O.prototype,"debugProtectionFunctionName",void 0),O=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(v=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?v:Object,"function"==typeof(I=void 0!==u.IOptions&&u.IOptions)?I:Object])],O),O})();t.DebugProtectionFunctionCodeHelper=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplate=void 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplateNoEval=void 0,t.DebuggerTemplateNoEval=function(){return"\n if (typeof counter === 'string') {\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionTemplate=void 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(49),f=r(2),p=r(3),m=r(24),g=r(7),y=r(140),h=r(48),b=r(17),N=r(6);let v=(()=>{var e,t,r,v,I,O;let S=class extends b.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.cryptUtils=i}initialize(e,t){this.callsControllerFunctionName=e,this.domainLockFunctionName=t}getNodeStructure(e){return N.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.domainLock.join(";"),[t,r]=this.cryptUtils.hideString(e,3*e.length),o=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():h.GlobalVariableNoEvalTemplate();return this.customCodeHelperFormatter.formatTemplate(y.DomainLockTemplate(),{callControllerFunctionName:this.callsControllerFunctionName,domainLockFunctionName:this.domainLockFunctionName,diff:r,domains:t,globalVariableTemplate:o})}};return o([g.initializable(),n("design:type",String)],S.prototype,"callsControllerFunctionName",void 0),o([g.initializable(),n("design:type",String)],S.prototype,"domainLockFunctionName",void 0),S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.ICryptUtils)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(v=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?v:Object,"function"==typeof(I=void 0!==f.IOptions&&f.IOptions)?I:Object,"function"==typeof(O=void 0!==u.ICryptUtils&&u.ICryptUtils)?O:Object])],S),S})();t.DomainLockCodeHelper=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockTemplate=void 0,t.DomainLockTemplate=function(){return'\n const {domainLockFunctionName} = {callControllerFunctionName}(this, function () {\n \n {globalVariableTemplate}\n \n const func = function () {\n return {\n key: \'item\',\n value: \'attribute\',\n getAttribute: function () {\n for (let i = 0; i < 1000; i--) {\n const 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 const regExp = new RegExp("[{diff}]", "g");\n const domains = "{domains}".replace(regExp, "").split(";");\n let document;\n let domain;\n let location;\n let hostname;\n\n for (let 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 (let 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 (let 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 (let 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 const documentDomain = that[document][domain];\n const documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n const currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n let ok = false;\n \n for (let i = 0; i < domains.length; i++) {\n const domain = domains[i];\n const position = currentDomain.length - domain.length;\n const lastIndex = currentDomain.indexOf(domain, position);\n const 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsControllerFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(14),l=r(9),u=r(2),f=r(3),p=r(25),m=r(7),g=r(142),y=r(17),h=r(6);let b=(()=>{var e,t,r,b,N,v;let I=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(g.SingleCallControllerTemplate(),{callControllerFunctionName:this.callsControllerFunctionName})):this.customCodeHelperFormatter.formatTemplate(g.SingleCallControllerTemplate(),{callControllerFunctionName:this.callsControllerFunctionName})}};return o([m.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([m.initializable(),n("design:type","function"==typeof(e=void 0!==p.ObfuscationEvent&&p.ObfuscationEvent)?e:Object)],I.prototype,"appendEvent",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperFormatter&&l.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==d.ICustomCodeHelperObfuscator&&d.ICustomCodeHelperObfuscator)?b:Object,"function"==typeof(N=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==u.IOptions&&u.IOptions)?v:Object])],I),I})();t.CallsControllerFunctionCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleCallControllerTemplate=void 0,t.SingleCallControllerTemplate=function(){return"\n const {callControllerFunctionName} = (function(){\n let firstCall = true;\n \n return function (context, fn){\n const rfn = firstCall ? function(){\n if(fn){\n const 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingUnicodeCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(7),g=r(144),y=r(17),h=r(6);let b=(()=>{var e,t,r,b,N,v;let I=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.callsControllerFunctionName=e,this.selfDefendingFunctionName=t}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{callControllerFunctionName:this.callsControllerFunctionName,selfDefendingFunctionName:this.selfDefendingFunctionName})}};return o([m.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([m.initializable(),n("design:type",String)],I.prototype,"selfDefendingFunctionName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(b=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?b:Object,"function"==typeof(N=void 0!==f.IOptions&&f.IOptions)?N:Object,"function"==typeof(v=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?v:Object])],I),I})();t.SelfDefendingUnicodeCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e){return"\n const {selfDefendingFunctionName} = {callControllerFunctionName}(this, function () {\n const test = function () {\n const regExp = test\n .constructor('return /\" + this + \"/')()\n .compile('^([^ ]+( +[^ ]+)+)+[^ ]}');\n \n return !regExp.test({selfDefendingFunctionName});\n };\n \n return test();\n });\n \n {selfDefendingFunctionName}();\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(24),g=r(28),y=r(7),h=r(146),b=r(48),N=r(147),v=r(148),I=r(149),O=r(150),S=r(151),C=r(17),j=r(6);let _=(()=>{var e,t,r,_,R,F;let T=class extends C.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}getNodeStructure(e){return j.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.getDecodeStringArrayTemplate(),t=[`^${this.stringArrayName}$`];return this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(O.StringArrayCallsWrapperTemplate(),{decodeCodeHelperTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),{reservedNames:t})}getDecodeStringArrayTemplate(){const e=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():b.GlobalVariableNoEvalTemplate(),t=this.customCodeHelperFormatter.formatTemplate(h.AtobTemplate(),{globalVariableTemplate:e});let r="",o="";switch(this.options.selfDefending&&(o=this.customCodeHelperFormatter.formatTemplate(v.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case g.StringArrayEncoding.Rc4:r=this.customCodeHelperFormatter.formatTemplate(S.StringArrayRC4DecodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:o,rc4Polyfill:N.Rc4Template(),stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case g.StringArrayEncoding.Base64:r=this.customCodeHelperFormatter.formatTemplate(I.StringArrayBase64DecodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:o,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}};return o([y.initializable(),n("design:type",String)],T.prototype,"stringArrayName",void 0),o([y.initializable(),n("design:type",String)],T.prototype,"stringArrayCallsWrapperName",void 0),T=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(_=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?_:Object,"function"==typeof(R=void 0!==f.IOptions&&f.IOptions)?R:Object,"function"==typeof(F=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?F:Object])],T),T})();t.StringArrayCallsWrapperCodeHelper=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=void 0,t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n const str = String(input).replace(/=+$/, '');\n let output = '';\n for (\n let bc = 0, bs, buffer, idx = 0;\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 })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=void 0,t.Rc4Template=function(){return"\n const rc4 = function (str, key) {\n let s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (let 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 let i;\n \t \n\t for (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 (let 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e,t){const r=e.getRandomString(6),o=e.getRandomString(6),n=e.getRandomString(6),i=e.getRandomString(6),a=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),l=e.getRandomString(6);return`\n const StatesClass = function (${r}) {\n this.${r} = ${r};\n this.${o} = [1, 0, 0];\n this.${n} = 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 const regExp = new RegExp(this.${i} + this.${a});\n const expression = regExp.test(this.${n}.toString())\n ? --this.${o}[1]\n : --this.${o}[0];\n \n return this.${c}(expression);\n };\n \n StatesClass.prototype.${c} = function (${l}) {\n if (!Boolean(~${l})) {\n return ${l};\n }\n \n return this.${d}(this.${r});\n };\n\n StatesClass.prototype.${d} = function (${r}) {\n for (let i = 0, len = this.${o}.length; i < len; i++) {\n this.${o}.push(Math.round(Math.random()));\n len = this.${o}.length;\n }\n \n return ${r}(this.${o}[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).${s}();\n `}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeTemplate=void 0,t.StringArrayBase64DecodeTemplate=function(e){const t=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.${r} = function (str) {\n const string = atob(str);\n let newStringChars = [];\n \n for (let 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}.${o} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n const cachedValue = {stringArrayCallsWrapperName}.${o}[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.${r}(value);\n {stringArrayCallsWrapperName}.${o}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=void 0,t.StringArrayCallsWrapperTemplate=function(){return"\n const {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n let value = {stringArrayName}[index];\n \n {decodeCodeHelperTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRC4DecodeTemplate=void 0,t.StringArrayRC4DecodeTemplate=function(e){const t=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6),n=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.${r} = rc4;\n \n {stringArrayCallsWrapperName}.${o} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n const cachedValue = {stringArrayCallsWrapperName}.${o}[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.${n} === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.${n} = true;\n }\n \n value = {stringArrayCallsWrapperName}.${r}(value, key);\n {stringArrayCallsWrapperName}.${o}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(37),m=r(7),g=r(153),y=r(17),h=r(6);let b=(()=>{var e,t,r,b,N,v;let I=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.stringArrayStorage=e,this.stringArrayName=t}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}};return o([m.initializable(),n("design:type","function"==typeof(e=void 0!==p.IStringArrayStorage&&p.IStringArrayStorage)?e:Object)],I.prototype,"stringArrayStorage",void 0),o([m.initializable(),n("design:type",String)],I.prototype,"stringArrayName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?b:Object,"function"==typeof(N=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==u.IOptions&&u.IOptions)?v:Object])],I),I})();t.StringArrayCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=void 0,t.StringArrayTemplate=function(){return"\n const {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(7),g=r(155),y=r(156),h=r(17),b=r(6),N=r(38);let v=(()=>{var e,t,r,v,I,O;let S=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.stringArrayName=e,this.stringArrayRotationAmount=t}getNodeStructure(e){return b.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.identifierNamesGenerator.generateNext(),t=this.identifierNamesGenerator.generateNext(),r=[`^${this.stringArrayName}$`];let o="";return o=this.options.selfDefending?this.customCodeHelperFormatter.formatTemplate(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):`${t}(++${e})`,this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(y.StringArrayRotateFunctionTemplate(),{code:o,timesName:e,whileFunctionName:t,stringArrayName:this.stringArrayName,stringArrayRotationAmount:N.NumberUtils.toHex(this.stringArrayRotationAmount)}),{reservedNames:r})}};return o([m.initializable(),n("design:type",String)],S.prototype,"stringArrayName",void 0),o([m.initializable(),n("design:type",Number)],S.prototype,"stringArrayRotationAmount",void 0),S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(v=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?v:Object,"function"==typeof(I=void 0!==f.IOptions&&f.IOptions)?I:Object,"function"==typeof(O=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?O:Object])],S),S})();t.StringArrayRotateFunctionCodeHelper=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e){return`\n const selfDefendingFunc = function () {\n const object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n let updatedCookie = name + "=" + value;\n let i = 0;\n \n for (let i = 0, len = options.length; i < len; i++) {\n const propName = options[i];\n \n updatedCookie += "; " + propName;\n \n const 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 const matches = document(new RegExp(\n "(?:^|; )" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + "=([^;]*)"\n ));\n \n const 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 const test1 = function () {\n const regExp = new RegExp('${e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0)}');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n let cookie = '';\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=void 0,t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n const {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, {stringArrayRotationAmount});\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customNodesModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(21),s=r(63),c=r(65),d=r(158),l=r(159),u=r(160),f=r(161),p=r(162),m=r(163),g=r(164),y=r(166),h=r(167),b=r(168),N=r(169);t.customNodesModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(l.BinaryExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(u.BlockStatementControlFlowFlatteningNode).whenTargetNamed(a.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(p.CallExpressionControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(m.CallExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.ControlFlowStorageNode).whenTargetNamed(a.ControlFlowCustomNode.ControlFlowStorageNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.LogicalExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.StringLiteralNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(b.StringLiteralControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(f.BlockStatementDeadCodeInjectionNode).whenTargetNamed(s.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(d.ObjectExpressionVariableDeclarationHostNode).whenTargetNamed(c.ObjectExpressionKeysTransformerCustomNode.ObjectExpressionVariableDeclarationHostNode),e(i.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions,i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),e(i.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions)),e(i.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions,i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionVariableDeclarationHostNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(4);let g=(()=>{var e,t,r,g;let y=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.lexicalScopeNode=e,this.properties=t}getNodeStructure(){const e=m.NodeGuards.isProgramNode(this.lexicalScopeNode)?this.identifierNamesGenerator.generateForGlobalScope():this.identifierNamesGenerator.generateForLexicalScope(this.lexicalScopeNode);return[p.NodeFactory.variableDeclarationNode([p.NodeFactory.variableDeclaratorNode(p.NodeFactory.identifierNode(e),p.NodeFactory.objectExpressionNode(this.properties))],"const")]}};return y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.ObjectExpressionVariableDeclarationHostNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let y=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.operator=e}getNodeStructure(){const e=p.NodeFactory.expressionStatementNode(p.NodeFactory.functionExpressionNode([p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")],p.NodeFactory.blockStatementNode([p.NodeFactory.returnStatementNode(p.NodeFactory.binaryExpressionNode(this.operator,p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")))])));return m.NodeUtils.parentizeAst(e),[e]}};return y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.BinaryExpressionFunctionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementControlFlowFlatteningNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(4),y=r(6);let h=(()=>{var e,t,r,h;let b=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}getNodeStructure(){const e=this.randomGenerator.getRandomString(6),t=this.randomGenerator.getRandomString(6),r=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(e),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")]))],"const"),m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.literalNode(0))],"let"),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(e),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(t)),!0),this.shuffledKeys.map((e,t)=>{const r=this.blockStatementBody[e],o=[r];return g.NodeGuards.isReturnStatementNode(r)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(t)),o)})),m.NodeFactory.breakStatement()]))]);return y.NodeUtils.parentizeAst(r),[r]}};return o([f.initializable(),n("design:type",Array)],b.prototype,"blockStatementBody",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"originalKeysIndexesInShuffledArray",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"shuffledKeys",void 0),b=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(h=void 0!==l.IOptions&&l.IOptions)?h:Object])],b),b})();t.BlockStatementControlFlowFlatteningNode=h},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementDeadCodeInjectionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let y=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}getNode(){return this.getNodeStructure()}getNodeStructure(){const e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",o=this.randomGenerator.getRandomString(5),n=t?o:this.randomGenerator.getRandomString(5),[i,a]=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=p.NodeFactory.blockStatementNode([p.NodeFactory.ifStatementNode(p.NodeFactory.binaryExpressionNode(r,p.NodeFactory.literalNode(o),p.NodeFactory.literalNode(n)),i,a)]);return m.NodeUtils.parentizeAst(s),[s]}};return y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.BlockStatementDeadCodeInjectionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let y=(()=>{var e,t,r,y,h;let b=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=o}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee,...this.expressionArguments]));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof ESTree&&ESTree.Expression)?e:Object)],b.prototype,"callee",void 0),o([f.initializable(),n("design:type",String)],b.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],b.prototype,"controlFlowStorageName",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"expressionArguments",void 0),b=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(y=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?y:Object,"function"==typeof(h=void 0!==l.IOptions&&l.IOptions)?h:Object])],b),b})();t.CallExpressionControlFlowStorageCallNode=y},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let y=(()=>{var e,t,r,y;let h=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.expressionArguments=e}getNodeStructure(){const e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length;for(let e=0;e=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowStorageNode=void 0;const a=r(0),s=r(1),c=r(165),d=r(5),l=r(9),u=r(2),f=r(3),p=r(7),m=r(15),g=r(8),y=r(4),h=r(6);let b=(()=>{var e,t,r,b,N;let v=class extends m.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.controlFlowStorage=e}getNodeStructure(){const e=Array.from(this.controlFlowStorage.getStorage()).map(([e,t])=>{const r=t.getNode()[0];if(!y.NodeGuards.isExpressionStatementNode(r))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return g.NodeFactory.propertyNode(g.NodeFactory.identifierNode(e),r.expression)});let t=g.NodeFactory.variableDeclarationNode([g.NodeFactory.variableDeclaratorNode(g.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),g.NodeFactory.objectExpressionNode(e))],"const");return t=h.NodeUtils.parentizeAst(t),[t]}};return o([p.initializable(),n("design:type","function"==typeof(e=void 0!==c.TControlFlowStorage&&c.TControlFlowStorage)?e:Object)],v.prototype,"controlFlowStorage",void 0),v=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperFormatter&&l.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?b:Object,"function"==typeof(N=void 0!==u.IOptions&&u.IOptions)?N:Object])],v),v})();t.ControlFlowStorageNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithOperatorControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let y=(()=>{var e,t,r,y;let h=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=o}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type",String)],h.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],h.prototype,"controlFlowStorageName",void 0),h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(y=void 0!==l.IOptions&&l.IOptions)?y:Object])],h),h})();t.ExpressionWithOperatorControlFlowStorageCallNode=y},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let y=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.operator=e}getNodeStructure(){const e=p.NodeFactory.expressionStatementNode(p.NodeFactory.functionExpressionNode([p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")],p.NodeFactory.blockStatementNode([p.NodeFactory.returnStatementNode(p.NodeFactory.logicalExpressionNode(this.operator,p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")))])));return m.NodeUtils.parentizeAst(e),[e]}};return y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.LogicalExpressionFunctionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let y=(()=>{var e,t,r,y;let h=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type",String)],h.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],h.prototype,"controlFlowStorageName",void 0),h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(y=void 0!==l.IOptions&&l.IOptions)?y:Object])],h),h})();t.StringLiteralControlFlowStorageCallNode=y},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8);let g=(()=>{var e,t,r,g;let y=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.literalValue=e}getNodeStructure(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}};return o([f.initializable(),n("design:type",String)],y.prototype,"literalValue",void 0),y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalizingTransformersModule=void 0;const o=r(0);t.finalizingTransformersModule=new o.ContainerModule(e=>{})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generatorsModule=void 0;const o=r(0),n=r(1),i=r(34),a=r(172),s=r(173),c=r(174);t.generatorsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(a.DictionaryIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(c.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(n.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(){let e=null;return t=>r=>{if(e)return e;let o;switch(r.identifierNamesGenerator){case i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return e=o,o}}())})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DictionaryIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(36),d=r(2),l=r(3),u=r(50),f=r(23);let p=(()=>{var e,t,r,p;let m=e=class extends u.AbstractIdentifierNamesGenerator{constructor(e,t,r){super(e,t),this.arrayUtils=r,this.identifierNamesSet=new Set(this.getInitialIdentifierNames(this.options.identifiersDictionary)),this.identifiersIterator=this.identifierNamesSet.values()}static incrementIdentifierName(e){let t="",r=!1;for(const o of e)r||o!==o.toUpperCase()?r||o!==o.toLowerCase()?t+=o:(t+=o.toUpperCase(),r=!0):t+=o.toLowerCase();return r?t:null}generateNext(){const e=this.generateNewDictionaryName();return this.preserveName(e),e}generateForGlobalScope(){const e=`${this.options.identifiersPrefix?`${this.options.identifiersPrefix}`:""}${this.generateNewDictionaryName()}`;return this.isValidIdentifierName(e)?(this.preserveName(e),e):this.generateForGlobalScope()}generateForLexicalScope(e){const t=[e,...f.NodeLexicalScopeUtils.getLexicalScopes(e)],r=this.generateNewDictionaryName();return this.isValidIdentifierNameInLexicalScopes(r,t)?(this.preserveNameForLexicalScope(r,e),r):this.generateForLexicalScope(e)}generateNewDictionaryName(){if(!this.identifierNamesSet.size)throw new Error("Too many identifiers in the code, add more words to identifiers dictionary");const e=this.identifiersIterator.next();if(!e.done){const t=e.value;return this.isValidIdentifierName(t)?e.value:this.generateNewDictionaryName()}return this.identifierNamesSet=new Set(this.getIncrementedIdentifierNames([...this.identifierNamesSet])),this.identifiersIterator=this.identifierNamesSet.values(),this.generateNewDictionaryName()}getInitialIdentifierNames(e){const t=e.filter(Boolean).map(e=>e.toLowerCase());return this.arrayUtils.shuffle(t)}getIncrementedIdentifierNames(t){const r=[];for(const o of t){const t=e.incrementIdentifierName(o);t&&r.push(t)}return this.arrayUtils.shuffle(r)}};return m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),i(2,a.inject(s.ServiceIdentifiers.IArrayUtils)),n("design:paramtypes",["function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object,"function"==typeof(p=void 0!==c.IArrayUtils&&c.IArrayUtils)?p:Object])],m),m})();t.DictionaryIdentifierNamesGenerator=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.HexadecimalIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(50),u=r(38),f=r(26);let p=(()=>{var e,t,r;let p=e=class extends l.AbstractIdentifierNamesGenerator{constructor(e,t){super(e,t)}generateNext(t){const r=this.randomGenerator.getRandomInteger(1e4,99999999),o=u.NumberUtils.toHex(r),n=f.Utils.hexadecimalPrefix.length,i=(null!=t?t:e.baseIdentifierNameLength)+n,a=`_${o.substr(0,i)}`;return this.isValidIdentifierName(a)?(this.preserveName(a),a):this.generateNext(t)}generateForGlobalScope(e){const t=this.generateNext(e);return`${this.options.identifiersPrefix}${t}`.replace("__","_")}generateForLexicalScope(e,t){return this.generateNext(t)}};return p.baseIdentifierNameLength=6,p=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],p),p})();t.HexadecimalIdentifierNamesGenerator=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MangledIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(50),u=r(23);let f=(()=>{var e,t,r;let f=e=class extends l.AbstractIdentifierNamesGenerator{constructor(t,r){super(t,r),this.previousMangledName=e.initMangledNameCharacter}generateNext(e){const t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,this.preserveName(t),t}generateForGlobalScope(e){const t=this.options.identifiersPrefix?`${this.options.identifiersPrefix}`:"",r=this.generateNewMangledName(this.previousMangledName),o=`${t}${r}`;return this.previousMangledName=r,this.isValidIdentifierName(o)?(this.preserveName(o),o):this.generateForGlobalScope(e)}generateForLexicalScope(t,r){const o=[t,...u.NodeLexicalScopeUtils.getLexicalScopes(t)];let n=this.getLastMangledNameForScopes(o);do{n=this.generateNewMangledName(n)}while(!this.isValidIdentifierNameInLexicalScopes(n,o));return e.lastMangledNameInScopeMap.set(t,n),this.preserveNameForLexicalScope(n,t),n}isValidIdentifierName(t){return super.isValidIdentifierName(t)&&!e.reservedNamesSet.has(t)}generateNewMangledName(t){let r=(t=>{const r=e.nameSequence,o=r.length,n=t.length,i=e=>"0".repeat(e);let a=n-1;do{const e=t[a],s=r.indexOf(e);if(s!==o-1){return t.substring(0,a)+r[s+1]+i(n-(a+1))}--a}while(a>=0);return`a${i(n)}`})(t);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}getLastMangledNameForScopes(t){var r;for(const o of t){const t=null!==(r=e.lastMangledNameInScopeMap.get(o))&&void 0!==r?r:null;if(t)return t}return e.initMangledNameCharacter}};return f.initMangledNameCharacter="9",f.lastMangledNameInScopeMap=new WeakMap,f.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),f.reservedNamesSet=new Set(["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"]),f=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],f),f})();t.MangledIdentifierNamesGenerator=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializingTransformersModule=void 0;const o=r(0),n=r(1),i=r(13),a=r(176);t.initializingTransformersModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.INodeTransformer).to(a.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer)})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommentsTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(10),g=r(11),y=r(68),h=r(4);let b=(()=>{var e,t,r;let o=e=class extends g.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case m.NodeTransformationStage.Initializing:return{leave:e=>{if(h.NodeGuards.isProgramNode(e))return this.transformNode(e)}};default:return null}}transformNode(e){if(!e.comments||!e.comments.length)return e;const t=this.transformComments(e.comments);if(0===t.length)return e;if(!e.body.length)return e.leadingComments=t,e;let r=!0;return u.traverse(e,{enter:o=>{if(o===e)return;const n=t.findIndex(e=>e.range&&o.range&&e.range[0]=0&&((r?e:o).leadingComments=t.splice(n,t.length-n).reverse()),r=!1}}),t.length>0&&(e.trailingComments=t.reverse()),e}transformComments(t){return t.filter(t=>e.preservedWords.some(e=>t.value.includes(e))||y.ConditionalCommentObfuscatingGuard.isConditionalComment(t)).reverse()}};return o.preservedWords=["@license","@preserve"],o=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==f.IOptions&&f.IOptions)?r:Object])],o),o})();t.CommentsTransformer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeModule=void 0;const o=r(0),n=r(1),i=r(178);t.nodeModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IScopeIdentifiersTraverser).to(i.ScopeIdentifiersTraverser).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIdentifiersTraverser=void 0;const a=r(0),s=r(1),c=r(179),d=r(4);let l=(()=>{var e,t;let r=e=class{constructor(e){this.scopeAnalyzer=e}traverse(e,t,r){this.scopeAnalyzer.analyze(e);const o=this.scopeAnalyzer.acquireScope(e);this.traverseScopeVariables(o,o,r)}traverseScopeVariables(t,r,o){const n=r.variableScope,i=d.NodeGuards.isNodeWithBlockLexicalScope(n.block)?n.block:null,a=e.globalScopeNames.includes(n.type);if(i){for(const s of r.variables){if(s.name===e.argumentsVariableName)continue;o({isGlobalDeclaration:a,isBubblingDeclaration:s.identifiers.some(e=>e.parentNode&&d.NodeGuards.isPropertyNode(e.parentNode)&&e.parentNode.shorthand),rootScope:t,variable:s,variableScope:n,variableLexicalScopeNode:i})}for(const e of r.childScopes)this.traverseScopeVariables(t,e,o)}}};return r.argumentsVariableName="arguments",r.globalScopeNames=["global","module"],r=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IScopeAnalyzer)),n("design:paramtypes",["function"==typeof(t=void 0!==c.IScopeAnalyzer&&c.IScopeAnalyzer)?t:Object])],r),r})();t.ScopeIdentifiersTraverser=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(181);t.nodeTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Factory__INodeTransformer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.INodeTransformer)),e(i.ServiceIdentifiers.INodeTransformerNamesGroupsBuilder).to(a.NodeTransformerNamesGroupsBuilder).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformerNamesGroupsBuilder=void 0;const n=r(0),i=r(56);let a=(()=>{let e=class extends i.AbstractTransformerNamesGroupsBuilder{};return e=o([n.injectable()],e),e})();t.NodeTransformerNamesGroupsBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.obfuscatingTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(39),s=r(69),c=r(13),d=r(183),l=r(184),u=r(185),f=r(186),p=r(188),m=r(189),g=r(190);t.obfuscatingTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(u.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(g.ScopeIdentifiersTransformer).whenTargetNamed(c.NodeTransformer.ScopeIdentifiersTransformer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(l.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(p.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(m.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(a.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(i.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IObfuscatingReplacer)),e(i.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseIdentifierObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(5),d=r(2),l=r(40),u=r(8);let f=(()=>{var e,t;let r=class extends l.AbstractObfuscatingReplacer{constructor(e,t){super(t),this.blockScopesMap=new Map,this.identifierNamesGenerator=e(t)}replace(e,t){let r=e.name;if(this.blockScopesMap.has(t)){const e=this.blockScopesMap.get(t);e.has(r)&&(r=e.get(r))}return u.NodeFactory.identifierNode(r)}storeGlobalName(e,t){const r=e.name;if(this.isReservedName(r))return;const o=this.identifierNamesGenerator.generateForGlobalScope();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(r,o)}storeLocalName(e,t){const r=e.name;if(this.isReservedName(r))return;const o=this.identifierNamesGenerator.generateForLexicalScope(t);this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(r,o)}preserveName(e){this.identifierNamesGenerator.preserveName(e.name)}preserveNameForLexicalScope(e,t){this.identifierNamesGenerator.preserveNameForLexicalScope(e.name,t)}isReservedName(e){return!!this.options.reservedNames.length&&this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.IOptions&&d.IOptions)?t:Object])],r),r})();t.BaseIdentifierObfuscatingReplacer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(40),l=r(8);let u=(()=>{var e,t;let r=e=class extends d.AbstractObfuscatingReplacer{constructor(e){super(e)}static getTrueUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",e.getFalseUnaryExpressionNode())}static getFalseUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",l.NodeFactory.arrayExpressionNode())}replace(t){const r=t.value;if("boolean"!=typeof r)throw new Error("`BooleanLiteralObfuscatingReplacer` should accept only literals with `boolean` value");return r?e.getTrueUnaryExpressionNode():e.getFalseUnaryExpressionNode()}};return r=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.BooleanLiteralObfuscatingReplacer=u},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LabeledStatementTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(51),p=r(2),m=r(3),g=r(39),y=r(10),h=r(11),b=r(4),N=r(23);let v=(()=>{var e,t,r;let o=class extends h.AbstractNodeTransformer{constructor(e,t,r){super(t,r),this.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}getVisitor(e){switch(e){case y.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&b.NodeGuards.isLabeledStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const r=N.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}storeLabeledStatementName(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label,t)}replaceLabeledStatementName(e,t){u.replace(e,{enter:(e,r)=>{if(r&&b.NodeGuards.isLabelIdentifierNode(e,r)){const r=this.identifierObfuscatingReplacer.replace(e,t);e.name=r.name}}})}};return o=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TIdentifierObfuscatingReplacerFactory&&f.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==p.IOptions&&p.IOptions)?r:Object])],o),o})();t.LabeledStatementTransformer=v},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralTransformer=void 0;const a=r(0),s=r(1),c=r(187),d=r(33),l=r(2),u=r(3),f=r(70),p=r(69),m=r(10),g=r(11),y=r(8),h=r(4),b=r(45),N=r(19),v=r(6);let I=(()=>{var e,t,r,I,O;let S=class extends g.AbstractNodeTransformer{constructor(e,t,r,o,n){super(t,r),this.literalObfuscatingReplacerFactory=e,this.stringArrayStorageAnalyzer=o,this.escapeSequenceEncoder=n}getVisitor(e){switch(e){case m.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(h.NodeGuards.isProgramNode(e)&&this.analyzeNode(e),t&&h.NodeGuards.isLiteralNode(e)&&!N.NodeMetadata.isReplacedLiteral(e))return this.transformNode(e,t)}};case m.NodeTransformationStage.Finalizing:return{enter:(e,t)=>{if(t&&h.NodeGuards.isLiteralNode(e))return this.encodeLiteralNodeToEscapeSequence(e,t)}};default:return null}}analyzeNode(e){this.stringArrayStorageAnalyzer.analyze(e)}transformNode(e,t){if(b.NodeLiteralUtils.isProhibitedLiteralNode(e,t))return e;let r;switch(typeof e.value){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e);break;case"number":case"bigint":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e);break;default:r=e}return v.NodeUtils.parentizeNode(r,t),r}encodeLiteralNodeToEscapeSequence(e,t){return"string"!=typeof e.value?e:y.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e.value,this.options.unicodeEscapeSequence))}};return S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IObfuscatingReplacer)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),i(3,a.inject(s.ServiceIdentifiers.IStringArrayStorageAnalyzer)),i(4,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TLiteralObfuscatingReplacerFactory&&c.TLiteralObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==l.IOptions&&l.IOptions)?r:Object,"function"==typeof(I=void 0!==f.IStringArrayStorageAnalyzer&&f.IStringArrayStorageAnalyzer)?I:Object,"function"==typeof(O=void 0!==d.IEscapeSequenceEncoder&&d.IEscapeSequenceEncoder)?O:Object])],S),S})();t.LiteralTransformer=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(40),l=r(8),u=r(38);let f=(()=>{var e;let t=class extends d.AbstractObfuscatingReplacer{constructor(e){super(e),this.numberLiteralCache=new Map}replace(e){const t=e.value;if("number"!=typeof t&&"bigint"!=typeof t)throw new Error("`NumberLiteralObfuscatingReplacer` should accept only literals with `number` and `bigint` value");let r;return this.numberLiteralCache.has(t)?r=this.numberLiteralCache.get(t):(r=u.NumberUtils.isCeil(t)?u.NumberUtils.toHex(t):String(t),this.numberLiteralCache.set(t,r)),l.NodeFactory.literalNode(t,r)}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IOptions&&c.IOptions)?e:Object])],t),t})();t.NumberLiteralObfuscatingReplacer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(37),l=r(70),u=r(28),f=r(40),p=r(19),m=r(8),g=r(38);let y=(()=>{var e,t,r,y;let h=e=class extends f.AbstractObfuscatingReplacer{constructor(e,t,r){super(r),this.nodesCache=new Map,this.stringArrayStorage=e,this.stringArrayStorageAnalyzer=t}static getHexadecimalLiteralNode(e){const t=m.NodeFactory.literalNode(e);return p.NodeMetadata.set(t,{replacedLiteral:!0}),t}static getRc4KeyLiteralNode(e){const t=m.NodeFactory.literalNode(e);return p.NodeMetadata.set(t,{replacedLiteral:!0}),t}initialize(){this.options.shuffleStringArray&&this.stringArrayStorage.shuffleStorage(),this.options.rotateStringArray&&this.stringArrayStorage.rotateStorage()}replace(e){const t=e.value;if("string"!=typeof t)throw new Error("`StringLiteralObfuscatingReplacer` should accept only literals with `string` value");const r=this.stringArrayStorageAnalyzer.getItemDataForLiteralNode(e),o=`${t}-${Boolean(r)}`;if(this.nodesCache.has(o)&&this.options.stringArrayEncoding!==u.StringArrayEncoding.Rc4)return this.nodesCache.get(o);const n=r?this.replaceWithStringArrayCallNode(r):this.replaceWithLiteralNode(t);return this.nodesCache.set(o,n),n}replaceWithLiteralNode(e){return m.NodeFactory.literalNode(e)}replaceWithStringArrayCallNode(t){const{index:r,decodeKey:o}=t,n=g.NumberUtils.toHex(r),i=[e.getHexadecimalLiteralNode(n)];o&&i.push(e.getRc4KeyLiteralNode(o));const a=m.NodeFactory.identifierNode(this.stringArrayStorage.getStorageCallsWrapperName());return m.NodeFactory.callExpressionNode(a,i)}};return o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],h.prototype,"initialize",null),h=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IStringArrayStorage)),i(1,a.inject(s.ServiceIdentifiers.IStringArrayStorageAnalyzer)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IStringArrayStorage&&d.IStringArrayStorage)?t:Object,"function"==typeof(r=void 0!==l.IStringArrayStorageAnalyzer&&l.IStringArrayStorageAnalyzer)?r:Object,"function"==typeof(y=void 0!==c.IOptions&&c.IOptions)?y:Object])],h),h})();t.StringLiteralObfuscatingReplacer=y},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIdentifiersTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(51),p=r(2),m=r(3),g=r(71),y=r(39),h=r(10),b=r(11),N=r(4),v=r(19);let I=(()=>{var e,t,r,o;let n=class extends b.AbstractNodeTransformer{constructor(e,t,r,o){super(t,r),this.lexicalScopesWithObjectPatternWithoutDeclarationMap=new Map,this.identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),this.scopeIdentifiersTraverser=o}getVisitor(e){switch(e){case h.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&N.NodeGuards.isProgramNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return this.scopeIdentifiersTraverser.traverse(e,t,e=>{const{isGlobalDeclaration:t,variable:r,variableLexicalScopeNode:o}=e;if(!this.options.renameGlobals&&t){if(!r.defs.every(e=>"ImportBinding"===e.type||"CatchClause"===e.type))return}this.transformScopeVariableIdentifiers(r,o,t)}),e}transformScopeVariableIdentifiers(e,t,r){var o;const n=null!==(o=e.identifiers[0])&&void 0!==o?o:null;n&&this.isReplaceableIdentifierNode(n,t,e)&&(this.storeIdentifierName(n,t,r),this.replaceIdentifierName(n,t,e))}storeIdentifierName(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e,t):this.identifierObfuscatingReplacer.storeLocalName(e,t)}replaceIdentifierName(e,t,r){const o=this.identifierObfuscatingReplacer.replace(e,t);r.identifiers.forEach(e=>{e.name=o.name}),r.references.forEach(t=>{t.identifier.name=e.name})}isReplaceableIdentifierNode(e,t,r){const o=e.parentNode;return!(!o||v.NodeMetadata.isIgnoredNode(e)||this.isProhibitedPropertyNode(e,o)||this.isProhibitedClassDeclarationNameIdentifierNode(r,e,o)||this.isProhibitedExportNamedClassDeclarationIdentifierNode(e,o)||this.isProhibitedExportNamedFunctionDeclarationIdentifierNode(e,o)||this.isProhibitedExportNamedVariableDeclarationIdentifierNode(e,o)||this.isProhibitedImportSpecifierNode(e,o)||this.isProhibitedVariableNameUsedInObjectPatternNode(r,e,t)||N.NodeGuards.isLabelIdentifierNode(e,o))}isProhibitedClassDeclarationNameIdentifierNode(e,t,r){return N.NodeGuards.isClassDeclarationNode(e.scope.block)&&N.NodeGuards.isClassDeclarationNode(r)&&r.id===t}isProhibitedExportNamedClassDeclarationIdentifierNode(e,t){return N.NodeGuards.isClassDeclarationNode(t)&&t.id===e&&!!t.parentNode&&N.NodeGuards.isExportNamedDeclarationNode(t.parentNode)}isProhibitedExportNamedFunctionDeclarationIdentifierNode(e,t){return N.NodeGuards.isFunctionDeclarationNode(t)&&t.id===e&&!!t.parentNode&&N.NodeGuards.isExportNamedDeclarationNode(t.parentNode)}isProhibitedExportNamedVariableDeclarationIdentifierNode(e,t){return N.NodeGuards.isVariableDeclaratorNode(t)&&t.id===e&&!!t.parentNode&&N.NodeGuards.isVariableDeclarationNode(t.parentNode)&&!!t.parentNode.parentNode&&N.NodeGuards.isExportNamedDeclarationNode(t.parentNode.parentNode)}isProhibitedImportSpecifierNode(e,t){return N.NodeGuards.isImportSpecifierNode(t)&&t.imported.name===t.local.name}isProhibitedPropertyNode(e,t){const r=N.NodeGuards.isPropertyNode(t)&&!t.computed&&t.key===e,o=N.NodeGuards.isAssignmentPatternNode(t)&&t.left===e&&!!t.parentNode&&N.NodeGuards.isPropertyNode(t.parentNode)&&t.left===t.parentNode.key;return r||o}isProhibitedVariableNameUsedInObjectPatternNode(e,t,r){let o=this.lexicalScopesWithObjectPatternWithoutDeclarationMap.get(r);if(!1===o)return!1;if(!e.defs.some(e=>"var"===e.kind))return!1;let n=!1;return u.traverse(r,{enter:(e,r)=>{if(N.NodeGuards.isObjectPatternNode(e)&&r&&N.NodeGuards.isAssignmentExpressionNode(r)){o=!0;const r=e.properties;for(const e of r)if(N.NodeGuards.isPropertyNode(e)&&!e.computed&&e.shorthand&&N.NodeGuards.isIdentifierNode(e.key)&&t.name===e.key.name)return n=!0,u.VisitorOption.Break}}}),this.lexicalScopesWithObjectPatternWithoutDeclarationMap.set(r,null!=o&&o),n}};return n=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),c(3,d.inject(l.ServiceIdentifiers.IScopeIdentifiersTraverser)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TIdentifierObfuscatingReplacerFactory&&f.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==p.IOptions&&p.IOptions)?r:Object,"function"==typeof(o=void 0!==g.IScopeIdentifiersTraverser&&g.IScopeIdentifiersTraverser)?o:Object])],n),n})();t.ScopeIdentifiersTransformer=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optionsModule=void 0;const o=r(0),n=r(1),i=r(192),a=r(199);t.optionsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IOptions).to(i.Options).inSingletonScope(),e(n.ServiceIdentifiers.IOptionsNormalizer).to(a.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Options=void 0;const a=r(31),s=r(0),c=r(1),d=r(72),l=r(193),u=r(194),f=r(195),p=r(34),m=r(24),g=r(32),y=r(28),h=r(41),b=r(196),N=r(197);let v=(()=>{var e,t,r,v,I,O,S;let C=e=class{constructor(t,r){Object.assign(this,h.DEFAULT_PRESET,t);const o=d.validateSync(this,e.validatorOptions);if(o.length)throw new ReferenceError(`Validation failed. errors:\n${b.ValidationErrorsFormatter.format(o)}`);Object.assign(this,r.normalize(this))}};return C.validatorOptions={validationError:{target:!1}},o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"compact",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"controlFlowFlattening",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),n("design:type",Number)],C.prototype,"controlFlowFlatteningThreshold",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"deadCodeInjection",void 0),o([d.IsNumber(),n("design:type",Number)],C.prototype,"deadCodeInjectionThreshold",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"debugProtection",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"debugProtectionInterval",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"disableConsoleOutput",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),N.IsAllowedForObfuscationTargets([m.ObfuscationTarget.Browser,m.ObfuscationTarget.BrowserNoEval]),n("design:type",Array)],C.prototype,"domainLock",void 0),o([d.IsIn([p.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator,p.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,p.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),n("design:type","function"==typeof(t=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?t:Object)],C.prototype,"identifierNamesGenerator",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"identifiersPrefix",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),d.ValidateIf(e=>e.identifierNamesGenerator===p.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),d.ArrayNotEmpty(),n("design:type",Array)],C.prototype,"identifiersDictionary",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"inputFileName",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"log",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"renameGlobals",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),n("design:type",Array)],C.prototype,"reservedNames",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),n("design:type",Array)],C.prototype,"reservedStrings",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"rotateStringArray",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"selfDefending",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"shuffleStringArray",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.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}),n("design:type",String)],C.prototype,"sourceMapBaseUrl",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"sourceMapFileName",void 0),o([d.IsIn([g.SourceMapMode.Inline,g.SourceMapMode.Separate]),n("design:type","function"==typeof(r=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?r:Object)],C.prototype,"sourceMapMode",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"splitStrings",void 0),o([d.IsNumber(),d.ValidateIf(e=>Boolean(e.splitStrings)),d.Min(1),n("design:type",Number)],C.prototype,"splitStringsChunkLength",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"stringArray",void 0),o([d.IsIn([!0,!1,y.StringArrayEncoding.Base64,y.StringArrayEncoding.Rc4]),n("design:type","function"==typeof(v=void 0!==u.TStringArrayEncoding&&u.TStringArrayEncoding)?v:Object)],C.prototype,"stringArrayEncoding",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),n("design:type",Number)],C.prototype,"stringArrayThreshold",void 0),o([d.IsIn([m.ObfuscationTarget.Browser,m.ObfuscationTarget.BrowserNoEval,m.ObfuscationTarget.Node]),n("design:type","function"==typeof(I=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?I:Object)],C.prototype,"target",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"transformObjectKeys",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"unicodeEscapeSequence",void 0),C=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.TInputOptions)),i(1,s.inject(c.ServiceIdentifiers.IOptionsNormalizer)),n("design:paramtypes",["function"==typeof(O=void 0!==l.TInputOptions&&l.TInputOptions)?O:Object,"function"==typeof(S=void 0!==f.IOptionsNormalizer&&f.IOptionsNormalizer)?S:Object])],C),C})();t.Options=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationErrorsFormatter=void 0;class o{static format(e){return e.reduce((e,t)=>[...e,o.formatWithNestedConstraints(t)],[]).join("\n")}static formatWithNestedConstraints(e){const t=e.constraints;return t?`${`\`${e.property}\` errors:\n`}${Object.keys(t).map(e=>` - ${t[e]}\n`).join()}`:`\`${e.property}\` error\n`}}t.ValidationErrorsFormatter=o},function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IsAllowedForObfuscationTargets=void 0;const n=r(72),i=o(r(198)),a=r(42),s=r(41);t.IsAllowedForObfuscationTargets=function(e,t){return(r,o)=>{n.registerDecorator({propertyName:o,constraints:[e],name:"IsAllowedForObfuscationTargets",options:t,target:r.constructor,validator:{validate(t,r){const n=r.object,a=s.DEFAULT_PRESET[o];return i.default(t,a)||e.includes(n.target)},defaultMessage:t=>`This option allowed only for obfuscation targets: ${e.join(`${a.StringSeparator.Comma} `)}`}})}}},function(e,t){e.exports=require("fast-deep-equal")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsNormalizer=void 0;const n=r(0),i=r(200),a=r(201),s=r(202),c=r(203),d=r(204),l=r(205),u=r(206),f=r(207),p=r(208),m=r(209),g=r(210),y=r(211),h=r(212);let b=(()=>{var e;let t=e=class{normalize(t){let r=Object.assign({},t);for(const t of e.normalizerRules)r=t(r);return r}};return t.normalizerRules=[i.ControlFlowFlatteningThresholdRule,a.DeadCodeInjectionRule,s.DeadCodeInjectionThresholdRule,c.DomainLockRule,d.InputFileNameRule,l.SeedRule,u.SelfDefendingRule,f.SourceMapBaseUrlRule,p.SourceMapFileNameRule,m.SplitStringsChunkLengthRule,g.StringArrayRule,y.StringArrayEncodingRule,h.StringArrayThresholdRule],t=e=o([n.injectable()],t),t})();t.OptionsNormalizer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=void 0,t.ControlFlowFlatteningThresholdRule=e=>(0===e.controlFlowFlatteningThreshold&&(e=Object.assign(Object.assign({},e),{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionRule=void 0;const o=r(41);t.DeadCodeInjectionRule=e=>(e.deadCodeInjection&&((e=Object.assign(Object.assign({},e),{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign(Object.assign({},e),{stringArray:!0,stringArrayThreshold:o.DEFAULT_PRESET.stringArrayThreshold}))),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=void 0,t.DeadCodeInjectionThresholdRule=e=>(0===e.deadCodeInjectionThreshold&&(e=Object.assign(Object.assign({},e),{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockRule=void 0;const o=r(26);t.DomainLockRule=e=>{if(e.domainLock.length){const t=[];for(const r of e.domainLock)t.push(o.Utils.extractDomainFrom(r));e=Object.assign(Object.assign({},e),{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=void 0;const o=r(42);t.InputFileNameRule=e=>{let{inputFileName:t}=e;return t&&(t=t.replace(/^\/+/,"").split(o.StringSeparator.Dot).slice(0,-1).join(o.StringSeparator.Dot)||t,e=Object.assign(Object.assign({},e),{inputFileName:`${t}.js`})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeedRule=void 0,t.SeedRule=e=>{if(e.seed)return Object.assign(Object.assign({},e),{seed:e.seed});return Object.assign(Object.assign({},e),{seed:(t=0,r=999999999,Math.floor(Math.random()*(r-t+1)+t))});var t,r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=void 0,t.SelfDefendingRule=e=>(e.selfDefending&&(e=Object.assign(Object.assign({},e),{compact:!0,selfDefending:!0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=void 0,t.SourceMapBaseUrlRule=e=>{const{sourceMapBaseUrl:t}=e;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign(Object.assign({},e),{sourceMapBaseUrl:`${t}/`})),e):e=Object.assign(Object.assign({},e),{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=void 0;const o=r(42);t.SourceMapFileNameRule=e=>{let{sourceMapFileName:t}=e;if(t){t=t.replace(/^\/+/,"").replace(/(?:\.js)?(?:\.map)?$/,"");let r=t.split(o.StringSeparator.Dot);const n=r.length,i=r[n-1];n>1&&i.length<=3&&(r=r.slice(0,-1)),t=r.join(o.StringSeparator.Dot),e=Object.assign(Object.assign({},e),{sourceMapFileName:`${t}.js.map`})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitStringsChunkLengthRule=void 0,t.SplitStringsChunkLengthRule=e=>e=0===e.splitStringsChunkLength?Object.assign(Object.assign({},e),{splitStrings:!1,splitStringsChunkLength:0}):Object.assign(Object.assign({},e),{splitStringsChunkLength:Math.floor(e.splitStringsChunkLength)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=void 0,t.StringArrayRule=e=>(e.stringArray||(e=Object.assign(Object.assign({},e),{rotateStringArray:!1,shuffleStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncodingRule=void 0;const o=r(28);t.StringArrayEncodingRule=e=>(!0===e.stringArrayEncoding&&(e=Object.assign(Object.assign({},e),{stringArrayEncoding:o.StringArrayEncoding.Base64})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=void 0,t.StringArrayThresholdRule=e=>(0===e.stringArrayThreshold&&(e=Object.assign(Object.assign({},e),{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preparingTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(13),s=r(73),c=r(214),d=r(68),l=r(215),u=r(219),f=r(221),p=r(222),m=r(224),g=r(225),y=r(226);t.preparingTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(l.CustomCodeHelpersTransformer).whenTargetNamed(a.NodeTransformer.CustomCodeHelpersTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.EvalCallExpressionTransformer).whenTargetNamed(a.NodeTransformer.EvalCallExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.MetadataTransformer).whenTargetNamed(a.NodeTransformer.MetadataTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.ObfuscatingGuardsTransformer).whenTargetNamed(a.NodeTransformer.ObfuscatingGuardsTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(m.ParentificationTransformer).whenTargetNamed(a.NodeTransformer.ParentificationTransformer),e(i.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListObfuscatingGuard),e(i.ServiceIdentifiers.INodeGuard).to(d.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentObfuscatingGuard),e(i.ServiceIdentifiers.INodeGuard).to(g.ReservedStringObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ReservedStringObfuscatingGuard),e(i.ServiceIdentifiers.INodeTransformer).to(y.VariablePreserveTransformer).whenTargetNamed(a.NodeTransformer.VariablePreserveTransformer),e(i.ServiceIdentifiers.Factory__INodeGuard).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BlackListObfuscatingGuard=void 0;const i=r(0),a=r(4);let s=(()=>{var e;let t=e=class{constructor(){this.blackListGuardsLength=e.blackListGuards.length}check(t){for(let r=0;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelpersTransformer=void 0;const a=r(0),s=r(1),c=r(216),d=r(217),l=r(2),u=r(3),f=r(218),p=r(67),m=r(13),g=r(25),y=r(10),h=r(11),b=r(4);let N=(()=>{var e,t,r,N,v,I;let O=class extends h.AbstractNodeTransformer{constructor(e,t,r,o,n,i){super(n,i),this.runAfter=[m.NodeTransformer.ParentificationTransformer,m.NodeTransformer.VariablePreserveTransformer],this.callsGraphData=[],this.callsGraphAnalyzer=e,this.prevailingKindOfVariablesAnalyzer=t,this.obfuscationEventEmitter=r,this.customCodeHelperGroupStorage=o}getVisitor(e){switch(e){case y.NodeTransformationStage.Preparing:return{leave:(e,t)=>{if(b.NodeGuards.isProgramNode(e))return this.analyzeNode(e,t),this.appendCustomNodesBeforeObfuscation(e,t),this.transformNode(e,t)}};case y.NodeTransformationStage.Finalizing:return{leave:(e,t)=>{b.NodeGuards.isProgramNode(e)&&this.appendCustomNodesAfterObfuscation(e,t)}};default:return null}}analyzeNode(e,t){this.callsGraphData=this.callsGraphAnalyzer.analyze(e),this.prevailingKindOfVariablesAnalyzer.analyze(e)}transformNode(e,t){return e}appendCustomNodesBeforeObfuscation(e,t){this.customCodeHelperGroupStorage.getStorage().forEach(e=>{e.initialize(),this.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendNodes.bind(e))}),this.obfuscationEventEmitter.emit(g.ObfuscationEvent.BeforeObfuscation,e,this.callsGraphData)}appendCustomNodesAfterObfuscation(e,t){this.obfuscationEventEmitter.emit(g.ObfuscationEvent.AfterObfuscation,e,this.callsGraphData)}};return O=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ICallsGraphAnalyzer)),i(1,a.inject(s.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),i(2,a.inject(s.ServiceIdentifiers.IObfuscationEventEmitter)),i(3,a.inject(s.ServiceIdentifiers.TCustomNodeGroupStorage)),i(4,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(5,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==f.ICallsGraphAnalyzer&&f.ICallsGraphAnalyzer)?e:Object,"function"==typeof(t=void 0!==p.IPrevailingKindOfVariablesAnalyzer&&p.IPrevailingKindOfVariablesAnalyzer)?t:Object,"function"==typeof(r=void 0!==d.IObfuscationEventEmitter&&d.IObfuscationEventEmitter)?r:Object,"function"==typeof(N=void 0!==c.TCustomCodeHelperGroupStorage&&c.TCustomCodeHelperGroupStorage)?N:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(I=void 0!==l.IOptions&&l.IOptions)?I:Object])],O),O})();t.CustomCodeHelpersTransformer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvalCallExpressionTransformer=void 0;const s=r(0),c=r(1),d=a(r(220)),l=r(2),u=r(3),f=r(13),p=r(10),m=r(11),g=r(8),y=r(4),h=r(6);let b=(()=>{var e,t,r;let a=e=class extends m.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[f.NodeTransformer.ParentificationTransformer,f.NodeTransformer.VariablePreserveTransformer],this.evalRootAstHostNodeSet=new Set}static extractEvalStringFromCallExpressionArgument(t){return y.NodeGuards.isLiteralNode(t)?e.extractEvalStringFromLiteralNode(t):y.NodeGuards.isTemplateLiteralNode(t)?e.extractEvalStringFromTemplateLiteralNode(t):null}static extractEvalStringFromLiteralNode(e){return"string"==typeof e.value?e.value:null}static extractEvalStringFromTemplateLiteralNode(e){const t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:return{enter:(e,t)=>{if(t&&y.NodeGuards.isCallExpressionNode(e)&&y.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return this.transformNode(e,t)}};case p.NodeTransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:(e,t)=>{if(t&&this.isEvalRootAstHostNode(e))return this.restoreNode(e,t)}}:null;default:return null}}transformNode(t,r){const o=t.arguments[0];if(!o)return t;const n=e.extractEvalStringFromCallExpressionArgument(o);if(!n)return t;let i;try{i=h.NodeUtils.convertCodeToStructure(n)}catch(e){return t}const a=g.NodeFactory.functionExpressionNode([],g.NodeFactory.blockStatementNode(i));return h.NodeUtils.parentizeAst(a),h.NodeUtils.parentizeNode(a,r),this.evalRootAstHostNodeSet.add(a),a}restoreNode(e,t){const r=e.body.body,o=h.NodeUtils.convertStructureToCode(r);return g.NodeFactory.callExpressionNode(g.NodeFactory.identifierNode("eval"),[g.NodeFactory.literalNode(d.default(o))])}isEvalRootAstHostNode(e){return y.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}};return a=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i(1,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==l.IOptions&&l.IOptions)?r:Object])],a),a})();t.EvalCallExpressionTransformer=b},function(e,t){e.exports=require("js-string-escape")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(13),u=r(10),f=r(11),p=r(4),m=r(19);let g=(()=>{var e,t;let r=class extends f.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[l.NodeTransformer.ParentificationTransformer,l.NodeTransformer.VariablePreserveTransformer]}getVisitor(e){switch(e){case u.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){return m.NodeMetadata.set(e,{ignoredNode:!1}),p.NodeGuards.isLiteralNode(e)&&m.NodeMetadata.set(e,{replacedLiteral:!1}),e}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.MetadataTransformer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatingGuardsTransformer=void 0;const a=r(0),s=r(1),c=r(223),d=r(2),l=r(3),u=r(13),f=r(73),p=r(10),m=r(11),g=r(4),y=r(19);let h=(()=>{var e,t,r,h;let b=e=class extends m.AbstractNodeTransformer{constructor(t,r,o){super(r,o),this.runAfter=[u.NodeTransformer.ParentificationTransformer,u.NodeTransformer.VariablePreserveTransformer],this.obfuscatingGuards=e.obfuscatingGuardsList.map(t)}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){const r=this.obfuscatingGuards.every(t=>t.check(e));return y.NodeMetadata.set(e,{ignoredNode:!(g.NodeGuards.isProgramNode(e)||r)}),e}};return b.obfuscatingGuardsList=[f.ObfuscatingGuard.BlackListObfuscatingGuard,f.ObfuscatingGuard.ConditionalCommentObfuscatingGuard,f.ObfuscatingGuard.ReservedStringObfuscatingGuard],b=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__INodeGuard)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TObfuscatingGuardFactory&&c.TObfuscatingGuardFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(h=void 0!==d.IOptions&&d.IOptions)?h:Object])],b),b})();t.ObfuscatingGuardsTransformer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParentificationTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(6);let p=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){return f.NodeUtils.parentizeNode(e,t)}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ParentificationTransformer=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReservedStringObfuscatingGuard=void 0;const a=r(0),s=r(2),c=r(1),d=r(4);let l=(()=>{var e;let t=class{constructor(e){this.options=e}check(e){return!this.options.reservedStrings.length||!d.NodeGuards.isLiteralNode(e)||"string"!=typeof e.value||!this.isReservedString(e.value)}isReservedString(e){return this.options.reservedStrings.some(t=>null!==new RegExp(t,"g").exec(e))}};return t=o([a.injectable(),i(0,a.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==s.IOptions&&s.IOptions)?e:Object])],t),t})();t.ReservedStringObfuscatingGuard=l},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariablePreserveTransformer=void 0;const a=r(0),s=r(51),c=r(2),d=r(3),l=r(71),u=r(13),f=r(1),p=r(10),m=r(11),g=r(39),y=r(4);let h=(()=>{var e,t,r,h;let b=class extends m.AbstractNodeTransformer{constructor(e,t,r,o){super(t,r),this.runAfter=[u.NodeTransformer.ParentificationTransformer],this.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),this.scopeIdentifiersTraverser=o,this.preserveScopeVariableIdentifiers=this.preserveScopeVariableIdentifiers.bind(this)}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:case p.NodeTransformationStage.Converting:case p.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&y.NodeGuards.isProgramNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return this.scopeIdentifiersTraverser.traverse(e,t,this.preserveScopeVariableIdentifiers),e}preserveScopeVariableIdentifiers(e){const{isGlobalDeclaration:t,isBubblingDeclaration:r,variable:o,variableScope:n}=e;for(const e of o.identifiers)t||r?this.preserveIdentifierNameForRootLexicalScope(e):this.preserveIdentifierNameForLexicalScope(e,n)}preserveIdentifierNameForRootLexicalScope(e){this.identifierObfuscatingReplacer.preserveName(e)}preserveIdentifierNameForLexicalScope(e,t){const r=y.NodeGuards.isNodeWithLexicalScope(t.block)?t.block:null;r&&this.identifierObfuscatingReplacer.preserveNameForLexicalScope(e,r)}};return b=o([a.injectable(),i(0,a.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),i(1,a.inject(f.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(f.ServiceIdentifiers.IOptions)),i(3,a.inject(f.ServiceIdentifiers.IScopeIdentifiersTraverser)),n("design:paramtypes",["function"==typeof(e=void 0!==s.TIdentifierObfuscatingReplacerFactory&&s.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object,"function"==typeof(h=void 0!==l.IScopeIdentifiersTraverser&&l.IScopeIdentifiersTraverser)?h:Object])],b),b})();t.VariablePreserveTransformer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storagesModule=void 0;const o=r(0),n=r(1),i=r(228),a=r(229),s=r(231);t.storagesModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.TCustomNodeGroupStorage).to(a.CustomCodeHelperGroupStorage).inSingletonScope(),e(n.ServiceIdentifiers.IStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(n.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(i.ControlFlowStorage),e(n.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(e=>()=>{const t=new(e.container.get(n.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(n.ServiceIdentifiers.IRandomGenerator),e.container.get(n.ServiceIdentifiers.IOptions));return t.initialize(),t})})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowStorage=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(52);let u=(()=>{var e,t;let r=class extends l.MapStorage{constructor(e,t){super(e,t)}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ControlFlowStorage=u},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperGroupStorage=void 0;const a=r(0),s=r(1),c=r(230),d=r(2),l=r(3),u=r(66),f=r(52);let p=(()=>{var e,t,r,p;let m=e=class extends f.MapStorage{constructor(e,t,r){super(t,r),this.customCodeHelperGroupFactory=e}initialize(){super.initialize(),e.customCodeHelperGroupsList.forEach(e=>{const t=this.customCodeHelperGroupFactory(e);this.storage.set(e,t)})}};return m.customCodeHelperGroupsList=[u.CustomCodeHelperGroup.ConsoleOutput,u.CustomCodeHelperGroup.DebugProtection,u.CustomCodeHelperGroup.DomainLock,u.CustomCodeHelperGroup.SelfDefending,u.CustomCodeHelperGroup.StringArray],o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],m.prototype,"initialize",null),m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelperGroup)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperGroupFactory&&c.TCustomCodeHelperGroupFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(p=void 0!==d.IOptions&&d.IOptions)?p:Object])],m),m})();t.CustomCodeHelperGroupStorage=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayStorage=void 0;const a=r(0),s=r(1),c=r(5),d=r(36),l=r(49),u=r(33),f=r(2),p=r(3),m=r(28),g=r(52);let y=(()=>{var e,t,r,y,h,b,N;let v=e=class extends g.MapStorage{constructor(t,r,o,n,i,a){super(o,n),this.rc4EncodedValuesSourcesCache=new Map,this.rotationAmount=0,this.identifierNamesGenerator=t(n),this.arrayUtils=r,this.cryptUtils=i,this.escapeSequenceEncoder=a,this.rc4Keys=this.randomGenerator.getRandomGenerator().n(()=>this.randomGenerator.getRandomGenerator().string({length:e.rc4KeyLength}),e.rc4KeysCount)}initialize(){super.initialize(),this.rotationAmount=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(e.minimumRotationAmount,e.maximumRotationAmount):0}get(e){return this.getOrSetIfDoesNotExist(e)}getRotationAmount(){return this.rotationAmount}getStorageName(){return this.getStorageId()}getStorageId(){return this.stringArrayStorageName||(this.stringArrayStorageName=this.identifierNamesGenerator.generateForGlobalScope(e.stringArrayNameLength)),this.stringArrayStorageName}getStorageCallsWrapperName(){return this.stringArrayStorageCallsWrapperName||(this.stringArrayStorageCallsWrapperName=this.identifierNamesGenerator.generateForGlobalScope(e.stringArrayNameLength)),this.stringArrayStorageCallsWrapperName}rotateStorage(){this.getLength()&&(this.storage=new Map(this.arrayUtils.rotate(Array.from(this.storage.entries()),this.rotationAmount)))}shuffleStorage(){this.storage=new Map(this.arrayUtils.shuffle(Array.from(this.storage.entries())).map(([e,t],r)=>(t.index=r,[e,t])).sort(([,e],[,t])=>e.index-t.index))}toString(){return Array.from(this.storage.values()).map(e=>`'${this.escapeSequenceEncoder.encode(e.encodedValue,this.options.unicodeEscapeSequence)}'`).toString()}getOrSetIfDoesNotExist(e){const{encodedValue:t,decodeKey:r}=this.getEncodedValue(e),o=this.storage.get(t);if(o)return o;const n={encodedValue:t,decodeKey:r,value:e,index:this.getLength()};return this.storage.set(t,n),n}getEncodedValue(e){var t;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:{const r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),o=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r)),n=null!==(t=this.rc4EncodedValuesSourcesCache.get(o))&&void 0!==t?t:[];let i=n.length;return(!i||!n.includes(e))&&(n.push(e),i++),this.rc4EncodedValuesSourcesCache.set(o,n),i>1?this.getEncodedValue(e):{encodedValue:o,decodeKey:r}}case m.StringArrayEncoding.Base64:{const t=null;return{encodedValue:this.cryptUtils.btoa(e),decodeKey:t}}default:return{encodedValue:e,decodeKey:null}}}};return v.minimumRotationAmount=100,v.maximumRotationAmount=500,v.rc4KeyLength=4,v.rc4KeysCount=50,v.stringArrayNameLength=4,o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],v.prototype,"initialize",null),v=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IArrayUtils)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),i(4,a.inject(s.ServiceIdentifiers.ICryptUtils)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.IArrayUtils&&d.IArrayUtils)?r:Object,"function"==typeof(y=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?y:Object,"function"==typeof(h=void 0!==f.IOptions&&f.IOptions)?h:Object,"function"==typeof(b=void 0!==l.ICryptUtils&&l.ICryptUtils)?b:Object,"function"==typeof(N=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?N:Object])],v),v})();t.StringArrayStorage=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utilsModule=void 0;const o=r(0),n=r(1),i=r(233),a=r(234),s=r(238),c=r(239),d=r(74);t.utilsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IArrayUtils).to(i.ArrayUtils).inSingletonScope(),e(n.ServiceIdentifiers.IRandomGenerator).to(d.RandomGenerator).inSingletonScope(),e(n.ServiceIdentifiers.ICryptUtils).to(a.CryptUtils).inSingletonScope(),e(n.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope(),e(n.ServiceIdentifiers.ILevelledTopologicalSorter).to(c.LevelledTopologicalSorter)})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0;const a=r(0),s=r(1),c=r(3);let d=(()=>{var e;let t=class{constructor(e){this.randomGenerator=e}createWithRange(e){const t=[];for(let r=0;rn&&(o=i,n=e),r[i]=e}return o}rotate(e,t){if(!e.length)throw new ReferenceError("Cannot rotate empty array.");if(t<=0)return e;const r=e;let o;for(;t--;)o=r.pop(),o&&r.unshift(o);return r}shuffle(e){const t=[...e];for(let e=t.length;e;e--){const r=Math.floor(this.randomGenerator.getMathRandom()*e);[t[e-1],t[r]]=[t[r],t[e-1]]}return t}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IRandomGenerator&&c.IRandomGenerator)?e:Object])],t),t})();t.ArrayUtils=d},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CryptUtils=void 0;const a=r(0),s=r(1),c=r(3),d=r(74),l=r(26);let u=(()=>{var e;let t=class{constructor(e){this.randomGenerator=e}btoa(e){let t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(`${l.Utils.hexadecimalPrefix}${t}`,16)));for(let r,o,n=0,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|n)||(i="=",n%1);t+=i.charAt(63&r>>8-n%1*8)){if(o=e.charCodeAt(n+=3/4),o>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|o}return t}hideString(e,t){let r=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp(`[${o=e,o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}]`,"g"),"");var o;const n=r.split("");return this.randomGenerator.getRandomGenerator().shuffle(n),r=n.join(""),[((e,t)=>{let r=-1,o=-1,n="";for(;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceEncoder=void 0;const n=r(0);let i=(()=>{let e=class{constructor(){this.stringsCache=new Map}encode(e,t){const r=`${e}-${String(t)}`;if(this.stringsCache.has(r))return this.stringsCache.get(r);const o=new RegExp("[\\s\\S]","g"),n=new RegExp("['\"\\\\\\s]"),i=new RegExp("[\\x00-\\x7F]");let a,s;const c=e.replace(o,e=>t||n.exec(e)?(i.exec(e)?(a="\\x",s="00"):(a="\\u",s="0000"),`${a}${(s+e.charCodeAt(0).toString(16)).slice(-s.length)}`):e);return this.stringsCache.set(r,c),this.stringsCache.set(`${c}-${String(t)}`,c),c}};return e=o([n.injectable()],e),e})();t.EscapeSequenceEncoder=i},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.LevelledTopologicalSorter=void 0;const n=r(0);let i=(()=>{let e=class{constructor(){this.graph=new Map}add(e,t=null){return null!==t?this.link(e,t):this.register(e)}sort(){const e=Array.from(this.graph.keys()),t=[],r={};for(const o of e)void 0===r[o]&&this.visit(t,r,o);return t}sortByGroups(){this.sort();const e=[];for(;this.hasNodes();){const t=this.findRootNodes();e.push(t);for(const e of t)this.delete(e)}return e}delete(e){if(this.getPrecedents(e).length)throw new Error(`Unable to remove non-root node: ${e}`);this.graph.delete(e);const t=Array.from(this.graph.values());for(const r of t){for(let t=r.length-1;t>=0;t-=1)r[t]===e&&r.splice(t,1)}}findRootNodes(){const e=Array.from(this.graph.keys()),t=[];for(const r of e)this.hasPrecedents(r)||t.push(r);return t}getPrecedents(e){const t=this.graph.get(e);if(!t)throw new Error(`Unknown node: ${e}`);return t}hasNodes(){return this.graph.size>0}hasPrecedents(e){return this.getPrecedents(e).length>0}link(e,t){this.register(e),this.register(t);const r=this.graph.get(t);return r&&!r.includes(e)&&r.push(e),this}register(e){return this.graph.has(e)||this.graph.set(e,[]),this}visit(e,t,r){const o=t[r];if("visiting"===o)throw new Error(`Detected cycle involving node: ${r}`);if(o)return;t[r]="visiting";const n=this.getPrecedents(r);for(const r of n)this.visit(e,t,r);t[r]="ok",e.push(r)}};return e=o([n.injectable()],e),e})();t.LevelledTopologicalSorter=i},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformersRunner=void 0;const a=r(0),s=r(1),c=r(241),d=r(75);let l=(()=>{var e,t;let r=class{constructor(e,t){this.codeTransformerFactory=e,this.codeTransformerNamesGroupsBuilder=t}transform(e,t,r){if(!t.length)return e;const o=this.buildNormalizedCodeTransformers(t,r),n=this.codeTransformerNamesGroupsBuilder.build(o);for(const t of n)for(const n of t){e=o[n].transformCode(e,r)}return e}buildNormalizedCodeTransformers(e,t){return e.reduce((e,t)=>{const r=this.codeTransformerFactory(t);return Object.assign(Object.assign({},e),{[t]:r})},{})}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICodeTransformer)),i(1,a.inject(s.ServiceIdentifiers.ICodeTransformerNamesGroupsBuilder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TCodeTransformerFactory&&c.TCodeTransformerFactory)?e:Object,"function"==typeof(t=void 0!==d.ITransformerNamesGroupsBuilder&&d.ITransformerNamesGroupsBuilder)?t:Object])],r),r})();t.CodeTransformersRunner=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscator=void 0;const d=r(0),l=r(1),u=a(r(47)),f=r(243),p=r(244),m=r(245),g=r(2),y=r(3),h=r(62),b=r(55),N=r(57),v=r(246),I=r(13),O=r(10),S=r(44),C=r(60),j=r(4),_=r(26);let R=(()=>{var e,t,r,o,n,a,R;let F=e=class{constructor(e,t,r,o,n,i){this.codeTransformersRunner=e,this.nodeTransformersRunner=t,this.randomGenerator=r,this.obfuscatedCodeFactory=o,this.logger=n,this.options=i}obfuscate(e){"string"!=typeof e&&(e="");const t=Date.now();this.logger.info(v.LoggingMessage.Version,_.Utils.buildVersionMessage("0.28.3",1590787508551)),this.logger.info(v.LoggingMessage.ObfuscationStarted),this.logger.info(v.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getInputSeed()),e=this.runCodeTransformationStage(e,N.CodeTransformationStage.PreparingTransformers);const r=this.parseCode(e),o=this.transformAstTree(r),n=this.generateCode(e,o);n.code=this.runCodeTransformationStage(n.code,N.CodeTransformationStage.FinalizingTransformers);const i=(Date.now()-t)/1e3;return this.logger.success(v.LoggingMessage.ObfuscationCompleted,i),this.getObfuscatedCode(n)}parseCode(t){return C.ASTParserFacade.parse(t,e.parseOptions)}transformAstTree(e){return e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Initializing),!j.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.ControlFlowFlattening)),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Converting),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Obfuscating),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Finalizing)):(this.logger.warn(v.LoggingMessage.EmptySourceCode),e)}generateCode(t,r){const o=Object.assign({},e.escodegenParams);this.options.sourceMap&&(o.sourceMap=this.options.inputFileName||"sourceMap",o.sourceContent=t);const n=u.generate(r,Object.assign(Object.assign({},o),{format:{compact:this.options.compact}}));return n.map=n.map?n.map.toString():"",n}getObfuscatedCode(e){return this.obfuscatedCodeFactory(e.code,e.map)}runCodeTransformationStage(t,r){return this.logger.info(v.LoggingMessage.CodeTransformationStage,r),this.codeTransformersRunner.transform(t,e.codeTransformersList,r)}runNodeTransformationStage(t,r){return this.logger.info(v.LoggingMessage.NodeTransformationStage,r),this.nodeTransformersRunner.transform(t,e.nodeTransformersList,r)}};return F.parseOptions={ecmaVersion:S.ecmaVersion,allowHashBang:!0,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,locations:!0,ranges:!0},F.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},F.codeTransformersList=[b.CodeTransformer.HashbangOperatorTransformer],F.nodeTransformersList=[I.NodeTransformer.BlockStatementControlFlowTransformer,I.NodeTransformer.CommentsTransformer,I.NodeTransformer.CustomCodeHelpersTransformer,I.NodeTransformer.DeadCodeInjectionTransformer,I.NodeTransformer.EvalCallExpressionTransformer,I.NodeTransformer.FunctionControlFlowTransformer,I.NodeTransformer.LabeledStatementTransformer,I.NodeTransformer.LiteralTransformer,I.NodeTransformer.MemberExpressionTransformer,I.NodeTransformer.MetadataTransformer,I.NodeTransformer.MethodDefinitionTransformer,I.NodeTransformer.ObfuscatingGuardsTransformer,I.NodeTransformer.ObjectExpressionKeysTransformer,I.NodeTransformer.ObjectExpressionTransformer,I.NodeTransformer.ParentificationTransformer,I.NodeTransformer.ScopeIdentifiersTransformer,I.NodeTransformer.SplitStringTransformer,I.NodeTransformer.TemplateLiteralTransformer,I.NodeTransformer.VariablePreserveTransformer],F=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.ICodeTransformersRunner)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformersRunner)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.Factory__IObfuscatedCode)),c(4,d.inject(l.ServiceIdentifiers.ILogger)),c(5,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.ICodeTransformersRunner&&p.ICodeTransformersRunner)?t:Object,"function"==typeof(r=void 0!==h.INodeTransformersRunner&&h.INodeTransformersRunner)?r:Object,"function"==typeof(o=void 0!==y.IRandomGenerator&&y.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==f.TObfuscatedCodeFactory&&f.TObfuscatedCodeFactory)?n:Object,"function"==typeof(a=void 0!==m.ILogger&&m.ILogger)?a:Object,"function"==typeof(R=void 0!==g.IOptions&&g.IOptions)?R:Object])],F),F})();t.JavaScriptObfuscator=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingMessage=void 0,function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.CodeTransformationStage="Code transformation stage: %s...",e.NodeTransformationStage="AST transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformersRunner=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(248),p=r(75),m=r(249),g=r(4),y=r(19);let h=(()=>{var e,t;let r=class{constructor(e,t){this.nodeTransformerFactory=e,this.nodeTransformerNamesGroupsBuilder=t}transform(e,t,r){if(!t.length)return e;const o=this.buildNormalizedNodeTransformers(t,r),n=this.nodeTransformerNamesGroupsBuilder.build(o);for(const t of n){const n=[],i=[];for(const e of t){const t=o[e].getVisitor(r);t&&(t.enter&&n.push({enter:t.enter}),t.leave&&i.push({leave:t.leave}))}(n.length||i.length)&&u.replace(e,{enter:this.mergeVisitorsForDirection(n,m.VisitorDirection.Enter),leave:this.mergeVisitorsForDirection(i,m.VisitorDirection.Leave)})}return e}buildNormalizedNodeTransformers(e,t){return e.reduce((e,r)=>{const o=this.nodeTransformerFactory(r);return o.getVisitor(t)?Object.assign(Object.assign({},e),{[r]:o}):e},{})}mergeVisitorsForDirection(e,t){const r=e.length;return r?(o,n)=>{if(y.NodeMetadata.isIgnoredNode(o))return u.VisitorOption.Skip;for(let i=0;ie}};return r=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__INodeTransformer)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformerNamesGroupsBuilder)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TNodeTransformerFactory&&f.TNodeTransformerFactory)?e:Object,"function"==typeof(t=void 0!==p.ITransformerNamesGroupsBuilder&&p.ITransformerNamesGroupsBuilder)?t:Object])],r),r})();t.NodeTransformersRunner=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisitorDirection=void 0,function(e){e.Enter="enter",e.Leave="leave"}(t.VisitorDirection||(t.VisitorDirection={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationEventEmitter=void 0;const i=r(0),a=n(r(251));i.decorate(i.injectable(),a.default);let s=(()=>{let e=class extends a.default{};return e=o([i.injectable()],e),e})();t.ObfuscationEventEmitter=s},function(e,t){e.exports=require("eventemitter3")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatedCode=void 0;const a=r(0),s=r(1),c=r(49),d=r(7),l=r(32),u=r(2);let f=(()=>{var e,t;let r=class{constructor(e,t){this.cryptUtils=e,this.options=t}initialize(e,t){this.obfuscatedCode=e,this.sourceMap=t}getObfuscatedCode(){return this.correctObfuscatedCode()}getSourceMap(){return this.sourceMap}toString(){return this.obfuscatedCode}correctObfuscatedCode(){if(!this.sourceMap)return this.obfuscatedCode;const e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName;let t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case l.SourceMapMode.Inline:t+=`data:application/json;base64,${this.cryptUtils.btoa(this.sourceMap)}`;break;case l.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return`${this.obfuscatedCode}\n${t}`}};return o([d.initializable(),n("design:type",String)],r.prototype,"obfuscatedCode",void 0),o([d.initializable(),n("design:type",String)],r.prototype,"sourceMap",void 0),r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ICryptUtils)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.ICryptUtils&&c.ICryptUtils)?e:Object,"function"==typeof(t=void 0!==u.IOptions&&u.IOptions)?t:Object])],r),r})();t.ObfuscatedCode=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceCode=void 0;t.SourceCode=class{constructor(e,t){this.sourceCode=e,this.sourceMap=t}getSourceCode(){return this.sourceCode}getSourceMap(){return this.sourceMap}toString(){return this.sourceCode}}},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(53);e.exports=o.JavaScriptObfuscator}]); +require("source-map-support").install(),module.exports=function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=257)}([function(e,t){e.exports=require("inversify")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceIdentifiers=void 0,function(e){e.Factory__ICalleeDataExtractor="Factory",e.Factory__ICodeTransformer="Factory",e.Factory__IControlFlowCustomNode="Factory",e.Factory__IControlFlowReplacer="Factory",e.Factory__ICustomCodeHelper="Factory",e.Factory__ICustomCodeHelperGroup="Factory",e.Factory__IDeadCodeInjectionCustomNode="Factory",e.Factory__IIdentifierNamesGenerator="Factory",e.Factory__IIdentifierObfuscatingReplacer="Factory",e.Factory__INodeGuard="Factory",e.Factory__INodeTransformer="Factory",e.Factory__IObfuscatedCode="Factory",e.Factory__IObfuscatingReplacer="Factory",e.Factory__IObjectExpressionKeysTransformerCustomNode="Factory",e.Factory__IObjectExpressionExtractor="Factory",e.Factory__TControlFlowStorage="Factory",e.IArrayUtils="IArrayUtils",e.ICalleeDataExtractor="ICalleeDataExtractor",e.ICallsGraphAnalyzer="ICallsGraphAnalyzer",e.ICodeTransformer="ICodeTransformer",e.ICodeTransformerNamesGroupsBuilder="ICodeTransformerNamesGroupsBuilder",e.ICodeTransformersRunner="ICodeTransformersRunner",e.ICryptUtils="ICryptUtils",e.ICustomCodeHelper="ICustomCodeHelper",e.ICustomCodeHelperGroup="ICustomCodeHelperGroup",e.IControlFlowReplacer="IControlFlowReplacer",e.ICustomCodeHelperFormatter="ICustomCodeHelperFormatter",e.ICustomCodeHelperObfuscator="ICustomCodeHelperObfuscator",e.IEscapeSequenceEncoder="IEscapeSequenceEncoder",e.IIdentifierNamesGenerator="IIdentifierNamesGenerator",e.IIdentifierObfuscatingReplacer="IIdentifierObfuscatingReplacer",e.IJavaScriptObfuscator="IJavaScriptObfuscator",e.ILevelledTopologicalSorter="ILevelledTopologicalSorter",e.ILogger="ILogger",e.INodeGuard="INodeGuard",e.INodeTransformer="INodeTransformer",e.INodeTransformerNamesGroupsBuilder="INodeTransformerNamesGroupsBuilder",e.IObfuscationEventEmitter="IObfuscationEventEmitter",e.IObfuscatedCode="IObfuscatedCode",e.IOptions="IOptions",e.IOptionsNormalizer="IOptionsNormalizer",e.IObfuscatingReplacer="IObfuscatingReplacer",e.IPrevailingKindOfVariablesAnalyzer="IPrevailingKindOfVariablesAnalyzer",e.IObjectExpressionExtractor="IObjectExpressionExtractor",e.IRandomGenerator="IRandomGenerator",e.IScopeIdentifiersTraverser="IScopeIdentifiersTraverser",e.ISourceCode="ISourceCode",e.IScopeAnalyzer="IScopeAnalyzer",e.IStringArrayStorage="IStringArrayStorage",e.IStringArrayStorageAnalyzer="IStringArrayStorageAnalyzer",e.INodeTransformersRunner="INodeTransformersRunner",e.Newable__ICustomNode="Newable",e.Newable__TControlFlowStorage="Newable",e.TCustomNodeGroupStorage="TCustomNodeGroupStorage",e.TInputOptions="TInputOptions"}(t.ServiceIdentifiers||(t.ServiceIdentifiers={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeGuards=void 0;const o=r(35);let n=(()=>{class e{static isArrayPatternNode(e){return e.type===o.NodeType.ArrayPattern}static isArrowFunctionExpressionNode(e){return e.type===o.NodeType.ArrowFunctionExpression}static isAssignmentExpressionNode(e){return e.type===o.NodeType.AssignmentExpression}static isAssignmentPatternNode(e){return e.type===o.NodeType.AssignmentPattern}static isAwaitExpressionNode(e){return e.type===o.NodeType.AwaitExpression}static isBigIntLiteralNode(t){return e.isLiteralNode(t)&&!!t.bigint}static isBlockStatementNode(e){return e.type===o.NodeType.BlockStatement}static isBreakStatementNode(e){return e.type===o.NodeType.BreakStatement}static isCallExpressionNode(e){return e.type===o.NodeType.CallExpression}static isClassDeclarationNode(e){return e.type===o.NodeType.ClassDeclaration&&null!==e.id}static isContinueStatementNode(e){return e.type===o.NodeType.ContinueStatement}static isDirectiveNode(e){return e.type===o.NodeType.ExpressionStatement&&"directive"in e}static isExportNamedDeclarationNode(e){return e.type===o.NodeType.ExportNamedDeclaration}static isExpressionStatementNode(e){return e.type===o.NodeType.ExpressionStatement&&!("directive"in e)}static isFunctionNode(t){return e.isFunctionDeclarationNode(t)||e.isFunctionExpressionNode(t)||e.isArrowFunctionExpressionNode(t)}static isFunctionDeclarationNode(e){return e.type===o.NodeType.FunctionDeclaration&&null!==e.id}static isFunctionExpressionNode(e){return e.type===o.NodeType.FunctionExpression}static isIdentifierNode(e){return e.type===o.NodeType.Identifier}static isImportDeclarationNode(e){return e.type===o.NodeType.ImportDeclaration}static isImportSpecifierNode(e){return e.type===o.NodeType.ImportSpecifier}static isLabelIdentifierNode(t,r){const o=e.isLabeledStatementNode(r)&&r.label===t,n=e.isContinueStatementNode(r)&&r.label===t,i=e.isBreakStatementNode(r)&&r.label===t;return o||n||i}static isLabeledStatementNode(e){return e.type===o.NodeType.LabeledStatement}static isLiteralNode(e){return e.type===o.NodeType.Literal}static isMemberExpressionNode(e){return e.type===o.NodeType.MemberExpression}static isMethodDefinitionNode(e){return e.type===o.NodeType.MethodDefinition}static isNode(e){return e&&void 0!==!e.type}static isNodeWithLexicalScope(t){return e.isProgramNode(t)||e.isFunctionNode(t)}static isNodeWithBlockLexicalScope(t){return e.isNodeWithLexicalScope(t)||e.isBlockStatementNode(t)}static isNodeWithLexicalScopeStatements(t,r){return e.isProgramNode(t)||e.isBlockStatementNode(t)&&e.nodesWithLexicalStatements.includes(r.type)}static isNodeWithStatements(t){return e.isProgramNode(t)||e.isBlockStatementNode(t)||e.isSwitchCaseNode(t)}static isNodeWithComments(e){return Boolean(e.leadingComments)||Boolean(e.trailingComments)}static isObjectPatternNode(e){return e.type===o.NodeType.ObjectPattern}static isObjectExpressionNode(e){return e.type===o.NodeType.ObjectExpression}static isProgramNode(e){return e.type===o.NodeType.Program}static isPropertyNode(e){return e.type===o.NodeType.Property}static isRestElementNode(e){return e.type===o.NodeType.RestElement}static isReturnStatementNode(e){return e.type===o.NodeType.ReturnStatement}static isSequenceExpressionNode(e){return e.type===o.NodeType.SequenceExpression}static isSuperNode(e){return e.type===o.NodeType.Super}static isSwitchCaseNode(e){return e.type===o.NodeType.SwitchCase}static isTaggedTemplateExpressionNode(e){return e.type===o.NodeType.TaggedTemplateExpression}static isTemplateLiteralNode(e){return e.type===o.NodeType.TemplateLiteral}static isUnaryExpressionNode(e){return e.type===o.NodeType.UnaryExpression}static isUseStrictOperator(t){return e.isDirectiveNode(t)&&"use strict"===t.directive}static isVariableDeclarationNode(e){return e.type===o.NodeType.VariableDeclaration}static isVariableDeclaratorNode(e){return e.type===o.NodeType.VariableDeclarator}static isWhileStatementNode(e){return e.type===o.NodeType.WhileStatement}}return e.nodesWithLexicalStatements=[o.NodeType.ArrowFunctionExpression,o.NodeType.FunctionDeclaration,o.NodeType.FunctionExpression,o.NodeType.MethodDefinition],e})();t.NodeGuards=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeUtils=void 0;const a=i(r(47)),s=i(r(12)),c=r(44),d=r(60),l=r(4),u=r(19);class f{static addXVerbatimPropertyTo(e){return e["x-verbatim-property"]={content:e.raw,precedence:a.Precedence.Primary},e}static clone(e){return f.parentizeAst(f.cloneRecursive(e))}static convertCodeToStructure(e){const t=d.ASTParserFacade.parse(e,{ecmaVersion:c.ecmaVersion,sourceType:"script"});return s.replace(t,{enter:(e,t)=>(f.parentizeNode(e,t),l.NodeGuards.isLiteralNode(e)&&f.addXVerbatimPropertyTo(e),u.NodeMetadata.set(e,{ignoredNode:!1}),e)}),t.body}static convertStructureToCode(e){return e.reduce((e,t)=>e+a.generate(t,{sourceMapWithCode:!0}).code,"")}static getUnaryExpressionArgumentNode(e){return l.NodeGuards.isUnaryExpressionNode(e.argument)?f.getUnaryExpressionArgumentNode(e.argument):e.argument}static parentizeAst(e){var t;const r=null!==(t=e.parentNode)&&void 0!==t?t:null;return s.replace(e,{enter:f.parentizeNode}),r&&(e.parentNode=r),e}static parentizeNode(e,t){return e.parentNode=null!=t?t:e,e}static cloneRecursive(e){if(null===e)return e;const t={};return Object.keys(e).forEach(r=>{if("parentNode"===r)return;const o=e[r];let n;n=null===o||o instanceof RegExp?o:Array.isArray(o)?o.map(f.cloneRecursive):"object"==typeof o?f.cloneRecursive(o):o,t[r]=n}),t}}t.NodeUtils=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializable=void 0;const o={configurable:!0,enumerable:!0};function n(e,t,r){Reflect.hasMetadata(e,r)||Reflect.defineMetadata(e,t,r)}t.initializable=function(e="initialize"){const t=Object.keys(this)[0];return(r,i)=>{const a=r[e];if(!a||"function"!=typeof a)throw new Error(`\`${e}\` method with initialization logic not `+`found. \`@${t}\` decorator requires \`${e}\` method`);return n("_initialized",!1,r),n("_initializablePropertiesSet",new Set,r),n("_wrappedMethodsSet",new Set,r),function(e,t){const r=Object.getOwnPropertyNames(e),n=[t,"constructor"];r.forEach(r=>{var i;const a=Reflect.getMetadata("_initializablePropertiesSet",e),s=Reflect.getMetadata("_wrappedMethodsSet",e);if(n.includes(r)||a.has(r)||s.has(r))return;if("function"!=typeof e[r])return;const c=null!==(i=Object.getOwnPropertyDescriptor(e,r))&&void 0!==i?i:o,d=c.value;Object.defineProperty(e,r,Object.assign(Object.assign({},c),{value(){if(!Reflect.getMetadata("_initialized",this))throw new Error(`Class should be initialized with \`${t}()\` method`);return d.apply(this,arguments)}})),s.add(r)})}(r,e),function(e,t,r){var n;const i=null!==(n=Object.getOwnPropertyDescriptor(e,t))&&void 0!==n?n:o,a=i.value;Object.defineProperty(e,t,Object.assign(Object.assign({},i),{value:function(){Reflect.defineMetadata("_initialized",!0,this);const e=a.apply(this,arguments);return this[r],e}}))}(r,e,i),function(e,t){var r;Reflect.getMetadata("_initializablePropertiesSet",e).add(t);const n=`_${t.toString()}`,i=null!==(r=Object.getOwnPropertyDescriptor(e,n))&&void 0!==r?r:o;return Object.defineProperty(e,t,Object.assign(Object.assign({},i),{get:function(){if(void 0===this[n])throw new Error(`Property \`${t.toString()}\` is not initialized! Initialize it first!`);return this[n]},set:function(e){this[n]=e}})),i}(r,i)}}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeFactory=void 0;const a=i(r(47)),s=r(35);class c{static programNode(e=[]){return{type:s.NodeType.Program,body:e,sourceType:"script",metadata:{ignoredNode:!1}}}static arrayExpressionNode(e=[]){return{type:s.NodeType.ArrayExpression,elements:e,metadata:{ignoredNode:!1}}}static assignmentExpressionNode(e,t,r){return{type:s.NodeType.AssignmentExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static binaryExpressionNode(e,t,r){return{type:s.NodeType.BinaryExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static blockStatementNode(e=[]){return{type:s.NodeType.BlockStatement,body:e,metadata:{ignoredNode:!1}}}static breakStatement(e){return{type:s.NodeType.BreakStatement,label:e,metadata:{ignoredNode:!1}}}static callExpressionNode(e,t=[]){return{type:s.NodeType.CallExpression,callee:e,arguments:t,metadata:{ignoredNode:!1}}}static continueStatement(e){return{type:s.NodeType.ContinueStatement,label:e,metadata:{ignoredNode:!1}}}static directiveNode(e,t){return{type:s.NodeType.ExpressionStatement,expression:e,directive:t,metadata:{ignoredNode:!1}}}static expressionStatementNode(e){return{type:s.NodeType.ExpressionStatement,expression:e,metadata:{ignoredNode:!1}}}static functionDeclarationNode(e,t,r){return{type:s.NodeType.FunctionDeclaration,id:c.identifierNode(e),params:t,body:r,generator:!1,metadata:{ignoredNode:!1}}}static functionExpressionNode(e,t){return{type:s.NodeType.FunctionExpression,params:e,body:t,generator:!1,metadata:{ignoredNode:!1}}}static ifStatementNode(e,t,r){return Object.assign(Object.assign({type:s.NodeType.IfStatement,test:e,consequent:t},r&&{alternate:r}),{metadata:{ignoredNode:!1}})}static identifierNode(e){return{type:s.NodeType.Identifier,name:e,metadata:{ignoredNode:!1}}}static importDeclarationNode(e,t){return{type:s.NodeType.ImportDeclaration,specifiers:e,source:t,metadata:{ignoredNode:!1}}}static literalNode(e,t){return t=void 0!==t?t:`'${e}'`,{type:s.NodeType.Literal,value:e,raw:t,"x-verbatim-property":{content:t,precedence:a.Precedence.Primary},metadata:{ignoredNode:!1}}}static logicalExpressionNode(e,t,r){return{type:s.NodeType.LogicalExpression,operator:e,left:t,right:r,metadata:{ignoredNode:!1}}}static memberExpressionNode(e,t,r=!1){return{type:s.NodeType.MemberExpression,computed:r,object:e,property:t,metadata:{ignoredNode:!1}}}static objectExpressionNode(e){return{type:s.NodeType.ObjectExpression,properties:e,metadata:{ignoredNode:!1}}}static propertyNode(e,t,r=!1){return{type:s.NodeType.Property,key:e,value:t,kind:"init",method:!1,shorthand:!1,computed:r,metadata:{ignoredNode:!1}}}static returnStatementNode(e){return{type:s.NodeType.ReturnStatement,argument:e,metadata:{ignoredNode:!1}}}static switchStatementNode(e,t){return{type:s.NodeType.SwitchStatement,discriminant:e,cases:t,metadata:{ignoredNode:!1}}}static switchCaseNode(e,t){return{type:s.NodeType.SwitchCase,test:e,consequent:t,metadata:{ignoredNode:!1}}}static unaryExpressionNode(e,t,r=!0){return{type:s.NodeType.UnaryExpression,operator:e,argument:t,prefix:r,metadata:{ignoredNode:!1}}}static updateExpressionNode(e,t){return{type:s.NodeType.UpdateExpression,operator:e,argument:t,prefix:!1,metadata:{ignoredNode:!1}}}static variableDeclarationNode(e=[],t="var"){return{type:s.NodeType.VariableDeclaration,declarations:e,kind:t,metadata:{ignoredNode:!1}}}static variableDeclaratorNode(e,t){return{type:s.NodeType.VariableDeclarator,id:e,init:t,metadata:{ignoredNode:!1}}}static whileStatementNode(e,t){return{type:s.NodeType.WhileStatement,test:e,body:t,metadata:{ignoredNode:!1}}}}t.NodeFactory=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformationStage=void 0,function(e){e.Initializing="Initializing",e.Preparing="Preparing",e.DeadCodeInjection="DeadCodeInjection",e.ControlFlowFlattening="ControlFlowFlattening",e.Converting="Converting",e.Obfuscating="Obfuscating",e.Finalizing="Finalizing"}(t.NodeTransformationStage||(t.NodeTransformationStage={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractNodeTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3);let l=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractNodeTransformer=l},function(e,t){e.exports=require("estraverse")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformer=void 0,function(e){e.BlockStatementControlFlowTransformer="BlockStatementControlFlowTransformer",e.CommentsTransformer="CommentsTransformer",e.CustomCodeHelpersTransformer="CustomCodeHelpersTransformer",e.DeadCodeInjectionTransformer="DeadCodeInjectionTransformer",e.EvalCallExpressionTransformer="EvalCallExpressionTransformer",e.FunctionControlFlowTransformer="FunctionControlFlowTransformer",e.LabeledStatementTransformer="LabeledStatementTransformer",e.LiteralTransformer="LiteralTransformer",e.MemberExpressionTransformer="MemberExpressionTransformer",e.MetadataTransformer="MetadataTransformer",e.MethodDefinitionTransformer="MethodDefinitionTransformer",e.ObfuscatingGuardsTransformer="ObfuscatingGuardsTransformer",e.ObjectExpressionKeysTransformer="ObjectExpressionKeysTransformer",e.ObjectExpressionTransformer="ObjectExpressionTransformer",e.ParentificationTransformer="ParentificationTransformer",e.ScopeIdentifiersTransformer="ScopeIdentifiersTransformer",e.SplitStringTransformer="SplitStringTransformer",e.TemplateLiteralTransformer="TemplateLiteralTransformer",e.VariablePreserveTransformer="VariablePreserveTransformer"}(t.NodeTransformer||(t.NodeTransformer={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3);let f=(()=>{var e,t,r,f;let p=class{constructor(e,t,r,o){this.cachedNode=null,this.identifierNamesGenerator=e(o),this.customCodeHelperFormatter=t,this.randomGenerator=r,this.options=o}getNode(){return this.cachedNode||(this.cachedNode=this.customCodeHelperFormatter.formatStructure(this.getNodeStructure())),this.cachedNode}};return p=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(f=void 0!==l.IOptions&&l.IOptions)?f:Object])],p),p})();t.AbstractCustomNode=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InversifyContainerFacade=void 0;const o=r(0),n=r(1),i=r(79),a=r(89),s=r(94),c=r(106),d=r(117),l=r(157),u=r(170),f=r(171),p=r(175),m=r(177),g=r(180),y=r(182),h=r(191),b=r(213),N=r(227),v=r(232),I=r(240),O=r(242),S=r(77),C=r(247),j=r(250),_=r(252),R=r(253);t.InversifyContainerFacade=class{constructor(){this.container=new o.Container}static getFactory(e){return t=>r=>t.container.getNamed(e,r)}static getCacheFactory(e){return t=>{const r=new Map;return o=>{if(r.has(o))return r.get(o);const n=t.container.getNamed(e,o);return r.set(o,n),n}}}static getConstructorFactory(e,...t){return r=>{const o=new Map,n=[];return i=>{if(t.forEach((e,t)=>{n[t]||(n[t]=r.container.get(e))}),o.has(i))return new(o.get(i))(...n);const a=r.container.getNamed(e,i);return o.set(i,a),new a(...n)}}}get(e){return this.container.get(e)}getNamed(e,t){return this.container.getNamed(e,t)}load(e,t,r){this.container.bind(n.ServiceIdentifiers.ISourceCode).toDynamicValue(()=>new R.SourceCode(e,t)).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.TInputOptions).toDynamicValue(()=>r).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.ILogger).to(S.Logger).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.IJavaScriptObfuscator).to(O.JavaScriptObfuscator).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.ICodeTransformersRunner).to(I.CodeTransformersRunner).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.INodeTransformersRunner).to(C.NodeTransformersRunner).inSingletonScope(),this.container.bind(n.ServiceIdentifiers.IObfuscatedCode).to(_.ObfuscatedCode),this.container.bind(n.ServiceIdentifiers.Factory__IObfuscatedCode).toFactory(e=>(t,r)=>{const o=e.container.get(n.ServiceIdentifiers.IObfuscatedCode);return o.initialize(t,r),o}),this.container.bind(n.ServiceIdentifiers.IObfuscationEventEmitter).to(j.ObfuscationEventEmitter).inSingletonScope(),this.container.load(i.analyzersModule),this.container.load(a.codeTransformersModule),this.container.load(s.controlFlowTransformersModule),this.container.load(c.convertingTransformersModule),this.container.load(d.customCodeHelpersModule),this.container.load(l.customNodesModule),this.container.load(u.finalizingTransformersModule),this.container.load(f.generatorsModule),this.container.load(p.initializingTransformersModule),this.container.load(m.nodeModule),this.container.load(g.nodeTransformersModule),this.container.load(y.obfuscatingTransformersModule),this.container.load(h.optionsModule),this.container.load(b.preparingTransformersModule),this.container.load(N.storagesModule),this.container.load(v.utilsModule)}unload(){this.container.unbindAll()}}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(125),m=r(126);let g=(()=>{var e,t,r,g,y,h;let b=e=class{constructor(e,t,r,o,n){this.cachedNode=null,this.identifierNamesGenerator=e(n),this.customCodeHelperFormatter=t,this.customCodeHelperObfuscator=r,this.randomGenerator=o,this.options=n}getNode(){if(!this.cachedNode){const e=this.getCodeHelperTemplate();this.cachedNode=this.customCodeHelperFormatter.formatStructure(this.getNodeStructure(e))}return this.cachedNode}getGlobalVariableTemplate(){return this.randomGenerator.getRandomGenerator().pickone(e.globalVariableTemplateFunctions)}getCodeHelperTemplate(){return""}};return b.globalVariableTemplateFunctions=[p.GlobalVariableTemplate1(),m.GlobalVariableTemplate2()],b=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(g=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?g:Object,"function"==typeof(y=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?y:Object,"function"==typeof(h=void 0!==u.IOptions&&u.IOptions)?h:Object])],b),b})();t.AbstractCustomCodeHelper=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStatementUtils=void 0;const o=r(4);class n{static getParentNodeWithStatements(e){return n.getParentNodesWithStatementsRecursive(e,1)[0]}static getParentNodesWithStatements(e){return n.getParentNodesWithStatementsRecursive(e)}static getNextSiblingStatement(e){return n.getSiblingStatementByOffset(e,1)}static getPreviousSiblingStatement(e){return n.getSiblingStatementByOffset(e,-1)}static getRootStatementOfNode(e){if(o.NodeGuards.isProgramNode(e))throw new Error("Unable to find root statement for `Program` node");const t=e.parentNode;if(!t)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithStatements(t)?e:n.getRootStatementOfNode(t)}static getScopeOfNode(e){const t=e.parentNode;if(!t)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithStatements(t)?t:n.getScopeOfNode(t)}static getParentNodesWithStatementsRecursive(e,t=1/0,r=[],i=0){if(r.length>=t)return r;const a=e.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return(o.NodeGuards.isProgramNode(e)||o.NodeGuards.isNodeWithLexicalScopeStatements(e,a)&&i>0)&&r.push(e),e!==a?n.getParentNodesWithStatementsRecursive(a,t,r,++i):r}static getSiblingStatementByOffset(e,t){const r=n.getScopeOfNode(e),i=o.NodeGuards.isSwitchCaseNode(r)?r.consequent:r.body,a=i.indexOf(e);return i[a+t]||null}}t.NodeStatementUtils=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeMetadata=void 0;class o{static set(e,t){var r;e.metadata=Object.assign(null!==(r=e.metadata)&&void 0!==r?r:{},t)}static get(e,t){return void 0!==e.metadata?e.metadata[t]:void 0}static isIgnoredNode(e){return!0===o.get(e,"ignoredNode")}static isReplacedLiteral(e){return!0===o.get(e,"replacedLiteral")}}t.NodeMetadata=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowCustomNode=void 0,function(e){e.BinaryExpressionFunctionNode="BinaryExpressionFunctionNode",e.BlockStatementControlFlowFlatteningNode="BlockStatementControlFlowFlatteningNode",e.CallExpressionControlFlowStorageCallNode="CallExpressionControlFlowStorageCallNode",e.CallExpressionFunctionNode="CallExpressionFunctionNode",e.ControlFlowStorageNode="ControlFlowStorageNode",e.ExpressionWithOperatorControlFlowStorageCallNode="ExpressionWithOperatorControlFlowStorageCallNode",e.LogicalExpressionFunctionNode="LogicalExpressionFunctionNode",e.StringLiteralControlFlowStorageCallNode="StringLiteralControlFlowStorageCallNode",e.StringLiteralNode="StringLiteralNode"}(t.ControlFlowCustomNode||(t.ControlFlowCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeAppender=void 0;const o=r(4);class n{static append(e,t){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...n.getScopeStatements(e),...t])}static appendToOptimalBlockScope(e,t,r,o=0){const i=e.length?n.getOptimalBlockScope(e,o):t;n.prepend(i,r)}static getOptimalBlockScope(e,t,r=1/0){const o=e[t];if(r<=0)throw new Error("Invalid `deep` argument value. Value should be bigger then 0.");return r>1&&o.callsGraph.length?n.getOptimalBlockScope(o.callsGraph,0,--r):o.callee}static insertBefore(e,t,r){const o=n.getScopeStatements(e).indexOf(r);n.insertAtIndex(e,t,o)}static insertAfter(e,t,r){const o=n.getScopeStatements(e).indexOf(r);n.insertAtIndex(e,t,o+1)}static insertAtIndex(e,t,r){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...n.getScopeStatements(e).slice(0,r),...t,...n.getScopeStatements(e).slice(r)])}static prepend(e,t){t=n.parentizeScopeStatementsBeforeAppend(e,t),n.setScopeStatements(e,[...t,...n.getScopeStatements(e)])}static getScopeStatements(e){return o.NodeGuards.isSwitchCaseNode(e)?e.consequent:e.body}static parentizeScopeStatementsBeforeAppend(e,t){return t.forEach(t=>{t.parentNode=e}),t}static setScopeStatements(e,t){o.NodeGuards.isSwitchCaseNode(e)?e.consequent=t:e.body=t}}t.NodeAppender=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeLexicalScopeUtils=void 0;const o=r(4);class n{static getLexicalScope(e){return n.getLexicalScopesRecursive(e,1)[0]}static getLexicalScopes(e){return n.getLexicalScopesRecursive(e)}static getLexicalScopesRecursive(e,t=1/0,r=[],i=0){if(r.length>=t)return r;const a=e.parentNode;if(!a)throw new ReferenceError("`parentNode` property of given node is `undefined`");return o.NodeGuards.isNodeWithLexicalScope(e)&&r.push(e),e!==a?n.getLexicalScopesRecursive(a,t,r,++i):r}}t.NodeLexicalScopeUtils=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationTarget=void 0;const o=r(31);t.ObfuscationTarget=o.MakeEnum({Browser:"browser",BrowserNoEval:"browser-no-eval",Node:"node"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationEvent=void 0,function(e){e.AfterObfuscation="afterObfuscation",e.BeforeObfuscation="beforeObfuscation"}(t.ObfuscationEvent||(t.ObfuscationEvent={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=void 0;let o=(()=>{class e{static buildVersionMessage(e,t){if(!e||!t)return"unknown";return`${e}_${new Date(parseInt(t,10)).toISOString()}`}static extractDomainFrom(e){let t;return t=e.includes("://")||0===e.indexOf("//")?e.split("/")[2]:e.split("/")[0],t=t.split(":")[0],t}static getIdentifiersPrefixForMultipleSources(t,r){return`${t||e.baseMultipleSourcesIdentifiersPrefix}${r}`}}return e.baseMultipleSourcesIdentifiersPrefix="a",e.hexadecimalPrefix="0x",e})();t.Utils=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelper=void 0,function(e){e.CallsControllerFunction="CallsControllerFunction",e.ConsoleOutputDisable="ConsoleOutputDisable",e.DebugProtectionFunctionCall="DebugProtectionFunctionCall",e.DebugProtectionFunctionInterval="DebugProtectionFunctionInterval",e.DebugProtectionFunction="DebugProtectionFunction",e.DomainLock="DomainLock",e.SelfDefendingUnicode="SelfDefendingUnicode",e.StringArrayCallsWrapper="StringArrayCallsWrapper",e.StringArray="StringArray",e.StringArrayRotateFunction="StringArrayRotateFunction"}(t.CustomCodeHelper||(t.CustomCodeHelper={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncoding=void 0;const o=r(31);t.StringArrayEncoding=o.MakeEnum({Base64:"base64",Rc4:"rc4"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCustomCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(5),d=r(2),l=r(3);let u=(()=>{var e,t,r;let u=class{constructor(e,t,r){this.identifierNamesGenerator=e(r),this.randomGenerator=t,this.options=r}getAppendEvent(){return this.appendEvent}getCustomCodeHelpers(){return this.customCodeHelpers}appendCustomNodeIfExist(e,t){const r=this.customCodeHelpers.get(e);r&&t(r)}getRandomCallsGraphIndex(e){return this.randomGenerator.getRandomInteger(0,Math.max(0,Math.round(e-1)))}};return u=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object])],u),u})();t.AbstractCustomCodeHelperGroup=u},function(e,t){e.exports=require("@gradecam/tsenum")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapMode=void 0;const o=r(31);t.SourceMapMode=o.MakeEnum({Inline:"inline",Separate:"separate"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierNamesGenerator=void 0;const o=r(31);t.IdentifierNamesGenerator=o.MakeEnum({DictionaryIdentifierNamesGenerator:"dictionary",HexadecimalIdentifierNamesGenerator:"hexadecimal",MangledIdentifierNamesGenerator:"mangled"})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeType=void 0,function(e){e.ArrayExpression="ArrayExpression",e.ArrayPattern="ArrayPattern",e.ArrowFunctionExpression="ArrowFunctionExpression",e.AssignmentExpression="AssignmentExpression",e.AssignmentPattern="AssignmentPattern",e.AwaitExpression="AwaitExpression",e.BinaryExpression="BinaryExpression",e.BlockStatement="BlockStatement",e.BreakStatement="BreakStatement",e.CallExpression="CallExpression",e.CatchClause="CatchClause",e.ClassDeclaration="ClassDeclaration",e.ConditionalExpression="ConditionalExpression",e.ContinueStatement="ContinueStatement",e.ExportNamedDeclaration="ExportNamedDeclaration",e.ExpressionStatement="ExpressionStatement",e.ForStatement="ForStatement",e.ForInStatement="ForInStatement",e.ForOfStatement="ForOfStatement",e.FunctionDeclaration="FunctionDeclaration",e.FunctionExpression="FunctionExpression",e.Identifier="Identifier",e.IfStatement="IfStatement",e.ImportDeclaration="ImportDeclaration",e.ImportDefaultSpecifier="ImportDefaultSpecifier",e.ImportNamespaceSpecifier="ImportNamespaceSpecifier",e.ImportSpecifier="ImportSpecifier",e.LabeledStatement="LabeledStatement",e.Literal="Literal",e.LogicalExpression="LogicalExpression",e.MemberExpression="MemberExpression",e.MethodDefinition="MethodDefinition",e.ObjectExpression="ObjectExpression",e.ObjectPattern="ObjectPattern",e.Program="Program",e.Property="Property",e.RestElement="RestElement",e.ReturnStatement="ReturnStatement",e.SequenceExpression="SequenceExpression",e.Super="Super",e.SwitchCase="SwitchCase",e.SwitchStatement="SwitchStatement",e.TaggedTemplateExpression="TaggedTemplateExpression",e.TemplateLiteral="TemplateLiteral",e.TryStatement="TryStatement",e.UnaryExpression="UnaryExpression",e.UpdateExpression="UpdateExpression",e.VariableDeclaration="VariableDeclaration",e.VariableDeclarator="VariableDeclarator",e.WhileStatement="WhileStatement"}(t.NodeType||(t.NodeType={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NumberUtils=void 0;const o=r(26);t.NumberUtils=class{static toHex(e){const t="number"==typeof e?e.toString(16):`${e.toString(16)}n`;return`${o.Utils.hexadecimalPrefix}${t}`}static isCeil(e){return"number"!=typeof e||e%1==0}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IdentifierObfuscatingReplacer=void 0,function(e){e.BaseIdentifierObfuscatingReplacer="BaseIdentifierObfuscatingReplacer"}(t.IdentifierObfuscatingReplacer||(t.IdentifierObfuscatingReplacer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2);let d=(()=>{var e;let t=class{constructor(e){this.options=e}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IOptions&&c.IOptions)?e:Object])],t),t})();t.AbstractObfuscatingReplacer=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_PRESET=void 0;const o=r(34),n=r(24),i=r(32);t.DEFAULT_PRESET=Object.freeze({compact:!0,config:"",controlFlowFlattening:!1,controlFlowFlatteningThreshold:.75,deadCodeInjection:!1,deadCodeInjectionThreshold:.4,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",identifiersDictionary:[],inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!0,seed:0,selfDefending:!1,shuffleStringArray:!0,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,splitStrings:!1,splitStringsChunkLength:10,stringArray:!0,stringArrayEncoding:!1,stringArrayThreshold:.75,target:n.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringSeparator=void 0,function(e){e.Dot=".",e.Comma=","}(t.StringSeparator||(t.StringSeparator={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCalleeDataExtractor=void 0;const n=r(0);let i=(()=>{let e=class{};return e=o([n.injectable()],e),e})();t.AbstractCalleeDataExtractor=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ecmaVersion=void 0,t.ecmaVersion=11},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NodeLiteralUtils=void 0;const o=r(4);t.NodeLiteralUtils=class{static isProhibitedLiteralNode(e,t){return!(!o.NodeGuards.isPropertyNode(t)||t.computed||t.key!==e)||!!o.NodeGuards.isImportDeclarationNode(t)}}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3);let u=(()=>{var e,t,r,u;let f=e=class{constructor(e,t,r){this.replacerDataByControlFlowStorageId=new Map,this.controlFlowCustomNodeFactory=e,this.randomGenerator=t,this.options=r}static getStorageKeysByIdForCurrentStorage(e,t){let r;return r=e.has(t)?e.get(t):new Map,r}insertCustomNodeToControlFlowStorage(t,r,o,n){const i=r.getStorageId(),a=e.getStorageKeysByIdForCurrentStorage(this.replacerDataByControlFlowStorageId,i),s=a.get(o);if(this.randomGenerator.getMathRandom(){const t=this.randomGenerator.getRandomString(e);return r.getStorage().has(t)?c(e):t},d=c(5);return a.set(o,[d]),this.replacerDataByControlFlowStorageId.set(i,a),r.set(d,t),d}};return f=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(u=void 0!==d.IOptions&&d.IOptions)?u:Object])],f),f})();t.AbstractControlFlowReplacer=u},function(e,t){e.exports=require("escodegen")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableNoEvalTemplate=void 0,t.GlobalVariableNoEvalTemplate=function(){return"\n const that = (typeof window !== 'undefined'\n ? window\n : (typeof process === 'object' &&\n typeof require === 'function' &&\n typeof global === 'object')\n ? global\n : this);\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(4);let u=(()=>{var e,t;let r=class{constructor(e,t){this.preservedNamesSet=new Set,this.lexicalScopesPreservedNamesMap=new Map,this.randomGenerator=e,this.options=t}generate(e,t){return l.NodeGuards.isProgramNode(e)?this.generateForGlobalScope():this.generateForLexicalScope(e)}preserveName(e){this.preservedNamesSet.add(e)}preserveNameForLexicalScope(e,t){var r;const o=null!==(r=this.lexicalScopesPreservedNamesMap.get(t))&&void 0!==r?r:new Set;o.add(e),this.lexicalScopesPreservedNamesMap.set(t,o)}isValidIdentifierName(e){return this.notReservedName(e)&&!this.preservedNamesSet.has(e)}isValidIdentifierNameInLexicalScopes(e,t){var r;if(!this.isValidIdentifierName(e))return!1;for(const o of t){const t=null!==(r=this.lexicalScopesPreservedNamesMap.get(o))&&void 0!==r?r:null;if(t&&t.has(e))return!1}return!0}notReservedName(e){return!this.options.reservedNames.length||!this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractIdentifierNamesGenerator=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MapStorage=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(7);let u=(()=>{var e,t,r;let u=class{constructor(e,t){this.randomGenerator=e,this.options=t}initialize(){this.storage=new Map,this.storageId=this.randomGenerator.getRandomString(6)}get(e){return this.storage.get(e)}getOrThrow(e){const t=this.get(e);if(!t)throw new Error(`No value found in map storage with key \`${e}\``);return t}getKeyOf(e){for(const[t,r]of this.storage)if(e===r)return t;return null}getLength(){return this.storage.size}getStorage(){return this.storage}getStorageId(){return this.storageId}has(e){return this.storage.has(e)}mergeWith(e,t=!1){this.storage=new Map([...this.storage,...e.getStorage()]),t&&(this.storageId=e.getStorageId())}set(e,t){this.storage.set(e,t)}};return o([l.initializable(),n("design:type",String)],u.prototype,"storageId",void 0),o([l.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],u.prototype,"storage",void 0),o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],u.prototype,"initialize",null),u=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],u),u})();t.MapStorage=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscator=void 0,r(76);const o=r(1),n=r(16),i=r(26);let a=(()=>{class e{static obfuscate(e,t={}){const r=new n.InversifyContainerFacade;r.load(e,"",t);const i=r.get(o.ServiceIdentifiers.IJavaScriptObfuscator).obfuscate(e);return r.unload(),i}static obfuscateMultiple(t,r={}){if("object"!=typeof t)throw new Error("Source codes object should be a plain object");return Object.keys(t).reduce((o,n,a)=>{const s=i.Utils.getIdentifiersPrefixForMultipleSources(r.identifiersPrefix,a),c=t[n],d=Object.assign(Object.assign({},r),{identifiersPrefix:s});return Object.assign(Object.assign({},o),{[n]:e.obfuscate(c,d)})},{})}}return e.version=null!=="0.28.3"?"0.28.3":"unknown",e})();t.JavaScriptObfuscator=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CalleeDataExtractor=void 0,function(e){e.FunctionDeclarationCalleeDataExtractor="FunctionDeclarationCalleeDataExtractor",e.FunctionExpressionCalleeDataExtractor="FunctionExpressionCalleeDataExtractor",e.ObjectExpressionCalleeDataExtractor="ObjectExpressionCalleeDataExtractor"}(t.CalleeDataExtractor||(t.CalleeDataExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformer=void 0,function(e){e.HashbangOperatorTransformer="HashbangOperatorTransformer"}(t.CodeTransformer||(t.CodeTransformer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractTransformerNamesGroupsBuilder=void 0;const a=r(0),s=r(1),c=r(91);let d=(()=>{var e;let t=class{constructor(e){this.levelledTopologicalSorter=e}build(e){const t=Object.keys(e),r=this.buildTransformersRelationEdges(t,e);for(const[e,t]of r)this.levelledTopologicalSorter.add(e,t);return this.levelledTopologicalSorter.sortByGroups()}buildTransformersRelationEdges(e,t){const r=[];for(const o of e){const e=t[o].runAfter;if(e&&e.length)for(const n of e){void 0===t[n]?r.push([o,null]):r.push([n,o])}else r.push([o,null])}return r}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ILevelledTopologicalSorter)),n("design:paramtypes",["function"==typeof(e=void 0!==c.ILevelledTopologicalSorter&&c.ILevelledTopologicalSorter)?e:Object])],t),t})();t.AbstractTransformerNamesGroupsBuilder=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformationStage=void 0,function(e){e.PreparingTransformers="PreparingTransformers",e.FinalizingTransformers="FinalizingTransformers"}(t.CodeTransformationStage||(t.CodeTransformationStage={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowReplacer=void 0,function(e){e.BinaryExpressionControlFlowReplacer="BinaryExpressionControlFlowReplacer",e.CallExpressionControlFlowReplacer="CallExpressionControlFlowReplacer",e.LogicalExpressionControlFlowReplacer="LogicalExpressionControlFlowReplacer",e.StringLiteralControlFlowReplacer="StringLiteralControlFlowReplacer"}(t.ControlFlowReplacer||(t.ControlFlowReplacer={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithOperatorControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r;let m=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}getControlFlowStorageCallNode(e,t,r,o){const n=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode);n.initialize(e,t,r,o);const i=n.getNode()[0];if(!i||!p.NodeGuards.isExpressionStatementNode(i))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return i.expression}};return m=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?e:Object,"function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object])],m),m})();t.ExpressionWithOperatorControlFlowReplacer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ASTParserFacade=void 0;const s=i(r(97)),c=a(r(61));let d=(()=>{class e{static parse(t,r){const o=e.sourceTypes.length;for(let n=0;n"),c=`...${n.substring(i,a).replace(/^\s+/,"")}...`;throw new Error(`ERROR at line ${o.line}: ${r}\n${s} ${c}`)}}return e.colorError=c.default.red,e.nearestSymbolsCount=15,e.sourceTypes=["script","module"],e})();t.ASTParserFacade=d},function(e,t){e.exports=require("chalk")},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionCustomNode=void 0,function(e){e.BlockStatementDeadCodeInjectionNode="BlockStatementDeadCodeInjectionNode"}(t.DeadCodeInjectionCustomNode||(t.DeadCodeInjectionCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionExtractor=void 0,function(e){e.BasePropertiesExtractor="BasePropertiesExtractor",e.ObjectExpressionToVariableDeclarationExtractor="ObjectExpressionToVariableDeclarationExtractor"}(t.ObjectExpressionExtractor||(t.ObjectExpressionExtractor={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionKeysTransformerCustomNode=void 0,function(e){e.ObjectExpressionVariableDeclarationHostNode="ObjectExpressionVariableDeclarationHostNode"}(t.ObjectExpressionKeysTransformerCustomNode||(t.ObjectExpressionKeysTransformerCustomNode={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperGroup=void 0,function(e){e.ConsoleOutput="ConsoleOutput",e.DebugProtection="DebugProtection",e.DomainLock="DomainLock",e.SelfDefending="SelfDefending",e.StringArray="StringArray"}(t.CustomCodeHelperGroup||(t.CustomCodeHelperGroup={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.ConditionalCommentObfuscatingGuard=void 0;const n=r(0),i=r(4);let a=(()=>{var e;let t=e=class{constructor(){this.obfuscationAllowed=!0}static isConditionalComment(t){return e.obfuscationEnableCommentRegExp.test(t.value)||e.obfuscationDisableCommentRegExp.test(t.value)}check(e){if(!i.NodeGuards.isNodeWithComments(e))return this.obfuscationAllowed;const t=e.leadingComments;return t&&(this.obfuscationAllowed=this.checkComments(t)),this.obfuscationAllowed}checkComments(t){const r=t.length;let o=this.obfuscationAllowed;for(let n=0;n=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.RandomGenerator=void 0;const s=r(0),c=r(1),d=a(r(235)),l=r(236),u=r(2),f=r(237),p=r(7);let m=(()=>{var e,t,r,a;let m=e=class{constructor(e,t){this.sourceCode=e,this.options=t}initialize(){this.randomGenerator=new l.Chance(this.getRawSeed())}getMathRandom(){return this.getRandomInteger(0,99999)/1e5}getRandomGenerator(){return this.randomGenerator}getRandomInteger(e,t){return this.getRandomGenerator().integer({min:e,max:t})}getRandomString(t,r=e.randomGeneratorPool){return this.getRandomGenerator().string({length:t,pool:r})}getInputSeed(){return this.options.seed.toString()}getRawSeed(){const e=this.getInputSeed();return`${e}`.split("|").length>1?e:`${e}|${d.default(this.sourceCode.getSourceCode())}`}};return m.randomGeneratorPool="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",o([p.initializable(),n("design:type","function"==typeof(t=void 0!==l.Chance&&l.Chance.Chance)?t:Object)],m.prototype,"randomGenerator",void 0),o([s.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],m.prototype,"initialize",null),m=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.ISourceCode)),i(1,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(r=void 0!==f.ISourceCode&&f.ISourceCode)?r:Object,"function"==typeof(a=void 0!==u.IOptions&&u.IOptions)?a:Object])],m),m})();t.RandomGenerator=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t){e.exports=require("reflect-metadata")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;const s=r(0),c=r(1),d=a(r(61)),l=r(2),u=r(78);let f=(()=>{var e,t;let r=e=class{constructor(e){this.options=e}static log(e,t,r,o){const n=e(`\n${t} ${r}`);console.log(n,null!=o?o:"")}info(t,r){this.options.log&&e.log(e.colorInfo,u.LoggingPrefix.Base,t,r)}success(t,r){this.options.log&&e.log(e.colorSuccess,u.LoggingPrefix.Base,t,r)}warn(t,r){this.options.log&&e.log(e.colorWarn,u.LoggingPrefix.Base,t,r)}};return r.colorInfo=d.default.cyan,r.colorSuccess=d.default.green,r.colorWarn=d.default.yellow,r=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==l.IOptions&&l.IOptions)?t:Object])],r),r})();t.Logger=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingPrefix=void 0,function(e){e.Base="[javascript-obfuscator]",e.CLI="[javascript-obfuscator-cli]"}(t.LoggingPrefix||(t.LoggingPrefix={}))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.analyzersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(54),s=r(80),c=r(82),d=r(83),l=r(84),u=r(85),f=r(86),p=r(88);t.analyzersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.ICallsGraphAnalyzer).to(s.CallsGraphAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer).to(u.PrevailingKindOfVariablesAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IScopeAnalyzer).to(f.ScopeAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.IStringArrayStorageAnalyzer).to(p.StringArrayStorageAnalyzer).inSingletonScope(),e(i.ServiceIdentifiers.ICalleeDataExtractor).to(c.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(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.ICalleeDataExtractor))})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsGraphAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(81),p=r(54),m=r(4),g=r(18);let y=(()=>{var e,t;let r=e=class{constructor(e){this.calleeDataExtractorFactory=e}static getLimitIndex(t){const r=t-1,o=e.limitThresholdActivationLength-1;let n=r;return r>o&&(n=Math.round(o+r*e.limitThreshold),n>r&&(n=r)),n}analyze(e){return this.analyzeRecursive(e.body)}analyzeRecursive(t){const r=e.getLimitIndex(t.length),o=[],n=t.length;for(let e=0;er);e++){const r=t[e];u.traverse(r,{enter:e=>{if(m.NodeGuards.isCallExpressionNode(e))return r.parentNode!==g.NodeStatementUtils.getParentNodeWithStatements(e)?u.VisitorOption.Skip:void this.analyzeCallExpressionNode(o,t,e)}})}return o}analyzeCallExpressionNode(t,r,o){e.calleeDataExtractorsList.forEach(e=>{const n=this.calleeDataExtractorFactory(e).extract(r,o.callee);n&&t.push(Object.assign(Object.assign({},n),{callsGraph:this.analyzeRecursive(n.callee.body)}))})}};return r.calleeDataExtractorsList=[p.CalleeDataExtractor.FunctionDeclarationCalleeDataExtractor,p.CalleeDataExtractor.FunctionExpressionCalleeDataExtractor,p.CalleeDataExtractor.ObjectExpressionCalleeDataExtractor],r.limitThresholdActivationLength=25,r.limitThreshold=.002,r=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__ICalleeDataExtractor)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TCalleeDataExtractorFactory&&f.TCalleeDataExtractorFactory)?t:Object])],r),r})();t.CallsGraphAnalyzer=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionDeclarationCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{let e=class extends d.AbstractCalleeDataExtractor{extract(e,t){if(!l.NodeGuards.isIdentifierNode(t))return null;const r=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name);return r?{callee:r,name:t.name}:null}getCalleeBlockStatement(e,t){let r=null;return c.traverse(e,{enter:e=>{if(l.NodeGuards.isFunctionDeclarationNode(e)&&e.id.name===t)return r=e.body,c.VisitorOption.Break}}),r}};return e=i([s.injectable()],e),e})();t.FunctionDeclarationCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionExpressionCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{let e=class extends d.AbstractCalleeDataExtractor{extract(e,t){let r=null,o=null;return l.NodeGuards.isIdentifierNode(t)?(r=t.name,o=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),t.name)):l.NodeGuards.isFunctionExpressionNode(t)&&(r=null,o=t.body),o?{callee:o,name:r}:null}getCalleeBlockStatement(e,t){let r=null;return c.traverse(e,{enter:(e,o)=>{if(l.NodeGuards.isFunctionExpressionNode(e)&&o&&l.NodeGuards.isVariableDeclaratorNode(o)&&l.NodeGuards.isIdentifierNode(o.id)&&o.id.name===t)return r=e.body,c.VisitorOption.Break}}),r}};return e=i([s.injectable()],e),e})();t.FunctionExpressionCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionCalleeDataExtractor=void 0;const s=r(0),c=a(r(12)),d=r(43),l=r(4),u=r(18);let f=(()=>{var e;let t=e=class extends d.AbstractCalleeDataExtractor{static isValidTargetPropertyNode(e,t){if(!e.key)return!1;const r=l.NodeGuards.isIdentifierNode(e.key)&&e.key.name===t,o=l.NodeGuards.isLiteralNode(e.key)&&Boolean(e.key.value)&&e.key.value===t;return r||o}extract(e,t){if(!l.NodeGuards.isMemberExpressionNode(t))return null;const r=this.createObjectMembersCallsChain([],t);if(!r.length)return null;const o=r[r.length-1],n=this.getCalleeBlockStatement(u.NodeStatementUtils.getParentNodeWithStatements(e[0]),r);return n?{callee:n,name:o}:null}createObjectMembersCallsChain(e,t){if(l.NodeGuards.isIdentifierNode(t.property)&&!t.computed)e.unshift(t.property.name);else{if(!l.NodeGuards.isLiteralNode(t.property)||"string"!=typeof t.property.value&&"number"!=typeof t.property.value)return e;e.unshift(t.property.value)}return l.NodeGuards.isMemberExpressionNode(t.object)?this.createObjectMembersCallsChain(e,t.object):(l.NodeGuards.isIdentifierNode(t.object)&&e.unshift(t.object.name),e)}getCalleeBlockStatement(e,t){const r=t.shift();if(!r)return null;let o=null;return c.traverse(e,{enter:e=>{if(l.NodeGuards.isVariableDeclaratorNode(e)&&l.NodeGuards.isIdentifierNode(e.id)&&e.init&&l.NodeGuards.isObjectExpressionNode(e.init)&&e.id.name===r)return o=this.findCalleeBlockStatement(e.init.properties,t),c.VisitorOption.Break}}),o}findCalleeBlockStatement(t,r){const o=r.shift();if(!o)return null;for(const n of t)if(l.NodeGuards.isPropertyNode(n)&&e.isValidTargetPropertyNode(n,o)){if(l.NodeGuards.isObjectExpressionNode(n.value))return this.findCalleeBlockStatement(n.value.properties,r);if(l.NodeGuards.isFunctionExpressionNode(n.value))return n.value.body}return null}};return t=e=i([s.injectable()],t),t})();t.ObjectExpressionCalleeDataExtractor=f},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.PrevailingKindOfVariablesAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(36),p=r(4);let m=(()=>{var e,t;let r=e=class{constructor(t){this.prevailingKindOfVariables=e.defaultKindOfVariables,this.arrayUtils=t}analyze(t){var r;const o=[];u.traverse(t,{enter:e=>{p.NodeGuards.isVariableDeclarationNode(e)&&o.push(e.kind)}}),this.prevailingKindOfVariables=null!==(r=this.arrayUtils.findMostOccurringElement(o))&&void 0!==r?r:e.defaultKindOfVariables}getPrevailingKind(){return this.prevailingKindOfVariables}};return r.defaultKindOfVariables="var",r=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IArrayUtils)),s("design:paramtypes",["function"==typeof(t=void 0!==f.IArrayUtils&&f.IArrayUtils)?t:Object])],r),r})();t.PrevailingKindOfVariablesAnalyzer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeAnalyzer=void 0;const s=r(0),c=a(r(87)),d=a(r(12)),l=r(44),u=r(4);let f=(()=>{var e;let t=e=class{constructor(){this.scopeManager=null}static attachMissingRanges(t){d.replace(t,{enter:t=>{var r,o,n,i,a,s;return t.range||(t.range=[null!==(n=null===(o=null===(r=t.parentNode)||void 0===r?void 0:r.range)||void 0===o?void 0:o[0])&&void 0!==n?n:e.emptyRangeValue,null!==(s=null===(a=null===(i=t.parentNode)||void 0===i?void 0:i.range)||void 0===a?void 0:a[1])&&void 0!==s?s:e.emptyRangeValue]),t}})}static isRootNode(e){return u.NodeGuards.isProgramNode(e)||e.parentNode===e}analyze(t){const r=e.sourceTypes.length;e.attachMissingRanges(t);for(let o=0;o{if("class"===e.type&&e.upper){if(!e.variables.length)return;const t=e.variables[0],r=e.upper.variables.find(e=>t.defs.some(e=>"ClassName"===e.type)&&e.name===t.name);null==r||r.references.push(...e.variables[0].references)}});for(const t of e.childScopes)this.sanitizeScopes(t)}};return t.eslintScopeOptions={ecmaVersion:l.ecmaVersion,optimistic:!0},t.sourceTypes=["script","module"],t.emptyRangeValue=0,t=e=i([s.injectable()],t),t})();t.ScopeAnalyzer=f},function(e,t){e.exports=require("eslint-scope")},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayStorageAnalyzer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(37),g=r(4),y=r(19),h=r(45);let b=(()=>{var e,t,r,o;let n=e=class{constructor(e,t,r){this.stringArrayStorageData=new Map,this.stringArrayStorage=e,this.randomGenerator=t,this.options=r}analyze(e){this.options.stringArray&&u.traverse(e,{enter:(e,t)=>{if(t)return y.NodeMetadata.isIgnoredNode(e)?u.VisitorOption.Skip:void(g.NodeGuards.isLiteralNode(e)&&this.analyzeLiteralNode(e,t))}})}getItemDataForLiteralNode(e){return this.stringArrayStorageData.get(e)}analyzeLiteralNode(e,t){"string"==typeof e.value&&(h.NodeLiteralUtils.isProhibitedLiteralNode(e,t)||this.shouldAddValueToStringArray(e.value)&&this.stringArrayStorageData.set(e,this.stringArrayStorage.getOrThrow(e.value)))}shouldAddValueToStringArray(t){return t.length>=e.minimumLengthForStringArray&&this.randomGenerator.getMathRandom()<=this.options.stringArrayThreshold}};return n.minimumLengthForStringArray=3,n=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IStringArrayStorage)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==m.IStringArrayStorage&&m.IStringArrayStorage)?t:Object,"function"==typeof(r=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?r:Object,"function"==typeof(o=void 0!==f.IOptions&&f.IOptions)?o:Object])],n),n})();t.StringArrayStorageAnalyzer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.codeTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(55),s=r(90),c=r(92);t.codeTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Factory__ICodeTransformer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.ICodeTransformer)),e(i.ServiceIdentifiers.ICodeTransformerNamesGroupsBuilder).to(s.CodeTransformerNamesGroupsBuilder).inSingletonScope(),e(i.ServiceIdentifiers.ICodeTransformer).to(c.HashbangOperatorTransformer).whenTargetNamed(a.CodeTransformer.HashbangOperatorTransformer)})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformerNamesGroupsBuilder=void 0;const n=r(0),i=r(56);let a=(()=>{let e=class extends i.AbstractTransformerNamesGroupsBuilder{};return e=o([n.injectable()],e),e})();t.CodeTransformerNamesGroupsBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.HashbangOperatorTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(57),u=r(93);let f=(()=>{var e,t;let r=class extends u.AbstractCodeTransformer{constructor(e,t){super(e,t),this.hashbangOperatorLine=null}transformCode(e,t){switch(t){case l.CodeTransformationStage.PreparingTransformers:return this.removeAndSaveHashbangOperatorLine(e);case l.CodeTransformationStage.FinalizingTransformers:return this.appendSavedHashbangOperatorLine(e);default:return e}}removeAndSaveHashbangOperatorLine(e){return e.replace(/^#!.*$(\r?\n)*/m,e=>(e&&(this.hashbangOperatorLine=e),"")).trim()}appendSavedHashbangOperatorLine(e){var t;return`${null!==(t=this.hashbangOperatorLine)&&void 0!==t?t:""}${e}`}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.HashbangOperatorTransformer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.AbstractCodeTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3);let l=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.AbstractCodeTransformer=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.controlFlowTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(58),s=r(13),c=r(95),d=r(96),l=r(98),u=r(99),f=r(101),p=r(104),m=r(105);t.controlFlowTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(d.BlockStatementControlFlowTransformer).whenTargetNamed(s.NodeTransformer.BlockStatementControlFlowTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.DeadCodeInjectionTransformer).whenTargetNamed(s.NodeTransformer.DeadCodeInjectionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.FunctionControlFlowTransformer).whenTargetNamed(s.NodeTransformer.FunctionControlFlowTransformer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(c.BinaryExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.BinaryExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(l.CallExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.CallExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(p.LogicalExpressionControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.LogicalExpressionControlFlowReplacer),e(i.ServiceIdentifiers.IControlFlowReplacer).to(m.StringLiteralControlFlowReplacer).whenTargetNamed(a.ControlFlowReplacer.StringLiteralControlFlowReplacer),e(i.ServiceIdentifiers.Factory__IControlFlowReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IControlFlowReplacer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(59);let p=(()=>{var e,t,r,p;let m=e=class extends f.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){const n=t.operator,i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.BinaryExpressionFunctionNode);i.initialize(n);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a,t.left,t.right)}};return m.usingExistingIdentifierChance=.5,m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(p=void 0!==d.IOptions&&d.IOptions)?p:Object])],m),m})();t.BinaryExpressionControlFlowReplacer=p},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementControlFlowTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(20),p=r(36),m=r(2),g=r(3),y=r(21),h=r(10),b=r(11),N=r(4),v=r(6);let I=(()=>{var e,t,r,o,n;let a=e=class extends b.AbstractNodeTransformer{constructor(e,t,r,o){super(r,o),this.controlFlowCustomNodeFactory=e,this.arrayUtils=t}static isProhibitedStatementNode(e){const t=N.NodeGuards.isBreakStatementNode(e)||N.NodeGuards.isContinueStatementNode(e),r=N.NodeGuards.isVariableDeclarationNode(e)&&("const"===e.kind||"let"===e.kind),o=N.NodeGuards.isClassDeclarationNode(e);return N.NodeGuards.isFunctionDeclarationNode(e)||t||r||o}static canTransformBlockStatementNode(t){let r=!0;return u.traverse(t,{enter:t=>{if(N.NodeGuards.isWhileStatementNode(t))return u.VisitorOption.Skip;e.isProhibitedStatementNode(t)&&(r=!1)}}),t.body.length<=4&&(r=!1),r}getVisitor(e){switch(e){case h.NodeTransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&N.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(t,r){if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold||!e.canTransformBlockStatementNode(t))return t;const o=t.body,n=this.arrayUtils.createWithRange(o.length),i=this.arrayUtils.shuffle(n),a=n.map(e=>i.indexOf(e)),s=this.controlFlowCustomNodeFactory(y.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode);s.initialize(o,i,a);const c=s.getNode()[0];return v.NodeUtils.parentizeNode(c,r),c}};return a=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),c(1,d.inject(l.ServiceIdentifiers.IArrayUtils)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TControlFlowCustomNodeFactory&&f.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==p.IArrayUtils&&p.IArrayUtils)?r:Object,"function"==typeof(o=void 0!==g.IRandomGenerator&&g.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==m.IOptions&&m.IOptions)?n:Object])],a),a})();t.BlockStatementControlFlowTransformer=I},function(e,t){e.exports=require("acorn")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r,m;let g=e=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){const n=t.callee;if(!p.NodeGuards.isIdentifierNode(n))return t;const i=String(t.arguments.length),a=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.CallExpressionFunctionNode),s=t.arguments;a.initialize(s);const c=this.insertCustomNodeToControlFlowStorage(a,o,i,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),c,n,s)}getControlFlowStorageCallNode(e,t,r,o){const n=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode);n.initialize(e,t,r,o);const i=n.getNode()[0];if(!i||!p.NodeGuards.isExpressionStatementNode(i))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return i.expression}};return g.usingExistingIdentifierChance=.5,g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(m=void 0!==d.IOptions&&d.IOptions)?m:Object])],g),g})();t.CallExpressionControlFlowReplacer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(100),p=r(2),m=r(3),g=r(62),y=r(63),h=r(13),b=r(35),N=r(10),v=r(11),I=r(8),O=r(4),S=r(18),C=r(6);let j=(()=>{var e,t,r,o,n;let a=e=class extends v.AbstractNodeTransformer{constructor(e,t,r,o){super(r,o),this.deadCodeInjectionRootAstHostNodeSet=new Set,this.collectedBlockStatements=[],this.collectedBlockStatementsTotalLength=0,this.deadCodeInjectionCustomNodeFactory=e,this.transformersRunner=t}static isProhibitedNodeInsideCollectedBlockStatement(e){return O.NodeGuards.isBreakStatementNode(e)||O.NodeGuards.isContinueStatementNode(e)||O.NodeGuards.isAwaitExpressionNode(e)||O.NodeGuards.isSuperNode(e)}static isScopeHoistingFunctionDeclaration(e){if(!O.NodeGuards.isFunctionDeclarationNode(e))return!1;const t=S.NodeStatementUtils.getScopeOfNode(e),r=O.NodeGuards.isSwitchCaseNode(t)?t.consequent:t.body,o=r.indexOf(e);if(0===o)return!1;const n=r.slice(0,o),i=I.NodeFactory.blockStatementNode(n),a=e.id.name;let s=!1;return u.traverse(i,{enter:e=>{if(O.NodeGuards.isIdentifierNode(e)&&e.name===a)return s=!0,u.VisitorOption.Break}}),s}static isValidCollectedBlockStatementNode(t){if(!t.body.length)return!1;let r=0,o=!0;return u.traverse(t,{enter:t=>{if(O.NodeGuards.isBlockStatementNode(t)&&r++,r>e.maxNestedBlockStatementsCount||e.isProhibitedNodeInsideCollectedBlockStatement(t)||e.isScopeHoistingFunctionDeclaration(t))return o=!1,u.VisitorOption.Break}}),o}static isValidWrappedBlockStatementNode(t){if(!t.body.length)return!1;let r=!0;if(u.traverse(t,{enter:t=>{if(e.isScopeHoistingFunctionDeclaration(t))return r=!1,u.VisitorOption.Break}}),!r)return!1;return S.NodeStatementUtils.getParentNodeWithStatements(t).type!==b.NodeType.Program}getVisitor(e){switch(e){case N.NodeTransformationStage.DeadCodeInjection:return{enter:(e,t)=>{if(t&&O.NodeGuards.isProgramNode(e))return this.analyzeNode(e,t),e},leave:(e,t)=>{if(t&&O.NodeGuards.isBlockStatementNode(e))return this.transformNode(e,t)}};case N.NodeTransformationStage.Finalizing:return this.deadCodeInjectionRootAstHostNodeSet.size?{enter:(e,t)=>{if(t&&this.isDeadCodeInjectionRootAstHostNode(e))return this.restoreNode(e,t)}}:null;default:return null}}analyzeNode(t,r){u.traverse(t,{enter:t=>{if(!O.NodeGuards.isBlockStatementNode(t))return;const r=C.NodeUtils.clone(t);if(!e.isValidCollectedBlockStatementNode(r))return;const o=this.makeClonedBlockStatementNodeUnique(r);this.collectedBlockStatements.push(o)}}),this.collectedBlockStatementsTotalLength=this.collectedBlockStatements.length}transformNode(t,r){if(!this.collectedBlockStatements.length||this.collectedBlockStatementsTotalLengththis.options.deadCodeInjectionThreshold||!e.isValidWrappedBlockStatementNode(t))return t;const o=this.collectedBlockStatements.length-1,n=this.randomGenerator.getRandomInteger(0,o),i=this.collectedBlockStatements.splice(n,1)[0];return i===t?t:this.replaceBlockStatementNode(t,i,r)}restoreNode(e,t){const r=e.body[0];if(!O.NodeGuards.isFunctionDeclarationNode(r))throw new Error("Wrong dead code injection root AST host node. Host node should contain `FunctionDeclaration` node");return r.body}isDeadCodeInjectionRootAstHostNode(e){return O.NodeGuards.isBlockStatementNode(e)&&this.deadCodeInjectionRootAstHostNodeSet.has(e)}makeClonedBlockStatementNodeUnique(t){const r=I.NodeFactory.programNode([I.NodeFactory.expressionStatementNode(I.NodeFactory.functionExpressionNode([],t))]);return C.NodeUtils.parentizeAst(r),C.NodeUtils.parentizeNode(r,r),this.transformersRunner.transform(r,e.transformersToRenameBlockScopeIdentifiers,N.NodeTransformationStage.Obfuscating),t}replaceBlockStatementNode(t,r,o){const n=I.NodeFactory.blockStatementNode([I.NodeFactory.functionDeclarationNode(e.deadCodeInjectionRootAstHostNodeName,[],r)]);this.deadCodeInjectionRootAstHostNodeSet.add(n);const i=this.deadCodeInjectionCustomNodeFactory(y.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode);i.initialize(t,n);const a=i.getNode()[0];return C.NodeUtils.parentizeNode(a,o),a}};return a.deadCodeInjectionRootAstHostNodeName="deadCodeInjectionRootAstHostNode",a.maxNestedBlockStatementsCount=4,a.minCollectedBlockStatementsCount=5,a.transformersToRenameBlockScopeIdentifiers=[h.NodeTransformer.LabeledStatementTransformer,h.NodeTransformer.ScopeIdentifiersTransformer],a=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformersRunner)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TDeadNodeInjectionCustomNodeFactory&&f.TDeadNodeInjectionCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==g.INodeTransformersRunner&&g.INodeTransformersRunner)?r:Object,"function"==typeof(o=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==p.IOptions&&p.IOptions)?n:Object])],a),a})();t.DeadCodeInjectionTransformer=j},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionControlFlowTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(20),p=r(102),m=r(103),g=r(2),y=r(3),h=r(21),b=r(58),N=r(35),v=r(10),I=r(11),O=r(22),S=r(4),C=r(19),j=r(18),_=r(6);let R=(()=>{var e,t,r,o,n,a;let R=e=class extends I.AbstractNodeTransformer{constructor(e,t,r,o,n){super(o,n),this.controlFlowData=new Map,this.visitedFunctionNodes=new Set,this.hostNodesWithControlFlowNode=new Set,this.controlFlowStorageFactory=e,this.controlFlowReplacerFactory=t,this.controlFlowCustomNodeFactory=r}getVisitor(e){switch(e){case v.NodeTransformationStage.ControlFlowFlattening:return{leave:(e,t)=>{if(t&&(S.NodeGuards.isFunctionDeclarationNode(e)||S.NodeGuards.isFunctionExpressionNode(e)||S.NodeGuards.isArrowFunctionExpressionNode(e)))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(this.visitedFunctionNodes.add(e),!S.NodeGuards.isBlockStatementNode(e.body))return e;const r=this.getHostNode(e.body),o=this.getControlFlowStorage(r);if(this.controlFlowData.set(r,o),this.transformFunctionBody(e.body,o),!o.getLength())return e;const n=this.controlFlowCustomNodeFactory(h.ControlFlowCustomNode.ControlFlowStorageNode);return n.initialize(o),O.NodeAppender.prepend(r,n.getNode()),this.hostNodesWithControlFlowNode.add(r),_.NodeUtils.parentizeAst(e),e}getControlFlowStorage(e){const t=this.controlFlowStorageFactory();if(this.controlFlowData.has(e)){this.hostNodesWithControlFlowNode.has(e)&&(S.NodeGuards.isSwitchCaseNode(e)?e.consequent.shift():e.body.shift());const r=this.controlFlowData.get(e);t.mergeWith(r,!0)}return t}getHostNode(t){const r=j.NodeStatementUtils.getParentNodesWithStatements(t);return 1===r.length?t:(r.pop(),r.length>e.hostNodeSearchMinDepth&&r.splice(0,e.hostNodeSearchMinDepth),r.length>e.hostNodeSearchMaxDepth&&(r.length=e.hostNodeSearchMaxDepth),this.randomGenerator.getRandomGenerator().pickone(r))}isVisitedFunctionNode(e){return(S.NodeGuards.isFunctionDeclarationNode(e)||S.NodeGuards.isFunctionExpressionNode(e)||S.NodeGuards.isArrowFunctionExpressionNode(e))&&this.visitedFunctionNodes.has(e)}transformFunctionBody(t,r){u.replace(t,{enter:(t,o)=>{if(C.NodeMetadata.isIgnoredNode(t))return u.VisitorOption.Skip;if(this.isVisitedFunctionNode(t)||!o)return u.VisitorOption.Skip;if(!e.controlFlowReplacersMap.has(t.type))return t;if(this.randomGenerator.getMathRandom()>this.options.controlFlowFlatteningThreshold)return t;const n=e.controlFlowReplacersMap.get(t.type);return void 0===n?t:Object.assign(Object.assign({},this.controlFlowReplacerFactory(n).replace(t,o,r)),{parentNode:o})}})}};return R.controlFlowReplacersMap=new Map([[N.NodeType.BinaryExpression,b.ControlFlowReplacer.BinaryExpressionControlFlowReplacer],[N.NodeType.CallExpression,b.ControlFlowReplacer.CallExpressionControlFlowReplacer],[N.NodeType.LogicalExpression,b.ControlFlowReplacer.LogicalExpressionControlFlowReplacer],[N.NodeType.Literal,b.ControlFlowReplacer.StringLiteralControlFlowReplacer]]),R.hostNodeSearchMinDepth=0,R.hostNodeSearchMaxDepth=2,R=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__TControlFlowStorage)),c(1,d.inject(l.ServiceIdentifiers.Factory__IControlFlowReplacer)),c(2,d.inject(l.ServiceIdentifiers.Factory__IControlFlowCustomNode)),c(3,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(4,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==m.TControlFlowStorageFactory&&m.TControlFlowStorageFactory)?t:Object,"function"==typeof(r=void 0!==p.TControlFlowReplacerFactory&&p.TControlFlowReplacerFactory)?r:Object,"function"==typeof(o=void 0!==f.TControlFlowCustomNodeFactory&&f.TControlFlowCustomNodeFactory)?o:Object,"function"==typeof(n=void 0!==y.IRandomGenerator&&y.IRandomGenerator)?n:Object,"function"==typeof(a=void 0!==g.IOptions&&g.IOptions)?a:Object])],R),R})();t.FunctionControlFlowTransformer=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpressionControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(59),p=r(4),m=r(6);let g=(()=>{var e,t,r,g;let y=e=class extends f.ExpressionWithOperatorControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){if(this.checkForProhibitedExpressions(t.left,t.right))return t;const n=t.operator,i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.LogicalExpressionFunctionNode);i.initialize(n);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a,t.left,t.right)}checkForProhibitedExpressions(e,t){return[e,t].some(e=>{let t;return t=p.NodeGuards.isUnaryExpressionNode(e)?m.NodeUtils.getUnaryExpressionArgumentNode(e):e,!(p.NodeGuards.isLiteralNode(t)||p.NodeGuards.isIdentifierNode(t)||p.NodeGuards.isObjectExpressionNode(t)||p.NodeGuards.isExpressionStatementNode(t))})}};return y.usingExistingIdentifierChance=.5,y=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==d.IOptions&&d.IOptions)?g:Object])],y),y})();t.LogicalExpressionControlFlowReplacer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralControlFlowReplacer=void 0;const a=r(0),s=r(1),c=r(20),d=r(2),l=r(3),u=r(21),f=r(46),p=r(4);let m=(()=>{var e,t,r,m;let g=e=class extends f.AbstractControlFlowReplacer{constructor(e,t,r){super(e,t,r)}replace(t,r,o){if(p.NodeGuards.isPropertyNode(r)&&r.key===t)return t;if("string"!=typeof t.value||t.value.length<3)return t;const n=String(t.value),i=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.StringLiteralNode);i.initialize(t.value);const a=this.insertCustomNodeToControlFlowStorage(i,o,n,e.usingExistingIdentifierChance);return this.getControlFlowStorageCallNode(o.getStorageId(),a)}getControlFlowStorageCallNode(e,t){const r=this.controlFlowCustomNodeFactory(u.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode);r.initialize(e,t);const o=r.getNode()[0];if(!o||!p.NodeGuards.isExpressionStatementNode(o))throw new Error("`controlFlowStorageCallCustomNode.getNode()[0]` should returns array with `ExpressionStatement` node");return o.expression}};return g.usingExistingIdentifierChance=1,g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IControlFlowCustomNode)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TControlFlowCustomNodeFactory&&c.TControlFlowCustomNodeFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(m=void 0!==d.IOptions&&d.IOptions)?m:Object])],g),g})();t.StringLiteralControlFlowReplacer=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertingTransformersModule=void 0;const o=r(0),n=r(16),i=r(1),a=r(13),s=r(64),c=r(107),d=r(109),l=r(110),u=r(111),f=r(113),p=r(114),m=r(115),g=r(116);t.convertingTransformersModule=new o.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(d.MemberExpressionTransformer).whenTargetNamed(a.NodeTransformer.MemberExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(l.MethodDefinitionTransformer).whenTargetNamed(a.NodeTransformer.MethodDefinitionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.ObjectExpressionKeysTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionKeysTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.ObjectExpressionTransformer).whenTargetNamed(a.NodeTransformer.ObjectExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.SplitStringTransformer).whenTargetNamed(a.NodeTransformer.SplitStringTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(m.TemplateLiteralTransformer).whenTargetNamed(a.NodeTransformer.TemplateLiteralTransformer),e(i.ServiceIdentifiers.IObjectExpressionExtractor).to(c.ObjectExpressionToVariableDeclarationExtractor).whenTargetNamed(s.ObjectExpressionExtractor.ObjectExpressionToVariableDeclarationExtractor),e(i.ServiceIdentifiers.IObjectExpressionExtractor).to(g.BasePropertiesExtractor).whenTargetNamed(s.ObjectExpressionExtractor.BasePropertiesExtractor),e(i.ServiceIdentifiers.Factory__IObjectExpressionExtractor).toFactory(n.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IObjectExpressionExtractor))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionToVariableDeclarationExtractor=void 0;const a=r(0),s=r(1),c=r(108),d=r(65),l=r(22),u=r(4),f=r(18),p=r(6),m=r(23);let g=(()=>{var e;let t=class{constructor(e){this.objectExpressionKeysTransformerCustomNodeFactory=e}extract(e,t){return this.transformObjectExpressionToVariableDeclaration(e,t)}transformObjectExpressionToVariableDeclaration(e,t){var r;const o=f.NodeStatementUtils.getScopeOfNode(t),n=u.NodeGuards.isNodeWithLexicalScope(o)?o:null!==(r=m.NodeLexicalScopeUtils.getLexicalScope(o))&&void 0!==r?r:null;if(!n)throw new Error("Cannot find lexical scope node for the host statement node");const i=e.properties,a=this.getObjectExpressionHostNode(n,i),s=[a];return l.NodeAppender.insertBefore(o,s,t),p.NodeUtils.parentizeAst(a),p.NodeUtils.parentizeNode(a,o),{nodeToReplace:this.getObjectExpressionIdentifierNode(a),objectExpressionHostStatement:a,objectExpressionNode:this.getObjectExpressionNode(a)}}getObjectExpressionHostNode(e,t){const r=this.objectExpressionKeysTransformerCustomNodeFactory(d.ObjectExpressionKeysTransformerCustomNode.ObjectExpressionVariableDeclarationHostNode);r.initialize(e,t);const o=r.getNode()[0];if(!o||!u.NodeGuards.isVariableDeclarationNode(o))throw new Error("`objectExpressionHostCustomNode.getNode()[0]` should returns array with `VariableDeclaration` node");return o}getObjectExpressionIdentifierNode(e){const t=e.declarations[0].id;if(!u.NodeGuards.isIdentifierNode(t))throw new Error("`objectExpressionHostNode` should contain `VariableDeclarator` node with `Identifier` id property");return t}getObjectExpressionNode(e){var t;const r=null!==(t=e.declarations[0].init)&&void 0!==t?t:null;if(!r||!u.NodeGuards.isObjectExpressionNode(r))throw new Error("`objectExpressionHostNode` should contain `VariableDeclarator` node with `ObjectExpression` init property");return r}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TObjectExpressionKeysTransformerCustomNodeFactory&&c.TObjectExpressionKeysTransformerCustomNodeFactory)?e:Object])],t),t})();t.ObjectExpressionToVariableDeclarationExtractor=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MemberExpressionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Converting:return{enter:(e,t)=>{if(t&&p.NodeGuards.isMemberExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){if(p.NodeGuards.isIdentifierNode(e.property)){if(e.computed)return e;e.computed=!0,e.property=f.NodeFactory.literalNode(e.property.name)}return e}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.MemberExpressionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MethodDefinitionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t,r;let m=e=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.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)?this.replaceIdentifierKey(e,e.key):p.NodeGuards.isLiteralNode(e.key)?this.replaceLiteralKey(e,e.key):e}replaceIdentifierKey(t,r){return e.ignoredNames.includes(r.name)||t.computed||(t.computed=!0,t.key=f.NodeFactory.literalNode(r.name)),t}replaceLiteralKey(t,r){return"string"!=typeof r.value||e.ignoredNames.includes(r.value)||t.computed||(t.computed=!0),t}};return m.ignoredNames=["constructor"],m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],m),m})();t.MethodDefinitionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionKeysTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(112),p=r(2),m=r(3),g=r(10),y=r(11),h=r(4),b=r(18),N=r(64);let v=(()=>{var e,t,r,o;let n=e=class extends y.AbstractNodeTransformer{constructor(e,t,r){super(t,r),this.objectExpressionExtractorFactory=e}static isProhibitedHostStatement(t,r){return e.isReferencedIdentifierName(t,r)||e.isProhibitedSequenceExpression(t,r)}static isReferencedIdentifierName(e,t){const r=[];let o=!1,n=!1;return u.traverse(t,{enter:t=>{t===e&&(n=!0),h.NodeGuards.isIdentifierNode(t)&&(n?r.includes(t.name)&&(o=!0):r.push(t.name))},leave:t=>{if(t===e)return n=!1,u.VisitorOption.Break}}),o}static isProhibitedSequenceExpression(e,t){return h.NodeGuards.isExpressionStatementNode(t)&&h.NodeGuards.isSequenceExpressionNode(t.expression)&&t.expression.expressions.some(e=>h.NodeGuards.isCallExpressionNode(e)&&h.NodeGuards.isSuperNode(e.callee))}getVisitor(e){if(!this.options.transformObjectKeys)return null;switch(e){case g.NodeTransformationStage.Converting:return{leave:(e,t)=>{if(t&&h.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(t,r){if(!t.properties.length)return t;const o=b.NodeStatementUtils.getRootStatementOfNode(t);return e.isProhibitedHostStatement(t,o)?t:this.applyObjectExpressionKeysExtractorsRecursive(e.objectExpressionExtractorNames,t,o)}applyObjectExpressionKeysExtractorsRecursive(e,t,r){const o=[...e],n=o.shift();if(!n)return t;const{nodeToReplace:i,objectExpressionHostStatement:a,objectExpressionNode:s}=this.objectExpressionExtractorFactory(n).extract(t,r);return this.applyObjectExpressionKeysExtractorsRecursive(o,s,a),i}};return n.objectExpressionExtractorNames=[N.ObjectExpressionExtractor.ObjectExpressionToVariableDeclarationExtractor,N.ObjectExpressionExtractor.BasePropertiesExtractor],n=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IObjectExpressionExtractor)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==f.TObjectExpressionExtractorFactory&&f.TObjectExpressionExtractorFactory)?t:Object,"function"==typeof(r=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?r:Object,"function"==typeof(o=void 0!==p.IOptions&&p.IOptions)?o:Object])],n),n})();t.ObjectExpressionKeysTransformer=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4);let m=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Converting:return{enter:(e,t)=>{if(t&&p.NodeGuards.isObjectExpressionNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return e.properties.forEach(e=>{p.NodeGuards.isPropertyNode(e)&&e.key&&(e.computed?this.transformComputedProperty(e):this.transformBaseProperty(e))}),e}transformComputedProperty(e){p.NodeGuards.isLiteralNode(e.key)&&"string"==typeof e.key.value&&(e.key=f.NodeFactory.literalNode(e.key.value))}transformBaseProperty(e){e.shorthand&&(e.shorthand=!1),p.NodeGuards.isIdentifierNode(e.key)&&(e.key=f.NodeFactory.literalNode(e.key.name))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ObjectExpressionTransformer=m},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SplitStringTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(13),g=r(10),y=r(11),h=r(8),b=r(4),N=r(45),v=r(6);let I=(()=>{var e,t,r;let o=e=class extends y.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[m.NodeTransformer.ObjectExpressionKeysTransformer,m.NodeTransformer.TemplateLiteralTransformer]}static chunkString(e,t){const r=Math.ceil(e.length/t),o=[];let n=0;for(let i=0;i{if(this.options.splitStrings)return t&&b.NodeGuards.isLiteralNode(e)?this.transformNode(e,t):void 0}};default:return null}}transformNode(t,r){if(N.NodeLiteralUtils.isProhibitedLiteralNode(t,r))return t;const o=this.transformLiteralNodeByChunkLength(t,r,e.firstPassChunkLength);return u.replace(o,{enter:(e,t)=>{if(t&&b.NodeGuards.isLiteralNode(e))return this.transformLiteralNodeByChunkLength(e,t,this.options.splitStringsChunkLength)}})}transformLiteralNodeByChunkLength(t,r,o){if("string"!=typeof t.value)return t;if(o>=t.value.length)return t;const n=e.chunkString(t.value,o),i=this.transformStringChunksToBinaryExpressionNode(n);return v.NodeUtils.parentizeAst(i),v.NodeUtils.parentizeNode(i,r),i}transformStringChunksToBinaryExpressionNode(e){const t=e.shift(),r=e.shift();if(!t||!r)throw new Error("First and second chunks values should not be empty");const o=h.NodeFactory.binaryExpressionNode("+",h.NodeFactory.literalNode(t),h.NodeFactory.literalNode(r));return e.reduce((e,t)=>{const r=h.NodeFactory.literalNode(t);return h.NodeFactory.binaryExpressionNode("+",e,r)},o)}};return o.firstPassChunkLength=1e3,o=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==f.IOptions&&f.IOptions)?r:Object])],o),o})();t.SplitStringTransformer=I},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateLiteralTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(8),p=r(4),m=r(6);let g=(()=>{var e,t,r;let g=e=class extends u.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(t){switch(t){case l.NodeTransformationStage.Converting:return{enter:(t,r)=>{if(r&&e.isValidTemplateLiteralNode(t,r))return this.transformNode(t,r)}};default:return null}}transformNode(t,r){const o=t.expressions;let n,i=[];if(t.quasis.forEach(e=>{i.push(f.NodeFactory.literalNode(e.value.cooked));const t=o.shift();t&&i.push(t)}),i=i.filter(e=>!(p.NodeGuards.isLiteralNode(e)&&""===e.value)),e.isLiteralNodeWithStringValue(i[0])||e.isLiteralNodeWithStringValue(i[1])||i.unshift(f.NodeFactory.literalNode("")),i.length>1){let e=f.NodeFactory.binaryExpressionNode("+",i.shift(),i.shift());i.forEach(t=>{e=f.NodeFactory.binaryExpressionNode("+",e,t)}),n=e}else n=i[0];return m.NodeUtils.parentizeAst(n),m.NodeUtils.parentizeNode(n,r),n}};return g=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],g),g})();t.TemplateLiteralTransformer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.BasePropertiesExtractor=void 0;const n=r(0),i=r(22),a=r(8),s=r(4),c=r(18),d=r(6);let l=(()=>{var e;let t=e=class{static getPropertyNodeKeyName(e){const t=e.key;return!s.NodeGuards.isLiteralNode(t)||"string"!=typeof t.value&&"number"!=typeof t.value?s.NodeGuards.isIdentifierNode(t)?t.name:null:t.value.toString()}static isProhibitedPattern(e){return!e||s.NodeGuards.isObjectPatternNode(e)||s.NodeGuards.isArrayPatternNode(e)||s.NodeGuards.isAssignmentPatternNode(e)||s.NodeGuards.isRestElementNode(e)}extract(e,t){const r=e.parentNode;return r&&s.NodeGuards.isVariableDeclaratorNode(r)&&s.NodeGuards.isIdentifierNode(r.id)?this.transformObjectExpressionNode(e,t,r.id):{nodeToReplace:e,objectExpressionHostStatement:t,objectExpressionNode:e}}transformObjectExpressionNode(e,t,r){const o=e.properties,[n,a]=this.extractPropertiesToExpressionStatements(o,t,r),s=c.NodeStatementUtils.getScopeOfNode(t);return this.filterExtractedObjectExpressionProperties(e,a),i.NodeAppender.insertAfter(s,n,t),d.NodeUtils.parentizeAst(s),{nodeToReplace:e,objectExpressionHostStatement:t,objectExpressionNode:e}}extractPropertiesToExpressionStatements(t,r,o){const n=t.length,i=[],c=[];for(let d=0;d!t.includes(r))}};return t=e=o([n.injectable()],t),t})();t.BasePropertiesExtractor=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customCodeHelpersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(27),s=r(66),c=r(118),d=r(119),l=r(120),u=r(121),f=r(122),p=r(123),m=r(127),g=r(129),y=r(131),h=r(133),b=r(135),N=r(139),v=r(141),I=r(143),O=r(145),S=r(152),C=r(154);t.customCodeHelpersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.ICustomCodeHelper).to(p.ConsoleOutputDisableCodeHelper).whenTargetNamed(a.CustomCodeHelper.ConsoleOutputDisable),e(i.ServiceIdentifiers.ICustomCodeHelper).to(y.DebugProtectionFunctionCallCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunctionCall),e(i.ServiceIdentifiers.ICustomCodeHelper).to(h.DebugProtectionFunctionIntervalCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunctionInterval),e(i.ServiceIdentifiers.ICustomCodeHelper).to(b.DebugProtectionFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.DebugProtectionFunction),e(i.ServiceIdentifiers.ICustomCodeHelper).to(N.DomainLockCodeHelper).whenTargetNamed(a.CustomCodeHelper.DomainLock),e(i.ServiceIdentifiers.ICustomCodeHelper).to(v.CallsControllerFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.CallsControllerFunction),e(i.ServiceIdentifiers.ICustomCodeHelper).to(I.SelfDefendingUnicodeCodeHelper).whenTargetNamed(a.CustomCodeHelper.SelfDefendingUnicode),e(i.ServiceIdentifiers.ICustomCodeHelper).to(O.StringArrayCallsWrapperCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArrayCallsWrapper),e(i.ServiceIdentifiers.ICustomCodeHelper).to(S.StringArrayCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArray),e(i.ServiceIdentifiers.ICustomCodeHelper).to(C.StringArrayRotateFunctionCodeHelper).whenTargetNamed(a.CustomCodeHelper.StringArrayRotateFunction),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(c.ConsoleOutputCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.ConsoleOutput),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(d.DebugProtectionCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.DebugProtection),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(l.DomainLockCustomCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.DomainLock),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(u.SelfDefendingCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.SelfDefending),e(i.ServiceIdentifiers.ICustomCodeHelperGroup).to(f.StringArrayCodeHelperGroup).whenTargetNamed(s.CustomCodeHelperGroup.StringArray),e(i.ServiceIdentifiers.Factory__ICustomCodeHelper).toFactory(o.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomCodeHelper)),e(i.ServiceIdentifiers.Factory__ICustomCodeHelperGroup).toFactory(o.InversifyContainerFacade.getFactory(i.ServiceIdentifiers.ICustomCodeHelperGroup)),e(i.ServiceIdentifiers.ICustomCodeHelperFormatter).to(m.CustomCodeHelperFormatter).inSingletonScope(),e(i.ServiceIdentifiers.ICustomCodeHelperObfuscator).to(g.CustomCodeHelperObfuscator).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),y=r(22),h=r(23),b=r(4);let N=(()=>{var e,t,r,N,v;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.disableConsoleOutput)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?y.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?y.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=h.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5),c=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5);this.appendCustomNodeIfExist(p.CustomCodeHelper.ConsoleOutputDisable,e=>{e.initialize(c,s),y.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),y.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.disableConsoleOutput)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.ConsoleOutputDisable),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.ConsoleOutputDisable,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],I),I})();t.ConsoleOutputCodeHelperGroup=N},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),y=r(22),h=r(4),b=r(23);let N=(()=>{var e,t,r,N,v;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.debugProtection)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?y.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?y.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=b.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&h.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5),c=a&&h.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.randomGenerator.getRandomString(5);this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunctionCall,e=>{e.initialize(s,c),y.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),y.NodeAppender.prepend(i,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunction,t=>{t.initialize(s),y.NodeAppender.append(e,t.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.DebugProtectionFunctionInterval,t=>{const r=h.NodeGuards.isSwitchCaseNode(e)?e.consequent.length:e.body.length,o=this.randomGenerator.getRandomInteger(0,r);t.initialize(s),y.NodeAppender.insertAtIndex(e,t.getNode(),o)})}initialize(){if(this.customCodeHelpers=new Map,!this.options.debugProtection)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunction),t=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunctionCall),r=this.customCodeHelperFactory(p.CustomCodeHelper.DebugProtectionFunctionInterval),o=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunction,e),this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunctionCall,t),this.options.debugProtectionInterval&&this.customCodeHelpers.set(p.CustomCodeHelper.DebugProtectionFunctionInterval,r),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,o)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],I),I})();t.DebugProtectionCodeHelperGroup=N},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockCustomCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),y=r(22),h=r(23),b=r(4);let N=(()=>{var e,t,r,N,v;let I=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.domainLock.length)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?y.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?y.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=h.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext(),c=a&&b.NodeGuards.isProgramNode(a)?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext();this.appendCustomNodeIfExist(p.CustomCodeHelper.DomainLock,e=>{e.initialize(c,s),y.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),y.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.domainLock.length)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.DomainLock),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.DomainLock,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],I),I})();t.DomainLockCustomCodeHelperGroup=N},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(7),p=r(27),m=r(25),g=r(30),y=r(22),h=r(23);let b=(()=>{var e,t,r,b,N;let v=class extends g.AbstractCustomCodeHelperGroup{constructor(e,t,r,o){super(t,r,o),this.appendEvent=m.ObfuscationEvent.BeforeObfuscation,this.customCodeHelperFactory=e}appendNodes(e,t){var r;if(!this.options.selfDefending)return;const o=this.getRandomCallsGraphIndex(t.length),n=t.length?y.NodeAppender.getOptimalBlockScope(t,o):e,i=t.length?y.NodeAppender.getOptimalBlockScope(t,o,1):e,a=null!==(r=h.NodeLexicalScopeUtils.getLexicalScope(n))&&void 0!==r?r:null,s=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext(),c=a?this.identifierNamesGenerator.generate(a):this.identifierNamesGenerator.generateNext();this.appendCustomNodeIfExist(p.CustomCodeHelper.SelfDefendingUnicode,e=>{e.initialize(c,s),y.NodeAppender.prepend(n,e.getNode())}),this.appendCustomNodeIfExist(p.CustomCodeHelper.CallsControllerFunction,e=>{e.initialize(this.appendEvent,c),y.NodeAppender.prepend(i,e.getNode())})}initialize(){if(this.customCodeHelpers=new Map,!this.options.selfDefending)return;const e=this.customCodeHelperFactory(p.CustomCodeHelper.SelfDefendingUnicode),t=this.customCodeHelperFactory(p.CustomCodeHelper.CallsControllerFunction);this.customCodeHelpers.set(p.CustomCodeHelper.SelfDefendingUnicode,e),this.customCodeHelpers.set(p.CustomCodeHelper.CallsControllerFunction,t)}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],v.prototype,"customCodeHelpers",void 0),v=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?r:Object,"function"==typeof(b=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?b:Object,"function"==typeof(N=void 0!==l.IOptions&&l.IOptions)?N:Object])],v),v})();t.SelfDefendingCodeHelperGroup=b},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCodeHelperGroup=void 0;const a=r(0),s=r(1),c=r(29),d=r(5),l=r(2),u=r(3),f=r(37),p=r(7),m=r(27),g=r(25),y=r(30),h=r(22);let b=(()=>{var e,t,r,b,N,v;let I=class extends y.AbstractCustomCodeHelperGroup{constructor(e,t,r,o,n){super(r,o,n),this.appendEvent=g.ObfuscationEvent.AfterObfuscation,this.customCodeHelperFactory=e,this.stringArrayStorage=t}appendNodes(e,t){this.stringArrayStorage.getLength()&&(this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArray,t=>{h.NodeAppender.prepend(e,t.getNode())}),this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArrayCallsWrapper,t=>{h.NodeAppender.insertAtIndex(e,t.getNode(),1)}),this.appendCustomNodeIfExist(m.CustomCodeHelper.StringArrayRotateFunction,t=>{h.NodeAppender.insertAtIndex(e,t.getNode(),1)}))}initialize(){if(this.customCodeHelpers=new Map,!this.options.stringArray)return;const e=this.customCodeHelperFactory(m.CustomCodeHelper.StringArray),t=this.customCodeHelperFactory(m.CustomCodeHelper.StringArrayCallsWrapper),r=this.customCodeHelperFactory(m.CustomCodeHelper.StringArrayRotateFunction),o=this.stringArrayStorage.getStorageName(),n=this.stringArrayStorage.getStorageCallsWrapperName(),i=this.stringArrayStorage.getRotationAmount();e.initialize(this.stringArrayStorage,o),t.initialize(o,n),r.initialize(o,i),this.customCodeHelpers.set(m.CustomCodeHelper.StringArray,e),this.customCodeHelpers.set(m.CustomCodeHelper.StringArrayCallsWrapper,t),this.options.rotateStringArray&&this.customCodeHelpers.set(m.CustomCodeHelper.StringArrayRotateFunction,r)}};return o([p.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof Map&&Map)?e:Object)],I.prototype,"customCodeHelpers",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelper)),i(1,a.inject(s.ServiceIdentifiers.IStringArrayStorage)),i(2,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperFactory&&c.TCustomCodeHelperFactory)?t:Object,"function"==typeof(r=void 0!==f.IStringArrayStorage&&f.IStringArrayStorage)?r:Object,"function"==typeof(b=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?b:Object,"function"==typeof(N=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==l.IOptions&&l.IOptions)?v:Object])],I),I})();t.StringArrayCodeHelperGroup=b},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(24),m=r(124),g=r(48),y=r(7),h=r(17),b=r(6);let N=(()=>{var e,t,r,N,v;let I=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.callsControllerFunctionName=e,this.consoleOutputDisableFunctionName=t}getNodeStructure(e){return b.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():g.GlobalVariableNoEvalTemplate();return this.customCodeHelperFormatter.formatTemplate(m.ConsoleOutputDisableExpressionTemplate(),{callControllerFunctionName:this.callsControllerFunctionName,consoleLogDisableFunctionName:this.consoleOutputDisableFunctionName,globalVariableTemplate:e})}};return o([y.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([y.initializable(),n("design:type",String)],I.prototype,"consoleOutputDisableFunctionName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(N=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==u.IOptions&&u.IOptions)?v:Object])],I),I})();t.ConsoleOutputDisableCodeHelper=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ConsoleOutputDisableExpressionTemplate=void 0,t.ConsoleOutputDisableExpressionTemplate=function(){return"\n const {consoleLogDisableFunctionName} = {callControllerFunctionName}(this, function () {\n const func = function () {};\n \n {globalVariableTemplate}\n \n if (!that.console) {\n that.console = (function (func){\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate1=void 0,t.GlobalVariableTemplate1=function(){return"\n let that;\n \n try {\n const getGlobal = Function('return (function() ' + '{}.constructor(\"return this\")( )' + ');');\n \n that = getGlobal();\n } catch (e) {\n that = window;\n }\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVariableTemplate2=void 0,t.GlobalVariableTemplate2=function(){return"\n const getGlobal = function () {\n let 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 const that = getGlobal();\n "}},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}},d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperFormatter=void 0;const l=r(0),u=r(1),f=a(r(12)),p=d(r(128)),m=r(67),g=r(4);let y=(()=>{var e;let t=class{constructor(e){this.prevailingKindOfVariables=e.getPrevailingKind()}formatTemplate(e,t){return p.default(e,t)}formatStructure(e){for(const t of e)f.replace(t,{enter:e=>{if(g.NodeGuards.isVariableDeclarationNode(e))return"var"===this.prevailingKindOfVariables&&(e.kind="var"),e}});return e}};return t=i([l.injectable(),c(0,l.inject(u.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),s("design:paramtypes",["function"==typeof(e=void 0!==m.IPrevailingKindOfVariablesAnalyzer&&m.IPrevailingKindOfVariablesAnalyzer)?e:Object])],t),t})();t.CustomCodeHelperFormatter=y},function(e,t){e.exports=require("string-template")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperObfuscator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(130),u=r(53);let f=(()=>{var e,t;let r=class{constructor(e,t){this.randomGenerator=e,this.options=t}obfuscateTemplate(e,t={}){return u.JavaScriptObfuscator.obfuscate(e,Object.assign(Object.assign(Object.assign({},l.NO_ADDITIONAL_NODES_PRESET),{identifierNamesGenerator:this.options.identifierNamesGenerator,identifiersDictionary:this.options.identifiersDictionary,seed:this.randomGenerator.getRawSeed()}),t)).getObfuscatedCode()}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.CustomCodeHelperObfuscator=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NO_ADDITIONAL_NODES_PRESET=void 0;const o=r(34),n=r(24),i=r(32);t.NO_ADDITIONAL_NODES_PRESET=Object.freeze({compact:!0,controlFlowFlattening:!1,controlFlowFlatteningThreshold:0,deadCodeInjection:!1,deadCodeInjectionThreshold:0,debugProtection:!1,debugProtectionInterval:!1,disableConsoleOutput:!1,domainLock:[],exclude:[],identifierNamesGenerator:o.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,identifiersPrefix:"",identifiersDictionary:[],inputFileName:"",log:!1,renameGlobals:!1,reservedNames:[],reservedStrings:[],rotateStringArray:!1,seed:0,selfDefending:!1,shuffleStringArray:!1,sourceMap:!1,sourceMapBaseUrl:"",sourceMapFileName:"",sourceMapMode:i.SourceMapMode.Separate,splitStrings:!1,splitStringsChunkLength:0,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0,target:n.ObfuscationTarget.Browser,transformObjectKeys:!1,unicodeEscapeSequence:!1})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(7),m=r(132),g=r(17),y=r(6);let h=(()=>{var e,t,r,h,b;let N=class extends g.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.debugProtectionFunctionName=e,this.callsControllerFunctionName=t}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(m.DebugProtectionFunctionCallTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName,callControllerFunctionName:this.callsControllerFunctionName})}};return o([p.initializable(),n("design:type",String)],N.prototype,"callsControllerFunctionName",void 0),o([p.initializable(),n("design:type",String)],N.prototype,"debugProtectionFunctionName",void 0),N=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(h=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?h:Object,"function"==typeof(b=void 0!==u.IOptions&&u.IOptions)?b:Object])],N),N})();t.DebugProtectionFunctionCallCodeHelper=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCallTemplate=void 0,t.DebugProtectionFunctionCallTemplate=function(){return"\n (function () {\n {callControllerFunctionName}(\n this,\n function () {\n const regExp1 = new RegExp('function *\\\\( *\\\\)');\n const regExp2 = new RegExp('\\\\+\\\\+ *\\(?:[a-zA-Z_$][0-9a-zA-Z_$]*\\)', 'i');\n \n const 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 })();\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(7),m=r(134),g=r(17),y=r(6);let h=(()=>{var e,t,r,h,b;let N=class extends g.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(e){return y.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(m.DebugProtectionFunctionIntervalTemplate(),{debugProtectionFunctionName:this.debugProtectionFunctionName})}};return o([p.initializable(),n("design:type",String)],N.prototype,"debugProtectionFunctionName",void 0),N=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(h=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?h:Object,"function"==typeof(b=void 0!==u.IOptions&&u.IOptions)?b:Object])],N),N})();t.DebugProtectionFunctionIntervalCodeHelper=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionIntervalTemplate=void 0,t.DebugProtectionFunctionIntervalTemplate=function(){return"\n setInterval(function () {\n {debugProtectionFunctionName}();\n }, 4000);\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(24),m=r(7),g=r(136),y=r(137),h=r(138),b=r(17),N=r(6);let v=(()=>{var e,t,r,v,I;let O=class extends b.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e){this.debugProtectionFunctionName=e}getNodeStructure(e){return N.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.target!==p.ObfuscationTarget.BrowserNoEval?g.DebuggerTemplate():y.DebuggerTemplateNoEval();return this.customCodeHelperFormatter.formatTemplate(h.DebugProtectionFunctionTemplate(),{debuggerTemplate:e,debugProtectionFunctionName:this.debugProtectionFunctionName})}};return o([m.initializable(),n("design:type",String)],O.prototype,"debugProtectionFunctionName",void 0),O=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(v=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?v:Object,"function"==typeof(I=void 0!==u.IOptions&&u.IOptions)?I:Object])],O),O})();t.DebugProtectionFunctionCodeHelper=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplate=void 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebuggerTemplateNoEval=void 0,t.DebuggerTemplateNoEval=function(){return"\n if (typeof counter === 'string') {\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DebugProtectionFunctionTemplate=void 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(49),f=r(2),p=r(3),m=r(24),g=r(7),y=r(140),h=r(48),b=r(17),N=r(6);let v=(()=>{var e,t,r,v,I,O;let S=class extends b.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.cryptUtils=i}initialize(e,t){this.callsControllerFunctionName=e,this.domainLockFunctionName=t}getNodeStructure(e){return N.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.options.domainLock.join(";"),[t,r]=this.cryptUtils.hideString(e,3*e.length),o=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():h.GlobalVariableNoEvalTemplate();return this.customCodeHelperFormatter.formatTemplate(y.DomainLockTemplate(),{callControllerFunctionName:this.callsControllerFunctionName,domainLockFunctionName:this.domainLockFunctionName,diff:r,domains:t,globalVariableTemplate:o})}};return o([g.initializable(),n("design:type",String)],S.prototype,"callsControllerFunctionName",void 0),o([g.initializable(),n("design:type",String)],S.prototype,"domainLockFunctionName",void 0),S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.ICryptUtils)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(v=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?v:Object,"function"==typeof(I=void 0!==f.IOptions&&f.IOptions)?I:Object,"function"==typeof(O=void 0!==u.ICryptUtils&&u.ICryptUtils)?O:Object])],S),S})();t.DomainLockCodeHelper=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockTemplate=void 0,t.DomainLockTemplate=function(){return'\n const {domainLockFunctionName} = {callControllerFunctionName}(this, function () {\n \n {globalVariableTemplate}\n \n const func = function () {\n return {\n key: \'item\',\n value: \'attribute\',\n getAttribute: function () {\n for (let i = 0; i < 1000; i--) {\n const 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 const regExp = new RegExp("[{diff}]", "g");\n const domains = "{domains}".replace(regExp, "").split(";");\n let document;\n let domain;\n let location;\n let hostname;\n\n for (let 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 (let 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 (let 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 (let 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 const documentDomain = that[document][domain];\n const documentLocationHostName = !!that[document][location] && that[document][location][hostname];\n const currentDomain = documentDomain || documentLocationHostName;\n \n if (!currentDomain) {\n return;\n }\n \n let ok = false;\n \n for (let i = 0; i < domains.length; i++) {\n const domain = domains[i];\n const position = currentDomain.length - domain.length;\n const lastIndex = currentDomain.indexOf(domain, position);\n const 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallsControllerFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(14),l=r(9),u=r(2),f=r(3),p=r(25),m=r(7),g=r(142),y=r(17),h=r(6);let b=(()=>{var e,t,r,b,N,v;let I=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.appendEvent=e,this.callsControllerFunctionName=t}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.appendEvent===p.ObfuscationEvent.AfterObfuscation?this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(g.SingleCallControllerTemplate(),{callControllerFunctionName:this.callsControllerFunctionName})):this.customCodeHelperFormatter.formatTemplate(g.SingleCallControllerTemplate(),{callControllerFunctionName:this.callsControllerFunctionName})}};return o([m.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([m.initializable(),n("design:type","function"==typeof(e=void 0!==p.ObfuscationEvent&&p.ObfuscationEvent)?e:Object)],I.prototype,"appendEvent",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperFormatter&&l.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==d.ICustomCodeHelperObfuscator&&d.ICustomCodeHelperObfuscator)?b:Object,"function"==typeof(N=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==u.IOptions&&u.IOptions)?v:Object])],I),I})();t.CallsControllerFunctionCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleCallControllerTemplate=void 0,t.SingleCallControllerTemplate=function(){return"\n const {callControllerFunctionName} = (function(){\n let firstCall = true;\n \n return function (context, fn){\n const rfn = firstCall ? function(){\n if(fn){\n const 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,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingUnicodeCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(7),g=r(144),y=r(17),h=r(6);let b=(()=>{var e,t,r,b,N,v;let I=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.callsControllerFunctionName=e,this.selfDefendingFunctionName=t}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{callControllerFunctionName:this.callsControllerFunctionName,selfDefendingFunctionName:this.selfDefendingFunctionName})}};return o([m.initializable(),n("design:type",String)],I.prototype,"callsControllerFunctionName",void 0),o([m.initializable(),n("design:type",String)],I.prototype,"selfDefendingFunctionName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(b=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?b:Object,"function"==typeof(N=void 0!==f.IOptions&&f.IOptions)?N:Object,"function"==typeof(v=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?v:Object])],I),I})();t.SelfDefendingUnicodeCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e){return"\n const {selfDefendingFunctionName} = {callControllerFunctionName}(this, function () {\n const test = function () {\n const regExp = test\n .constructor('return /\" + this + \"/')()\n .compile('^([^ ]+( +[^ ]+)+)+[^ ]}');\n \n return !regExp.test({selfDefendingFunctionName});\n };\n \n return test();\n });\n \n {selfDefendingFunctionName}();\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(24),g=r(28),y=r(7),h=r(146),b=r(48),N=r(147),v=r(148),I=r(149),O=r(150),S=r(151),C=r(17),j=r(6);let _=(()=>{var e,t,r,_,R,F;let T=class extends C.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.stringArrayName=e,this.stringArrayCallsWrapperName=t}getNodeStructure(e){return j.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.getDecodeStringArrayTemplate(),t=[`^${this.stringArrayName}$`];return this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(O.StringArrayCallsWrapperTemplate(),{decodeCodeHelperTemplate:e,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName}),{reservedNames:t})}getDecodeStringArrayTemplate(){const e=this.options.target!==m.ObfuscationTarget.BrowserNoEval?this.getGlobalVariableTemplate():b.GlobalVariableNoEvalTemplate(),t=this.customCodeHelperFormatter.formatTemplate(h.AtobTemplate(),{globalVariableTemplate:e});let r="",o="";switch(this.options.selfDefending&&(o=this.customCodeHelperFormatter.formatTemplate(v.SelfDefendingTemplate(this.randomGenerator,this.escapeSequenceEncoder),{stringArrayCallsWrapperName:this.stringArrayCallsWrapperName,stringArrayName:this.stringArrayName})),this.options.stringArrayEncoding){case g.StringArrayEncoding.Rc4:r=this.customCodeHelperFormatter.formatTemplate(S.StringArrayRC4DecodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:o,rc4Polyfill:N.Rc4Template(),stringArrayCallsWrapperName:this.stringArrayCallsWrapperName});break;case g.StringArrayEncoding.Base64:r=this.customCodeHelperFormatter.formatTemplate(I.StringArrayBase64DecodeTemplate(this.randomGenerator),{atobPolyfill:t,selfDefendingCode:o,stringArrayCallsWrapperName:this.stringArrayCallsWrapperName})}return r}};return o([y.initializable(),n("design:type",String)],T.prototype,"stringArrayName",void 0),o([y.initializable(),n("design:type",String)],T.prototype,"stringArrayCallsWrapperName",void 0),T=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(_=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?_:Object,"function"==typeof(R=void 0!==f.IOptions&&f.IOptions)?R:Object,"function"==typeof(F=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?F:Object])],T),T})();t.StringArrayCallsWrapperCodeHelper=_},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AtobTemplate=void 0,t.AtobTemplate=function(){return"\n (function () {\n {globalVariableTemplate}\n \n const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\n that.atob || (\n that.atob = function(input) {\n const str = String(input).replace(/=+$/, '');\n let output = '';\n for (\n let bc = 0, bs, buffer, idx = 0;\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 })();\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rc4Template=void 0,t.Rc4Template=function(){return"\n const rc4 = function (str, key) {\n let s = [], j = 0, x, res = '', newStr = '';\n \n str = atob(str);\n \n for (let 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 let i;\n \t \n\t for (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 (let 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e,t){const r=e.getRandomString(6),o=e.getRandomString(6),n=e.getRandomString(6),i=e.getRandomString(6),a=e.getRandomString(6),s=e.getRandomString(6),c=e.getRandomString(6),d=e.getRandomString(6),l=e.getRandomString(6);return`\n const StatesClass = function (${r}) {\n this.${r} = ${r};\n this.${o} = [1, 0, 0];\n this.${n} = 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 const regExp = new RegExp(this.${i} + this.${a});\n const expression = regExp.test(this.${n}.toString())\n ? --this.${o}[1]\n : --this.${o}[0];\n \n return this.${c}(expression);\n };\n \n StatesClass.prototype.${c} = function (${l}) {\n if (!Boolean(~${l})) {\n return ${l};\n }\n \n return this.${d}(this.${r});\n };\n\n StatesClass.prototype.${d} = function (${r}) {\n for (let i = 0, len = this.${o}.length; i < len; i++) {\n this.${o}.push(Math.round(Math.random()));\n len = this.${o}.length;\n }\n \n return ${r}(this.${o}[0]);\n };\n\n new StatesClass({stringArrayCallsWrapperName}).${s}();\n `}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayBase64DecodeTemplate=void 0,t.StringArrayBase64DecodeTemplate=function(e){const t=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {stringArrayCallsWrapperName}.${r} = function (str) {\n const string = atob(str);\n let newStringChars = [];\n \n for (let 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}.${o} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n const cachedValue = {stringArrayCallsWrapperName}.${o}[index];\n \n if (cachedValue === undefined) {\n {selfDefendingCode}\n \n value = {stringArrayCallsWrapperName}.${r}(value);\n {stringArrayCallsWrapperName}.${o}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCallsWrapperTemplate=void 0,t.StringArrayCallsWrapperTemplate=function(){return"\n const {stringArrayCallsWrapperName} = function (index, key) {\n index = index - 0;\n \n let value = {stringArrayName}[index];\n \n {decodeCodeHelperTemplate}\n \n return value;\n };\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRC4DecodeTemplate=void 0,t.StringArrayRC4DecodeTemplate=function(e){const t=e.getRandomString(6),r=e.getRandomString(6),o=e.getRandomString(6),n=e.getRandomString(6);return`\n if ({stringArrayCallsWrapperName}.${t} === undefined) {\n {atobPolyfill}\n \n {rc4Polyfill}\n {stringArrayCallsWrapperName}.${r} = rc4;\n \n {stringArrayCallsWrapperName}.${o} = {};\n \n {stringArrayCallsWrapperName}.${t} = true;\n }\n \n const cachedValue = {stringArrayCallsWrapperName}.${o}[index];\n\n if (cachedValue === undefined) {\n if ({stringArrayCallsWrapperName}.${n} === undefined) {\n {selfDefendingCode}\n \n {stringArrayCallsWrapperName}.${n} = true;\n }\n \n value = {stringArrayCallsWrapperName}.${r}(value, key);\n {stringArrayCallsWrapperName}.${o}[index] = value;\n } else {\n value = cachedValue;\n }\n `}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(2),f=r(3),p=r(37),m=r(7),g=r(153),y=r(17),h=r(6);let b=(()=>{var e,t,r,b,N,v;let I=class extends y.AbstractCustomCodeHelper{constructor(e,t,r,o,n){super(e,t,r,o,n)}initialize(e,t){this.stringArrayStorage=e,this.stringArrayName=t}getNodeStructure(e){return h.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){return this.customCodeHelperFormatter.formatTemplate(g.StringArrayTemplate(),{stringArrayName:this.stringArrayName,stringArray:this.stringArrayStorage.toString()})}};return o([m.initializable(),n("design:type","function"==typeof(e=void 0!==p.IStringArrayStorage&&p.IStringArrayStorage)?e:Object)],I.prototype,"stringArrayStorage",void 0),o([m.initializable(),n("design:type",String)],I.prototype,"stringArrayName",void 0),I=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?b:Object,"function"==typeof(N=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?N:Object,"function"==typeof(v=void 0!==u.IOptions&&u.IOptions)?v:Object])],I),I})();t.StringArrayCodeHelper=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayTemplate=void 0,t.StringArrayTemplate=function(){return"\n const {stringArrayName} = [{stringArray}];\n "}},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionCodeHelper=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(14),u=r(33),f=r(2),p=r(3),m=r(7),g=r(155),y=r(156),h=r(17),b=r(6),N=r(38);let v=(()=>{var e,t,r,v,I,O;let S=class extends h.AbstractCustomCodeHelper{constructor(e,t,r,o,n,i){super(e,t,r,o,n),this.escapeSequenceEncoder=i}initialize(e,t){this.stringArrayName=e,this.stringArrayRotationAmount=t}getNodeStructure(e){return b.NodeUtils.convertCodeToStructure(e)}getCodeHelperTemplate(){const e=this.identifierNamesGenerator.generateNext(),t=this.identifierNamesGenerator.generateNext(),r=[`^${this.stringArrayName}$`];let o="";return o=this.options.selfDefending?this.customCodeHelperFormatter.formatTemplate(g.SelfDefendingTemplate(this.escapeSequenceEncoder),{timesName:e,whileFunctionName:t}):`${t}(++${e})`,this.customCodeHelperObfuscator.obfuscateTemplate(this.customCodeHelperFormatter.formatTemplate(y.StringArrayRotateFunctionTemplate(),{code:o,timesName:e,whileFunctionName:t,stringArrayName:this.stringArrayName,stringArrayRotationAmount:N.NumberUtils.toHex(this.stringArrayRotationAmount)}),{reservedNames:r})}};return o([m.initializable(),n("design:type",String)],S.prototype,"stringArrayName",void 0),o([m.initializable(),n("design:type",Number)],S.prototype,"stringArrayRotationAmount",void 0),S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.ICustomCodeHelperObfuscator)),i(3,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(4,a.inject(s.ServiceIdentifiers.IOptions)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperObfuscator&&l.ICustomCodeHelperObfuscator)?r:Object,"function"==typeof(v=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?v:Object,"function"==typeof(I=void 0!==f.IOptions&&f.IOptions)?I:Object,"function"==typeof(O=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?O:Object])],S),S})();t.StringArrayRotateFunctionCodeHelper=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingTemplate=void 0,t.SelfDefendingTemplate=function(e){return`\n const selfDefendingFunc = function () {\n const object = {\n data: {\n key: 'cookie',\n value: 'timeout'\n },\n setCookie: function (options, name, value, document) {\n document = document || {};\n \n let updatedCookie = name + "=" + value;\n let i = 0;\n \n for (let i = 0, len = options.length; i < len; i++) {\n const propName = options[i];\n \n updatedCookie += "; " + propName;\n \n const 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 const matches = document(new RegExp(\n "(?:^|; )" + name.replace(/([.$?*|{}()[]\\/+^])/g, '\\$1') + "=([^;]*)"\n ));\n \n const 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 const test1 = function () {\n const regExp = new RegExp('${e.encode("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}",!0)}');\n \n return regExp.test(object.removeCookie.toString());\n };\n \n object['updateCookie'] = test1;\n \n let cookie = '';\n const 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,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRotateFunctionTemplate=void 0,t.StringArrayRotateFunctionTemplate=function(){return"\n (function (array, {timesName}) {\n const {whileFunctionName} = function (times) {\n while (--times) {\n array['push'](array['shift']());\n }\n };\n \n {code}\n })({stringArrayName}, {stringArrayRotationAmount});\n "}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.customNodesModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(21),s=r(63),c=r(65),d=r(158),l=r(159),u=r(160),f=r(161),p=r(162),m=r(163),g=r(164),y=r(166),h=r(167),b=r(168),N=r(169);t.customNodesModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(l.BinaryExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.BinaryExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(u.BlockStatementControlFlowFlatteningNode).whenTargetNamed(a.ControlFlowCustomNode.BlockStatementControlFlowFlatteningNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(p.CallExpressionControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(m.CallExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.CallExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(g.ControlFlowStorageNode).whenTargetNamed(a.ControlFlowCustomNode.ControlFlowStorageNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(y.ExpressionWithOperatorControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.ExpressionWithOperatorControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(h.LogicalExpressionFunctionNode).whenTargetNamed(a.ControlFlowCustomNode.LogicalExpressionFunctionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(N.StringLiteralNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(b.StringLiteralControlFlowStorageCallNode).whenTargetNamed(a.ControlFlowCustomNode.StringLiteralControlFlowStorageCallNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(f.BlockStatementDeadCodeInjectionNode).whenTargetNamed(s.DeadCodeInjectionCustomNode.BlockStatementDeadCodeInjectionNode),e(i.ServiceIdentifiers.Newable__ICustomNode).toConstructor(d.ObjectExpressionVariableDeclarationHostNode).whenTargetNamed(c.ObjectExpressionKeysTransformerCustomNode.ObjectExpressionVariableDeclarationHostNode),e(i.ServiceIdentifiers.Factory__IControlFlowCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions,i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),e(i.ServiceIdentifiers.Factory__IDeadCodeInjectionCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions)),e(i.ServiceIdentifiers.Factory__IObjectExpressionKeysTransformerCustomNode).toFactory(o.InversifyContainerFacade.getConstructorFactory(i.ServiceIdentifiers.Newable__ICustomNode,i.ServiceIdentifiers.Factory__IIdentifierNamesGenerator,i.ServiceIdentifiers.ICustomCodeHelperFormatter,i.ServiceIdentifiers.IRandomGenerator,i.ServiceIdentifiers.IOptions,i.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObjectExpressionVariableDeclarationHostNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(4);let g=(()=>{var e,t,r,g;let y=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.lexicalScopeNode=e,this.properties=t}getNodeStructure(){const e=m.NodeGuards.isProgramNode(this.lexicalScopeNode)?this.identifierNamesGenerator.generateForGlobalScope():this.identifierNamesGenerator.generateForLexicalScope(this.lexicalScopeNode);return[p.NodeFactory.variableDeclarationNode([p.NodeFactory.variableDeclaratorNode(p.NodeFactory.identifierNode(e),p.NodeFactory.objectExpressionNode(this.properties))],"const")]}};return y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.ObjectExpressionVariableDeclarationHostNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BinaryExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let y=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.operator=e}getNodeStructure(){const e=p.NodeFactory.expressionStatementNode(p.NodeFactory.functionExpressionNode([p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")],p.NodeFactory.blockStatementNode([p.NodeFactory.returnStatementNode(p.NodeFactory.binaryExpressionNode(this.operator,p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")))])));return m.NodeUtils.parentizeAst(e),[e]}};return y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.BinaryExpressionFunctionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementControlFlowFlatteningNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(4),y=r(6);let h=(()=>{var e,t,r,h;let b=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r){this.blockStatementBody=e,this.shuffledKeys=t,this.originalKeysIndexesInShuffledArray=r}getNodeStructure(){const e=this.randomGenerator.getRandomString(6),t=this.randomGenerator.getRandomString(6),r=m.NodeFactory.blockStatementNode([m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(e),m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.literalNode(this.originalKeysIndexesInShuffledArray.join("|")),m.NodeFactory.identifierNode("split")),[m.NodeFactory.literalNode("|")]))],"const"),m.NodeFactory.variableDeclarationNode([m.NodeFactory.variableDeclaratorNode(m.NodeFactory.identifierNode(t),m.NodeFactory.literalNode(0))],"let"),m.NodeFactory.whileStatementNode(m.NodeFactory.literalNode(!0),m.NodeFactory.blockStatementNode([m.NodeFactory.switchStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(e),m.NodeFactory.updateExpressionNode("++",m.NodeFactory.identifierNode(t)),!0),this.shuffledKeys.map((e,t)=>{const r=this.blockStatementBody[e],o=[r];return g.NodeGuards.isReturnStatementNode(r)||o.push(m.NodeFactory.continueStatement()),m.NodeFactory.switchCaseNode(m.NodeFactory.literalNode(String(t)),o)})),m.NodeFactory.breakStatement()]))]);return y.NodeUtils.parentizeAst(r),[r]}};return o([f.initializable(),n("design:type",Array)],b.prototype,"blockStatementBody",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"originalKeysIndexesInShuffledArray",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"shuffledKeys",void 0),b=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(h=void 0!==l.IOptions&&l.IOptions)?h:Object])],b),b})();t.BlockStatementControlFlowFlatteningNode=h},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatementDeadCodeInjectionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let y=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.blockStatementNode=e,this.deadCodeInjectionRootAstHostNode=t}getNode(){return this.getNodeStructure()}getNodeStructure(){const e=this.randomGenerator.getMathRandom()>.5,t=this.randomGenerator.getMathRandom()>.5,r=e?"===":"!==",o=this.randomGenerator.getRandomString(5),n=t?o:this.randomGenerator.getRandomString(5),[i,a]=e===t?[this.blockStatementNode,this.deadCodeInjectionRootAstHostNode]:[this.deadCodeInjectionRootAstHostNode,this.blockStatementNode],s=p.NodeFactory.blockStatementNode([p.NodeFactory.ifStatementNode(p.NodeFactory.binaryExpressionNode(r,p.NodeFactory.literalNode(o),p.NodeFactory.literalNode(n)),i,a)]);return m.NodeUtils.parentizeAst(s),[s]}};return y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.BlockStatementDeadCodeInjectionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let y=(()=>{var e,t,r,y,h;let b=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.callee=r,this.expressionArguments=o}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.callee,...this.expressionArguments]));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type","function"==typeof(e="undefined"!=typeof ESTree&&ESTree.Expression)?e:Object)],b.prototype,"callee",void 0),o([f.initializable(),n("design:type",String)],b.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],b.prototype,"controlFlowStorageName",void 0),o([f.initializable(),n("design:type",Array)],b.prototype,"expressionArguments",void 0),b=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(y=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?y:Object,"function"==typeof(h=void 0!==l.IOptions&&l.IOptions)?h:Object])],b),b})();t.CallExpressionControlFlowStorageCallNode=y},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CallExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let y=(()=>{var e,t,r,y;let h=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.expressionArguments=e}getNodeStructure(){const e=m.NodeFactory.identifierNode("callee"),t=[],r=this.expressionArguments.length;for(let e=0;e=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowStorageNode=void 0;const a=r(0),s=r(1),c=r(165),d=r(5),l=r(9),u=r(2),f=r(3),p=r(7),m=r(15),g=r(8),y=r(4),h=r(6);let b=(()=>{var e,t,r,b,N;let v=class extends m.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.controlFlowStorage=e}getNodeStructure(){const e=Array.from(this.controlFlowStorage.getStorage()).map(([e,t])=>{const r=t.getNode()[0];if(!y.NodeGuards.isExpressionStatementNode(r))throw new Error("Function node for control flow storage object should be passed inside the `ExpressionStatement` node!");return g.NodeFactory.propertyNode(g.NodeFactory.identifierNode(e),r.expression)});let t=g.NodeFactory.variableDeclarationNode([g.NodeFactory.variableDeclaratorNode(g.NodeFactory.identifierNode(this.controlFlowStorage.getStorageId()),g.NodeFactory.objectExpressionNode(e))],"const");return t=h.NodeUtils.parentizeAst(t),[t]}};return o([p.initializable(),n("design:type","function"==typeof(e=void 0!==c.TControlFlowStorage&&c.TControlFlowStorage)?e:Object)],v.prototype,"controlFlowStorage",void 0),v=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.TIdentifierNamesGeneratorFactory&&d.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==l.ICustomCodeHelperFormatter&&l.ICustomCodeHelperFormatter)?r:Object,"function"==typeof(b=void 0!==f.IRandomGenerator&&f.IRandomGenerator)?b:Object,"function"==typeof(N=void 0!==u.IOptions&&u.IOptions)?N:Object])],v),v})();t.ControlFlowStorageNode=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionWithOperatorControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let y=(()=>{var e,t,r,y;let h=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t,r,o){this.controlFlowStorageName=e,this.controlFlowStorageKey=t,this.leftValue=r,this.rightValue=o}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.callExpressionNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)),[this.leftValue,this.rightValue]));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type",String)],h.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],h.prototype,"controlFlowStorageName",void 0),h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(y=void 0!==l.IOptions&&l.IOptions)?y:Object])],h),h})();t.ExpressionWithOperatorControlFlowStorageCallNode=y},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpressionFunctionNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(15),p=r(8),m=r(6);let g=(()=>{var e,t,r,g;let y=class extends f.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.operator=e}getNodeStructure(){const e=p.NodeFactory.expressionStatementNode(p.NodeFactory.functionExpressionNode([p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")],p.NodeFactory.blockStatementNode([p.NodeFactory.returnStatementNode(p.NodeFactory.logicalExpressionNode(this.operator,p.NodeFactory.identifierNode("x"),p.NodeFactory.identifierNode("y")))])));return m.NodeUtils.parentizeAst(e),[e]}};return y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.LogicalExpressionFunctionNode=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralControlFlowStorageCallNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8),g=r(6);let y=(()=>{var e,t,r,y;let h=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e,t){this.controlFlowStorageName=e,this.controlFlowStorageKey=t}getNodeStructure(){const e=m.NodeFactory.expressionStatementNode(m.NodeFactory.memberExpressionNode(m.NodeFactory.identifierNode(this.controlFlowStorageName),m.NodeFactory.identifierNode(this.controlFlowStorageKey)));return g.NodeUtils.parentizeAst(e),[e]}};return o([f.initializable(),n("design:type",String)],h.prototype,"controlFlowStorageKey",void 0),o([f.initializable(),n("design:type",String)],h.prototype,"controlFlowStorageName",void 0),h=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(y=void 0!==l.IOptions&&l.IOptions)?y:Object])],h),h})();t.StringLiteralControlFlowStorageCallNode=y},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralNode=void 0;const a=r(0),s=r(1),c=r(5),d=r(9),l=r(2),u=r(3),f=r(7),p=r(15),m=r(8);let g=(()=>{var e,t,r,g;let y=class extends p.AbstractCustomNode{constructor(e,t,r,o){super(e,t,r,o)}initialize(e){this.literalValue=e}getNodeStructure(){return[m.NodeFactory.expressionStatementNode(m.NodeFactory.literalNode(this.literalValue))]}};return o([f.initializable(),n("design:type",String)],y.prototype,"literalValue",void 0),y=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.ICustomCodeHelperFormatter)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.ICustomCodeHelperFormatter&&d.ICustomCodeHelperFormatter)?t:Object,"function"==typeof(r=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?r:Object,"function"==typeof(g=void 0!==l.IOptions&&l.IOptions)?g:Object])],y),y})();t.StringLiteralNode=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.finalizingTransformersModule=void 0;const o=r(0);t.finalizingTransformersModule=new o.ContainerModule(e=>{})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.generatorsModule=void 0;const o=r(0),n=r(1),i=r(34),a=r(172),s=r(173),c=r(174);t.generatorsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(a.DictionaryIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(s.HexadecimalIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator),e(n.ServiceIdentifiers.IIdentifierNamesGenerator).to(c.MangledIdentifierNamesGenerator).inSingletonScope().whenTargetNamed(i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator),e(n.ServiceIdentifiers.Factory__IIdentifierNamesGenerator).toFactory(function(){let e=null;return t=>r=>{if(e)return e;let o;switch(r.identifierNamesGenerator){case i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.MangledIdentifierNamesGenerator);break;case i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator:default:o=t.container.getNamed(n.ServiceIdentifiers.IIdentifierNamesGenerator,i.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator)}return e=o,o}}())})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DictionaryIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(36),d=r(2),l=r(3),u=r(50),f=r(23);let p=(()=>{var e,t,r,p;let m=e=class extends u.AbstractIdentifierNamesGenerator{constructor(e,t,r){super(e,t),this.arrayUtils=r,this.identifierNamesSet=new Set(this.getInitialIdentifierNames(this.options.identifiersDictionary)),this.identifiersIterator=this.identifierNamesSet.values()}static incrementIdentifierName(e){let t="",r=!1;for(const o of e)r||o!==o.toUpperCase()?r||o!==o.toLowerCase()?t+=o:(t+=o.toUpperCase(),r=!0):t+=o.toLowerCase();return r?t:null}generateNext(){const e=this.generateNewDictionaryName();return this.preserveName(e),e}generateForGlobalScope(){const e=`${this.options.identifiersPrefix?`${this.options.identifiersPrefix}`:""}${this.generateNewDictionaryName()}`;return this.isValidIdentifierName(e)?(this.preserveName(e),e):this.generateForGlobalScope()}generateForLexicalScope(e){const t=[e,...f.NodeLexicalScopeUtils.getLexicalScopes(e)],r=this.generateNewDictionaryName();return this.isValidIdentifierNameInLexicalScopes(r,t)?(this.preserveNameForLexicalScope(r,e),r):this.generateForLexicalScope(e)}generateNewDictionaryName(){if(!this.identifierNamesSet.size)throw new Error("Too many identifiers in the code, add more words to identifiers dictionary");const e=this.identifiersIterator.next();if(!e.done){const t=e.value;return this.isValidIdentifierName(t)?e.value:this.generateNewDictionaryName()}return this.identifierNamesSet=new Set(this.getIncrementedIdentifierNames([...this.identifierNamesSet])),this.identifiersIterator=this.identifierNamesSet.values(),this.generateNewDictionaryName()}getInitialIdentifierNames(e){const t=e.filter(Boolean).map(e=>e.toLowerCase());return this.arrayUtils.shuffle(t)}getIncrementedIdentifierNames(t){const r=[];for(const o of t){const t=e.incrementIdentifierName(o);t&&r.push(t)}return this.arrayUtils.shuffle(r)}};return m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),i(2,a.inject(s.ServiceIdentifiers.IArrayUtils)),n("design:paramtypes",["function"==typeof(t=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==d.IOptions&&d.IOptions)?r:Object,"function"==typeof(p=void 0!==c.IArrayUtils&&c.IArrayUtils)?p:Object])],m),m})();t.DictionaryIdentifierNamesGenerator=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.HexadecimalIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(50),u=r(38),f=r(26);let p=(()=>{var e,t,r;let p=e=class extends l.AbstractIdentifierNamesGenerator{constructor(e,t){super(e,t)}generateNext(t){const r=this.randomGenerator.getRandomInteger(1e4,99999999),o=u.NumberUtils.toHex(r),n=f.Utils.hexadecimalPrefix.length,i=(null!=t?t:e.baseIdentifierNameLength)+n,a=`_${o.substr(0,i)}`;return this.isValidIdentifierName(a)?(this.preserveName(a),a):this.generateNext(t)}generateForGlobalScope(e){const t=this.generateNext(e);return`${this.options.identifiersPrefix}${t}`.replace("__","_")}generateForLexicalScope(e,t){return this.generateNext(t)}};return p.baseIdentifierNameLength=6,p=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],p),p})();t.HexadecimalIdentifierNamesGenerator=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MangledIdentifierNamesGenerator=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(50),u=r(23);let f=(()=>{var e,t,r;let f=e=class extends l.AbstractIdentifierNamesGenerator{constructor(t,r){super(t,r),this.previousMangledName=e.initMangledNameCharacter}generateNext(e){const t=this.generateNewMangledName(this.previousMangledName);return this.previousMangledName=t,this.preserveName(t),t}generateForGlobalScope(e){const t=this.options.identifiersPrefix?`${this.options.identifiersPrefix}`:"",r=this.generateNewMangledName(this.previousMangledName),o=`${t}${r}`;return this.previousMangledName=r,this.isValidIdentifierName(o)?(this.preserveName(o),o):this.generateForGlobalScope(e)}generateForLexicalScope(t,r){const o=[t,...u.NodeLexicalScopeUtils.getLexicalScopes(t)];let n=this.getLastMangledNameForScopes(o);do{n=this.generateNewMangledName(n)}while(!this.isValidIdentifierNameInLexicalScopes(n,o));return e.lastMangledNameInScopeMap.set(t,n),this.preserveNameForLexicalScope(n,t),n}isValidIdentifierName(t){return super.isValidIdentifierName(t)&&!e.reservedNamesSet.has(t)}generateNewMangledName(t){let r=(t=>{const r=e.nameSequence,o=r.length,n=t.length,i=e=>"0".repeat(e);let a=n-1;do{const e=t[a],s=r.indexOf(e);if(s!==o-1){return t.substring(0,a)+r[s+1]+i(n-(a+1))}--a}while(a>=0);return`a${i(n)}`})(t);return this.isValidIdentifierName(r)||(r=this.generateNewMangledName(r)),r}getLastMangledNameForScopes(t){var r;for(const o of t){const t=null!==(r=e.lastMangledNameInScopeMap.get(o))&&void 0!==r?r:null;if(t)return t}return e.initMangledNameCharacter}};return f.initMangledNameCharacter="9",f.lastMangledNameInScopeMap=new WeakMap,f.nameSequence="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),f.reservedNamesSet=new Set(["byte","case","char","do","else","enum","eval","for","goto","if","in","int","let","long","new","null","this","true","try","var","void","with"]),f=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object])],f),f})();t.MangledIdentifierNamesGenerator=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.initializingTransformersModule=void 0;const o=r(0),n=r(1),i=r(13),a=r(176);t.initializingTransformersModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.INodeTransformer).to(a.CommentsTransformer).whenTargetNamed(i.NodeTransformer.CommentsTransformer)})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CommentsTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(2),p=r(3),m=r(10),g=r(11),y=r(68),h=r(4);let b=(()=>{var e,t,r;let o=e=class extends g.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case m.NodeTransformationStage.Initializing:return{leave:e=>{if(h.NodeGuards.isProgramNode(e))return this.transformNode(e)}};default:return null}}transformNode(e){if(!e.comments||!e.comments.length)return e;const t=this.transformComments(e.comments);if(0===t.length)return e;if(!e.body.length)return e.leadingComments=t,e;let r=!0;return u.traverse(e,{enter:o=>{if(o===e)return;const n=t.findIndex(e=>e.range&&o.range&&e.range[0]=0&&((r?e:o).leadingComments=t.splice(n,t.length-n).reverse()),r=!1}}),t.length>0&&(e.trailingComments=t.reverse()),e}transformComments(t){return t.filter(t=>e.preservedWords.some(e=>t.value.includes(e))||y.ConditionalCommentObfuscatingGuard.isConditionalComment(t)).reverse()}};return o.preservedWords=["@license","@preserve"],o=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(1,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==f.IOptions&&f.IOptions)?r:Object])],o),o})();t.CommentsTransformer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeModule=void 0;const o=r(0),n=r(1),i=r(178);t.nodeModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IScopeIdentifiersTraverser).to(i.ScopeIdentifiersTraverser).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIdentifiersTraverser=void 0;const a=r(0),s=r(1),c=r(179),d=r(4);let l=(()=>{var e,t;let r=e=class{constructor(e){this.scopeAnalyzer=e}traverse(e,t,r){this.scopeAnalyzer.analyze(e);const o=this.scopeAnalyzer.acquireScope(e);this.traverseScopeVariables(o,o,r)}traverseScopeVariables(t,r,o){const n=r.variableScope,i=d.NodeGuards.isNodeWithBlockLexicalScope(n.block)?n.block:null,a=e.globalScopeNames.includes(n.type);if(i){for(const s of r.variables){if(s.name===e.argumentsVariableName)continue;o({isGlobalDeclaration:a,isBubblingDeclaration:s.identifiers.some(e=>e.parentNode&&d.NodeGuards.isPropertyNode(e.parentNode)&&e.parentNode.shorthand),rootScope:t,variable:s,variableScope:n,variableLexicalScopeNode:i})}for(const e of r.childScopes)this.traverseScopeVariables(t,e,o)}}};return r.argumentsVariableName="arguments",r.globalScopeNames=["global","module"],r=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IScopeAnalyzer)),n("design:paramtypes",["function"==typeof(t=void 0!==c.IScopeAnalyzer&&c.IScopeAnalyzer)?t:Object])],r),r})();t.ScopeIdentifiersTraverser=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nodeTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(181);t.nodeTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.Factory__INodeTransformer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.INodeTransformer)),e(i.ServiceIdentifiers.INodeTransformerNamesGroupsBuilder).to(a.NodeTransformerNamesGroupsBuilder).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformerNamesGroupsBuilder=void 0;const n=r(0),i=r(56);let a=(()=>{let e=class extends i.AbstractTransformerNamesGroupsBuilder{};return e=o([n.injectable()],e),e})();t.NodeTransformerNamesGroupsBuilder=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.obfuscatingTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(39),s=r(69),c=r(13),d=r(183),l=r(184),u=r(185),f=r(186),p=r(188),m=r(189),g=r(190);t.obfuscatingTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(u.LabeledStatementTransformer).whenTargetNamed(c.NodeTransformer.LabeledStatementTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.LiteralTransformer).whenTargetNamed(c.NodeTransformer.LiteralTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(g.ScopeIdentifiersTransformer).whenTargetNamed(c.NodeTransformer.ScopeIdentifiersTransformer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(l.BooleanLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(p.NumberLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IObfuscatingReplacer).to(m.StringLiteralObfuscatingReplacer).whenTargetNamed(s.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer),e(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer).to(d.BaseIdentifierObfuscatingReplacer).whenTargetNamed(a.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),e(i.ServiceIdentifiers.Factory__IObfuscatingReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IObfuscatingReplacer)),e(i.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.IIdentifierObfuscatingReplacer))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseIdentifierObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(5),d=r(2),l=r(40),u=r(8);let f=(()=>{var e,t;let r=class extends l.AbstractObfuscatingReplacer{constructor(e,t){super(t),this.blockScopesMap=new Map,this.identifierNamesGenerator=e(t)}replace(e,t){let r=e.name;if(this.blockScopesMap.has(t)){const e=this.blockScopesMap.get(t);e.has(r)&&(r=e.get(r))}return u.NodeFactory.identifierNode(r)}storeGlobalName(e,t){const r=e.name;if(this.isReservedName(r))return;const o=this.identifierNamesGenerator.generateForGlobalScope();this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(r,o)}storeLocalName(e,t){const r=e.name;if(this.isReservedName(r))return;const o=this.identifierNamesGenerator.generateForLexicalScope(t);this.blockScopesMap.has(t)||this.blockScopesMap.set(t,new Map),this.blockScopesMap.get(t).set(r,o)}preserveName(e){this.identifierNamesGenerator.preserveName(e.name)}preserveNameForLexicalScope(e,t){this.identifierNamesGenerator.preserveNameForLexicalScope(e.name,t)}isReservedName(e){return!!this.options.reservedNames.length&&this.options.reservedNames.some(t=>null!==new RegExp(t,"g").exec(e))}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?e:Object,"function"==typeof(t=void 0!==d.IOptions&&d.IOptions)?t:Object])],r),r})();t.BaseIdentifierObfuscatingReplacer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BooleanLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(40),l=r(8);let u=(()=>{var e,t;let r=e=class extends d.AbstractObfuscatingReplacer{constructor(e){super(e)}static getTrueUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",e.getFalseUnaryExpressionNode())}static getFalseUnaryExpressionNode(){return l.NodeFactory.unaryExpressionNode("!",l.NodeFactory.arrayExpressionNode())}replace(t){const r=t.value;if("boolean"!=typeof r)throw new Error("`BooleanLiteralObfuscatingReplacer` should accept only literals with `boolean` value");return r?e.getTrueUnaryExpressionNode():e.getFalseUnaryExpressionNode()}};return r=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.BooleanLiteralObfuscatingReplacer=u},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LabeledStatementTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(51),p=r(2),m=r(3),g=r(39),y=r(10),h=r(11),b=r(4),N=r(23);let v=(()=>{var e,t,r;let o=class extends h.AbstractNodeTransformer{constructor(e,t,r){super(t,r),this.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer)}getVisitor(e){switch(e){case y.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&b.NodeGuards.isLabeledStatementNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){const r=N.NodeLexicalScopeUtils.getLexicalScope(e);return r?(this.storeLabeledStatementName(e,r),this.replaceLabeledStatementName(e,r),e):e}storeLabeledStatementName(e,t){this.identifierObfuscatingReplacer.storeLocalName(e.label,t)}replaceLabeledStatementName(e,t){u.replace(e,{enter:(e,r)=>{if(r&&b.NodeGuards.isLabelIdentifierNode(e,r)){const r=this.identifierObfuscatingReplacer.replace(e,t);e.name=r.name}}})}};return o=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TIdentifierObfuscatingReplacerFactory&&f.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==p.IOptions&&p.IOptions)?r:Object])],o),o})();t.LabeledStatementTransformer=v},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LiteralTransformer=void 0;const a=r(0),s=r(1),c=r(187),d=r(33),l=r(2),u=r(3),f=r(70),p=r(69),m=r(10),g=r(11),y=r(8),h=r(4),b=r(45),N=r(19),v=r(6);let I=(()=>{var e,t,r,I,O;let S=class extends g.AbstractNodeTransformer{constructor(e,t,r,o,n){super(t,r),this.literalObfuscatingReplacerFactory=e,this.stringArrayStorageAnalyzer=o,this.escapeSequenceEncoder=n}getVisitor(e){switch(e){case m.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(h.NodeGuards.isProgramNode(e)&&this.analyzeNode(e),t&&h.NodeGuards.isLiteralNode(e)&&!N.NodeMetadata.isReplacedLiteral(e))return this.transformNode(e,t)}};case m.NodeTransformationStage.Finalizing:return{enter:(e,t)=>{if(t&&h.NodeGuards.isLiteralNode(e))return this.encodeLiteralNodeToEscapeSequence(e,t)}};default:return null}}analyzeNode(e){this.stringArrayStorageAnalyzer.analyze(e)}transformNode(e,t){if(b.NodeLiteralUtils.isProhibitedLiteralNode(e,t))return e;let r;switch(typeof e.value){case"boolean":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.BooleanLiteralObfuscatingReplacer).replace(e);break;case"number":case"bigint":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.NumberLiteralObfuscatingReplacer).replace(e);break;case"string":r=this.literalObfuscatingReplacerFactory(p.LiteralObfuscatingReplacer.StringLiteralObfuscatingReplacer).replace(e);break;default:r=e}return v.NodeUtils.parentizeNode(r,t),r}encodeLiteralNodeToEscapeSequence(e,t){return"string"!=typeof e.value?e:y.NodeFactory.literalNode(this.escapeSequenceEncoder.encode(e.value,this.options.unicodeEscapeSequence))}};return S=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IObfuscatingReplacer)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),i(3,a.inject(s.ServiceIdentifiers.IStringArrayStorageAnalyzer)),i(4,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TLiteralObfuscatingReplacerFactory&&c.TLiteralObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==l.IOptions&&l.IOptions)?r:Object,"function"==typeof(I=void 0!==f.IStringArrayStorageAnalyzer&&f.IStringArrayStorageAnalyzer)?I:Object,"function"==typeof(O=void 0!==d.IEscapeSequenceEncoder&&d.IEscapeSequenceEncoder)?O:Object])],S),S})();t.LiteralTransformer=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NumberLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(40),l=r(8),u=r(38);let f=(()=>{var e;let t=class extends d.AbstractObfuscatingReplacer{constructor(e){super(e),this.numberLiteralCache=new Map}replace(e){const t=e.value;if("number"!=typeof t&&"bigint"!=typeof t)throw new Error("`NumberLiteralObfuscatingReplacer` should accept only literals with `number` and `bigint` value");let r;return this.numberLiteralCache.has(t)?r=this.numberLiteralCache.get(t):(r=u.NumberUtils.isCeil(t)?u.NumberUtils.toHex(t):String(t),this.numberLiteralCache.set(t,r)),l.NodeFactory.literalNode(t,r)}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IOptions&&c.IOptions)?e:Object])],t),t})();t.NumberLiteralObfuscatingReplacer=f},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringLiteralObfuscatingReplacer=void 0;const a=r(0),s=r(1),c=r(2),d=r(37),l=r(70),u=r(28),f=r(40),p=r(19),m=r(8),g=r(38);let y=(()=>{var e,t,r,y;let h=e=class extends f.AbstractObfuscatingReplacer{constructor(e,t,r){super(r),this.nodesCache=new Map,this.stringArrayStorage=e,this.stringArrayStorageAnalyzer=t}static getHexadecimalLiteralNode(e){const t=m.NodeFactory.literalNode(e);return p.NodeMetadata.set(t,{replacedLiteral:!0}),t}static getRc4KeyLiteralNode(e){const t=m.NodeFactory.literalNode(e);return p.NodeMetadata.set(t,{replacedLiteral:!0}),t}initialize(){this.options.shuffleStringArray&&this.stringArrayStorage.shuffleStorage(),this.options.rotateStringArray&&this.stringArrayStorage.rotateStorage()}replace(e){const t=e.value;if("string"!=typeof t)throw new Error("`StringLiteralObfuscatingReplacer` should accept only literals with `string` value");const r=this.stringArrayStorageAnalyzer.getItemDataForLiteralNode(e),o=`${t}-${Boolean(r)}`;if(this.nodesCache.has(o)&&this.options.stringArrayEncoding!==u.StringArrayEncoding.Rc4)return this.nodesCache.get(o);const n=r?this.replaceWithStringArrayCallNode(r):this.replaceWithLiteralNode(t);return this.nodesCache.set(o,n),n}replaceWithLiteralNode(e){return m.NodeFactory.literalNode(e)}replaceWithStringArrayCallNode(t){const{index:r,decodeKey:o}=t,n=g.NumberUtils.toHex(r),i=[e.getHexadecimalLiteralNode(n)];o&&i.push(e.getRc4KeyLiteralNode(o));const a=m.NodeFactory.identifierNode(this.stringArrayStorage.getStorageCallsWrapperName());return m.NodeFactory.callExpressionNode(a,i)}};return o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],h.prototype,"initialize",null),h=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IStringArrayStorage)),i(1,a.inject(s.ServiceIdentifiers.IStringArrayStorageAnalyzer)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==d.IStringArrayStorage&&d.IStringArrayStorage)?t:Object,"function"==typeof(r=void 0!==l.IStringArrayStorageAnalyzer&&l.IStringArrayStorageAnalyzer)?r:Object,"function"==typeof(y=void 0!==c.IOptions&&c.IOptions)?y:Object])],h),h})();t.StringLiteralObfuscatingReplacer=y},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ScopeIdentifiersTransformer=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(51),p=r(2),m=r(3),g=r(71),y=r(39),h=r(10),b=r(11),N=r(4),v=r(19);let I=(()=>{var e,t,r,o;let n=class extends b.AbstractNodeTransformer{constructor(e,t,r,o){super(t,r),this.lexicalScopesWithObjectPatternWithoutDeclarationMap=new Map,this.identifierObfuscatingReplacer=e(y.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),this.scopeIdentifiersTraverser=o}getVisitor(e){switch(e){case h.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&N.NodeGuards.isProgramNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return this.scopeIdentifiersTraverser.traverse(e,t,e=>{const{isGlobalDeclaration:t,variable:r,variableLexicalScopeNode:o}=e;if(!this.options.renameGlobals&&t){if(!r.defs.every(e=>"ImportBinding"===e.type||"CatchClause"===e.type))return}this.transformScopeVariableIdentifiers(r,o,t)}),e}transformScopeVariableIdentifiers(e,t,r){var o;const n=null!==(o=e.identifiers[0])&&void 0!==o?o:null;n&&this.isReplaceableIdentifierNode(n,t,e)&&(this.storeIdentifierName(n,t,r),this.replaceIdentifierName(n,t,e))}storeIdentifierName(e,t,r){r?this.identifierObfuscatingReplacer.storeGlobalName(e,t):this.identifierObfuscatingReplacer.storeLocalName(e,t)}replaceIdentifierName(e,t,r){const o=this.identifierObfuscatingReplacer.replace(e,t);r.identifiers.forEach(e=>{e.name=o.name}),r.references.forEach(t=>{t.identifier.name=e.name})}isReplaceableIdentifierNode(e,t,r){const o=e.parentNode;return!(!o||v.NodeMetadata.isIgnoredNode(e)||this.isProhibitedPropertyNode(e,o)||this.isProhibitedClassDeclarationNameIdentifierNode(r,e,o)||this.isProhibitedExportNamedClassDeclarationIdentifierNode(e,o)||this.isProhibitedExportNamedFunctionDeclarationIdentifierNode(e,o)||this.isProhibitedExportNamedVariableDeclarationIdentifierNode(e,o)||this.isProhibitedImportSpecifierNode(e,o)||this.isProhibitedVariableNameUsedInObjectPatternNode(r,e,t)||N.NodeGuards.isLabelIdentifierNode(e,o))}isProhibitedClassDeclarationNameIdentifierNode(e,t,r){return N.NodeGuards.isClassDeclarationNode(e.scope.block)&&N.NodeGuards.isClassDeclarationNode(r)&&r.id===t}isProhibitedExportNamedClassDeclarationIdentifierNode(e,t){return N.NodeGuards.isClassDeclarationNode(t)&&t.id===e&&!!t.parentNode&&N.NodeGuards.isExportNamedDeclarationNode(t.parentNode)}isProhibitedExportNamedFunctionDeclarationIdentifierNode(e,t){return N.NodeGuards.isFunctionDeclarationNode(t)&&t.id===e&&!!t.parentNode&&N.NodeGuards.isExportNamedDeclarationNode(t.parentNode)}isProhibitedExportNamedVariableDeclarationIdentifierNode(e,t){return N.NodeGuards.isVariableDeclaratorNode(t)&&t.id===e&&!!t.parentNode&&N.NodeGuards.isVariableDeclarationNode(t.parentNode)&&!!t.parentNode.parentNode&&N.NodeGuards.isExportNamedDeclarationNode(t.parentNode.parentNode)}isProhibitedImportSpecifierNode(e,t){return N.NodeGuards.isImportSpecifierNode(t)&&t.imported.name===t.local.name}isProhibitedPropertyNode(e,t){const r=N.NodeGuards.isPropertyNode(t)&&!t.computed&&t.key===e,o=N.NodeGuards.isAssignmentPatternNode(t)&&t.left===e&&!!t.parentNode&&N.NodeGuards.isPropertyNode(t.parentNode)&&t.left===t.parentNode.key;return r||o}isProhibitedVariableNameUsedInObjectPatternNode(e,t,r){let o=this.lexicalScopesWithObjectPatternWithoutDeclarationMap.get(r);if(!1===o)return!1;if(!e.defs.some(e=>"var"===e.kind))return!1;let n=!1;return u.traverse(r,{enter:(e,r)=>{if(N.NodeGuards.isObjectPatternNode(e)&&r&&N.NodeGuards.isAssignmentExpressionNode(r)){o=!0;const r=e.properties;for(const e of r)if(N.NodeGuards.isPropertyNode(e)&&!e.computed&&e.shorthand&&N.NodeGuards.isIdentifierNode(e.key)&&t.name===e.key.name)return n=!0,u.VisitorOption.Break}}}),this.lexicalScopesWithObjectPatternWithoutDeclarationMap.set(r,null!=o&&o),n}};return n=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),c(1,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(2,d.inject(l.ServiceIdentifiers.IOptions)),c(3,d.inject(l.ServiceIdentifiers.IScopeIdentifiersTraverser)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TIdentifierObfuscatingReplacerFactory&&f.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==m.IRandomGenerator&&m.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==p.IOptions&&p.IOptions)?r:Object,"function"==typeof(o=void 0!==g.IScopeIdentifiersTraverser&&g.IScopeIdentifiersTraverser)?o:Object])],n),n})();t.ScopeIdentifiersTransformer=I},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optionsModule=void 0;const o=r(0),n=r(1),i=r(192),a=r(199);t.optionsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IOptions).to(i.Options).inSingletonScope(),e(n.ServiceIdentifiers.IOptionsNormalizer).to(a.OptionsNormalizer).inSingletonScope()})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Options=void 0;const a=r(31),s=r(0),c=r(1),d=r(72),l=r(193),u=r(194),f=r(195),p=r(34),m=r(24),g=r(32),y=r(28),h=r(41),b=r(196),N=r(197);let v=(()=>{var e,t,r,v,I,O,S;let C=e=class{constructor(t,r){Object.assign(this,h.DEFAULT_PRESET,t);const o=d.validateSync(this,e.validatorOptions);if(o.length)throw new ReferenceError(`Validation failed. errors:\n${b.ValidationErrorsFormatter.format(o)}`);Object.assign(this,r.normalize(this))}};return C.validatorOptions={validationError:{target:!1}},o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"compact",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"controlFlowFlattening",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),n("design:type",Number)],C.prototype,"controlFlowFlatteningThreshold",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"deadCodeInjection",void 0),o([d.IsNumber(),n("design:type",Number)],C.prototype,"deadCodeInjectionThreshold",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"debugProtection",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"debugProtectionInterval",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"disableConsoleOutput",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),N.IsAllowedForObfuscationTargets([m.ObfuscationTarget.Browser,m.ObfuscationTarget.BrowserNoEval]),n("design:type",Array)],C.prototype,"domainLock",void 0),o([d.IsIn([p.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator,p.IdentifierNamesGenerator.HexadecimalIdentifierNamesGenerator,p.IdentifierNamesGenerator.MangledIdentifierNamesGenerator]),n("design:type","function"==typeof(t=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?t:Object)],C.prototype,"identifierNamesGenerator",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"identifiersPrefix",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),d.ValidateIf(e=>e.identifierNamesGenerator===p.IdentifierNamesGenerator.DictionaryIdentifierNamesGenerator),d.ArrayNotEmpty(),n("design:type",Array)],C.prototype,"identifiersDictionary",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"inputFileName",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"log",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"renameGlobals",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),n("design:type",Array)],C.prototype,"reservedNames",void 0),o([d.IsArray(),d.ArrayUnique(),d.IsString({each:!0}),n("design:type",Array)],C.prototype,"reservedStrings",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"rotateStringArray",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"selfDefending",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"shuffleStringArray",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.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}),n("design:type",String)],C.prototype,"sourceMapBaseUrl",void 0),o([d.IsString(),n("design:type",String)],C.prototype,"sourceMapFileName",void 0),o([d.IsIn([g.SourceMapMode.Inline,g.SourceMapMode.Separate]),n("design:type","function"==typeof(r=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?r:Object)],C.prototype,"sourceMapMode",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"splitStrings",void 0),o([d.IsNumber(),d.ValidateIf(e=>Boolean(e.splitStrings)),d.Min(1),n("design:type",Number)],C.prototype,"splitStringsChunkLength",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"stringArray",void 0),o([d.IsIn([!0,!1,y.StringArrayEncoding.Base64,y.StringArrayEncoding.Rc4]),n("design:type","function"==typeof(v=void 0!==u.TStringArrayEncoding&&u.TStringArrayEncoding)?v:Object)],C.prototype,"stringArrayEncoding",void 0),o([d.IsNumber(),d.Min(0),d.Max(1),n("design:type",Number)],C.prototype,"stringArrayThreshold",void 0),o([d.IsIn([m.ObfuscationTarget.Browser,m.ObfuscationTarget.BrowserNoEval,m.ObfuscationTarget.Node]),n("design:type","function"==typeof(I=void 0!==a.TypeFromEnum&&a.TypeFromEnum)?I:Object)],C.prototype,"target",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"transformObjectKeys",void 0),o([d.IsBoolean(),n("design:type",Boolean)],C.prototype,"unicodeEscapeSequence",void 0),C=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.TInputOptions)),i(1,s.inject(c.ServiceIdentifiers.IOptionsNormalizer)),n("design:paramtypes",["function"==typeof(O=void 0!==l.TInputOptions&&l.TInputOptions)?O:Object,"function"==typeof(S=void 0!==f.IOptionsNormalizer&&f.IOptionsNormalizer)?S:Object])],C),C})();t.Options=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValidationErrorsFormatter=void 0;class o{static format(e){return e.reduce((e,t)=>[...e,o.formatWithNestedConstraints(t)],[]).join("\n")}static formatWithNestedConstraints(e){const t=e.constraints;return t?`${`\`${e.property}\` errors:\n`}${Object.keys(t).map(e=>` - ${t[e]}\n`).join()}`:`\`${e.property}\` error\n`}}t.ValidationErrorsFormatter=o},function(e,t,r){"use strict";var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IsAllowedForObfuscationTargets=void 0;const n=r(72),i=o(r(198)),a=r(42),s=r(41);t.IsAllowedForObfuscationTargets=function(e,t){return(r,o)=>{n.registerDecorator({propertyName:o,constraints:[e],name:"IsAllowedForObfuscationTargets",options:t,target:r.constructor,validator:{validate(t,r){const n=r.object,a=s.DEFAULT_PRESET[o];return i.default(t,a)||e.includes(n.target)},defaultMessage:t=>`This option allowed only for obfuscation targets: ${e.join(`${a.StringSeparator.Comma} `)}`}})}}},function(e,t){e.exports=require("fast-deep-equal")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsNormalizer=void 0;const n=r(0),i=r(200),a=r(201),s=r(202),c=r(203),d=r(204),l=r(205),u=r(206),f=r(207),p=r(208),m=r(209),g=r(210),y=r(211),h=r(212);let b=(()=>{var e;let t=e=class{normalize(t){let r=Object.assign({},t);for(const t of e.normalizerRules)r=t(r);return r}};return t.normalizerRules=[i.ControlFlowFlatteningThresholdRule,a.DeadCodeInjectionRule,s.DeadCodeInjectionThresholdRule,c.DomainLockRule,d.InputFileNameRule,l.SeedRule,u.SelfDefendingRule,f.SourceMapBaseUrlRule,p.SourceMapFileNameRule,m.SplitStringsChunkLengthRule,g.StringArrayRule,y.StringArrayEncodingRule,h.StringArrayThresholdRule],t=e=o([n.injectable()],t),t})();t.OptionsNormalizer=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowFlatteningThresholdRule=void 0,t.ControlFlowFlatteningThresholdRule=e=>(0===e.controlFlowFlatteningThreshold&&(e=Object.assign(Object.assign({},e),{controlFlowFlattening:!1,controlFlowFlatteningThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionRule=void 0;const o=r(41);t.DeadCodeInjectionRule=e=>(e.deadCodeInjection&&((e=Object.assign(Object.assign({},e),{deadCodeInjection:!0,stringArray:!0})).stringArrayThreshold||(e=Object.assign(Object.assign({},e),{stringArray:!0,stringArrayThreshold:o.DEFAULT_PRESET.stringArrayThreshold}))),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeadCodeInjectionThresholdRule=void 0,t.DeadCodeInjectionThresholdRule=e=>(0===e.deadCodeInjectionThreshold&&(e=Object.assign(Object.assign({},e),{deadCodeInjection:!1,deadCodeInjectionThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainLockRule=void 0;const o=r(26);t.DomainLockRule=e=>{if(e.domainLock.length){const t=[];for(const r of e.domainLock)t.push(o.Utils.extractDomainFrom(r));e=Object.assign(Object.assign({},e),{domainLock:t})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InputFileNameRule=void 0;const o=r(42);t.InputFileNameRule=e=>{let{inputFileName:t}=e;return t&&(t=t.replace(/^\/+/,"").split(o.StringSeparator.Dot).slice(0,-1).join(o.StringSeparator.Dot)||t,e=Object.assign(Object.assign({},e),{inputFileName:`${t}.js`})),e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeedRule=void 0,t.SeedRule=e=>{if(e.seed)return Object.assign(Object.assign({},e),{seed:e.seed});return Object.assign(Object.assign({},e),{seed:(t=0,r=999999999,Math.floor(Math.random()*(r-t+1)+t))});var t,r}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelfDefendingRule=void 0,t.SelfDefendingRule=e=>(e.selfDefending&&(e=Object.assign(Object.assign({},e),{compact:!0,selfDefending:!0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapBaseUrlRule=void 0,t.SourceMapBaseUrlRule=e=>{const{sourceMapBaseUrl:t}=e;return e.sourceMapFileName?(t&&!t.endsWith("/")&&(e=Object.assign(Object.assign({},e),{sourceMapBaseUrl:`${t}/`})),e):e=Object.assign(Object.assign({},e),{sourceMapBaseUrl:""})}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceMapFileNameRule=void 0;const o=r(42);t.SourceMapFileNameRule=e=>{let{sourceMapFileName:t}=e;if(t){t=t.replace(/^\/+/,"").replace(/(?:\.js)?(?:\.map)?$/,"");let r=t.split(o.StringSeparator.Dot);const n=r.length,i=r[n-1];n>1&&i.length<=3&&(r=r.slice(0,-1)),t=r.join(o.StringSeparator.Dot),e=Object.assign(Object.assign({},e),{sourceMapFileName:`${t}.js.map`})}return e}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SplitStringsChunkLengthRule=void 0,t.SplitStringsChunkLengthRule=e=>e=0===e.splitStringsChunkLength?Object.assign(Object.assign({},e),{splitStrings:!1,splitStringsChunkLength:0}):Object.assign(Object.assign({},e),{splitStringsChunkLength:Math.floor(e.splitStringsChunkLength)})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayRule=void 0,t.StringArrayRule=e=>(e.stringArray||(e=Object.assign(Object.assign({},e),{rotateStringArray:!1,shuffleStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayEncodingRule=void 0;const o=r(28);t.StringArrayEncodingRule=e=>(!0===e.stringArrayEncoding&&(e=Object.assign(Object.assign({},e),{stringArrayEncoding:o.StringArrayEncoding.Base64})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayThresholdRule=void 0,t.StringArrayThresholdRule=e=>(0===e.stringArrayThreshold&&(e=Object.assign(Object.assign({},e),{rotateStringArray:!1,stringArray:!1,stringArrayEncoding:!1,stringArrayThreshold:0})),e)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preparingTransformersModule=void 0;const o=r(16),n=r(0),i=r(1),a=r(13),s=r(73),c=r(214),d=r(68),l=r(215),u=r(219),f=r(221),p=r(222),m=r(224),g=r(225),y=r(226);t.preparingTransformersModule=new n.ContainerModule(e=>{e(i.ServiceIdentifiers.INodeTransformer).to(l.CustomCodeHelpersTransformer).whenTargetNamed(a.NodeTransformer.CustomCodeHelpersTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(u.EvalCallExpressionTransformer).whenTargetNamed(a.NodeTransformer.EvalCallExpressionTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(f.MetadataTransformer).whenTargetNamed(a.NodeTransformer.MetadataTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(p.ObfuscatingGuardsTransformer).whenTargetNamed(a.NodeTransformer.ObfuscatingGuardsTransformer),e(i.ServiceIdentifiers.INodeTransformer).to(m.ParentificationTransformer).whenTargetNamed(a.NodeTransformer.ParentificationTransformer),e(i.ServiceIdentifiers.INodeGuard).to(c.BlackListObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.BlackListObfuscatingGuard),e(i.ServiceIdentifiers.INodeGuard).to(d.ConditionalCommentObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ConditionalCommentObfuscatingGuard),e(i.ServiceIdentifiers.INodeGuard).to(g.ReservedStringObfuscatingGuard).inSingletonScope().whenTargetNamed(s.ObfuscatingGuard.ReservedStringObfuscatingGuard),e(i.ServiceIdentifiers.INodeTransformer).to(y.VariablePreserveTransformer).whenTargetNamed(a.NodeTransformer.VariablePreserveTransformer),e(i.ServiceIdentifiers.Factory__INodeGuard).toFactory(o.InversifyContainerFacade.getCacheFactory(i.ServiceIdentifiers.INodeGuard))})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,"__esModule",{value:!0}),t.BlackListObfuscatingGuard=void 0;const i=r(0),a=r(4);let s=(()=>{var e;let t=e=class{constructor(){this.blackListGuardsLength=e.blackListGuards.length}check(t){for(let r=0;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelpersTransformer=void 0;const a=r(0),s=r(1),c=r(216),d=r(217),l=r(2),u=r(3),f=r(218),p=r(67),m=r(13),g=r(25),y=r(10),h=r(11),b=r(4);let N=(()=>{var e,t,r,N,v,I;let O=class extends h.AbstractNodeTransformer{constructor(e,t,r,o,n,i){super(n,i),this.runAfter=[m.NodeTransformer.ParentificationTransformer,m.NodeTransformer.VariablePreserveTransformer],this.callsGraphData=[],this.callsGraphAnalyzer=e,this.prevailingKindOfVariablesAnalyzer=t,this.obfuscationEventEmitter=r,this.customCodeHelperGroupStorage=o}getVisitor(e){switch(e){case y.NodeTransformationStage.Preparing:return{leave:(e,t)=>{if(b.NodeGuards.isProgramNode(e))return this.analyzeNode(e,t),this.appendCustomNodesBeforeObfuscation(e,t),this.transformNode(e,t)}};case y.NodeTransformationStage.Finalizing:return{leave:(e,t)=>{b.NodeGuards.isProgramNode(e)&&this.appendCustomNodesAfterObfuscation(e,t)}};default:return null}}analyzeNode(e,t){this.callsGraphData=this.callsGraphAnalyzer.analyze(e),this.prevailingKindOfVariablesAnalyzer.analyze(e)}transformNode(e,t){return e}appendCustomNodesBeforeObfuscation(e,t){this.customCodeHelperGroupStorage.getStorage().forEach(e=>{e.initialize(),this.obfuscationEventEmitter.once(e.getAppendEvent(),e.appendNodes.bind(e))}),this.obfuscationEventEmitter.emit(g.ObfuscationEvent.BeforeObfuscation,e,this.callsGraphData)}appendCustomNodesAfterObfuscation(e,t){this.obfuscationEventEmitter.emit(g.ObfuscationEvent.AfterObfuscation,e,this.callsGraphData)}};return O=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ICallsGraphAnalyzer)),i(1,a.inject(s.ServiceIdentifiers.IPrevailingKindOfVariablesAnalyzer)),i(2,a.inject(s.ServiceIdentifiers.IObfuscationEventEmitter)),i(3,a.inject(s.ServiceIdentifiers.TCustomNodeGroupStorage)),i(4,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(5,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==f.ICallsGraphAnalyzer&&f.ICallsGraphAnalyzer)?e:Object,"function"==typeof(t=void 0!==p.IPrevailingKindOfVariablesAnalyzer&&p.IPrevailingKindOfVariablesAnalyzer)?t:Object,"function"==typeof(r=void 0!==d.IObfuscationEventEmitter&&d.IObfuscationEventEmitter)?r:Object,"function"==typeof(N=void 0!==c.TCustomCodeHelperGroupStorage&&c.TCustomCodeHelperGroupStorage)?N:Object,"function"==typeof(v=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?v:Object,"function"==typeof(I=void 0!==l.IOptions&&l.IOptions)?I:Object])],O),O})();t.CustomCodeHelpersTransformer=N},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EvalCallExpressionTransformer=void 0;const s=r(0),c=r(1),d=a(r(220)),l=r(2),u=r(3),f=r(13),p=r(10),m=r(11),g=r(8),y=r(4),h=r(6);let b=(()=>{var e,t,r;let a=e=class extends m.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[f.NodeTransformer.ParentificationTransformer,f.NodeTransformer.VariablePreserveTransformer],this.evalRootAstHostNodeSet=new Set}static extractEvalStringFromCallExpressionArgument(t){return y.NodeGuards.isLiteralNode(t)?e.extractEvalStringFromLiteralNode(t):y.NodeGuards.isTemplateLiteralNode(t)?e.extractEvalStringFromTemplateLiteralNode(t):null}static extractEvalStringFromLiteralNode(e){return"string"==typeof e.value?e.value:null}static extractEvalStringFromTemplateLiteralNode(e){const t=e.quasis;return 1!==t.length||e.expressions.length?null:t[0].value.cooked}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:return{enter:(e,t)=>{if(t&&y.NodeGuards.isCallExpressionNode(e)&&y.NodeGuards.isIdentifierNode(e.callee)&&"eval"===e.callee.name)return this.transformNode(e,t)}};case p.NodeTransformationStage.Finalizing:return this.evalRootAstHostNodeSet.size?{leave:(e,t)=>{if(t&&this.isEvalRootAstHostNode(e))return this.restoreNode(e,t)}}:null;default:return null}}transformNode(t,r){const o=t.arguments[0];if(!o)return t;const n=e.extractEvalStringFromCallExpressionArgument(o);if(!n)return t;let i;try{i=h.NodeUtils.convertCodeToStructure(n)}catch(e){return t}const a=g.NodeFactory.functionExpressionNode([],g.NodeFactory.blockStatementNode(i));return h.NodeUtils.parentizeAst(a),h.NodeUtils.parentizeNode(a,r),this.evalRootAstHostNodeSet.add(a),a}restoreNode(e,t){const r=e.body.body,o=h.NodeUtils.convertStructureToCode(r);return g.NodeFactory.callExpressionNode(g.NodeFactory.identifierNode("eval"),[g.NodeFactory.literalNode(d.default(o))])}isEvalRootAstHostNode(e){return y.NodeGuards.isFunctionExpressionNode(e)&&this.evalRootAstHostNodeSet.has(e)}};return a=e=o([s.injectable(),i(0,s.inject(c.ServiceIdentifiers.IRandomGenerator)),i(1,s.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==u.IRandomGenerator&&u.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==l.IOptions&&l.IOptions)?r:Object])],a),a})();t.EvalCallExpressionTransformer=b},function(e,t){e.exports=require("js-string-escape")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MetadataTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(13),u=r(10),f=r(11),p=r(4),m=r(19);let g=(()=>{var e,t;let r=class extends f.AbstractNodeTransformer{constructor(e,t){super(e,t),this.runAfter=[l.NodeTransformer.ParentificationTransformer,l.NodeTransformer.VariablePreserveTransformer]}getVisitor(e){switch(e){case u.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){return m.NodeMetadata.set(e,{ignoredNode:!1}),p.NodeGuards.isLiteralNode(e)&&m.NodeMetadata.set(e,{replacedLiteral:!1}),e}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.MetadataTransformer=g},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatingGuardsTransformer=void 0;const a=r(0),s=r(1),c=r(223),d=r(2),l=r(3),u=r(13),f=r(73),p=r(10),m=r(11),g=r(4),y=r(19);let h=(()=>{var e,t,r,h;let b=e=class extends m.AbstractNodeTransformer{constructor(t,r,o){super(r,o),this.runAfter=[u.NodeTransformer.ParentificationTransformer,u.NodeTransformer.VariablePreserveTransformer],this.obfuscatingGuards=e.obfuscatingGuardsList.map(t)}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){const r=this.obfuscatingGuards.every(t=>t.check(e));return y.NodeMetadata.set(e,{ignoredNode:!(g.NodeGuards.isProgramNode(e)||r)}),e}};return b.obfuscatingGuardsList=[f.ObfuscatingGuard.BlackListObfuscatingGuard,f.ObfuscatingGuard.ConditionalCommentObfuscatingGuard,f.ObfuscatingGuard.ReservedStringObfuscatingGuard],b=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__INodeGuard)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TObfuscatingGuardFactory&&c.TObfuscatingGuardFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(h=void 0!==d.IOptions&&d.IOptions)?h:Object])],b),b})();t.ObfuscatingGuardsTransformer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ParentificationTransformer=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(10),u=r(11),f=r(6);let p=(()=>{var e,t;let r=class extends u.AbstractNodeTransformer{constructor(e,t){super(e,t)}getVisitor(e){switch(e){case l.NodeTransformationStage.Preparing:return{enter:(e,t)=>this.transformNode(e,t)};default:return null}}transformNode(e,t){return f.NodeUtils.parentizeNode(e,t)}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ParentificationTransformer=p},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ReservedStringObfuscatingGuard=void 0;const a=r(0),s=r(2),c=r(1),d=r(4);let l=(()=>{var e;let t=class{constructor(e){this.options=e}check(e){return!this.options.reservedStrings.length||!d.NodeGuards.isLiteralNode(e)||"string"!=typeof e.value||!this.isReservedString(e.value)}isReservedString(e){return this.options.reservedStrings.some(t=>null!==new RegExp(t,"g").exec(e))}};return t=o([a.injectable(),i(0,a.inject(c.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==s.IOptions&&s.IOptions)?e:Object])],t),t})();t.ReservedStringObfuscatingGuard=l},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.VariablePreserveTransformer=void 0;const a=r(0),s=r(51),c=r(2),d=r(3),l=r(71),u=r(13),f=r(1),p=r(10),m=r(11),g=r(39),y=r(4);let h=(()=>{var e,t,r,h;let b=class extends m.AbstractNodeTransformer{constructor(e,t,r,o){super(t,r),this.runAfter=[u.NodeTransformer.ParentificationTransformer],this.identifierObfuscatingReplacer=e(g.IdentifierObfuscatingReplacer.BaseIdentifierObfuscatingReplacer),this.scopeIdentifiersTraverser=o,this.preserveScopeVariableIdentifiers=this.preserveScopeVariableIdentifiers.bind(this)}getVisitor(e){switch(e){case p.NodeTransformationStage.Preparing:case p.NodeTransformationStage.Converting:case p.NodeTransformationStage.Obfuscating:return{enter:(e,t)=>{if(t&&y.NodeGuards.isProgramNode(e))return this.transformNode(e,t)}};default:return null}}transformNode(e,t){return this.scopeIdentifiersTraverser.traverse(e,t,this.preserveScopeVariableIdentifiers),e}preserveScopeVariableIdentifiers(e){const{isGlobalDeclaration:t,isBubblingDeclaration:r,variable:o,variableScope:n}=e;for(const e of o.identifiers)t||r?this.preserveIdentifierNameForRootLexicalScope(e):this.preserveIdentifierNameForLexicalScope(e,n)}preserveIdentifierNameForRootLexicalScope(e){this.identifierObfuscatingReplacer.preserveName(e)}preserveIdentifierNameForLexicalScope(e,t){const r=y.NodeGuards.isNodeWithLexicalScope(t.block)?t.block:null;r&&this.identifierObfuscatingReplacer.preserveNameForLexicalScope(e,r)}};return b=o([a.injectable(),i(0,a.inject(f.ServiceIdentifiers.Factory__IIdentifierObfuscatingReplacer)),i(1,a.inject(f.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(f.ServiceIdentifiers.IOptions)),i(3,a.inject(f.ServiceIdentifiers.IScopeIdentifiersTraverser)),n("design:paramtypes",["function"==typeof(e=void 0!==s.TIdentifierObfuscatingReplacerFactory&&s.TIdentifierObfuscatingReplacerFactory)?e:Object,"function"==typeof(t=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?t:Object,"function"==typeof(r=void 0!==c.IOptions&&c.IOptions)?r:Object,"function"==typeof(h=void 0!==l.IScopeIdentifiersTraverser&&l.IScopeIdentifiersTraverser)?h:Object])],b),b})();t.VariablePreserveTransformer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.storagesModule=void 0;const o=r(0),n=r(1),i=r(228),a=r(229),s=r(231);t.storagesModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.TCustomNodeGroupStorage).to(a.CustomCodeHelperGroupStorage).inSingletonScope(),e(n.ServiceIdentifiers.IStringArrayStorage).to(s.StringArrayStorage).inSingletonScope(),e(n.ServiceIdentifiers.Newable__TControlFlowStorage).toConstructor(i.ControlFlowStorage),e(n.ServiceIdentifiers.Factory__TControlFlowStorage).toFactory(e=>()=>{const t=new(e.container.get(n.ServiceIdentifiers.Newable__TControlFlowStorage))(e.container.get(n.ServiceIdentifiers.IRandomGenerator),e.container.get(n.ServiceIdentifiers.IOptions));return t.initialize(),t})})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ControlFlowStorage=void 0;const a=r(0),s=r(1),c=r(2),d=r(3),l=r(52);let u=(()=>{var e,t;let r=class extends l.MapStorage{constructor(e,t){super(e,t)}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==d.IRandomGenerator&&d.IRandomGenerator)?e:Object,"function"==typeof(t=void 0!==c.IOptions&&c.IOptions)?t:Object])],r),r})();t.ControlFlowStorage=u},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CustomCodeHelperGroupStorage=void 0;const a=r(0),s=r(1),c=r(230),d=r(2),l=r(3),u=r(66),f=r(52);let p=(()=>{var e,t,r,p;let m=e=class extends f.MapStorage{constructor(e,t,r){super(t,r),this.customCodeHelperGroupFactory=e}initialize(){super.initialize(),e.customCodeHelperGroupsList.forEach(e=>{const t=this.customCodeHelperGroupFactory(e);this.storage.set(e,t)})}};return m.customCodeHelperGroupsList=[u.CustomCodeHelperGroup.ConsoleOutput,u.CustomCodeHelperGroup.DebugProtection,u.CustomCodeHelperGroup.DomainLock,u.CustomCodeHelperGroup.SelfDefending,u.CustomCodeHelperGroup.StringArray],o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],m.prototype,"initialize",null),m=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICustomCodeHelperGroup)),i(1,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(2,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TCustomCodeHelperGroupFactory&&c.TCustomCodeHelperGroupFactory)?t:Object,"function"==typeof(r=void 0!==l.IRandomGenerator&&l.IRandomGenerator)?r:Object,"function"==typeof(p=void 0!==d.IOptions&&d.IOptions)?p:Object])],m),m})();t.CustomCodeHelperGroupStorage=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.StringArrayStorage=void 0;const a=r(0),s=r(1),c=r(5),d=r(36),l=r(49),u=r(33),f=r(2),p=r(3),m=r(28),g=r(52);let y=(()=>{var e,t,r,y,h,b,N;let v=e=class extends g.MapStorage{constructor(t,r,o,n,i,a){super(o,n),this.rc4EncodedValuesSourcesCache=new Map,this.rotationAmount=0,this.identifierNamesGenerator=t(n),this.arrayUtils=r,this.cryptUtils=i,this.escapeSequenceEncoder=a,this.rc4Keys=this.randomGenerator.getRandomGenerator().n(()=>this.randomGenerator.getRandomGenerator().string({length:e.rc4KeyLength}),e.rc4KeysCount)}initialize(){super.initialize(),this.rotationAmount=this.options.rotateStringArray?this.randomGenerator.getRandomInteger(e.minimumRotationAmount,e.maximumRotationAmount):0}get(e){return this.getOrSetIfDoesNotExist(e)}getRotationAmount(){return this.rotationAmount}getStorageName(){return this.getStorageId()}getStorageId(){return this.stringArrayStorageName||(this.stringArrayStorageName=this.identifierNamesGenerator.generateForGlobalScope(e.stringArrayNameLength)),this.stringArrayStorageName}getStorageCallsWrapperName(){return this.stringArrayStorageCallsWrapperName||(this.stringArrayStorageCallsWrapperName=this.identifierNamesGenerator.generateForGlobalScope(e.stringArrayNameLength)),this.stringArrayStorageCallsWrapperName}rotateStorage(){this.getLength()&&(this.storage=new Map(this.arrayUtils.rotate(Array.from(this.storage.entries()),this.rotationAmount)))}shuffleStorage(){this.storage=new Map(this.arrayUtils.shuffle(Array.from(this.storage.entries())).map(([e,t],r)=>(t.index=r,[e,t])).sort(([,e],[,t])=>e.index-t.index))}toString(){return Array.from(this.storage.values()).map(e=>`'${this.escapeSequenceEncoder.encode(e.encodedValue,this.options.unicodeEscapeSequence)}'`).toString()}getOrSetIfDoesNotExist(e){const{encodedValue:t,decodeKey:r}=this.getEncodedValue(e),o=this.storage.get(t);if(o)return o;const n={encodedValue:t,decodeKey:r,value:e,index:this.getLength()};return this.storage.set(t,n),n}getEncodedValue(e){var t;switch(this.options.stringArrayEncoding){case m.StringArrayEncoding.Rc4:{const r=this.randomGenerator.getRandomGenerator().pickone(this.rc4Keys),o=this.cryptUtils.btoa(this.cryptUtils.rc4(e,r)),n=null!==(t=this.rc4EncodedValuesSourcesCache.get(o))&&void 0!==t?t:[];let i=n.length;return(!i||!n.includes(e))&&(n.push(e),i++),this.rc4EncodedValuesSourcesCache.set(o,n),i>1?this.getEncodedValue(e):{encodedValue:o,decodeKey:r}}case m.StringArrayEncoding.Base64:{const t=null;return{encodedValue:this.cryptUtils.btoa(e),decodeKey:t}}default:return{encodedValue:e,decodeKey:null}}}};return v.minimumRotationAmount=100,v.maximumRotationAmount=500,v.rc4KeyLength=4,v.rc4KeysCount=50,v.stringArrayNameLength=4,o([a.postConstruct(),n("design:type",Function),n("design:paramtypes",[]),n("design:returntype",void 0)],v.prototype,"initialize",null),v=e=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__IIdentifierNamesGenerator)),i(1,a.inject(s.ServiceIdentifiers.IArrayUtils)),i(2,a.inject(s.ServiceIdentifiers.IRandomGenerator)),i(3,a.inject(s.ServiceIdentifiers.IOptions)),i(4,a.inject(s.ServiceIdentifiers.ICryptUtils)),i(5,a.inject(s.ServiceIdentifiers.IEscapeSequenceEncoder)),n("design:paramtypes",["function"==typeof(t=void 0!==c.TIdentifierNamesGeneratorFactory&&c.TIdentifierNamesGeneratorFactory)?t:Object,"function"==typeof(r=void 0!==d.IArrayUtils&&d.IArrayUtils)?r:Object,"function"==typeof(y=void 0!==p.IRandomGenerator&&p.IRandomGenerator)?y:Object,"function"==typeof(h=void 0!==f.IOptions&&f.IOptions)?h:Object,"function"==typeof(b=void 0!==l.ICryptUtils&&l.ICryptUtils)?b:Object,"function"==typeof(N=void 0!==u.IEscapeSequenceEncoder&&u.IEscapeSequenceEncoder)?N:Object])],v),v})();t.StringArrayStorage=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.utilsModule=void 0;const o=r(0),n=r(1),i=r(233),a=r(234),s=r(238),c=r(239),d=r(74);t.utilsModule=new o.ContainerModule(e=>{e(n.ServiceIdentifiers.IArrayUtils).to(i.ArrayUtils).inSingletonScope(),e(n.ServiceIdentifiers.IRandomGenerator).to(d.RandomGenerator).inSingletonScope(),e(n.ServiceIdentifiers.ICryptUtils).to(a.CryptUtils).inSingletonScope(),e(n.ServiceIdentifiers.IEscapeSequenceEncoder).to(s.EscapeSequenceEncoder).inSingletonScope(),e(n.ServiceIdentifiers.ILevelledTopologicalSorter).to(c.LevelledTopologicalSorter)})},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayUtils=void 0;const a=r(0),s=r(1),c=r(3);let d=(()=>{var e;let t=class{constructor(e){this.randomGenerator=e}createWithRange(e){const t=[];for(let r=0;rn&&(o=i,n=e),r[i]=e}return o}rotate(e,t){if(!e.length)throw new ReferenceError("Cannot rotate empty array.");if(t<=0)return e;const r=e;let o;for(;t--;)o=r.pop(),o&&r.unshift(o);return r}shuffle(e){const t=[...e];for(let e=t.length;e;e--){const r=Math.floor(this.randomGenerator.getMathRandom()*e);[t[e-1],t[r]]=[t[r],t[e-1]]}return t}};return t=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.IRandomGenerator)),n("design:paramtypes",["function"==typeof(e=void 0!==c.IRandomGenerator&&c.IRandomGenerator)?e:Object])],t),t})();t.ArrayUtils=d},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CryptUtils=void 0;const a=r(0),s=r(1),c=r(3),d=r(74),l=r(26);let u=(()=>{var e;let t=class{constructor(e){this.randomGenerator=e}btoa(e){let t="";e=encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(e,t)=>String.fromCharCode(parseInt(`${l.Utils.hexadecimalPrefix}${t}`,16)));for(let r,o,n=0,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.charAt(0|n)||(i="=",n%1);t+=i.charAt(63&r>>8-n%1*8)){if(o=e.charCodeAt(n+=3/4),o>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");r=r<<8|o}return t}hideString(e,t){let r=this.randomGenerator.getRandomGenerator().string({length:t,pool:d.RandomGenerator.randomGeneratorPool}).replace(new RegExp(`[${o=e,o.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}]`,"g"),"");var o;const n=r.split("");return this.randomGenerator.getRandomGenerator().shuffle(n),r=n.join(""),[((e,t)=>{let r=-1,o=-1,n="";for(;r=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceEncoder=void 0;const n=r(0);let i=(()=>{let e=class{constructor(){this.stringsCache=new Map}encode(e,t){const r=`${e}-${String(t)}`;if(this.stringsCache.has(r))return this.stringsCache.get(r);const o=new RegExp("[\\s\\S]","g"),n=new RegExp("['\"\\\\\\s]"),i=new RegExp("[\\x00-\\x7F]");let a,s;const c=e.replace(o,e=>t||n.exec(e)?(i.exec(e)?(a="\\x",s="00"):(a="\\u",s="0000"),`${a}${(s+e.charCodeAt(0).toString(16)).slice(-s.length)}`):e);return this.stringsCache.set(r,c),this.stringsCache.set(`${c}-${String(t)}`,c),c}};return e=o([n.injectable()],e),e})();t.EscapeSequenceEncoder=i},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};Object.defineProperty(t,"__esModule",{value:!0}),t.LevelledTopologicalSorter=void 0;const n=r(0);let i=(()=>{let e=class{constructor(){this.graph=new Map}add(e,t=null){return null!==t?this.link(e,t):this.register(e)}sort(){const e=Array.from(this.graph.keys()),t=[],r={};for(const o of e)void 0===r[o]&&this.visit(t,r,o);return t}sortByGroups(){this.sort();const e=[];for(;this.hasNodes();){const t=this.findRootNodes();e.push(t);for(const e of t)this.delete(e)}return e}delete(e){if(this.getPrecedents(e).length)throw new Error(`Unable to remove non-root node: ${e}`);this.graph.delete(e);const t=Array.from(this.graph.values());for(const r of t){for(let t=r.length-1;t>=0;t-=1)r[t]===e&&r.splice(t,1)}}findRootNodes(){const e=Array.from(this.graph.keys()),t=[];for(const r of e)this.hasPrecedents(r)||t.push(r);return t}getPrecedents(e){const t=this.graph.get(e);if(!t)throw new Error(`Unknown node: ${e}`);return t}hasNodes(){return this.graph.size>0}hasPrecedents(e){return this.getPrecedents(e).length>0}link(e,t){this.register(e),this.register(t);const r=this.graph.get(t);return r&&!r.includes(e)&&r.push(e),this}register(e){return this.graph.has(e)||this.graph.set(e,[]),this}visit(e,t,r){const o=t[r];if("visiting"===o)throw new Error(`Detected cycle involving node: ${r}`);if(o)return;t[r]="visiting";const n=this.getPrecedents(r);for(const r of n)this.visit(e,t,r);t[r]="ok",e.push(r)}};return e=o([n.injectable()],e),e})();t.LevelledTopologicalSorter=i},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CodeTransformersRunner=void 0;const a=r(0),s=r(1),c=r(241),d=r(75);let l=(()=>{var e,t;let r=class{constructor(e,t){this.codeTransformerFactory=e,this.codeTransformerNamesGroupsBuilder=t}transform(e,t,r){if(!t.length)return e;const o=this.buildNormalizedCodeTransformers(t,r),n=this.codeTransformerNamesGroupsBuilder.build(o);for(const t of n)for(const n of t){e=o[n].transformCode(e,r)}return e}buildNormalizedCodeTransformers(e,t){return e.reduce((e,t)=>{const r=this.codeTransformerFactory(t);return Object.assign(Object.assign({},e),{[t]:r})},{})}};return r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.Factory__ICodeTransformer)),i(1,a.inject(s.ServiceIdentifiers.ICodeTransformerNamesGroupsBuilder)),n("design:paramtypes",["function"==typeof(e=void 0!==c.TCodeTransformerFactory&&c.TCodeTransformerFactory)?e:Object,"function"==typeof(t=void 0!==d.ITransformerNamesGroupsBuilder&&d.ITransformerNamesGroupsBuilder)?t:Object])],r),r})();t.CodeTransformersRunner=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.JavaScriptObfuscator=void 0;const d=r(0),l=r(1),u=a(r(47)),f=r(243),p=r(244),m=r(245),g=r(2),y=r(3),h=r(62),b=r(55),N=r(57),v=r(246),I=r(13),O=r(10),S=r(44),C=r(60),j=r(4),_=r(26);let R=(()=>{var e,t,r,o,n,a,R;let F=e=class{constructor(e,t,r,o,n,i){this.codeTransformersRunner=e,this.nodeTransformersRunner=t,this.randomGenerator=r,this.obfuscatedCodeFactory=o,this.logger=n,this.options=i}obfuscate(e){"string"!=typeof e&&(e="");const t=Date.now();this.logger.info(v.LoggingMessage.Version,_.Utils.buildVersionMessage("0.28.3",1590871705560)),this.logger.info(v.LoggingMessage.ObfuscationStarted),this.logger.info(v.LoggingMessage.RandomGeneratorSeed,this.randomGenerator.getInputSeed()),e=this.runCodeTransformationStage(e,N.CodeTransformationStage.PreparingTransformers);const r=this.parseCode(e),o=this.transformAstTree(r),n=this.generateCode(e,o);n.code=this.runCodeTransformationStage(n.code,N.CodeTransformationStage.FinalizingTransformers);const i=(Date.now()-t)/1e3;return this.logger.success(v.LoggingMessage.ObfuscationCompleted,i),this.getObfuscatedCode(n)}parseCode(t){return C.ASTParserFacade.parse(t,e.parseOptions)}transformAstTree(e){return e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Initializing),!j.NodeGuards.isProgramNode(e)||e.body.length||e.leadingComments||e.trailingComments?(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Preparing),this.options.deadCodeInjection&&(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.DeadCodeInjection)),this.options.controlFlowFlattening&&(e=this.runNodeTransformationStage(e,O.NodeTransformationStage.ControlFlowFlattening)),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Converting),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Obfuscating),e=this.runNodeTransformationStage(e,O.NodeTransformationStage.Finalizing)):(this.logger.warn(v.LoggingMessage.EmptySourceCode),e)}generateCode(t,r){const o=Object.assign({},e.escodegenParams);this.options.sourceMap&&(o.sourceMap=this.options.inputFileName||"sourceMap",o.sourceContent=t);const n=u.generate(r,Object.assign(Object.assign({},o),{format:{compact:this.options.compact}}));return n.map=n.map?n.map.toString():"",n}getObfuscatedCode(e){return this.obfuscatedCodeFactory(e.code,e.map)}runCodeTransformationStage(t,r){return this.logger.info(v.LoggingMessage.CodeTransformationStage,r),this.codeTransformersRunner.transform(t,e.codeTransformersList,r)}runNodeTransformationStage(t,r){return this.logger.info(v.LoggingMessage.NodeTransformationStage,r),this.nodeTransformersRunner.transform(t,e.nodeTransformersList,r)}};return F.parseOptions={ecmaVersion:S.ecmaVersion,allowHashBang:!0,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,locations:!0,ranges:!0},F.escodegenParams={comment:!0,verbatim:"x-verbatim-property",sourceMapWithCode:!0},F.codeTransformersList=[b.CodeTransformer.HashbangOperatorTransformer],F.nodeTransformersList=[I.NodeTransformer.BlockStatementControlFlowTransformer,I.NodeTransformer.CommentsTransformer,I.NodeTransformer.CustomCodeHelpersTransformer,I.NodeTransformer.DeadCodeInjectionTransformer,I.NodeTransformer.EvalCallExpressionTransformer,I.NodeTransformer.FunctionControlFlowTransformer,I.NodeTransformer.LabeledStatementTransformer,I.NodeTransformer.LiteralTransformer,I.NodeTransformer.MemberExpressionTransformer,I.NodeTransformer.MetadataTransformer,I.NodeTransformer.MethodDefinitionTransformer,I.NodeTransformer.ObfuscatingGuardsTransformer,I.NodeTransformer.ObjectExpressionKeysTransformer,I.NodeTransformer.ObjectExpressionTransformer,I.NodeTransformer.ParentificationTransformer,I.NodeTransformer.ScopeIdentifiersTransformer,I.NodeTransformer.SplitStringTransformer,I.NodeTransformer.TemplateLiteralTransformer,I.NodeTransformer.VariablePreserveTransformer],F=e=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.ICodeTransformersRunner)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformersRunner)),c(2,d.inject(l.ServiceIdentifiers.IRandomGenerator)),c(3,d.inject(l.ServiceIdentifiers.Factory__IObfuscatedCode)),c(4,d.inject(l.ServiceIdentifiers.ILogger)),c(5,d.inject(l.ServiceIdentifiers.IOptions)),s("design:paramtypes",["function"==typeof(t=void 0!==p.ICodeTransformersRunner&&p.ICodeTransformersRunner)?t:Object,"function"==typeof(r=void 0!==h.INodeTransformersRunner&&h.INodeTransformersRunner)?r:Object,"function"==typeof(o=void 0!==y.IRandomGenerator&&y.IRandomGenerator)?o:Object,"function"==typeof(n=void 0!==f.TObfuscatedCodeFactory&&f.TObfuscatedCodeFactory)?n:Object,"function"==typeof(a=void 0!==m.ILogger&&m.ILogger)?a:Object,"function"==typeof(R=void 0!==g.IOptions&&g.IOptions)?R:Object])],F),F})();t.JavaScriptObfuscator=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoggingMessage=void 0,function(e){e.EmptySourceCode="Empty source code. Obfuscation canceled...",e.ObfuscationCompleted="Obfuscation completed. Total time: %s sec.",e.ObfuscationStarted="Obfuscation started...",e.RandomGeneratorSeed="Random generator seed: %s...",e.CodeTransformationStage="Code transformation stage: %s...",e.NodeTransformationStage="AST transformation stage: %s...",e.Version="Version: %s"}(t.LoggingMessage||(t.LoggingMessage={}))},function(e,t,r){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,r,o){void 0===o&&(o=r),Object.defineProperty(e,o,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,o){void 0===o&&(o=r),e[o]=t[r]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&o(t,e,r);return n(t,e),t},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.NodeTransformersRunner=void 0;const d=r(0),l=r(1),u=a(r(12)),f=r(248),p=r(75),m=r(249),g=r(4),y=r(19);let h=(()=>{var e,t;let r=class{constructor(e,t){this.nodeTransformerFactory=e,this.nodeTransformerNamesGroupsBuilder=t}transform(e,t,r){if(!t.length)return e;const o=this.buildNormalizedNodeTransformers(t,r),n=this.nodeTransformerNamesGroupsBuilder.build(o);for(const t of n){const n=[],i=[];for(const e of t){const t=o[e].getVisitor(r);t&&(t.enter&&n.push({enter:t.enter}),t.leave&&i.push({leave:t.leave}))}(n.length||i.length)&&u.replace(e,{enter:this.mergeVisitorsForDirection(n,m.VisitorDirection.Enter),leave:this.mergeVisitorsForDirection(i,m.VisitorDirection.Leave)})}return e}buildNormalizedNodeTransformers(e,t){return e.reduce((e,r)=>{const o=this.nodeTransformerFactory(r);return o.getVisitor(t)?Object.assign(Object.assign({},e),{[r]:o}):e},{})}mergeVisitorsForDirection(e,t){const r=e.length;return r?(o,n)=>{if(y.NodeMetadata.isIgnoredNode(o))return u.VisitorOption.Skip;for(let i=0;ie}};return r=i([d.injectable(),c(0,d.inject(l.ServiceIdentifiers.Factory__INodeTransformer)),c(1,d.inject(l.ServiceIdentifiers.INodeTransformerNamesGroupsBuilder)),s("design:paramtypes",["function"==typeof(e=void 0!==f.TNodeTransformerFactory&&f.TNodeTransformerFactory)?e:Object,"function"==typeof(t=void 0!==p.ITransformerNamesGroupsBuilder&&p.ITransformerNamesGroupsBuilder)?t:Object])],r),r})();t.NodeTransformersRunner=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VisitorDirection=void 0,function(e){e.Enter="enter",e.Leave="leave"}(t.VisitorDirection||(t.VisitorDirection={}))},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscationEventEmitter=void 0;const i=r(0),a=n(r(251));i.decorate(i.injectable(),a.default);let s=(()=>{let e=class extends a.default{};return e=o([i.injectable()],e),e})();t.ObfuscationEventEmitter=s},function(e,t){e.exports=require("eventemitter3")},function(e,t,r){"use strict";var o=this&&this.__decorate||function(e,t,r,o){var n,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(a=(i<3?n(a):i>3?n(t,r,a):n(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},n=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(r,o){t(r,o,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ObfuscatedCode=void 0;const a=r(0),s=r(1),c=r(49),d=r(7),l=r(32),u=r(2);let f=(()=>{var e,t;let r=class{constructor(e,t){this.cryptUtils=e,this.options=t}initialize(e,t){this.obfuscatedCode=e,this.sourceMap=t}getObfuscatedCode(){return this.correctObfuscatedCode()}getSourceMap(){return this.sourceMap}toString(){return this.obfuscatedCode}correctObfuscatedCode(){if(!this.sourceMap)return this.obfuscatedCode;const e=this.options.sourceMapBaseUrl+this.options.sourceMapFileName;let t="//# sourceMappingURL=";switch(this.options.sourceMapMode){case l.SourceMapMode.Inline:t+=`data:application/json;base64,${this.cryptUtils.btoa(this.sourceMap)}`;break;case l.SourceMapMode.Separate:default:if(!e)return this.obfuscatedCode;t+=e}return`${this.obfuscatedCode}\n${t}`}};return o([d.initializable(),n("design:type",String)],r.prototype,"obfuscatedCode",void 0),o([d.initializable(),n("design:type",String)],r.prototype,"sourceMap",void 0),r=o([a.injectable(),i(0,a.inject(s.ServiceIdentifiers.ICryptUtils)),i(1,a.inject(s.ServiceIdentifiers.IOptions)),n("design:paramtypes",["function"==typeof(e=void 0!==c.ICryptUtils&&c.ICryptUtils)?e:Object,"function"==typeof(t=void 0!==u.IOptions&&u.IOptions)?t:Object])],r),r})();t.ObfuscatedCode=f},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SourceCode=void 0;t.SourceCode=class{constructor(e,t){this.sourceCode=e,this.sourceMap=t}getSourceCode(){return this.sourceCode}getSourceMap(){return this.sourceMap}toString(){return this.sourceCode}}},,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const o=r(53);e.exports=o.JavaScriptObfuscator}]); //# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/package.json b/package.json index 6c0eb6065..ef1a23122 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "@types/mkdirp": "1.0.0", "@types/mocha": "7.0.2", "@types/multimatch": "4.0.0", - "@types/node": "14.0.5", + "@types/node": "14.0.6", "@types/rimraf": "3.0.0", "@types/sinon": "9.0.4", "@types/string-template": "1.0.2", diff --git a/src/JavaScriptObfuscatorFacade.ts b/src/JavaScriptObfuscatorFacade.ts index c3d063dfa..58a5b7568 100644 --- a/src/JavaScriptObfuscatorFacade.ts +++ b/src/JavaScriptObfuscatorFacade.ts @@ -4,7 +4,7 @@ import { ServiceIdentifiers } from './container/ServiceIdentifiers'; import { TInputOptions } from './types/options/TInputOptions'; import { TObfuscationResultsObject } from './types/TObfuscationResultsObject'; -import { TObject } from './types/TObject'; +import { TDictionary } from './types/TDictionary'; import { IInversifyContainerFacade } from './interfaces/container/IInversifyContainerFacade'; import { IJavaScriptObfuscator } from './interfaces/IJavaScriptObfsucator'; @@ -43,7 +43,7 @@ class JavaScriptObfuscatorFacade { * @param {TInputOptions} inputOptions * @returns {TObfuscationResultsObject} */ - public static obfuscateMultiple > ( + public static obfuscateMultiple > ( sourceCodesObject: TSourceCodesObject, inputOptions: TInputOptions = {} ): TObfuscationResultsObject { diff --git a/src/cli/utils/CLIUtils.ts b/src/cli/utils/CLIUtils.ts index 0ec6efbdb..2cbc80882 100644 --- a/src/cli/utils/CLIUtils.ts +++ b/src/cli/utils/CLIUtils.ts @@ -1,12 +1,12 @@ -import { TObject } from '../../types/TObject'; +import { TDictionary } from '../../types/TDictionary'; export class CLIUtils { /** * @param {string} configPath - * @returns {TObject} + * @returns {TDictionary} */ - public static getUserConfig (configPath: string): TObject { - let config: TObject; + public static getUserConfig (configPath: string): TDictionary { + let config: TDictionary; try { config = require(configPath); diff --git a/src/code-transformers/CodeTransformersRunner.ts b/src/code-transformers/CodeTransformersRunner.ts index 44d5d5666..35c1b9968 100644 --- a/src/code-transformers/CodeTransformersRunner.ts +++ b/src/code-transformers/CodeTransformersRunner.ts @@ -3,7 +3,7 @@ import { inject, injectable } from 'inversify'; import { ServiceIdentifiers } from '../container/ServiceIdentifiers'; import { TCodeTransformerFactory } from '../types/container/code-transformers/TCodeTransformerFactory'; -import { TObject } from '../types/TObject'; +import { TDictionary } from '../types/TDictionary'; import { ICodeTransformer } from '../interfaces/code-transformers/ICodeTransformer'; import { ICodeTransformersRunner } from '../interfaces/code-transformers/ICodeTransformersRunner'; @@ -59,7 +59,7 @@ export class CodeTransformersRunner implements ICodeTransformersRunner { return code; } - const normalizedCodeTransformers: TObject = + const normalizedCodeTransformers: TDictionary = this.buildNormalizedCodeTransformers(codeTransformerNames, codeTransformationStage); const codeTransformerNamesGroups: CodeTransformer[][] = this.codeTransformerNamesGroupsBuilder.build(normalizedCodeTransformers); @@ -78,15 +78,15 @@ export class CodeTransformersRunner implements ICodeTransformersRunner { /** * @param {NodeTransformer[]} codeTransformerNames * @param {NodeTransformationStage} codeTransformationStage - * @returns {TObject} + * @returns {TDictionary} */ private buildNormalizedCodeTransformers ( codeTransformerNames: CodeTransformer[], codeTransformationStage: CodeTransformationStage - ): TObject { + ): TDictionary { return codeTransformerNames - .reduce>( - (acc: TObject, codeTransformerName: CodeTransformer) => { + .reduce>( + (acc: TDictionary, codeTransformerName: CodeTransformer) => { const codeTransformer: ICodeTransformer = this.codeTransformerFactory(codeTransformerName); return { diff --git a/src/custom-code-helpers/CustomCodeHelperFormatter.ts b/src/custom-code-helpers/CustomCodeHelperFormatter.ts index 57922ba8d..101f8c735 100644 --- a/src/custom-code-helpers/CustomCodeHelperFormatter.ts +++ b/src/custom-code-helpers/CustomCodeHelperFormatter.ts @@ -5,7 +5,7 @@ import * as estraverse from 'estraverse'; import * as ESTree from 'estree'; import format from 'string-template'; -import { TObject } from '../types/TObject'; +import { TDictionary } from '../types/TDictionary'; import { TStatement } from '../types/node/TStatement'; import { ICustomCodeHelperFormatter } from '../interfaces/custom-code-helpers/ICustomCodeHelperFormatter'; @@ -32,7 +32,7 @@ export class CustomCodeHelperFormatter implements ICustomCodeHelperFormatter { * @param {TMapping} mapping * @returns {string} */ - public formatTemplate ( + public formatTemplate ( template: string, mapping: TMapping ): string { diff --git a/src/interfaces/custom-code-helpers/ICustomCodeHelperFormatter.ts b/src/interfaces/custom-code-helpers/ICustomCodeHelperFormatter.ts index 0e2f2031e..e6266ed8d 100644 --- a/src/interfaces/custom-code-helpers/ICustomCodeHelperFormatter.ts +++ b/src/interfaces/custom-code-helpers/ICustomCodeHelperFormatter.ts @@ -1,4 +1,4 @@ -import { TObject } from '../../types/TObject'; +import { TDictionary } from '../../types/TDictionary'; import { TStatement } from '../../types/node/TStatement'; export interface ICustomCodeHelperFormatter { @@ -7,7 +7,7 @@ export interface ICustomCodeHelperFormatter { * @param {TMapping} mapping * @returns {string} */ - formatTemplate ( + formatTemplate ( template: string, mapping: TMapping ): string; diff --git a/src/interfaces/utils/ITransformerNamesGroupsBuilder.ts b/src/interfaces/utils/ITransformerNamesGroupsBuilder.ts index 43b3c5b53..99f813c6d 100644 --- a/src/interfaces/utils/ITransformerNamesGroupsBuilder.ts +++ b/src/interfaces/utils/ITransformerNamesGroupsBuilder.ts @@ -1,12 +1,12 @@ -import { TObject } from '../../types/TObject'; +import { TDictionary } from '../../types/TDictionary'; export interface ITransformerNamesGroupsBuilder < TTransformerName extends string, TTransformer > { /** - * @param {TObject} normalizedTransformers + * @param {TDictionary} normalizedTransformers * @returns {TTransformerName[][]} */ - build (normalizedTransformers: TObject): TTransformerName[][]; + build (normalizedTransformers: TDictionary): TTransformerName[][]; } diff --git a/src/node-transformers/NodeTransformersRunner.ts b/src/node-transformers/NodeTransformersRunner.ts index 70cf94440..bb64e13c8 100644 --- a/src/node-transformers/NodeTransformersRunner.ts +++ b/src/node-transformers/NodeTransformersRunner.ts @@ -6,7 +6,7 @@ import * as estraverse from 'estraverse'; import * as ESTree from 'estree'; import { TNodeTransformerFactory } from '../types/container/node-transformers/TNodeTransformerFactory'; -import { TObject } from '../types/TObject'; +import { TDictionary } from '../types/TDictionary'; import { TVisitorDirection } from '../types/node-transformers/TVisitorDirection'; import { TVisitorFunction } from '../types/node-transformers/TVisitorFunction'; import { TVisitorResult } from '../types/node-transformers/TVisitorResult'; @@ -70,7 +70,7 @@ export class NodeTransformersRunner implements INodeTransformersRunner { return astTree; } - const normalizedNodeTransformers: TObject = + const normalizedNodeTransformers: TDictionary = this.buildNormalizedNodeTransformers(nodeTransformerNames, nodeTransformationStage); const nodeTransformerNamesGroups: NodeTransformer[][] = this.nodeTransformerNamesGroupsBuilder.build(normalizedNodeTransformers); @@ -112,15 +112,15 @@ export class NodeTransformersRunner implements INodeTransformersRunner { /** * @param {NodeTransformer[]} nodeTransformerNames * @param {NodeTransformationStage} nodeTransformationStage - * @returns {TObject} + * @returns {TDictionary} */ private buildNormalizedNodeTransformers ( nodeTransformerNames: NodeTransformer[], nodeTransformationStage: NodeTransformationStage - ): TObject { + ): TDictionary { return nodeTransformerNames - .reduce>( - (acc: TObject, nodeTransformerName: NodeTransformer) => { + .reduce>( + (acc: TDictionary, nodeTransformerName: NodeTransformer) => { const nodeTransformer: INodeTransformer = this.nodeTransformerFactory(nodeTransformerName); if (!nodeTransformer.getVisitor(nodeTransformationStage)) { diff --git a/src/options/ValidationErrorsFormatter.ts b/src/options/ValidationErrorsFormatter.ts index 29195d9bf..21c117b15 100644 --- a/src/options/ValidationErrorsFormatter.ts +++ b/src/options/ValidationErrorsFormatter.ts @@ -1,6 +1,6 @@ import { ValidationError } from 'class-validator'; -import { TObject } from '../types/TObject'; +import { TDictionary } from '../types/TDictionary'; export class ValidationErrorsFormatter { /** @@ -24,7 +24,7 @@ export class ValidationErrorsFormatter { * @returns {string} */ private static formatWithNestedConstraints (error: ValidationError): string { - const constraints: TObject | undefined = error.constraints; + const constraints: TDictionary | undefined = error.constraints; if (!constraints) { return `\`${error.property}\` error\n`; diff --git a/src/types/TObject.ts b/src/types/TDictionary.ts similarity index 53% rename from src/types/TObject.ts rename to src/types/TDictionary.ts index 4742ec767..97922b7f3 100644 --- a/src/types/TObject.ts +++ b/src/types/TDictionary.ts @@ -1,3 +1,3 @@ /* eslint-disable @typescript-eslint/consistent-type-definitions */ -export type TObject = {[key: string]: T}; +export type TDictionary = {[key: string]: T}; diff --git a/src/types/options/TInputCLIOptions.ts b/src/types/options/TInputCLIOptions.ts index dc33eb368..b2d2f5cf5 100644 --- a/src/types/options/TInputCLIOptions.ts +++ b/src/types/options/TInputCLIOptions.ts @@ -1,5 +1,5 @@ -import { TObject } from '../TObject'; +import { TDictionary } from '../TDictionary'; import { ICLIOptions } from '../../interfaces/options/ICLIOptions'; -export type TInputCLIOptions = Partial> & TObject; +export type TInputCLIOptions = Partial> & TDictionary; diff --git a/src/types/options/TInputOptions.ts b/src/types/options/TInputOptions.ts index 0154c92ae..34325eb5f 100644 --- a/src/types/options/TInputOptions.ts +++ b/src/types/options/TInputOptions.ts @@ -1,5 +1,5 @@ -import { TObject } from '../TObject'; +import { TDictionary } from '../TDictionary'; import { IOptions } from '../../interfaces/options/IOptions'; -export type TInputOptions = Partial> & TObject; +export type TInputOptions = Partial> & TDictionary; diff --git a/src/utils/AbstractTransformerNamesGroupsBuilder.ts b/src/utils/AbstractTransformerNamesGroupsBuilder.ts index 7a806db7c..f7971b549 100644 --- a/src/utils/AbstractTransformerNamesGroupsBuilder.ts +++ b/src/utils/AbstractTransformerNamesGroupsBuilder.ts @@ -1,7 +1,7 @@ import { inject, injectable } from 'inversify'; import { ServiceIdentifiers } from '../container/ServiceIdentifiers'; -import { TObject } from '../types/TObject'; +import { TDictionary } from '../types/TDictionary'; import { TTransformersRelationEdge } from '../types/utils/TTransformersRelationEdge'; import { ILevelledTopologicalSorter } from '../interfaces/utils/ILevelledTopologicalSorter'; @@ -48,10 +48,10 @@ export abstract class AbstractTransformerNamesGroupsBuilder < * ] * ] * - * @param {TObject} normalizedTransformers + * @param {TDictionary} normalizedTransformers * @returns {TTransformerName[][]} */ - public build (normalizedTransformers: TObject): TTransformerName[][] { + public build (normalizedTransformers: TDictionary): TTransformerName[][] { const transformerNames: TTransformerName[] = Object.keys(normalizedTransformers); const relationEdges: TTransformersRelationEdge[] = this.buildTransformersRelationEdges( transformerNames, @@ -67,12 +67,12 @@ export abstract class AbstractTransformerNamesGroupsBuilder < /** * @param {TTransformerName[]} transformerNames - * @param {TObject} normalizedTransformers + * @param {TDictionary} normalizedTransformers * @returns {TTransformersRelationEdge[]} */ private buildTransformersRelationEdges ( transformerNames: TTransformerName[], - normalizedTransformers: TObject + normalizedTransformers: TDictionary ): TTransformersRelationEdge[] { const relationEdges: TTransformersRelationEdge[] = []; diff --git a/test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts b/test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts index d7ac0eea3..4a6e30025 100644 --- a/test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts +++ b/test/functional-tests/javascript-obfuscator/JavaScriptObfuscator.spec.ts @@ -2,7 +2,7 @@ import { assert } from 'chai'; import { TypeFromEnum } from '@gradecam/tsenum'; import { TInputOptions } from '../../../src/types/options/TInputOptions'; -import { TObject } from '../../../src/types/TObject'; +import { TDictionary } from '../../../src/types/TDictionary'; import { IObfuscatedCode } from '../../../src/interfaces/source-code/IObfuscatedCode'; @@ -974,7 +974,7 @@ describe('JavaScriptObfuscator', () => { }); describe('invalid source codes object', () => { - let testFunc: () => TObject; + let testFunc: () => TDictionary; beforeEach(() => { testFunc = () => JavaScriptObfuscator.obfuscateMultiple( diff --git a/yarn.lock b/yarn.lock index e23c2e7af..ccf02758e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -364,10 +364,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-13.9.3.tgz#6356df2647de9eac569f9a52eda3480fa9e70b4d" integrity sha512-01s+ac4qerwd6RHD+mVbOEsraDHSgUaefQlEdBbUolnQFjKwCr7luvAlEwW1RFojh67u0z4OUTjPn9LEl4zIkA== -"@types/node@14.0.5": - version "14.0.5" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.5.tgz#3d03acd3b3414cf67faf999aed11682ed121f22b" - integrity sha512-90hiq6/VqtQgX8Sp0EzeIsv3r+ellbGj4URKj5j30tLlZvRUpnAe9YbYnjl3pJM93GyXU0tghHhvXHq+5rnCKA== +"@types/node@14.0.6": + version "14.0.6" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.0.6.tgz#f9e178b2da31a4b0ec60b64649e244c31ce18daf" + integrity sha512-FbNmu4F67d3oZMWBV6Y4MaPER+0EpE9eIYf2yaHhCWovc1dlXCZkqGX4NLHfVVr6umt20TNBdRzrNJIzIKfdbw== "@types/normalize-package-data@^2.4.0": version "2.4.0"