lightrun 1.74.0 → 1.77.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/agent/agent-logger.js +1 -1
- package/build/src/agent/blocklisting/blocklisting-patterns.js +1 -1
- package/build/src/agent/blocklisting/dummy-blocklist-manager.js +1 -1
- package/build/src/agent/blocklisting/patterns-blocklist-manager.js +1 -1
- package/build/src/agent/config.js +1 -1
- package/build/src/agent/configuration-provider.js +1 -1
- package/build/src/agent/controller.js +1 -1
- package/build/src/agent/debuglet-helpers/createDebuggee.js +1 -1
- package/build/src/agent/debuglet-helpers/createDebuggeeMetadata.js +1 -1
- package/build/src/agent/debuglet-helpers/createUniquifier.js +1 -1
- package/build/src/agent/debuglet-helpers/delimit.js +1 -1
- package/build/src/agent/debuglet-helpers/format.js +1 -1
- package/build/src/agent/debuglet-helpers/getAgentConfig.js +1 -1
- package/build/src/agent/debuglet-helpers/getPlatform.js +1 -1
- package/build/src/agent/debuglet-helpers/limitConfig.js +1 -1
- package/build/src/agent/debuglet-helpers/mapSubtract.js +1 -1
- package/build/src/agent/debuglet-helpers/normalizeConfig.js +1 -1
- package/build/src/agent/debuglet-helpers/tokenize.js +1 -1
- package/build/src/agent/debuglet.js +1 -1
- package/build/src/agent/environment-metadata.js +1 -1
- package/build/src/agent/io/file-index.js +1 -1
- package/build/src/agent/io/scan-results.js +1 -1
- package/build/src/agent/io/scanner.js +1 -1
- package/build/src/agent/io/sourcemapper.js +1 -1
- package/build/src/agent/leaky-bucket.js +1 -1
- package/build/src/agent/log-data.js +1 -1
- package/build/src/agent/piping-manager.js +1 -1
- package/build/src/agent/quota-manager.js +1 -1
- package/build/src/agent/reduction/redaction-manager-re2js.js +1 -1
- package/build/src/agent/reduction/redaction-manager.js +1 -1
- package/build/src/agent/serverless.js +1 -0
- package/build/src/agent/state/inspector-state.js +1 -1
- package/build/src/agent/util/debug-assert.js +1 -1
- package/build/src/agent/util/utils.js +1 -1
- package/build/src/agent/util/validator.js +1 -1
- package/build/src/agent/v8/debugapi.js +1 -1
- package/build/src/agent/v8/inspector-debugapi.js +1 -1
- package/build/src/agent/v8/v8inspector.js +1 -1
- package/build/src/client/stackdriver/debug.js +1 -1
- package/build/src/client/stackdriver/status-message.js +1 -1
- package/build/src/debuggee.js +1 -1
- package/build/src/gcp.js +1 -1
- package/build/src/index.d.ts +91 -18
- package/build/src/index.js +1 -1
- package/build/src/lambda.js +1 -1
- package/build/src/resources/version.txt +1 -1
- package/build/src/types/lightrun.js +1 -1
- package/build/src/types/stackdriver.js +1 -1
- package/build/src/types/v8.js +1 -1
- package/package.json +46 -32
|
@@ -1 +1 @@
|
|
|
1
|
-
const a35_0x488d2e=a35_0xd24a;(function(_0x33d23b,_0x317d9a){const _0x26aeb9=a35_0xd24a,_0x4e7aa2=_0x33d23b();while(!![]){try{const _0x1268d2=parseInt(_0x26aeb9(0x233))/0x1+-parseInt(_0x26aeb9(0x204))/0x2+parseInt(_0x26aeb9(0x246))/0x3+parseInt(_0x26aeb9(0x211))/0x4*(-parseInt(_0x26aeb9(0x29a))/0x5)+parseInt(_0x26aeb9(0x23b))/0x6+-parseInt(_0x26aeb9(0x27d))/0x7+parseInt(_0x26aeb9(0x20b))/0x8;if(_0x1268d2===_0x317d9a)break;else _0x4e7aa2['push'](_0x4e7aa2['shift']());}catch(_0x20f274){_0x4e7aa2['push'](_0x4e7aa2['shift']());}}}(a35_0x96a4,0x6aa7f));function a35_0x96a4(){const _0x43d277=['4003286dNGPrO','length','Breakpoint\x20is\x20added\x20to\x20a\x20given\x20location.\x20Id:\x20','hitBreakpoints','log','../util/validator.js','variableTable','Failed\x20to\x20put\x20the\x20breakpoint\x20in\x20','logMessageFormat','remainingHits','callFrames','scriptMapper','lineNumberAfter:\x20','setInternal','evaluatedExpressions','\x20<<','stackFrames','debug','BreakpointData','BREAKPOINT_CONDITION','lines','UNSPECIFIED','ERROR_COMPILING_CONDITION','setBreakpointByUrl','Failed\x20to\x20evaluate\x20condition\x20','The\x20whole\x20line:\x20`','findScripts','lineNumberAfterAfter:\x20','numBreakpoints','125QivjOY','captureBreakpointData','sourcemapper','setBlocklistManager','apply','EXPRESSION_COMPILING_ERROR','version','split','Cannot\x20clear\x20breakpoint\x20-\x20id\x20is\x20undefined',',\x20line\x20length:\x20','Error!\x20Line\x20is\x20shorter\x20then\x20column.\x20Column:\x20','INVALID_LINE_NUMBER','mapInfo\x20','value','cleanupAsyncCallStackInterval','apiBreakpoint','StatusMessage','normalize','parsedCondition','INVALID_BREAKPOINT','concat','hrtime','DISALLOWED_EXPRESSION','processCondition','../../client/stackdriver/status-message','internal','V8_BREAKPOINT_CLEAR_ERROR','object','Searching\x20for\x20a\x20script\x20file:\x20','.\x20Potential\x20matches:\x20','__esModule','shouldUseWellFormattedUrl','script','platform','errors','v8BreakpointId','<10.16\x20||\x20>=11\x20<11.11','win32','Printing\x20first\x20','FileStats.\x20Lines\x20Count:\x20','locationMapper','response','1435902QRWSSy','expressionsEvalTimeoutMillis','column','removeFirstOccurrenceInArray','substring','utf-8','numListeners_','10476648CYSsGN','formatInterval','fileStats','path','Printing\x20','Unable\x20to\x20compile\x20watch\x20expression\x20>>\x20','16372wiJEVN','logger','setErrorStatusAndCallback','config','breakpointMapper','location','description','keys','Creating\x20InspectorDebugApi','listener','\x20chars\x20starting\x20from\x20column\x20','v8Inspector','push','setBreakpointByUrl\x20error:\x20',':\x20`','MODULE_WRAP_PREFIX_LENGTH','LOG','breakpoints','printDebugCodeLine','file','\x20deployed\x20source.','InspectorDebugApi','inspectScriptForDebug.','removeBreakpoint','>>>breakpoint\x20hit<<<\x20number:\x20','condition','DummyBlocklistManager','includes','detach','readFileSync','handleDebugPausedEvent','isFileIndexed','applyDynamicLogsCPUQuota','Unable\x20to\x20compile\x20condition\x20>>\x20','134668LRjGAO','satisfies','onBreakpointHit','breakpointId','recovered','line','setAndStoreBreakpoint','quota','680622tpBNee','Breakpoint\x20is\x20found\x20at\x20a\x20given\x20location.\x20Id:\x20','map','\x20chars\x20from\x20the\x20line:\x0a','Cannot\x20clear\x20breakpoint\x20-\x20no\x20breakpoint\x20data\x20for\x20id\x20','listeners','`.\x20column:\x20','./debugapi','evaluate','toString','stringify','814053RsscDx','Unable\x20to\x20unambiguously\x20find\x20','enabled','getBreakpointCompiler','hash','maxHitCount','action','../blocklisting/dummy-blocklist-manager','replace','changeToNS','mappingInfo','isJavaScriptFile','\x20due\x20to\x20error:\x20','>10.11.0','constructor','VARIABLE_VALUE','disconnect','search','file://','(((.+)+)+)+$','Source\x20map\x20is\x20NOT\x20found\x20for\x20','BREAKPOINT_SOURCE_LOCATION','compile','shouldBlock','ignoreQuota','Installing\x20','SOURCE_FILE_NOT_FOUND','lineNumber','\x20evaluated\x20to\x20false\x20-\x20skipping\x20breakpoint','extname','hash:\x20','some','../util/utils','CAPTURE_BREAKPOINT_DATA','acorn','scriptId','quotaRecoverySeconds','javascriptFileExtensions','wait','The\x20line\x20is\x20not\x20found\x20in\x20the\x20script\x20file','quotaManager','expressions','ERROR_EVALUATING_CONDITION','needsRecoveryTime','Internal\x20V8\x20error\x20on\x20breakpoint\x20event:\x20','blocklistManager','warn','.\x20Loaded\x20script\x20contained\x20','disable','error','undefined','inspectScriptForDebug','message','pipingStatus','fileIndex'];a35_0x96a4=function(){return _0x43d277;};return a35_0x96a4();}const a35_0x2307c7=(function(){let _0x5ed8c5=!![];return function(_0x3b1f6b,_0x4285b8){const _0x1b51fb=_0x5ed8c5?function(){const _0x245c21=a35_0xd24a;if(_0x4285b8){const _0x973c69=_0x4285b8[_0x245c21(0x29e)](_0x3b1f6b,arguments);return _0x4285b8=null,_0x973c69;}}:function(){};return _0x5ed8c5=![],_0x1b51fb;};}()),a35_0x4e4c5d=a35_0x2307c7(this,function(){const _0x29732e=a35_0xd24a;return a35_0x4e4c5d[_0x29732e(0x244)]()[_0x29732e(0x257)](_0x29732e(0x259))[_0x29732e(0x244)]()[_0x29732e(0x254)](a35_0x4e4c5d)['search'](_0x29732e(0x259));});function a35_0xd24a(_0x4c4e41,_0x509863){const _0x462112=a35_0x96a4();return a35_0xd24a=function(_0x4e4c5d,_0x2307c7){_0x4e4c5d=_0x4e4c5d-0x1f0;let _0x96a4cd=_0x462112[_0x4e4c5d];return _0x96a4cd;},a35_0xd24a(_0x4c4e41,_0x509863);}a35_0x4e4c5d();'use strict';Object['defineProperty'](exports,a35_0x488d2e(0x1f8),{'value':!![]}),exports[a35_0x488d2e(0x226)]=exports[a35_0x488d2e(0x28f)]=void 0x0;const acorn=require(a35_0x488d2e(0x268)),path=require(a35_0x488d2e(0x20e)),status_message_1=require(a35_0x488d2e(0x1f2)),state=require('../state/inspector-state'),utils_1=require(a35_0x488d2e(0x266)),debugapi=require(a35_0x488d2e(0x242)),v8inspector_1=require('./v8inspector'),dummy_blocklist_manager_1=require(a35_0x488d2e(0x24d)),fs_1=require('fs'),USE_MODULE_PREFIX=(0x0,utils_1['satisfies'])(process['version'],a35_0x488d2e(0x1fe));class BreakpointData{constructor(_0x180e71,_0x213dfb,_0x4c9535,_0x2252df,_0x836bad,_0x3ad4b6,_0x2cd791,_0x2d7b68){const _0x3e0ce6=a35_0x488d2e;this['id']=_0x180e71,this[_0x3e0ce6(0x2a9)]=_0x213dfb,this[_0x3e0ce6(0x2ac)]=_0x4c9535,this['locationStr']=_0x2252df,this[_0x3e0ce6(0x25c)]=_0x836bad,this[_0x3e0ce6(0x286)]=_0x3ad4b6,this[_0x3e0ce6(0x25e)]=_0x2cd791,this[_0x3e0ce6(0x27b)]=_0x2d7b68;}}exports[a35_0x488d2e(0x28f)]=BreakpointData;class InspectorDebugApi{constructor(_0x57bb3d,_0x28065c,_0x45b94c,_0x2df1af,_0x299c77){const _0x4d7e5b=a35_0x488d2e;this[_0x4d7e5b(0x222)]={},this[_0x4d7e5b(0x240)]={},this[_0x4d7e5b(0x288)]={},this[_0x4d7e5b(0x202)]={},this[_0x4d7e5b(0x215)]={},this[_0x4d7e5b(0x299)]=0x0,_0x57bb3d[_0x4d7e5b(0x28e)](_0x4d7e5b(0x219)),this[_0x4d7e5b(0x2a8)]=null,this[_0x4d7e5b(0x212)]=_0x57bb3d,this['config']=_0x28065c,this['fileIndex']=_0x45b94c,this[_0x4d7e5b(0x29c)]=_0x2df1af,this[_0x4d7e5b(0x21c)]=new v8inspector_1['V8Inspector'](_0x57bb3d,(0x0,utils_1['satisfies'])(process[_0x4d7e5b(0x2a0)],_0x4d7e5b(0x253)),this[_0x4d7e5b(0x214)]['resetV8DebuggerThreshold'],_0xf92e6a=>{const _0x5058e3=_0x4d7e5b;this[_0x5058e3(0x288)][_0xf92e6a[_0x5058e3(0x269)]]=_0xf92e6a;},_0xafcbc7=>{const _0x338650=_0x4d7e5b;try{this['handleDebugPausedEvent'](_0xafcbc7);}catch(_0x2a727a){this[_0x338650(0x212)][_0x338650(0x277)](_0x2a727a);}},()=>{this['scriptMapper']={};}),this[_0x4d7e5b(0x26e)]=_0x299c77,this[_0x4d7e5b(0x273)]=new dummy_blocklist_manager_1[(_0x4d7e5b(0x22b))](!![]);}['set'](_0x51a51e,_0x36eb4f){const _0x5c3046=a35_0x488d2e;if(!_0x51a51e||typeof _0x51a51e['id']===_0x5c3046(0x278)||!_0x51a51e[_0x5c3046(0x216)]||!_0x51a51e[_0x5c3046(0x216)]['path']||!_0x51a51e[_0x5c3046(0x216)][_0x5c3046(0x238)])return(0x0,utils_1['setErrorStatusAndCallback'])(_0x36eb4f,_0x51a51e,status_message_1[_0x5c3046(0x2aa)][_0x5c3046(0x292)],utils_1['errors'][_0x5c3046(0x2ad)]);this[_0x5c3046(0x212)][_0x5c3046(0x28e)](_0x5c3046(0x25f),_0x51a51e?.[_0x5c3046(0x24c)],_0x51a51e?.[_0x5c3046(0x216)]?.[_0x5c3046(0x20e)],_0x51a51e?.[_0x5c3046(0x216)]?.[_0x5c3046(0x238)]);const _0x280644=path[_0x5c3046(0x2ab)](_0x51a51e[_0x5c3046(0x216)]['path']);if(!this['sourcemapper']['hasMappingInfo'](_0x280644)){this[_0x5c3046(0x212)][_0x5c3046(0x28e)](_0x5c3046(0x25a),_0x280644);const _0x9cd8d9=path[_0x5c3046(0x263)](_0x280644);if(!this[_0x5c3046(0x214)][_0x5c3046(0x26b)][_0x5c3046(0x22c)](_0x9cd8d9)){const _0x5117bc=_0x280644[_0x5c3046(0x208)](0x0,_0x280644[_0x5c3046(0x27e)]-_0x9cd8d9[_0x5c3046(0x27e)]),_0xff26e4=this[_0x5c3046(0x214)]['javascriptFileExtensions'][_0x5c3046(0x23d)](_0x50a6a9=>_0x5117bc+_0x50a6a9)[_0x5c3046(0x265)](_0x44d1aa=>(0x0,utils_1[_0x5c3046(0x230)])(_0x44d1aa,this[_0x5c3046(0x27c)])),_0x238e72=_0xff26e4?utils_1[_0x5c3046(0x1fc)]['COULD_NOT_FIND_MAPPING_FILE']:utils_1[_0x5c3046(0x1fc)][_0x5c3046(0x260)];return(0x0,utils_1[_0x5c3046(0x213)])(_0x36eb4f,_0x51a51e,status_message_1[_0x5c3046(0x2aa)][_0x5c3046(0x25b)],_0x238e72);}this[_0x5c3046(0x28a)](_0x51a51e,null,null,_0x36eb4f);}else{this[_0x5c3046(0x212)]['debug']('Source\x20map\x20is\x20FOUND\x20for\x20',_0x280644);const _0x5d192f=_0x51a51e['location'][_0x5c3046(0x238)],_0x174b56=0x0,_0x5f14ff=this[_0x5c3046(0x29c)][_0x5c3046(0x250)](_0x280644,_0x5d192f,_0x174b56);this['logger'][_0x5c3046(0x28e)](_0x5c3046(0x2a6),_0x5f14ff?.[_0x5c3046(0x224)],_0x5f14ff?.['line'],_0x5f14ff?.[_0x5c3046(0x206)]);const _0x20a7c4=(0x0,utils_1[_0x5c3046(0x249)])(_0x51a51e);if(_0x51a51e[_0x5c3046(0x22a)]&&_0x20a7c4)try{_0x51a51e[_0x5c3046(0x22a)]=_0x20a7c4(_0x51a51e['condition']);}catch(_0x8eae5c){return this['logger']['warn'](_0x5c3046(0x232)+_0x51a51e['condition']+_0x5c3046(0x28c)),(0x0,utils_1[_0x5c3046(0x213)])(_0x36eb4f,_0x51a51e,status_message_1['StatusMessage'][_0x5c3046(0x290)],utils_1[_0x5c3046(0x1fc)][_0x5c3046(0x293)]);}this[_0x5c3046(0x28a)](_0x51a51e,_0x5f14ff,_0x20a7c4,_0x36eb4f);}}['clear'](_0x16ab53,_0x523680){const _0x50e2c2=a35_0x488d2e;if(typeof _0x16ab53['id']===_0x50e2c2(0x278))return this[_0x50e2c2(0x212)][_0x50e2c2(0x28e)](_0x50e2c2(0x2a2)),(0x0,utils_1[_0x50e2c2(0x213)])(_0x523680,_0x16ab53,status_message_1['StatusMessage'][_0x50e2c2(0x290)],utils_1['errors'][_0x50e2c2(0x1f4)]);const _0x524f51=this[_0x50e2c2(0x222)][_0x16ab53['id']];if(!_0x524f51)return this[_0x50e2c2(0x212)]['debug'](_0x50e2c2(0x23f)+_0x16ab53['id']),(0x0,utils_1[_0x50e2c2(0x213)])(_0x523680,_0x16ab53,status_message_1[_0x50e2c2(0x2aa)]['BREAKPOINT_CONDITION'],utils_1['errors'][_0x50e2c2(0x1f4)]);const _0x20ecc2=_0x524f51['locationStr'],_0x22504f=_0x524f51['id'];(0x0,utils_1['removeFirstOccurrenceInArray'])(this[_0x50e2c2(0x202)][_0x20ecc2],_0x16ab53['id']);this[_0x50e2c2(0x202)][_0x20ecc2][_0x50e2c2(0x27e)]===0x0&&delete this[_0x50e2c2(0x202)][_0x20ecc2];(0x0,utils_1[_0x50e2c2(0x207)])(this[_0x50e2c2(0x215)][_0x22504f],_0x16ab53['id']);this['breakpointMapper'][_0x22504f][_0x50e2c2(0x27e)]===0x0&&delete this[_0x50e2c2(0x215)][_0x22504f];let _0x4612a1={};!this[_0x50e2c2(0x215)][_0x524f51['id']]&&(_0x4612a1=this[_0x50e2c2(0x21c)][_0x50e2c2(0x228)](_0x524f51['id'])),delete this[_0x50e2c2(0x222)][_0x16ab53['id']],delete this[_0x50e2c2(0x240)][_0x16ab53['id']],this[_0x50e2c2(0x299)]--,setImmediate(()=>{const _0x2ff929=_0x50e2c2;_0x4612a1['error']?_0x523680(_0x4612a1[_0x2ff929(0x277)]):_0x523680(null);});}[a35_0x488d2e(0x26c)](_0x54da39,_0xa12f3f){const _0x267ac5=a35_0x488d2e,_0x435c75=this[_0x267ac5(0x235)]['bind'](this,_0x54da39,_0x4110f4=>{const _0x3d4d90=_0x267ac5,_0x464b2d=--this[_0x3d4d90(0x222)][_0x54da39['id']]['remainingHits'];(_0x464b2d<=0x0||_0x4110f4)&&(this[_0x3d4d90(0x240)][_0x54da39['id']][_0x3d4d90(0x248)]=![]),_0xa12f3f(_0x4110f4||undefined);});this[_0x267ac5(0x240)][_0x54da39['id']]={'enabled':!![],'listener':_0x435c75};}[a35_0x488d2e(0x281)](_0x5b622a,_0x379a29,_0x2f9b5d,_0x32a341){const _0x4ab2b6=a35_0x488d2e,_0x44fc06=this[_0x4ab2b6(0x235)]['bind'](this,_0x5b622a,_0x5d4419=>{const _0x414ade=_0x4ab2b6;if(_0x5d4419){this[_0x414ade(0x240)][_0x5b622a['id']][_0x414ade(0x248)]=![],setImmediate(()=>{_0x32a341(_0x5d4419||undefined);});return;}_0x379a29(_0x5b622a[_0x414ade(0x285)],_0x5b622a[_0x414ade(0x28b)]),_0x5b622a['evaluatedExpressions']=[],_0x2f9b5d()?this[_0x414ade(0x240)][_0x5b622a['id']]['enabled']=![]:this[_0x414ade(0x26e)][_0x414ade(0x271)](_0x5b622a['id'])&&(this[_0x414ade(0x240)][_0x5b622a['id']][_0x414ade(0x248)]=![],setTimeout(()=>{const _0x363e69=_0x414ade;!_0x2f9b5d()&&this[_0x363e69(0x240)][_0x5b622a['id']]&&(this[_0x363e69(0x240)][_0x5b622a['id']][_0x363e69(0x248)]=!![]),this[_0x363e69(0x26e)][_0x363e69(0x237)](_0x5b622a['id']);},this[_0x414ade(0x214)][_0x414ade(0x23a)][_0x414ade(0x26a)]*0x3e8));});this[_0x4ab2b6(0x240)][_0x5b622a['id']]={'enabled':!![],'listener':_0x44fc06};}[a35_0x488d2e(0x256)](){const _0x405a9f=a35_0x488d2e;this['v8Inspector'][_0x405a9f(0x22d)]();}['enable'](){this['v8Inspector']['enable']();}[a35_0x488d2e(0x276)](){const _0x3e2330=a35_0x488d2e;this[_0x3e2330(0x21c)][_0x3e2330(0x276)]();}['numBreakpoints_'](){const _0x18e046=a35_0x488d2e;return Object[_0x18e046(0x218)](this[_0x18e046(0x222)])[_0x18e046(0x27e)];}[a35_0x488d2e(0x20a)](){const _0x4e8d85=a35_0x488d2e;return Object[_0x4e8d85(0x218)](this['listeners'])[_0x4e8d85(0x27e)];}[a35_0x488d2e(0x286)](_0x18ee74){const _0x3e7069=a35_0x488d2e;return this['breakpoints'][_0x18ee74][_0x3e7069(0x286)];}[a35_0x488d2e(0x29d)](_0x1d3a98){this['blocklistManager']=_0x1d3a98;}[a35_0x488d2e(0x28a)](_0x2711b4,_0x49ebe0,_0x355409,_0x466fbb){const _0x2b5b95=a35_0x488d2e;let _0x559a1f=null;if(_0x2711b4[_0x2b5b95(0x22a)])try{_0x559a1f=acorn['parse'](_0x2711b4[_0x2b5b95(0x22a)],{'sourceType':_0x2b5b95(0x1fa),'ecmaVersion':0xb});const _0x15efbc=require(_0x2b5b95(0x282));if(!_0x15efbc['isValid'](_0x559a1f,![]))return(0x0,utils_1[_0x2b5b95(0x213)])(_0x466fbb,_0x2711b4,status_message_1['StatusMessage'][_0x2b5b95(0x290)],utils_1[_0x2b5b95(0x1fc)][_0x2b5b95(0x1f0)]);}catch(_0xbdd53){return(0x0,utils_1[_0x2b5b95(0x213)])(_0x466fbb,_0x2711b4,status_message_1[_0x2b5b95(0x2aa)][_0x2b5b95(0x290)],{...utils_1['errors']['SYNTAX_ERROR_IN_CONDITION'],'parameters':[_0xbdd53[_0x2b5b95(0x27a)]]});}let _0x29f1c5;const _0x1a56e6=_0x49ebe0?_0x49ebe0['file']:path[_0x2b5b95(0x2ab)](_0x2711b4['location'][_0x2b5b95(0x20e)]);this[_0x2b5b95(0x212)][_0x2b5b95(0x28e)](_0x2b5b95(0x1f6),_0x1a56e6);const _0x186582=(0x0,utils_1[_0x2b5b95(0x297)])(_0x1a56e6,this[_0x2b5b95(0x214)],this[_0x2b5b95(0x27c)],this[_0x2b5b95(0x212)]);if(_0x186582[_0x2b5b95(0x27e)]===0x0)return(0x0,utils_1[_0x2b5b95(0x213)])(_0x466fbb,_0x2711b4,status_message_1[_0x2b5b95(0x2aa)][_0x2b5b95(0x25b)],utils_1[_0x2b5b95(0x1fc)][_0x2b5b95(0x260)]);else{if(_0x186582[_0x2b5b95(0x27e)]===0x1)this['logger'][_0x2b5b95(0x28e)]('Found\x20script\x20file:\x20',_0x186582[0x0]),_0x29f1c5=_0x186582[0x0];else return this['logger'][_0x2b5b95(0x274)](_0x2b5b95(0x247)+_0x1a56e6+_0x2b5b95(0x1f7)+_0x186582),(0x0,utils_1['setErrorStatusAndCallback'])(_0x466fbb,_0x2711b4,status_message_1['StatusMessage'][_0x2b5b95(0x25b)],utils_1['errors']['SOURCE_FILE_AMBIGUOUS']);}if(this[_0x2b5b95(0x273)][_0x2b5b95(0x25d)](_0x29f1c5))return(0x0,utils_1[_0x2b5b95(0x213)])(_0x466fbb,_0x2711b4,status_message_1[_0x2b5b95(0x2aa)]['BREAKPOINT_SOURCE_LOCATION'],utils_1[_0x2b5b95(0x1fc)]['BREAKPOINT_PATH_BLOCKED']);let _0x1520c4=_0x49ebe0&&_0x49ebe0['column']?_0x49ebe0[_0x2b5b95(0x206)]:_0x2711b4[_0x2b5b95(0x216)][_0x2b5b95(0x206)]||0x0;const _0x218e3f=_0x49ebe0?_0x49ebe0['line']:_0x2711b4[_0x2b5b95(0x216)]['line'];USE_MODULE_PREFIX&&_0x218e3f===0x1&&(_0x1520c4+=debugapi[_0x2b5b95(0x220)]-0x1);const _0x479ab4=this[_0x2b5b95(0x27c)][_0x2b5b95(0x20d)][_0x29f1c5];this[_0x2b5b95(0x212)]['debug'](_0x2b5b95(0x201),_0x479ab4?.[_0x2b5b95(0x291)],_0x2b5b95(0x264),_0x479ab4?.[_0x2b5b95(0x24a)]);if(_0x218e3f>=_0x479ab4[_0x2b5b95(0x291)]||_0x218e3f<0x1)return(0x0,utils_1['setErrorStatusAndCallback'])(_0x466fbb,_0x2711b4,status_message_1[_0x2b5b95(0x2aa)][_0x2b5b95(0x25b)],{...utils_1[_0x2b5b95(0x1fc)][_0x2b5b95(0x2a5)],'description':utils_1[_0x2b5b95(0x1fc)][_0x2b5b95(0x2a5)][_0x2b5b95(0x217)]+_0x29f1c5+':'+_0x218e3f+_0x2b5b95(0x275)+this[_0x2b5b95(0x27c)][_0x2b5b95(0x20d)][_0x29f1c5][_0x2b5b95(0x291)]+'\x20lines.\x20Please\x20ensure'+'\x20that\x20the\x20snapshot\x20was\x20set\x20in\x20the\x20same\x20code\x20version\x20as\x20the'+_0x2b5b95(0x225)});const _0x5010e2=this['setAndStoreBreakpoint'](_0x2711b4,_0x218e3f,_0x1520c4,_0x29f1c5);if(!_0x5010e2)return(0x0,utils_1[_0x2b5b95(0x213)])(_0x466fbb,_0x2711b4,status_message_1['StatusMessage']['BREAKPOINT_SOURCE_LOCATION'],utils_1[_0x2b5b95(0x1fc)]['V8_BREAKPOINT_ERROR']);this[_0x2b5b95(0x222)][_0x2711b4['id']]=new BreakpointData(_0x5010e2[_0x2b5b95(0x1fd)],_0x2711b4,_0x559a1f,_0x5010e2['locationStr'],_0x355409,_0x2711b4[_0x2b5b95(0x24b)]||0x1,_0x2711b4[_0x2b5b95(0x25e)],_0x2711b4[_0x2b5b95(0x27b)]),this[_0x2b5b95(0x299)]++,setImmediate(()=>{_0x466fbb(null);});}[a35_0x488d2e(0x239)](_0x241277,_0x36d76b,_0x5baeef,_0x421016){const _0x5a411c=a35_0x488d2e,_0x5b09d4=JSON[_0x5a411c(0x245)]({'file':_0x421016,'line':_0x36d76b,'column':_0x5baeef});let _0xd7501d;if(!this['locationMapper'][_0x5b09d4]){this[_0x5a411c(0x279)](_0x421016,_0x36d76b,_0x5baeef);const _0x54aec4=this[_0x5a411c(0x21c)][_0x5a411c(0x1f9)]()?_0x5a411c(0x258)+_0x421016:_0x421016,_0x2f15b0=process[_0x5a411c(0x1fb)]===_0x5a411c(0x1ff)&&(0x0,utils_1[_0x5a411c(0x234)])(process[_0x5a411c(0x2a0)],'>=11')?_0x54aec4[_0x5a411c(0x24e)](/^file:\/\//,'file:///')[_0x5a411c(0x24e)](/\\/g,'/'):_0x54aec4,_0x1b7fb1=this[_0x5a411c(0x21c)][_0x5a411c(0x294)]({'lineNumber':_0x36d76b-0x1,'url':encodeURI(_0x2f15b0),'columnNumber':_0x5baeef});if(_0x1b7fb1[_0x5a411c(0x277)]||!_0x1b7fb1[_0x5a411c(0x203)])return this['logger'][_0x5a411c(0x277)](_0x5a411c(0x284)+_0x2f15b0+':'+_0x36d76b+',\x20'+(_0x5a411c(0x21e)+JSON[_0x5a411c(0x245)](_0x1b7fb1[_0x5a411c(0x277)]))),null;_0xd7501d=_0x1b7fb1['response'][_0x5a411c(0x236)],this[_0x5a411c(0x212)][_0x5a411c(0x28e)](_0x5a411c(0x27f),_0xd7501d),delete this['locationMapper'][_0x5b09d4],delete this[_0x5a411c(0x215)][_0xd7501d],this[_0x5a411c(0x202)][_0x5b09d4]=[],this['breakpointMapper'][_0xd7501d]=[];}else _0xd7501d=this[_0x5a411c(0x222)][this[_0x5a411c(0x202)][_0x5b09d4][0x0]]['id'],this['logger'][_0x5a411c(0x28e)](_0x5a411c(0x23c),_0xd7501d);return this[_0x5a411c(0x202)][_0x5b09d4][_0x5a411c(0x21d)](_0x241277['id']),this[_0x5a411c(0x215)][_0xd7501d][_0x5a411c(0x21d)](_0x241277['id']),{'v8BreakpointId':_0xd7501d,'locationStr':_0x5b09d4};}[a35_0x488d2e(0x279)](_0x46418e,_0x172cf1,_0xfeee8c){const _0x468829=a35_0x488d2e;try{if(!this[_0x468829(0x214)][_0x468829(0x1f3)]['sourceMapDiagnostics'])return;const _0x399a4e=(0x0,fs_1[_0x468829(0x22e)])(_0x46418e,_0x468829(0x209)),_0x49694f=_0x399a4e[_0x468829(0x2a1)](/\r?\n/),_0x5ad85b=_0x172cf1-0x2,_0x38066b=_0x172cf1-0x1,_0x45c449=_0x172cf1;this[_0x468829(0x223)]('lineNumberBefore:\x20'+_0x5ad85b,_0x49694f[_0x5ad85b],_0xfeee8c),this[_0x468829(0x223)](_0x468829(0x289)+_0x38066b,_0x49694f[_0x38066b],_0xfeee8c),this[_0x468829(0x223)](_0x468829(0x298)+_0x45c449,_0x49694f[_0x45c449],_0xfeee8c);}catch(_0xba56fd){this[_0x468829(0x212)]['error'](_0x468829(0x227),_0xba56fd);}}[a35_0x488d2e(0x223)](_0x45edc7,_0xda0726,_0x4fc071){const _0x5b196c=a35_0x488d2e;this[_0x5b196c(0x212)][_0x5b196c(0x28e)](_0x45edc7);if(!_0xda0726){this[_0x5b196c(0x212)]['debug'](_0x5b196c(0x26d));return;}const _0x1431f0=0x12c;_0x4fc071=_0x4fc071||0x0;if(_0xda0726[_0x5b196c(0x27e)]<=_0x1431f0)this[_0x5b196c(0x212)][_0x5b196c(0x28e)](_0x5b196c(0x296)+_0xda0726+_0x5b196c(0x241)+_0x4fc071);else{if(_0xda0726[_0x5b196c(0x27e)]>_0x4fc071){const _0x5ab58f=_0xda0726['substring'](_0x4fc071,_0x1431f0);this[_0x5b196c(0x212)][_0x5b196c(0x28e)](_0x5b196c(0x20f)+_0x1431f0+_0x5b196c(0x21b)+_0x4fc071+_0x5b196c(0x21f)+_0x5ab58f+'`');}else{this[_0x5b196c(0x212)][_0x5b196c(0x28e)](_0x5b196c(0x2a4)+_0x4fc071+_0x5b196c(0x2a3)+_0xda0726[_0x5b196c(0x27e)]);const _0x3dae33=_0xda0726[_0x5b196c(0x208)](0x0,_0x1431f0);this[_0x5b196c(0x212)][_0x5b196c(0x28e)](_0x5b196c(0x200)+_0x1431f0+_0x5b196c(0x23e)+_0x3dae33);}}}[a35_0x488d2e(0x1f1)](_0x30c123,_0x3dfe5c){const _0x430d4b=a35_0x488d2e,_0x508bcd=this['config'][_0x430d4b(0x205)],_0x1ff18a=_0x30c123[_0x430d4b(0x22a)];if(_0x1ff18a){const _0x2c4413=process[_0x430d4b(0x2af)](),_0x1f770f=state[_0x430d4b(0x243)](_0x1ff18a,_0x3dfe5c,this[_0x430d4b(0x21c)],!![],_0x508bcd),_0x2fe813=process[_0x430d4b(0x2af)](_0x2c4413);if(!this[_0x430d4b(0x26e)]['ignoreQuota']){const _0x3c8717=this[_0x430d4b(0x24f)](_0x2fe813),_0x1c9887=this[_0x430d4b(0x26e)]['applyConditionQuota'](_0x3c8717,_0x30c123);if(_0x1c9887)return[undefined,_0x1c9887];}if(_0x1f770f[_0x430d4b(0x277)])return this[_0x430d4b(0x212)]['debug'](_0x430d4b(0x295)+_0x1ff18a+_0x430d4b(0x252),_0x1f770f['error']),[undefined,{...utils_1[_0x430d4b(0x1fc)]['ERROR_EVALUATING_CONDITION'],'description':(utils_1['errors'][_0x430d4b(0x270)][_0x430d4b(0x217)]||'')+_0x1f770f[_0x430d4b(0x277)]['description']}];if(!_0x1f770f[_0x430d4b(0x1f5)][_0x430d4b(0x2a7)])return this[_0x430d4b(0x212)][_0x430d4b(0x28e)]('condition\x20'+_0x1ff18a+_0x430d4b(0x262)),[![],undefined];}return[!![],undefined];}[a35_0x488d2e(0x235)](_0x4fa932,_0x5e6ba3,_0x1f6a6b){const _0x5790a1=a35_0x488d2e,[_0x4d4136,_0x276d96]=this[_0x5790a1(0x1f1)](_0x4fa932,_0x1f6a6b[0x0]);if(_0x276d96!==undefined){(0x0,utils_1[_0x5790a1(0x213)])(_0x5e6ba3,_0x4fa932,status_message_1[_0x5790a1(0x2aa)][_0x5790a1(0x290)],_0x276d96);return;}if(_0x4d4136===![])return;const _0x3c9086=process[_0x5790a1(0x2af)]();try{this[_0x5790a1(0x29b)](_0x4fa932,_0x1f6a6b);}catch(_0x52556a){return(0x0,utils_1[_0x5790a1(0x213)])(_0x5e6ba3,_0x4fa932,status_message_1['StatusMessage']['BREAKPOINT_SOURCE_LOCATION'],utils_1[_0x5790a1(0x1fc)][_0x5790a1(0x267)]+_0x52556a);}const _0x12794f=process['hrtime'](_0x3c9086),_0x3f29b6=this[_0x5790a1(0x24f)](_0x12794f);this['quotaManager'][_0x5790a1(0x231)](_0x4fa932['id'],_0x3f29b6),this[_0x5790a1(0x212)][_0x5790a1(0x28e)]((0x0,utils_1[_0x5790a1(0x20c)])('capture\x20time:\x20',_0x12794f)),_0x5e6ba3(null);}[a35_0x488d2e(0x29b)](_0x265f98,_0xe47b41){const _0x32ae26=a35_0x488d2e,_0x7113f=[],_0x59cd66=this;if(_0x265f98['expressions']&&this[_0x32ae26(0x222)][_0x265f98['id']][_0x32ae26(0x25c)])for(let _0x215396=0x0;_0x215396<_0x265f98[_0x32ae26(0x26f)][_0x32ae26(0x27e)];_0x215396++){try{_0x265f98['expressions'][_0x215396]=this[_0x32ae26(0x222)][_0x265f98['id']][_0x32ae26(0x25c)](_0x265f98[_0x32ae26(0x26f)][_0x215396]);}catch(_0x5d38d8){this[_0x32ae26(0x212)][_0x32ae26(0x274)](_0x32ae26(0x210)+_0x265f98[_0x32ae26(0x26f)][_0x215396]+_0x32ae26(0x28c)),_0x7113f[_0x32ae26(0x21d)]({'name':_0x265f98['expressions'][_0x215396],'status':new status_message_1[(_0x32ae26(0x2aa))](status_message_1[_0x32ae26(0x2aa)][_0x32ae26(0x255)],utils_1['errors'][_0x32ae26(0x29f)],!![])}),_0x265f98[_0x32ae26(0x26f)]['splice'](_0x215396,0x1),_0x215396--;}}if(_0x265f98[_0x32ae26(0x24c)]===_0x32ae26(0x221)){if(!_0x265f98[_0x32ae26(0x26f)])_0x265f98[_0x32ae26(0x28b)]=[];else{const _0x351002=_0xe47b41[0x0];_0x265f98[_0x32ae26(0x28b)]=_0x265f98[_0x32ae26(0x26f)]['map'](_0x3c075c=>{const _0x4ace70=_0x32ae26,_0x383db3=state[_0x4ace70(0x243)](_0x3c075c,_0x351002,_0x59cd66[_0x4ace70(0x21c)],!![],this[_0x4ace70(0x214)][_0x4ace70(0x205)]);return _0x383db3[_0x4ace70(0x277)]?_0x383db3['error']:_0x383db3[_0x4ace70(0x1f5)][_0x4ace70(0x2a7)];});}}else{const _0x3b9bb3=state['capture'](_0xe47b41,_0x265f98,this['config'],this[_0x32ae26(0x288)],this[_0x32ae26(0x21c)],this[_0x32ae26(0x273)]);_0x265f98[_0x32ae26(0x216)]&&(0x0,utils_1[_0x32ae26(0x251)])(_0x265f98[_0x32ae26(0x216)]['path'])&&(_0x265f98['location'][_0x32ae26(0x238)]=_0xe47b41[0x0][_0x32ae26(0x216)][_0x32ae26(0x261)]+0x1),_0x265f98['stackFrames']=_0x3b9bb3[_0x32ae26(0x28d)],_0x265f98['variableTable']=_0x3b9bb3[_0x32ae26(0x283)],_0x265f98[_0x32ae26(0x28b)]=_0x7113f[_0x32ae26(0x2ae)](_0x3b9bb3[_0x32ae26(0x28b)]);}}[a35_0x488d2e(0x22f)](_0xf82bdf){const _0x487a4f=a35_0x488d2e;try{if(!_0xf82bdf[_0x487a4f(0x280)])return;const _0x45c759=_0xf82bdf[_0x487a4f(0x280)][0x0],_0x5781b1=this['breakpointMapper'][_0x45c759];if(!_0x5781b1)return;_0x5781b1['forEach'](_0x266501=>{const _0x35f7c4=_0x487a4f;this[_0x35f7c4(0x240)][_0x266501][_0x35f7c4(0x248)]&&(this[_0x35f7c4(0x212)][_0x35f7c4(0x28e)](_0x35f7c4(0x229)+_0x266501),this[_0x35f7c4(0x240)][_0x266501][_0x35f7c4(0x21a)](_0xf82bdf[_0x35f7c4(0x287)]));});}catch(_0x587eb9){this['logger'][_0x487a4f(0x274)](_0x487a4f(0x272)+_0x587eb9);}}['changeToNS'](_0x36a1bc){return _0x36a1bc[0x0]*0x3b9aca00+_0x36a1bc[0x1];}}exports[a35_0x488d2e(0x226)]=InspectorDebugApi;
|
|
1
|
+
const a36_0x36bdda=a36_0x1b38;(function(_0x26f2ab,_0x74fffd){const _0xcaeb61=a36_0x1b38,_0x1ad9c1=_0x26f2ab();while(!![]){try{const _0x48b90e=parseInt(_0xcaeb61(0x259))/0x1+parseInt(_0xcaeb61(0x201))/0x2+-parseInt(_0xcaeb61(0x1e8))/0x3+-parseInt(_0xcaeb61(0x204))/0x4*(parseInt(_0xcaeb61(0x251))/0x5)+-parseInt(_0xcaeb61(0x260))/0x6*(-parseInt(_0xcaeb61(0x1cd))/0x7)+-parseInt(_0xcaeb61(0x1d4))/0x8+parseInt(_0xcaeb61(0x206))/0x9;if(_0x48b90e===_0x74fffd)break;else _0x1ad9c1['push'](_0x1ad9c1['shift']());}catch(_0x3c8806){_0x1ad9c1['push'](_0x1ad9c1['shift']());}}}(a36_0xaf2a,0xb7013));const a36_0x2a5575=(function(){let _0x123aff=!![];return function(_0x1779cf,_0x416464){const _0x3cc6aa=_0x123aff?function(){const _0x17a3da=a36_0x1b38;if(_0x416464){const _0x386c81=_0x416464[_0x17a3da(0x265)](_0x1779cf,arguments);return _0x416464=null,_0x386c81;}}:function(){};return _0x123aff=![],_0x3cc6aa;};}()),a36_0x28e859=a36_0x2a5575(this,function(){const _0x186cb6=a36_0x1b38;return a36_0x28e859[_0x186cb6(0x254)]()['search'](_0x186cb6(0x1f8))[_0x186cb6(0x254)]()[_0x186cb6(0x1eb)](a36_0x28e859)[_0x186cb6(0x1d5)]('(((.+)+)+)+$');});a36_0x28e859();function a36_0xaf2a(){const _0x39af1e=['debug','BreakpointData','isJavaScriptFile','../util/utils','message','breakpoints','stringify','10079629GcrxWV','INVALID_LINE_NUMBER','The\x20whole\x20line:\x20`','isValid','Failed\x20to\x20put\x20the\x20breakpoint\x20in\x20','COULD_NOT_FIND_MAPPING_FILE','onBreakpointHit','744472zCyyOW','search','condition','recovered','DISALLOWED_EXPRESSION','pipingStatus','expressions','readFileSync','forEach','errors','v8BreakpointId','remainingHits','setBreakpointByUrl\x20error:\x20','scriptMapper','breakpointId','Printing\x20','setBreakpointByUrl','enabled','getBreakpointCompiler','ERROR_EVALUATING_CONDITION','3885504UhQIko','lines','Source\x20map\x20is\x20NOT\x20found\x20for\x20','constructor','Unable\x20to\x20compile\x20condition\x20>>\x20','stackFrames','hash','ERROR_COMPILING_CONDITION','Cannot\x20clear\x20breakpoint\x20-\x20no\x20breakpoint\x20data\x20for\x20id\x20','setInternal','../util/validator.js','sourceMapDiagnostics','config','Searching\x20for\x20a\x20script\x20file:\x20','CAPTURE_BREAKPOINT_DATA','maxHitCount','(((.+)+)+)+$','undefined','lineNumberAfterAfter:\x20','Unable\x20to\x20compile\x20watch\x20expression\x20>>\x20','logger','win32','INVALID_BREAKPOINT','setAndStoreBreakpoint','push','25846aFynkU','SYNTAX_ERROR_IN_CONDITION','file:///','16TIvFDZ','locationStr','7255332PuNkRx','Failed\x20to\x20evaluate\x20condition\x20','Found\x20script\x20file:\x20','javascriptFileExtensions','ignoreQuota','internal','../../client/stackdriver/status-message','file','parsedCondition','utf-8','some','length','listener','line','capture','Printing\x20first\x20','__esModule','removeBreakpoint','../state/inspector-state','v8Inspector',':\x20`','EXPRESSION_COMPILING_ERROR','lineNumberBefore:\x20','setErrorStatusAndCallback','Breakpoint\x20is\x20found\x20at\x20a\x20given\x20location.\x20Id:\x20','findScripts','VARIABLE_VALUE','numBreakpoints_','BREAKPOINT_PATH_BLOCKED','resetV8DebuggerThreshold','response','\x20chars\x20from\x20the\x20line:\x0a','callFrames','BREAKPOINT_SOURCE_LOCATION','map','normalize','V8_BREAKPOINT_ERROR','apiBreakpoint','InspectorDebugApi','bind','SOURCE_FILE_NOT_FOUND','Internal\x20V8\x20error\x20on\x20breakpoint\x20event:\x20','isFileIndexed','path','Breakpoint\x20is\x20added\x20to\x20a\x20given\x20location.\x20Id:\x20','lineNumber','captureBreakpointData','includes','\x20lines.\x20Please\x20ensure\x20that\x20the\x20snapshot\x20was\x20set\x20in\x20the\x20same\x20code\x20version\x20as\x20the\x20deployed\x20source.','hitBreakpoints','FileStats.\x20Lines\x20Count:\x20','wait','locationMapper','quotaManager','processCondition','script','quota','sourcemapper','concat','numBreakpoints','blocklistManager','listeners','file://',',\x20line\x20length:\x20','\x20<<','info','breakpointMapper','split','../blocklisting/dummy-blocklist-manager','V8Inspector','DummyBlocklistManager','removeFirstOccurrenceInArray','applyDynamicLogsCPUQuota','replace','BREAKPOINT_CONDITION','446575zUKJhV','cleanupAsyncCallStackInterval','location','toString','hasMappingInfo','object','handleDebugPausedEvent','logMessageFormat','236056wbynyG','./v8inspector','action','set','disable','capture\x20time:\x20','platform','6OEtNpU','\x20evaluated\x20to\x20false\x20-\x20skipping\x20breakpoint','\x20chars\x20starting\x20from\x20column\x20','value','substring','apply','hrtime','enable','extname','formatInterval','shouldUseWellFormattedUrl','fileStats','StatusMessage','applyConditionQuota','V8_BREAKPOINT_CLEAR_ERROR','expressionsEvalTimeoutMillis','fileIndex','log','Installing\x20','variableTable','description','Source\x20map\x20is\x20FOUND\x20for\x20','acorn','shouldBlock','changeToNS','quotaRecoverySeconds','`.\x20column:\x20','printDebugCodeLine','evaluatedExpressions','error','column','LOG','scriptId','evaluate','setBlocklistManager','warn'];a36_0xaf2a=function(){return _0x39af1e;};return a36_0xaf2a();}'use strict';Object['defineProperty'](exports,a36_0x36bdda(0x216),{'value':!![]}),exports[a36_0x36bdda(0x22c)]=exports[a36_0x36bdda(0x1c7)]=void 0x0;const acorn=require(a36_0x36bdda(0x1b8)),path=require(a36_0x36bdda(0x231)),status_message_1=require(a36_0x36bdda(0x20c)),state=require(a36_0x36bdda(0x218)),utils_1=require(a36_0x36bdda(0x1c9)),v8inspector_1=require(a36_0x36bdda(0x25a)),dummy_blocklist_manager_1=require(a36_0x36bdda(0x24a)),fs_1=require('fs');class BreakpointData{constructor(_0x2fc21c,_0x349c50,_0x457c31,_0x25fc84,_0x15f26d,_0x258c87,_0xd99d47,_0x55c83c){const _0x5cbe40=a36_0x36bdda;this['id']=_0x2fc21c,this[_0x5cbe40(0x22b)]=_0x349c50,this[_0x5cbe40(0x20e)]=_0x457c31,this[_0x5cbe40(0x205)]=_0x25fc84,this['compile']=_0x15f26d,this[_0x5cbe40(0x1df)]=_0x258c87,this[_0x5cbe40(0x20a)]=_0xd99d47,this[_0x5cbe40(0x1d9)]=_0x55c83c;}}exports[a36_0x36bdda(0x1c7)]=BreakpointData;class InspectorDebugApi{constructor(_0x45551c,_0x4f78b0,_0x276b7e,_0x41807c,_0x3afa96){const _0x1fc37f=a36_0x36bdda;this[_0x1fc37f(0x1cb)]={},this[_0x1fc37f(0x243)]={},this[_0x1fc37f(0x1e1)]={},this[_0x1fc37f(0x23a)]={},this[_0x1fc37f(0x248)]={},this[_0x1fc37f(0x241)]=0x0,_0x45551c['debug']('Creating\x20InspectorDebugApi'),this[_0x1fc37f(0x252)]=null,this[_0x1fc37f(0x1fc)]=_0x45551c,this[_0x1fc37f(0x1f4)]=_0x4f78b0,this['fileIndex']=_0x276b7e,this[_0x1fc37f(0x23f)]=_0x41807c,this['v8Inspector']=new v8inspector_1[(_0x1fc37f(0x24b))](_0x45551c,!![],this[_0x1fc37f(0x1f4)][_0x1fc37f(0x223)],_0x2cad5b=>{const _0x36765b=_0x1fc37f;this['scriptMapper'][_0x2cad5b[_0x36765b(0x1c2)]]=_0x2cad5b;},_0x972566=>{const _0x5c022d=_0x1fc37f;try{this[_0x5c022d(0x257)](_0x972566);}catch(_0x159017){this['logger'][_0x5c022d(0x1bf)](_0x159017);}},()=>{this['scriptMapper']={};}),this[_0x1fc37f(0x23b)]=_0x3afa96,this[_0x1fc37f(0x242)]=new dummy_blocklist_manager_1[(_0x1fc37f(0x24c))](!![]);}[a36_0x36bdda(0x25c)](_0x5565e5,_0x35fc51){const _0x5d49f6=a36_0x36bdda;if(typeof _0x5565e5?.['id']===_0x5d49f6(0x1f9)||!_0x5565e5[_0x5d49f6(0x253)]?.['path']||!_0x5565e5[_0x5d49f6(0x253)][_0x5d49f6(0x213)])return(0x0,utils_1[_0x5d49f6(0x21d)])(_0x35fc51,_0x5565e5,status_message_1[_0x5d49f6(0x26c)]['UNSPECIFIED'],utils_1[_0x5d49f6(0x1dd)][_0x5d49f6(0x1fe)]);this['logger'][_0x5d49f6(0x1c6)](_0x5d49f6(0x1b4),_0x5565e5?.[_0x5d49f6(0x25b)],_0x5565e5?.[_0x5d49f6(0x253)]?.[_0x5d49f6(0x231)],_0x5565e5?.['location']?.[_0x5d49f6(0x213)]);const _0x26548=path[_0x5d49f6(0x229)](_0x5565e5['location']['path']);if(!this[_0x5d49f6(0x23f)][_0x5d49f6(0x255)](_0x26548)){this[_0x5d49f6(0x1fc)][_0x5d49f6(0x247)](_0x5d49f6(0x1ea),_0x26548);const _0x12d0dd=path[_0x5d49f6(0x268)](_0x26548);if(!this[_0x5d49f6(0x1f4)][_0x5d49f6(0x209)][_0x5d49f6(0x235)](_0x12d0dd)){const _0x422a53=_0x26548[_0x5d49f6(0x264)](0x0,_0x26548[_0x5d49f6(0x211)]-_0x12d0dd['length']),_0x376ebc=this['config'][_0x5d49f6(0x209)][_0x5d49f6(0x228)](_0x1e1096=>_0x422a53+_0x1e1096)[_0x5d49f6(0x210)](_0x2c6eae=>(0x0,utils_1[_0x5d49f6(0x230)])(_0x2c6eae,this[_0x5d49f6(0x1b2)])),_0x3cb80a=_0x376ebc?utils_1[_0x5d49f6(0x1dd)][_0x5d49f6(0x1d2)]:utils_1[_0x5d49f6(0x1dd)][_0x5d49f6(0x22e)];return(0x0,utils_1['setErrorStatusAndCallback'])(_0x35fc51,_0x5565e5,status_message_1[_0x5d49f6(0x26c)][_0x5d49f6(0x227)],_0x3cb80a);}this[_0x5d49f6(0x1f1)](_0x5565e5,null,null,_0x35fc51);}else{this[_0x5d49f6(0x1fc)][_0x5d49f6(0x247)](_0x5d49f6(0x1b7),_0x26548);const {line:_0x334b72}=_0x5565e5['location'],_0x18955e=0x0,_0x24e1c6=this[_0x5d49f6(0x23f)]['mappingInfo'](_0x26548,_0x334b72,_0x18955e);this[_0x5d49f6(0x1fc)]['debug']('mapInfo\x20',_0x24e1c6?.[_0x5d49f6(0x20d)],_0x24e1c6?.['line'],_0x24e1c6?.[_0x5d49f6(0x1c0)]);const _0x2a03ea=(0x0,utils_1[_0x5d49f6(0x1e6)])(_0x5565e5);if(_0x5565e5[_0x5d49f6(0x1d6)]&&_0x2a03ea)try{_0x5565e5[_0x5d49f6(0x1d6)]=_0x2a03ea(_0x5565e5[_0x5d49f6(0x1d6)]);}catch{return this[_0x5d49f6(0x1fc)][_0x5d49f6(0x1c5)](_0x5d49f6(0x1ec)+_0x5565e5[_0x5d49f6(0x1d6)]+_0x5d49f6(0x246)),(0x0,utils_1[_0x5d49f6(0x21d)])(_0x35fc51,_0x5565e5,status_message_1[_0x5d49f6(0x26c)]['BREAKPOINT_CONDITION'],utils_1[_0x5d49f6(0x1dd)][_0x5d49f6(0x1ef)]);}this[_0x5d49f6(0x1f1)](_0x5565e5,_0x24e1c6,_0x2a03ea,_0x35fc51);}}['clear'](_0x589641,_0x144ffd){const _0x4afc0b=a36_0x36bdda;if(typeof _0x589641['id']===_0x4afc0b(0x1f9))return this[_0x4afc0b(0x1fc)][_0x4afc0b(0x1c6)]('Cannot\x20clear\x20breakpoint\x20-\x20id\x20is\x20undefined'),(0x0,utils_1[_0x4afc0b(0x21d)])(_0x144ffd,_0x589641,status_message_1['StatusMessage'][_0x4afc0b(0x250)],utils_1['errors']['V8_BREAKPOINT_CLEAR_ERROR']);const _0x532325=this[_0x4afc0b(0x1cb)][_0x589641['id']];if(!_0x532325)return this[_0x4afc0b(0x1fc)][_0x4afc0b(0x1c6)](_0x4afc0b(0x1f0)+_0x589641['id']),(0x0,utils_1[_0x4afc0b(0x21d)])(_0x144ffd,_0x589641,status_message_1[_0x4afc0b(0x26c)][_0x4afc0b(0x250)],utils_1[_0x4afc0b(0x1dd)][_0x4afc0b(0x26e)]);const {locationStr:_0x111d47}=_0x532325,_0x12e57c=_0x532325['id'];(0x0,utils_1[_0x4afc0b(0x24d)])(this[_0x4afc0b(0x23a)][_0x111d47],_0x589641['id']);this['locationMapper'][_0x111d47][_0x4afc0b(0x211)]===0x0&&delete this['locationMapper'][_0x111d47];(0x0,utils_1['removeFirstOccurrenceInArray'])(this[_0x4afc0b(0x248)][_0x12e57c],_0x589641['id']);this[_0x4afc0b(0x248)][_0x12e57c][_0x4afc0b(0x211)]===0x0&&delete this[_0x4afc0b(0x248)][_0x12e57c];let _0x144545={};!this[_0x4afc0b(0x248)][_0x532325['id']]&&(_0x144545=this[_0x4afc0b(0x219)][_0x4afc0b(0x217)](_0x532325['id'])),delete this['breakpoints'][_0x589641['id']],delete this[_0x4afc0b(0x243)][_0x589641['id']],this[_0x4afc0b(0x241)]--,setImmediate(()=>{const _0x10b8b2=_0x4afc0b;_0x144545[_0x10b8b2(0x1bf)]?_0x144ffd(_0x144545['error']):_0x144ffd(null);});}[a36_0x36bdda(0x239)](_0x514950,_0x164b61){const _0x278549=a36_0x36bdda,_0x383e42=this[_0x278549(0x1d3)][_0x278549(0x22d)](this,_0x514950,_0xcf5cba=>{const _0x52fdfd=_0x278549,_0x1ec4ad=--this[_0x52fdfd(0x1cb)][_0x514950['id']][_0x52fdfd(0x1df)];(_0x1ec4ad<=0x0||_0xcf5cba)&&(this[_0x52fdfd(0x243)][_0x514950['id']][_0x52fdfd(0x1e5)]=![]),_0x164b61(_0xcf5cba??undefined);});this[_0x278549(0x243)][_0x514950['id']]={'enabled':!![],'listener':_0x383e42};}[a36_0x36bdda(0x1b3)](_0x52b2c3,_0x2365fb,_0x3a086b,_0x221acf){const _0xcd600c=a36_0x36bdda,_0x53ee92=this['onBreakpointHit'][_0xcd600c(0x22d)](this,_0x52b2c3,_0x122b7b=>{const _0x462d10=_0xcd600c;if(_0x122b7b){this['listeners'][_0x52b2c3['id']][_0x462d10(0x1e5)]=![],setImmediate(()=>{_0x221acf(_0x122b7b||undefined);});return;}_0x2365fb(_0x52b2c3[_0x462d10(0x258)],_0x52b2c3[_0x462d10(0x1be)]),_0x52b2c3[_0x462d10(0x1be)]=[],_0x3a086b()?this[_0x462d10(0x243)][_0x52b2c3['id']][_0x462d10(0x1e5)]=![]:this[_0x462d10(0x23b)]['needsRecoveryTime'](_0x52b2c3['id'])&&(this[_0x462d10(0x243)][_0x52b2c3['id']]['enabled']=![],setTimeout(()=>{const _0x5e7738=_0x462d10;!_0x3a086b()&&this[_0x5e7738(0x243)][_0x52b2c3['id']]&&(this[_0x5e7738(0x243)][_0x52b2c3['id']]['enabled']=!![]),this['quotaManager'][_0x5e7738(0x1d7)](_0x52b2c3['id']);},this[_0x462d10(0x1f4)][_0x462d10(0x23e)][_0x462d10(0x1bb)]*0x3e8));});this[_0xcd600c(0x243)][_0x52b2c3['id']]={'enabled':!![],'listener':_0x53ee92};}['disconnect'](){const _0x5f1c8f=a36_0x36bdda;this[_0x5f1c8f(0x219)]['detach']();}[a36_0x36bdda(0x267)](){const _0x3cc689=a36_0x36bdda;this[_0x3cc689(0x219)][_0x3cc689(0x267)]();}[a36_0x36bdda(0x25d)](){const _0x577afa=a36_0x36bdda;this[_0x577afa(0x219)][_0x577afa(0x25d)]();}[a36_0x36bdda(0x221)](){const _0x5257c0=a36_0x36bdda;return Object['keys'](this[_0x5257c0(0x1cb)])[_0x5257c0(0x211)];}['numListeners_'](){const _0x3ff999=a36_0x36bdda;return Object['keys'](this[_0x3ff999(0x243)])[_0x3ff999(0x211)];}[a36_0x36bdda(0x1df)](_0x12d8fc){const _0x268915=a36_0x36bdda;return this['breakpoints'][_0x12d8fc][_0x268915(0x1df)];}[a36_0x36bdda(0x1c4)](_0x1dcb4c){const _0x67e1ff=a36_0x36bdda;this[_0x67e1ff(0x242)]=_0x1dcb4c;}[a36_0x36bdda(0x1f1)](_0x411b46,_0x2a210a,_0x5a3247,_0x9cdb58){const _0x47eeb6=a36_0x36bdda;let _0x5d862c=null;if(_0x411b46[_0x47eeb6(0x1d6)])try{_0x5d862c=acorn['parse'](_0x411b46[_0x47eeb6(0x1d6)],{'sourceType':_0x47eeb6(0x23d),'ecmaVersion':0xb});const _0x7962aa=require(_0x47eeb6(0x1f2));if(!_0x7962aa[_0x47eeb6(0x1d0)](_0x5d862c,![]))return(0x0,utils_1[_0x47eeb6(0x21d)])(_0x9cdb58,_0x411b46,status_message_1['StatusMessage'][_0x47eeb6(0x250)],utils_1[_0x47eeb6(0x1dd)][_0x47eeb6(0x1d8)]);}catch(_0x52aa99){return(0x0,utils_1['setErrorStatusAndCallback'])(_0x9cdb58,_0x411b46,status_message_1['StatusMessage'][_0x47eeb6(0x250)],{...utils_1[_0x47eeb6(0x1dd)][_0x47eeb6(0x202)],'parameters':[_0x52aa99[_0x47eeb6(0x1ca)]]});}let _0x245fcf;const _0x2c8e8a=_0x2a210a?_0x2a210a['file']:path[_0x47eeb6(0x229)](_0x411b46[_0x47eeb6(0x253)]['path']);this['logger']['debug'](_0x47eeb6(0x1f5),_0x2c8e8a);const _0x44a14b=(0x0,utils_1[_0x47eeb6(0x21f)])(_0x2c8e8a,this[_0x47eeb6(0x1f4)],this[_0x47eeb6(0x1b2)],this[_0x47eeb6(0x1fc)]);if(_0x44a14b[_0x47eeb6(0x211)]===0x0)return(0x0,utils_1[_0x47eeb6(0x21d)])(_0x9cdb58,_0x411b46,status_message_1['StatusMessage']['BREAKPOINT_SOURCE_LOCATION'],utils_1[_0x47eeb6(0x1dd)]['SOURCE_FILE_NOT_FOUND']);else{if(_0x44a14b[_0x47eeb6(0x211)]===0x1)this[_0x47eeb6(0x1fc)][_0x47eeb6(0x1c6)](_0x47eeb6(0x208),_0x44a14b[0x0]),[_0x245fcf]=_0x44a14b;else return this[_0x47eeb6(0x1fc)][_0x47eeb6(0x1c5)]('Unable\x20to\x20unambiguously\x20find\x20'+_0x2c8e8a+'.\x20Potential\x20matches:\x20'+_0x44a14b),(0x0,utils_1[_0x47eeb6(0x21d)])(_0x9cdb58,_0x411b46,status_message_1[_0x47eeb6(0x26c)]['BREAKPOINT_SOURCE_LOCATION'],utils_1[_0x47eeb6(0x1dd)]['SOURCE_FILE_AMBIGUOUS']);}if(this['blocklistManager'][_0x47eeb6(0x1b9)](_0x245fcf))return(0x0,utils_1[_0x47eeb6(0x21d)])(_0x9cdb58,_0x411b46,status_message_1['StatusMessage'][_0x47eeb6(0x227)],utils_1[_0x47eeb6(0x1dd)][_0x47eeb6(0x222)]);const _0x246a23=_0x2a210a?.[_0x47eeb6(0x1c0)]??_0x411b46[_0x47eeb6(0x253)][_0x47eeb6(0x1c0)]??0x0,_0x5aa9fe=_0x2a210a?_0x2a210a[_0x47eeb6(0x213)]:_0x411b46[_0x47eeb6(0x253)][_0x47eeb6(0x213)],_0xb6a59=this[_0x47eeb6(0x1b2)][_0x47eeb6(0x26b)][_0x245fcf];this['logger']['debug'](_0x47eeb6(0x238),_0xb6a59?.[_0x47eeb6(0x1e9)],'hash:\x20',_0xb6a59?.[_0x47eeb6(0x1ee)]);if(_0x5aa9fe>=_0xb6a59[_0x47eeb6(0x1e9)]||_0x5aa9fe<0x1){const _0x518c54=utils_1[_0x47eeb6(0x1dd)][_0x47eeb6(0x1ce)][_0x47eeb6(0x1b6)]+_0x245fcf,{lines:_0x2e54dd}=this[_0x47eeb6(0x1b2)][_0x47eeb6(0x26b)][_0x245fcf];return(0x0,utils_1[_0x47eeb6(0x21d)])(_0x9cdb58,_0x411b46,status_message_1['StatusMessage'][_0x47eeb6(0x227)],{...utils_1[_0x47eeb6(0x1dd)][_0x47eeb6(0x1ce)],'description':_0x518c54+':'+_0x5aa9fe+'.\x20Loaded\x20script\x20contained\x20'+_0x2e54dd+_0x47eeb6(0x236)});}const _0xf7d083=this[_0x47eeb6(0x1ff)](_0x411b46,_0x5aa9fe,_0x246a23,_0x245fcf);if(!_0xf7d083)return(0x0,utils_1[_0x47eeb6(0x21d)])(_0x9cdb58,_0x411b46,status_message_1[_0x47eeb6(0x26c)][_0x47eeb6(0x227)],utils_1[_0x47eeb6(0x1dd)][_0x47eeb6(0x22a)]);this[_0x47eeb6(0x1cb)][_0x411b46['id']]=new BreakpointData(_0xf7d083[_0x47eeb6(0x1de)],_0x411b46,_0x5d862c,_0xf7d083[_0x47eeb6(0x205)],_0x5a3247,_0x411b46[_0x47eeb6(0x1f7)]||0x1,_0x411b46[_0x47eeb6(0x20a)],_0x411b46[_0x47eeb6(0x1d9)]),this[_0x47eeb6(0x241)]++,setImmediate(()=>{_0x9cdb58(null);});}[a36_0x36bdda(0x1ff)](_0x3ce8be,_0x2e85eb,_0x1c50a2,_0x1def3d){const _0x35abd3=a36_0x36bdda,_0xab0863=JSON['stringify']({'file':_0x1def3d,'line':_0x2e85eb,'column':_0x1c50a2});let _0x454e83;if(!this[_0x35abd3(0x23a)][_0xab0863]){this['inspectScriptForDebug'](_0x1def3d,_0x2e85eb,_0x1c50a2);const _0x3a3dd9=this[_0x35abd3(0x219)][_0x35abd3(0x26a)]()?_0x35abd3(0x244)+_0x1def3d:_0x1def3d,_0x2355db=process[_0x35abd3(0x25f)]===_0x35abd3(0x1fd)?_0x3a3dd9['replace'](/^file:\/\//,_0x35abd3(0x203))[_0x35abd3(0x24f)](/\\/g,'/'):_0x3a3dd9,_0x4727f0=this['v8Inspector'][_0x35abd3(0x1e4)]({'lineNumber':_0x2e85eb-0x1,'url':encodeURI(_0x2355db),'columnNumber':_0x1c50a2});if(_0x4727f0[_0x35abd3(0x1bf)]||!_0x4727f0[_0x35abd3(0x224)])return this['logger'][_0x35abd3(0x1bf)](_0x35abd3(0x1d1)+_0x2355db+':'+_0x2e85eb+',\x20'+(_0x35abd3(0x1e0)+JSON[_0x35abd3(0x1cc)](_0x4727f0[_0x35abd3(0x1bf)]))),null;_0x454e83=_0x4727f0[_0x35abd3(0x224)][_0x35abd3(0x1e2)],this[_0x35abd3(0x1fc)][_0x35abd3(0x247)](_0x35abd3(0x232),_0x454e83),delete this[_0x35abd3(0x23a)][_0xab0863],delete this[_0x35abd3(0x248)][_0x454e83],this[_0x35abd3(0x23a)][_0xab0863]=[],this[_0x35abd3(0x248)][_0x454e83]=[];}else _0x454e83=this[_0x35abd3(0x1cb)][this[_0x35abd3(0x23a)][_0xab0863][0x0]]['id'],this[_0x35abd3(0x1fc)][_0x35abd3(0x247)](_0x35abd3(0x21e),_0x454e83);return this[_0x35abd3(0x23a)][_0xab0863][_0x35abd3(0x200)](_0x3ce8be['id']),this[_0x35abd3(0x248)][_0x454e83][_0x35abd3(0x200)](_0x3ce8be['id']),{'v8BreakpointId':_0x454e83,'locationStr':_0xab0863};}['inspectScriptForDebug'](_0x1c5700,_0x5dc370,_0x23a030){const _0xa0f388=a36_0x36bdda;try{if(!this[_0xa0f388(0x1f4)][_0xa0f388(0x20b)][_0xa0f388(0x1f3)])return;const _0x10f76e=(0x0,fs_1[_0xa0f388(0x1db)])(_0x1c5700,_0xa0f388(0x20f)),_0xa7e536=_0x10f76e[_0xa0f388(0x249)](/\r?\n/),_0x404a2f=_0x5dc370-0x2,_0x332c1f=_0x5dc370-0x1,_0x12890b=_0x5dc370;this[_0xa0f388(0x1bd)](_0xa0f388(0x21c)+_0x404a2f,_0xa7e536[_0x404a2f],_0x23a030),this[_0xa0f388(0x1bd)]('lineNumberAfter:\x20'+_0x332c1f,_0xa7e536[_0x332c1f],_0x23a030),this[_0xa0f388(0x1bd)](_0xa0f388(0x1fa)+_0x12890b,_0xa7e536[_0x12890b],_0x23a030);}catch(_0x2a59f4){this[_0xa0f388(0x1fc)]['error']('inspectScriptForDebug.',_0x2a59f4);}}[a36_0x36bdda(0x1bd)](_0x4bc6c2,_0x9c637c,_0x2be6d5){const _0xe87e94=a36_0x36bdda;this[_0xe87e94(0x1fc)][_0xe87e94(0x1c6)](_0x4bc6c2);if(!_0x9c637c){this[_0xe87e94(0x1fc)][_0xe87e94(0x1c6)]('The\x20line\x20is\x20not\x20found\x20in\x20the\x20script\x20file');return;}const _0x512082=0x12c;_0x2be6d5=_0x2be6d5||0x0;if(_0x9c637c[_0xe87e94(0x211)]<=_0x512082)this[_0xe87e94(0x1fc)]['debug'](_0xe87e94(0x1cf)+_0x9c637c+_0xe87e94(0x1bc)+_0x2be6d5);else{if(_0x9c637c[_0xe87e94(0x211)]>_0x2be6d5){const _0x589df5=_0x9c637c[_0xe87e94(0x264)](_0x2be6d5,_0x512082);this[_0xe87e94(0x1fc)][_0xe87e94(0x1c6)](_0xe87e94(0x1e3)+_0x512082+_0xe87e94(0x262)+_0x2be6d5+_0xe87e94(0x21a)+_0x589df5+'`');}else{this[_0xe87e94(0x1fc)][_0xe87e94(0x1c6)]('Error!\x20Line\x20is\x20shorter\x20then\x20column.\x20Column:\x20'+_0x2be6d5+_0xe87e94(0x245)+_0x9c637c[_0xe87e94(0x211)]);const _0xa07320=_0x9c637c[_0xe87e94(0x264)](0x0,_0x512082);this['logger']['debug'](_0xe87e94(0x215)+_0x512082+_0xe87e94(0x225)+_0xa07320);}}}['processCondition'](_0x2806b7,_0x473786){const _0x4e3e7f=a36_0x36bdda,_0x4d1d86=this[_0x4e3e7f(0x1f4)]['expressionsEvalTimeoutMillis'],{condition:_0x478603}=_0x2806b7;if(_0x478603){const _0x12eaba=process['hrtime'](),_0x3b880c=state['evaluate'](_0x478603,_0x473786,this[_0x4e3e7f(0x219)],!![],_0x4d1d86),_0x7898a6=process[_0x4e3e7f(0x266)](_0x12eaba);if(!this[_0x4e3e7f(0x23b)][_0x4e3e7f(0x20a)]){const _0x1d2b5b=this[_0x4e3e7f(0x1ba)](_0x7898a6),_0x47e0f4=this['quotaManager'][_0x4e3e7f(0x26d)](_0x1d2b5b,_0x2806b7);if(_0x47e0f4)return[undefined,_0x47e0f4];}if(_0x3b880c[_0x4e3e7f(0x1bf)])return this[_0x4e3e7f(0x1fc)][_0x4e3e7f(0x1c6)](_0x4e3e7f(0x207)+_0x478603+'\x20due\x20to\x20error:\x20',_0x3b880c[_0x4e3e7f(0x1bf)]),[undefined,{...utils_1[_0x4e3e7f(0x1dd)][_0x4e3e7f(0x1e7)],'description':(utils_1[_0x4e3e7f(0x1dd)][_0x4e3e7f(0x1e7)][_0x4e3e7f(0x1b6)]??'')+_0x3b880c['error'][_0x4e3e7f(0x1b6)]}];if(!_0x3b880c[_0x4e3e7f(0x256)]['value'])return this[_0x4e3e7f(0x1fc)][_0x4e3e7f(0x1c6)]('condition\x20'+_0x478603+_0x4e3e7f(0x261)),[![],undefined];}return[!![],undefined];}['onBreakpointHit'](_0x47c949,_0x4b3d97,_0x1bbf3){const _0x5d371e=a36_0x36bdda,[_0x5bd1b3,_0x596d93]=this[_0x5d371e(0x23c)](_0x47c949,_0x1bbf3[0x0]);if(_0x596d93!==undefined){(0x0,utils_1[_0x5d371e(0x21d)])(_0x4b3d97,_0x47c949,status_message_1[_0x5d371e(0x26c)][_0x5d371e(0x250)],_0x596d93);return;}if(_0x5bd1b3===![])return;const _0x2e6241=process[_0x5d371e(0x266)]();try{this[_0x5d371e(0x234)](_0x47c949,_0x1bbf3);}catch(_0xacd64f){return(0x0,utils_1[_0x5d371e(0x21d)])(_0x4b3d97,_0x47c949,status_message_1[_0x5d371e(0x26c)][_0x5d371e(0x227)],utils_1[_0x5d371e(0x1dd)][_0x5d371e(0x1f6)]+_0xacd64f);}const _0x23646b=process['hrtime'](_0x2e6241),_0x77d72c=this[_0x5d371e(0x1ba)](_0x23646b);this[_0x5d371e(0x23b)][_0x5d371e(0x24e)](_0x47c949['id'],_0x77d72c),this['logger'][_0x5d371e(0x1c6)]((0x0,utils_1[_0x5d371e(0x269)])(_0x5d371e(0x25e),_0x23646b)),_0x4b3d97(null);}['captureBreakpointData'](_0x4b82e7,_0x1f6742){const _0xf40354=a36_0x36bdda,_0x2cd953=[];if(_0x4b82e7[_0xf40354(0x1da)]&&this[_0xf40354(0x1cb)][_0x4b82e7['id']]['compile'])for(let _0x2cf7b5=0x0;_0x2cf7b5<_0x4b82e7[_0xf40354(0x1da)]['length'];_0x2cf7b5++){try{_0x4b82e7['expressions'][_0x2cf7b5]=this[_0xf40354(0x1cb)][_0x4b82e7['id']]['compile'](_0x4b82e7['expressions'][_0x2cf7b5]);}catch{this[_0xf40354(0x1fc)][_0xf40354(0x1c5)](_0xf40354(0x1fb)+_0x4b82e7[_0xf40354(0x1da)][_0x2cf7b5]+_0xf40354(0x246)),_0x2cd953[_0xf40354(0x200)]({'name':_0x4b82e7[_0xf40354(0x1da)][_0x2cf7b5],'status':new status_message_1[(_0xf40354(0x26c))](status_message_1[_0xf40354(0x26c)][_0xf40354(0x220)],utils_1['errors'][_0xf40354(0x21b)],!![])}),_0x4b82e7[_0xf40354(0x1da)]['splice'](_0x2cf7b5,0x1),_0x2cf7b5--;}}if(_0x4b82e7['action']===_0xf40354(0x1c1)){if(!_0x4b82e7['expressions'])_0x4b82e7[_0xf40354(0x1be)]=[];else{const [_0x57d596]=_0x1f6742;_0x4b82e7[_0xf40354(0x1be)]=_0x4b82e7[_0xf40354(0x1da)][_0xf40354(0x228)](_0x12b515=>{const _0x23562f=_0xf40354,_0x2df948=state[_0x23562f(0x1c3)](_0x12b515,_0x57d596,this[_0x23562f(0x219)],!![],this['config'][_0x23562f(0x1b1)]);return _0x2df948[_0x23562f(0x1bf)]?_0x2df948[_0x23562f(0x1bf)]:_0x2df948[_0x23562f(0x256)][_0x23562f(0x263)];});}}else{const _0x298e6f=state[_0xf40354(0x214)](_0x1f6742,_0x4b82e7,this[_0xf40354(0x1f4)],this[_0xf40354(0x1e1)],this['v8Inspector'],this[_0xf40354(0x242)],this['sourcemapper']);_0x4b82e7['location']&&(0x0,utils_1[_0xf40354(0x1c8)])(_0x4b82e7[_0xf40354(0x253)][_0xf40354(0x231)])&&(_0x4b82e7['location']['line']=_0x1f6742[0x0][_0xf40354(0x253)][_0xf40354(0x233)]+0x1),_0x4b82e7[_0xf40354(0x1ed)]=_0x298e6f['stackFrames'],_0x4b82e7[_0xf40354(0x1b5)]=_0x298e6f[_0xf40354(0x1b5)],_0x4b82e7['evaluatedExpressions']=_0x2cd953[_0xf40354(0x240)](_0x298e6f['evaluatedExpressions']);}}['handleDebugPausedEvent'](_0x45cb5d){const _0x2a0a6c=a36_0x36bdda;try{if(!_0x45cb5d[_0x2a0a6c(0x237)])return;const _0x1a529e=_0x45cb5d[_0x2a0a6c(0x237)][0x0],_0x2e62e2=this[_0x2a0a6c(0x248)][_0x1a529e];if(!_0x2e62e2)return;_0x2e62e2[_0x2a0a6c(0x1dc)](_0x5559ef=>{const _0x15922d=_0x2a0a6c;this[_0x15922d(0x243)][_0x5559ef][_0x15922d(0x1e5)]&&(this[_0x15922d(0x1fc)][_0x15922d(0x1c6)]('>>>breakpoint\x20hit<<<\x20number:\x20'+_0x5559ef),this[_0x15922d(0x243)][_0x5559ef][_0x15922d(0x212)](_0x45cb5d[_0x15922d(0x226)]));});}catch(_0x49c2a2){this['logger']['warn'](_0x2a0a6c(0x22f)+_0x49c2a2);}}[a36_0x36bdda(0x1ba)](_0x58c9da){return _0x58c9da[0x0]*0x3b9aca00+_0x58c9da[0x1];}}function a36_0x1b38(_0x5dd091,_0x3b6496){const _0x2abd52=a36_0xaf2a();return a36_0x1b38=function(_0x28e859,_0x2a5575){_0x28e859=_0x28e859-0x1b1;let _0xaf2ad1=_0x2abd52[_0x28e859];return _0xaf2ad1;},a36_0x1b38(_0x5dd091,_0x3b6496);}exports[a36_0x36bdda(0x22c)]=InspectorDebugApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a37_0x5d2017=a37_0x1d02;(function(_0x51f922,_0x52b998){const _0x2983ec=a37_0x1d02,_0x51577d=_0x51f922();while(!![]){try{const _0x8a7d7e=-parseInt(_0x2983ec(0x106))/0x1+parseInt(_0x2983ec(0x13b))/0x2*(parseInt(_0x2983ec(0x12f))/0x3)+parseInt(_0x2983ec(0x109))/0x4*(-parseInt(_0x2983ec(0x10d))/0x5)+parseInt(_0x2983ec(0x128))/0x6+parseInt(_0x2983ec(0x131))/0x7+-parseInt(_0x2983ec(0x101))/0x8*(parseInt(_0x2983ec(0x104))/0x9)+parseInt(_0x2983ec(0x132))/0xa*(parseInt(_0x2983ec(0x142))/0xb);if(_0x8a7d7e===_0x52b998)break;else _0x51577d['push'](_0x51577d['shift']());}catch(_0x4a4b1c){_0x51577d['push'](_0x51577d['shift']());}}}(a37_0x175a,0x9d893));const a37_0x298aed=(function(){let _0x1f89e3=!![];return function(_0x2b6300,_0x2b8f06){const _0x973b12=_0x1f89e3?function(){const _0x41e72c=a37_0x1d02;if(_0x2b8f06){const _0x593e70=_0x2b8f06[_0x41e72c(0x135)](_0x2b6300,arguments);return _0x2b8f06=null,_0x593e70;}}:function(){};return _0x1f89e3=![],_0x973b12;};}()),a37_0x46e4fe=a37_0x298aed(this,function(){const _0xe6ec13=a37_0x1d02;return a37_0x46e4fe[_0xe6ec13(0x120)]()[_0xe6ec13(0x138)]('(((.+)+)+)+$')[_0xe6ec13(0x120)]()[_0xe6ec13(0x10b)](a37_0x46e4fe)[_0xe6ec13(0x138)](_0xe6ec13(0x139));});a37_0x46e4fe();'use strict';function a37_0x1d02(_0x1174fe,_0x494eb4){const _0x564d07=a37_0x175a();return a37_0x1d02=function(_0x46e4fe,_0x298aed){_0x46e4fe=_0x46e4fe-0x100;let _0x175aac=_0x564d07[_0x46e4fe];return _0x175aac;},a37_0x1d02(_0x1174fe,_0x494eb4);}Object[a37_0x5d2017(0x110)](exports,a37_0x5d2017(0x118),{'value':!![]}),exports['V8Inspector']=void 0x0;function a37_0x175a(){const _0x196c7d=['logger','488947zLFeFZ','Runtime.releaseObject','keys','28mOTLco','Creating\x20V8Inspector','constructor','attach','338005EuTAmW','callFunctionOn','columnNumber','defineProperty','Debugger.enable','onDetach','shouldUseWellFormattedUrl','removeBreakpoint','resetV8DebuggerThreshold','breakpointId','session','__esModule','length','Debugger.scriptParsed','values','V8Inspector','response','Debugger.setBreakpointByUrl','Error\x20upon\x20re-setting\x20breakpoint:\x20','toString','resetV8DebuggerIfThresholdMet','setBreakpointByUrl:\x20','post','enable','lineNumber','onScriptParsed','prevStoreSetBreakpointParams','4779930MHpoOI','connect','detach','Debugger.disable','storeSetBreakpointParams','disable','Debugger.setBreakpointsActive','237009QMDqCj','onPaused','6985552fVrutQ','4614430IBfwDB','Runtime.evaluate','numPausedBeforeReset','apply','params','error','search','(((.+)+)+)+$','Runtime.getProperties','2RzYihl','setBreakpointByUrl','useWellFormattedUrl','evaluateOnCallFrame','Debugger.removeBreakpoint','getProperties','node:inspector','22zRjrqk','debug','real\x20lineNumber:\x20','24aBDetf','disconnect','releaseObject','3567177gOQEbm'];a37_0x175a=function(){return _0x196c7d;};return a37_0x175a();}const node_inspector_1=require(a37_0x5d2017(0x141));class V8Inspector{constructor(_0x5dc4db,_0x39fc1d,_0x59eae3,_0x29975d,_0x18ef5f,_0x5b443b){const _0x16d3d2=a37_0x5d2017;this['logger']=_0x5dc4db,this[_0x16d3d2(0x13d)]=_0x39fc1d,this[_0x16d3d2(0x115)]=_0x59eae3,this[_0x16d3d2(0x126)]=_0x29975d,this[_0x16d3d2(0x130)]=_0x18ef5f,this[_0x16d3d2(0x112)]=_0x5b443b,this[_0x16d3d2(0x117)]=null,this[_0x16d3d2(0x12c)]={},this['prevStoreSetBreakpointParams']=null,this[_0x16d3d2(0x134)]=0x0,_0x5dc4db[_0x16d3d2(0x143)](_0x16d3d2(0x10a));}[a37_0x5d2017(0x113)](){return this['useWellFormattedUrl'];}[a37_0x5d2017(0x13c)](_0x5d96b3,_0x3bff24=this['prevStoreSetBreakpointParams']!==null){const _0x5d4d33=a37_0x5d2017;_0x3bff24?this[_0x5d4d33(0x124)](![]):this['attach']();this[_0x5d4d33(0x105)][_0x5d4d33(0x143)](_0x5d4d33(0x122),_0x5d96b3?.['url'],_0x5d4d33(0x100),_0x5d96b3?.[_0x5d4d33(0x125)],'column:\x20',_0x5d96b3?.[_0x5d4d33(0x10f)]);const _0x187f69={};return this[_0x5d4d33(0x117)][_0x5d4d33(0x123)](_0x5d4d33(0x11e),_0x5d96b3,(_0x3588d8,_0x1707c8)=>{const _0x350d69=_0x5d4d33;_0x3588d8?_0x187f69[_0x350d69(0x137)]=_0x3588d8:this[_0x350d69(0x12c)][_0x1707c8[_0x350d69(0x116)]]=_0x5d96b3,_0x187f69[_0x350d69(0x11d)]=_0x1707c8;}),_0x3bff24&&(_0x187f69[_0x5d4d33(0x11d)]&&(this[_0x5d4d33(0x127)][_0x187f69[_0x5d4d33(0x11d)][_0x5d4d33(0x116)]]=this['storeSetBreakpointParams'][_0x187f69['response']['breakpointId']]),this[_0x5d4d33(0x12d)](![])),_0x187f69;}[a37_0x5d2017(0x114)](_0x2ec073){const _0x2348c3=a37_0x5d2017;this[_0x2348c3(0x10c)]();const _0x1b21a4={};return this[_0x2348c3(0x117)]['post'](_0x2348c3(0x13f),{'breakpointId':_0x2ec073},_0x57106b=>{const _0x4f055a=_0x2348c3;if(_0x57106b)_0x1b21a4[_0x4f055a(0x137)]=_0x57106b;delete this[_0x4f055a(0x12c)][_0x2ec073],Object[_0x4f055a(0x108)](this['storeSetBreakpointParams'])[_0x4f055a(0x119)]===0x0&&this[_0x4f055a(0x12a)]();}),this[_0x2348c3(0x127)]!==null&&delete this['prevStoreSetBreakpointParams'][_0x2ec073],_0x1b21a4;}[a37_0x5d2017(0x13e)](_0x39ffea){const _0x372e13=a37_0x5d2017;this[_0x372e13(0x10c)]();const _0x4c4b17={};return this[_0x372e13(0x117)]['post']('Debugger.evaluateOnCallFrame',_0x39ffea,(_0x383025,_0x51643c)=>{const _0x5588b7=_0x372e13;if(_0x383025)_0x4c4b17[_0x5588b7(0x137)]=_0x383025;_0x4c4b17[_0x5588b7(0x11d)]=_0x51643c;}),_0x4c4b17;}['evaluate'](_0x2fe624){const _0x37c858=a37_0x5d2017;this[_0x37c858(0x10c)]();const _0x7ba5c1={};return this[_0x37c858(0x117)][_0x37c858(0x123)](_0x37c858(0x133),_0x2fe624,(_0x1fd41f,_0x4eded4)=>{const _0x4fd555=_0x37c858;_0x7ba5c1[_0x4fd555(0x11d)]=_0x4eded4,_0x7ba5c1['error']=_0x1fd41f??undefined;}),_0x7ba5c1;}[a37_0x5d2017(0x10e)](_0x4d3398){const _0x339c7a=a37_0x5d2017;this['attach']();const _0x588bb2={};return this['session'][_0x339c7a(0x123)]('Runtime.callFunctionOn',_0x4d3398,(_0x1eed4c,_0x15b086)=>{const _0x258aef=_0x339c7a;_0x588bb2['response']=_0x15b086,_0x588bb2[_0x258aef(0x137)]=_0x1eed4c??undefined;}),_0x588bb2;}[a37_0x5d2017(0x103)](_0x447808){const _0x533460=a37_0x5d2017;this[_0x533460(0x10c)](),this['session']['post'](_0x533460(0x107),_0x447808);}[a37_0x5d2017(0x140)](_0x518745){const _0x4cadf3=a37_0x5d2017,_0x1eda3a={};return this['attach'](),this[_0x4cadf3(0x117)][_0x4cadf3(0x123)](_0x4cadf3(0x13a),_0x518745,(_0x2fd473,_0x305098)=>{const _0x47c642=_0x4cadf3;if(_0x2fd473)_0x1eda3a[_0x47c642(0x137)]=_0x2fd473;_0x1eda3a[_0x47c642(0x11d)]=_0x305098;}),_0x1eda3a;}[a37_0x5d2017(0x10c)](){const _0x10ab1f=a37_0x5d2017;if(this[_0x10ab1f(0x117)])return;const _0x307f96=new node_inspector_1['Session']();_0x307f96[_0x10ab1f(0x129)](),_0x307f96['on'](_0x10ab1f(0x11a),_0x3144fd=>{const _0x3126e5=_0x10ab1f;this[_0x3126e5(0x126)](_0x3144fd[_0x3126e5(0x136)]);}),_0x307f96[_0x10ab1f(0x123)](_0x10ab1f(0x111)),_0x307f96[_0x10ab1f(0x123)](_0x10ab1f(0x12e),{'active':!![]}),_0x307f96['on']('Debugger.paused',_0x203de6=>{const _0x4f1038=_0x10ab1f;this[_0x4f1038(0x130)](_0x203de6[_0x4f1038(0x136)]),this[_0x4f1038(0x121)]();}),this['session']=_0x307f96;}['enable'](_0x207f49=!![]){const _0x3d2965=a37_0x5d2017;this[_0x3d2965(0x10c)](),this['session']?.[_0x3d2965(0x123)](_0x3d2965(0x111));if(_0x207f49){for(const _0x169195 of Object[_0x3d2965(0x11b)](this[_0x3d2965(0x127)])){const _0x868a16=this[_0x3d2965(0x13c)](_0x169195,![]);(_0x868a16[_0x3d2965(0x137)]||!_0x868a16[_0x3d2965(0x11d)])&&this[_0x3d2965(0x105)][_0x3d2965(0x137)](_0x3d2965(0x11f)+_0x868a16);}this[_0x3d2965(0x127)]=null;}}[a37_0x5d2017(0x12d)](_0x266666=!![]){const _0x2650a7=a37_0x5d2017;if(!this[_0x2650a7(0x117)])return;_0x266666&&(this[_0x2650a7(0x127)]=this[_0x2650a7(0x12c)]),this[_0x2650a7(0x117)][_0x2650a7(0x123)](_0x2650a7(0x12b)),this[_0x2650a7(0x12a)]();}[a37_0x5d2017(0x12a)](){const _0xc6a051=a37_0x5d2017;if(!this[_0xc6a051(0x117)])return;this[_0xc6a051(0x117)][_0xc6a051(0x102)](),this['session']=null,this['storeSetBreakpointParams']={},this[_0xc6a051(0x134)]=0x0,this['onDetach']();}[a37_0x5d2017(0x121)](){const _0x3e67a5=a37_0x5d2017;if(!this[_0x3e67a5(0x117)])return;this[_0x3e67a5(0x134)]+=0x1;if(this['numPausedBeforeReset']<this['resetV8DebuggerThreshold'])return;this[_0x3e67a5(0x134)]=0x0,this[_0x3e67a5(0x12d)](),this['enable']();}}exports[a37_0x5d2017(0x11c)]=V8Inspector;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a38_0x5334(_0x1db92a,_0x19c0d7){const _0x488d7a=a38_0x37c5();return a38_0x5334=function(_0x287b29,_0x1d12d2){_0x287b29=_0x287b29-0x1ea;let _0x37c525=_0x488d7a[_0x287b29];return _0x37c525;},a38_0x5334(_0x1db92a,_0x19c0d7);}const a38_0x5f45b9=a38_0x5334;(function(_0x2ab481,_0x4f1fa0){const _0x3afcaa=a38_0x5334,_0x50a4c7=_0x2ab481();while(!![]){try{const _0x4abfdb=-parseInt(_0x3afcaa(0x1f6))/0x1+parseInt(_0x3afcaa(0x200))/0x2*(parseInt(_0x3afcaa(0x1ec))/0x3)+-parseInt(_0x3afcaa(0x1fe))/0x4+-parseInt(_0x3afcaa(0x1f2))/0x5*(-parseInt(_0x3afcaa(0x1f7))/0x6)+-parseInt(_0x3afcaa(0x1fa))/0x7+parseInt(_0x3afcaa(0x1f3))/0x8*(parseInt(_0x3afcaa(0x202))/0x9)+parseInt(_0x3afcaa(0x1f8))/0xa;if(_0x4abfdb===_0x4f1fa0)break;else _0x50a4c7['push'](_0x50a4c7['shift']());}catch(_0x1500f2){_0x50a4c7['push'](_0x50a4c7['shift']());}}}(a38_0x37c5,0x6220c));const a38_0x1d12d2=(function(){let _0x1102d0=!![];return function(_0x2a8643,_0x5b9886){const _0x1ea4e2=_0x1102d0?function(){if(_0x5b9886){const _0x2125f8=_0x5b9886['apply'](_0x2a8643,arguments);return _0x5b9886=null,_0x2125f8;}}:function(){};return _0x1102d0=![],_0x1ea4e2;};}()),a38_0x287b29=a38_0x1d12d2(this,function(){const _0x3d36ae=a38_0x5334;return a38_0x287b29[_0x3d36ae(0x1f5)]()['search'](_0x3d36ae(0x1f9))[_0x3d36ae(0x1f5)]()[_0x3d36ae(0x1ed)](a38_0x287b29)[_0x3d36ae(0x1f1)](_0x3d36ae(0x1f9));});a38_0x287b29();'use strict';Object[a38_0x5f45b9(0x1ef)](exports,a38_0x5f45b9(0x1fd),{'value':!![]}),exports[a38_0x5f45b9(0x1ff)]=void 0x0;function a38_0x37c5(){const _0x402bc6=['(((.+)+)+)+$','2882999OnkYxE','https://www.googleapis.com/auth/cloud_debugger','Service','__esModule','898608IpwLKQ','Debug','1548thqqgr','version','45wtgFxZ','@google-cloud/common','apiEndpoint','18tXrpwa','constructor','options','defineProperty','packageInfo','search','3598565wSZLuQ','599016umqSLl','https://','toString','621824wcIhij','6LwreBR','5615230HpzyGi'];a38_0x37c5=function(){return _0x402bc6;};return a38_0x37c5();}const common_1=require(a38_0x5f45b9(0x1ea));class Debug extends common_1[a38_0x5f45b9(0x1fc)]{constructor(_0x173130={},_0x65e3c2){const _0x505608=a38_0x5f45b9;if(new.target!==Debug)return new Debug(_0x173130,_0x65e3c2);const _0x3d6d8b={'projectIdRequired':![],'apiEndpoint':_0x173130[_0x505608(0x1eb)],'baseUrl':_0x505608(0x1f4)+_0x173130[_0x505608(0x1eb)],'scopes':[_0x505608(0x1fb)],'packageJson':_0x65e3c2};super(_0x3d6d8b,_0x173130),this[_0x505608(0x1ee)]=_0x173130,this[_0x505608(0x1f0)]={'name':_0x65e3c2['name'],'version':_0x65e3c2[_0x505608(0x201)]};}}exports[a38_0x5f45b9(0x1ff)]=Debug;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a39_0x3e3de5=a39_0x1502;(function(_0x35ed17,_0x5140c1){const _0xc9c0e6=a39_0x1502,_0x4d0331=_0x35ed17();while(!![]){try{const _0xff1430=-parseInt(_0xc9c0e6(0x16b))/0x1+-parseInt(_0xc9c0e6(0x162))/0x2+-parseInt(_0xc9c0e6(0x160))/0x3+parseInt(_0xc9c0e6(0x174))/0x4*(parseInt(_0xc9c0e6(0x16a))/0x5)+parseInt(_0xc9c0e6(0x16d))/0x6+parseInt(_0xc9c0e6(0x16c))/0x7*(-parseInt(_0xc9c0e6(0x170))/0x8)+parseInt(_0xc9c0e6(0x167))/0x9*(parseInt(_0xc9c0e6(0x17b))/0xa);if(_0xff1430===_0x5140c1)break;else _0x4d0331['push'](_0x4d0331['shift']());}catch(_0x3ca103){_0x4d0331['push'](_0x4d0331['shift']());}}}(a39_0x64e0,0x7d1da));function a39_0x1502(_0x269f05,_0x252cb3){const _0x59f7a5=a39_0x64e0();return a39_0x1502=function(_0x27856a,_0x2aa0aa){_0x27856a=_0x27856a-0x160;let _0x64e004=_0x59f7a5[_0x27856a];return _0x64e004;},a39_0x1502(_0x269f05,_0x252cb3);}const a39_0x2aa0aa=(function(){let _0x199ee1=!![];return function(_0x57dfa8,_0x1ae267){const _0x5aae2b=_0x199ee1?function(){const _0x32975a=a39_0x1502;if(_0x1ae267){const _0x3dce02=_0x1ae267[_0x32975a(0x161)](_0x57dfa8,arguments);return _0x1ae267=null,_0x3dce02;}}:function(){};return _0x199ee1=![],_0x5aae2b;};}()),a39_0x27856a=a39_0x2aa0aa(this,function(){const _0x5dedf3=a39_0x1502;return a39_0x27856a[_0x5dedf3(0x17c)]()[_0x5dedf3(0x16e)](_0x5dedf3(0x166))['toString']()[_0x5dedf3(0x175)](a39_0x27856a)[_0x5dedf3(0x16e)]('(((.+)+)+)+$');});a39_0x27856a();function a39_0x64e0(){const _0xe08fb9=['(((.+)+)+)+$','18eXwIiB','BREAKPOINT_AGE','description','29330rSzFDm','471519GSPbkG','1211JQYFOn','1418850rtOITl','search','BREAKPOINT_CONDITION','41984xmzCQv','refersTo','BREAKPOINT_SOURCE_LOCATION','errorId','356lKwfiI','constructor','StatusMessage','VARIABLE_VALUE','BREAKPOINT_EXPRESSION','parameters','isError','10546390hnPhzI','toString','isAccepted','916524WxaYwB','apply','1340844JIwGeV','UNSPECIFIED','defineProperty','VARIABLE_NAME'];a39_0x64e0=function(){return _0xe08fb9;};return a39_0x64e0();}'use strict';Object[a39_0x3e3de5(0x164)](exports,'__esModule',{'value':!![]}),exports[a39_0x3e3de5(0x176)]=void 0x0;class StatusMessage{constructor(_0x54f6a2,_0xb2248a,_0x5677a9,_0x3f0400=![]){const _0x419b06=a39_0x3e3de5,{description:_0x5d7906,id:_0x2934bd,parameters:_0xb4d01f}=_0xb2248a??{};this[_0x419b06(0x171)]=_0x54f6a2,this['description']={'format':_0x5d7906??''},_0x2934bd&&(this[_0x419b06(0x169)][_0x419b06(0x173)]=_0x2934bd),_0xb4d01f&&(this[_0x419b06(0x169)][_0x419b06(0x179)]=_0xb4d01f),this[_0x419b06(0x17a)]=_0x5677a9,this[_0x419b06(0x17d)]=_0x3f0400;}}exports[a39_0x3e3de5(0x176)]=StatusMessage,StatusMessage[a39_0x3e3de5(0x163)]=a39_0x3e3de5(0x163),StatusMessage[a39_0x3e3de5(0x172)]=a39_0x3e3de5(0x172),StatusMessage[a39_0x3e3de5(0x16f)]=a39_0x3e3de5(0x16f),StatusMessage[a39_0x3e3de5(0x178)]=a39_0x3e3de5(0x178),StatusMessage['VARIABLE_NAME']=a39_0x3e3de5(0x165),StatusMessage['VARIABLE_VALUE']=a39_0x3e3de5(0x177),StatusMessage[a39_0x3e3de5(0x168)]='BREAKPOINT_AGE';
|
package/build/src/debuggee.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a40_0x59a4ff=a40_0x451e;(function(_0x5627b6,_0x1eed35){var _0x3a4307=a40_0x451e,_0x2dc672=_0x5627b6();while(!![]){try{var _0x1c0339=-parseInt(_0x3a4307(0x1c9))/0x1+-parseInt(_0x3a4307(0x1ad))/0x2*(parseInt(_0x3a4307(0x1c1))/0x3)+-parseInt(_0x3a4307(0x1b1))/0x4+-parseInt(_0x3a4307(0x1af))/0x5*(parseInt(_0x3a4307(0x1b4))/0x6)+-parseInt(_0x3a4307(0x1c2))/0x7*(-parseInt(_0x3a4307(0x1b5))/0x8)+parseInt(_0x3a4307(0x1c6))/0x9+parseInt(_0x3a4307(0x1c3))/0xa;if(_0x1c0339===_0x1eed35)break;else _0x2dc672['push'](_0x2dc672['shift']());}catch(_0x25d3b7){_0x2dc672['push'](_0x2dc672['shift']());}}}(a40_0x567f,0x9e556));function a40_0x451e(_0x2aa57f,_0x5f5ab3){var _0x42d06f=a40_0x567f();return a40_0x451e=function(_0x54ca9d,_0x118d5a){_0x54ca9d=_0x54ca9d-0x1a8;var _0x567f22=_0x42d06f[_0x54ca9d];return _0x567f22;},a40_0x451e(_0x2aa57f,_0x5f5ab3);}var a40_0x118d5a=(function(){var _0xce7009=!![];return function(_0x1151dc,_0x1d2f0d){var _0x37782b=_0xce7009?function(){if(_0x1d2f0d){var _0x39c9e2=_0x1d2f0d['apply'](_0x1151dc,arguments);return _0x1d2f0d=null,_0x39c9e2;}}:function(){};return _0xce7009=![],_0x37782b;};}()),a40_0x54ca9d=a40_0x118d5a(this,function(){var _0x5eb456=a40_0x451e;return a40_0x54ca9d['toString']()[_0x5eb456(0x1b2)]('(((.+)+)+)+$')['toString']()[_0x5eb456(0x1a9)](a40_0x54ca9d)['search'](_0x5eb456(0x1ac));});a40_0x54ca9d();'use strict';function a40_0x567f(){var _0x4516f4=['sourceContexts','osVersion','7322832alGQbx','uniquifier','runtimeEnvironmentInfo','1051045hHfMAL','host','Debuggee','constructor','isInK8s','runtimeEnvironment','(((.+)+)+)+$','3184bKIdnf','properties.uniquifier\x20must\x20be\x20a\x20string','355orsCPU','systemTotalMemoryBytes','1476116nzctfR','search','string','78534oZyJCq','32wIINTk','agentVersion','isInLambda','__esModule','labels','statusMessage','isInDocker','cpuCoreCount','procArch','runtimeEnvironmentVersion','linuxDistroName','pid','771syhvqq','1042391NyxqcB','19977710oDEpKO'];a40_0x567f=function(){return _0x4516f4;};return a40_0x567f();}Object['defineProperty'](exports,a40_0x59a4ff(0x1b8),{'value':!![]}),exports[a40_0x59a4ff(0x1a8)]=void 0x0;class Debuggee{constructor(_0x2b8d0e){var _0xaa0b83=a40_0x59a4ff;this[_0xaa0b83(0x1ab)]='Node.js';if(!(this instanceof Debuggee))return new Debuggee(_0x2b8d0e);_0x2b8d0e=_0x2b8d0e||{};if(typeof _0x2b8d0e[_0xaa0b83(0x1c7)]!==_0xaa0b83(0x1b3))throw new Error(_0xaa0b83(0x1ae));this[_0xaa0b83(0x1c7)]=_0x2b8d0e['uniquifier'],this['agentVersion']=_0x2b8d0e[_0xaa0b83(0x1b6)],_0x2b8d0e[_0xaa0b83(0x1b9)]&&(this[_0xaa0b83(0x1b9)]=_0x2b8d0e[_0xaa0b83(0x1b9)]),_0x2b8d0e['sourceContexts']&&(this['sourceContexts']=_0x2b8d0e[_0xaa0b83(0x1c4)]),_0x2b8d0e[_0xaa0b83(0x1ba)]&&(this[_0xaa0b83(0x1ba)]=_0x2b8d0e[_0xaa0b83(0x1ba)]),this[_0xaa0b83(0x1ca)]=_0x2b8d0e[_0xaa0b83(0x1ca)],this[_0xaa0b83(0x1c0)]=_0x2b8d0e['pid'],this[_0xaa0b83(0x1bc)]=_0x2b8d0e['cpuCoreCount'],this[_0xaa0b83(0x1b0)]=_0x2b8d0e[_0xaa0b83(0x1b0)],this['agentOS']=_0x2b8d0e['agentOS'],this[_0xaa0b83(0x1c5)]=_0x2b8d0e[_0xaa0b83(0x1c5)],this[_0xaa0b83(0x1be)]=_0x2b8d0e[_0xaa0b83(0x1be)],this[_0xaa0b83(0x1c8)]=_0x2b8d0e[_0xaa0b83(0x1c8)],this[_0xaa0b83(0x1bf)]=_0x2b8d0e[_0xaa0b83(0x1bf)],this[_0xaa0b83(0x1bb)]=_0x2b8d0e[_0xaa0b83(0x1bb)],this[_0xaa0b83(0x1aa)]=_0x2b8d0e['isInK8s'],this[_0xaa0b83(0x1b7)]=_0x2b8d0e[_0xaa0b83(0x1b7)],this['procArch']=_0x2b8d0e[_0xaa0b83(0x1bd)];}}exports['Debuggee']=Debuggee;
|
package/build/src/gcp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a41_0x565969=a41_0x2da7;function a41_0x2da7(_0x1b0b80,_0x17736c){const _0x4c9ed7=a41_0x5959();return a41_0x2da7=function(_0x1f7043,_0x203e81){_0x1f7043=_0x1f7043-0x159;let _0x59597d=_0x4c9ed7[_0x1f7043];return _0x59597d;},a41_0x2da7(_0x1b0b80,_0x17736c);}(function(_0x562816,_0x8b644c){const _0x1536e7=a41_0x2da7,_0x133498=_0x562816();while(!![]){try{const _0x5f1dfa=-parseInt(_0x1536e7(0x186))/0x1+-parseInt(_0x1536e7(0x164))/0x2*(parseInt(_0x1536e7(0x18a))/0x3)+parseInt(_0x1536e7(0x159))/0x4*(-parseInt(_0x1536e7(0x16b))/0x5)+-parseInt(_0x1536e7(0x169))/0x6+-parseInt(_0x1536e7(0x190))/0x7*(-parseInt(_0x1536e7(0x15c))/0x8)+-parseInt(_0x1536e7(0x183))/0x9+parseInt(_0x1536e7(0x175))/0xa;if(_0x5f1dfa===_0x8b644c)break;else _0x133498['push'](_0x133498['shift']());}catch(_0x342548){_0x133498['push'](_0x133498['shift']());}}}(a41_0x5959,0x1a717));const a41_0x203e81=(function(){let _0x72c61e=!![];return function(_0x14c549,_0xfb2d0f){const _0x392aa4=_0x72c61e?function(){const _0x49ea37=a41_0x2da7;if(_0xfb2d0f){const _0x2a0a8f=_0xfb2d0f[_0x49ea37(0x167)](_0x14c549,arguments);return _0xfb2d0f=null,_0x2a0a8f;}}:function(){};return _0x72c61e=![],_0x392aa4;};}()),a41_0x1f7043=a41_0x203e81(this,function(){const _0x3b6a31=a41_0x2da7;return a41_0x1f7043[_0x3b6a31(0x195)]()[_0x3b6a31(0x178)](_0x3b6a31(0x15d))[_0x3b6a31(0x195)]()[_0x3b6a31(0x176)](a41_0x1f7043)[_0x3b6a31(0x178)](_0x3b6a31(0x15d));});a41_0x1f7043();'use strict';Object[a41_0x565969(0x17d)](exports,a41_0x565969(0x191),{'value':!![]}),exports['init']=init,exports['wrap']=wrap,exports[a41_0x565969(0x18f)]=stop;const lightrun=require(a41_0x565969(0x16f)),serverless_1=require(a41_0x565969(0x16d)),DEFAULT_WAIT_FOR_INIT_MS=0x1388;let isDebug=![];const debug=_0x175598=>{const _0x3ca033=a41_0x565969;isDebug&&console[_0x3ca033(0x15a)](_0x3ca033(0x180)+_0x175598);};function a41_0x5959(){const _0x33f73b=['18676arEKaF','__esModule','isStarted','warn','AFTER\x20HANDLER\x20(ASYNC)','toString','asyncStart','Serverless','8JqYaHV','log','ensureStarted','328esfLlP','(((.+)+)+)+$','BREAKPOINTS\x20NOT\x20FETCHED\x20IN\x20TIME','internal','Lightrun\x20GCP\x20wrapper\x20already\x20initialized','BREAKPOINTS\x20FETCHED','STARTING\x20THE\x20AGENT','lightrunInitWaitTimeMs','14624OxidLK','waitForBreakpointsUpdate','init','apply','Failed\x20to\x20wait\x20for\x20transmission\x20queue\x20drain','921966XOFdHS','initPromise','148620DvTzoR','LIGHTRUN\x20GCP\x20WRAPPER\x20STOPPED','./agent/serverless','SKIPPING\x20BREAKPOINTS\x20FETCH','./index','run','AGENT\x20STOPPED','message','Debuglet\x20not\x20found','waitForTransmissionQueueDrain','4816120kMDgAn','constructor','lightrunOptions','search','get','STOPPING\x20LIGHTRUN\x20GCP\x20WRAPPER','BEFORE\x20HANDLER','WAITING\x20FOR\x20EXISTING\x20INIT\x20PROMISE','defineProperty','isRegistered','Failed\x20to\x20start\x20the\x20Lightrun\x20agent','[[\x20LIGHTRUN\x20GCP\x20]]\x20\x20','Failed\x20to\x20wait\x20for\x20transmission\x20queue\x20drain.\x20','waitForBreakpoints','830160NOLHYv','lastAttemptTimestamp','STOPPING\x20THE\x20AGENT','118844SbepSe','wrap','AGENT\x20STARTED','AFTER\x20HANDLER\x20(SYNC)','24iUBquy','now','breakpointsPromise','fetchBreakpointsOnce','gcpDebug','stop'];a41_0x5959=function(){return _0x33f73b;};return a41_0x5959();}class LightrunGcpWrapper{constructor(){const _0x10e909=a41_0x565969;this[_0x10e909(0x192)]=![],this[_0x10e909(0x184)]=null,this['initPromise']=null,this[_0x10e909(0x18c)]=null;}[a41_0x565969(0x166)](_0x3ecf97){const _0x2bc249=a41_0x565969;if(this['lightrunOptions']){console[_0x2bc249(0x193)](_0x2bc249(0x160));return;}this['lightrunOptions']=_0x3ecf97,isDebug=_0x3ecf97?.[_0x2bc249(0x15f)]?.[_0x2bc249(0x18e)]??![];}async[a41_0x565969(0x170)](_0x5e6293,..._0x3bc7bc){const _0x1d79f5=a41_0x565969;await this[_0x1d79f5(0x15b)](),await this['waitForBreakpointsUpdate']();try{debug(_0x1d79f5(0x17b));const _0x355078=_0x5e6293(..._0x3bc7bc);if(_0x355078 instanceof Promise){const _0x119ba2=await _0x355078;return debug(_0x1d79f5(0x194)),_0x119ba2;}else return debug(_0x1d79f5(0x189)),_0x355078;}finally{try{await this['waitForTransmissionQueueDrain']();}catch(_0x20f199){console['error'](_0x1d79f5(0x168),_0x20f199);}}}async[a41_0x565969(0x18f)](){const _0x33cb98=a41_0x565969;if(!this[_0x33cb98(0x192)]){debug('NOTHING\x20TO\x20STOP,\x20AGENT\x20IS\x20NOT\x20STARTED');return;}debug(_0x33cb98(0x185)),lightrun[_0x33cb98(0x18f)](),this['isStarted']=![],this['lastAttemptTimestamp']=null,debug(_0x33cb98(0x171));}async[a41_0x565969(0x15b)](){const _0x48ff66=a41_0x565969;if(this[_0x48ff66(0x192)])return;if(this[_0x48ff66(0x16a)])return debug(_0x48ff66(0x17c)),this[_0x48ff66(0x16a)];return debug(_0x48ff66(0x162)),this[_0x48ff66(0x16a)]=((async()=>{const _0xc7b6a2=_0x48ff66;try{await lightrun[_0xc7b6a2(0x196)]({'lightrunInitWaitTimeMs':DEFAULT_WAIT_FOR_INIT_MS,...this[_0xc7b6a2(0x177)],'internal':{...this[_0xc7b6a2(0x177)]?.[_0xc7b6a2(0x15f)]??{},'isLambda':!![]},'lightrunWaitForInit':!![],'fetchBreakpointsOnce':!![]}),this[_0xc7b6a2(0x192)]=!![],debug(_0xc7b6a2(0x188));}catch(_0x386450){console[_0xc7b6a2(0x15a)](_0xc7b6a2(0x17f)),console['log'](_0x386450);}finally{this[_0xc7b6a2(0x16a)]=null,this[_0xc7b6a2(0x184)]=Date[_0xc7b6a2(0x18b)]();}})()),this['initPromise'];}async[a41_0x565969(0x165)](){const _0x41b0a0=a41_0x565969;if(this[_0x41b0a0(0x18c)])return debug('WAITING\x20FOR\x20EXISTING\x20BREAKPOINTS\x20UPDATE'),this[_0x41b0a0(0x18c)];try{const _0x4ebc5a=lightrun[_0x41b0a0(0x179)]();if(!_0x4ebc5a){console[_0x41b0a0(0x15a)](_0x41b0a0(0x173));return;}const _0x372929=_0x4ebc5a['getClientConnectionTimeoutInSeconds']()??0xa;if(!this[_0x41b0a0(0x184)]||Date[_0x41b0a0(0x18b)]()-this[_0x41b0a0(0x184)]<_0x372929*0x3e8){debug(_0x41b0a0(0x16e));return;}this[_0x41b0a0(0x18c)]=((async()=>{const _0x39da3e=_0x41b0a0;try{_0x4ebc5a[_0x39da3e(0x17e)]()?_0x4ebc5a[_0x39da3e(0x18d)]():(debug('REGISTERING\x20DEBUGGEE'),_0x4ebc5a['register']());const _0x421d81=await lightrun[_0x39da3e(0x179)]()?.[_0x39da3e(0x182)](this[_0x39da3e(0x177)]?.[_0x39da3e(0x163)]??DEFAULT_WAIT_FOR_INIT_MS);_0x421d81?debug(_0x39da3e(0x161)):debug(_0x39da3e(0x15e));}finally{this[_0x39da3e(0x18c)]=null,this[_0x39da3e(0x184)]=Date[_0x39da3e(0x18b)]();}})()),await this[_0x41b0a0(0x18c)];}catch(_0x2ec596){console[_0x41b0a0(0x15a)]('Failed\x20to\x20wait\x20for\x20breakpoints\x20update.\x20'+_0x2ec596?.['message']),this[_0x41b0a0(0x18c)]&&(this[_0x41b0a0(0x18c)]=null);}}async['waitForTransmissionQueueDrain'](){const _0x38ce91=a41_0x565969;try{const _0x214201=0x3e8,_0x151c56=this[_0x38ce91(0x177)]?.[_0x38ce91(0x163)]??_0x214201;await lightrun['get']()?.[_0x38ce91(0x174)](_0x151c56);}catch(_0x518369){console[_0x38ce91(0x15a)](_0x38ce91(0x181)+_0x518369?.[_0x38ce91(0x172)]);}}}const wrapper=new LightrunGcpWrapper();function init(_0x153160){wrapper['init'](_0x153160);}function wrap(_0xf1cbb2){const _0x35d63c=a41_0x565969;return serverless_1[_0x35d63c(0x197)][_0x35d63c(0x187)](async(..._0x2fbb70)=>wrapper[_0x35d63c(0x170)](_0xf1cbb2,..._0x2fbb70));}async function stop(){const _0x3d45c1=a41_0x565969;debug(_0x3d45c1(0x17a)),await wrapper[_0x3d45c1(0x18f)](),debug(_0x3d45c1(0x16c));}
|
package/build/src/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
1
|
import { EventEmitter } from 'events';
|
|
4
2
|
import { GoogleAuthOptions } from '@google-cloud/common';
|
|
5
3
|
import { Service } from '@google-cloud/common';
|
|
6
4
|
|
|
5
|
+
declare type Action = 'CAPTURE' | 'LOG';
|
|
6
|
+
|
|
7
7
|
declare interface AgentCaptureConfig {
|
|
8
8
|
/**
|
|
9
9
|
* Whether to include details about stack frames belonging to node-core.
|
|
@@ -72,6 +72,7 @@ declare interface AgentCaptureConfig {
|
|
|
72
72
|
* limit.
|
|
73
73
|
*/
|
|
74
74
|
maxSnapshotBufferSize: number;
|
|
75
|
+
resolveFrameLocations: boolean;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
declare type AgentLogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
@@ -80,9 +81,9 @@ declare interface AgentMetadata {
|
|
|
80
81
|
filename?: string;
|
|
81
82
|
registration?: {
|
|
82
83
|
displayName?: string;
|
|
83
|
-
tags?:
|
|
84
|
+
tags?: (string | {
|
|
84
85
|
name: string;
|
|
85
|
-
}
|
|
86
|
+
})[];
|
|
86
87
|
};
|
|
87
88
|
}
|
|
88
89
|
|
|
@@ -93,6 +94,33 @@ declare interface AliasContext {
|
|
|
93
94
|
|
|
94
95
|
export declare function asyncStart(options?: DebugAgentConfig | StackdriverConfig): Promise<void>;
|
|
95
96
|
|
|
97
|
+
declare class Breakpoint {
|
|
98
|
+
stackFrames: StackFrame[];
|
|
99
|
+
evaluatedExpressions: (Variable | null)[];
|
|
100
|
+
variableTable: (Variable | null)[];
|
|
101
|
+
id: BreakpointId;
|
|
102
|
+
action?: Action;
|
|
103
|
+
location?: SourceLocation;
|
|
104
|
+
condition?: string;
|
|
105
|
+
expressions?: string[];
|
|
106
|
+
logMessageFormat?: string;
|
|
107
|
+
logLevel?: LogLevel;
|
|
108
|
+
isFinalState?: boolean;
|
|
109
|
+
createTime?: Timestamp;
|
|
110
|
+
expirationSeconds?: number;
|
|
111
|
+
finalTime?: string;
|
|
112
|
+
status?: StatusMessage;
|
|
113
|
+
labels?: Record<string, string>;
|
|
114
|
+
maxHitCount: number;
|
|
115
|
+
ignoreQuota: boolean;
|
|
116
|
+
pipingStatus: Piping;
|
|
117
|
+
expirationTime?: number;
|
|
118
|
+
constructor(apiBreakpoint?: Partial<Breakpoint>);
|
|
119
|
+
toString(): string;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare type BreakpointId = string;
|
|
123
|
+
|
|
96
124
|
declare interface CloudRepoSourceContext {
|
|
97
125
|
cloudRepo: {
|
|
98
126
|
repoId: RepoId;
|
|
@@ -143,11 +171,9 @@ declare class Debug extends Service {
|
|
|
143
171
|
* https://cloud.google.com/debug/}
|
|
144
172
|
*
|
|
145
173
|
* @param options - [Authentication options](#/docs)
|
|
174
|
+
* @param packageJson
|
|
146
175
|
*/
|
|
147
|
-
constructor(options: DebugOptions | undefined, packageJson:
|
|
148
|
-
name: string;
|
|
149
|
-
version: string;
|
|
150
|
-
});
|
|
176
|
+
constructor(options: DebugOptions | undefined, packageJson: PackageInfo);
|
|
151
177
|
}
|
|
152
178
|
|
|
153
179
|
declare type DebugAgentConfig = GoogleAuthOptions & {
|
|
@@ -161,14 +187,14 @@ declare class Debuglet extends EventEmitter {
|
|
|
161
187
|
isReadyManager: IsReady;
|
|
162
188
|
config: ResolvedDebugAgentConfig;
|
|
163
189
|
private fetcherActive;
|
|
164
|
-
private logger;
|
|
190
|
+
private readonly logger;
|
|
165
191
|
private debuggee;
|
|
166
|
-
private activeBreakpointMap;
|
|
192
|
+
private readonly activeBreakpointMap;
|
|
167
193
|
private collectLogRequestId?;
|
|
168
194
|
private pipingManager;
|
|
169
195
|
/**
|
|
170
|
-
* @param
|
|
171
|
-
* @param
|
|
196
|
+
* @param debug - A Debug instance.
|
|
197
|
+
* @param config - The option parameters for the Debuglet.
|
|
172
198
|
* @event 'started' once the startup tasks are completed. Only called once.
|
|
173
199
|
* @event 'stopped' if the agent stops due to a fatal error after starting.
|
|
174
200
|
* Only called once.
|
|
@@ -197,7 +223,7 @@ declare class Debuglet extends EventEmitter {
|
|
|
197
223
|
start(): Promise<void>;
|
|
198
224
|
/**
|
|
199
225
|
* isReady returns a promise that only resolved if the last breakpoint update
|
|
200
|
-
*
|
|
226
|
+
* happened within a duration (PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS). This
|
|
201
227
|
* feature is mainly used in Google Cloud Function (GCF), as it is a
|
|
202
228
|
* serverless environment and we wanted to make sure debug agent always
|
|
203
229
|
* captures the snapshots.
|
|
@@ -213,6 +239,7 @@ declare class Debuglet extends EventEmitter {
|
|
|
213
239
|
* pending operations.
|
|
214
240
|
*/
|
|
215
241
|
stop(): void;
|
|
242
|
+
stringifyBreakpointForInfoLog(breakpoint: Breakpoint): string;
|
|
216
243
|
setCustomLogLevel(agentLogLevel: CustomAgentLogLevel | undefined): void;
|
|
217
244
|
}
|
|
218
245
|
|
|
@@ -230,9 +257,15 @@ declare interface DebugOptions extends GoogleAuthOptions {
|
|
|
230
257
|
* i.e: info = info.bind(this)
|
|
231
258
|
*/
|
|
232
259
|
declare interface DynamicLogger {
|
|
233
|
-
warn
|
|
234
|
-
error
|
|
235
|
-
info
|
|
260
|
+
warn(msg: string): void;
|
|
261
|
+
error(msg: string): void;
|
|
262
|
+
info(msg: string): void;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
declare interface FormatMessage {
|
|
266
|
+
format: string;
|
|
267
|
+
errorId?: number;
|
|
268
|
+
parameters?: string[];
|
|
236
269
|
}
|
|
237
270
|
|
|
238
271
|
declare interface GerritSourceContext {
|
|
@@ -266,16 +299,22 @@ declare interface IsReady {
|
|
|
266
299
|
isReady(): Promise<void>;
|
|
267
300
|
}
|
|
268
301
|
|
|
302
|
+
declare type LogLevel = 'INFO' | 'WARN' | 'ERROR';
|
|
303
|
+
|
|
269
304
|
declare interface PackageInfo {
|
|
270
305
|
name: string;
|
|
271
306
|
version: string;
|
|
272
307
|
}
|
|
273
308
|
|
|
309
|
+
declare type Piping = 'APP_ONLY' | 'PLUGIN_ONLY' | 'BOTH' | 'NOT_SET';
|
|
310
|
+
|
|
274
311
|
declare interface ProjectRepoId {
|
|
275
312
|
projectId: string;
|
|
276
313
|
repoName: string;
|
|
277
314
|
}
|
|
278
315
|
|
|
316
|
+
declare type Reference = 'UNSPECIFIED' | 'BREAKPOINT_SOURCE_LOCATION' | 'BREAKPOINT_CONDITION' | 'BREAKPOINT_EXPRESSION' | 'BREAKPOINT_AGE' | 'VARIABLE_NAME' | 'VARIABLE_VALUE';
|
|
317
|
+
|
|
279
318
|
declare interface RepoId {
|
|
280
319
|
projectRepoId: ProjectRepoId;
|
|
281
320
|
uid: string;
|
|
@@ -415,7 +454,7 @@ declare interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
|
|
|
415
454
|
* for example, the debug agent would know to set the breakpoint in
|
|
416
455
|
* the `/x/y/src/index.js` file.
|
|
417
456
|
*/
|
|
418
|
-
pathResolver
|
|
457
|
+
pathResolver?(scriptPath: string, knownFiles: string[], resolved: string[]): string[] | undefined;
|
|
419
458
|
/**
|
|
420
459
|
* How frequently should the list of breakpoints be refreshed from the cloud
|
|
421
460
|
* debug server.
|
|
@@ -447,7 +486,7 @@ declare interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
|
|
|
447
486
|
logger: DynamicLogger;
|
|
448
487
|
};
|
|
449
488
|
/**
|
|
450
|
-
* These configuration options are for internal
|
|
489
|
+
* These configuration options are for internal experimentation only.
|
|
451
490
|
*/
|
|
452
491
|
internal: {
|
|
453
492
|
registerDelayOnFetcherErrorSec: number;
|
|
@@ -596,10 +635,23 @@ declare interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
|
|
|
596
635
|
};
|
|
597
636
|
}
|
|
598
637
|
|
|
638
|
+
declare interface SourceLocation {
|
|
639
|
+
path: string;
|
|
640
|
+
column?: number;
|
|
641
|
+
line: number;
|
|
642
|
+
}
|
|
643
|
+
|
|
599
644
|
declare interface StackdriverConfig extends GoogleAuthOptions {
|
|
600
645
|
debug?: DebugAgentConfig;
|
|
601
646
|
}
|
|
602
647
|
|
|
648
|
+
declare interface StackFrame {
|
|
649
|
+
function: string;
|
|
650
|
+
location: SourceLocation;
|
|
651
|
+
arguments: Variable[];
|
|
652
|
+
locals: Variable[];
|
|
653
|
+
}
|
|
654
|
+
|
|
603
655
|
/**
|
|
604
656
|
* Start the Debug agent that will make your application available for debugging
|
|
605
657
|
* with Stackdriver Debug.
|
|
@@ -614,9 +666,30 @@ declare interface StackdriverConfig extends GoogleAuthOptions {
|
|
|
614
666
|
*/
|
|
615
667
|
export declare function start(options?: DebugAgentConfig | StackdriverConfig): Debuglet | IsReady | undefined;
|
|
616
668
|
|
|
669
|
+
declare interface StatusMessage {
|
|
670
|
+
isAccepted?: boolean;
|
|
671
|
+
isError: boolean;
|
|
672
|
+
refersTo: Reference;
|
|
673
|
+
description: FormatMessage;
|
|
674
|
+
}
|
|
675
|
+
|
|
617
676
|
declare type StdErrThresholdLevel = AgentLogLevel | 'none';
|
|
618
677
|
|
|
619
678
|
declare function stop_2(): void;
|
|
620
679
|
export { stop_2 as stop }
|
|
621
680
|
|
|
681
|
+
declare interface Timestamp {
|
|
682
|
+
seconds: string;
|
|
683
|
+
nanos: number;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
declare interface Variable {
|
|
687
|
+
varTableIndex?: number;
|
|
688
|
+
name?: string;
|
|
689
|
+
value?: string;
|
|
690
|
+
type?: string;
|
|
691
|
+
members?: Variable[];
|
|
692
|
+
status?: StatusMessage;
|
|
693
|
+
}
|
|
694
|
+
|
|
622
695
|
export { }
|
package/build/src/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a42_0x5071d7=a42_0x2470;(function(_0x313d8b,_0x5b1b14){const _0x37d927=a42_0x2470,_0x3624a2=_0x313d8b();while(!![]){try{const _0x3b57ca=-parseInt(_0x37d927(0x9a))/0x1*(-parseInt(_0x37d927(0x9d))/0x2)+-parseInt(_0x37d927(0xab))/0x3*(-parseInt(_0x37d927(0x98))/0x4)+parseInt(_0x37d927(0x91))/0x5+parseInt(_0x37d927(0xa6))/0x6+-parseInt(_0x37d927(0xa7))/0x7*(-parseInt(_0x37d927(0x8a))/0x8)+parseInt(_0x37d927(0x93))/0x9*(-parseInt(_0x37d927(0x95))/0xa)+-parseInt(_0x37d927(0xa5))/0xb;if(_0x3b57ca===_0x5b1b14)break;else _0x3624a2['push'](_0x3624a2['shift']());}catch(_0x303e9f){_0x3624a2['push'](_0x3624a2['shift']());}}}(a42_0x1839,0x63dbd));const a42_0x1f670e=(function(){let _0x324ea0=!![];return function(_0x4ac126,_0x2da869){const _0x2341ad=_0x324ea0?function(){if(_0x2da869){const _0x18e0f0=_0x2da869['apply'](_0x4ac126,arguments);return _0x2da869=null,_0x18e0f0;}}:function(){};return _0x324ea0=![],_0x2341ad;};}()),a42_0x146aad=a42_0x1f670e(this,function(){const _0x48e68a=a42_0x2470;return a42_0x146aad[_0x48e68a(0x94)]()[_0x48e68a(0x99)](_0x48e68a(0x96))[_0x48e68a(0x94)]()[_0x48e68a(0xa3)](a42_0x146aad)[_0x48e68a(0x99)](_0x48e68a(0x96));});a42_0x146aad();'use strict';Object['defineProperty'](exports,a42_0x5071d7(0xa0),{'value':!![]}),exports['start']=start,exports['stop']=stop,exports[a42_0x5071d7(0x8f)]=asyncStart,exports[a42_0x5071d7(0xa8)]=get;function a42_0x2470(_0x59e008,_0x51bce4){const _0x3f7306=a42_0x1839();return a42_0x2470=function(_0x146aad,_0x1f670e){_0x146aad=_0x146aad-0x88;let _0x183986=_0x3f7306[_0x146aad];return _0x183986;},a42_0x2470(_0x59e008,_0x51bce4);}const debuglet_1=require(a42_0x5071d7(0x89)),debug_1=require(a42_0x5071d7(0x8c)),pjson=require(a42_0x5071d7(0x8b));let debuglet;const isTrue=_0x470c42=>['1',a42_0x5071d7(0x9e)]['includes']((_0x470c42??'')[a42_0x5071d7(0x8d)]());function start(_0x4bd8fe){const _0x7d6bfa=a42_0x5071d7,_0x28f42a=process[_0x7d6bfa(0xa1)][_0x7d6bfa(0x8e)];if(isTrue(_0x28f42a)){console[_0x7d6bfa(0x9c)](_0x7d6bfa(0xa2)+_0x28f42a+_0x7d6bfa(0x88));return;}_0x4bd8fe=_0x4bd8fe??{};const _0x3311ff=mergeConfigs(_0x4bd8fe);if(debuglet&&!_0x3311ff['forceNewAgent_'])console['log'](_0x7d6bfa(0xa9));else{const _0x119927=new debug_1[(_0x7d6bfa(0x9f))](_0x3311ff,pjson);debuglet=new debuglet_1['Debuglet'](_0x119927,_0x3311ff),void debuglet[_0x7d6bfa(0x97)]();}return _0x3311ff[_0x7d6bfa(0x90)]?debuglet:debuglet['isReadyManager'];}function a42_0x1839(){const _0x336743=['./agent/debuglet','1876432cTPqbx','../../package.json','./client/stackdriver/debug','toLowerCase','DISABLE_LIGHTRUN_AGENT','asyncStart','testMode_','3353620TvbFmR','stop','153vfxoyd','toString','201470pMQnKJ','(((.+)+)+)+$','start','4372AoKMSu','search','2DbkCIX','config','log','584404EtWssT','true','Debug','__esModule','env','Env\x20variable\x20DISABLE_LIGHTRUN_AGENT\x20is\x20set\x20to\x20\x22','constructor','lightrunInitWaitTimeMs','17170758wzgWDQ','602058Lsyrqb','7EBFZYy','get','WARNING:\x20Lightrun\x20debug\x20agent\x20has\x20already\x20been\x20started,\x20ignoring\x20this\x20call','debug','1983kbrFyp','\x22.\x20Lightrun\x20agent\x20is\x20disabled.'];a42_0x1839=function(){return _0x336743;};return a42_0x1839();}function stop(){const _0x5ab64a=a42_0x5071d7;debuglet?.[_0x5ab64a(0x92)](),debuglet=null;}async function asyncStart(_0x5d5257){const _0xf8c854=a42_0x5071d7;start(_0x5d5257);if(!debuglet)return;await debuglet['waitForBreakpoints'](debuglet[_0xf8c854(0x9b)][_0xf8c854(0xa4)]);}function mergeConfigs(_0x5277b0){const _0x5a282f=a42_0x5071d7;if(!_0x5277b0['debug'])return _0x5277b0;const _0x44549a=Object['assign']({},_0x5277b0);return delete _0x44549a[_0x5a282f(0xaa)],Object['assign'](_0x44549a,_0x5277b0[_0x5a282f(0xaa)]);}function get(){return debuglet;}
|