lightrun 1.2.2 → 1.3.1
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/README.md +3 -5
- 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.d.ts +20 -13
- package/build/src/agent/config.js +1 -1
- package/build/src/agent/config.js.map +1 -1
- package/build/src/agent/controller.d.ts +1 -0
- package/build/src/agent/controller.js +1 -1
- package/build/src/agent/controller.js.map +1 -1
- package/build/src/agent/debuglet.d.ts +3 -0
- package/build/src/agent/debuglet.js +1 -1
- package/build/src/agent/debuglet.js.map +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.d.ts +4 -1
- package/build/src/agent/quota-manager.js +1 -1
- package/build/src/agent/quota-manager.js.map +1 -1
- package/build/src/agent/state/inspector-state.js +1 -1
- package/build/src/agent/state/legacy-state.js +1 -1
- package/build/src/agent/util/debug-assert.js +1 -1
- package/build/src/agent/util/utils.d.ts +1 -0
- package/build/src/agent/util/utils.js +1 -1
- package/build/src/agent/util/utils.js.map +1 -1
- package/build/src/agent/util/validator.js +1 -1
- package/build/src/agent/v8/debugapi.d.ts +2 -0
- package/build/src/agent/v8/debugapi.js +1 -1
- package/build/src/agent/v8/debugapi.js.map +1 -1
- package/build/src/agent/v8/inspector-debugapi.d.ts +2 -2
- package/build/src/agent/v8/inspector-debugapi.js +1 -1
- package/build/src/agent/v8/inspector-debugapi.js.map +1 -1
- package/build/src/agent/v8/legacy-debugapi.d.ts +2 -0
- package/build/src/agent/v8/legacy-debugapi.js +1 -1
- package/build/src/agent/v8/legacy-debugapi.js.map +1 -1
- package/build/src/agent/v8/v8inspector.d.ts +35 -4
- package/build/src/agent/v8/v8inspector.js +1 -1
- package/build/src/agent/v8/v8inspector.js.map +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/index.d.ts +3 -1
- package/build/src/index.js +1 -1
- package/build/src/index.js.map +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 +2 -2
package/README.md
CHANGED
|
@@ -25,7 +25,6 @@ In order to install the Lightrun Node Agent please follow these steps:
|
|
|
25
25
|
|
|
26
26
|
```javascript
|
|
27
27
|
require('lightrun').start({
|
|
28
|
-
company: '<COMPANY-NAME>',
|
|
29
28
|
lightrunSecret: '<COMPANY-SECRET>',
|
|
30
29
|
});
|
|
31
30
|
```
|
|
@@ -36,12 +35,11 @@ In order to install the Lightrun Node Agent please follow these steps:
|
|
|
36
35
|
import * as lightrun from 'lightrun';
|
|
37
36
|
|
|
38
37
|
lightrun.start({
|
|
39
|
-
company: '<COMPANY-NAME>',
|
|
40
38
|
lightrunSecret: '<COMPANY-SECRET>',
|
|
41
39
|
});
|
|
42
40
|
```
|
|
43
41
|
|
|
44
|
-
You will
|
|
42
|
+
You will have a `<COMPANY-SECRET>` auto-generated for you during the onbaording process, right after signing up for an account.
|
|
45
43
|
### Important Note - Sourcemap Files
|
|
46
44
|
Lightrun for TypeScript needs to have [sourcemap files](https://www.typescriptlang.org/tsconfig#sourceMap) available to it in order to work properly. Please make sure to [set `sourceMap` to `true` when compiling your TypeScript code](https://www.typescriptlang.org/tsconfig#sourceMap).
|
|
47
45
|
|
|
@@ -51,7 +49,7 @@ You should now see the application's agent popping up in the Lightrun Plugin's s
|
|
|
51
49
|
|
|
52
50
|
### Providing Credentials Via Environment Variables
|
|
53
51
|
|
|
54
|
-
You can optionally choose to provide the `<
|
|
52
|
+
You can optionally choose to provide the `<COMPANY-SECRET>` via environment variables to the Node process.
|
|
55
53
|
To do so, follow these steps after installing the agent (**note that this does not work on Windows**):
|
|
56
54
|
|
|
57
55
|
1. Import Lightrun at the start of the file:
|
|
@@ -63,5 +61,5 @@ require('lightrun').start();
|
|
|
63
61
|
2. Run the application with the environment variables provided before the `node` command:
|
|
64
62
|
|
|
65
63
|
```javascript
|
|
66
|
-
LIGHTRUN_SECRET=<COMPANY_SECRET>
|
|
64
|
+
LIGHTRUN_SECRET=<COMPANY_SECRET> node index.js
|
|
67
65
|
```
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a0_0x5343=['689360byHpnv','23itceNh','substring','15445GZRnuZ','968679ycTadi','683009wTQevn','patterns','some','126311miTUlJ','forEach','test','4OWoceq','219287AEJMQw','constructor','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','push','matches','676105qNjMxV','inversePatterns','return\x20/\x22\x20+\x20this\x20+\x20\x22/','BlocklistingPatterns','length','apply','3dHKJBS'];const a0_0x5b4cfc=a0_0x59e1;function a0_0x59e1(_0xa43e1a,_0x3302f5){_0xa43e1a=_0xa43e1a-0x15e;let _0x290ad8=a0_0x5343[_0xa43e1a];return _0x290ad8;}(function(_0x13b8d0,_0x9d82c4){const _0x4b11da=a0_0x59e1;while(!![]){try{const _0x55a354=-parseInt(_0x4b11da(0x163))*parseInt(_0x4b11da(0x161))+-parseInt(_0x4b11da(0x168))*-parseInt(_0x4b11da(0x15f))+-parseInt(_0x4b11da(0x165))+parseInt(_0x4b11da(0x171))+parseInt(_0x4b11da(0x160))+-parseInt(_0x4b11da(0x16c))*-parseInt(_0x4b11da(0x16b))+-parseInt(_0x4b11da(0x164));if(_0x55a354===_0x9d82c4)break;else _0x13b8d0['push'](_0x13b8d0['shift']());}catch(_0x3901f3){_0x13b8d0['push'](_0x13b8d0['shift']());}}}(a0_0x5343,0x960df));const a0_0x239a8c=function(){let _0x447d05=!![];return function(_0x34be44,_0x1f39fa){const _0x33e371=_0x447d05?function(){const _0x5807aa=a0_0x59e1;if(_0x1f39fa){const _0x405a50=_0x1f39fa[_0x5807aa(0x15e)](_0x34be44,arguments);return _0x1f39fa=null,_0x405a50;}}:function(){};return _0x447d05=![],_0x33e371;};}(),a0_0x3cb605=a0_0x239a8c(this,function(){const _0x1dc0c8=function(){const _0x2b5452=a0_0x59e1,_0x250ab6=_0x1dc0c8['constructor'](_0x2b5452(0x173))()[_0x2b5452(0x16d)](_0x2b5452(0x16e));return!_0x250ab6[_0x2b5452(0x16a)](a0_0x3cb605);};return _0x1dc0c8();});a0_0x3cb605();'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a0_0x5b4cfc(0x174)]=void 0x0;class BlocklistingPatterns{constructor(_0x44b0eb){const _0x2a7d4e=a0_0x5b4cfc;this['inversePatterns']=[],this[_0x2a7d4e(0x166)]=[],_0x44b0eb&&_0x44b0eb[_0x2a7d4e(0x169)](_0x3fef98=>{const _0x3b352e=_0x2a7d4e;_0x3fef98&&(_0x3fef98[0x0]==='!'?this[_0x3b352e(0x172)][_0x3b352e(0x16f)](new RegExp(_0x3fef98[_0x3b352e(0x162)](0x1))):this[_0x3b352e(0x166)][_0x3b352e(0x16f)](new RegExp(_0x3fef98)));});}[a0_0x5b4cfc(0x170)](_0x64aabb){const _0x2b547b=a0_0x5b4cfc;let _0x306969=_0x84b465=>_0x64aabb['match'](_0x84b465);return this['inversePatterns'][_0x2b547b(0x175)]!==0x0&&!this['inversePatterns'][_0x2b547b(0x167)](_0x306969)||this[_0x2b547b(0x166)][_0x2b547b(0x167)](_0x306969);}}exports[a0_0x5b4cfc(0x174)]=BlocklistingPatterns;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a1_0x2eec=['729gHmhtp','26ilyvxI','__esModule','1010CPiTLe','shouldBlock','defineProperty','apply','DummyBlocklistManager','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','33416RPTNDU','453998jULliu','847528oGZmpU','8bQQgCL','577oqZdGs','test','839090oCvjft','710618nmXoUS','840FpcvsL'];var a1_0x240832=a1_0x33f2;function a1_0x33f2(_0xd7766f,_0x5739d2){_0xd7766f=_0xd7766f-0x1f0;var _0x480950=a1_0x2eec[_0xd7766f];return _0x480950;}(function(_0x1673b6,_0x901370){var _0x371447=a1_0x33f2;while(!![]){try{var _0x2d6105=-parseInt(_0x371447(0x1fb))*parseInt(_0x371447(0x1f6))+parseInt(_0x371447(0x1fa))*-parseInt(_0x371447(0x1fe))+parseInt(_0x371447(0x1f9))+-parseInt(_0x371447(0x1fc))*parseInt(_0x371447(0x1f2))+-parseInt(_0x371447(0x1f4))+-parseInt(_0x371447(0x1f8))+-parseInt(_0x371447(0x1f3))*-parseInt(_0x371447(0x1f5));if(_0x2d6105===_0x901370)break;else _0x1673b6['push'](_0x1673b6['shift']());}catch(_0x4848eb){_0x1673b6['push'](_0x1673b6['shift']());}}}(a1_0x2eec,0x7e7f7));var a1_0x59cf2c=function(){var _0x47af3e=!![];return function(_0x254799,_0x860a9a){var _0x27a962=_0x47af3e?function(){var _0x302f53=a1_0x33f2;if(_0x860a9a){var _0x5b70ad=_0x860a9a[_0x302f53(0x201)](_0x254799,arguments);return _0x860a9a=null,_0x5b70ad;}}:function(){};return _0x47af3e=![],_0x27a962;};}(),a1_0x1803b5=a1_0x59cf2c(this,function(){var _0x4a8431=function(){var _0x487bf1=a1_0x33f2,_0x11da9a=_0x4a8431['constructor']('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x487bf1(0x1f1));return!_0x11da9a[_0x487bf1(0x1f7)](a1_0x1803b5);};return _0x4a8431();});a1_0x1803b5();'use strict';Object[a1_0x240832(0x200)](exports,a1_0x240832(0x1fd),{'value':!![]}),exports[a1_0x240832(0x1f0)]=void 0x0;class DummyBlocklistManager{constructor(_0x321506){this['value']=_0x321506;}[a1_0x240832(0x1ff)](_0x3d3815){return this['value'];}}exports[a1_0x240832(0x1f0)]=DummyBlocklistManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a2_0x248d=['apply','186773VEintR','PatternsBlocklistManager','matches','24143QpiDsi','blocklistExceptions','isPathInCurrentWorkingDirectory','1vLiloX','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','constructor','1OOgPcf','stripCurrentWorkingDirectory','shouldBlock','74EwNugZ','121567GFmQja','../util/utils','3267OPxLNL','return\x20/\x22\x20+\x20this\x20+\x20\x22/','8zxRXQI','234585OnrkQP','config','blocklist','BlocklistingPatterns','133870TjKiDi','2494DLWOYP','stripWorkingDir','__esModule'];const a2_0x2cbee5=a2_0xb7a2;(function(_0x1de077,_0x517701){const _0x5799a0=a2_0xb7a2;while(!![]){try{const _0x1aabe2=-parseInt(_0x5799a0(0x74))+-parseInt(_0x5799a0(0x79))*-parseInt(_0x5799a0(0x73))+parseInt(_0x5799a0(0x80))+-parseInt(_0x5799a0(0x6f))*-parseInt(_0x5799a0(0x6b))+parseInt(_0x5799a0(0x78))+-parseInt(_0x5799a0(0x68))*parseInt(_0x5799a0(0x7d))+-parseInt(_0x5799a0(0x71))*-parseInt(_0x5799a0(0x6e));if(_0x1aabe2===_0x517701)break;else _0x1de077['push'](_0x1de077['shift']());}catch(_0x74e621){_0x1de077['push'](_0x1de077['shift']());}}}(a2_0x248d,0x1d47c));const a2_0x8988b0=function(){let _0x5a48bd=!![];return function(_0x64428f,_0x45f90a){const _0x5f36c3=_0x5a48bd?function(){const _0x32166e=a2_0xb7a2;if(_0x45f90a){const _0xa89ef9=_0x45f90a[_0x32166e(0x7c)](_0x64428f,arguments);return _0x45f90a=null,_0xa89ef9;}}:function(){};return _0x5a48bd=![],_0x5f36c3;};}(),a2_0xf51ab7=a2_0x8988b0(this,function(){const _0x1bcd6a=function(){const _0x3b753f=a2_0xb7a2,_0x17b5d4=_0x1bcd6a[_0x3b753f(0x6a)](_0x3b753f(0x72))()[_0x3b753f(0x6a)](_0x3b753f(0x69));return!_0x17b5d4['test'](a2_0xf51ab7);};return _0x1bcd6a();});a2_0xf51ab7();'use strict';Object['defineProperty'](exports,a2_0x2cbee5(0x7b),{'value':!![]}),exports['PatternsBlocklistManager']=void 0x0;const blocklisting_patterns_1=require('./blocklisting-patterns'),utils=require(a2_0x2cbee5(0x70));function a2_0xb7a2(_0x43fb93,_0x31eda4){_0x43fb93=_0x43fb93-0x67;let _0x25677d=a2_0x248d[_0x43fb93];return _0x25677d;}class PatternsBlocklistManager{constructor(_0x303137,_0x51081a,_0x4a08a5){const _0x4b08b3=a2_0x2cbee5;this[_0x4b08b3(0x76)]=new blocklisting_patterns_1[(_0x4b08b3(0x77))](_0x303137),this[_0x4b08b3(0x81)]=new blocklisting_patterns_1[(_0x4b08b3(0x77))](_0x51081a),this['config']=_0x4a08a5;}[a2_0x2cbee5(0x6d)](_0x39cf9c){const _0x16041d=a2_0x2cbee5;_0x39cf9c=this[_0x16041d(0x7a)](_0x39cf9c);if(this[_0x16041d(0x81)][_0x16041d(0x7f)](_0x39cf9c))return![];return this['blocklist'][_0x16041d(0x7f)](_0x39cf9c);}[a2_0x2cbee5(0x7a)](_0x3bac67){const _0x528d7d=a2_0x2cbee5;if(utils[_0x528d7d(0x67)](_0x3bac67,this[_0x528d7d(0x75)]))return utils[_0x528d7d(0x6c)](_0x3bac67,this[_0x528d7d(0x75)]);return _0x3bac67;}}exports[a2_0x2cbee5(0x7e)]=PatternsBlocklistManager;
|
|
@@ -255,15 +255,6 @@ export interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
|
|
|
255
255
|
* options affecting log points.
|
|
256
256
|
*/
|
|
257
257
|
log: {
|
|
258
|
-
/**
|
|
259
|
-
* The maximum number of logs to record per second per logpoint.
|
|
260
|
-
*/
|
|
261
|
-
maxLogsPerSecond: number;
|
|
262
|
-
/**
|
|
263
|
-
* Number of seconds to wait after the `maxLogsPerSecond` rate is hit before
|
|
264
|
-
* logging resumes per logpoint.
|
|
265
|
-
*/
|
|
266
|
-
logDelaySeconds: number;
|
|
267
258
|
/**
|
|
268
259
|
* an objects that implements warn, err and info functions. by default this is console.
|
|
269
260
|
*
|
|
@@ -293,10 +284,6 @@ export interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
|
|
|
293
284
|
* The secret of the agent, authenticating it against the server
|
|
294
285
|
*/
|
|
295
286
|
lightrunSecret: string;
|
|
296
|
-
/**
|
|
297
|
-
* The company the agent is part of
|
|
298
|
-
*/
|
|
299
|
-
company: string;
|
|
300
287
|
/**
|
|
301
288
|
* All properties related to agent logging
|
|
302
289
|
*/
|
|
@@ -360,8 +347,28 @@ export interface ResolvedDebugAgentConfig extends GoogleAuthOptions {
|
|
|
360
347
|
* should quota be ignored
|
|
361
348
|
*/
|
|
362
349
|
ignoreQuota: boolean;
|
|
350
|
+
/**
|
|
351
|
+
* seconds needed for recovery from quota exceeded
|
|
352
|
+
*/
|
|
353
|
+
quotaRecoverySeconds: number;
|
|
363
354
|
};
|
|
364
355
|
agentConfigFile: string;
|
|
356
|
+
fetchBreakpointsOnce: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* Number of times the V8 pauses (could be breakpoint hits) before the
|
|
359
|
+
* debugging session is reset. This is to release the memory usage held by V8
|
|
360
|
+
* engine for each breakpoint hit to prevent the memory leak. The default
|
|
361
|
+
* value is specified in defaultConfig.
|
|
362
|
+
*/
|
|
363
|
+
resetV8DebuggerThreshold: number;
|
|
364
|
+
/**
|
|
365
|
+
* Boolean to wait for the debugger to set first breakpoint before starting client's app
|
|
366
|
+
*/
|
|
367
|
+
lightrunWaitForInit: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* Max time to wait for init
|
|
370
|
+
*/
|
|
371
|
+
lightrunInitWaitTimeMs: number;
|
|
365
372
|
}
|
|
366
373
|
export interface StackdriverConfig extends GoogleAuthOptions {
|
|
367
374
|
debug?: DebugAgentConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a3_0x7406=['app.lightrun.com','1159001VHWeDU','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','27841PpQHuU','node_modules/lightrun/build/src/resources/lightrun-self-signed.pem','1376367KLsvQV','.js','37EaFpLT','171pUEGNe','Production','437467WGsJro','defineProperty','constructor','5990ybZGpy','ee80811b38e7e6c2dc4cc372cbea86bd86b446b012e427f2e19bf094afba5d12','/tmp','169KHWuho','4gYvtrB','__esModule','defaultConfig','515a630cfd1fb908e30087bcc20b7413ad146b9bf2b23d3aaa72c28e45b24fb2','2338jqfBks','299774kvCWAC'];var a3_0xba5bee=a3_0x4fe0;(function(_0x20c271,_0x294356){var _0x479b30=a3_0x4fe0;while(!![]){try{var _0x38f797=-parseInt(_0x479b30(0xd1))*parseInt(_0x479b30(0xd8))+-parseInt(_0x479b30(0xca))*parseInt(_0x479b30(0xce))+parseInt(_0x479b30(0xc8))+-parseInt(_0x479b30(0xc6))+-parseInt(_0x479b30(0xdc))*-parseInt(_0x479b30(0xd7))+parseInt(_0x479b30(0xcf))*parseInt(_0x479b30(0xd4))+parseInt(_0x479b30(0xcc));if(_0x38f797===_0x294356)break;else _0x20c271['push'](_0x20c271['shift']());}catch(_0x435119){_0x20c271['push'](_0x20c271['shift']());}}}(a3_0x7406,0xd5a0d));var a3_0x39aeeb=function(){var _0xc46b6b=!![];return function(_0x55f5ef,_0x24bee1){var _0x375a9e=_0xc46b6b?function(){if(_0x24bee1){var _0x1b9ce4=_0x24bee1['apply'](_0x55f5ef,arguments);return _0x24bee1=null,_0x1b9ce4;}}:function(){};return _0xc46b6b=![],_0x375a9e;};}(),a3_0x3e4657=a3_0x39aeeb(this,function(){var _0x365bcc=function(){var _0x2dcea8=a3_0x4fe0,_0x6e590c=_0x365bcc[_0x2dcea8(0xd3)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor'](_0x2dcea8(0xc9));return!_0x6e590c['test'](a3_0x3e4657);};return _0x365bcc();});function a3_0x4fe0(_0x34ccc2,_0x37edc5){_0x34ccc2=_0x34ccc2-0xc6;var _0x1f65df=a3_0x7406[_0x34ccc2];return _0x1f65df;}a3_0x3e4657();'use strict';Object[a3_0xba5bee(0xd2)](exports,a3_0xba5bee(0xd9),{'value':!![]}),exports[a3_0xba5bee(0xda)]=void 0x0,exports['defaultConfig']={'workingDirectory':process['cwd'](),'allowRootAsWorkingDirectory':![],'description':undefined,'allowExpressions':!![],'serviceContext':{'service':undefined,'version':undefined,'minorVersion_':undefined},'appPathRelativeToRepository':undefined,'javascriptFileExtensions':[a3_0xba5bee(0xcd)],'pathResolver':undefined,'breakpointUpdateIntervalSec':0x1e,'breakpointExpirationSec':0x3c*0x3c,'expressionsEvalTimeoutMillis':0x7d0,'capture':{'includeNodeModules':![],'maxFrames':0x14,'maxExpandFrames':0x5,'maxProperties':0xa,'maxDataSize':0x4e20,'maxStringLength':0x64},'log':{'logger':console},'internal':{'registerDelayOnFetcherErrorSec':0x1e,'maxRegistrationRetryDelay':0x28},'forceNewAgent_':![],'testMode_':![],'apiEndpoint':a3_0xba5bee(0xc7),'lightrunSecret':'','agentLog':{'logsPath':a3_0xba5bee(0xd6),'level':'info','collectCooldownMs':0x3e8*0x3c,'maxLogFileBytes':0x400*0x400},'pinnedCerts':[a3_0xba5bee(0xdb),a3_0xba5bee(0xd5)],'noCheckCertificate':![],'caPath':a3_0xba5bee(0xcb),'metadata':{'registration':{'tags':[a3_0xba5bee(0xd0)]}},'transmissionBulkMaxSize':0xa,'quota':{'maxConditionCost':0.01,'maxCPUCost':0.1,'maxDynamicLogRate':0x1e,'maxDynamicLogByteRate':0x5000,'ignoreQuota':![],'quotaRecoverySeconds':0x1},'agentConfigFile':'agent.config','resetV8DebuggerThreshold':0x1e,'fetchBreakpointsOnce':![],'lightrunWaitForInit':![],'lightrunInitWaitTimeMs':0x7d0};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/agent/config.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/agent/config.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AA6bpB,QAAA,aAAa,GAA6B;IACrD,8EAA8E;IAC9E,oEAAoE;IACpE,gBAAgB,EAAE,OAAO,CAAC,GAAG,EAAE;IAC/B,2BAA2B,EAAE,KAAK;IAClC,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE,IAAI;IAEtB,0EAA0E;IAC1E,0DAA0D;IAC1D,cAAc,EAAE;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,SAAS;QAClB,aAAa,EAAE,SAAS;KACzB;IAED,2BAA2B,EAAE,SAAS;IACtC,wBAAwB,EAAE,CAAC,KAAK,CAAC;IACjC,YAAY,EAAE,SAAS;IACvB,2BAA2B,EAAE,EAAE;IAC/B,uBAAuB,EAAE,EAAE,GAAG,EAAE;IAChC,4BAA4B,EAAE,IAAI;IAElC,OAAO,EAAE;QACP,kBAAkB,EAAE,KAAK;QACzB,SAAS,EAAE,EAAE;QACb,eAAe,EAAE,CAAC;QAClB,aAAa,EAAE,EAAE;QACjB,WAAW,EAAE,KAAK;QAClB,eAAe,EAAE,GAAG;KACrB;IAED,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAC;IAEtB,QAAQ,EAAE;QACR,8BAA8B,EAAE,EAAE;QAClC,yBAAyB,EAAE,EAAE;KAC9B;IAED,cAAc,EAAE,KAAK;IACrB,SAAS,EAAE,KAAK;IAEhB,WAAW,EAAE,kBAAkB;IAE/B,kDAAkD;IAClD,cAAc,EAAE,EAAE;IAElB,QAAQ,EAAE;QACR,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,MAAM;QACb,iBAAiB,EAAE,IAAI,GAAG,EAAE;QAC5B,eAAe,EAAE,IAAI,GAAG,IAAI;KAC7B;IAED,WAAW,EAAE;QACX,kEAAkE;QAClE,kEAAkE;KACnE;IACD,kBAAkB,EAAE,KAAK;IACzB,MAAM,EAAE,oEAAoE;IAE5E,QAAQ,EAAE;QACR,YAAY,EAAE;YACZ,IAAI,EAAE,CAAC,YAAY,CAAC;SACrB;KACF;IAED,uBAAuB,EAAE,EAAE;IAE3B,KAAK,EAAE;QACL,gBAAgB,EAAE,IAAI;QACtB,UAAU,EAAE,GAAG;QACf,iBAAiB,EAAE,EAAE;QACrB,qBAAqB,EAAE,KAAK;QAC5B,WAAW,EAAE,KAAK;QAClB,oBAAoB,EAAE,CAAC;KACxB;IAED,eAAe,EAAE,cAAc;IAE/B,wBAAwB,EAAE,EAAE;IAE5B,oBAAoB,EAAE,KAAK;IAE3B,mBAAmB,EAAE,KAAK;IAE1B,sBAAsB,EAAE,IAAI;CAC7B,CAAC"}
|
|
@@ -53,6 +53,7 @@ export declare class Controller extends ServiceObject {
|
|
|
53
53
|
* @param {!Function} callback accepting (err, body)
|
|
54
54
|
*/
|
|
55
55
|
enqueueBreakpointUpdate(debuggee: Debuggee, breakpoint: stackdriver.Breakpoint): void;
|
|
56
|
+
deregister(debuggee: Debuggee, callback: ResponseCallback): void;
|
|
56
57
|
sendBreakpointLogsToServer(debuggee: Debuggee, logs: LogData[], callback: ResponseCallback): void;
|
|
57
58
|
sendAgentLogsToServer(debuggee: Debuggee, requestId: string, logsPath: string): void;
|
|
58
59
|
transmitBreakpointUpdates(debuggeeId: string): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a4_0x2a55=['@google-cloud/common','bind','Certificate\x20Pinning\x20Failed!','error','makeRequest','noCheckCertificate','addCACert','Getting\x20blocklist','response','querystring','createGzip','565236hosqqj','stringify','createReadStream','\x20retry\x20count\x20exceeded\x20maximum\x20-\x20Dropping\x20it','includes','request','lightrunSecret','gaxios','size','shift','/controller','/compressedLogFile/','/breakpoints?','createSecureContext','pubkey','test','sendAgentLogsToServer','extend','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Status\x20code:\x20','358815bSjDUV','Controller','logger','Failed\x20to\x20send\x20log\x20file\x20','tls','nextWaitToken','/breakpoints','62YugoEz','transmissionTimeout','ascii','message','unknown\x20error\x20-\x20request\x20response\x20missing','readFileSync','agentId','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','config','\x20Error:\x20','selfSignedCA','WritableStream','constructor','7003tqSehs','6jErVHP','debuggee','now','js-yaml','invalid\x20response\x20body\x20from\x20server','listBreakpoints','register','1YCFqBW','lastLogCollectionTime','\x20for\x20request\x20id\x20','588246KAVBbA','hex','company','ServiceObject','Compressing\x20and\x20sending\x20log\x20file\x20','pipeline','secureContext','zlib','stream','transmitBreakpointUpdates','length','update','verifyCertificate','assert','caPath','data','max','getBlocklist','collectCooldownMs','then','floor','Successfully\x20sent\x20log\x20file\x20','\x22\x20-\x20ignoring\x20it','__esModule','/debuggees/company/','waitToken','unable\x20to\x20register,\x20status\x20','status','Request\x20to\x20collect\x20and\x20send\x20logs\x20to\x20backend\x20before\x20cooldown\x20reached::\x20remaining','POST','transmissionBulkMaxSize','PUT','apply','apiEndpoint','pinnedCerts','\x20transmitted\x20successfully','load',',\x20Message:\x20','https://','body','warn','memory-streams','210517KsLNWc','sha256','\x20for\x20request\x20','apiUrl','143AgVDzh','31442qrFgWr','Failed\x20to\x20read\x20pem\x20file\x20\x22','push','should\x20have\x20a\x20registered\x20debuggee','info','uri','4943DfTMox','Failed\x20transmitting\x20breakpoint\x20updates\x20for\x20ids:\x20','transmissionQueue','sendBreakpointLogsToServer','Failed\x20transmitting\x20breakpoint\x20logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','\x20seconds','enqueueBreakpointUpdate','return\x20/\x22\x20+\x20this\x20+\x20\x22/','digest','Failed\x20transmitting\x20breakpoint\x20updates,\x20dismissing\x20breakpoints:\x20','Agent','map','maxLogFileBytes','unable\x20to\x20list\x20breakpoints,\x20status\x20code\x20','application/json'];const a4_0x4b4aa4=a4_0x49da;function a4_0x49da(_0x4ea346,_0x410506){_0x4ea346=_0x4ea346-0xe5;let _0x477e9e=a4_0x2a55[_0x4ea346];return _0x477e9e;}(function(_0x3a3c42,_0x37559c){const _0x175721=a4_0x49da;while(!![]){try{const _0x327410=-parseInt(_0x175721(0x11e))*-parseInt(_0x175721(0xf1))+-parseInt(_0x175721(0x156))+parseInt(_0x175721(0x129))*-parseInt(_0x175721(0x15d))+parseInt(_0x175721(0x143))+-parseInt(_0x175721(0xf4))+parseInt(_0x175721(0xea))*-parseInt(_0x175721(0x123))+parseInt(_0x175721(0x122))*parseInt(_0x175721(0xe9));if(_0x327410===_0x37559c)break;else _0x3a3c42['push'](_0x3a3c42['shift']());}catch(_0x332264){_0x3a3c42['push'](_0x3a3c42['shift']());}}}(a4_0x2a55,0x51c9b));const a4_0x3f2075=function(){let _0x35ad75=!![];return function(_0x5b957b,_0x1f9f6d){const _0x55f113=_0x35ad75?function(){const _0x59473a=a4_0x49da;if(_0x1f9f6d){const _0xcf9a4=_0x1f9f6d[_0x59473a(0x114)](_0x5b957b,arguments);return _0x1f9f6d=null,_0xcf9a4;}}:function(){};return _0x35ad75=![],_0x55f113;};}(),a4_0x561d49=a4_0x3f2075(this,function(){const _0x5a0e5e=function(){const _0x807b9d=a4_0x49da,_0x2275b7=_0x5a0e5e[_0x807b9d(0xe8)](_0x807b9d(0x130))()[_0x807b9d(0xe8)](_0x807b9d(0x164));return!_0x2275b7[_0x807b9d(0x152)](a4_0x561d49);};return _0x5a0e5e();});a4_0x561d49();'use strict';Object['defineProperty'](exports,a4_0x4b4aa4(0x10b),{'value':!![]}),exports[a4_0x4b4aa4(0x157)]=void 0x0;const common_1=require(a4_0x4b4aa4(0x138)),assert=require(a4_0x4b4aa4(0x101)),qs=require(a4_0x4b4aa4(0x141)),fs_1=require('fs'),crypto_1=require('crypto'),zlib_1=require(a4_0x4b4aa4(0xfb)),stream_1=require(a4_0x4b4aa4(0xfc)),memory_streams_1=require(a4_0x4b4aa4(0x11d)),tls_1=require(a4_0x4b4aa4(0x15a)),gaxios=require(a4_0x4b4aa4(0x14a)),extend=require(a4_0x4b4aa4(0x154)),https=require('https'),yaml=require(a4_0x4b4aa4(0xed)),MAX_FAILED_SEND_ATTEMPTS=0x5,HTTP_SUCCESS=0xc8,HTTP_UPGRADE_REQUIRED=0x1aa;class Controller extends common_1[a4_0x4b4aa4(0xf7)]{constructor(_0x132ab6,_0x3cb32a,_0x122471){const _0x37bdbc=a4_0x4b4aa4;super({'parent':_0x132ab6,'baseUrl':_0x37bdbc(0x14d)}),this[_0x37bdbc(0x15b)]=null,this[_0x37bdbc(0x163)]=null,this[_0x37bdbc(0x165)]=_0x3cb32a,this[_0x37bdbc(0x12b)]=[],this[_0x37bdbc(0x158)]=_0x122471;if(_0x3cb32a[_0x37bdbc(0x102)])try{this['selfSignedCA']=fs_1[_0x37bdbc(0x162)](_0x3cb32a[_0x37bdbc(0x102)],_0x37bdbc(0x15f));}catch(_0x2cd971){_0x122471[_0x37bdbc(0x11c)](_0x37bdbc(0x124)+_0x3cb32a[_0x37bdbc(0x102)]+_0x37bdbc(0x10a));}this['apiUrl']=_0x37bdbc(0x11a)+_0x3cb32a[_0x37bdbc(0x115)]+_0x37bdbc(0x10c)+_0x3cb32a[_0x37bdbc(0xf6)]+'/';}[a4_0x4b4aa4(0xf0)](_0x180e97,_0x5dd0c0){const _0x37d025=a4_0x4b4aa4,_0x3e0992={'uri':this[_0x37d025(0x121)]+_0x37d025(0xf0),'method':_0x37d025(0x111),'json':!![],'body':{'debuggee':_0x180e97}};this['makeRequest'](_0x3e0992,(_0x44fb74,_0xab4e3e,_0x394394)=>{const _0xbad84d=_0x37d025;if(_0x44fb74)_0x394394[_0xbad84d(0x10f)]===HTTP_UPGRADE_REQUIRED&&(_0x180e97['id']=_0xab4e3e[_0xbad84d(0xeb)]['id']),_0x5dd0c0(_0x44fb74);else{if(_0x394394[_0xbad84d(0x10f)]!==HTTP_SUCCESS)_0x5dd0c0(new Error(_0xbad84d(0x10e)+_0x394394[_0xbad84d(0x10f)]));else!_0xab4e3e[_0xbad84d(0xeb)]?_0x5dd0c0(new Error(_0xbad84d(0xee))):(_0x180e97['id']=_0xab4e3e['debuggee']['id'],this[_0xbad84d(0x163)]=_0xab4e3e[_0xbad84d(0x163)],_0x5dd0c0(null,_0xab4e3e));}});}[a4_0x4b4aa4(0xef)](_0x1a088d,_0x3a4c49){const _0x459b76=a4_0x4b4aa4,_0x24be0a=this;assert(_0x1a088d['id'],'should\x20have\x20a\x20registered\x20debuggee');const _0x188055={'successOnTimeout':!![]};_0x24be0a[_0x459b76(0x15b)]&&(_0x188055[_0x459b76(0x10d)]=_0x24be0a[_0x459b76(0x15b)]);_0x24be0a['agentId']&&(_0x188055['agentId']=_0x24be0a[_0x459b76(0x163)]);const _0x5641e2=this[_0x459b76(0x121)]+encodeURIComponent(_0x1a088d['id'])+_0x459b76(0x14f)+qs[_0x459b76(0x144)](_0x188055);_0x24be0a[_0x459b76(0x13c)]({'uri':_0x5641e2,'json':!![]},(_0x49ef4c,_0x200dc2,_0x5e5de9)=>{const _0x4c9533=_0x459b76;if(!_0x5e5de9){_0x3a4c49(_0x49ef4c||new Error(_0x4c9533(0x161)));return;}else{if(Math[_0x4c9533(0x108)](_0x5e5de9[_0x4c9533(0x10f)]/0x64)!==0x2){_0x3a4c49(new Error(_0x4c9533(0x136)+_0x5e5de9[_0x4c9533(0x10f)]));return;}else _0x200dc2=_0x200dc2||{},_0x24be0a[_0x4c9533(0x15b)]=_0x200dc2[_0x4c9533(0x15b)],_0x3a4c49(null,_0x5e5de9,_0x200dc2);}});}[a4_0x4b4aa4(0x12f)](_0x486baf,_0x4c5616){const _0x2e375e=a4_0x4b4aa4;assert(_0x486baf['id'],'should\x20have\x20a\x20registered\x20debuggee'),this[_0x2e375e(0x12b)][_0x2e375e(0x125)]([_0x4c5616,0x0]);if(!this['transmissionTimeout']){const _0x42136f=this;this[_0x2e375e(0x15e)]=setTimeout(()=>_0x42136f[_0x2e375e(0xfd)][_0x2e375e(0x139)](_0x42136f)(_0x486baf['id']),0x0);}}[a4_0x4b4aa4(0x12c)](_0x1a7338,_0x4da72f,_0x5c5ebf){const _0x3bd3b6=a4_0x4b4aa4,_0x3e0bae=this,_0x4bd6a7=this['apiUrl']+encodeURIComponent(_0x1a7338['id'])+'/log/',_0x711749={'uri':_0x4bd6a7,'method':_0x3bd3b6(0x111),'json':!![],'body':_0x4da72f};this[_0x3bd3b6(0x13c)](_0x711749,(_0x2b5f10,_0x3f0f57,_0x17c7c6)=>{const _0x281bcf=_0x3bd3b6;(!_0x17c7c6||Math['floor'](_0x17c7c6[_0x281bcf(0x10f)]/0x64)!==0x2)&&(_0x3e0bae[_0x281bcf(0x158)][_0x281bcf(0x11c)](_0x281bcf(0x12d)+_0x2b5f10),_0x5c5ebf(_0x2b5f10));});}[a4_0x4b4aa4(0x153)](_0x2e5a03,_0x427a77,_0x5c2f36){const _0x4ebde4=a4_0x4b4aa4;assert(_0x2e5a03['id'],_0x4ebde4(0x126));if(this[_0x4ebde4(0xf2)]){const _0x6366ad=Date[_0x4ebde4(0xec)](),_0x3e7610=this[_0x4ebde4(0xf2)]+this[_0x4ebde4(0x165)]['agentLog'][_0x4ebde4(0x106)];if(_0x6366ad<_0x3e7610){this['logger'][_0x4ebde4(0x127)](_0x4ebde4(0x110)+((_0x3e7610-_0x6366ad)/0x3e8+_0x4ebde4(0x12e)));return;}}const _0x29f89f=fs_1['statSync'](_0x5c2f36)[_0x4ebde4(0x14b)],_0xc5f856=Math[_0x4ebde4(0x104)](0x0,_0x29f89f-this[_0x4ebde4(0x165)]['agentLog'][_0x4ebde4(0x135)]),_0x2f7717=fs_1[_0x4ebde4(0x145)](_0x5c2f36,{'start':_0xc5f856}),_0x21040c=zlib_1[_0x4ebde4(0x142)](),_0x49d469=new memory_streams_1[(_0x4ebde4(0xe7))](),_0x1f2383=this;_0x1f2383[_0x4ebde4(0x158)][_0x4ebde4(0x127)](_0x4ebde4(0xf8)+_0x5c2f36+_0x4ebde4(0xf3)+_0x427a77),stream_1[_0x4ebde4(0xf9)](_0x2f7717,_0x21040c,_0x49d469,_0x34ed25=>{const _0x42e3ca=_0x4ebde4;if(_0x34ed25)_0x1f2383[_0x42e3ca(0x158)][_0x42e3ca(0x13b)]('Failed\x20to\x20zip\x20'+_0x5c2f36+':\x20'+_0x34ed25);else{const _0x481b40={'uri':this['apiUrl']+encodeURIComponent(_0x2e5a03['id'])+_0x42e3ca(0x14e)+_0x427a77,'method':_0x42e3ca(0x113),'body':_0x49d469['toBuffer']()};_0x1f2383[_0x42e3ca(0x13c)](_0x481b40,_0xa88abf=>{const _0x4fddbf=_0x42e3ca;_0xa88abf?_0x1f2383[_0x4fddbf(0x158)][_0x4fddbf(0x13b)](_0x4fddbf(0x159)+_0x5c2f36+_0x4fddbf(0x120)+_0x427a77,_0xa88abf):(_0x1f2383[_0x4fddbf(0x158)][_0x4fddbf(0x127)](_0x4fddbf(0x109)+_0x5c2f36+'\x20for\x20request\x20'+_0x427a77),_0x1f2383['lastLogCollectionTime']=Date['now']());});}});}[a4_0x4b4aa4(0xfd)](_0x1e9b2a){const _0x342994=a4_0x4b4aa4;var _0x3553a4;this['transmissionTimeout']=undefined;const _0x361d08=[];while(_0x361d08[_0x342994(0xfe)]<this[_0x342994(0x165)][_0x342994(0x112)]&&this[_0x342994(0x12b)][_0x342994(0xfe)]>0x0){_0x361d08[_0x342994(0x125)](this[_0x342994(0x12b)][_0x342994(0x14c)]());}if(!_0x361d08)return;const _0x30c132=_0x361d08[_0x342994(0x134)](_0x29bf91=>_0x29bf91[0x0]['id']),_0x4af0bd={'uri':this[_0x342994(0x121)]+encodeURIComponent(_0x1e9b2a)+_0x342994(0x15c),'json':!![],'method':_0x342994(0x113),'body':_0x361d08[_0x342994(0x134)](_0x3531da=>_0x3531da[0x0])},_0x4de2d5=this;try{this[_0x342994(0x13c)](_0x4af0bd,(_0x41e20,_0x2dcdeb,_0x1a873b)=>{const _0x258ced=_0x342994,_0x863e70=_0x1a873b===null||_0x1a873b===void 0x0?void 0x0:_0x1a873b[_0x258ced(0x10f)];if(_0x41e20||!_0x863e70||Math['floor'](_0x863e70/0x64)!==0x2){const _0x4c5aa9=_0x863e70&&(_0x863e70>=0x1f4||_0x863e70===0x198);if(_0x4c5aa9){_0x4de2d5['logger'][_0x258ced(0x11c)](_0x258ced(0x12a)+_0x30c132+_0x258ced(0x155)+_0x863e70+_0x258ced(0xe5)+_0x41e20);for(const _0x2bfb75 of _0x361d08){_0x2bfb75[0x1]<MAX_FAILED_SEND_ATTEMPTS?_0x4de2d5[_0x258ced(0x12b)][_0x258ced(0x125)]([_0x2bfb75[0x0],_0x2bfb75[0x1]+0x1]):_0x4de2d5[_0x258ced(0x158)][_0x258ced(0x11c)]('Breakpoint\x20'+_0x2bfb75[0x0]['id']+_0x258ced(0x146));}}else _0x4de2d5[_0x258ced(0x158)][_0x258ced(0x11c)](_0x258ced(0x132)+_0x30c132+_0x258ced(0x155)+_0x863e70+'\x20Error:\x20'+_0x41e20);}else _0x4de2d5[_0x258ced(0x158)]['info']('Update\x20for\x20breakpoints\x20'+_0x30c132+_0x258ced(0x117));_0x4de2d5[_0x258ced(0x12b)][_0x258ced(0xfe)]>0x0&&(_0x4de2d5[_0x258ced(0x15e)]=setTimeout(()=>_0x4de2d5[_0x258ced(0xfd)][_0x258ced(0x139)](_0x4de2d5)(_0x1e9b2a),0x0));});}catch(_0x4addcf){this[_0x342994(0x158)][_0x342994(0x11c)]('Failed\x20transmitting\x20breakpoint\x20updates,\x20dismissing\x20breakpoints:\x20'+_0x30c132+'.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20'+_0x4addcf+_0x342994(0x119)+((_0x3553a4=_0x4addcf[_0x342994(0x103)])===null||_0x3553a4===void 0x0?void 0x0:_0x3553a4[_0x342994(0x160)])),_0x4de2d5[_0x342994(0x12b)][_0x342994(0xfe)]>0x0&&(_0x4de2d5[_0x342994(0x15e)]=setTimeout(()=>_0x4de2d5[_0x342994(0xfd)][_0x342994(0x139)](_0x4de2d5)(_0x1e9b2a),0x0));}}[a4_0x4b4aa4(0x105)](_0xfb8e3b,_0x57316b){const _0x44eb5b=a4_0x4b4aa4;this[_0x44eb5b(0x158)][_0x44eb5b(0x127)](_0x44eb5b(0x13f));const _0x36f8fb=this[_0x44eb5b(0x121)]+encodeURIComponent(_0xfb8e3b)+'/blacklist?successOnTimeout=true';this['makeRequest']({'uri':_0x36f8fb,'json':!![]},(_0x5edf06,_0x305585,_0x350a61)=>{const _0x2cebb4=_0x44eb5b;if(_0x5edf06)_0x57316b(_0x5edf06);else try{const _0x3f5953=yaml[_0x2cebb4(0x118)](_0x305585);_0x57316b(null,_0x3f5953||{},_0x350a61);}catch(_0x2a7e52){_0x57316b(_0x2a7e52);}});}[a4_0x4b4aa4(0x13c)](_0x180805,_0x3fff5e){const _0x53a324=a4_0x4b4aa4,_0x410e1d={'Content-Type':_0x53a324(0x137),'Authorization':'Bearer\x20'+this['config'][_0x53a324(0x149)]},_0x4a2347={'checkServerIdentity':(_0x32c2c3,_0x1ceeb1)=>this[_0x53a324(0x100)](_0x32c2c3,_0x1ceeb1,this['config'])};if(this['selfSignedCA']){const _0x17c5b6=tls_1[_0x53a324(0x150)](_0x4a2347);_0x17c5b6['context'][_0x53a324(0x13e)](this[_0x53a324(0xe6)]),_0x4a2347[_0x53a324(0xfa)]=_0x17c5b6;}const _0x490cdc={'url':_0x180805[_0x53a324(0x128)],'agent':new https[(_0x53a324(0x133))](_0x4a2347),'data':_0x180805[_0x53a324(0x11b)],'headers':_0x410e1d};extend(!![],_0x490cdc,_0x180805),gaxios[_0x53a324(0x148)](_0x490cdc)[_0x53a324(0x107)](_0x346551=>_0x3fff5e(null,_0x346551['data'],_0x346551))['catch'](_0x349b3e=>{const _0x3bd063=_0x53a324;var _0x2ceda0;return _0x3fff5e(_0x349b3e,(_0x2ceda0=_0x349b3e[_0x3bd063(0x140)])===null||_0x2ceda0===void 0x0?void 0x0:_0x2ceda0['data'],_0x349b3e[_0x3bd063(0x140)]);});}[a4_0x4b4aa4(0x100)](_0x264b8f,_0x5e64be,_0x2e7be1){const _0xd6b5a0=a4_0x4b4aa4;if(_0x2e7be1[_0xd6b5a0(0x13d)])return undefined;const _0x5480d5=crypto_1['createHash'](_0xd6b5a0(0x11f))[_0xd6b5a0(0xff)](_0x5e64be[_0xd6b5a0(0x151)])[_0xd6b5a0(0x131)](_0xd6b5a0(0xf5));return _0x2e7be1[_0xd6b5a0(0x116)][_0xd6b5a0(0x147)](_0x5480d5)?undefined:new Error(_0xd6b5a0(0x13a));}}exports[a4_0x4b4aa4(0x157)]=Controller;
|
|
1
|
+
const a4_0x2b95=['bind','apiUrl','load','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','sendBreakpointLogsToServer','unknown\x20error\x20-\x20request\x20response\x20missing','now','floor','transmitBreakpointUpdates','Failed\x20transmitting\x20breakpoint\x20updates,\x20dismissing\x20breakpoints:\x20','Breakpoint\x20','defineProperty','test','transmissionTimeout','/blacklist?successOnTimeout=true','Failed\x20transmitting\x20breakpoint\x20updates\x20for\x20ids:\x20','collectCooldownMs','crypto','stringify','\x20for\x20request\x20','application/json','PUT','/breakpoints','4NmZuak','querystring','Failed\x20transmitting\x20breakpoint\x20logs,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Error:\x20','\x20Error:\x20','should\x20have\x20a\x20registered\x20debuggee',',\x20Message:\x20','includes','verifyCertificate','apply','71453JNwCjf','data','434267fnNEwg','stream','991012JPSvzS','Successfully\x20sent\x20log\x20file\x20','__esModule','@google-cloud/common','pipeline','https','/controller','tls','update','\x20transmitted\x20successfully','/log/','pinnedCerts','.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Status\x20code:\x20','digest','86CndYQi','catch','/breakpoints?','js-yaml','response','debuggee','memory-streams','invalid\x20response\x20body\x20from\x20server','\x20for\x20request\x20id\x20','ServiceObject','config','register','maxLogFileBytes','info','lastLogCollectionTime','sendAgentLogsToServer','enqueueBreakpointUpdate','secureContext','Failed\x20to\x20read\x20pem\x20file\x20\x22','4001LsbPzQ','Failed\x20to\x20send\x20log\x20file\x20','size','/compressedLogFile/','557972krHfUJ','lightrunSecret','length','statSync','Compressing\x20and\x20sending\x20log\x20file\x20','sha256','caPath','Bearer\x20','logger','createReadStream','Getting\x20blocklist','Certificate\x20Pinning\x20Failed!','\x22\x20-\x20ignoring\x20it','1BOjhFH','https://','/deregister/','transmissionQueue','4BxfvLj','createGzip','toBuffer','then','max','noCheckCertificate','unable\x20to\x20list\x20breakpoints,\x20status\x20code\x20','error','nextWaitToken','Update\x20for\x20breakpoints\x20','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','agentId','shift','3RUAzAe','map','request','gaxios','POST','waitToken','pubkey','25717dqzvUo','constructor','makeRequest','WritableStream','extend','250864XvPXoJ','hex','selfSignedCA','status','createSecureContext','addCACert','push','warn'];const a4_0x530aa2=a4_0x3fe9;(function(_0x39b4a1,_0x25b58b){const _0x5017cf=a4_0x3fe9;while(!![]){try{const _0x5c9009=parseInt(_0x5017cf(0x265))+-parseInt(_0x5017cf(0x1ec))*parseInt(_0x5017cf(0x231))+-parseInt(_0x5017cf(0x238))*-parseInt(_0x5017cf(0x220))+parseInt(_0x5017cf(0x1fc))*-parseInt(_0x5017cf(0x20f))+-parseInt(_0x5017cf(0x1ee))+-parseInt(_0x5017cf(0x224))*-parseInt(_0x5017cf(0x23d))+-parseInt(_0x5017cf(0x25c))*-parseInt(_0x5017cf(0x213));if(_0x5c9009===_0x25b58b)break;else _0x39b4a1['push'](_0x39b4a1['shift']());}catch(_0x373dc2){_0x39b4a1['push'](_0x39b4a1['shift']());}}}(a4_0x2b95,0xa9957));const a4_0x5196d2=function(){let _0x5101c9=!![];return function(_0x262fb2,_0x47fe38){const _0x1d4768=_0x5101c9?function(){const _0x367eab=a4_0x3fe9;if(_0x47fe38){const _0x2b0b01=_0x47fe38[_0x367eab(0x264)](_0x262fb2,arguments);return _0x47fe38=null,_0x2b0b01;}}:function(){};return _0x5101c9=![],_0x1d4768;};}(),a4_0x207cd4=a4_0x5196d2(this,function(){const _0x5707cf=function(){const _0x233be6=a4_0x3fe9,_0x1a29dd=_0x5707cf[_0x233be6(0x239)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()[_0x233be6(0x239)](_0x233be6(0x22e));return!_0x1a29dd[_0x233be6(0x251)](a4_0x207cd4);};return _0x5707cf();});a4_0x207cd4();'use strict';Object[a4_0x530aa2(0x250)](exports,a4_0x530aa2(0x1f0),{'value':!![]}),exports['Controller']=void 0x0;function a4_0x3fe9(_0x4a418b,_0x1f9f19){_0x4a418b=_0x4a418b-0x1ec;let _0x187bfd=a4_0x2b95[_0x4a418b];return _0x187bfd;}const common_1=require(a4_0x530aa2(0x1f1)),assert=require('assert'),qs=require(a4_0x530aa2(0x25d)),fs_1=require('fs'),crypto_1=require(a4_0x530aa2(0x256)),zlib_1=require('zlib'),stream_1=require(a4_0x530aa2(0x1ed)),memory_streams_1=require(a4_0x530aa2(0x202)),tls_1=require(a4_0x530aa2(0x1f5)),gaxios=require(a4_0x530aa2(0x234)),extend=require(a4_0x530aa2(0x23c)),https=require(a4_0x530aa2(0x1f3)),yaml=require(a4_0x530aa2(0x1ff)),MAX_FAILED_SEND_ATTEMPTS=0x5,HTTP_SUCCESS=0xc8,HTTP_UPGRADE_REQUIRED=0x1aa;class Controller extends common_1[a4_0x530aa2(0x205)]{constructor(_0x4a341a,_0x3c5610,_0x97cbf3){const _0x3811c3=a4_0x530aa2;super({'parent':_0x4a341a,'baseUrl':_0x3811c3(0x1f4)}),this[_0x3811c3(0x22c)]=null,this[_0x3811c3(0x22f)]=null,this[_0x3811c3(0x206)]=_0x3c5610,this[_0x3811c3(0x223)]=[],this[_0x3811c3(0x21b)]=_0x97cbf3;if(_0x3c5610[_0x3811c3(0x219)])try{this[_0x3811c3(0x23f)]=fs_1['readFileSync'](_0x3c5610['caPath'],'ascii');}catch(_0x280634){_0x97cbf3['warn'](_0x3811c3(0x20e)+_0x3c5610[_0x3811c3(0x219)]+_0x3811c3(0x21f));}this[_0x3811c3(0x246)]=_0x3811c3(0x221)+_0x3c5610['apiEndpoint']+'/debuggees/';}['register'](_0x2a0068,_0x1af070){const _0x5b8fd3=a4_0x530aa2,_0x1d3dcd={'uri':this[_0x5b8fd3(0x246)]+_0x5b8fd3(0x207),'method':_0x5b8fd3(0x235),'json':!![],'body':{'debuggee':_0x2a0068}};this['makeRequest'](_0x1d3dcd,(_0x5e1707,_0x3fade2,_0x23c837)=>{const _0x28954d=_0x5b8fd3;if(!_0x23c837)_0x1af070(_0x5e1707||new Error(_0x28954d(0x24a)));else{if(_0x5e1707)_0x23c837[_0x28954d(0x240)]===HTTP_UPGRADE_REQUIRED&&(_0x2a0068['id']=_0x3fade2['debuggee']['id']),_0x1af070(_0x5e1707);else{if(_0x23c837['status']!==HTTP_SUCCESS)_0x1af070(new Error('unable\x20to\x20register,\x20status\x20'+_0x23c837['status']));else!_0x3fade2[_0x28954d(0x201)]?_0x1af070(new Error(_0x28954d(0x203))):(_0x2a0068['id']=_0x3fade2['debuggee']['id'],this[_0x28954d(0x22f)]=_0x3fade2[_0x28954d(0x22f)],_0x1af070(null,_0x3fade2));}}});}['listBreakpoints'](_0x530831,_0x36ab33){const _0x205811=a4_0x530aa2,_0x2a1790=this;assert(_0x530831['id'],_0x205811(0x260));const _0x5241e6={'successOnTimeout':!![]};_0x2a1790[_0x205811(0x22c)]&&(_0x5241e6[_0x205811(0x236)]=_0x2a1790[_0x205811(0x22c)]);_0x2a1790[_0x205811(0x22f)]&&(_0x5241e6[_0x205811(0x22f)]=_0x2a1790[_0x205811(0x22f)]);const _0x3f133c=this[_0x205811(0x246)]+encodeURIComponent(_0x530831['id'])+_0x205811(0x1fe)+qs[_0x205811(0x257)](_0x5241e6);_0x2a1790[_0x205811(0x23a)]({'uri':_0x3f133c,'json':!![]},(_0x3b0623,_0x492786,_0x1ca815)=>{const _0x3199a7=_0x205811;if(!_0x1ca815){_0x36ab33(_0x3b0623||new Error(_0x3199a7(0x24a)));return;}else{if(Math[_0x3199a7(0x24c)](_0x1ca815['status']/0x64)!==0x2){_0x36ab33(new Error(_0x3199a7(0x22a)+_0x1ca815['status']));return;}else _0x492786=_0x492786||{},_0x2a1790['nextWaitToken']=_0x492786['nextWaitToken'],_0x36ab33(null,_0x1ca815,_0x492786);}});}[a4_0x530aa2(0x20c)](_0x14f7e1,_0x283292){const _0x24a8fa=a4_0x530aa2;assert(_0x14f7e1['id'],_0x24a8fa(0x260)),this[_0x24a8fa(0x223)][_0x24a8fa(0x243)]([_0x283292,0x0]);if(!this[_0x24a8fa(0x252)]){const _0x19799f=this;this[_0x24a8fa(0x252)]=setTimeout(()=>_0x19799f[_0x24a8fa(0x24d)][_0x24a8fa(0x245)](_0x19799f)(_0x14f7e1['id']),0x0);}}['deregister'](_0x926d81,_0x551f50){const _0x4e4444=a4_0x530aa2,_0x3d6f65=this,_0x4b7814=this['apiUrl']+encodeURIComponent(_0x926d81['id'])+_0x4e4444(0x222),_0x2fbada={'uri':_0x4b7814,'method':_0x4e4444(0x235),'json':!![]};_0x3d6f65['logger'][_0x4e4444(0x209)]('Deregister\x20agent\x20before\x20shutdown'),_0x3d6f65[_0x4e4444(0x23a)](_0x2fbada,(_0x44661f,_0x49affa,_0x1708b7)=>{const _0xc176fc=_0x4e4444;(!_0x1708b7||Math[_0xc176fc(0x24c)](_0x1708b7[_0xc176fc(0x240)]/0x64)!==0x2)&&_0x3d6f65['logger'][_0xc176fc(0x244)]('Failed\x20to\x20deregister\x20agent,\x20Error:\x20'+_0x44661f),_0x551f50(_0x44661f);});}[a4_0x530aa2(0x249)](_0x31021e,_0x108fad,_0x541514){const _0x1cff9d=a4_0x530aa2,_0x5e0ab6=this,_0x47c0d7=this['apiUrl']+encodeURIComponent(_0x31021e['id'])+_0x1cff9d(0x1f8),_0xc0b78={'uri':_0x47c0d7,'method':_0x1cff9d(0x235),'json':!![],'body':_0x108fad};this[_0x1cff9d(0x23a)](_0xc0b78,(_0x7800a3,_0xbad872,_0x540e2e)=>{const _0x235ee2=_0x1cff9d;(!_0x540e2e||Math['floor'](_0x540e2e[_0x235ee2(0x240)]/0x64)!==0x2)&&(_0x5e0ab6[_0x235ee2(0x21b)]['warn'](_0x235ee2(0x25e)+_0x7800a3),_0x541514(_0x7800a3));});}[a4_0x530aa2(0x20b)](_0x2c46ab,_0x5bb162,_0x4f14e9){const _0x277ada=a4_0x530aa2;assert(_0x2c46ab['id'],_0x277ada(0x260));if(this[_0x277ada(0x20a)]){const _0x16bd5d=Date[_0x277ada(0x24b)](),_0x573c74=this[_0x277ada(0x20a)]+this['config']['agentLog'][_0x277ada(0x255)];if(_0x16bd5d<_0x573c74){this['logger']['info']('Request\x20to\x20collect\x20and\x20send\x20logs\x20to\x20backend\x20before\x20cooldown\x20reached::\x20remaining'+((_0x573c74-_0x16bd5d)/0x3e8+'\x20seconds'));return;}}const _0x26779c=fs_1[_0x277ada(0x216)](_0x4f14e9)[_0x277ada(0x211)],_0x1f9792=Math[_0x277ada(0x228)](0x0,_0x26779c-this[_0x277ada(0x206)]['agentLog'][_0x277ada(0x208)]),_0x3d5344=fs_1[_0x277ada(0x21c)](_0x4f14e9,{'start':_0x1f9792}),_0x2b68f8=zlib_1[_0x277ada(0x225)](),_0xe50688=new memory_streams_1[(_0x277ada(0x23b))](),_0xb195a9=this;_0xb195a9[_0x277ada(0x21b)]['info'](_0x277ada(0x217)+_0x4f14e9+_0x277ada(0x204)+_0x5bb162),stream_1[_0x277ada(0x1f2)](_0x3d5344,_0x2b68f8,_0xe50688,_0x1e1e83=>{const _0x9d39=_0x277ada;if(_0x1e1e83)_0xb195a9[_0x9d39(0x21b)]['error']('Failed\x20to\x20zip\x20'+_0x4f14e9+':\x20'+_0x1e1e83);else{const _0xc44e39={'uri':this['apiUrl']+encodeURIComponent(_0x2c46ab['id'])+_0x9d39(0x212)+_0x5bb162,'method':_0x9d39(0x25a),'body':_0xe50688[_0x9d39(0x226)]()};_0xb195a9['makeRequest'](_0xc44e39,_0x3c9223=>{const _0x14ea06=_0x9d39;_0x3c9223?_0xb195a9[_0x14ea06(0x21b)][_0x14ea06(0x22b)](_0x14ea06(0x210)+_0x4f14e9+_0x14ea06(0x258)+_0x5bb162,_0x3c9223):(_0xb195a9[_0x14ea06(0x21b)]['info'](_0x14ea06(0x1ef)+_0x4f14e9+'\x20for\x20request\x20'+_0x5bb162),_0xb195a9['lastLogCollectionTime']=Date[_0x14ea06(0x24b)]());});}});}[a4_0x530aa2(0x24d)](_0x908d4a){const _0x27ce63=a4_0x530aa2;var _0x10e5e2;this[_0x27ce63(0x252)]=undefined;const _0xf9fef0=[];while(_0xf9fef0[_0x27ce63(0x215)]<this[_0x27ce63(0x206)]['transmissionBulkMaxSize']&&this['transmissionQueue'][_0x27ce63(0x215)]>0x0){_0xf9fef0[_0x27ce63(0x243)](this[_0x27ce63(0x223)][_0x27ce63(0x230)]());}if(!_0xf9fef0)return;const _0x36c78b=_0xf9fef0[_0x27ce63(0x232)](_0x16843c=>_0x16843c[0x0]['id']),_0x174021={'uri':this[_0x27ce63(0x246)]+encodeURIComponent(_0x908d4a)+_0x27ce63(0x25b),'json':!![],'method':'PUT','body':_0xf9fef0[_0x27ce63(0x232)](_0x1cecc7=>_0x1cecc7[0x0])},_0xe33016=this;try{this[_0x27ce63(0x23a)](_0x174021,(_0x1b21bf,_0x5d3376,_0x5994bb)=>{const _0x343352=_0x27ce63,_0x283f6d=_0x5994bb===null||_0x5994bb===void 0x0?void 0x0:_0x5994bb[_0x343352(0x240)];if(_0x1b21bf||!_0x283f6d||Math['floor'](_0x283f6d/0x64)!==0x2){const _0x4c4fe4=_0x283f6d&&(_0x283f6d>=0x1f4||_0x283f6d===0x198);if(_0x4c4fe4){_0xe33016[_0x343352(0x21b)]['warn'](_0x343352(0x254)+_0x36c78b+_0x343352(0x1fa)+_0x283f6d+_0x343352(0x25f)+_0x1b21bf);for(const _0x112287 of _0xf9fef0){_0x112287[0x1]<MAX_FAILED_SEND_ATTEMPTS?_0xe33016[_0x343352(0x223)][_0x343352(0x243)]([_0x112287[0x0],_0x112287[0x1]+0x1]):_0xe33016[_0x343352(0x21b)][_0x343352(0x244)](_0x343352(0x24f)+_0x112287[0x0]['id']+'\x20retry\x20count\x20exceeded\x20maximum\x20-\x20Dropping\x20it');}}else _0xe33016[_0x343352(0x21b)][_0x343352(0x244)](_0x343352(0x24e)+_0x36c78b+_0x343352(0x1fa)+_0x283f6d+_0x343352(0x25f)+_0x1b21bf);}else _0xe33016['logger'][_0x343352(0x209)](_0x343352(0x22d)+_0x36c78b+_0x343352(0x1f7));_0xe33016[_0x343352(0x223)][_0x343352(0x215)]>0x0&&(_0xe33016[_0x343352(0x252)]=setTimeout(()=>_0xe33016[_0x343352(0x24d)][_0x343352(0x245)](_0xe33016)(_0x908d4a),0x0));});}catch(_0x353ebb){this[_0x27ce63(0x21b)][_0x27ce63(0x244)](_0x27ce63(0x24e)+_0x36c78b+_0x27ce63(0x248)+_0x353ebb+_0x27ce63(0x261)+((_0x10e5e2=_0x353ebb[_0x27ce63(0x266)])===null||_0x10e5e2===void 0x0?void 0x0:_0x10e5e2['message'])),_0xe33016[_0x27ce63(0x223)][_0x27ce63(0x215)]>0x0&&(_0xe33016[_0x27ce63(0x252)]=setTimeout(()=>_0xe33016[_0x27ce63(0x24d)][_0x27ce63(0x245)](_0xe33016)(_0x908d4a),0x0));}}['getBlocklist'](_0x4a89a1,_0x3f8ad4){const _0x1047eb=a4_0x530aa2;this[_0x1047eb(0x21b)]['info'](_0x1047eb(0x21d));const _0x2087f0=this['apiUrl']+encodeURIComponent(_0x4a89a1)+_0x1047eb(0x253);this['makeRequest']({'uri':_0x2087f0,'json':!![]},(_0x4626f7,_0x59df35,_0x2a5413)=>{const _0x18c0d5=_0x1047eb;if(_0x4626f7)_0x3f8ad4(_0x4626f7);else try{const _0x59bb75=yaml[_0x18c0d5(0x247)](_0x59df35);_0x3f8ad4(null,_0x59bb75||{},_0x2a5413);}catch(_0x45c819){_0x3f8ad4(_0x45c819);}});}[a4_0x530aa2(0x23a)](_0x147706,_0x35ef07){const _0x22af9b=a4_0x530aa2,_0x26ba9b={'Content-Type':_0x22af9b(0x259),'Authorization':_0x22af9b(0x21a)+this['config'][_0x22af9b(0x214)]},_0x57bd43={'checkServerIdentity':(_0x28d698,_0x6c89c)=>this[_0x22af9b(0x263)](_0x28d698,_0x6c89c,this['config'])};if(this[_0x22af9b(0x23f)]){const _0x12a270=tls_1[_0x22af9b(0x241)](_0x57bd43);_0x12a270['context'][_0x22af9b(0x242)](this[_0x22af9b(0x23f)]),_0x57bd43[_0x22af9b(0x20d)]=_0x12a270;}const _0x140c15={'url':_0x147706['uri'],'agent':new https['Agent'](_0x57bd43),'data':_0x147706['body'],'headers':_0x26ba9b};extend(!![],_0x140c15,_0x147706),gaxios[_0x22af9b(0x233)](_0x140c15)[_0x22af9b(0x227)](_0x311e7c=>_0x35ef07(null,_0x311e7c['data'],_0x311e7c))[_0x22af9b(0x1fd)](_0x4b299a=>{const _0x438194=_0x22af9b;var _0x4349f2;return _0x35ef07(_0x4b299a,(_0x4349f2=_0x4b299a[_0x438194(0x200)])===null||_0x4349f2===void 0x0?void 0x0:_0x4349f2['data'],_0x4b299a[_0x438194(0x200)]);});}[a4_0x530aa2(0x263)](_0x113ca9,_0x408323,_0x33135b){const _0x327648=a4_0x530aa2;if(_0x33135b[_0x327648(0x229)])return undefined;const _0x241fb2=crypto_1['createHash'](_0x327648(0x218))[_0x327648(0x1f6)](_0x408323[_0x327648(0x237)])[_0x327648(0x1fb)](_0x327648(0x23e));return _0x33135b[_0x327648(0x1f9)][_0x327648(0x262)](_0x241fb2)?undefined:new Error(_0x327648(0x21e));}}exports['Controller']=Controller;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller.js","sourceRoot":"","sources":["../../../src/agent/controller.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC;;GAEG;AAEH,iDAAmD;AACnD,iCAAiC;AACjC,kCAAkC;AAClC,2BAA4D;AAC5D,mCAAkC;AAClC,+BAAgC;AAChC,mCAAgC;AAChC,mDAA8C;AAC9C,6BAAyD;AAOzD,iCAAiC;AACjC,iCAAiC;AAEjC,+BAA+B;AAK/B,MAAM,IAAI,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,4EAA4E;AAM7G,MAAM,wBAAwB,GAAG,CAAC,CAAC;AACnC,MAAM,YAAY,GAAG,GAAG,CAAC;AACzB,MAAM,qBAAqB,GAAG,GAAG,CAAC;AAGlC,MAAa,UAAW,SAAQ,sBAAa;IAY3C;;OAEG;IAEH,YAAY,KAAY,EAAE,MAAgC,EAAE,MAAc;QACxE,KAAK,CAAC,EAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAC,CAAC,CAAC;QAE/C,wBAAwB;QACxB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,iBAAiB,GAAG,EAAE,CAAC;QAC5B,IAAI,CAAC,MAAM,GAAG,MAAM,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,CAAC,CAAC;aAChD,KAAK,CAAC,GAAG,CAAC,EAAE,WAAC,OAAA,QAAQ,CAAC,GAAG,QAAE,GAAG,CAAC,QAAQ,0CAAE,IAAI,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAA,EAAA,CAAC,CAAC;IACnE,CAAC;IAED,iBAAiB,CACf,IAAY,EACZ,IAAqB,EACrB,MAAgC;QAEhC,IAAI,MAAM,CAAC,kBAAkB,EAAE;YAC7B,OAAO,SAAS,CAAC;SAClB;QACD,kHAAkH;QAClH,MAAM,OAAO,GAAG,mBAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAE,IAAY,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAChF,OAAO,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;IACrG,CAAC;CACF;AAhYD,gCAgYC"}
|
|
@@ -59,6 +59,7 @@ export declare class Debuglet extends EventEmitter {
|
|
|
59
59
|
private breakpointFetchedTimestamp;
|
|
60
60
|
private breakpointFetched;
|
|
61
61
|
private debuggeeRegistered;
|
|
62
|
+
private nextEnableTimeout;
|
|
62
63
|
isReadyManager: IsReady;
|
|
63
64
|
config: ResolvedDebugAgentConfig;
|
|
64
65
|
fetcherActive: boolean;
|
|
@@ -96,6 +97,7 @@ export declare class Debuglet extends EventEmitter {
|
|
|
96
97
|
* @private
|
|
97
98
|
*/
|
|
98
99
|
start(): Promise<void>;
|
|
100
|
+
registerSignals(): void;
|
|
99
101
|
/**
|
|
100
102
|
* isReady returns a promise that only resolved if the last breakpoint update
|
|
101
103
|
* happend within a duration (PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS). This
|
|
@@ -187,6 +189,7 @@ export declare class Debuglet extends EventEmitter {
|
|
|
187
189
|
* @private
|
|
188
190
|
*/
|
|
189
191
|
expireOldBreakpoints(): void;
|
|
192
|
+
isRunning(): boolean;
|
|
190
193
|
/**
|
|
191
194
|
* Stops the Debuglet. This is for testing purposes only. Stop should only be
|
|
192
195
|
* called on a agent that has started (i.e. emitted the 'started' event).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a5_0x1737=['getFloat','1575308KbjnLf','version','serviceContext','GAE_VERSION','isFinalState','Debuggee','max_dynamic_log_rate','1178678SQGpqf','split','pipeLogs','normalizeConfig_','Fetching\x20breakpoints','buildRegExp','return\x20/\x22\x20+\x20this\x20+\x20\x22/','max_condition_cost','filename','stringify','config','defineProperty','\x09deleted\x20breakpoint','enqueueBreakpointUpdate','listBreakpoints','FUNCTION_NAME','reporting\x20breakpoint\x20accepted\x20by\x20agent','workingDirectory','defaultConfig','scheduleRegistration_','Debuglet\x20not\x20running','K_REVISION','source-context.json','registerDelayOnFetcherErrorSec','Found\x20breakpoint\x20with\x20invalid\x20action:','Ignoring\x20request\x20to\x20collect\x20logs\x20with\x20id\x20','default','string','getAgentConfig','to\x20avoid\x20a\x20scan\x20of\x20the\x20entire\x20filesystem\x20for\x20JavaScript\x20files.\x20','blocklistManager','resolve','pid','getBoolean','./blocklisting/patterns-blocklist-manager','file','then','5.2\x20||\x20<4','cwd','registered','readFileSync','YYMMDD-HHmmss','createPerBreakpointConditionQuota','env','map','Unable\x20to\x20discover\x20source\x20context','Platforms','log4js','17lcFmHw','collect_log_cooldown_ms','expirationSeconds','\x0a\x09expressions:\x20','Expressions\x20and\x20conditions\x20are\x20not\x20allowed','QuotaManager','getLogger','./blocklisting/dummy-blocklist-manager','./quota-manager','extend','isAvailable','stopped','Registered\x20as\x20debuggee:','CLOUD_FUNCTION','Active\x20Breakpoints:\x20','min','LIGHTRUN_SECRET','unref','name','minorVersion_','started','The\x20working\x20directory\x20is\x20a\x20root\x20directory.\x20Disabling\x20','APP_ONLY','Controller','info','activeBreakpointMap','_delimit','1221377xCjGQX','breakpoint_expiration_sec','data','\x20See\x20the\x20debug\x20agent\x20documentation\x20at\x20https://goo.gl/ShSm6r.','pattern','bind','events','readFile','promisify','createHash','\x20are\x20CAPTURE\x20and\x20LOG.','LIGHTRUN_COMPANY','3xpXZxt','Node.js\x20version\x20not\x20supported.\x20Node.js\x205.2.0\x20and\x20','34TDTsPc','warn','remotelyDisabled','globalPipingStatus','NOT_SET','create','setIgnoreQuota','LOGPOINT:\x20','initError','setBlocklistManager','LIGHTRUN_API_ENDPOINT','java-properties','attributes/cluster-name','_tokenize','metadata','\x20information.','action','updatePromise','util','v8debug','breakpoints','503733EOXaob','status','>=10\x20<10.15.3\x20||\x20>=11\x20<11.7\x20||\x20>=12','crypto','length','inspect','\x0a\x09createdTime:\x20','removeBreakpoint_','maxRegistrationRetryDelay','moment','BREAKPOINT_AGE','logLevel','keys','packageInfo','remainingHits','sendAgentLogsToServer','jsStats','satisfies','utf-8','blacklist_exception','level','../debuggee','agentLog','quotaManager','Server\x20breakpoints:\x20','StatusMessage','GAE_MODULE_VERSION','constructor','stop\x20can\x20only\x20be\x20called\x20on\x20a\x20running\x20agent','collectLogRequestId','promiseResolve','service','./io/scanner','hex','everything','waitExpired','internal','layout','max_log_file_bytes','debuggeeRegistered','\x09Long\x20poll\x20completed.','isReady','controller','breakpointFetched','emit','js.map','project','dynamic_log_quota_recovery_ms','format','expirationTime','updateActiveBreakpoints_','16053Pzqwdn','now','location','.log','_createUniquifier','condition','createDebuggee','\x20because\x20','debug','pinned_certs','LOG','breakpointUpdateIntervalSec','seconds','removePerBreakpointQuota','fetcherActive','printFullVersion','runningOnGCP','path','getAgentLogger','expressions','breakpoint\x20id:\x20%s,\x0a\x09location:\x20%s','push','getBlocklist','pipingStatus','EventEmitter','\x20See\x20https://github.com/googleapis/cloud-debug-nodejs/issues/516\x20for\x20more','logger','apply','./piping-manager','getFirst','capture.maxDataSize=0\x20is\x20not\x20recommended\x20on\x20older\x20versions\x20of\x20Node\x2010/11','Malformed\x20source-context.json\x20file:\x20','Error\x20fetching\x20breakpoints\x20–\x20scheduling\x20retry','totalmem','Failed\x20to\x20read\x20metadata\x20file\x20','../client/stackdriver/status-message','Stopping\x20Debuglet','capture','scheduleBreakpointFetch_','debuggee','agent_regmetadata_file','GAE_MINOR_VERSION','createTime','versions','Failed\x20getting\x20blocklist\x20from\x20server:\x20','Disabled\x20by\x20the\x20server','createDebuggeeMetadata','running','debuglet','expireOldBreakpoints','configure','concat','/lightrun_nodejs_agent.','get','set','^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}','sourceContexts','CachedPromise','\x09successfully\x20added\x20breakpoint\x20\x20','values','platform','mapFiles','do\x20this.','mapSubtract','reportBreakpointAccepted_','max_dynamic_log_bytes_rate','title','com.lightrun.secret','minorversion','LIGHTRUN_METADATA_FILE','findFiles','getInt','cloud_function','node','\x09invalid\x20list\x20response:\x20empty\x20body','rejectBreakpoint_','blacklist','breakpointFetchedTimestamp','UNSPECIFIED','filter','completedBreakpointMap','error','./v8/debugapi','LIGHTRUN_TAGS','./config','tags','__esModule','Error\x20processing\x20the\x20sourcemaps.','./io/sourcemapper','join','getClusterNameFromMetadata','errors','getSourceContextFromFile','registration','\x20and\x20Node\x2012.','getPlatform','94058tMYuyM','Unique\x20ID\x20for\x20this\x20Application:\x20','pipingManager','setPipingStatus','\x20by\x20default.\x20Please\x20set\x20the\x20allowExpressions\x20configuration\x20option\x20to\x20true.','Failed\x20to\x20re-register\x20debuggee\x20','forEach','updateBreakpoint_','max_snapshot_buffer_size','DEFAULT','logsPath','register','selectStats','addBreakpoint_','parse','log','javascriptFileExtensions','DummyBlocklistManager','323380GxnwBb'];const a5_0x445e47=a5_0x5bd7;(function(_0x7ff21e,_0x36aa58){const _0x5c256e=a5_0x5bd7;while(!![]){try{const _0xc8d057=parseInt(_0x5c256e(0xb4))*-parseInt(_0x5c256e(0xcb))+-parseInt(_0x5c256e(0xa8))+parseInt(_0x5c256e(0x1a9))*-parseInt(_0x5c256e(0xfe))+parseInt(_0x5c256e(0x170))+-parseInt(_0x5c256e(0x179))+parseInt(_0x5c256e(0x172))+parseInt(_0x5c256e(0x15e))*parseInt(_0x5c256e(0xb6));if(_0xc8d057===_0x36aa58)break;else _0x7ff21e['push'](_0x7ff21e['shift']());}catch(_0x930cec){_0x7ff21e['push'](_0x7ff21e['shift']());}}}(a5_0x1737,0xdec79));const a5_0x12d583=function(){let _0x29144b=!![];return function(_0x57ae18,_0x44824d){const _0x26c781=_0x29144b?function(){const _0x784fdf=a5_0x5bd7;if(_0x44824d){const _0x202152=_0x44824d[_0x784fdf(0x119)](_0x57ae18,arguments);return _0x44824d=null,_0x202152;}}:function(){};return _0x29144b=![],_0x26c781;};}(),a5_0x3f196d=a5_0x12d583(this,function(){const _0x14a7db=function(){const _0x405e14=a5_0x5bd7,_0x1de755=_0x14a7db[_0x405e14(0xe6)](_0x405e14(0x17f))()['constructor'](_0x405e14(0x135));return!_0x1de755['test'](a5_0x3f196d);};return _0x14a7db();});a5_0x3f196d();'use strict';Object[a5_0x445e47(0x184)](exports,a5_0x445e47(0x154),{'value':!![]}),exports['Debuglet']=exports[a5_0x445e47(0x137)]=exports[a5_0x445e47(0x1a7)]=void 0x0;const assert=require('assert'),log4js_1=require(a5_0x445e47(0x1a8)),crypto=require(a5_0x445e47(0xce)),events_1=require(a5_0x445e47(0xae)),extend=require(a5_0x445e47(0x96)),fs=require('fs'),metadata=require('gcp-metadata'),path=require(a5_0x445e47(0x10f)),util=require(a5_0x445e47(0xc8)),properties=require(a5_0x445e47(0xc1)),status_message_1=require(a5_0x445e47(0x121)),debuggee_1=require(a5_0x445e47(0xe0)),config_1=require(a5_0x445e47(0x152)),controller_1=require('./controller'),scanner=require(a5_0x445e47(0xeb)),SourceMapper=require(a5_0x445e47(0x156)),utils=require('./util/utils'),debugapi=require(a5_0x445e47(0x150)),os=require('os'),moment=require(a5_0x445e47(0xd4)),piping_manager_1=require(a5_0x445e47(0x11a)),quota_manager_1=require(a5_0x445e47(0x95)),patterns_blocklist_manager_1=require(a5_0x445e47(0x19b)),dummy_blocklist_manager_1=require(a5_0x445e47(0x94)),readFilep=util[a5_0x445e47(0xb0)](fs[a5_0x445e47(0xaf)]),ALLOW_EXPRESSIONS_MESSAGE=a5_0x445e47(0x1ad)+a5_0x445e47(0x162)+a5_0x445e47(0xab),NODE_VERSION_MESSAGE=a5_0x445e47(0xb5)+'versions\x20older\x20than\x200.12\x20are\x20not\x20supported.',NODE_10_CIRC_REF_MESSAGE=a5_0x445e47(0x11c)+a5_0x445e47(0x15c)+a5_0x445e47(0x117)+a5_0x445e47(0xc5),BREAKPOINT_ACTION_MESSAGE='The\x20only\x20currently\x20supported\x20breakpoint\x20actions'+a5_0x445e47(0xb2),PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS=(0x28+0x21c)/0x2*0x3e8;var Platforms;(function(_0x387655){const _0x848fe8=a5_0x445e47;_0x387655[_0x848fe8(0x9a)]=_0x848fe8(0x146),_0x387655[_0x848fe8(0x167)]=_0x848fe8(0x193);}(Platforms=exports[a5_0x445e47(0x1a7)]||(exports['Platforms']={})));const formatBreakpoint=(_0x2b8e31,_0x5ec4e5)=>{const _0x250121=a5_0x445e47;let _0x6c297d=_0x2b8e31+util[_0x250121(0xfb)](_0x250121(0x112),_0x5ec4e5['id'],util[_0x250121(0xd0)](_0x5ec4e5[_0x250121(0x100)]));if(_0x5ec4e5[_0x250121(0x128)]){const _0x386cff=Number(_0x5ec4e5[_0x250121(0x128)][_0x250121(0x10a)]),_0x3d24bf=new Date(_0x386cff*0x3e8);_0x6c297d+=_0x250121(0xd1)+_0x3d24bf['toString']();}return _0x5ec4e5['condition']&&(_0x6c297d+='\x0a\x09condition:\x20'+util[_0x250121(0xd0)](_0x5ec4e5[_0x250121(0x103)])),_0x5ec4e5[_0x250121(0x111)]&&(_0x6c297d+=_0x250121(0x1ac)+util['inspect'](_0x5ec4e5['expressions'])),_0x6c297d;},formatBreakpoints=(_0x467f62,_0x15e813)=>{const _0x592646=a5_0x445e47;return _0x467f62+Object[_0x592646(0xd7)](_0x15e813)[_0x592646(0x1a5)](_0x1db8b2=>{return formatBreakpoint('',_0x15e813[_0x1db8b2]);})['join']('\x0a');};class CachedPromise{constructor(){this['promiseResolve']=null,this['promise']=new Promise(_0x1d4962=>{const _0x350f96=a5_0x5bd7;this[_0x350f96(0xe9)]=_0x1d4962;});}[a5_0x445e47(0x133)](){return this['promise'];}[a5_0x445e47(0x198)](){const _0x1362da=a5_0x445e47;this[_0x1362da(0xe9)]&&(this[_0x1362da(0xe9)](),this['promiseResolve']=null);}}exports[a5_0x445e47(0x137)]=CachedPromise;function a5_0x5bd7(_0x5e4cd5,_0x38fa84){_0x5e4cd5=_0x5e4cd5-0x93;let _0x1699d3=a5_0x1737[_0x5e4cd5];return _0x1699d3;}class IsReadyImpl{constructor(_0x35ced2){const _0x848321=a5_0x445e47;this[_0x848321(0x12e)]=_0x35ced2;}[a5_0x445e47(0xf4)](){const _0x3041d6=a5_0x445e47;return this[_0x3041d6(0x12e)][_0x3041d6(0xf4)]();}}class Debuglet extends events_1[a5_0x445e47(0x116)]{constructor(_0x29aee8,_0x16dcf2){const _0x478ab2=a5_0x445e47;super(),this['isReadyManager']=new IsReadyImpl(this),this['config']=Debuglet['normalizeConfig_'](_0x16dcf2),this['debug']=_0x29aee8,this[_0x478ab2(0xc9)]=null,this[_0x478ab2(0x12d)]=![],this[_0x478ab2(0xf9)]=null,this['fetcherActive']=![],this[_0x478ab2(0x118)]=this[_0x478ab2(0x110)](this[_0x478ab2(0x183)]),this[_0x478ab2(0xf5)]=new controller_1[(_0x478ab2(0xa4))](this['debug'],this[_0x478ab2(0x183)],this[_0x478ab2(0x118)]),this[_0x478ab2(0x125)]=null,this[_0x478ab2(0xa6)]={},this[_0x478ab2(0x14e)]={},this['breakpointFetched']=null,this[_0x478ab2(0x14b)]=-Infinity,this[_0x478ab2(0xf2)]=new CachedPromise(),this['quotaManager']=new quota_manager_1[(_0x478ab2(0x1ae))](this[_0x478ab2(0x118)],this[_0x478ab2(0x183)]),this[_0x478ab2(0x160)]=new piping_manager_1['PipingManager'](_0x478ab2(0xa3),this[_0x478ab2(0xf5)],this[_0x478ab2(0x183)]);}['getAgentLogger'](_0x3b531f){const _0x56d6a0=a5_0x445e47;let _0x1f5451;if(_0x3b531f[_0x56d6a0(0xe1)][_0x56d6a0(0x168)]){const _0x5ba30d=moment()['format'](_0x56d6a0(0x1a2)),_0x306efe=_0x3b531f['agentLog'][_0x56d6a0(0x168)]+(_0x56d6a0(0x132)+_0x5ba30d+_0x56d6a0(0x101));this[_0x56d6a0(0x168)]=_0x306efe,_0x1f5451={'type':_0x56d6a0(0x19c),'filename':_0x306efe};}else _0x1f5451={'type':'console'};_0x1f5451[_0x56d6a0(0xf0)]={'type':_0x56d6a0(0xac),'pattern':'%d\x20[%p]\x20%f{1}:%l\x20-\x20%m'},log4js_1[_0x56d6a0(0x130)]({'appenders':{'everything':_0x1f5451},'categories':{'default':{'appenders':[_0x56d6a0(0xed)],'level':_0x3b531f[_0x56d6a0(0xe1)][_0x56d6a0(0xdf)],'enableCallStack':!![]}}});const _0x14c680=log4js_1[_0x56d6a0(0x93)]();return _0x14c680[_0x56d6a0(0xdf)]=_0x3b531f[_0x56d6a0(0xe1)][_0x56d6a0(0xdf)],_0x14c680;}static[a5_0x445e47(0x17c)](_0x3cc04c){const _0x6f7ce4=a5_0x445e47,_0x4d496e={'serviceContext':{'service':process['env']['GAE_SERVICE']||process['env']['GAE_MODULE_NAME']||process['env']['K_SERVICE'],'version':process[_0x6f7ce4(0x1a4)][_0x6f7ce4(0x175)]||process[_0x6f7ce4(0x1a4)][_0x6f7ce4(0xe5)]||process[_0x6f7ce4(0x1a4)][_0x6f7ce4(0x18e)],'minorVersion_':process['env']['GAE_DEPLOYMENT_ID']||process[_0x6f7ce4(0x1a4)][_0x6f7ce4(0x127)]},'metadata':{'filename':process['env'][_0x6f7ce4(0x143)],'registration':{}},'lightrunSecret':process[_0x6f7ce4(0x1a4)][_0x6f7ce4(0x9d)],'company':process['env'][_0x6f7ce4(0xb3)],'apiEndpoint':process[_0x6f7ce4(0x1a4)][_0x6f7ce4(0xc0)]};process[_0x6f7ce4(0x1a4)][_0x6f7ce4(0x188)]&&(_0x4d496e[_0x6f7ce4(0x174)][_0x6f7ce4(0xea)]=process[_0x6f7ce4(0x1a4)][_0x6f7ce4(0x188)],_0x4d496e['serviceContext']['version']='unversioned');process[_0x6f7ce4(0x1a4)][_0x6f7ce4(0x151)]&&(_0x4d496e['metadata'][_0x6f7ce4(0x15b)]={'tags':process[_0x6f7ce4(0x1a4)]['LIGHTRUN_TAGS'][_0x6f7ce4(0x17a)](',')});const _0x46d392=Debuglet[_0x6f7ce4(0x195)](process[_0x6f7ce4(0x1a4)]['LIGHTRUN_AGENT_CONFIG']||(_0x3cc04c===null||_0x3cc04c===void 0x0?void 0x0:_0x3cc04c['agentConfigFile'])||config_1[_0x6f7ce4(0x18b)]['agentConfigFile']);return extend(!![],{},config_1[_0x6f7ce4(0x18b)],_0x46d392,_0x3cc04c,_0x4d496e);}static[a5_0x445e47(0x195)](_0x4a6ca1){const _0x11c18f=a5_0x445e47;var _0x5c60cc;if(fs['existsSync'](_0x4a6ca1)){const _0x4ec5f8=properties['of'](_0x4a6ca1);return{'lightrunSecret':_0x4ec5f8[_0x11c18f(0x11b)](_0x11c18f(0x141)),'breakpointExpirationSec':_0x4ec5f8[_0x11c18f(0x145)](_0x11c18f(0xa9)),'transmissionBulkMaxSize':_0x4ec5f8[_0x11c18f(0x145)]('transmission_bulk_max_size'),'pinnedCerts':(_0x5c60cc=_0x4ec5f8['getFirst'](_0x11c18f(0x107)))===null||_0x5c60cc===void 0x0?void 0x0:_0x5c60cc[_0x11c18f(0x17a)](','),'metadata':{'filename':_0x4ec5f8['getFirst'](_0x11c18f(0x126))},'log':{'logDelaySeconds':_0x4ec5f8[_0x11c18f(0x145)](_0x11c18f(0xfa))&&_0x4ec5f8['getInt']('dynamic_log_quota_recovery_ms')/0x3e8},'capture':{'maxFrames':_0x4ec5f8[_0x11c18f(0x145)]('max_snapshot_frame_count'),'maxDataSize':_0x4ec5f8[_0x11c18f(0x145)](_0x11c18f(0x166))},'agentLog':{'collectCooldownMs':_0x4ec5f8[_0x11c18f(0x145)](_0x11c18f(0x1aa)),'maxLogFileBytes':_0x4ec5f8[_0x11c18f(0x145)](_0x11c18f(0xf1))},'quota':{'ignoreQuota':_0x4ec5f8[_0x11c18f(0x19a)]('ignore_quota'),'maxCPUCost':_0x4ec5f8[_0x11c18f(0x171)]('max_log_cpu_cost'),'maxConditionCost':_0x4ec5f8[_0x11c18f(0x171)](_0x11c18f(0x180)),'maxDynamicLogRate':_0x4ec5f8['getInt'](_0x11c18f(0x178)),'maxDynamicLogByteRate':_0x4ec5f8[_0x11c18f(0x145)](_0x11c18f(0x13f))}};}return;}static[a5_0x445e47(0x17e)](_0x5f249f){const _0x300318=a5_0x445e47;return new RegExp(_0x5f249f[_0x300318(0x1a5)](_0x2cdf95=>_0x2cdf95+'$')[_0x300318(0x157)]('|'));}static async[a5_0x445e47(0x144)](_0x52dfa8,_0x4e9db3){const _0x359747=a5_0x445e47,_0x304bb8=_0x52dfa8['workingDirectory'],_0x5851bf=await scanner['scan'](_0x304bb8,Debuglet['buildRegExp'](_0x52dfa8['javascriptFileExtensions'][_0x359747(0x131)](_0x359747(0xf8))),_0x4e9db3),_0xa74d8b=_0x5851bf[_0x359747(0x16a)](Debuglet[_0x359747(0x17e)](_0x52dfa8[_0x359747(0x16e)])),_0x31c698=_0x5851bf['selectFiles'](/.js.map$/,process[_0x359747(0x19f)]()),_0x3c4782=_0x5851bf['errors']();return{'jsStats':_0xa74d8b,'mapFiles':_0x31c698,'errors':_0x3c4782,'hash':_0x5851bf['hash']};}async['start'](){const _0x2d7f75=a5_0x445e47,_0x2cd5b2=this,_0x4b6700=_0x2cd5b2[_0x2d7f75(0x183)][_0x2d7f75(0x18a)];if(!_0x2cd5b2['config']['allowRootAsWorkingDirectory']&&path['join'](_0x4b6700,'..')===_0x4b6700){const _0x55cb66=_0x2d7f75(0xa2)+_0x2d7f75(0x196)+'Use\x20config\x20`allowRootAsWorkingDirectory`\x20if\x20you\x20really\x20want\x20to\x20'+_0x2d7f75(0x13c);_0x2cd5b2[_0x2d7f75(0x118)][_0x2d7f75(0x14f)](_0x55cb66),_0x2cd5b2['emit'](_0x2d7f75(0xbe),new Error(_0x55cb66));return;}let _0x2b3101;process[_0x2d7f75(0x1a4)][_0x2d7f75(0x127)]&&(_0x2b3101='GAE-'+process['env']['GAE_MINOR_VERSION']);let _0x4a4c24;try{_0x4a4c24=await Debuglet[_0x2d7f75(0x144)](_0x2cd5b2[_0x2d7f75(0x183)],_0x2b3101),_0x4a4c24[_0x2d7f75(0x159)][_0x2d7f75(0x164)](_0x2cd5b2['logger'][_0x2d7f75(0xb7)]);}catch(_0x4af221){_0x2cd5b2[_0x2d7f75(0x118)][_0x2d7f75(0x14f)]('Error\x20scanning\x20the\x20filesystem.',_0x4af221),_0x2cd5b2[_0x2d7f75(0xf7)](_0x2d7f75(0xbe),_0x4af221);return;}let _0x41a6e9;try{_0x41a6e9=await SourceMapper[_0x2d7f75(0xbb)](_0x4a4c24[_0x2d7f75(0x13b)]);}catch(_0x45946c){_0x2cd5b2[_0x2d7f75(0x118)][_0x2d7f75(0x14f)](_0x2d7f75(0x155),_0x45946c),_0x2cd5b2[_0x2d7f75(0xf7)]('initError',_0x45946c);return;}_0x2cd5b2[_0x2d7f75(0xc9)]=debugapi[_0x2d7f75(0xbb)](_0x2cd5b2[_0x2d7f75(0x118)],_0x2cd5b2[_0x2d7f75(0x183)],_0x4a4c24[_0x2d7f75(0xdb)],_0x41a6e9,this[_0x2d7f75(0xe2)]);const _0x3f360f=_0x2b3101||_0x4a4c24['hash'];_0x2cd5b2[_0x2d7f75(0x118)]['info'](_0x2d7f75(0x15f)+_0x3f360f),utils[_0x2d7f75(0x10d)](_0x2cd5b2[_0x2d7f75(0x118)]);let _0x4d36b9;try{_0x4d36b9=_0x2cd5b2[_0x2d7f75(0x183)]['sourceContext']||await Debuglet[_0x2d7f75(0x15a)]();}catch(_0x17ecd7){_0x2cd5b2[_0x2d7f75(0x118)][_0x2d7f75(0xb7)](_0x2d7f75(0x1a6),_0x17ecd7);}this[_0x2d7f75(0x183)]['capture']&&this[_0x2d7f75(0x183)][_0x2d7f75(0x123)]['maxDataSize']===0x0&&utils['satisfies'](process[_0x2d7f75(0x173)],_0x2d7f75(0xcd))&&_0x2cd5b2[_0x2d7f75(0x118)]['warn'](NODE_10_CIRC_REF_MESSAGE),_0x2cd5b2[_0x2d7f75(0x118)][_0x2d7f75(0x106)]('Starting\x20debuggee'),_0x2cd5b2[_0x2d7f75(0x12d)]=!![],_0x2cd5b2[_0x2d7f75(0x125)]=Debuglet['createDebuggee'](_0x3f360f,_0x2cd5b2[_0x2d7f75(0x183)],_0x4d36b9,_0x2cd5b2[_0x2d7f75(0x106)][_0x2d7f75(0xd8)],_0x2cd5b2[_0x2d7f75(0x118)],undefined),_0x2cd5b2[_0x2d7f75(0x18c)](0x0),_0x2cd5b2[_0x2d7f75(0xf7)](_0x2d7f75(0xa1));}['isReady'](){const _0x3d6c22=a5_0x445e47;if(Date[_0x3d6c22(0xff)]()<this[_0x3d6c22(0x14b)]+PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS)return Promise[_0x3d6c22(0x198)]();else{if(this[_0x3d6c22(0xf6)])return this['breakpointFetched'][_0x3d6c22(0x133)]();return this['breakpointFetched']=new CachedPromise(),this[_0x3d6c22(0xf2)][_0x3d6c22(0x133)]()[_0x3d6c22(0x19d)](()=>{this['scheduleBreakpointFetch_'](0x0,!![]);}),this[_0x3d6c22(0xf6)]['get']();}}static[a5_0x445e47(0x12c)](_0x8c01dd,_0x31eec3){const _0x59d254=a5_0x445e47;var _0x3de374,_0x5a6d28,_0x2a22e0;let _0x21c2f3={'registration':{}};if((_0x3de374=_0x8c01dd[_0x59d254(0xc4)])===null||_0x3de374===void 0x0?void 0x0:_0x3de374[_0x59d254(0x181)])try{_0x21c2f3=JSON[_0x59d254(0x16c)](fs[_0x59d254(0x1a1)](_0x8c01dd[_0x59d254(0xc4)][_0x59d254(0x181)],_0x59d254(0xdd)));}catch(_0x5d3207){_0x31eec3[_0x59d254(0xb7)](_0x59d254(0x120)+_0x8c01dd['metadata'][_0x59d254(0x181)],_0x5d3207);}return _0x21c2f3[_0x59d254(0x15b)]=extend(!![],{},(_0x5a6d28=_0x8c01dd[_0x59d254(0xc4)])===null||_0x5a6d28===void 0x0?void 0x0:_0x5a6d28[_0x59d254(0x15b)],_0x21c2f3[_0x59d254(0x15b)]),((_0x2a22e0=_0x21c2f3[_0x59d254(0x15b)])===null||_0x2a22e0===void 0x0?void 0x0:_0x2a22e0[_0x59d254(0x153)])&&(_0x21c2f3['registration'][_0x59d254(0x153)]=_0x21c2f3[_0x59d254(0x15b)][_0x59d254(0x153)][_0x59d254(0x1a5)](_0x22be9e=>typeof _0x22be9e===_0x59d254(0x194)?{'name':_0x22be9e}:_0x22be9e)),_0x21c2f3;}static[a5_0x445e47(0x104)](_0x270782,_0x5a1647,_0x341f08,_0x15e342,_0x41ab46,_0x3b884a){const _0x3fd723=a5_0x445e47,_0x4fbd0d=process[_0x3fd723(0x19f)](),_0x260e81=path['relative'](_0x4fbd0d,process['argv'][0x1]),_0x4cbaea=_0x15e342[_0x3fd723(0x173)],_0x25d216={'main\x20script':_0x260e81,'process.title':process[_0x3fd723(0x140)],'node\x20version':process['versions'][_0x3fd723(0x147)],'V8\x20version':process[_0x3fd723(0x129)]['v8'],'agent.name':_0x15e342[_0x3fd723(0x9f)],'agent.version':_0x15e342[_0x3fd723(0x173)],'platform':Debuglet[_0x3fd723(0x15d)]()},_0x3ba37f=_0x5a1647[_0x3fd723(0x174)];_0x3ba37f&&(typeof _0x3ba37f[_0x3fd723(0xea)]===_0x3fd723(0x194)&&_0x3ba37f['service']!==_0x3fd723(0x193)&&(_0x25d216['module']=_0x3ba37f[_0x3fd723(0xea)]),typeof _0x3ba37f[_0x3fd723(0x173)]===_0x3fd723(0x194)&&(_0x25d216[_0x3fd723(0x173)]=_0x3ba37f[_0x3fd723(0x173)]),typeof _0x3ba37f['minorVersion_']===_0x3fd723(0x194)&&(_0x25d216[_0x3fd723(0x142)]=_0x3ba37f[_0x3fd723(0xa0)]));const _0xd67520=Debuglet[_0x3fd723(0x102)](_0x4cbaea,_0x270782,_0x341f08,_0x25d216),_0x772925=_0x3b884a?new status_message_1[(_0x3fd723(0xe4))](status_message_1[_0x3fd723(0xe4)][_0x3fd723(0x14c)],_0x3b884a,!![]):undefined,_0x39387d=Debuglet[_0x3fd723(0x12c)](_0x5a1647,_0x41ab46),_0x27c0e4={'uniquifier':_0xd67520,'agentVersion':_0x4cbaea,'labels':{'metadata':JSON[_0x3fd723(0x182)](_0x39387d)},'statusMessage':_0x772925,'packageInfo':_0x15e342,'host':os['hostname'](),'pid':process[_0x3fd723(0x199)]['toString'](),'cpuCoreCount':os['cpus']()[_0x3fd723(0xcf)],'systemTotalMemoryBytes':os[_0x3fd723(0x11f)](),'agentOS':os[_0x3fd723(0x13a)]()};return _0x341f08&&(_0x27c0e4[_0x3fd723(0x136)]=[_0x341f08]),new debuggee_1[(_0x3fd723(0x177))](_0x27c0e4);}static[a5_0x445e47(0x15d)](){const _0x27d86a=a5_0x445e47,{FUNCTION_NAME:_0x1f40a9,FUNCTION_TARGET:_0x5ea202}=process[_0x27d86a(0x1a4)];if(_0x1f40a9||_0x5ea202)return Platforms['CLOUD_FUNCTION'];return Platforms[_0x27d86a(0x167)];}static[a5_0x445e47(0x10e)](){const _0x2cef89=a5_0x445e47;return metadata[_0x2cef89(0x97)]();}static async[a5_0x445e47(0x158)](){const _0x190416=a5_0x445e47;return(await metadata['instance'](_0x190416(0xc2)))[_0x190416(0xaa)];}static async['getSourceContextFromFile'](){const _0x340e90=a5_0x445e47,_0xad6914=await readFilep(_0x340e90(0x18f),'utf8');try{return JSON[_0x340e90(0x16c)](_0xad6914);}catch(_0x57f47f){throw new Error(_0x340e90(0x11d)+_0x57f47f);}}[a5_0x445e47(0x18c)](_0x57ae35){const _0x317f21=a5_0x445e47,_0x2eb454=this;function _0x28e7be(_0x439076){const _0x51e6f9=a5_0x5bd7;var _0x493ae2;_0x2eb454[_0x51e6f9(0x118)][_0x51e6f9(0x14f)](_0x51e6f9(0x163)+((_0x493ae2=_0x2eb454['debuggee'])===null||_0x493ae2===void 0x0?void 0x0:_0x493ae2['id'])+':\x20'+_0x439076),_0x2eb454[_0x51e6f9(0x18c)](Math[_0x51e6f9(0x9c)]((_0x57ae35+0x1)*0x2,_0x2eb454['config'][_0x51e6f9(0xef)][_0x51e6f9(0xd3)]));}setTimeout(()=>{const _0x1104b2=a5_0x5bd7;if(!_0x2eb454[_0x1104b2(0x12d)]){_0x28e7be(new Error(_0x1104b2(0x18d)));return;}_0x2eb454[_0x1104b2(0xf5)][_0x1104b2(0x169)](_0x2eb454[_0x1104b2(0x125)],(_0x4cdc6e,_0x3d9cb7)=>{const _0x50ca6b=_0x1104b2;if(_0x4cdc6e){_0x28e7be(_0x4cdc6e);return;}if(_0x3d9cb7[_0x50ca6b(0x125)]['isDisabled']){_0x28e7be(new Error(_0x50ca6b(0x12b))),_0x2eb454[_0x50ca6b(0xf7)](_0x50ca6b(0xb8));return;}_0x2eb454[_0x50ca6b(0x118)][_0x50ca6b(0xa5)](_0x50ca6b(0x99),_0x3d9cb7[_0x50ca6b(0x125)]['id']),_0x2eb454[_0x50ca6b(0x125)]['id']=_0x3d9cb7[_0x50ca6b(0x125)]['id'],_0x2eb454['emit'](_0x50ca6b(0x1a0),_0x3d9cb7[_0x50ca6b(0x125)]['id']),_0x2eb454[_0x50ca6b(0xf2)][_0x50ca6b(0x198)](),_0x2eb454[_0x50ca6b(0x114)][_0x50ca6b(0xad)](_0x2eb454)(_0x2eb454['debuggee']['id'],()=>{const _0x22fe68=_0x50ca6b;var _0x4ad28b;(_0x4ad28b=_0x2eb454[_0x22fe68(0xc9)])===null||_0x4ad28b===void 0x0?void 0x0:_0x4ad28b[_0x22fe68(0xbf)](_0x2eb454[_0x22fe68(0x197)]),!_0x2eb454['fetcherActive']&&_0x2eb454[_0x22fe68(0x124)](0x0,![]);});});},_0x57ae35*0x3e8)[_0x317f21(0x9e)]();}[a5_0x445e47(0x124)](_0x5681bd,_0x43787a){const _0x4a48ed=a5_0x445e47,_0x50be3a=this;!_0x43787a&&(_0x50be3a['fetcherActive']=!![]),setTimeout(()=>{const _0x5b51f7=a5_0x5bd7;if(!_0x50be3a[_0x5b51f7(0x12d)])return;!_0x43787a&&assert(_0x50be3a['fetcherActive']),_0x50be3a['logger'][_0x5b51f7(0xa5)](_0x5b51f7(0x17d)),_0x50be3a[_0x5b51f7(0xf5)][_0x5b51f7(0x187)](_0x50be3a['debuggee'],(_0x5bc51e,_0x1146f9,_0x47527d)=>{const _0x259340=_0x5b51f7;if(_0x5bc51e){_0x50be3a['logger'][_0x259340(0x14f)](_0x259340(0x11e),_0x5bc51e),_0x50be3a[_0x259340(0x10c)]=![],_0x50be3a[_0x259340(0xc7)](),_0x50be3a[_0x259340(0x18c)](_0x50be3a[_0x259340(0x183)][_0x259340(0xef)][_0x259340(0x190)]);return;}_0x50be3a[_0x259340(0x118)][_0x259340(0xa5)]('\x09'+_0x1146f9[_0x259340(0xcc)]+'\x20completed.');if(!_0x47527d){_0x50be3a[_0x259340(0x118)][_0x259340(0x14f)](_0x259340(0x148)),_0x50be3a[_0x259340(0x124)](_0x50be3a[_0x259340(0x183)][_0x259340(0x109)],_0x43787a);return;}if(_0x47527d[_0x259340(0xee)]){_0x50be3a[_0x259340(0x118)][_0x259340(0xa5)](_0x259340(0xf3)),_0x50be3a[_0x259340(0x124)](0x0,_0x43787a);return;}_0x47527d[_0x259340(0x17b)]&&_0x47527d[_0x259340(0x17b)]!=_0x259340(0xba)&&(this[_0x259340(0x160)][_0x259340(0xb9)]=_0x47527d[_0x259340(0x17b)]);_0x47527d['collectAndSendLog']&&_0x47527d[_0x259340(0xe8)]!==_0x50be3a[_0x259340(0xe8)]&&(_0x50be3a[_0x259340(0xe8)]=_0x47527d['collectLogRequestId'],_0x50be3a[_0x259340(0x168)]?setTimeout(()=>_0x50be3a[_0x259340(0xf5)][_0x259340(0xda)](_0x50be3a[_0x259340(0x125)],_0x47527d['collectLogRequestId'],_0x50be3a['logsPath'])):_0x50be3a['logger'][_0x259340(0xa5)](_0x259340(0x192)+_0x47527d['collectLogRequestId']+_0x259340(0x105)+'logs\x20path\x20not\x20defined'));const _0x2c7748=(_0x47527d[_0x259340(0xca)]||[])[_0x259340(0x14d)](_0x42b81b=>{const _0x21054e=_0x259340,_0x2e24ca=_0x42b81b[_0x21054e(0xc6)]||'CAPTURE';if(_0x50be3a[_0x21054e(0x14e)][_0x42b81b['id']])return![];if(_0x2e24ca!=='CAPTURE'&&_0x2e24ca!==_0x21054e(0x108))return _0x50be3a[_0x21054e(0x118)]['warn'](_0x21054e(0x191),_0x2e24ca),_0x42b81b['status']=new status_message_1[(_0x21054e(0xe4))](status_message_1[_0x21054e(0xe4)][_0x21054e(0x14c)],BREAKPOINT_ACTION_MESSAGE,!![]),_0x50be3a[_0x21054e(0x149)](_0x42b81b),![];return!![];});_0x50be3a[_0x259340(0x12f)](),_0x50be3a[_0x259340(0xfd)](_0x2c7748);Object[_0x259340(0xd7)](_0x50be3a['activeBreakpointMap'])[_0x259340(0xcf)]&&_0x50be3a[_0x259340(0x118)][_0x259340(0xa5)](formatBreakpoints(_0x259340(0x9b),_0x50be3a[_0x259340(0xa6)]));_0x50be3a[_0x259340(0x14b)]=Date[_0x259340(0xff)]();_0x43787a?_0x50be3a[_0x259340(0xf6)]&&(_0x50be3a[_0x259340(0xf6)][_0x259340(0x198)](),_0x50be3a['breakpointFetched']=null):_0x50be3a[_0x259340(0x124)](0x0,_0x43787a);return;});},_0x5681bd*0x3e8)[_0x4a48ed(0x9e)]();}[a5_0x445e47(0xc7)](){const _0xe823d7=a5_0x445e47;this[_0xe823d7(0xf2)]=new CachedPromise(),this['breakpointFetched']&&(this['breakpointFetched'][_0xe823d7(0x198)](),this['breakpointFetched']=null);}[a5_0x445e47(0xfd)](_0x413147){const _0x17470c=a5_0x445e47,_0x4bf09a=this,_0x1eece2=this['convertBreakpointListToMap_'](_0x413147);_0x413147[_0x17470c(0xcf)]&&_0x4bf09a[_0x17470c(0x118)][_0x17470c(0xa5)](formatBreakpoints(_0x17470c(0xe3),_0x1eece2)),_0x413147['forEach'](_0x2208e1=>{const _0x45a402=_0x17470c;!_0x4bf09a[_0x45a402(0x14e)][_0x2208e1['id']]&&!_0x4bf09a[_0x45a402(0xa6)][_0x2208e1['id']]&&(_0x4bf09a[_0x45a402(0x16b)](_0x2208e1,_0x3d1577=>{const _0x88fd28=_0x45a402;_0x3d1577&&_0x4bf09a[_0x88fd28(0x165)](_0x2208e1,!![],![]);}),this['quotaManager'][_0x45a402(0x1a3)](_0x2208e1['id'])),_0x4bf09a['quotaManager'][_0x45a402(0xbc)](_0x2208e1['id'],_0x2208e1['ignoreQuota']),_0x4bf09a[_0x45a402(0x160)][_0x45a402(0x161)](_0x2208e1['id'],_0x2208e1[_0x45a402(0x115)]);}),Debuglet[_0x17470c(0x13d)](this[_0x17470c(0x14e)],_0x1eece2)['forEach'](_0x4f1204=>{delete _0x4bf09a['completedBreakpointMap'][_0x4f1204['id']];}),Debuglet[_0x17470c(0x13d)](this[_0x17470c(0xa6)],_0x1eece2)[_0x17470c(0x164)](_0x4503e0=>{const _0x40c982=_0x17470c;this[_0x40c982(0xd2)](_0x4503e0,!![]);});}['convertBreakpointListToMap_'](_0x10e2b6){const _0x36de4f=a5_0x445e47,_0x42635c={};return _0x10e2b6[_0x36de4f(0x164)](_0x5a3ec9=>{_0x42635c[_0x5a3ec9['id']]=_0x5a3ec9;}),_0x42635c;}[a5_0x445e47(0xd2)](_0x3d3c6f,_0x2e360c){const _0x372d49=a5_0x445e47;this[_0x372d49(0x118)]['info'](_0x372d49(0x185),_0x3d3c6f['id']),this[_0x372d49(0xe2)][_0x372d49(0x10b)](_0x3d3c6f['id']),delete this[_0x372d49(0xa6)][_0x3d3c6f['id']],_0x2e360c&&this['v8debug']&&this[_0x372d49(0xc9)]['clear'](_0x3d3c6f,_0x34237f=>{const _0x311f3f=_0x372d49;if(_0x34237f)this[_0x311f3f(0x118)][_0x311f3f(0x14f)](_0x34237f);});}[a5_0x445e47(0x16b)](_0x2c0555,_0x78cd1c){const _0xaf62bc=a5_0x445e47,_0xab99ca=this;if(!_0xab99ca['config']['allowExpressions']&&(_0x2c0555[_0xaf62bc(0x103)]||_0x2c0555[_0xaf62bc(0x111)])){_0xab99ca[_0xaf62bc(0x118)][_0xaf62bc(0x14f)](ALLOW_EXPRESSIONS_MESSAGE),_0x2c0555[_0xaf62bc(0xcc)]=new status_message_1['StatusMessage'](status_message_1[_0xaf62bc(0xe4)][_0xaf62bc(0x14c)],ALLOW_EXPRESSIONS_MESSAGE,!![]),setImmediate(()=>{_0x78cd1c(ALLOW_EXPRESSIONS_MESSAGE);});return;}if(utils[_0xaf62bc(0xdc)](process[_0xaf62bc(0x173)],_0xaf62bc(0x19e))){const _0x34a744=NODE_VERSION_MESSAGE;_0xab99ca[_0xaf62bc(0x118)][_0xaf62bc(0x14f)](_0x34a744),_0x2c0555[_0xaf62bc(0xcc)]=new status_message_1[(_0xaf62bc(0xe4))](status_message_1[_0xaf62bc(0xe4)][_0xaf62bc(0x14c)],_0x34a744,!![]),setImmediate(()=>{_0x78cd1c(_0x34a744);});return;}const _0x50042f=_0x2c0555[_0xaf62bc(0x128)]?Number(_0x2c0555[_0xaf62bc(0x128)][_0xaf62bc(0x10a)]):Date[_0xaf62bc(0xff)]()/0x3e8,_0x2d8411=_0x2c0555[_0xaf62bc(0x1ab)]||_0xab99ca[_0xaf62bc(0x183)]['breakpointExpirationSec'];_0x2c0555['expirationTime']=_0x50042f+_0x2d8411,_0xab99ca[_0xaf62bc(0xc9)][_0xaf62bc(0x134)](_0x2c0555,_0x11d873=>{const _0x3fa917=_0xaf62bc;if(_0x11d873){_0x78cd1c(_0x11d873);return;}_0xab99ca[_0x3fa917(0x118)][_0x3fa917(0xa5)](_0x3fa917(0x138)+_0x2c0555['id']),_0xab99ca[_0x3fa917(0xa6)][_0x2c0555['id']]=_0x2c0555,_0x2c0555[_0x3fa917(0xc6)]===_0x3fa917(0x108)?_0xab99ca[_0x3fa917(0xc9)][_0x3fa917(0x16d)](_0x2c0555,(_0x1491f4,_0x54a7af)=>{const _0x240685=_0x3fa917,_0x4778f5=_0x240685(0xbd)+Debuglet[_0x240685(0xfb)](_0x1491f4,_0x54a7af),_0x28a510=this['quotaManager']['quotaCheck'](_0x4778f5,_0x2c0555['id']);_0x28a510&&_0xab99ca[_0x240685(0x160)]['addAndPipeLog'](_0xab99ca[_0x240685(0x125)],_0x2c0555['id'],_0x28a510,_0x2c0555[_0x240685(0xd6)]);},()=>{const _0x26070e=_0x3fa917;return _0xab99ca[_0x26070e(0x14e)][_0x2c0555['id']];},_0xad3c9f=>{const _0x49bbb8=_0x3fa917;if(_0xad3c9f){_0xab99ca[_0x49bbb8(0x118)][_0x49bbb8(0x14f)](_0xad3c9f),_0x78cd1c(_0xad3c9f);return;}}):_0xab99ca['v8debug']['wait'](_0x2c0555,_0x962057=>{const _0x5e6c2d=_0x3fa917;if(_0x962057){setImmediate(()=>{const _0x42fd7d=a5_0x5bd7;_0xab99ca[_0x42fd7d(0x118)][_0x42fd7d(0x14f)](_0x962057),_0x78cd1c(_0x962057);});return;}_0xab99ca['logger'][_0x5e6c2d(0xa5)]('Breakpoint\x20hit!:\x20'+_0x2c0555['id']),_0xab99ca[_0x5e6c2d(0x165)](_0x2c0555,_0xab99ca[_0x5e6c2d(0xc9)][_0x5e6c2d(0xd9)](_0x2c0555['id'])<=0x0);}),_0xab99ca[_0x3fa917(0x13e)](_0x2c0555);});}[a5_0x445e47(0x165)](_0x17e7e9,_0x5c0371,_0x1b604f=!![]){const _0x15ca0a=a5_0x445e47,_0xd9e255=this;_0xd9e255['logger']['info']('\x09updating\x20breakpoint\x20data\x20on\x20server',_0x17e7e9['id']),_0x5c0371&&(_0xd9e255[_0x15ca0a(0x14e)][_0x17e7e9['id']]=!![],_0xd9e255[_0x15ca0a(0xd2)](_0x17e7e9,_0x1b604f)),_0xd9e255[_0x15ca0a(0xf5)]['enqueueBreakpointUpdate'](_0xd9e255[_0x15ca0a(0x125)],extend(!![],{},_0x17e7e9));}[a5_0x445e47(0x13e)](_0x2f5a48){const _0x50e90a=a5_0x445e47,_0x486fa9=this;_0x486fa9[_0x50e90a(0x118)][_0x50e90a(0x106)](_0x50e90a(0x189),_0x2f5a48['id']);const _0x13d256=extend(!![],{},_0x2f5a48);_0x13d256[_0x50e90a(0x176)]=![],_0x13d256['status']=new status_message_1[(_0x50e90a(0xe4))](status_message_1[_0x50e90a(0xe4)]['UNSPECIFIED'],'',![],!![]),_0x486fa9[_0x50e90a(0xf5)][_0x50e90a(0x186)](_0x486fa9['debuggee'],_0x13d256);}[a5_0x445e47(0x149)](_0x4243d8){const _0x3784b6=a5_0x445e47,_0x5094b2=this;_0x5094b2[_0x3784b6(0x14e)][_0x4243d8['id']]=!![],_0x5094b2[_0x3784b6(0xf5)][_0x3784b6(0x186)](_0x5094b2[_0x3784b6(0x125)],_0x4243d8);}[a5_0x445e47(0x12f)](){const _0x45b127=a5_0x445e47,_0xc60eb1=this,_0x1221ea=Date[_0x45b127(0xff)]()/0x3e8;Object[_0x45b127(0x139)](this['activeBreakpointMap'])[_0x45b127(0x14d)](_0x333d53=>_0x333d53[_0x45b127(0xfc)]?_0x333d53[_0x45b127(0xfc)]<_0x1221ea:![])[_0x45b127(0x164)](_0x32e547=>{const _0x1b3942=_0x45b127;_0xc60eb1[_0x1b3942(0x118)]['info']('Expiring\x20breakpoint\x20'+_0x32e547['id']),_0x32e547['status']={'description':{'format':'The\x20action\x20has\x20expired'},'isError':!![],'refersTo':status_message_1[_0x1b3942(0xe4)][_0x1b3942(0xd5)]},_0xc60eb1['updateBreakpoint_'](_0x32e547,!![]);});}['stop'](){const _0x1b162e=a5_0x445e47;assert['ok'](this[_0x1b162e(0x12d)],_0x1b162e(0xe7)),this[_0x1b162e(0x118)]['debug'](_0x1b162e(0x122)),this[_0x1b162e(0x12d)]=![],this['emit'](_0x1b162e(0x98));}[a5_0x445e47(0x114)](_0x4adfe2,_0x3b6295){const _0x5418a1=a5_0x445e47,_0x556149=this;this[_0x5418a1(0xf5)][_0x5418a1(0x114)](_0x4adfe2,(_0x41c8a9,_0xc6fd1,_0x5e987c)=>{const _0x2e89f5=_0x5418a1;if(_0x41c8a9)_0x556149[_0x2e89f5(0x118)][_0x2e89f5(0xb7)](_0x2e89f5(0x12a),_0x41c8a9),_0x556149[_0x2e89f5(0x197)]=new dummy_blocklist_manager_1[(_0x2e89f5(0x16f))](!![]);else{const _0x5e6288=_0xc6fd1[_0x2e89f5(0x14a)],_0x433a05=_0xc6fd1[_0x2e89f5(0xde)];_0x556149[_0x2e89f5(0x197)]=new patterns_blocklist_manager_1['PatternsBlocklistManager'](_0x5e6288,_0x433a05,this[_0x2e89f5(0x183)]);}_0x3b6295();});}static['mapSubtract'](_0x4b548b,_0x13130e){const _0x4ad4f1=a5_0x445e47,_0x5bb793=[];for(const _0x2c17e7 in _0x4b548b){!_0x13130e[_0x2c17e7]&&_0x5bb793[_0x4ad4f1(0x113)](_0x4b548b[_0x2c17e7]);}return _0x5bb793;}static['format'](_0x4ef4cc,_0x3d2d4d){const _0x594589=a5_0x445e47,_0x3b1776=Debuglet[_0x594589(0xc3)](_0x4ef4cc,_0x3d2d4d[_0x594589(0xcf)]);for(let _0x5dbc74=0x0;_0x5dbc74<_0x3b1776[_0x594589(0xcf)];_0x5dbc74++){if(!_0x3b1776[_0x5dbc74]['v'])continue;if(_0x3b1776[_0x5dbc74]['v']==='$$'){_0x3b1776[_0x5dbc74]='$';continue;}for(let _0x2357b1=0x0;_0x2357b1<_0x3d2d4d[_0x594589(0xcf)];_0x2357b1++){if(_0x3b1776[_0x5dbc74]['v']==='$'+_0x2357b1){_0x3b1776[_0x5dbc74]=_0x3d2d4d[_0x2357b1];break;}}}return _0x3b1776[_0x594589(0x157)]('');}static['_tokenize'](_0x1623ea,_0x10cbc6){const _0x149a84=a5_0x445e47;let _0x3040ea=Debuglet['_delimit'](_0x1623ea,'$$');for(let _0x5eb297=_0x10cbc6-0x1;_0x5eb297>=0x0;_0x5eb297--){const _0x1800bc=[];for(let _0x4795a7=0x0;_0x4795a7<_0x3040ea['length'];_0x4795a7++){_0x3040ea[_0x4795a7]['v']?_0x1800bc[_0x149a84(0x113)](_0x3040ea[_0x4795a7]):_0x1800bc[_0x149a84(0x113)](...Debuglet[_0x149a84(0xa7)](_0x3040ea[_0x4795a7],'$'+_0x5eb297));}_0x3040ea=_0x1800bc;}return _0x3040ea;}static[a5_0x445e47(0xa7)](_0x29fbed,_0xab72b6){const _0x3a12e2=a5_0x445e47,_0x2ade52=_0x29fbed['split'](_0xab72b6),_0x186241=[];_0x186241['push'](_0x2ade52[0x0]);for(let _0x39c3bc=0x1;_0x39c3bc<_0x2ade52[_0x3a12e2(0xcf)];_0x39c3bc++){_0x186241[_0x3a12e2(0x113)]({'v':_0xab72b6},_0x2ade52[_0x39c3bc]);}return _0x186241;}static[a5_0x445e47(0x102)](_0x58e8b7,_0x287f39,_0x26cff9,_0xdc5e6){const _0x5ad341=a5_0x445e47,_0x355812=_0x58e8b7+_0x287f39+JSON[_0x5ad341(0x182)](_0x26cff9)+JSON[_0x5ad341(0x182)](_0xdc5e6);return crypto[_0x5ad341(0xb1)]('sha1')['update'](_0x355812)['digest'](_0x5ad341(0xec));}}exports['Debuglet']=Debuglet;
|
|
1
|
+
const a5_0x1909=['__esModule','Unable\x20to\x20discover\x20source\x20context','pipingStatus','max_condition_cost','\x0a\x09createdTime:\x20','service','capture','./blocklisting/patterns-blocklist-manager','updatePromise','breakpointFetched','info','v8debug','javascriptFileExtensions','everything','util','FETCH_BREAKPOINTS_ONCE','stop','map','quotaCheck','isAvailable','EventEmitter','LIGHTRUN_INIT_WAIT_TIME_MS','Disabled\x20by\x20the\x20server','events','\x09successfully\x20added\x20breakpoint\x20\x20','pipingManager','update','\x20See\x20the\x20debug\x20agent\x20documentation\x20at\x20https://goo.gl/ShSm6r.','GAE-','remotelyDisabled','fetch_breakpoints_once','packageInfo','jsStats','debuggee','%d\x20[%p]\x20%f{1}:%l\x20-\x20%m','Debuggee','agentLog','action','version','debuglet','completedBreakpointMap','metadata','hash','now','java-properties','createTime','\x09Long\x20poll\x20completed.','registration','isReady','normalizeConfig_','debuggeeRegistered','convertBreakpointListToMap_','GAE_DEPLOYMENT_ID','breakpointFetchedTimestamp','status','BREAKPOINT_AGE','2975309luhxCr','sourceContext','sendAgentLogsToServer','resolve','removeBreakpoint_','NOT_SET','selectStats','LOG','StatusMessage','promiseResolve','config','scheduleBreakpointFetch_','versions','1389802hUsTmo','breakpoints_fetched','max_snapshot_frame_count','227644ZkZCdy','UNSPECIFIED','Stopping\x20Debuglet','promise','hostname','allowExpressions','set','getBooleanValue','attributes/cluster-name','filter','join','findFiles','stringify','breakpointExpirationSec','registerSignals','logger','CachedPromise','data','PipingManager','printFullVersion','getPlatform','collectAndSendLog','extend','pinned_certs','running','Found\x20breakpoint\x20with\x20invalid\x20action:','getInt','forEach','GAE_MODULE_NAME','/lightrun_nodejs_agent.','LIGHTRUN_WAIT_FOR_INIT','CAPTURE','to\x20avoid\x20a\x20scan\x20of\x20the\x20entire\x20filesystem\x20for\x20JavaScript\x20files.\x20','Failed\x20getting\x20blocklist\x20from\x20server:\x20','values','addBreakpoint_','_createUniquifier','versions\x20older\x20than\x200.12\x20are\x20not\x20supported.','updateBreakpoint_','Use\x20config\x20`allowRootAsWorkingDirectory`\x20if\x20you\x20really\x20want\x20to\x20','Server\x20breakpoints:\x20','getLogger','condition','QuotaManager','register','constructor','mapSubtract','cloud_function','filename','setBlocklistManager','5.2\x20||\x20<4','FUNCTION_NAME','serviceContext','agentConfigFile','LIGHTRUN_API_ENDPOINT','./io/sourcemapper','Controller','1188188kctNrO','max_dynamic_log_rate','getSourceContextFromFile','max_log_file_bytes','transmission_bulk_max_size','GAE_SERVICE','isRunning','defaultConfig','string','GAE_MODULE_VERSION','controller','path','createPerBreakpointConditionQuota','file','errors','deregister','tags','isDisabled','createDebuggeeMetadata','enqueueBreakpointUpdate','warn','error','expirationSeconds','Fetching\x20breakpoints','Platforms','setIgnoreQuota','\x20completed.','\x09deleted\x20breakpoint','getBoolean','enable','then','getAgentLogger','js.map','inspect','agent_regmetadata_file','fetcherActive','Error\x20fetching\x20breakpoints\x20–\x20scheduling\x20retry','activeBreakpointMap','expireOldBreakpoints','pid','push','node','setPipingStatus','Unique\x20ID\x20for\x20this\x20Application:\x20','\x0a\x09expressions:\x20','cwd','hex','getAgentConfig','moment','dynamic_log_quota_recovery_ms','apply','collectLogRequestId','GAE_VERSION','argv','rejectBreakpoint_','./v8/debugapi','getFloat','_tokenize','com.lightrun.secret','1wxeWTu','blocklistManager','sourceContexts','parse','SIGTERM','pipeLogs','removePerBreakpointQuota','create','isOutOfQuota','instance','sha1','breakpoint\x20id:\x20%s,\x0a\x09location:\x20%s','level','concat','stop\x20can\x20only\x20be\x20called\x20on\x20a\x20running\x20agent','expressions','1204589yhnsYv','LIGHTRUN_SECRET','format','readFileSync','console','toString','nextEnableTimeout','breakpoint_set','_delimit','Starting\x20debuggee','project','Expiring\x20breakpoint\x20','quotaManager','1xZKutN','\x20See\x20https://github.com/googleapis/cloud-debug-nodejs/issues/516\x20for\x20more','totalmem','selectFiles','once','K_SERVICE','seconds','getClusterNameFromMetadata','CLOUD_FUNCTION','max_log_cpu_cost','\x20because\x20','../debuggee','blacklist','getBlocklist','5ybaIAZ','minorVersion_','internal','logsPath','clear','env','satisfies','./config','log4js','unversioned','Failed\x20to\x20re-register\x20debuggee\x20','reportBreakpointAccepted_','\x09invalid\x20list\x20response:\x20empty\x20body','getFirst','registered','debug','LOGPOINT:\x20','scan','utf8','./util/utils','isReadyManager','./controller','K_REVISION','location','.log','updateActiveBreakpoints_','allowRootAsWorkingDirectory','runningOnGCP','reporting\x20breakpoint\x20accepted\x20by\x20agent','initError','remainingHits','logs\x20path\x20not\x20defined','DEFAULT','breakpointUpdateIntervalSec','isFinalState','Failed\x20to\x20read\x20metadata\x20file\x20','split','promisify','kill','max_dynamic_log_bytes_rate','158324pRSjay','collect_log_cooldown_ms','fetchBreakpointsOnce','emit','expirationTime','length','LIGHTRUN_AGENT_CONFIG','Debuglet','max_snapshot_buffer_size','maxDataSize','default','digest','Breakpoint\x20hit!:\x20','Debuglet\x20not\x20running','./blocklisting/dummy-blocklist-manager','quotaRecoverySeconds','LIGHTRUN_TAGS','ignoreQuota','listBreakpoints','buildRegExp','beforeExit','get','existsSync','min','workingDirectory','configure','GAE_MINOR_VERSION','scheduleRegistration_','relative','utf-8','ignore_quota','maxRegistrationRetryDelay','log','270799KhuvFV','defineProperty','minorversion','createDebuggee','DummyBlocklistManager','Ignoring\x20request\x20to\x20collect\x20logs\x20with\x20id\x20'];const a5_0x151473=a5_0x2365;(function(_0x558909,_0x569bac){const _0x122964=a5_0x2365;while(!![]){try{const _0x49ecec=parseInt(_0x122964(0x1bc))+-parseInt(_0x122964(0x1f8))+parseInt(_0x122964(0x10d))*-parseInt(_0x122964(0x11a))+-parseInt(_0x122964(0x1bf))*parseInt(_0x122964(0x128))+parseInt(_0x122964(0x150))*parseInt(_0x122964(0xfd))+-parseInt(_0x122964(0x171))+parseInt(_0x122964(0x1af));if(_0x49ecec===_0x569bac)break;else _0x558909['push'](_0x558909['shift']());}catch(_0x59be2e){_0x558909['push'](_0x558909['shift']());}}}(a5_0x1909,0xb02e7));function a5_0x2365(_0x3fa3ab,_0x3672ea){_0x3fa3ab=_0x3fa3ab-0xdf;let _0x1e9d0c=a5_0x1909[_0x3fa3ab];return _0x1e9d0c;}const a5_0x26fcf5=function(){let _0x319ce4=!![];return function(_0x268a20,_0x539061){const _0x102f08=_0x319ce4?function(){const _0x314f29=a5_0x2365;if(_0x539061){const _0x4a7764=_0x539061[_0x314f29(0xf4)](_0x268a20,arguments);return _0x539061=null,_0x4a7764;}}:function(){};return _0x319ce4=![],_0x102f08;};}(),a5_0x82c0de=a5_0x26fcf5(this,function(){const _0x42beb6=function(){const _0x534980=a5_0x2365,_0x158989=_0x42beb6[_0x534980(0x1ec)]('return\x20/\x22\x20+\x20this\x20+\x20\x22/')()['constructor']('^([^\x20]+(\x20+[^\x20]+)+)+[^\x20]}');return!_0x158989['test'](a5_0x82c0de);};return _0x42beb6();});a5_0x82c0de();'use strict';Object[a5_0x151473(0x172)](exports,a5_0x151473(0x177),{'value':!![]}),exports[a5_0x151473(0x157)]=exports['CachedPromise']=exports[a5_0x151473(0x210)]=void 0x0;const assert=require('assert'),log4js_1=require(a5_0x151473(0x130)),crypto=require('crypto'),events_1=require(a5_0x151473(0x18e)),extend=require(a5_0x151473(0x1d5)),fs=require('fs'),metadata=require('gcp-metadata'),path=require(a5_0x151473(0x203)),util=require(a5_0x151473(0x185)),properties=require(a5_0x151473(0x1a3)),status_message_1=require('../client/stackdriver/status-message'),debuggee_1=require(a5_0x151473(0x125)),config_1=require(a5_0x151473(0x12f)),controller_1=require(a5_0x151473(0x13d)),scanner=require('./io/scanner'),SourceMapper=require(a5_0x151473(0x1f6)),utils=require(a5_0x151473(0x13b)),debugapi=require(a5_0x151473(0xf9)),os=require('os'),moment=require(a5_0x151473(0xf2)),piping_manager_1=require('./piping-manager'),quota_manager_1=require('./quota-manager'),patterns_blocklist_manager_1=require(a5_0x151473(0x17e)),dummy_blocklist_manager_1=require(a5_0x151473(0x15e)),readFilep=util[a5_0x151473(0x14d)](fs['readFile']),ALLOW_EXPRESSIONS_MESSAGE='Expressions\x20and\x20conditions\x20are\x20not\x20allowed'+'\x20by\x20default.\x20Please\x20set\x20the\x20allowExpressions\x20configuration\x20option\x20to\x20true.'+a5_0x151473(0x192),NODE_VERSION_MESSAGE='Node.js\x20version\x20not\x20supported.\x20Node.js\x205.2.0\x20and\x20'+a5_0x151473(0x1e4),NODE_10_CIRC_REF_MESSAGE='capture.maxDataSize=0\x20is\x20not\x20recommended\x20on\x20older\x20versions\x20of\x20Node\x2010/11'+'\x20and\x20Node\x2012.'+a5_0x151473(0x11b)+'\x20information.',BREAKPOINT_ACTION_MESSAGE='The\x20only\x20currently\x20supported\x20breakpoint\x20actions'+'\x20are\x20CAPTURE\x20and\x20LOG.',PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS=(0x28+0x21c)/0x2*0x3e8;var Platforms;(function(_0x26928e){const _0x260ba3=a5_0x151473;_0x26928e[_0x260ba3(0x122)]=_0x260ba3(0x1ee),_0x26928e[_0x260ba3(0x148)]=_0x260ba3(0x15a);}(Platforms=exports[a5_0x151473(0x210)]||(exports[a5_0x151473(0x210)]={})));const formatBreakpoint=(_0x4189e3,_0x36d048)=>{const _0x4e4474=a5_0x151473;let _0x4d0be4=_0x4189e3+util['format'](_0x4e4474(0x108),_0x36d048['id'],util[_0x4e4474(0xe3)](_0x36d048[_0x4e4474(0x13f)]));if(_0x36d048[_0x4e4474(0x1a4)]){const _0x23d258=Number(_0x36d048[_0x4e4474(0x1a4)][_0x4e4474(0x120)]),_0x28f638=new Date(_0x23d258*0x3e8);_0x4d0be4+=_0x4e4474(0x17b)+_0x28f638['toString']();}return _0x36d048[_0x4e4474(0x1e9)]&&(_0x4d0be4+='\x0a\x09condition:\x20'+util[_0x4e4474(0xe3)](_0x36d048['condition'])),_0x36d048[_0x4e4474(0x10c)]&&(_0x4d0be4+=_0x4e4474(0xee)+util[_0x4e4474(0xe3)](_0x36d048['expressions'])),_0x4d0be4;},formatBreakpoints=(_0x4505f9,_0x28b036)=>{const _0x55cb69=a5_0x151473;return _0x4505f9+Object['keys'](_0x28b036)[_0x55cb69(0x188)](_0x21f2cf=>{return formatBreakpoint('',_0x28b036[_0x21f2cf]);})['join']('\x0a');};class CachedPromise{constructor(){const _0x1e37f2=a5_0x151473;this['promiseResolve']=null,this[_0x1e37f2(0x1c2)]=new Promise(_0x22681e=>{this['promiseResolve']=_0x22681e;});}[a5_0x151473(0x165)](){const _0x454ec1=a5_0x151473;return this[_0x454ec1(0x1c2)];}['resolve'](){const _0x3c6568=a5_0x151473;this[_0x3c6568(0x1b8)]&&(this['promiseResolve'](),this[_0x3c6568(0x1b8)]=null);}}exports[a5_0x151473(0x1cf)]=CachedPromise;class IsReadyImpl{constructor(_0x30d701){const _0x59e7f0=a5_0x151473;this[_0x59e7f0(0x19e)]=_0x30d701;}[a5_0x151473(0x1a7)](){const _0x344368=a5_0x151473;return this[_0x344368(0x19e)][_0x344368(0x1a7)]();}}class Debuglet extends events_1[a5_0x151473(0x18b)]{constructor(_0x1fa8e2,_0x2d4f29){const _0x45877e=a5_0x151473;super(),this[_0x45877e(0x113)]=null,this[_0x45877e(0x13c)]=new IsReadyImpl(this),this[_0x45877e(0x1b9)]=Debuglet[_0x45877e(0x1a8)](_0x2d4f29),this['debug']=_0x1fa8e2,this[_0x45877e(0x182)]=null,this['running']=![],this[_0x45877e(0x117)]=null,this[_0x45877e(0xe5)]=![],this['logger']=this[_0x45877e(0xe1)](this[_0x45877e(0x1b9)]),this[_0x45877e(0x202)]=new controller_1[(_0x45877e(0x1f7))](this[_0x45877e(0x137)],this[_0x45877e(0x1b9)],this['logger']),this[_0x45877e(0x198)]=null,this[_0x45877e(0xe7)]={},this[_0x45877e(0x19f)]={},this[_0x45877e(0x180)]=null,this['breakpointFetchedTimestamp']=-Infinity,this[_0x45877e(0x1a9)]=new CachedPromise(),this['quotaManager']=new quota_manager_1[(_0x45877e(0x1ea))](this[_0x45877e(0x1ce)],this['config']),this[_0x45877e(0x190)]=new piping_manager_1[(_0x45877e(0x1d1))]('APP_ONLY',this[_0x45877e(0x202)],this[_0x45877e(0x1b9)]);}[a5_0x151473(0xe1)](_0x2d1641){const _0x585c29=a5_0x151473;let _0x417345;if(_0x2d1641['agentLog'][_0x585c29(0x12b)]){const _0xed8c8a=moment()[_0x585c29(0x10f)]('YYMMDD-HHmmss'),_0x331580=_0x2d1641[_0x585c29(0x19b)]['logsPath']+(_0x585c29(0x1dc)+_0xed8c8a+_0x585c29(0x140));this[_0x585c29(0x12b)]=_0x331580,_0x417345={'type':_0x585c29(0x205),'filename':_0x331580};}else _0x417345={'type':_0x585c29(0x111)};_0x417345['layout']={'type':'pattern','pattern':_0x585c29(0x199)},log4js_1[_0x585c29(0x169)]({'appenders':{'everything':_0x417345},'categories':{'default':{'appenders':[_0x585c29(0x184)],'level':_0x2d1641['agentLog'][_0x585c29(0x109)],'enableCallStack':!![]}}});const _0x3b6bac=log4js_1[_0x585c29(0x1e8)]();return _0x3b6bac['level']=_0x2d1641[_0x585c29(0x19b)][_0x585c29(0x109)],_0x3b6bac;}static[a5_0x151473(0x1a8)](_0x1db8f7){const _0x5a7d71=a5_0x151473,_0x1d658f={'serviceContext':{'service':process[_0x5a7d71(0x12d)][_0x5a7d71(0x1fd)]||process['env'][_0x5a7d71(0x1db)]||process['env'][_0x5a7d71(0x11f)],'version':process['env'][_0x5a7d71(0xf6)]||process[_0x5a7d71(0x12d)][_0x5a7d71(0x201)]||process[_0x5a7d71(0x12d)][_0x5a7d71(0x13e)],'minorVersion_':process[_0x5a7d71(0x12d)][_0x5a7d71(0x1ab)]||process['env']['GAE_MINOR_VERSION']},'metadata':{'filename':process[_0x5a7d71(0x12d)]['LIGHTRUN_METADATA_FILE'],'registration':{}},'lightrunSecret':process[_0x5a7d71(0x12d)][_0x5a7d71(0x10e)],'apiEndpoint':process[_0x5a7d71(0x12d)][_0x5a7d71(0x1f5)],'fetchBreakpointsOnce':utils[_0x5a7d71(0x1c6)](process['env'][_0x5a7d71(0x186)]),'lightrunWaitForInit':utils[_0x5a7d71(0x1c6)](process['env'][_0x5a7d71(0x1dd)]),'lightrunInitWaitTimeMs':process[_0x5a7d71(0x12d)][_0x5a7d71(0x18c)]};process[_0x5a7d71(0x12d)][_0x5a7d71(0x1f2)]&&(_0x1d658f[_0x5a7d71(0x1f3)]['service']=process[_0x5a7d71(0x12d)][_0x5a7d71(0x1f2)],_0x1d658f[_0x5a7d71(0x1f3)][_0x5a7d71(0x19d)]=_0x5a7d71(0x131));process['env'][_0x5a7d71(0x160)]&&(_0x1d658f[_0x5a7d71(0x1a0)][_0x5a7d71(0x1a6)]={'tags':process[_0x5a7d71(0x12d)]['LIGHTRUN_TAGS'][_0x5a7d71(0x14c)](',')});const _0x53b7b3=Debuglet[_0x5a7d71(0xf1)](process[_0x5a7d71(0x12d)][_0x5a7d71(0x156)]||(_0x1db8f7===null||_0x1db8f7===void 0x0?void 0x0:_0x1db8f7[_0x5a7d71(0x1f4)])||config_1['defaultConfig'][_0x5a7d71(0x1f4)]);return extend(!![],{},config_1[_0x5a7d71(0x1ff)],_0x53b7b3,_0x1db8f7,_0x1d658f);}static[a5_0x151473(0xf1)](_0x46fac2){const _0x496c4a=a5_0x151473;var _0x171bb4;if(fs[_0x496c4a(0x166)](_0x46fac2)){const _0xe18e79=properties['of'](_0x46fac2);return{'lightrunSecret':_0xe18e79[_0x496c4a(0x135)](_0x496c4a(0xfc)),'breakpointExpirationSec':_0xe18e79[_0x496c4a(0x1d9)]('breakpoint_expiration_sec'),'transmissionBulkMaxSize':_0xe18e79[_0x496c4a(0x1d9)](_0x496c4a(0x1fc)),'pinnedCerts':(_0x171bb4=_0xe18e79['getFirst'](_0x496c4a(0x1d6)))===null||_0x171bb4===void 0x0?void 0x0:_0x171bb4['split'](','),'metadata':{'filename':_0xe18e79[_0x496c4a(0x135)](_0x496c4a(0xe4))},'capture':{'maxFrames':_0xe18e79[_0x496c4a(0x1d9)](_0x496c4a(0x1be)),'maxDataSize':_0xe18e79[_0x496c4a(0x1d9)](_0x496c4a(0x158))},'agentLog':{'collectCooldownMs':_0xe18e79[_0x496c4a(0x1d9)](_0x496c4a(0x151)),'maxLogFileBytes':_0xe18e79[_0x496c4a(0x1d9)](_0x496c4a(0x1fb))},'quota':{'ignoreQuota':_0xe18e79[_0x496c4a(0x214)](_0x496c4a(0x16e)),'maxCPUCost':_0xe18e79[_0x496c4a(0xfa)](_0x496c4a(0x123)),'maxConditionCost':_0xe18e79['getFloat'](_0x496c4a(0x17a)),'maxDynamicLogRate':_0xe18e79['getInt'](_0x496c4a(0x1f9)),'maxDynamicLogByteRate':_0xe18e79[_0x496c4a(0x1d9)](_0x496c4a(0x14f)),'quotaRecoverySeconds':_0xe18e79[_0x496c4a(0x1d9)]('dynamic_log_quota_recovery_ms')&&_0xe18e79[_0x496c4a(0x1d9)](_0x496c4a(0xf3))/0x3e8},'fetchBreakpointsOnce':_0xe18e79['getBoolean'](_0x496c4a(0x195))};}return;}static[a5_0x151473(0x163)](_0x338244){const _0x2963d2=a5_0x151473;return new RegExp(_0x338244['map'](_0x45e60a=>_0x45e60a+'$')[_0x2963d2(0x1c9)]('|'));}static async['findFiles'](_0x28557a,_0x3ec9a7){const _0x5a3ee1=a5_0x151473,_0x169d19=_0x28557a['workingDirectory'],_0x18a431=await scanner[_0x5a3ee1(0x139)](_0x169d19,Debuglet[_0x5a3ee1(0x163)](_0x28557a['javascriptFileExtensions'][_0x5a3ee1(0x10a)](_0x5a3ee1(0xe2))),_0x3ec9a7),_0x242e30=_0x18a431[_0x5a3ee1(0x1b5)](Debuglet[_0x5a3ee1(0x163)](_0x28557a[_0x5a3ee1(0x183)])),_0x43df52=_0x18a431[_0x5a3ee1(0x11d)](/.js.map$/,process[_0x5a3ee1(0xef)]()),_0x35dfc5=_0x18a431[_0x5a3ee1(0x206)]();return{'jsStats':_0x242e30,'mapFiles':_0x43df52,'errors':_0x35dfc5,'hash':_0x18a431['hash']};}async['start'](){const _0x538420=a5_0x151473,_0x5e3f6b=this,_0x586049=_0x5e3f6b[_0x538420(0x1b9)][_0x538420(0x168)];if(!_0x5e3f6b[_0x538420(0x1b9)][_0x538420(0x142)]&&path[_0x538420(0x1c9)](_0x586049,'..')===_0x586049){const _0x123ef9='The\x20working\x20directory\x20is\x20a\x20root\x20directory.\x20Disabling\x20'+_0x538420(0x1df)+_0x538420(0x1e6)+'do\x20this.';_0x5e3f6b[_0x538420(0x1ce)]['error'](_0x123ef9),_0x5e3f6b[_0x538420(0x153)]('initError',new Error(_0x123ef9));return;}let _0x4c02b0;process[_0x538420(0x12d)][_0x538420(0x16a)]&&(_0x4c02b0=_0x538420(0x193)+process['env'][_0x538420(0x16a)]);let _0x41e071;try{_0x41e071=await Debuglet[_0x538420(0x1ca)](_0x5e3f6b['config'],_0x4c02b0),_0x41e071[_0x538420(0x206)]['forEach'](_0x5e3f6b[_0x538420(0x1ce)][_0x538420(0x20c)]);}catch(_0x169acf){_0x5e3f6b['logger'][_0x538420(0x20d)]('Error\x20scanning\x20the\x20filesystem.',_0x169acf),_0x5e3f6b['emit']('initError',_0x169acf);return;}let _0x3663b1;try{_0x3663b1=await SourceMapper[_0x538420(0x104)](_0x41e071['mapFiles']);}catch(_0x2f5341){_0x5e3f6b['logger'][_0x538420(0x20d)]('Error\x20processing\x20the\x20sourcemaps.',_0x2f5341),_0x5e3f6b[_0x538420(0x153)](_0x538420(0x145),_0x2f5341);return;}_0x5e3f6b['v8debug']=debugapi[_0x538420(0x104)](_0x5e3f6b['logger'],_0x5e3f6b['config'],_0x41e071[_0x538420(0x197)],_0x3663b1,this[_0x538420(0x119)]);const _0x29445d=_0x4c02b0||_0x41e071[_0x538420(0x1a1)];_0x5e3f6b[_0x538420(0x1ce)]['info'](_0x538420(0xed)+_0x29445d),utils[_0x538420(0x1d2)](_0x5e3f6b['logger']);let _0x97a0b;try{_0x97a0b=_0x5e3f6b['config'][_0x538420(0x1b0)]||await Debuglet[_0x538420(0x1fa)]();}catch(_0x3e9c5b){_0x5e3f6b[_0x538420(0x1ce)][_0x538420(0x20c)](_0x538420(0x178),_0x3e9c5b);}this[_0x538420(0x1b9)][_0x538420(0x17d)]&&this['config'][_0x538420(0x17d)][_0x538420(0x159)]===0x0&&utils[_0x538420(0x12e)](process[_0x538420(0x19d)],'>=10\x20<10.15.3\x20||\x20>=11\x20<11.7\x20||\x20>=12')&&_0x5e3f6b['logger'][_0x538420(0x20c)](NODE_10_CIRC_REF_MESSAGE),_0x5e3f6b[_0x538420(0x1ce)][_0x538420(0x137)](_0x538420(0x116)),_0x5e3f6b[_0x538420(0x1d7)]=!![],_0x5e3f6b['debuggee']=Debuglet['createDebuggee'](_0x29445d,_0x5e3f6b['config'],_0x97a0b,_0x5e3f6b[_0x538420(0x137)][_0x538420(0x196)],_0x5e3f6b['logger'],undefined),_0x5e3f6b[_0x538420(0x1cd)](),_0x5e3f6b['scheduleRegistration_'](0x0),_0x5e3f6b[_0x538420(0x153)]('started');}['registerSignals'](){const _0x1740c4=a5_0x151473,_0x27aa2a=[_0x1740c4(0x101),'SIGINT','SIGQUIT'];_0x27aa2a['forEach'](_0x45bfe0=>{const _0x34d684=_0x1740c4;process[_0x34d684(0x11e)](_0x45bfe0,()=>{const _0x3bd44b=_0x34d684;this[_0x3bd44b(0x202)][_0x3bd44b(0x207)](this[_0x3bd44b(0x198)],_0x4f2390=>{const _0x2d969c=_0x3bd44b;process[_0x2d969c(0x14e)](process[_0x2d969c(0xe9)],_0x45bfe0);});});}),process['once'](_0x1740c4(0x164),()=>{const _0x2a1b45=_0x1740c4;this['controller']['deregister'](this[_0x2a1b45(0x198)],_0x5464f9=>{});});}[a5_0x151473(0x1a7)](){const _0x28a57a=a5_0x151473;if(Date[_0x28a57a(0x1a2)]()<this[_0x28a57a(0x1ac)]+PROMISE_RESOLVE_CUT_OFF_IN_MILLISECONDS)return Promise[_0x28a57a(0x1b2)]();else{if(this[_0x28a57a(0x180)])return this['breakpointFetched']['get']();return this[_0x28a57a(0x180)]=new CachedPromise(),this[_0x28a57a(0x1a9)]['get']()[_0x28a57a(0xe0)](()=>{const _0x58a6f5=_0x28a57a;this[_0x58a6f5(0x1ba)](0x0,!![]);}),this[_0x28a57a(0x180)][_0x28a57a(0x165)]();}}static[a5_0x151473(0x20a)](_0x2c0ef2,_0x7676a1){const _0x2c0708=a5_0x151473;var _0x1eb200,_0x5bb4b1,_0xae331d;let _0x2b1f70={'registration':{}};if((_0x1eb200=_0x2c0ef2[_0x2c0708(0x1a0)])===null||_0x1eb200===void 0x0?void 0x0:_0x1eb200['filename'])try{_0x2b1f70=JSON['parse'](fs[_0x2c0708(0x110)](_0x2c0ef2[_0x2c0708(0x1a0)]['filename'],_0x2c0708(0x16d)));}catch(_0x577390){_0x7676a1[_0x2c0708(0x20c)](_0x2c0708(0x14b)+_0x2c0ef2[_0x2c0708(0x1a0)][_0x2c0708(0x1ef)],_0x577390);}return _0x2b1f70['registration']=extend(!![],{},(_0x5bb4b1=_0x2c0ef2[_0x2c0708(0x1a0)])===null||_0x5bb4b1===void 0x0?void 0x0:_0x5bb4b1[_0x2c0708(0x1a6)],_0x2b1f70['registration']),((_0xae331d=_0x2b1f70[_0x2c0708(0x1a6)])===null||_0xae331d===void 0x0?void 0x0:_0xae331d[_0x2c0708(0x208)])&&(_0x2b1f70[_0x2c0708(0x1a6)]['tags']=_0x2b1f70['registration'][_0x2c0708(0x208)]['map'](_0xe7afd=>typeof _0xe7afd===_0x2c0708(0x200)?{'name':_0xe7afd}:_0xe7afd)),_0x2b1f70;}static[a5_0x151473(0x174)](_0x154b64,_0x328bcc,_0x57600f,_0x12e380,_0x4b5036,_0x4fada7){const _0x2196a5=a5_0x151473,_0x4345d6=process['cwd'](),_0x45e99b=path[_0x2196a5(0x16c)](_0x4345d6,process[_0x2196a5(0xf7)][0x1]),_0x28a67f=_0x12e380[_0x2196a5(0x19d)],_0x4346cb={'main\x20script':_0x45e99b,'process.title':process['title'],'node\x20version':process[_0x2196a5(0x1bb)][_0x2196a5(0xeb)],'V8\x20version':process['versions']['v8'],'agent.name':_0x12e380['name'],'agent.version':_0x12e380['version'],'platform':Debuglet[_0x2196a5(0x1d3)]()},_0x27fa78=_0x328bcc[_0x2196a5(0x1f3)];_0x27fa78&&(typeof _0x27fa78[_0x2196a5(0x17c)]==='string'&&_0x27fa78[_0x2196a5(0x17c)]!==_0x2196a5(0x15a)&&(_0x4346cb['module']=_0x27fa78[_0x2196a5(0x17c)]),typeof _0x27fa78[_0x2196a5(0x19d)]===_0x2196a5(0x200)&&(_0x4346cb[_0x2196a5(0x19d)]=_0x27fa78[_0x2196a5(0x19d)]),typeof _0x27fa78[_0x2196a5(0x129)]===_0x2196a5(0x200)&&(_0x4346cb[_0x2196a5(0x173)]=_0x27fa78[_0x2196a5(0x129)]));const _0x5c500f=Debuglet[_0x2196a5(0x1e3)](_0x28a67f,_0x154b64,_0x57600f,_0x4346cb),_0x29e05d=_0x4fada7?new status_message_1[(_0x2196a5(0x1b7))](status_message_1[_0x2196a5(0x1b7)][_0x2196a5(0x1c0)],_0x4fada7,!![]):undefined,_0x3f7243=Debuglet[_0x2196a5(0x20a)](_0x328bcc,_0x4b5036),_0x560d0e={'uniquifier':_0x5c500f,'agentVersion':_0x28a67f,'labels':{'metadata':JSON[_0x2196a5(0x1cb)](_0x3f7243)},'statusMessage':_0x29e05d,'packageInfo':_0x12e380,'host':os[_0x2196a5(0x1c3)](),'pid':process[_0x2196a5(0xe9)][_0x2196a5(0x112)](),'cpuCoreCount':os['cpus']()[_0x2196a5(0x155)],'systemTotalMemoryBytes':os[_0x2196a5(0x11c)](),'agentOS':os['platform']()};return _0x57600f&&(_0x560d0e[_0x2196a5(0xff)]=[_0x57600f]),new debuggee_1[(_0x2196a5(0x19a))](_0x560d0e);}static[a5_0x151473(0x1d3)](){const _0x589f63=a5_0x151473,{FUNCTION_NAME:_0x560e40,FUNCTION_TARGET:_0x1c30b8}=process['env'];if(_0x560e40||_0x1c30b8)return Platforms[_0x589f63(0x122)];return Platforms[_0x589f63(0x148)];}static[a5_0x151473(0x143)](){const _0x4d97e2=a5_0x151473;return metadata[_0x4d97e2(0x18a)]();}static async[a5_0x151473(0x121)](){const _0x1e4d62=a5_0x151473;return(await metadata[_0x1e4d62(0x106)](_0x1e4d62(0x1c7)))[_0x1e4d62(0x1d0)];}static async[a5_0x151473(0x1fa)](){const _0x359f93=a5_0x151473,_0x2d1d8d=await readFilep('source-context.json',_0x359f93(0x13a));try{return JSON[_0x359f93(0x100)](_0x2d1d8d);}catch(_0x25af2f){throw new Error('Malformed\x20source-context.json\x20file:\x20'+_0x25af2f);}}[a5_0x151473(0x16b)](_0x479d21){const _0x2a3221=this;function _0x4cf392(_0x242e42){const _0x22d9a3=a5_0x2365;var _0x4f7de7;_0x2a3221[_0x22d9a3(0x1ce)][_0x22d9a3(0x20d)](_0x22d9a3(0x132)+((_0x4f7de7=_0x2a3221[_0x22d9a3(0x198)])===null||_0x4f7de7===void 0x0?void 0x0:_0x4f7de7['id'])+':\x20'+_0x242e42),_0x2a3221[_0x22d9a3(0x16b)](Math[_0x22d9a3(0x167)]((_0x479d21+0x1)*0x2,_0x2a3221[_0x22d9a3(0x1b9)][_0x22d9a3(0x12a)][_0x22d9a3(0x16f)]));}setTimeout(()=>{const _0x49f6be=a5_0x2365;if(!_0x2a3221[_0x49f6be(0x1d7)]){_0x4cf392(new Error(_0x49f6be(0x15d)));return;}_0x2a3221[_0x49f6be(0x202)][_0x49f6be(0x1eb)](_0x2a3221[_0x49f6be(0x198)],(_0x28c117,_0x3e985d)=>{const _0x289ba4=_0x49f6be;if(_0x28c117){_0x4cf392(_0x28c117);return;}if(_0x3e985d['debuggee'][_0x289ba4(0x209)]){_0x4cf392(new Error(_0x289ba4(0x18d))),_0x2a3221[_0x289ba4(0x153)](_0x289ba4(0x194));return;}_0x2a3221[_0x289ba4(0x1ce)][_0x289ba4(0x181)]('Registered\x20as\x20debuggee:',_0x3e985d[_0x289ba4(0x198)]['id']),_0x2a3221['debuggee']['id']=_0x3e985d[_0x289ba4(0x198)]['id'],_0x2a3221['emit'](_0x289ba4(0x136),_0x3e985d['debuggee']['id']),_0x2a3221['debuggeeRegistered']['resolve'](),_0x2a3221[_0x289ba4(0x127)]['bind'](_0x2a3221)(_0x2a3221[_0x289ba4(0x198)]['id'],()=>{const _0x4f9987=_0x289ba4;var _0x44c4c5;(_0x44c4c5=_0x2a3221[_0x4f9987(0x182)])===null||_0x44c4c5===void 0x0?void 0x0:_0x44c4c5[_0x4f9987(0x1f0)](_0x2a3221[_0x4f9987(0xfe)]),!_0x2a3221[_0x4f9987(0xe5)]&&_0x2a3221[_0x4f9987(0x1ba)](0x0,this[_0x4f9987(0x1b9)][_0x4f9987(0x152)]);});});},_0x479d21*0x3e8)['unref']();}[a5_0x151473(0x1ba)](_0x3776ec,_0x36aed9){const _0x141667=this;!_0x36aed9&&(_0x141667['fetcherActive']=!![]),setTimeout(()=>{const _0x2909db=a5_0x2365;if(!_0x141667[_0x2909db(0x1d7)])return;!_0x36aed9&&assert(_0x141667[_0x2909db(0xe5)]),_0x141667['logger'][_0x2909db(0x181)](_0x2909db(0x20f)),_0x141667[_0x2909db(0x202)][_0x2909db(0x162)](_0x141667[_0x2909db(0x198)],(_0x36ae47,_0x15c1b2,_0xc80a61)=>{const _0x5d896b=_0x2909db;if(_0x36ae47){_0x141667[_0x5d896b(0x1ce)][_0x5d896b(0x20d)](_0x5d896b(0xe6),_0x36ae47),_0x141667[_0x5d896b(0xe5)]=![],_0x141667[_0x5d896b(0x17f)](),_0x141667[_0x5d896b(0x16b)](_0x141667[_0x5d896b(0x1b9)]['internal']['registerDelayOnFetcherErrorSec']);return;}_0x141667[_0x5d896b(0x1ce)]['info']('\x09'+_0x15c1b2[_0x5d896b(0x1ad)]+_0x5d896b(0x212));if(!_0xc80a61){_0x141667[_0x5d896b(0x1ce)][_0x5d896b(0x20d)](_0x5d896b(0x134)),_0x141667[_0x5d896b(0x1ba)](_0x141667['config'][_0x5d896b(0x149)],_0x36aed9);return;}if(_0xc80a61['waitExpired']){_0x141667[_0x5d896b(0x1ce)][_0x5d896b(0x181)](_0x5d896b(0x1a5)),_0x141667[_0x5d896b(0x1ba)](0x0,_0x36aed9);return;}_0xc80a61[_0x5d896b(0x102)]&&_0xc80a61[_0x5d896b(0x102)]!=_0x5d896b(0x1b4)&&(this[_0x5d896b(0x190)]['globalPipingStatus']=_0xc80a61[_0x5d896b(0x102)]);_0xc80a61[_0x5d896b(0x1d4)]&&_0xc80a61[_0x5d896b(0xf5)]!==_0x141667[_0x5d896b(0xf5)]&&(_0x141667['collectLogRequestId']=_0xc80a61[_0x5d896b(0xf5)],_0x141667[_0x5d896b(0x12b)]?setTimeout(()=>_0x141667[_0x5d896b(0x202)][_0x5d896b(0x1b1)](_0x141667[_0x5d896b(0x198)],_0xc80a61['collectLogRequestId'],_0x141667['logsPath'])):_0x141667[_0x5d896b(0x1ce)][_0x5d896b(0x181)](_0x5d896b(0x176)+_0xc80a61[_0x5d896b(0xf5)]+_0x5d896b(0x124)+_0x5d896b(0x147)));const _0x2cc733=(_0xc80a61['breakpoints']||[])[_0x5d896b(0x1c8)](_0x2b5881=>{const _0x598fff=_0x5d896b,_0x2c53bb=_0x2b5881[_0x598fff(0x19c)]||_0x598fff(0x1de);if(_0x141667[_0x598fff(0x19f)][_0x2b5881['id']])return![];if(_0x2c53bb!==_0x598fff(0x1de)&&_0x2c53bb!==_0x598fff(0x1b6))return _0x141667[_0x598fff(0x1ce)][_0x598fff(0x20c)](_0x598fff(0x1d8),_0x2c53bb),_0x2b5881[_0x598fff(0x1ad)]=new status_message_1['StatusMessage'](status_message_1[_0x598fff(0x1b7)][_0x598fff(0x1c0)],BREAKPOINT_ACTION_MESSAGE,!![]),_0x141667[_0x598fff(0xf8)](_0x2b5881),![];return!![];});_0x141667[_0x5d896b(0xe8)](),_0x141667['updateActiveBreakpoints_'](_0x2cc733),_0x141667['emit'](_0x5d896b(0x1bd),_0x2cc733[_0x5d896b(0x155)]);Object['keys'](_0x141667[_0x5d896b(0xe7)])['length']&&_0x141667[_0x5d896b(0x1ce)][_0x5d896b(0x181)](formatBreakpoints('Active\x20Breakpoints:\x20',_0x141667[_0x5d896b(0xe7)]));_0x141667[_0x5d896b(0x1ac)]=Date[_0x5d896b(0x1a2)]();_0x36aed9?_0x141667[_0x5d896b(0x180)]&&(_0x141667['breakpointFetched']['resolve'](),_0x141667[_0x5d896b(0x180)]=null):_0x141667['scheduleBreakpointFetch_'](0x0,_0x36aed9);return;});},_0x3776ec*0x3e8)['unref']();}[a5_0x151473(0x17f)](){const _0xe4a4bc=a5_0x151473;this[_0xe4a4bc(0x1a9)]=new CachedPromise(),this['breakpointFetched']&&(this[_0xe4a4bc(0x180)][_0xe4a4bc(0x1b2)](),this[_0xe4a4bc(0x180)]=null);}[a5_0x151473(0x141)](_0x5b714a){const _0x28167f=a5_0x151473,_0x16bd18=this,_0x34b320=this[_0x28167f(0x1aa)](_0x5b714a);_0x5b714a[_0x28167f(0x155)]&&_0x16bd18[_0x28167f(0x1ce)]['info'](formatBreakpoints(_0x28167f(0x1e7),_0x34b320)),_0x5b714a[_0x28167f(0x1da)](_0xbc8934=>{const _0x25b698=_0x28167f;!_0x16bd18[_0x25b698(0x19f)][_0xbc8934['id']]&&!_0x16bd18[_0x25b698(0xe7)][_0xbc8934['id']]&&(_0x16bd18[_0x25b698(0x1e2)](_0xbc8934,_0x1fac8f=>{const _0x2de316=_0x25b698;_0x1fac8f&&_0x16bd18[_0x2de316(0x1e5)](_0xbc8934,!![],![]);}),this['quotaManager'][_0x25b698(0x204)](_0xbc8934['id'])),_0x16bd18[_0x25b698(0x119)][_0x25b698(0x211)](_0xbc8934['id'],_0xbc8934[_0x25b698(0x161)]),_0x16bd18[_0x25b698(0x190)][_0x25b698(0xec)](_0xbc8934['id'],_0xbc8934[_0x25b698(0x179)]);}),Debuglet[_0x28167f(0x1ed)](this[_0x28167f(0x19f)],_0x34b320)[_0x28167f(0x1da)](_0x1167ec=>{const _0x49a731=_0x28167f;delete _0x16bd18[_0x49a731(0x19f)][_0x1167ec['id']];}),Debuglet[_0x28167f(0x1ed)](this['activeBreakpointMap'],_0x34b320)[_0x28167f(0x1da)](_0x23111b=>{this['removeBreakpoint_'](_0x23111b,!![]);});}[a5_0x151473(0x1aa)](_0x2f44a0){const _0x3c8cf3=a5_0x151473,_0x58b6ba={};return _0x2f44a0[_0x3c8cf3(0x1da)](_0x26acfa=>{_0x58b6ba[_0x26acfa['id']]=_0x26acfa;}),_0x58b6ba;}[a5_0x151473(0x1b3)](_0x4f7147,_0x2e2d7c){const _0xc18734=a5_0x151473;this[_0xc18734(0x1ce)]['info'](_0xc18734(0x213),_0x4f7147['id']),this[_0xc18734(0x119)][_0xc18734(0x103)](_0x4f7147['id']),delete this[_0xc18734(0xe7)][_0x4f7147['id']],_0x2e2d7c&&this['v8debug']&&this[_0xc18734(0x182)][_0xc18734(0x12c)](_0x4f7147,_0x384c01=>{const _0x1d1676=_0xc18734;if(_0x384c01)this[_0x1d1676(0x1ce)]['error'](_0x384c01);});}[a5_0x151473(0x1e2)](_0x283092,_0xde6ad3){const _0x343c0e=a5_0x151473,_0xe971ee=this;if(!_0xe971ee['config'][_0x343c0e(0x1c4)]&&(_0x283092[_0x343c0e(0x1e9)]||_0x283092[_0x343c0e(0x10c)])){_0xe971ee[_0x343c0e(0x1ce)][_0x343c0e(0x20d)](ALLOW_EXPRESSIONS_MESSAGE),_0x283092[_0x343c0e(0x1ad)]=new status_message_1[(_0x343c0e(0x1b7))](status_message_1[_0x343c0e(0x1b7)][_0x343c0e(0x1c0)],ALLOW_EXPRESSIONS_MESSAGE,!![]),setImmediate(()=>{_0xde6ad3(ALLOW_EXPRESSIONS_MESSAGE);});return;}if(utils[_0x343c0e(0x12e)](process[_0x343c0e(0x19d)],_0x343c0e(0x1f1))){const _0xf0c2e0=NODE_VERSION_MESSAGE;_0xe971ee[_0x343c0e(0x1ce)][_0x343c0e(0x20d)](_0xf0c2e0),_0x283092[_0x343c0e(0x1ad)]=new status_message_1['StatusMessage'](status_message_1[_0x343c0e(0x1b7)][_0x343c0e(0x1c0)],_0xf0c2e0,!![]),setImmediate(()=>{_0xde6ad3(_0xf0c2e0);});return;}const _0x362a8c=_0x283092['createTime']?Number(_0x283092[_0x343c0e(0x1a4)]['seconds']):Date[_0x343c0e(0x1a2)]()/0x3e8,_0x1ec5e2=_0x283092[_0x343c0e(0x20e)]||_0xe971ee[_0x343c0e(0x1b9)][_0x343c0e(0x1cc)];_0x283092[_0x343c0e(0x154)]=_0x362a8c+_0x1ec5e2,_0xe971ee[_0x343c0e(0x182)][_0x343c0e(0x1c5)](_0x283092,_0x331ed5=>{const _0x31c7a4=_0x343c0e;if(_0x331ed5){_0xde6ad3(_0x331ed5);return;}_0xe971ee[_0x31c7a4(0x1ce)][_0x31c7a4(0x181)](_0x31c7a4(0x18f)+_0x283092['id']),_0xe971ee[_0x31c7a4(0xe7)][_0x283092['id']]=_0x283092,_0x283092[_0x31c7a4(0x19c)]===_0x31c7a4(0x1b6)?_0xe971ee[_0x31c7a4(0x182)][_0x31c7a4(0x170)](_0x283092,(_0x45c9c7,_0x3a0634)=>{const _0x443329=_0x31c7a4;var _0x535f10,_0x42058c;const _0x4303e6=_0x443329(0x138)+Debuglet[_0x443329(0x10f)](_0x45c9c7,_0x3a0634),_0xc0d2af=this[_0x443329(0x119)][_0x443329(0x189)](_0x4303e6,_0x283092['id']);if(_0xc0d2af){const _0x4ced12=_0xc0d2af['message'],_0x906c22=_0xc0d2af[_0x443329(0x105)];_0xe971ee[_0x443329(0x190)]['addAndPipeLog'](_0xe971ee[_0x443329(0x198)],_0x283092['id'],_0x4ced12,_0x283092['logLevel']);if(_0x906c22)(_0x535f10=_0xe971ee[_0x443329(0x182)])===null||_0x535f10===void 0x0?void 0x0:_0x535f10['disable'](),this['nextEnableTimeout']&&clearTimeout(this[_0x443329(0x113)]),this['nextEnableTimeout']=setTimeout(()=>{const _0x1fb56f=_0x443329;var _0x2444fd;(_0x2444fd=_0xe971ee[_0x1fb56f(0x182)])===null||_0x2444fd===void 0x0?void 0x0:_0x2444fd[_0x1fb56f(0xdf)](),_0xe971ee[_0x1fb56f(0x113)]=null;},_0xe971ee[_0x443329(0x1b9)]['quota'][_0x443329(0x15f)]*0x3e8);else(_0x4ced12===null||_0x4ced12===void 0x0?void 0x0:_0x4ced12[_0x443329(0x155)])==0x0&&((_0x42058c=_0xe971ee[_0x443329(0x182)])===null||_0x42058c===void 0x0?void 0x0:_0x42058c['disable']());}},()=>{const _0x287a13=_0x31c7a4;return _0xe971ee[_0x287a13(0x19f)][_0x283092['id']];},_0x39584e=>{const _0x5c2dae=_0x31c7a4;if(_0x39584e){_0xe971ee[_0x5c2dae(0x1ce)][_0x5c2dae(0x20d)](_0x39584e),_0xde6ad3(_0x39584e);return;}}):_0xe971ee[_0x31c7a4(0x182)]['wait'](_0x283092,_0xa17734=>{const _0x135599=_0x31c7a4;if(_0xa17734){setImmediate(()=>{const _0x2a816c=a5_0x2365;_0xe971ee[_0x2a816c(0x1ce)][_0x2a816c(0x20d)](_0xa17734),_0xde6ad3(_0xa17734);});return;}_0xe971ee[_0x135599(0x1ce)][_0x135599(0x181)](_0x135599(0x15c)+_0x283092['id']),_0xe971ee[_0x135599(0x1e5)](_0x283092,_0xe971ee[_0x135599(0x182)][_0x135599(0x146)](_0x283092['id'])<=0x0);}),_0xe971ee[_0x31c7a4(0x133)](_0x283092);}),this['emit'](_0x343c0e(0x114));}[a5_0x151473(0x1e5)](_0x432c9b,_0xccca2e,_0xf410e4=!![]){const _0x433cbf=a5_0x151473,_0xf38854=this;_0xf38854[_0x433cbf(0x1ce)][_0x433cbf(0x181)]('\x09updating\x20breakpoint\x20data\x20on\x20server',_0x432c9b['id']),_0xccca2e&&(_0xf38854[_0x433cbf(0x19f)][_0x432c9b['id']]=!![],_0xf38854[_0x433cbf(0x1b3)](_0x432c9b,_0xf410e4)),_0xf38854[_0x433cbf(0x202)][_0x433cbf(0x20b)](_0xf38854[_0x433cbf(0x198)],extend(!![],{},_0x432c9b));}[a5_0x151473(0x133)](_0x580ebb){const _0x34f7d8=a5_0x151473,_0x85e99b=this;_0x85e99b['logger'][_0x34f7d8(0x137)](_0x34f7d8(0x144),_0x580ebb['id']);const _0x292f81=extend(!![],{},_0x580ebb);_0x292f81[_0x34f7d8(0x14a)]=![],_0x292f81[_0x34f7d8(0x1ad)]=new status_message_1[(_0x34f7d8(0x1b7))](status_message_1[_0x34f7d8(0x1b7)]['UNSPECIFIED'],'',![],!![]),_0x85e99b['controller'][_0x34f7d8(0x20b)](_0x85e99b[_0x34f7d8(0x198)],_0x292f81);}[a5_0x151473(0xf8)](_0x2fac01){const _0x4da97d=a5_0x151473,_0x52b25=this;_0x52b25['completedBreakpointMap'][_0x2fac01['id']]=!![],_0x52b25[_0x4da97d(0x202)]['enqueueBreakpointUpdate'](_0x52b25[_0x4da97d(0x198)],_0x2fac01);}['expireOldBreakpoints'](){const _0x2cf316=a5_0x151473,_0x4630d3=this,_0x550a23=Date[_0x2cf316(0x1a2)]()/0x3e8;Object[_0x2cf316(0x1e1)](this[_0x2cf316(0xe7)])[_0x2cf316(0x1c8)](_0x1ba08f=>_0x1ba08f[_0x2cf316(0x154)]?_0x1ba08f['expirationTime']<_0x550a23:![])[_0x2cf316(0x1da)](_0x4c6f=>{const _0xbd8cd4=_0x2cf316;_0x4630d3[_0xbd8cd4(0x1ce)][_0xbd8cd4(0x181)](_0xbd8cd4(0x118)+_0x4c6f['id']),_0x4c6f[_0xbd8cd4(0x1ad)]={'description':{'format':'The\x20action\x20has\x20expired'},'isError':!![],'refersTo':status_message_1[_0xbd8cd4(0x1b7)][_0xbd8cd4(0x1ae)]},_0x4630d3[_0xbd8cd4(0x1e5)](_0x4c6f,!![]);});}[a5_0x151473(0x1fe)](){const _0x3e3752=a5_0x151473;return this[_0x3e3752(0x1d7)];}[a5_0x151473(0x187)](){const _0x4b9789=a5_0x151473;assert['ok'](this['running'],_0x4b9789(0x10b)),this['logger'][_0x4b9789(0x137)](_0x4b9789(0x1c1)),this[_0x4b9789(0x113)]&&(clearTimeout(this[_0x4b9789(0x113)]),this[_0x4b9789(0x113)]=null),this[_0x4b9789(0x1d7)]=![],this[_0x4b9789(0x153)]('stopped');}['getBlocklist'](_0xb15f16,_0x566d0f){const _0x69420=a5_0x151473,_0x5259a3=this;this[_0x69420(0x202)]['getBlocklist'](_0xb15f16,(_0x336009,_0x4f5e8a,_0x5b8b89)=>{const _0x59543f=_0x69420;if(_0x336009)_0x5259a3[_0x59543f(0x1ce)][_0x59543f(0x20c)](_0x59543f(0x1e0),_0x336009),_0x5259a3[_0x59543f(0xfe)]=new dummy_blocklist_manager_1[(_0x59543f(0x175))](!![]);else{const _0x2a3141=_0x4f5e8a[_0x59543f(0x126)],_0x5c12a7=_0x4f5e8a['blacklist_exception'];_0x5259a3['blocklistManager']=new patterns_blocklist_manager_1['PatternsBlocklistManager'](_0x2a3141,_0x5c12a7,this[_0x59543f(0x1b9)]);}_0x566d0f();});}static[a5_0x151473(0x1ed)](_0x560f65,_0x3a43e1){const _0x403e85=a5_0x151473,_0x230f83=[];for(const _0x1a2b4d in _0x560f65){!_0x3a43e1[_0x1a2b4d]&&_0x230f83[_0x403e85(0xea)](_0x560f65[_0x1a2b4d]);}return _0x230f83;}static['format'](_0x8b570f,_0xfa3f9e){const _0x4dec8b=a5_0x151473,_0x58532b=Debuglet[_0x4dec8b(0xfb)](_0x8b570f,_0xfa3f9e[_0x4dec8b(0x155)]);for(let _0x398d73=0x0;_0x398d73<_0x58532b[_0x4dec8b(0x155)];_0x398d73++){if(!_0x58532b[_0x398d73]['v'])continue;if(_0x58532b[_0x398d73]['v']==='$$'){_0x58532b[_0x398d73]='$';continue;}for(let _0x4f7858=0x0;_0x4f7858<_0xfa3f9e[_0x4dec8b(0x155)];_0x4f7858++){if(_0x58532b[_0x398d73]['v']==='$'+_0x4f7858){_0x58532b[_0x398d73]=_0xfa3f9e[_0x4f7858];break;}}}return _0x58532b[_0x4dec8b(0x1c9)]('');}static[a5_0x151473(0xfb)](_0x24e998,_0x2fb074){const _0x1cf45a=a5_0x151473;let _0x3d42b8=Debuglet[_0x1cf45a(0x115)](_0x24e998,'$$');for(let _0x4796cc=_0x2fb074-0x1;_0x4796cc>=0x0;_0x4796cc--){const _0x1e41a1=[];for(let _0x54774b=0x0;_0x54774b<_0x3d42b8[_0x1cf45a(0x155)];_0x54774b++){_0x3d42b8[_0x54774b]['v']?_0x1e41a1[_0x1cf45a(0xea)](_0x3d42b8[_0x54774b]):_0x1e41a1[_0x1cf45a(0xea)](...Debuglet[_0x1cf45a(0x115)](_0x3d42b8[_0x54774b],'$'+_0x4796cc));}_0x3d42b8=_0x1e41a1;}return _0x3d42b8;}static[a5_0x151473(0x115)](_0x5e81c5,_0x542203){const _0x4d543c=a5_0x151473,_0x51146c=_0x5e81c5[_0x4d543c(0x14c)](_0x542203),_0x12bd76=[];_0x12bd76['push'](_0x51146c[0x0]);for(let _0x3703df=0x1;_0x3703df<_0x51146c[_0x4d543c(0x155)];_0x3703df++){_0x12bd76[_0x4d543c(0xea)]({'v':_0x542203},_0x51146c[_0x3703df]);}return _0x12bd76;}static[a5_0x151473(0x1e3)](_0x1b666a,_0xa804a3,_0x3a020d,_0x51b8b5){const _0x153066=a5_0x151473,_0x59a32f=_0x1b666a+_0xa804a3+JSON[_0x153066(0x1cb)](_0x3a020d)+JSON[_0x153066(0x1cb)](_0x51b8b5);return crypto['createHash'](_0x153066(0x107))[_0x153066(0x191)](_0x59a32f)[_0x153066(0x15b)](_0x153066(0xf0));}}exports['Debuglet']=Debuglet;
|