@vyredo/module-kit 0.0.0-stage → 0.1.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 +154 -2
- package/dist/bind.d.ts +26 -0
- package/dist/boundary.d.ts +9 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2 -0
- package/dist/config.d.ts +10 -0
- package/dist/discover.d.ts +22 -0
- package/dist/follower.d.ts +21 -0
- package/dist/generate.d.ts +49 -0
- package/dist/graph.d.ts +22 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.js +1 -0
- package/dist/members.d.ts +10 -0
- package/dist/paths.d.ts +5 -0
- package/dist/runtime.d.ts +29 -0
- package/dist/runtime.js +1 -0
- package/dist/scan.d.ts +3 -0
- package/dist/supervisor.d.ts +146 -0
- package/dist/types.d.ts +220 -0
- package/dist/vite.d.ts +13 -0
- package/dist/vite.js +1 -0
- package/package.json +72 -4
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x516fff=_0x41c4;(function(_0x12d69b,_0x2d8b21){const _0xb4e65d=_0x41c4,_0x1cf81b=_0x12d69b();while(!![]){try{const _0x4f63d9=parseInt(_0xb4e65d(0x9d))/0x1+parseInt(_0xb4e65d(0x13b))/0x2+parseInt(_0xb4e65d(0x160))/0x3+-parseInt(_0xb4e65d(0xce))/0x4+parseInt(_0xb4e65d(0x156))/0x5+parseInt(_0xb4e65d(0x18d))/0x6*(parseInt(_0xb4e65d(0x88))/0x7)+-parseInt(_0xb4e65d(0x158))/0x8*(parseInt(_0xb4e65d(0x1ac))/0x9);if(_0x4f63d9===_0x2d8b21)break;else _0x1cf81b['push'](_0x1cf81b['shift']());}catch(_0x13a866){_0x1cf81b['push'](_0x1cf81b['shift']());}}}(_0x5a71,0xca53f));import{existsSync as _0x193a6e,readdirSync as _0x8495ef,readFileSync as _0x405e6a,statSync as _0x46f264}from'node:fs';import{dirname as _0x1b30fc,join as _0x101bbd,relative as _0x30740c,resolve as _0xce2dd8,sep as _0x6cbd49}from'node:path';import _0x40bad7 from'typescript-6';import{relative as _0x5c1584,sep as _0x5983f9}from'node:path';var $=_0x23c253=>_0x23c253[_0x516fff(0x196)](_0x5983f9)[_0x516fff(0x13d)]('/');function X(_0x42f6f9,_0x43ccf1){const _0x34caa9=_0x516fff;let _0x766ae2=$(_0x5c1584(_0x42f6f9,_0x43ccf1))[_0x34caa9(0x87)](/\.tsx?$/,'');return _0x766ae2['startsWith']('./')||_0x766ae2[_0x34caa9(0x1b5)](_0x34caa9(0x7d))?_0x766ae2:'./'+_0x766ae2;}function W(_0x1f9fab,_0x2766c4){const _0x25b456=_0x516fff;let _0x4e1e13='';for(let _0x34d1fc=0x0;_0x34d1fc<_0x1f9fab['length'];_0x34d1fc++){let _0xd7359e=_0x1f9fab[_0x34d1fc];if(_0xd7359e==='*'&&_0x1f9fab[_0x34d1fc+0x1]==='*'){let _0x5f0276=_0x1f9fab[_0x34d1fc+0x2]==='/';_0x4e1e13+=_0x5f0276?_0x25b456(0x168):'.*',_0x34d1fc+=_0x5f0276?0x2:0x1;}else _0xd7359e==='*'?_0x4e1e13+=_0x25b456(0x1a8):_0x4e1e13+=_0xd7359e[_0x25b456(0x87)](/[.+?^${}()|[\]\\]/g,_0x25b456(0x195));}return _0x1f9fab[_0x25b456(0x71)](_0x25b456(0x11f))&&(_0x4e1e13=_0x4e1e13['slice'](0x0,-0x3)+_0x25b456(0xdc)),new RegExp('^'+_0x4e1e13+'$')[_0x25b456(0x18e)](_0x2766c4);}var Je=/\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/,_e=new Set([_0x516fff(0xd7),_0x516fff(0xba)]);function ce(_0x323641){const _0x51e314=_0x516fff;let _0x582c93=_0x405e6a(_0x323641,'utf8'),_0x39d557=_0x40bad7[_0x51e314(0x152)](_0x323641,_0x582c93,_0x40bad7[_0x51e314(0x7f)]['ES2022'],!0x0,/x$/[_0x51e314(0x18e)](_0x323641)?_0x40bad7[_0x51e314(0xc5)][_0x51e314(0x8b)]:_0x40bad7[_0x51e314(0xc5)]['TS']),_0x57a444=[],_0xfbb601=_0x4af199=>_0x39d557[_0x51e314(0x10c)](_0x4af199['getStart'](_0x39d557))['line']+0x1,_0x325ee8=(_0x221238,_0x345012,_0x2b49a9)=>{const _0x3cb92f=_0x51e314;_0x221238&&(_0x40bad7[_0x3cb92f(0xf8)](_0x221238)||_0x40bad7[_0x3cb92f(0x143)](_0x221238))&&_0x57a444[_0x3cb92f(0xa1)]({'spec':_0x221238[_0x3cb92f(0xc4)],'typeOnly':_0x345012,'line':_0xfbb601(_0x2b49a9)});},_0x1dc6c6=_0x1f3ae2=>{const _0xe7ea30=_0x51e314;if(_0x40bad7['isImportDeclaration'](_0x1f3ae2)){let _0x521d63=_0x1f3ae2[_0xe7ea30(0x134)],_0x56569a=!!_0x521d63&&(_0x521d63[_0xe7ea30(0xc1)]||!_0x521d63['name']&&!!_0x521d63[_0xe7ea30(0x18b)]&&_0x40bad7[_0xe7ea30(0xd6)](_0x521d63[_0xe7ea30(0x18b)])&&_0x521d63['namedBindings'][_0xe7ea30(0x123)][_0xe7ea30(0x190)]>0x0&&_0x521d63[_0xe7ea30(0x18b)]['elements']['every'](_0x3d7a48=>_0x3d7a48['isTypeOnly']));_0x325ee8(_0x1f3ae2[_0xe7ea30(0x167)],_0x56569a,_0x1f3ae2);}else{if(_0x40bad7[_0xe7ea30(0x109)](_0x1f3ae2)&&_0x1f3ae2[_0xe7ea30(0x167)]){let _0x3082a8=_0x1f3ae2[_0xe7ea30(0xc1)]||!!_0x1f3ae2[_0xe7ea30(0xeb)]&&_0x40bad7[_0xe7ea30(0x1b2)](_0x1f3ae2[_0xe7ea30(0xeb)])&&_0x1f3ae2[_0xe7ea30(0xeb)][_0xe7ea30(0x123)][_0xe7ea30(0x190)]>0x0&&_0x1f3ae2[_0xe7ea30(0xeb)][_0xe7ea30(0x123)]['every'](_0x295d2e=>_0x295d2e['isTypeOnly']);_0x325ee8(_0x1f3ae2['moduleSpecifier'],_0x3082a8,_0x1f3ae2);}else _0x40bad7[_0xe7ea30(0x157)](_0x1f3ae2)&&_0x40bad7[_0xe7ea30(0x131)](_0x1f3ae2[_0xe7ea30(0x15a)])?_0x325ee8(_0x1f3ae2[_0xe7ea30(0x15a)][_0xe7ea30(0xb0)],_0x1f3ae2[_0xe7ea30(0xc1)],_0x1f3ae2):_0x40bad7[_0xe7ea30(0xa9)](_0x1f3ae2)&&(_0x1f3ae2['expression']['kind']===_0x40bad7['SyntaxKind'][_0xe7ea30(0x6a)]||_0x40bad7[_0xe7ea30(0xe1)](_0x1f3ae2[_0xe7ea30(0xb0)])&&_0x1f3ae2[_0xe7ea30(0xb0)][_0xe7ea30(0xc4)]===_0xe7ea30(0x98))?_0x325ee8(_0x1f3ae2[_0xe7ea30(0xed)][0x0],!0x1,_0x1f3ae2):_0x40bad7[_0xe7ea30(0x1a9)](_0x1f3ae2)&&_0x40bad7[_0xe7ea30(0x149)](_0x1f3ae2[_0xe7ea30(0x10e)])&&_0x325ee8(_0x1f3ae2[_0xe7ea30(0x10e)][_0xe7ea30(0x91)],!0x0,_0x1f3ae2);}_0x40bad7[_0xe7ea30(0xc6)](_0x1f3ae2,_0x1dc6c6);};return _0x1dc6c6(_0x39d557),_0x57a444;}function ue(_0x55ca93,_0x2020db=[]){const _0x722a42=_0x516fff;for(let _0x4c848a of _0x8495ef(_0x55ca93,{'withFileTypes':!0x0}))_0x4c848a['isDirectory']()?_e[_0x722a42(0xaa)](_0x4c848a[_0x722a42(0xcc)])||ue(_0x101bbd(_0x55ca93,_0x4c848a[_0x722a42(0xcc)]),_0x2020db):Je[_0x722a42(0x18e)](_0x4c848a[_0x722a42(0xcc)])&&!_0x4c848a['name']['endsWith']('.d.ts')&&_0x2020db[_0x722a42(0xa1)](_0x101bbd(_0x55ca93,_0x4c848a[_0x722a42(0xcc)]));return _0x2020db;}function ze(_0x2af111,_0x374229){const _0x1866ec=_0x516fff;let _0x2960b7=_0xce2dd8(_0x1b30fc(_0x2af111),_0x374229);return[_0x2960b7,...[_0x1866ec(0x18a),'.tsx',_0x1866ec(0xa0),_0x1866ec(0x77)][_0x1866ec(0xbc)](_0x106240=>_0x2960b7['replace'](/\.js$/,'')+_0x106240),_0x101bbd(_0x2960b7,'index.ts'),_0x101bbd(_0x2960b7,'index.tsx')]['find'](_0x1ead5e=>_0x193a6e(_0x1ead5e)&&_0x46f264(_0x1ead5e)[_0x1866ec(0x84)]())??_0x2960b7;}function Y(_0x597463,_0x3c4726){const _0x184c00=_0x516fff;let _0x29ce1c=[],_0x406093=new Map(_0x597463['modules'][_0x184c00(0xbc)](_0x561a26=>[_0x561a26['id'],_0x561a26])),_0x4c3232=_0x23905a=>_0x101bbd(_0x3c4726[_0x184c00(0xd1)],_0x23905a[_0x184c00(0x18c)]),_0x26ee3e=[..._0x597463[_0x184c00(0x73)]][_0x184c00(0x107)]((_0x198ab7,_0x348c5e)=>_0x348c5e[_0x184c00(0x18c)][_0x184c00(0x190)]-_0x198ab7['path'][_0x184c00(0x190)]),_0x1df7cb=_0x28ae53=>_0x26ee3e[_0x184c00(0xe3)](_0x3e1405=>_0x28ae53===_0x4c3232(_0x3e1405)||_0x28ae53[_0x184c00(0x1b5)](_0x4c3232(_0x3e1405)+_0x6cbd49)),_0x5c1cc7=new Set(_0x3c4726['realms']??[]),_0x5c7207=(_0xce50e,_0x1ed8d6)=>{const _0x25bcd1=_0x184c00;let _0x423ff8=$(_0x30740c(_0x4c3232(_0xce50e),_0x1ed8d6))[_0x25bcd1(0x196)]('/')[0x0];return _0x5c1cc7[_0x25bcd1(0xaa)](_0x423ff8)||_0x423ff8===_0x25bcd1(0x191)?_0x423ff8:null;},_0x1d5511=_0x3c1f15=>_0x3c1f15 in _0x3c4726[_0x184c00(0xb2)]||_0x3c1f15[_0x184c00(0x1b5)]('.generated/')||_0x3c4726['publicPaths']['some'](_0x968c9=>W(_0x968c9,_0x3c1f15)||W(_0x968c9,_0x3c1f15+_0x184c00(0x18a))||W(_0x968c9,_0x3c1f15+_0x184c00(0x177))),_0x5aef37=_0x1267c4=>{let _0x379506=new Set(),_0x434192=_0x230b57=>{const _0x50d68c=_0x41c4;for(let _0x3a4a20 of _0x597463[_0x50d68c(0x73)])_0x379506[_0x50d68c(0xaa)](_0x3a4a20['id'])||!(_0x3a4a20[_0x50d68c(0xb9)][_0x50d68c(0xb4)](_0x230b57)||_0x3a4a20[_0x50d68c(0xee)]['includes'](_0x230b57))||(_0x379506[_0x50d68c(0x9c)](_0x3a4a20['id']),_0x434192(_0x3a4a20['id']));};return _0x434192(_0x1267c4),_0x379506;};for(let _0xcf07a of _0x597463[_0x184c00(0x73)]){let _0x22dcbf=new Set([..._0xcf07a[_0x184c00(0xb9)],..._0xcf07a[_0x184c00(0xee)]]),_0x2110ca=_0x3c4726['callUp']===_0x184c00(0x19f)?_0x5aef37(_0xcf07a['id']):new Set();for(let _0x886dee of ue(_0x4c3232(_0xcf07a))){let _0x4ad3fb=$(_0x30740c(_0x3c4726[_0x184c00(0xd1)],_0x886dee));if(_0x3c4726[_0x184c00(0xa7)][_0x184c00(0x15c)](_0x2b9ada=>W(_0x2b9ada,_0x4ad3fb)))continue;let _0x478ce1=$(_0x30740c(_0x3c4726[_0x184c00(0xda)],_0x886dee)),_0x20a4f9=_0x5c7207(_0xcf07a,_0x886dee),_0x4d534b=(_0x838954,_0x47b390)=>_0x29ce1c[_0x184c00(0xa1)]({'file':_0x478ce1,'line':_0x838954,'message':_0x47b390}),_0xdc9ca4=(_0x427837,_0x510c95,_0x57ecbd)=>{const _0x4256d5=_0x184c00;let _0x1d52f9=_0x5c7207(_0xcf07a,_0x57ecbd);!_0x1d52f9||_0x1d52f9===_0x4256d5(0x191)||!_0x20a4f9||_0x1d52f9===_0x20a4f9||_0x4d534b(_0x427837,_0x20a4f9===_0x4256d5(0x191)?_0x4256d5(0x18f)+_0x1d52f9+_0x4256d5(0x12d)+_0x510c95+_0x4256d5(0x90):_0x20a4f9+_0x4256d5(0x6c)+_0x1d52f9+_0x4256d5(0x12d)+_0x510c95+')');};for(let _0x5a0d7f of ce(_0x886dee)){let {spec:_0x3f7d9a,typeOnly:_0x86769b,line:_0x4af703}=_0x5a0d7f;if(_0x3f7d9a===_0x3c4726[_0x184c00(0xe9)]||_0x3f7d9a['startsWith'](_0x3c4726[_0x184c00(0xe9)]+'/')){let [_0x1f7424='',..._0x12e759]=_0x3f7d9a[_0x184c00(0x70)](_0x3c4726[_0x184c00(0xe9)][_0x184c00(0x190)]+0x1)['split']('/'),_0x21aca1=_0x12e759[_0x184c00(0x13d)]('/'),_0x6fc28c=_0x406093[_0x184c00(0x80)](_0x1f7424);if(!_0x6fc28c){_0x4d534b(_0x4af703,_0x3f7d9a+_0x184c00(0xca)+_0x1f7424+'\x22');continue;}if(_0x6fc28c['id']===_0xcf07a['id']){_0x21aca1&&_0x21aca1!==_0x184c00(0xde)&&_0xdc9ca4(_0x4af703,_0x3f7d9a,_0x101bbd(_0x4c3232(_0xcf07a),_0x21aca1));continue;}if(_0x21aca1===_0x184c00(0xde)){_0x4d534b(_0x4af703,_0x3f7d9a+_0x184c00(0xe7)+_0xcf07a['id']+_0x184c00(0x166)+_0x6fc28c['id']+'\x27s');continue;}if(_0x21aca1&&!_0x1d5511(_0x21aca1)){_0x4d534b(_0x4af703,_0x3f7d9a+_0x184c00(0x12b)+_0x6fc28c['id']+'\x27s\x20public\x20paths\x20('+[_0x184c00(0x16f),..._0x3c4726['publicPaths'],_0x184c00(0x197)][_0x184c00(0x13d)](',\x20')+')');continue;}/^\.generated\/surface/[_0x184c00(0x18e)](_0x21aca1)&&!_0x86769b&&_0x4d534b(_0x4af703,_0x3f7d9a+_0x184c00(0x164)),!_0x86769b&&!_0x6fc28c[_0x184c00(0x173)]&&!_0x22dcbf[_0x184c00(0xaa)](_0x6fc28c['id'])&&!_0x2110ca[_0x184c00(0xaa)](_0x6fc28c['id'])&&_0x4d534b(_0x4af703,_0xcf07a['id']+_0x184c00(0x17e)+_0x6fc28c['id']+'\x20('+_0x3f7d9a+')\x20without\x20declaring\x20it:\x20add\x20\x22'+_0x6fc28c['id']+_0x184c00(0xf0));continue;}if(!_0x3f7d9a[_0x184c00(0x1b5)]('.')&&!_0x3f7d9a['startsWith']('/'))continue;let _0x24ab00=ze(_0x886dee,_0x3f7d9a),_0x488fc9=_0x1df7cb(_0x24ab00);if(_0x488fc9){if(_0x488fc9['id']!==_0xcf07a['id']){let _0xf05561=$(_0x30740c(_0x4c3232(_0x488fc9),_0x24ab00))['replace'](/\.(tsx?|mts|js)$/,'')['replace'](/\/index$/,'');_0x4d534b(_0x4af703,_0x3f7d9a+_0x184c00(0x8e)+_0x488fc9['id']+_0x184c00(0xa4)+_0x3c4726[_0x184c00(0xe9)]+'/'+_0x488fc9['id']+(_0x1d5511(_0xf05561)&&_0xf05561?'/'+_0xf05561:''));continue;}/[\\/]\.generated[\\/]surface[^\\/]*$/[_0x184c00(0x18e)](_0x24ab00[_0x184c00(0x87)](/\.ts$/,''))&&!_0x86769b&&_0x4d534b(_0x4af703,_0x3f7d9a+_0x184c00(0x164)),_0xdc9ca4(_0x4af703,_0x3f7d9a,_0x24ab00);}}}}return _0x29ce1c;}import{createRequire as _0x5cec7b}from'node:module';import{join as _0x22b16d}from'node:path';import{pathToFileURL as _0x3643df}from'node:url';import{existsSync as _0x5ae5c3,mkdirSync as _0x53ba37,readdirSync as _0x599c2c,readFileSync as _0x4ee426,rmSync as _0x206a66,writeFileSync as _0x5392d5}from'node:fs';import{dirname as _0x462a12,join as _0x165caa,relative as _0x3f345c,resolve as _0x3cfadf}from'node:path';import _0x3146be from'typescript-6';var k=_0x516fff(0x99),D=_0x516fff(0xc8),Ue={'suffix':'','realms':null},te=(_0x2c41c5,_0x3903d0)=>_0x3903d0[_0x516fff(0x19c)]?_0x2c41c5[_0x516fff(0x19c)][_0x516fff(0xad)](_0x42c71e=>_0x42c71e['realm']===null||_0x3903d0[_0x516fff(0x19c)][_0x516fff(0xb4)](_0x42c71e[_0x516fff(0x17f)])):_0x2c41c5[_0x516fff(0x19c)],me=_0x409ce5=>_0x409ce5[_0x516fff(0x17f)]?_0x516fff(0x78)+_0x409ce5[_0x516fff(0x17f)]+'.ts':_0x516fff(0x117),v=(_0x12ece8,_0x4d8238,_0x3c271f)=>''+_0x12ece8['id']+(_0x4d8238['key']??'')+_0x3c271f,ge=_0x273dfe=>_0x273dfe[_0x516fff(0x190)]?_0x273dfe[_0x516fff(0xbc)](_0x33bfc4=>JSON[_0x516fff(0x95)](_0x33bfc4))[_0x516fff(0x13d)](_0x516fff(0x1b1)):'never';function Ze(_0x2f7c3b,_0x4fd66f){const _0x12ce02=_0x516fff;let _0xd64243=v(_0x2f7c3b,_0x4fd66f,_0x12ce02(0x17d)),_0x418432=_0x4fd66f[_0x12ce02(0x139)]['filter'](_0x42461b=>_0x42461b['visibility']===_0x12ce02(0x14c))[_0x12ce02(0xbc)](_0x29371e=>_0x29371e[_0x12ce02(0xcc)]),_0x2a31b1=_0x4fd66f['members']['filter'](_0xb7d003=>_0xb7d003[_0x12ce02(0x1b4)]===_0x12ce02(0xde))[_0x12ce02(0xbc)](_0x458b2a=>_0x458b2a['name']),_0x49c341='../'+_0x4fd66f['file'][_0x12ce02(0x87)](/\.tsx?$/,''),_0x1b1026=[k,'//\x20'+_0x2f7c3b['id']+_0x12ce02(0x13a)+(_0x4fd66f[_0x12ce02(0x17f)]??'module')+_0x12ce02(0x13e),_0x12ce02(0x182),'import\x20'+_0xd64243+_0x12ce02(0x97)+JSON['stringify'](_0x49c341)+';','',_0x12ce02(0x140),_0x12ce02(0xcd)+v(_0x2f7c3b,_0x4fd66f,_0x12ce02(0x11b))+'\x20=\x20Pick<'+_0xd64243+',\x20'+ge(_0x418432)+'>;'];return _0x2a31b1[_0x12ce02(0x190)]===0x0?_0x1b1026[_0x12ce02(0xa1)]('',_0x12ce02(0xcd)+v(_0x2f7c3b,_0x4fd66f,_0x12ce02(0x11a))+_0x12ce02(0x1a6)):_0x1b1026[_0x12ce02(0xa1)]('','/**\x20Never\x20instantiated:\x20re-exposes\x20the\x20protected\x20members\x20so\x20their\x20types\x20can\x20be\x20named.\x20*/',_0x12ce02(0x199)+v(_0x2f7c3b,_0x4fd66f,_0x12ce02(0x81))+'\x20extends\x20'+_0xd64243+'\x20{',..._0x2a31b1[_0x12ce02(0xbc)](_0x4a8be9=>_0x12ce02(0x19b)+JSON[_0x12ce02(0x95)](_0x12ce02(0x115)+_0x4a8be9)+_0x12ce02(0xc7)+JSON['stringify'](_0x4a8be9)+'];'),'}','','/**\x20What\x20only\x20'+_0x2f7c3b['id']+_0x12ce02(0x17c),_0x12ce02(0xcd)+v(_0x2f7c3b,_0x4fd66f,_0x12ce02(0x11a))+_0x12ce02(0x187),..._0x2a31b1[_0x12ce02(0xbc)](_0x116c94=>'\x20\x20'+JSON[_0x12ce02(0x95)](_0x116c94)+':\x20'+v(_0x2f7c3b,_0x4fd66f,_0x12ce02(0x81))+'['+JSON[_0x12ce02(0x95)](_0x12ce02(0x115)+_0x116c94)+'];'),'};'),_0x1b1026[_0x12ce02(0x13d)]('\x0a')+'\x0a';}function Xe(_0xe2125f,_0x48a7b2){const _0x276ab7=_0x516fff;let _0x5ce5fa={..._0xe2125f,'realms':te(_0xe2125f,_0x48a7b2)},_0x5eaaea=_0x5ce5fa[_0x276ab7(0x19c)]['map'](_0x610c90=>_0x276ab7(0x7b)+v(_0x5ce5fa,_0x610c90,_0x276ab7(0x11b))+',\x20'+v(_0x5ce5fa,_0x610c90,_0x276ab7(0x11a))+_0x276ab7(0x14b)+me(_0x610c90)['replace'](/\.ts$/,'')+'\x22;'),_0x267b02,_0x49b93e;if(_0x5ce5fa[_0x276ab7(0x19c)][_0x276ab7(0x190)]===0x0)_0x267b02='{}',_0x49b93e='{}';else{if(_0x5ce5fa['realms'][0x0][_0x276ab7(0x174)]===null){let _0x50f15a=_0x5ce5fa[_0x276ab7(0x19c)][0x0];_0x267b02=v(_0x5ce5fa,_0x50f15a,_0x276ab7(0x11b)),_0x49b93e=v(_0x5ce5fa,_0x50f15a,_0x276ab7(0x11b))+_0x276ab7(0x170)+v(_0x5ce5fa,_0x50f15a,_0x276ab7(0x11a));}else _0x267b02='{\x0a'+_0x5ce5fa[_0x276ab7(0x19c)][_0x276ab7(0xbc)](_0x84e60b=>'\x20\x20'+_0x84e60b[_0x276ab7(0x174)]+':\x20'+v(_0x5ce5fa,_0x84e60b,_0x276ab7(0x11b))+';')['join']('\x0a')+'\x0a}',_0x49b93e='{\x0a'+_0x5ce5fa['realms'][_0x276ab7(0xbc)](_0x13bc80=>'\x20\x20'+_0x13bc80['key']+':\x20'+v(_0x5ce5fa,_0x13bc80,_0x276ab7(0x11b))+_0x276ab7(0x170)+v(_0x5ce5fa,_0x13bc80,_0x276ab7(0x11a))+';')[_0x276ab7(0x13d)]('\x0a')+'\x0a}';}return[k,..._0x5eaaea,'',_0x276ab7(0x100)+_0x5ce5fa['id']+_0x276ab7(0x79)+(_0x5ce5fa[_0x276ab7(0x19c)][0x0]?.['key']?_0x276ab7(0xbe):'')+_0x276ab7(0x178),'export\x20type\x20'+_0x5ce5fa['id']+_0x276ab7(0x10d)+_0x267b02+';','',_0x276ab7(0x100)+_0x5ce5fa['id']+_0x276ab7(0xe8),'export\x20type\x20'+_0x5ce5fa['id']+_0x276ab7(0x175)+_0x49b93e+';',''][_0x276ab7(0x13d)]('\x0a');}function Ye(_0x30d6e3,_0x51592c,_0x85e4a3){const _0x4ad0b4=_0x516fff;return te(_0x30d6e3,_0x85e4a3)['flatMap'](_0x30624b=>_0x30624b[_0x4ad0b4(0x139)][_0x4ad0b4(0xad)](_0x41f057=>_0x51592c(_0x41f057['visibility']))[_0x4ad0b4(0xbc)](_0x377521=>[_0x30624b[_0x4ad0b4(0x174)]?_0x30624b[_0x4ad0b4(0x174)]+'.'+_0x377521[_0x4ad0b4(0xcc)]:_0x377521[_0x4ad0b4(0xcc)],_0x377521['event']]));}function pe(_0xba663b,_0x2e86ea,_0xfddb87,_0x1037cc,_0x3ef9d7){const _0x49e4d9=_0x516fff;let _0x33ab44=_0xfddb87['rpc'][_0x49e4d9(0x153)],_0x3ac73c=_0x33ab44['from'][_0x49e4d9(0x1b5)]('.')?X(_0x2e86ea,_0x3cfadf(_0xfddb87[_0x49e4d9(0xda)],_0x33ab44[_0x49e4d9(0x154)])):_0x33ab44[_0x49e4d9(0x154)],_0x402887=Ye(_0xba663b,_0x3120b6=>_0x1037cc==='protected'||_0x3120b6==='public',_0x3ef9d7),_0x5786a0=te(_0xba663b,_0x3ef9d7)[_0x49e4d9(0x103)](_0x17101a=>_0x17101a[_0x49e4d9(0x139)][_0x49e4d9(0xad)](_0x2235f8=>_0x2235f8['timeoutMs']!==void 0x0&&(_0x1037cc==='protected'||_0x2235f8['visibility']===_0x49e4d9(0x14c)))[_0x49e4d9(0xbc)](_0x34eaaa=>[_0x17101a['key']?_0x17101a[_0x49e4d9(0x174)]+'.'+_0x34eaaa[_0x49e4d9(0xcc)]:_0x34eaaa[_0x49e4d9(0xcc)],_0x34eaaa[_0x49e4d9(0xf5)]])),_0x4ea412=_0x1037cc==='public'?_0xba663b['id']:_0xba663b['id']+'Protected',_0x3815a0=_0x1037cc===_0x49e4d9(0x14c)?_0xba663b['id']+'Api':_0xba663b['id']+_0x49e4d9(0x172);return[k,'//\x20'+(_0x1037cc===_0x49e4d9(0x14c)?_0xba663b['id']+_0x49e4d9(0x17a)+_0xba663b['id']+_0x49e4d9(0xff):_0xba663b['id']+_0x49e4d9(0xdd)),_0x49e4d9(0x176),_0x49e4d9(0x15e)+_0x33ab44[_0x49e4d9(0xcc)]+_0x49e4d9(0x125)+JSON[_0x49e4d9(0x95)](_0x3ac73c)+';',_0x49e4d9(0x7b)+_0x3815a0+'\x20}\x20from\x20\x22./api'+_0x3ef9d7['suffix']+'\x22;','',_0x49e4d9(0xa2)+_0x33ab44[_0x49e4d9(0xcc)]+_0x49e4d9(0x19a),'','export\x20const\x20'+_0x4ea412+_0x49e4d9(0x8c)+_0x3815a0+',\x20'+ge(_0x402887[_0x49e4d9(0xbc)](([_0x192498])=>_0x192498))+'>('+JSON['stringify'](_0xba663b['id'])+',\x20{',..._0x402887[_0x49e4d9(0xbc)](([_0x366d95,_0x2f5ecf])=>'\x20\x20'+JSON[_0x49e4d9(0x95)](_0x366d95)+':\x20'+JSON['stringify'](_0x2f5ecf)+','),..._0x5786a0[_0x49e4d9(0x190)]>0x0?[_0x49e4d9(0xfa),..._0x5786a0[_0x49e4d9(0xbc)](([_0x2550aa,_0x3ce7c9])=>'\x20\x20'+JSON['stringify'](_0x2550aa)+':\x20'+_0x3ce7c9+',')]:[],'});','']['join']('\x0a');}function Qe(_0x3e12fb,_0xec58bf,_0x222277){const _0x3c1914=_0x516fff;return[k,_0x3c1914(0xa5)+_0xec58bf[_0x3c1914(0xe9)]+'/'+_0x3e12fb['id']+_0x3c1914(0xae)+(_0x222277[_0x3c1914(0x19c)]?_0x3c1914(0xa6)+_0x222277[_0x3c1914(0x19c)]['join'](',\x20'):'')+'.',_0x3c1914(0x7a)+_0x3e12fb['id']+_0x3c1914(0x14d)+_0x222277['suffix']+'\x22;',..._0xec58bf[_0x3c1914(0xec)]?[_0x3c1914(0xc2)+_0x3e12fb['id']+_0x3c1914(0xfe)+_0x222277[_0x3c1914(0x8d)]+'\x22;']:[],''][_0x3c1914(0x13d)]('\x0a');}function et(_0x41a5d9,_0xb941f8,_0x5a190d){const _0x240d01=_0x516fff;return[k,_0x240d01(0xa5)+_0xb941f8[_0x240d01(0xe9)]+'/'+_0x41a5d9['id']+_0x240d01(0x1b6)+_0x41a5d9['id']+_0x240d01(0xf1),_0x240d01(0x7a)+_0x41a5d9['id']+'ProtectedApi\x20}\x20from\x20\x22./api'+_0x5a190d[_0x240d01(0x8d)]+'\x22;',..._0xb941f8[_0x240d01(0xec)]?[_0x240d01(0xc2)+_0x41a5d9['id']+_0x240d01(0xe5)+_0x5a190d[_0x240d01(0x8d)]+'\x22;']:[],'']['join']('\x0a');}function _(_0x20c63e,_0x5719a9,_0x46df85,_0x475726=_0x5ae5c3,_0x4694d8){const _0x2b6544=_0x516fff;let _0x15e7c4=_0x4694d8?'.'+_0x4694d8:'',_0x475463=new Map(),_0x1712ba=_0x5719a9[_0x2b6544(0xec)]?.[_0x2b6544(0x153)],_0x282da2=_0x1712ba?.[_0x2b6544(0xd4)]?.[_0x46df85?_0x2b6544(0x163):_0x4694d8??_0x2b6544(0x163)];_0x1712ba&&_0x282da2&&_0x475463['set'](_0x1712ba[_0x2b6544(0x154)],[_0x3cfadf(_0x5719a9[_0x2b6544(0xda)],_0x282da2)]);let _0xa0704a=_0x46df85?new Set([_0x46df85['id'],..._0x46df85['requires'],..._0x46df85['optional'],..._0x20c63e[_0x2b6544(0x73)]['filter'](_0x3eeaee=>_0x3eeaee[_0x2b6544(0x173)])['map'](_0x2bc366=>_0x2bc366['id'])]):null;for(let _0x135d9b of _0x20c63e[_0x2b6544(0x73)]){if(_0xa0704a&&!_0xa0704a[_0x2b6544(0xaa)](_0x135d9b['id']))continue;let _0x195075=_0x165caa(_0x5719a9[_0x2b6544(0xd1)],_0x135d9b[_0x2b6544(0x18c)]);_0x475463[_0x2b6544(0xf7)](_0x5719a9['alias']+'/'+_0x135d9b['id'],[_0x165caa(_0x195075,_0x2b6544(0x85)+_0x15e7c4+_0x2b6544(0x18a))]);for(let [_0x42ea3c,_0x443d90]of Object['entries'](_0x5719a9[_0x2b6544(0xb2)]))_0x475726(_0x165caa(_0x195075,_0x443d90))&&_0x475463['set'](_0x5719a9[_0x2b6544(0xe9)]+'/'+_0x135d9b['id']+'/'+_0x42ea3c,[_0x165caa(_0x195075,_0x443d90)]);if((!_0x46df85||_0x46df85['id']===_0x135d9b['id'])&&_0x475463['set'](_0x5719a9[_0x2b6544(0xe9)]+'/'+_0x135d9b['id']+_0x2b6544(0x1ba),[_0x165caa(_0x195075,_0x2b6544(0x194)+_0x15e7c4+'.ts')]),_0x46df85&&_0x46df85['id']!==_0x135d9b['id']){for(let _0x342b03 of _0x5719a9[_0x2b6544(0x76)])_0x342b03['endsWith'](_0x2b6544(0x11f))?_0x475463['set'](_0x5719a9[_0x2b6544(0xe9)]+'/'+_0x135d9b['id']+'/'+_0x342b03[_0x2b6544(0x70)](0x0,-0x3)+'/*',[_0x165caa(_0x195075,_0x342b03['slice'](0x0,-0x3),'*')]):_0x342b03['includes']('*')||_0x475463['set'](_0x5719a9[_0x2b6544(0xe9)]+'/'+_0x135d9b['id']+'/'+_0x342b03[_0x2b6544(0x87)](/\.tsx?$/,''),[_0x165caa(_0x195075,_0x342b03)]);}else _0x475463[_0x2b6544(0xf7)](_0x5719a9['alias']+'/'+_0x135d9b['id']+'/*',[_0x165caa(_0x195075,'*')]);}return _0x475463;}var se=(_0x15caf1,_0x1425a7)=>_0x1425a7===_0x15caf1[_0x516fff(0xe9)]||_0x1425a7[_0x516fff(0x1b5)](_0x15caf1[_0x516fff(0xe9)]+'/')||_0x15caf1[_0x516fff(0xec)]?.[_0x516fff(0x153)][_0x516fff(0xd4)]!==void 0x0&&_0x1425a7===_0x15caf1[_0x516fff(0xec)][_0x516fff(0x153)]['from'];function tt(_0x99f659,_0x593e23,_0x27d0b2){const _0x54ab18=_0x516fff;let _0x497b36=_0x3146be['readConfigFile'](_0x593e23,_0x3146be[_0x54ab18(0xa8)]['readFile']),_0x5675ed=_0x497b36[_0x54ab18(0x14f)]?.['compilerOptions']?.[_0x54ab18(0x1b0)]??{},_0x109f1=_0x497b36[_0x54ab18(0x14f)]?.[_0x54ab18(0x130)]?.[_0x54ab18(0x155)],_0x20ebfc=_0x3cfadf(_0x462a12(_0x593e23),_0x109f1??'.'),_0x4871d8={};for(let [_0x3433a3,_0x5d81fb]of Object[_0x54ab18(0x82)](_0x5675ed))se(_0x99f659,_0x3433a3)||(_0x4871d8[_0x3433a3]=_0x5d81fb['map'](_0x41b519=>A(_0x27d0b2,_0x3cfadf(_0x20ebfc,_0x41b519))));return _0x4871d8;}function st(_0x3060b9,_0x5694fe){const _0x3a2858=_0x516fff;if(!_0x3060b9[_0x3a2858(0x171)])return{};let _0x5ef58f=_0x3146be[_0x3a2858(0x111)](_0x3060b9[_0x3a2858(0x171)],_0x3146be[_0x3a2858(0xa8)][_0x3a2858(0xb7)]),_0x7569ca=_0x5ef58f[_0x3a2858(0x14f)]?.[_0x3a2858(0x130)]?.[_0x3a2858(0x1b0)]??{},_0x1cc0db=_0x5ef58f[_0x3a2858(0x14f)]?.[_0x3a2858(0x130)]?.[_0x3a2858(0x155)],_0x49a434=_0x3cfadf(_0x462a12(_0x3060b9[_0x3a2858(0x171)]),_0x1cc0db??'.'),_0x54dfd0={};for(let [_0x2228ce,_0x6fbfd6]of Object['entries'](_0x7569ca))se(_0x3060b9,_0x2228ce)||(_0x54dfd0[_0x2228ce]=_0x6fbfd6[_0x3a2858(0xbc)](_0x296426=>A(_0x5694fe,_0x3cfadf(_0x49a434,_0x296426))));return _0x54dfd0;}var A=(_0x5d14ba,_0x58ed22)=>{const _0x2fbadb=_0x516fff;let _0x2f5a4f=$(_0x3f345c(_0x5d14ba,_0x58ed22));return _0x2f5a4f[_0x2fbadb(0x1b5)]('./')||_0x2f5a4f[_0x2fbadb(0x1b5)](_0x2fbadb(0x7d))?_0x2f5a4f:'./'+_0x2f5a4f;};function ee(_0x2571af,_0xc8881c){const _0x592f5c=_0x516fff;return Object[_0x592f5c(0x16a)]([..._0xc8881c][_0x592f5c(0x107)](([_0x1133c9],[_0x4c391c])=>_0x1133c9[_0x592f5c(0x19e)](_0x4c391c))['map'](([_0x576074,_0x165987])=>[_0x576074,_0x165987[_0x592f5c(0xbc)](_0x58e83b=>A(_0x2571af,_0x58e83b))]));}function it(_0x5d5cfb,_0x1b2e1c,_0x9988f1,_0x9d4394){const _0xa8e91f=_0x516fff;let _0x1a6726=_0x165caa(_0x1b2e1c['root'],_0x9988f1[_0xa8e91f(0x18c)]),_0x59420b={'$comment':D+':\x20'+_0x9988f1['id']+_0xa8e91f(0x118),..._0x1b2e1c['tsconfigBase']?{'extends':A(_0x1a6726,_0x1b2e1c[_0xa8e91f(0x171)])}:{},'compilerOptions':{..._0x1b2e1c[_0xa8e91f(0x1bc)][_0xa8e91f(0x130)],'paths':{...st(_0x1b2e1c,_0x1a6726),...ee(_0x1a6726,_(_0x5d5cfb,_0x1b2e1c,_0x1b2e1c[_0xa8e91f(0x1bc)]['isolation']===_0xa8e91f(0xea)?void 0x0:_0x9988f1,_0x9d4394))}},'include':[_0xa8e91f(0x192),..._0x1b2e1c[_0xa8e91f(0x1bc)][_0xa8e91f(0x10a)][_0xa8e91f(0xbc)](_0x4781b1=>A(_0x1a6726,_0x4781b1))],..._0x1b2e1c[_0xa8e91f(0x1bc)][_0xa8e91f(0xe2)][_0xa8e91f(0x190)]>0x0?{'exclude':[..._0x1b2e1c[_0xa8e91f(0x1bc)][_0xa8e91f(0xe2)]]}:{}};return JSON[_0xa8e91f(0x95)](_0x59420b,null,0x2)+'\x0a';}function nt(_0x4c8440,_0x15a161,_0xa92795){const _0x363e90=_0x516fff;let _0x2c87b2=_0x165caa(_0x15a161[_0x363e90(0xd1)],_0x363e90(0xba)),_0x51c56d=_0x4c8440[_0x363e90(0x73)][_0x363e90(0xbc)](_0x212787=>({'m':_0x212787,'r':_0x212787['realms']['find'](_0x414895=>_0x414895[_0x363e90(0x17f)]===_0xa92795)}))['filter'](_0x47b7b6=>_0x47b7b6['r']!==void 0x0);return[k,_0x363e90(0x137)+(_0xa92795?_0xa92795+'\x20':'')+_0x363e90(0x1ad),_0x363e90(0x1a3),..._0x51c56d[_0x363e90(0xbc)](({m:_0x3430c2,r:_0x861893},_0x24df6f)=>'import\x20M'+_0x24df6f+_0x363e90(0x97)+JSON[_0x363e90(0x95)](X(_0x2c87b2,_0x165caa(_0x15a161[_0x363e90(0xd1)],_0x3430c2['path'],_0x861893['file'])))+';'),'',_0x363e90(0x1b8),..._0x51c56d[_0x363e90(0xbc)](({m:_0x495c00,r:_0x56b5d9},_0x4dad89)=>'\x20\x20'+JSON[_0x363e90(0x95)]({'id':_0x495c00['id'],'version':_0x495c00[_0x363e90(0x14a)],'core':_0x495c00[_0x363e90(0x173)],'requires':_0x495c00[_0x363e90(0xb9)],'optional':_0x495c00[_0x363e90(0xee)],'startOrder':_0x495c00['startOrder'],'realm':_0x56b5d9[_0x363e90(0x174)],'members':_0x56b5d9[_0x363e90(0x139)],'hooks':_0x56b5d9[_0x363e90(0x94)],'extra':_0x495c00[_0x363e90(0x7c)]})[_0x363e90(0x87)](/}$/,_0x363e90(0x16d)+_0x4dad89+'\x20}')+','),'];','','export\x20default\x20modules;',''][_0x363e90(0x13d)]('\x0a');}function he(_0x396e44,_0x1f94a8,_0x3a27da=[]){const _0x1774b8=_0x516fff;let _0x54b03c=new Map(),_0x1cdcee={'graph':_0x396e44,'config':_0x1f94a8,'header':k,'dirOf':_0x22ed5d=>_0x165caa(_0x1f94a8['root'],_0x22ed5d[_0x1774b8(0x18c)])};for(let _0xa6922f of _0x3a27da){let _0x2452bb=_0xa6922f[_0x1774b8(0xaf)](_0x1cdcee);for(let [_0x535201,_0x21fc29]of _0x2452bb instanceof Map?_0x2452bb:Object[_0x1774b8(0x82)](_0x2452bb)){let _0x5994ab=_0x3cfadf(_0x535201);if(_0x54b03c['has'](_0x5994ab))throw new Error('module-kit:\x20plugin\x20\x22'+_0xa6922f[_0x1774b8(0xcc)]+'\x22\x20writes\x20'+_0x5994ab+',\x20which\x20another\x20plugin\x20writes\x20too');_0x54b03c[_0x1774b8(0xf7)](_0x5994ab,_0x21fc29);}}let _0x2a65a9=_0x539384=>_0x54b03c[_0x1774b8(0xaa)](_0x539384)||_0x5ae5c3(_0x539384),_0x20b2a3=(_0x2a019d,_0x32debb)=>{const _0x125d9e=_0x1774b8;if(_0x54b03c['has'](_0x2a019d))throw new Error('module-kit:\x20a\x20plugin\x20writes\x20'+_0x2a019d+_0x125d9e(0x13f));_0x54b03c[_0x125d9e(0xf7)](_0x2a019d,_0x32debb);},_0x2f4280=[Ue,...Object[_0x1774b8(0x82)](_0x1f94a8['views'])[_0x1774b8(0xbc)](([_0x521d5a,_0x141873])=>({'suffix':'.'+_0x521d5a,'realms':_0x141873}))];for(let _0x5aae62 of _0x396e44[_0x1774b8(0x73)]){let _0x107052=_0x165caa(_0x1f94a8['root'],_0x5aae62[_0x1774b8(0x18c)]),_0x421c31=_0x165caa(_0x107052,_0x1774b8(0xba));for(let _0x10b44d of _0x5aae62[_0x1774b8(0x19c)])_0x20b2a3(_0x165caa(_0x421c31,me(_0x10b44d)),Ze(_0x5aae62,_0x10b44d));for(let _0x34afc8 of _0x2f4280){let _0x12593d=_0x34afc8[_0x1774b8(0x8d)];_0x20b2a3(_0x165caa(_0x421c31,'api'+_0x12593d+'.ts'),Xe(_0x5aae62,_0x34afc8)),_0x20b2a3(_0x165caa(_0x421c31,_0x1774b8(0x184)+_0x12593d+_0x1774b8(0x18a)),Qe(_0x5aae62,_0x1f94a8,_0x34afc8)),_0x20b2a3(_0x165caa(_0x421c31,'protected'+_0x12593d+'.ts'),et(_0x5aae62,_0x1f94a8,_0x34afc8)),_0x1f94a8[_0x1774b8(0xec)]&&(_0x20b2a3(_0x165caa(_0x421c31,_0x1774b8(0x193)+_0x12593d+_0x1774b8(0x18a)),pe(_0x5aae62,_0x421c31,_0x1f94a8,_0x1774b8(0x14c),_0x34afc8)),_0x20b2a3(_0x165caa(_0x421c31,_0x1774b8(0x8a)+_0x12593d+_0x1774b8(0x18a)),pe(_0x5aae62,_0x421c31,_0x1f94a8,_0x1774b8(0xde),_0x34afc8)));}_0x20b2a3(_0x165caa(_0x107052,_0x1774b8(0x92)),it(_0x396e44,_0x1f94a8,_0x5aae62,_0x2a65a9));}let _0x44b9c7=_0x165caa(_0x1f94a8[_0x1774b8(0xd1)],_0x1774b8(0xba));for(let _0x58a88b of _0x1f94a8['realms']??[null])_0x20b2a3(_0x165caa(_0x44b9c7,_0x58a88b?_0x1774b8(0xb3)+_0x58a88b+'.ts':_0x1774b8(0xb1)),nt(_0x396e44,_0x1f94a8,_0x58a88b));for(let _0x54b369 of[void 0x0,...Object[_0x1774b8(0x7e)](_0x1f94a8[_0x1774b8(0x104)])]){let _0x422e91=_0x54b369?'.'+_0x54b369:'',_0x55a599=_(_0x396e44,_0x1f94a8,void 0x0,_0x2a65a9,_0x54b369),_0x232bda=Object['fromEntries']([..._0x55a599][_0x1774b8(0x107)](([_0x512e29],[_0x4c34eb])=>_0x512e29[_0x1774b8(0x19e)](_0x4c34eb))[_0x1774b8(0xbc)](([_0x1495fd,_0x4c9f76])=>[_0x1495fd,$(_0x3f345c(_0x1f94a8[_0x1774b8(0xda)],_0x4c9f76[0x0]))])),_0x3bf8c6=_0x54b369?_0x1774b8(0x150)+_0x54b369+_0x1774b8(0x142):'';_0x20b2a3(_0x165caa(_0x44b9c7,'aliases'+_0x422e91+_0x1774b8(0x12c)),JSON[_0x1774b8(0x95)]({'$comment':D+':\x20alias\x20->\x20file'+_0x3bf8c6+_0x1774b8(0x89),..._0x232bda},null,0x2)+'\x0a'),_0x20b2a3(_0x165caa(_0x44b9c7,'tsconfig.paths'+_0x422e91+'.json'),JSON[_0x1774b8(0x95)]({'$comment':D+_0x1774b8(0x1a0)+_0x3bf8c6+_0x1774b8(0x89),'compilerOptions':{'paths':ee(_0x44b9c7,_0x55a599)}},null,0x2)+'\x0a');}for(let _0x321c84 of _0x1f94a8[_0x1774b8(0x16c)]['filter'](_0x56afc6=>_0x56afc6[_0x1774b8(0x179)]===_0x1774b8(0x16e))){let _0x3a0b35=_0x3cfadf(_0x1f94a8[_0x1774b8(0xda)],_0x321c84[_0x1774b8(0xe4)]),_0x30bda8=_0x462a12(_0x3a0b35),_0x1883ed={...tt(_0x1f94a8,_0x3cfadf(_0x1f94a8[_0x1774b8(0xda)],_0x321c84[_0x1774b8(0x138)]),_0x30bda8),...ee(_0x30bda8,_(_0x396e44,_0x1f94a8,void 0x0,_0x2a65a9,_0x321c84[_0x1774b8(0x128)]))};_0x20b2a3(_0x3a0b35,JSON[_0x1774b8(0x95)]({'$comment':D+':\x20'+$(_0x3f345c(_0x1f94a8['cwd'],_0x3cfadf(_0x1f94a8[_0x1774b8(0xda)],_0x321c84[_0x1774b8(0x138)])))+_0x1774b8(0x6f)+(_0x321c84['view']?_0x1774b8(0x141)+_0x321c84['view']+_0x1774b8(0xfd):'')+_0x1774b8(0x89),'compilerOptions':{'paths':_0x1883ed}},null,0x2)+'\x0a');}let _0x5bd62d=_0x165caa(_0x44b9c7,ye),_0x1a9fd3=[..._0x54b03c[_0x1774b8(0x7e)](),_0x5bd62d][_0x1774b8(0xbc)](_0x529c83=>$(_0x3f345c(_0x1f94a8['cwd'],_0x529c83)))[_0x1774b8(0x107)]();return _0x54b03c[_0x1774b8(0xf7)](_0x5bd62d,JSON['stringify']({'$comment':D+':\x20the\x20scan,\x20and\x20every\x20file\x20it\x20generated.\x20DO\x20NOT\x20EDIT.','modules':_0x396e44[_0x1774b8(0x73)],'files':_0x1a9fd3},null,0x2)+'\x0a'),_0x54b03c;}var ye=_0x516fff(0x1b9);function rt(_0x54c25c){const _0x3b2eeb=_0x516fff;let _0x499a93=_0x165caa(_0x54c25c[_0x3b2eeb(0xd1)],_0x3b2eeb(0xba),ye);if(!_0x5ae5c3(_0x499a93))return new Set();try{let _0xc0d5f9=JSON[_0x3b2eeb(0xe6)](_0x4ee426(_0x499a93,_0x3b2eeb(0x102)))[_0x3b2eeb(0xaf)]??[];return new Set(_0xc0d5f9[_0x3b2eeb(0xbc)](_0x1e1960=>_0x3cfadf(_0x54c25c['cwd'],_0x1e1960)));}catch{return new Set();}}function $e(_0x5a5076,_0x5f5b80){const _0x4b22c0=_0x516fff;if(_0x5f5b80[_0x4b22c0(0xaa)](_0x5a5076))return!0x0;if(!_0x5ae5c3(_0x5a5076))return!0x1;let _0x97e9ad=_0x4ee426(_0x5a5076,'utf8')['slice'](0x0,0xc8);return _0x97e9ad[_0x4b22c0(0x1b5)](k)||_0x97e9ad[_0x4b22c0(0xb4)]('\x22'+D);}function ot(_0x24e697,_0x214e47,_0x3a2916,_0x5e07ea){const _0x280fca=_0x516fff;let _0x449206=new Set([..._0x5e07ea]['filter'](_0x500cf3=>!_0x3a2916['has'](_0x500cf3)&&_0x5ae5c3(_0x500cf3))),_0x12e3a1=[_0x165caa(_0x214e47[_0x280fca(0xd1)],_0x280fca(0xba)),..._0x24e697[_0x280fca(0x73)][_0x280fca(0xbc)](_0x24e091=>_0x165caa(_0x214e47[_0x280fca(0xd1)],_0x24e091[_0x280fca(0x18c)],'.generated'))];for(let _0x471008 of _0x12e3a1)if(_0x5ae5c3(_0x471008))for(let _0x32ed13 of _0x599c2c(_0x471008,{'withFileTypes':!0x0})){let _0x38cf64=_0x165caa(_0x471008,_0x32ed13[_0x280fca(0xcc)]);_0x32ed13[_0x280fca(0x84)]()&&!_0x3a2916[_0x280fca(0xaa)](_0x38cf64)&&$e(_0x38cf64,new Set())&&_0x449206[_0x280fca(0x9c)](_0x38cf64);}return[..._0x449206][_0x280fca(0x107)]();}function ie(_0x4a01e9,_0x489918,_0x3d50ea={}){const _0xd2448d=_0x516fff;let _0x36b920=he(_0x4a01e9,_0x489918,_0x3d50ea[_0xd2448d(0xb8)]),_0x2ee0a9=rt(_0x489918),_0xc0046b=[];for(let [_0x47404b,_0x4528ce]of _0x36b920)if(!(_0x5ae5c3(_0x47404b)&&_0x4ee426(_0x47404b,_0xd2448d(0x102))===_0x4528ce)){if(_0x5ae5c3(_0x47404b)&&!$e(_0x47404b,_0x2ee0a9))throw new Error('module-kit:\x20'+$(_0x3f345c(_0x489918[_0xd2448d(0xda)],_0x47404b))+_0xd2448d(0x169));_0xc0046b[_0xd2448d(0xa1)]($(_0x3f345c(_0x489918['cwd'],_0x47404b))),_0x3d50ea[_0xd2448d(0x147)]||(_0x53ba37(_0x462a12(_0x47404b),{'recursive':!0x0}),_0x5392d5(_0x47404b,_0x4528ce));}for(let _0x21cb4c of _0x489918[_0xd2448d(0x16c)]['filter'](_0x1746e1=>_0x1746e1[_0xd2448d(0x179)]==='splice')){let _0x4c0956=_0x3cfadf(_0x489918[_0xd2448d(0xda)],_0x21cb4c[_0xd2448d(0xe4)]),_0x528b96=_0x4ee426(_0x4c0956,_0xd2448d(0x102)),_0x392523=_0x462a12(_0x4c0956),_0x2a8724=xe(_0x528b96,_0x489918,Object['fromEntries']([..._(_0x4a01e9,_0x489918,void 0x0,void 0x0,_0x21cb4c[_0xd2448d(0x128)])][_0xd2448d(0xbc)](([_0x409f32,_0x359034])=>[_0x409f32,_0x359034[_0xd2448d(0xbc)](_0x2b29fc=>A(_0x392523,_0x2b29fc))])));_0x2a8724!==_0x528b96&&(_0xc0046b['push']($(_0x3f345c(_0x489918[_0xd2448d(0xda)],_0x4c0956))),_0x3d50ea[_0xd2448d(0x147)]||_0x5392d5(_0x4c0956,_0x2a8724));}let _0x5f4ad9=ot(_0x4a01e9,_0x489918,_0x36b920,_0x2ee0a9)['map'](_0x286881=>(_0x3d50ea['check']||_0x206a66(_0x286881),$(_0x3f345c(_0x489918[_0xd2448d(0xda)],_0x286881))));return{'written':_0xc0046b,'removed':_0x5f4ad9};}var Q=/^\s*"/;function xe(_0x49ea42,_0x28c5f1,_0x2950de){const _0x27a1e9=_0x516fff;let _0x2fa9e4=_0x49ea42[_0x27a1e9(0xb4)]('\x0d\x0a')?'\x0d\x0a':'\x0a',_0x341d5c=_0x49ea42[_0x27a1e9(0x196)](/\r?\n/),_0x56dc2e=_0x341d5c['findIndex'](_0x2543d3=>/^\s*"paths"\s*:\s*\{\s*$/[_0x27a1e9(0x18e)](_0x2543d3));if(_0x56dc2e<0x0)throw new Error('module-kit:\x20a\x20spliced\x20tsconfig\x20needs\x20a\x20`\x22paths\x22:\x20{`\x20line\x20of\x20its\x20own');let _0x2ffbce=-0x1;for(let _0x3b71ba=_0x56dc2e+0x1;_0x3b71ba<_0x341d5c[_0x27a1e9(0x190)];_0x3b71ba++)if(/^\s*\}/['test'](_0x341d5c[_0x3b71ba])){_0x2ffbce=_0x3b71ba;break;}if(_0x2ffbce<0x0)throw new Error(_0x27a1e9(0xcf));let _0x5788c6=_0x359be3=>/^\s*"([^"]+)"\s*:/['exec'](_0x359be3)?.[0x1],_0x150d6d=_0x341d5c[_0x27a1e9(0x70)](_0x56dc2e+0x1,_0x2ffbce)[_0x27a1e9(0xe3)](_0x1ffcde=>Q['test'](_0x1ffcde)),_0x178f53=_0x150d6d?_0x150d6d[_0x27a1e9(0x70)](0x0,_0x150d6d[_0x27a1e9(0xd0)]('\x22')):'\x20'['repeat'](_0x341d5c[_0x56dc2e][_0x27a1e9(0xd0)](_0x27a1e9(0xdb))+0x2),_0x4e7186=_0x341d5c['slice'](_0x56dc2e+0x1,_0x2ffbce)[_0x27a1e9(0xad)](_0x5905be=>{let _0xab34b1=_0x5788c6(_0x5905be);return _0xab34b1===void 0x0||!se(_0x28c5f1,_0xab34b1);}),_0x34bc3f=[...Object[_0x27a1e9(0x7e)](_0x2950de)[_0x27a1e9(0x107)]()[_0x27a1e9(0xbc)](_0x416278=>''+_0x178f53+JSON[_0x27a1e9(0x95)](_0x416278)+':\x20'+JSON[_0x27a1e9(0x95)](_0x2950de[_0x416278])+','),..._0x4e7186],_0x5865df=-0x1;for(let _0x4fe2a0=0x0;_0x4fe2a0<_0x34bc3f[_0x27a1e9(0x190)];_0x4fe2a0++)Q[_0x27a1e9(0x18e)](_0x34bc3f[_0x4fe2a0])&&(_0x5865df=_0x4fe2a0);_0x5865df>=0x0&&(_0x34bc3f[_0x5865df]=_0x34bc3f[_0x5865df]['replace'](/,\s*$/,''));for(let _0x5ca936=0x0;_0x5ca936<_0x5865df;_0x5ca936++)Q[_0x27a1e9(0x18e)](_0x34bc3f[_0x5ca936])&&!/,\s*$/[_0x27a1e9(0x18e)](_0x34bc3f[_0x5ca936])&&(_0x34bc3f[_0x5ca936]=_0x34bc3f[_0x5ca936][_0x27a1e9(0x87)](/\s*$/,'')+',');return[..._0x341d5c[_0x27a1e9(0x70)](0x0,_0x56dc2e+0x1),..._0x34bc3f,..._0x341d5c[_0x27a1e9(0x70)](_0x2ffbce)][_0x27a1e9(0x13d)](_0x2fa9e4);}function _0x41c4(_0x2fb30c,_0x40a64a){_0x2fb30c=_0x2fb30c-0x6a;const _0x5a71ae=_0x5a71();let _0x41c42e=_0x5a71ae[_0x2fb30c];if(_0x41c4['StIgfl']===undefined){var _0x15956f=function(_0xe61595){const _0x514533='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x193a6e='',_0x8495ef='';for(let _0x405e6a=0x0,_0x46f264,_0x1b30fc,_0x101bbd=0x0;_0x1b30fc=_0xe61595['charAt'](_0x101bbd++);~_0x1b30fc&&(_0x46f264=_0x405e6a%0x4?_0x46f264*0x40+_0x1b30fc:_0x1b30fc,_0x405e6a++%0x4)?_0x193a6e+=String['fromCharCode'](0xff&_0x46f264>>(-0x2*_0x405e6a&0x6)):0x0){_0x1b30fc=_0x514533['indexOf'](_0x1b30fc);}for(let _0x30740c=0x0,_0xce2dd8=_0x193a6e['length'];_0x30740c<_0xce2dd8;_0x30740c++){_0x8495ef+='%'+('00'+_0x193a6e['charCodeAt'](_0x30740c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x8495ef);};_0x41c4['fAfivr']=_0x15956f,_0x41c4['dsdgZr']={},_0x41c4['StIgfl']=!![];}const _0x2ab545=_0x5a71ae[0x0],_0x2fb27c=_0x2fb30c+_0x2ab545,_0x1c1c67=_0x41c4['dsdgZr'][_0x2fb27c];return!_0x1c1c67?(_0x41c42e=_0x41c4['fAfivr'](_0x41c42e),_0x41c4['dsdgZr'][_0x2fb27c]=_0x41c42e):_0x41c42e=_0x1c1c67,_0x41c42e;}import{existsSync as _0xef8945}from'node:fs';import{join as _0x15a101,relative as _0x196466}from'node:path';import{existsSync as _0x412b76,readFileSync as _0x50bd6d}from'node:fs';import{dirname as _0x34d742,resolve as _0x1ea2f0}from'node:path';var ct=_0x516fff(0xd8),we=/^[a-z][a-z0-9]*$/,ut=_0x37c3f3=>_0x37c3f3;function Se(_0x4db522,_0x393213){const _0x114342=_0x516fff;if(!_0x4db522['root'])throw new Error(_0x114342(0xf3));let _0x5e3a42=_0x4db522[_0x114342(0x19c)]&&_0x4db522[_0x114342(0x19c)]['length']>0x0?[..._0x4db522['realms']]:null;for(let _0x53160d of _0x5e3a42??[])if(!we[_0x114342(0x18e)](_0x53160d))throw new Error(_0x114342(0x132)+_0x53160d+_0x114342(0xf9));if(_0x5e3a42&&new Set(_0x5e3a42)[_0x114342(0x120)]!==_0x5e3a42[_0x114342(0x190)])throw new Error('module-kit:\x20`realms`\x20lists\x20a\x20realm\x20twice');let _0x75af4a=(_0x4db522[_0x114342(0xe9)]??_0x114342(0x1a4))[_0x114342(0x87)](/\/+$/,'');if(!_0x75af4a)throw new Error('module-kit:\x20`alias`\x20cannot\x20be\x20empty');for(let [_0x4853d1,_0x44e322]of Object['entries'](_0x4db522[_0x114342(0x104)]??{})){if(!we[_0x114342(0x18e)](_0x4853d1))throw new Error(_0x114342(0x126)+_0x4853d1+_0x114342(0xf9));for(let _0xcb081d of _0x44e322)if(!_0x5e3a42?.[_0x114342(0xb4)](_0xcb081d))throw new Error('module-kit:\x20view\x20\x22'+_0x4853d1+_0x114342(0xc3)+_0xcb081d+_0x114342(0x1a2));}for(let _0x493ffc of _0x4db522[_0x114342(0x16c)]??[]){if(_0x493ffc[_0x114342(0x128)]&&!(_0x4db522[_0x114342(0x104)]??{})[_0x493ffc[_0x114342(0x128)]])throw new Error('module-kit:\x20tsconfigPaths\x20\x22'+_0x493ffc[_0x114342(0xe4)]+'\x22\x20names\x20view\x20\x22'+_0x493ffc['view']+'\x22,\x20which\x20`views`\x20does\x20not\x20define');if(_0x493ffc[_0x114342(0x179)]===_0x114342(0x16e)&&!_0x493ffc['inherit'])throw new Error(_0x114342(0x1ab)+_0x493ffc[_0x114342(0xe4)]+_0x114342(0x135));}for(let _0x18a9df of Object[_0x114342(0x7e)](_0x4db522['exports']??{}))if(!/^[A-Za-z0-9_-]+$/[_0x114342(0x18e)](_0x18a9df)||_0x18a9df===_0x114342(0xde))throw new Error(_0x114342(0x9f)+_0x18a9df+_0x114342(0x189));return{'cwd':_0x393213,'root':_0x1ea2f0(_0x393213,_0x4db522[_0x114342(0xd1)]),'realms':_0x5e3a42,'alias':_0x75af4a,'publicPaths':_0x4db522['publicPaths']?[..._0x4db522['publicPaths']]:[_0x114342(0x19d),'shared/**'],'ignore':new Set(['node_modules',_0x114342(0xba),_0x114342(0x191),_0x114342(0x161),..._0x5e3a42??[],..._0x4db522[_0x114342(0x144)]??[]]),'tsconfigBase':_0x4db522[_0x114342(0x171)]?_0x1ea2f0(_0x393213,_0x4db522[_0x114342(0x171)]):null,'rpc':_0x4db522[_0x114342(0xec)]??null,'manifestFields':{..._0x4db522[_0x114342(0x106)]??{}},'hooks':_0x4db522[_0x114342(0x94)]?[..._0x4db522[_0x114342(0x94)]]:[_0x114342(0x17b),_0x114342(0xfb)],'timeoutsField':_0x4db522['timeoutsField']??_0x114342(0x122),'exports':{..._0x4db522[_0x114342(0xb2)]??{}},'callUp':_0x4db522[_0x114342(0xef)]??_0x114342(0x6d),'tsconfigPaths':[..._0x4db522[_0x114342(0x16c)]??[]],'plugins':(_0x4db522[_0x114342(0xb8)]??[])['map'](_0x121bcb=>_0x1ea2f0(_0x393213,_0x121bcb)),'views':Object['fromEntries'](Object[_0x114342(0x82)](_0x4db522[_0x114342(0x104)]??{})['map'](([_0x1325b5,_0xb834a6])=>[_0x1325b5,[..._0xb834a6]])),'checkExclude':[..._0x4db522[_0x114342(0xa7)]??[]],'tsconfig':{'compilerOptions':{..._0x4db522[_0x114342(0x1bc)]?.[_0x114342(0x130)]??{}},'exclude':[..._0x4db522['tsconfig']?.[_0x114342(0xe2)]??[]],'include':(_0x4db522[_0x114342(0x1bc)]?.[_0x114342(0x10a)]??[])['map'](_0x56d3df=>_0x1ea2f0(_0x393213,_0x56d3df)),'isolation':_0x4db522['tsconfig']?.[_0x114342(0x121)]??_0x114342(0xfc)}};}function ft(_0x4d2924){const _0x44deb7=_0x516fff;let _0x2c7b51=_0x1ea2f0(_0x4d2924);if(!_0x412b76(_0x2c7b51))throw new Error(_0x44deb7(0x110)+_0x2c7b51);let _0x1fa12a;try{_0x1fa12a=JSON[_0x44deb7(0xe6)](_0x50bd6d(_0x2c7b51,_0x44deb7(0x102)));}catch(_0x26164b){throw new Error(_0x44deb7(0x129)+_0x2c7b51+_0x44deb7(0x101)+_0x26164b[_0x44deb7(0xf4)]);}return Se(_0x1fa12a,_0x34d742(_0x2c7b51));}var be=_0x52d8f4=>_0x52d8f4[0x0][_0x516fff(0x112)]()+_0x52d8f4['slice'](0x1);import{existsSync as _0x2a9a30,readdirSync as _0x54360c,readFileSync as _0x34baf2}from'node:fs';import{join as _0xbdaf18,relative as _0x438f42}from'node:path';import _0x7bd046 from'typescript-6';function ve(_0x1caf1c){const _0x39cde3=_0x516fff;return _0x54360c(_0x1caf1c,{'withFileTypes':!0x0})[_0x39cde3(0xad)](_0x1dac0a=>_0x1dac0a['isDirectory']())[_0x39cde3(0xbc)](_0x52f21b=>_0x52f21b[_0x39cde3(0xcc)])[_0x39cde3(0x107)]();}function gt(_0x35bd15){const _0x183860=_0x516fff;let _0x24bcad=[],_0x4f9d08=_0x359442=>{const _0x59efb1=_0x41c4;if(_0x2a9a30(_0xbdaf18(_0x359442,_0x59efb1(0x19d)))){_0x24bcad[_0x59efb1(0xa1)](_0x359442);return;}for(let _0x5bfb9c of ve(_0x359442))!_0x35bd15[_0x59efb1(0x144)][_0x59efb1(0xaa)](_0x5bfb9c)&&!_0x5bfb9c['startsWith']('.')&&_0x4f9d08(_0xbdaf18(_0x359442,_0x5bfb9c));};for(let _0x331deb of ve(_0x35bd15[_0x183860(0xd1)]))!_0x35bd15['ignore'][_0x183860(0xaa)](_0x331deb)&&!_0x331deb[_0x183860(0x1b5)]('.')&&_0x4f9d08(_0xbdaf18(_0x35bd15[_0x183860(0xd1)],_0x331deb));return _0x24bcad;}function re(_0x2c54e8){const _0x3c1ee1=_0x516fff;for(;;)if(_0x7bd046[_0x3c1ee1(0x8f)](_0x2c54e8)||_0x7bd046[_0x3c1ee1(0x15f)](_0x2c54e8)||_0x7bd046[_0x3c1ee1(0x9b)](_0x2c54e8))_0x2c54e8=_0x2c54e8['expression'];else{if(_0x7bd046[_0x3c1ee1(0xa9)](_0x2c54e8)&&_0x2c54e8['arguments'][_0x3c1ee1(0x190)]===0x1&&_0x7bd046[_0x3c1ee1(0xe1)](_0x2c54e8[_0x3c1ee1(0xb0)])&&_0x2c54e8[_0x3c1ee1(0xb0)][_0x3c1ee1(0xc4)]===_0x3c1ee1(0x151))_0x2c54e8=_0x2c54e8[_0x3c1ee1(0xed)][0x0];else return _0x2c54e8;}}function ht(_0x2c5732){const _0x234739=_0x516fff;let _0x9fbcf=re(_0x2c5732);if(_0x7bd046[_0x234739(0xf8)](_0x9fbcf)||_0x7bd046['isNoSubstitutionTemplateLiteral'](_0x9fbcf))return _0x9fbcf['text'];if(_0x9fbcf[_0x234739(0x75)]===_0x7bd046[_0x234739(0xc9)][_0x234739(0x145)])return!0x0;if(_0x9fbcf[_0x234739(0x75)]===_0x7bd046[_0x234739(0xc9)][_0x234739(0x133)])return!0x1;if(_0x7bd046['isArrayLiteralExpression'](_0x9fbcf)){let _0xe2807=[];for(let _0x9be171 of _0x9fbcf[_0x234739(0x123)]){if(!_0x7bd046[_0x234739(0xf8)](_0x9be171)&&!_0x7bd046[_0x234739(0x143)](_0x9be171))return;_0xe2807[_0x234739(0xa1)](_0x9be171['text']);}return _0xe2807;}}var yt={'id':_0x516fff(0x159),'version':_0x516fff(0x159),'requireModules':'array','optionalModules':_0x516fff(0xd2),'core':'boolean'};function $t(_0xa9021e,_0x1b8222,_0x4eed5c={}){const _0x22358f=_0x516fff;let _0x3eacde=_0x7bd046[_0x22358f(0x152)](_0xa9021e,_0x34baf2(_0xa9021e,'utf8'),_0x7bd046[_0x22358f(0x7f)][_0x22358f(0x11d)],!0x0),_0x11aaf4=[],_0x47b2fa={},_0x981883=_0x1d5601=>_0x3eacde[_0x22358f(0x10c)](_0x1d5601[_0x22358f(0xbf)](_0x3eacde))[_0x22358f(0x11e)]+0x1,_0x413f1d=(_0x33a8ea,_0x48aeb1)=>_0x11aaf4[_0x22358f(0xa1)]({'file':_0x1b8222,'line':_0x981883(_0x33a8ea),'message':_0x48aeb1}),_0x4fc848=_0x3eacde['statements']['find'](_0x56b135=>_0x7bd046[_0x22358f(0xab)](_0x56b135)&&!_0x56b135[_0x22358f(0xbb)]),_0x374ffe=_0x4fc848?re(_0x4fc848[_0x22358f(0xb0)]):void 0x0;if(!_0x374ffe||!_0x7bd046[_0x22358f(0x10f)](_0x374ffe))return _0x413f1d(_0x4fc848??_0x3eacde,_0x22358f(0xf6)),{'manifest':null,'extra':_0x47b2fa,'issues':_0x11aaf4};let _0x279d0e={};for(let _0x372c66 of _0x374ffe[_0x22358f(0x198)]){if(!_0x7bd046[_0x22358f(0x1a1)](_0x372c66)||!(_0x7bd046['isIdentifier'](_0x372c66[_0x22358f(0xcc)])||_0x7bd046[_0x22358f(0xf8)](_0x372c66[_0x22358f(0xcc)]))){_0x413f1d(_0x372c66,'manifest\x20entries\x20must\x20be\x20plain\x20`key:\x20value`\x20pairs');continue;}let _0x27c6d3=_0x372c66[_0x22358f(0xcc)][_0x22358f(0xc4)],_0x44c232=yt[_0x27c6d3],_0x48db11=_0x44c232??_0x4eed5c[_0x27c6d3];if(!_0x48db11){_0x413f1d(_0x372c66,_0x22358f(0x9e)+_0x27c6d3+'\x22');continue;}if(_0x48db11===_0x22358f(0x113)){let _0x56652d=re(_0x372c66[_0x22358f(0x127)]);_0x7bd046[_0x22358f(0xe1)](_0x56652d)?_0x47b2fa[_0x27c6d3]={'identifier':_0x56652d[_0x22358f(0xc4)]}:_0x413f1d(_0x372c66[_0x22358f(0x127)],_0x22358f(0xf2)+_0x27c6d3+_0x22358f(0xc0));continue;}let _0x5aa571=ht(_0x372c66[_0x22358f(0x127)]);if(!(_0x5aa571!==void 0x0&&(_0x48db11===_0x22358f(0xd2)?Array[_0x22358f(0x6b)](_0x5aa571):typeof _0x5aa571===_0x48db11))){_0x413f1d(_0x372c66['initializer'],_0x22358f(0xf2)+_0x27c6d3+_0x22358f(0x108)+(_0x48db11==='array'?_0x22358f(0x12e):_0x48db11));continue;}_0x44c232?_0x279d0e[_0x27c6d3]=_0x5aa571:_0x47b2fa[_0x27c6d3]=_0x5aa571;}return typeof _0x279d0e['id']!='string'||_0x279d0e['id']===''?(_0x413f1d(_0x374ffe,_0x22358f(0x14e)),{'manifest':null,'extra':_0x47b2fa,'issues':_0x11aaf4}):{'manifest':_0x279d0e,'extra':_0x47b2fa,'issues':_0x11aaf4};}function Oe(_0x4b0f04){const _0x3fdca6=_0x516fff;let _0x396ce2=[];return _0x2a9a30(_0x4b0f04['root'])?{'found':gt(_0x4b0f04)[_0x3fdca6(0xbc)](_0x23c89c=>{const _0xf3dfb6=_0x3fdca6;let _0x5d6a64=$(_0x438f42(_0x4b0f04[_0xf3dfb6(0xda)],_0xbdaf18(_0x23c89c,_0xf3dfb6(0x19d)))),_0x2ca28c=$t(_0xbdaf18(_0x23c89c,'manifest.ts'),_0x5d6a64,_0x4b0f04[_0xf3dfb6(0x106)]);return _0x396ce2[_0xf3dfb6(0xa1)](..._0x2ca28c[_0xf3dfb6(0x1bb)]),{'dir':_0x23c89c,'path':$(_0x438f42(_0x4b0f04[_0xf3dfb6(0xd1)],_0x23c89c)),'manifest':_0x2ca28c[_0xf3dfb6(0x162)],'extra':_0x2ca28c[_0xf3dfb6(0x7c)]};}),'issues':_0x396ce2}:{'found':[],'issues':[{'file':$(_0x438f42(_0x4b0f04[_0x3fdca6(0xda)],_0x4b0f04[_0x3fdca6(0xd1)])),'line':0x1,'message':_0x3fdca6(0xb6)}]};}var xt=/^[A-Za-z_$][A-Za-z0-9_$]*$/;function ke(_0x5cf832,_0x54b2fd){const _0x19f968=_0x516fff;return _0x5cf832['filter'](_0x4dfbee=>_0x4dfbee[_0x19f968(0x162)]!==null)[_0x19f968(0xbc)](_0xdee952=>({'id':_0xdee952['manifest']['id'],'core':_0xdee952[_0x19f968(0x162)]['core']===!0x0,'requires':[..._0xdee952[_0x19f968(0x162)][_0x19f968(0x13c)]??[]],'optional':[..._0xdee952[_0x19f968(0x162)][_0x19f968(0x15d)]??[]],'file':_0x54b2fd(_0xdee952)}));}function Ce(_0x44bfd8){const _0x15d5d0=_0x516fff;let _0x483753=[],_0x39dfe3=(_0x4d6568,_0x21014f)=>_0x483753[_0x15d5d0(0xa1)]({'file':_0x4d6568['file'],'line':0x1,'message':_0x21014f}),_0x379008=new Map();for(let _0xb206f3 of _0x44bfd8){let _0x3228a0=_0x379008['get'](_0xb206f3['id']);_0x3228a0?_0x39dfe3(_0xb206f3,_0x15d5d0(0xa3)+_0xb206f3['id']+_0x15d5d0(0xac)+_0x3228a0['file']):_0x379008[_0x15d5d0(0xf7)](_0xb206f3['id'],_0xb206f3),xt[_0x15d5d0(0x18e)](_0xb206f3['id'])||_0x39dfe3(_0xb206f3,_0x15d5d0(0xa3)+_0xb206f3['id']+_0x15d5d0(0xdf));}for(let _0x5dd3e5 of _0x44bfd8){for(let [_0x6e71d8,_0x25e18d]of[[_0x15d5d0(0x13c),_0x5dd3e5[_0x15d5d0(0xb9)]],[_0x15d5d0(0x15d),_0x5dd3e5[_0x15d5d0(0xee)]]]){new Set(_0x25e18d)['size']!==_0x25e18d['length']&&_0x39dfe3(_0x5dd3e5,_0x6e71d8+_0x15d5d0(0x16b));for(let _0x4fb9ce of _0x25e18d){let _0x1e6899=_0x379008[_0x15d5d0(0x80)](_0x4fb9ce);_0x4fb9ce===_0x5dd3e5['id']?_0x39dfe3(_0x5dd3e5,_0x6e71d8+_0x15d5d0(0x165)):_0x1e6899?!_0x5dd3e5[_0x15d5d0(0x173)]&&_0x1e6899[_0x15d5d0(0x173)]?_0x39dfe3(_0x5dd3e5,_0x6e71d8+'\x20\x22'+_0x4fb9ce+_0x15d5d0(0xbd)):_0x5dd3e5[_0x15d5d0(0x173)]&&!_0x1e6899[_0x15d5d0(0x173)]&&_0x39dfe3(_0x5dd3e5,_0x15d5d0(0xd5)+_0x5dd3e5['id']+_0x15d5d0(0x119)+_0x4fb9ce+'\x22'):_0x39dfe3(_0x5dd3e5,_0x6e71d8+'\x20\x22'+_0x4fb9ce+_0x15d5d0(0x124));}}for(let _0x280b96 of _0x5dd3e5['requires']['filter'](_0x4d3a8a=>_0x5dd3e5[_0x15d5d0(0xee)][_0x15d5d0(0xb4)](_0x4d3a8a)))_0x39dfe3(_0x5dd3e5,'\x22'+_0x280b96+_0x15d5d0(0x185));}let _0x41a949=wt(new Map(_0x44bfd8[_0x15d5d0(0xbc)](_0x4403f7=>[_0x4403f7['id'],Re(_0x4403f7,_0x379008)])));return _0x41a949&&_0x39dfe3(_0x379008[_0x15d5d0(0x80)](_0x41a949[0x0]),_0x15d5d0(0x12a)+_0x41a949['join']('\x20->\x20')),_0x483753;}function Re(_0xc2fe72,_0x457a2a){const _0x298c2c=_0x516fff;let _0x59de9f=[..._0xc2fe72[_0x298c2c(0xb9)],..._0xc2fe72[_0x298c2c(0xee)]][_0x298c2c(0xad)](_0x48b726=>_0x457a2a[_0x298c2c(0xaa)](_0x48b726)&&_0x48b726!==_0xc2fe72['id']);return _0xc2fe72[_0x298c2c(0x173)]?_0x59de9f:[...new Set([...[..._0x457a2a[_0x298c2c(0x1b7)]()][_0x298c2c(0xad)](_0x1cda2d=>_0x1cda2d['core'])[_0x298c2c(0xbc)](_0x2ed62d=>_0x2ed62d['id']),..._0x59de9f])];}function wt(_0x436be4){const _0x39e143=_0x516fff;let _0x14b2dc=new Map(),_0x358882=[],_0x15105f=_0x2cb88d=>{const _0x401895=_0x41c4;_0x14b2dc[_0x401895(0xf7)](_0x2cb88d,0x1),_0x358882[_0x401895(0xa1)](_0x2cb88d);for(let _0x299f15 of _0x436be4[_0x401895(0x80)](_0x2cb88d)??[]){if(_0x14b2dc['get'](_0x299f15)===0x1)return[..._0x358882['slice'](_0x358882[_0x401895(0xd0)](_0x299f15)),_0x299f15];if(!_0x14b2dc[_0x401895(0xaa)](_0x299f15)){let _0x26f58e=_0x15105f(_0x299f15);if(_0x26f58e)return _0x26f58e;}}return _0x358882['pop'](),_0x14b2dc[_0x401895(0xf7)](_0x2cb88d,0x2),null;};for(let _0x559f0a of[..._0x436be4[_0x39e143(0x7e)]()][_0x39e143(0x107)]())if(!_0x14b2dc[_0x39e143(0xaa)](_0x559f0a)){let _0x37e83b=_0x15105f(_0x559f0a);if(_0x37e83b)return _0x37e83b;}return null;}function Ee(_0x32e178){const _0x3d30a5=_0x516fff;let _0x26696b=new Map(_0x32e178['map'](_0x347902=>[_0x347902['id'],_0x347902])),_0x496c02=new Map(_0x32e178[_0x3d30a5(0xbc)](_0x3ce965=>[_0x3ce965['id'],new Set(Re(_0x3ce965,_0x26696b))])),_0x42984f=[];for(;_0x496c02[_0x3d30a5(0x120)]>0x0;){let _0xcab09e=[..._0x496c02][_0x3d30a5(0xad)](([,_0x508b10])=>[..._0x508b10]['every'](_0x3fc5c1=>!_0x496c02[_0x3d30a5(0xaa)](_0x3fc5c1)))['map'](([_0x250115])=>_0x250115)['sort'](),_0x59d369=_0xcab09e[_0x3d30a5(0x190)]>0x0?_0xcab09e:[..._0x496c02['keys']()][_0x3d30a5(0x107)]();for(let _0x266734 of _0x59d369)_0x42984f[_0x3d30a5(0xa1)](_0x266734),_0x496c02[_0x3d30a5(0x180)](_0x266734);}return _0x42984f;}import{readFileSync as _0x522565}from'node:fs';import _0x256c66 from'typescript-6';var j=(_0x22060f,_0x57c9e9)=>(_0x256c66[_0x516fff(0x11c)](_0x22060f)?_0x256c66['getModifiers'](_0x22060f):void 0x0)?.[_0x516fff(0x15c)](_0x3d6cbb=>_0x3d6cbb['kind']===_0x57c9e9)??!0x1,bt=_0x1a9acd=>{const _0x38a19b=_0x516fff;if(!_0x1a9acd)return!0x1;let _0x39edc2=_0x1a9acd;for(;_0x256c66['isParenthesizedExpression'](_0x39edc2)||_0x256c66['isAsExpression'](_0x39edc2)||_0x256c66['isSatisfiesExpression'](_0x39edc2);)_0x39edc2=_0x39edc2[_0x38a19b(0xb0)];return _0x256c66['isArrowFunction'](_0x39edc2)||_0x256c66[_0x38a19b(0x9a)](_0x39edc2)||_0x256c66['isIdentifier'](_0x39edc2)||_0x256c66['isPropertyAccessExpression'](_0x39edc2)||_0x256c66[_0x38a19b(0xa9)](_0x39edc2);};function vt(_0x5b95b9){const _0x236602=_0x516fff;for(let _0x46ba71 of _0x5b95b9[_0x236602(0x186)])if(_0x256c66[_0x236602(0xd3)](_0x46ba71)&&j(_0x46ba71,_0x256c66[_0x236602(0xc9)]['ExportKeyword'])&&j(_0x46ba71,_0x256c66[_0x236602(0xc9)]['DefaultKeyword']))return _0x46ba71;let _0x41a0dd=_0x5b95b9[_0x236602(0x186)]['find'](_0x9b1ab2=>_0x256c66[_0x236602(0xab)](_0x9b1ab2)&&!_0x9b1ab2[_0x236602(0xbb)]&&_0x256c66[_0x236602(0xe1)](_0x9b1ab2[_0x236602(0xb0)]));if(!_0x41a0dd)return;let _0x19f7a3=_0x41a0dd[_0x236602(0xb0)]['text'];return _0x5b95b9[_0x236602(0x186)][_0x236602(0xe3)](_0x55d6fb=>_0x256c66['isClassDeclaration'](_0x55d6fb)&&_0x55d6fb['name']?.[_0x236602(0xc4)]===_0x19f7a3);}function Pe(_0x4a1e20,_0x408194,_0x21d379={'hooks':[_0x516fff(0x17b),_0x516fff(0xfb)],'timeoutsField':_0x516fff(0x122)}){const _0x5157d5=_0x516fff;let _0x4fea7e=_0x256c66['createSourceFile'](_0x4a1e20,_0x522565(_0x4a1e20,_0x5157d5(0x102)),_0x256c66[_0x5157d5(0x7f)][_0x5157d5(0x11d)],!0x0,_0x4a1e20[_0x5157d5(0x71)]('.tsx')?_0x256c66[_0x5157d5(0xc5)][_0x5157d5(0x8b)]:_0x256c66[_0x5157d5(0xc5)]['TS']),_0x3df121=[],_0x261735=_0x1b438f=>_0x4fea7e[_0x5157d5(0x10c)](_0x1b438f['getStart'](_0x4fea7e))[_0x5157d5(0x11e)]+0x1,_0x2c1789=vt(_0x4fea7e);if(!_0x2c1789)return{'members':[],'hooks':[],'issues':[{'file':_0x408194,'line':0x1,'message':_0x5157d5(0x74)}]};let _0x3e62a7=[],_0x3becae=[],_0x4e74ad=new Map();for(let _0x4060da of _0x2c1789[_0x5157d5(0x139)]){if(!_0x256c66[_0x5157d5(0x10b)](_0x4060da)||!j(_0x4060da,_0x256c66[_0x5157d5(0xc9)][_0x5157d5(0x15b)])||!_0x256c66['isIdentifier'](_0x4060da[_0x5157d5(0xcc)])||_0x4060da[_0x5157d5(0xcc)]['text']!==_0x21d379[_0x5157d5(0xcb)])continue;let _0x35213b=_0x4060da[_0x5157d5(0x127)];if(!_0x35213b||!_0x256c66[_0x5157d5(0x10f)](_0x35213b)){_0x3df121[_0x5157d5(0xa1)]({'file':_0x408194,'line':_0x261735(_0x4060da),'message':_0x5157d5(0x105)+_0x21d379['timeoutsField']+_0x5157d5(0x86)});continue;}for(let _0x127237 of _0x35213b[_0x5157d5(0x198)])_0x256c66['isPropertyAssignment'](_0x127237)&&(_0x256c66[_0x5157d5(0xe1)](_0x127237['name'])||_0x256c66[_0x5157d5(0xf8)](_0x127237[_0x5157d5(0xcc)]))&&_0x256c66['isNumericLiteral'](_0x127237[_0x5157d5(0x127)])?_0x4e74ad[_0x5157d5(0xf7)](_0x127237[_0x5157d5(0xcc)][_0x5157d5(0xc4)],Number(_0x127237[_0x5157d5(0x127)]['text'][_0x5157d5(0x87)](/_/g,''))):_0x3df121['push']({'file':_0x408194,'line':_0x261735(_0x127237),'message':_0x5157d5(0x105)+_0x21d379[_0x5157d5(0xcb)]+_0x5157d5(0x188)});}for(let _0x2a372a of _0x2c1789['members']){if(!(_0x256c66[_0x5157d5(0x10b)](_0x2a372a)||_0x256c66[_0x5157d5(0x96)](_0x2a372a))||!_0x2a372a[_0x5157d5(0xcc)]||_0x256c66['isPrivateIdentifier'](_0x2a372a[_0x5157d5(0xcc)])||j(_0x2a372a,_0x256c66[_0x5157d5(0xc9)][_0x5157d5(0x15b)])||j(_0x2a372a,_0x256c66[_0x5157d5(0xc9)][_0x5157d5(0x116)])||!(_0x256c66[_0x5157d5(0xe1)](_0x2a372a['name'])||_0x256c66['isStringLiteral'](_0x2a372a['name'])))continue;let _0x4a5f08=_0x2a372a[_0x5157d5(0xcc)][_0x5157d5(0xc4)];if(_0x21d379[_0x5157d5(0x94)][_0x5157d5(0xb4)](_0x4a5f08)){j(_0x2a372a,_0x256c66['SyntaxKind'][_0x5157d5(0x83)])&&_0x3df121[_0x5157d5(0xa1)]({'file':_0x408194,'line':_0x261735(_0x2a372a),'message':_0x4a5f08+_0x5157d5(0x1a7)}),_0x3becae[_0x5157d5(0xa1)](_0x4a5f08);continue;}if(_0x256c66[_0x5157d5(0x10b)](_0x2a372a)&&!bt(_0x2a372a['initializer']))continue;let _0x166888=_0x4e74ad[_0x5157d5(0x80)](_0x4a5f08);_0x3e62a7[_0x5157d5(0xa1)]({'name':_0x4a5f08,'visibility':j(_0x2a372a,_0x256c66['SyntaxKind']['ProtectedKeyword'])?_0x5157d5(0xde):'public',..._0x166888!==void 0x0?{'timeoutMs':_0x166888}:{}});}for(let _0x360ff1 of _0x4e74ad['keys']())_0x3e62a7['some'](_0x120fda=>_0x120fda['name']===_0x360ff1)||_0x3df121[_0x5157d5(0xa1)]({'file':_0x408194,'line':_0x261735(_0x2c1789),'message':_0x5157d5(0x105)+_0x21d379['timeoutsField']+_0x5157d5(0x183)+_0x360ff1+_0x5157d5(0xb5)});return{'members':_0x3e62a7,'hooks':_0x3becae,'issues':_0x3df121};}function Ot(_0x1008b3,_0xe5d773){const _0x44883f=_0x516fff;return(_0x1008b3[_0x44883f(0x19c)]?_0x1008b3['realms'][_0x44883f(0xbc)](_0x582853=>({'realm':_0x582853,'file':_0x582853+_0x44883f(0x6e)})):[{'realm':null,'file':_0x44883f(0x146)}])[_0x44883f(0xad)](_0x3efbd7=>_0xef8945(_0x15a101(_0xe5d773,_0x3efbd7[_0x44883f(0xe4)]))||_0xef8945(_0x15a101(_0xe5d773,_0x3efbd7['file']+'x')))[_0x44883f(0xbc)](_0x4fcbdc=>({'realm':_0x4fcbdc[_0x44883f(0x17f)],'file':_0xef8945(_0x15a101(_0xe5d773,_0x4fcbdc['file']))?_0x4fcbdc['file']:_0x4fcbdc[_0x44883f(0xe4)]+'x'}));}function _0x5a71(){const _0xa2bbb3=['yxjYyxKGB2yGC3rYAw5NCW','ywz0zxi','y29TCgLSzxjpChrPB25Z','AxnfEhrLCM5HBe1VzhvSzvjLzMvYzw5Jzq','Bw9KDwXLlwTPDdOGCMvHBg0GiG','rMfSC2vlzxL3B3jK','Aw1WB3j0q2XHDxnL','iIbPCYaID3jPDguIigfUzcbUzwvKCYbGAw5OzxjPDga','Bw9KDwXLlwTPDdOGysaUDhmGCgX1z2LUig5LzwrZigb0C3HGigLUC3rHBgXLzcbPBIb0AguGChjVAMvJDa','lY8GrxzLCNKG','Aw5OzxjPDa','BwvTyMvYCW','j3mG','mJeZnZuWme9lz2nurW','CMvXDwLYzu1VzhvSzxm','AM9PBG','ignSyxnZlcbHCYb0ExbLCY4GsxqGAw1WB3j0CYb0AguGy2XHC3mGyNKGDMfSDwuSihnVigLTCg9YDa','lcb3AgLJAcb0AguGA2L0ihDYAxrLCYbPDhnLBgy','lYOQifDOyxqGzxzLCNKGBw9KDwXLig1HEsbJywXSlIaQlW','icH0AguGiG','iIb2Awv3','AxnoB1n1yNn0Axr1DgLVBLrLBxbSyxrLtgL0zxjHBa','AwDUB3jL','vhj1zuTLExDVCMq','Aw5KzxGUDhm','y2HLy2S','z2vUzxjHDgu','AxnmAxrLCMfSvhLWzu5Vzgu','DMvYC2LVBG','ih0GzNjVBsaIlI8','ChvIBgLJ','qxbPih0GzNjVBsaIlI9HCgK','BwfUAwzLC3qGBMvLzhmGyw4GygLKya','y29UzMLN','igzVCIb0AguGiG','zgvMAw5LtwfUAwzLC3q','y3jLyxrLu291CMnLrMLSzq','yNvZ','zNjVBq','yMfZzvvYBa','ntq2otyXnxziy09nuW','AxnjBxbVCNrfCxvHBhnezwnSyxjHDgLVBG','mtzOzvPYCKW','C3rYAw5N','Bw9KDwXLuMvMzxjLBMnL','u3rHDgLJs2v5D29Yza','C29Tzq','B3b0Aw9UywXnB2r1BgvZ','Aw1WB3j0ihSG','AxnbC0v4ChjLC3nPB24','mtyXodyXmufjuw1ZsG','x19MAxH0DxjLC19F','BwfUAwzLC3q','zgvMyxvSDa','oIbPBxbVCNqGysbZDxjMywnLigzPBguGD2L0AcbGAw1WB3j0ihr5CgvGig9UBhK7igL0igXVywrZihrOzsbYzwfSBsbJBgfZCW','igXPC3rZihrOzsbTB2r1BguGAxrZzwXM','ig1HEsbUB3qGAw1WB3j0ia','Bw9KDwXLu3bLy2LMAwvY','kd86lIOVkt8','igv4Axn0CYbHBMqGD2fZig5VDcbNzw5LCMf0zwq7ig1VDMuGAxqGyxnPzgu','zNjVBuvUDhjPzxm','igXPC3rZigeGBw9KDwXLihr3AwnL','DhnJB25MAwDqyxrOCW','lcbdBgfZCZOGtq','D3jPDgu','kgnSAwvUDcK','icyG','DhnJB25MAwDcyxnL','uhjVDgvJDgvKqxbP','y29Yzq','A2v5','uhjVDgvJDgvKqxbPid0G','Aw1WB3j0ihSGBwfRzvjLBw90zvDPDgGGFsbMCM9TicjaDNLYzwrVl3jWyY1IDxmIoW','lNrZEa','lIaQlW','Bw9Kzq','j3mGy2XPzw50oIbLDMvYEsbTB2r1BguGy2fSBhmG','B25tDgfYDa','igL0C2vSzIbTyxKGy2fSBcWGDgHYB3vNAcbPDhmGChjVDgvJDgvKignSAwvUDc4GkI8','q2XHC3m','ihvZzxmG','CMvHBg0','zgvSzxrL','z3jHCgG','lY8GDgHPCYbMAwXLig9UBhKGD2L0AcbGAw1WB3j0ihr5CgvGoIbHihzHBhvLigLTCg9YDcbWDwXSCYb0AguGCMvHBg0NCYbJB2rLigLUlG','ycbUyw1LCYaI','Aw5KzxG','iIbPCYbPBIbIB3rOihjLCxvPCMvnB2r1BgvZigfUzcbVChrPB25HBe1VzhvSzxm7igXPC3qGAxqGAw4GB25L','C3rHDgvTzw50CW','id0GEW','ycbLBNrYAwvZig11C3qGyMuGye5HBwu6idXUDw1Izxi+ya','iIbTDxn0igjLig9UzsbWyxrOihnLz21LBNqGB3rOzxiGDgHHBIaIChjVDgvJDgvKiG','lNrZ','BMfTzwrcAw5KAw5NCW','Cgf0Aa','mtm4otG1ogreBgrytG','DgvZDa','C2HHCMvKignVzguGBwf5ig5VDcbPBxbVCNqGDgHLia','BgvUz3rO','C2HHCMvK','lI8QkI8Q','y2XPzw50','lMDLBMvYyxrLzc9WCM90zwn0zwq','xcqM','C3bSAxq','lMDLBMvYyxrLzc8QkG','ChjVCgvYDgLLCW','zxHWB3j0igfIC3rYywn0ignSyxnZia','kcKPoW','icbYzwfKB25SEsa','CMvHBg1Z','BwfUAwzLC3qUDhm','Bg9JywXLq29TCgfYzq','ywXSB3C','oIbLEhrLBMqGDgHPCYbMCM9TihrOzsbHChaNCYb0C2nVBMzPzW','AxnqCM9Wzxj0EufZC2LNBM1LBNq','iIWGD2HPy2GGAxmGBM90igLUigbYzwfSBxnG','Aw1WB3j0ihr5CguGEYbszwDPC3rYEuvUDhj5ih0GzNjVBsaIqhz5CMvKBY9TB2r1BguTA2L0l3j1BNrPBwuIoW','qg1VzhvSzxm','Dhn4l2vZBs9HCgK','id0GE307','igLZigeGBgLMzwn5y2XLigHVB2S6igXLyxzLigL0ihDPDgHVDxqGyhb1yMXPy2a','w14VxsO','AxnjBxbVCNruExbLtM9Kzq','B2jQzwn0','Bw9KDwXLlwTPDdOGDhnJB25MAwDqyxrOCYaI','mtKYnJeXotDfENn0rKW','Bw9KDwXLignSyxnZigLUihn0yxj0ig9YzgvYlcb3AxrOigL0CYbTyw5PzMvZDcbMywn0CZOGD2HHDcb0AguGCNvUDgLTzsbOB3n0ihn0yxj0CY4','z2vUzxjHDgvK','mc4WlJa','Cgf0Ahm','ihWG','Axnoyw1Lzev4Cg9YDhm','CMvZB2X2zq','DMLZAwjPBgL0Eq','C3rHCNrZv2L0Aa','l3bYB3rLy3rLzgaGCMvZB2X2zxmGDg86ig9UBhKG','DMfSDwvZ','zxHWB3j0ignVBNn0ig1VzhvSzxm6ifjLz2LZDhj5rw50CNLBxsa9ifS','Bw9KDwXLlwTPDc5QC29U','l3bYB3rLy3rLza','AxnZDwvZ','DhnJB25MAwC','sw1WB3j0s2v5D29Yza','AxnbCNjHEq','ignVzguGBwf5ig5VDcbPBxbVCNqGDgHLia','CMvMDxnL','l2LUzgv4lNrZ','j3mGCgf0AhmGCgX1CYb0AguGBw9KDwXLigfSAwfZzxm','C2XPy2u','zw5KC1DPDgG','zgLY','Bw9KDwXLCW','BxvZDcbGzxHWB3j0igrLzMf1BhrGigeGy2XHC3m6ihrOzsbTB2r1BguNCYbTzw1IzxjZigfYzsbPDhmGBwv0Ag9KCYbHBMqGzNvUy3rPB24GChjVCgvYDgLLCW','A2LUza','ChvIBgLJugf0Ahm','lMPZ','C3vYzMfJzs4','igfZig90AgvYig1VzhvSzxmGC2vLigL0oIbPDhmGChvIBgLJig1LBwjLCNm','zxHWB3j0ihr5CguGEYa','Aw1WB3j0ihr5CguGEYa','zxH0CMe','lI4V','A2v5CW','u2nYAxb0vgfYz2v0','z2v0','u3vYzMfJzq','zw50CMLLCW','uhvIBgLJs2v5D29Yza','AxngAwXL','lMDLBMvYyxrLzc9PBMrLEa','ycbTDxn0igjLigfUig9IAMvJDcbSAxrLCMfSig9Mig51BwjLCNm','CMvWBgfJzq','ndj2B2D2z2e','lIbetYbot1qGrurjvc4','y2XPzw50lNbYB3rLy3rLza','vfny','id0GCMvTB3rLpa','C3vMzML4','ihjLywnOzxmGAw50BYa','AxntyxrPC2zPzxnfEhbYzxnZAw9U','ktOGC2HHCMvKlYbYDw5ZigLUigv2zxj5ihjLywXT','BgL0zxjHBa','DhnJB25MAwCUANnVBG','C3rHCNrpCMrLCG','Ag9VA3m','C3rYAw5NAwz5','AxnnzxrOB2rezwnSyxjHDgLVBG','igzYB20G','CMvXDwLYzq','lY8Gqxv0BY1Nzw5LCMf0zwqGyNKGqhz5CMvKBY9TB2r1BguTA2L0lIbetYbot1qGrurjvc4','AxngDw5JDgLVBKv4ChjLC3nPB24','AxnqyxjLBNrOzxnPEMvKrxHWCMvZC2LVBG','ywrK','mtiWota2n3jmuwjwtW','Dw5RBM93BIbTyw5PzMvZDcbMAwvSzcaI','Bw9KDwXLlwTPDdOGzxHWB3j0ici','lM10CW','ChvZAa','y29UC3qGCMvTB3rLid0GBwfRzvjLBw90zvDPDgGOkcKGpt4G','Bw9KDwXLigLKici','j3mGzM9SzgvYoIbPBxbVCNqGAxqGyxmG','lY8Gv2HHDcbG','igzVCIbHignVBNn1BwvYihrOyxqGC2vLCYa','y2HLy2TfEgnSDwrL','C3LZ','AxndywXSrxHWCMvZC2LVBG','AgfZ','AxnfEhbVCNrbC3nPz25Tzw50','iIbPCYbHBhjLywr5ihvZzwqGyNKG','zMLSDgvY','ycbYzxnVBhzLCYb0BW','zMLSzxm','zxHWCMvZC2LVBG','CMvNAxn0CNKUDhm','zxHWB3j0CW','CMvNAxn0CNKU','Aw5JBhvKzxm','iIWGD2HPy2GGAxmGBM90igfUigv4Cg9ZzwqGBwvTyMvY','DgHLig1VzhvSzsbYB290igrVzxmGBM90igv4Axn0','CMvHzezPBgu','CgX1z2LUCW','CMvXDwLYzxm','lMDLBMvYyxrLza','AxnfEhbVCNrfCxvHBhm','BwfW','iIbPCYbHignVCMuGBw9KDwXLoYbJB3jLig1VzhvSzxmGyxjLigf2ywLSywjSzsb0BYbLDMvYEsbTB2r1BguSigrVig5VDcbSAxn0ihrOzw0','lcbIEsbYzwfSBq','z2v0u3rHCNq','iIbTDxn0ig5HBwuGysb2ywX1zsaOyw4GAwrLBNrPzMLLCIK','AxnuExbLt25SEq','zxHWB3j0ihSG','iIbUyw1LCYbYzwfSBsaI','Dgv4Da','u2nYAxb0s2LUza','zM9YrwfJAenOAwXK','id0GDgHPC1S','qhz5CMvKBY9TB2r1BguTA2L0','u3LUDgf4s2LUza','oIb0AgvYzsbPCYbUBYbTB2r1BguGiG','DgLTzw91DhngAwvSza','BMfTzq','zxHWB3j0ihr5CguG','nZy4ntm2ChjuDgHw','Bw9KDwXLlwTPDdOGDgHLihrZy29UzMLNj3mGyhbHDgHZycbVyMPLy3qGAxmGBMv2zxiGy2XVC2vK','Aw5KzxHpzG','CM9VDa','yxjYyxK','AxndBgfZC0rLy2XHCMf0Aw9U','DgfYz2v0CW','y29YzsbTB2r1BguGiG','Axnoyw1LzeLTCg9YDhm','BM9Kzv9TB2r1BgvZ','Bw9KDwXLlwTPDc5JB25MAwCUANnVBG','ig11C3qGzgvMyxvSDc1LEhbVCNqGysbWBhvNAw4Gkg9YigeGzNvUy3rPB24GB2yGDgHLignVBMzPzYDZigrPCMvJDg9YEsbYzxr1CM5PBMCGB25Lkq','y3DK','iNbHDgHZiG','kd86lY4Qkt8','j3mGy2XPzw50ihrVigL0C2vSzJOGAxrZihb1yMXPyYbHBMqGChjVDgvJDgvKig1LBwjLCNmU','ChjVDgvJDgvK','iIbTDxn0igjLigfUigLKzw50AwzPzxiGkgXLDhrLCNmSigrPz2L0CYWGxYbVCIaKoYbUB3qGC3rHCNrPBMCGD2L0AcbHigrPz2L0kq','AhjLzG','AxnjzgvUDgLMAwvY','zxHJBhvKzq','zMLUza','zMLSzq','uhjVDgvJDgvKih0GzNjVBsaIlI9JBgLLBNqUChjVDgvJDgvK','CgfYC2u','oIbHig1VzhvSzsDZihbYB3rLy3rLzcbJBgLLBNqGAxmGAxrZig93BJSG','igfZigL0ihnLzxmGAxrZzwXMoIbWDwjSAwmGyw5KihbYB3rLy3rLzcbTzw1IzxjZlIaQlW','ywXPyxm','ywXS','zxHWB3j0q2XHDxnL','CNbJ','yxjNDw1LBNrZ','B3b0Aw9UywW','y2fSBfvW','iIb0BYbYzxf1AxjLtw9KDwXLCYbVCIbVChrPB25HBe1VzhvSzxm','igL0C2vSzIbTyxKGAw1WB3j0igL0lG','BwfUAwzLC3qGzMLLBgqGiG','Bw9KDwXLlwTPDdOGyhjVB3rGigLZihjLCxvPCMvK','BwvZC2fNzq','DgLTzw91De1Z','BwfUAwzLC3qUDhmGBxvZDcbGzxHWB3j0igrLzMf1BhrGigfUig9IAMvJDcbSAxrLCMfSicHVChrPB25HBgX5ihrOCM91z2GGzgvMAw5LtwfUAwzLC3qP','C2v0','AxntDhjPBMDmAxrLCMfS','iIbTDxn0igjLigXVD2vYy2fZzsbSzxr0zxjZigfUzcbKAwDPDhmSihn0yxj0Aw5NihDPDgGGysbSzxr0zxi','FsWGEW','B25tDg9W','zgvJBgfYzwq','iIb2Awv3kq','ih0GzNjVBsaIlI9JBgLLBNq','ihrOCM91z2GGAxqU','lYOQia','igLZig5VDcb2ywXPzcbku09ooIa','DxrMoa','zMXHDe1HCa','DMLLD3m','yhn0yxrPyYa','BwfUAwzLC3rgAwvSzhm','C29YDa','iIbTDxn0igjLigeGBgL0zxjHBca','AxnfEhbVCNrezwnSyxjHDgLVBG','Aw5JBhvKzq','AxnqCM9Wzxj0EurLy2XHCMf0Aw9U','z2v0tgLUzufUzenOyxjHy3rLCK9Mug9ZAxrPB24','qxbPid0G','yxjNDw1LBNq','AxnpyMPLy3rmAxrLCMfSrxHWCMvZC2LVBG','Bw9KDwXLlwTPDdOGBM8Gy29UzMLNigf0ia','CMvHzenVBMzPz0zPBgu','Dg9vChbLCKnHC2u','AwrLBNrPzMLLCG','zNvUy3rPB24','x19WCM90zwn0zwrF','uhjPDMf0zuTLExDVCMq','C3vYzMfJzs50CW','j3mGChjVz3jHBs4GvgHLigfSAwfZihjLC29SDMvZig9UBhKGDgHLig1VzhvSzxmGAxqGzgvJBgfYzxmUierpie5pvcbfreLulG','iIbTyxKGBM90igrLCgvUzcbVBIbUB24Ty29YzsbTB2r1BguGiG','uhjVDgvJDgvK','uhvIBgLJ','y2fUsgf2zu1VzgLMAwvYCW','rvmYmdiY','BgLUzq','lYOQ','C2L6zq','AxnVBgf0Aw9U','DgLTzw91Dhm','zwXLBwvUDhm','iIbUyw1LCYbUBYbLEgLZDgLUzYbTB2r1Bgu','ih0GzNjVBsa','Bw9KDwXLlwTPDdOGDMLLDYaI','Aw5PDgLHBgL6zxi','DMLLDW','Bw9KDwXLlwTPDdOG','zgvWzw5Kzw5JEsbJEwnSztOG','oIbUB3qGB25Lig9Mia','lMPZB24','ihjLywXTicG'];_0x5a71=function(){return _0xa2bbb3;};return _0x5a71();}function ae(_0x3dd841){const _0x492c10=_0x516fff;let _0x1eb23d=_0x195db3=>$(_0x196466(_0x3dd841[_0x492c10(0xda)],_0x195db3)),{found:_0x35eba1,issues:_0x23c03a}=Oe(_0x3dd841),_0xcd5dad=ke(_0x35eba1,_0x3f0e0b=>_0x1eb23d(_0x15a101(_0x3f0e0b[_0x492c10(0x72)],_0x492c10(0x19d))));_0x23c03a[_0x492c10(0xa1)](...Ce(_0xcd5dad));let _0x341075=Ee(_0xcd5dad),_0x3e95f9=[];for(let _0x41d35c of _0x35eba1){if(!_0x41d35c[_0x492c10(0x162)])continue;let _0x4d27c6=_0x41d35c[_0x492c10(0x162)]['id'],_0x4e81a5=Ot(_0x3dd841,_0x41d35c[_0x492c10(0x72)])[_0x492c10(0xbc)](({realm:_0x56b1a9,file:_0x50b14c})=>{const _0x5904a1=_0x492c10;let _0x4cd752=Pe(_0x15a101(_0x41d35c['dir'],_0x50b14c),_0x1eb23d(_0x15a101(_0x41d35c[_0x5904a1(0x72)],_0x50b14c)),{'hooks':_0x3dd841[_0x5904a1(0x94)],'timeoutsField':_0x3dd841[_0x5904a1(0xcb)]});_0x23c03a[_0x5904a1(0xa1)](..._0x4cd752[_0x5904a1(0x1bb)]);let _0x215245=_0x56b1a9?be(_0x56b1a9):null;return{'realm':_0x56b1a9,'key':_0x215245,'file':_0x50b14c,'hooks':_0x4cd752['hooks'],'members':_0x4cd752['members'][_0x5904a1(0xbc)](_0x83700b=>({..._0x83700b,'event':_0x215245?_0x4d27c6+':'+_0x215245+':'+_0x83700b[_0x5904a1(0xcc)]:_0x4d27c6+':'+_0x83700b['name']}))};});_0x3e95f9['push']({'id':_0x4d27c6,'version':_0x41d35c[_0x492c10(0x162)]['version']??_0x492c10(0x1af),'core':_0x41d35c[_0x492c10(0x162)][_0x492c10(0x173)]===!0x0,'path':_0x41d35c[_0x492c10(0x18c)],'requires':[..._0x41d35c[_0x492c10(0x162)][_0x492c10(0x13c)]??[]],'optional':[..._0x41d35c['manifest'][_0x492c10(0x15d)]??[]],'realms':_0x4e81a5,'extra':_0x41d35c[_0x492c10(0x7c)],'startOrder':_0x341075[_0x492c10(0xd0)](_0x4d27c6)+0x1});}let _0x202362=_0x3e95f9[_0x492c10(0xad)]((_0x50696a,_0xa4b7db)=>_0x3e95f9['findIndex'](_0x1acc9a=>_0x1acc9a['id']===_0x50696a['id'])===_0xa4b7db);return _0x202362['sort']((_0x9e72d5,_0x3fd1e1)=>_0x9e72d5[_0x492c10(0x93)]-_0x3fd1e1[_0x492c10(0x93)]),{'modules':_0x202362,'issues':le(_0x23c03a)};}var le=_0x792a9c=>[..._0x792a9c]['sort']((_0x32eaf6,_0x2c8485)=>_0x32eaf6['file'][_0x516fff(0x19e)](_0x2c8485[_0x516fff(0xe4)])||_0x32eaf6['line']-_0x2c8485[_0x516fff(0x11e)]||_0x32eaf6['message']['localeCompare'](_0x2c8485['message'])),kt=_0x364ac3=>_0x364ac3;function Rt(_0x4e7dd8,_0xe8319={}){const _0xde710c=_0x516fff;let _0x184db0=ae(_0x4e7dd8),_0x527197=le([..._0x184db0[_0xde710c(0x1bb)],...Y(_0x184db0,_0x4e7dd8)]),_0x20b8f7=_0xe8319[_0xde710c(0x148)]!==!0x1&&_0x184db0['issues'][_0xde710c(0x190)]===0x0?ie(_0x184db0,_0x4e7dd8,{'check':_0xe8319[_0xde710c(0x147)],'plugins':_0xe8319[_0xde710c(0xb8)]}):null;return{'graph':_0x184db0,'issues':_0x527197,'generated':_0x20b8f7};}async function Et(_0x297a5f){const _0x112826=_0x516fff;if(_0x297a5f[_0x112826(0xb8)]['some'](_0x4ceac0=>/\.[cm]?tsx?$/[_0x112826(0x18e)](_0x4ceac0))){let _0x22d435=_0x5cec7b(_0x22b16d(_0x297a5f[_0x112826(0xda)],'package.json')),_0x2fb125;try{_0x2fb125=_0x22d435[_0x112826(0x1b3)](_0x112826(0x1a5));}catch{throw new Error(_0x112826(0x136));}let {register:_0x2e1609}=await import(_0x3643df(_0x2fb125)[_0x112826(0xe0)]);_0x2e1609();}let _0xd93023=[];for(let _0x10aa7f of _0x297a5f[_0x112826(0xb8)]){let _0x1bc6e5=(await import(_0x3643df(_0x10aa7f)[_0x112826(0xe0)]))[_0x112826(0x163)];_0x1bc6e5&&typeof _0x1bc6e5==_0x112826(0x1aa)&&_0x112826(0x163)in _0x1bc6e5&&(_0x1bc6e5=_0x1bc6e5['default']);let _0xbb608b=typeof _0x1bc6e5==_0x112826(0x114)?_0x1bc6e5(_0x297a5f[_0x112826(0xda)]):_0x1bc6e5;if(!_0xbb608b||typeof _0xbb608b[_0x112826(0xaf)]!=_0x112826(0x114))throw new Error(_0x112826(0x129)+_0x10aa7f+_0x112826(0xd9));_0xd93023[_0x112826(0xa1)](_0xbb608b);}return _0xd93023;}async function hs(_0x592189,_0x40a33a={}){const _0x558d59=_0x516fff;let _0x300d39=_0x40a33a[_0x558d59(0xb8)]??await Et(_0x592189),_0x2a5b3e=Rt(_0x592189,{..._0x40a33a,'plugins':_0x300d39});if(_0x2a5b3e[_0x558d59(0x1ae)]&&!_0x40a33a['check']){let _0x53a1cc={'graph':_0x2a5b3e[_0x558d59(0x181)],'config':_0x592189,'header':k,'dirOf':_0x1c2bd5=>_0x22b16d(_0x592189[_0x558d59(0xd1)],_0x1c2bd5[_0x558d59(0x18c)])};for(let _0x2f4c0c of _0x300d39){let _0x4687f9=await _0x2f4c0c[_0x558d59(0x12f)]?.(_0x53a1cc);_0x4687f9&&_0x2a5b3e[_0x558d59(0x1ae)]['written'][_0x558d59(0xa1)](..._0x4687f9);}}return _0x2a5b3e;}export{ct as CONFIG_FILE,k as HEADER,_ as aliasTable,Y as checkBoundaries,ut as defineConfig,kt as defineManifest,ie as generate,ce as importsOf,ft as loadConfig,Et as loadPlugins,he as render,Se as resolveConfig,Rt as run,hs as runWithPlugins,ae as scan,xe as splicePaths};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Issue, Member } from "./types";
|
|
2
|
+
export interface ReadClass {
|
|
3
|
+
members: Omit<Member, "event">[];
|
|
4
|
+
hooks: string[];
|
|
5
|
+
issues: Issue[];
|
|
6
|
+
}
|
|
7
|
+
export declare function readClass(file: string, displayFile: string, opts?: {
|
|
8
|
+
hooks: readonly string[];
|
|
9
|
+
timeoutsField: string;
|
|
10
|
+
}): ReadClass;
|
package/dist/paths.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const toPosix: (p: string) => string;
|
|
2
|
+
/** `to` relative to `from`, posix, `./`-prefixed: a path an import can name. */
|
|
3
|
+
export declare function importPath(fromDir: string, to: string): string;
|
|
4
|
+
/** Does a posix path match a glob? Supports `**` (any depth, including none), `*` (one segment) and literals. */
|
|
5
|
+
export declare function matchGlob(glob: string, path: string): boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Manifest, ManifestValue, Member } from "./types";
|
|
2
|
+
export type { Manifest, ManifestValue, Member };
|
|
3
|
+
/** Type a manifest; an identity function. The kit reads the literal from the file, never runs it. */
|
|
4
|
+
export declare const defineManifest: <const M extends Manifest>(manifest: M) => M;
|
|
5
|
+
/** What `onStart` may return: run when the module stops, before `onStop`. */
|
|
6
|
+
export type Cleanup = () => void | Promise<void>;
|
|
7
|
+
/** Optional base class: the hooks the host calls, typed. Any class works without it. */
|
|
8
|
+
export declare abstract class ModuleBase {
|
|
9
|
+
onStart?(): void | Cleanup | Promise<void | Cleanup>;
|
|
10
|
+
onStop?(): void | Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
/** One module class in a generated registry. */
|
|
13
|
+
export interface RegistryEntry {
|
|
14
|
+
id: string;
|
|
15
|
+
version: string;
|
|
16
|
+
core: boolean;
|
|
17
|
+
requires: string[];
|
|
18
|
+
optional: string[];
|
|
19
|
+
startOrder: number;
|
|
20
|
+
realm: string | null;
|
|
21
|
+
members: Member[];
|
|
22
|
+
hooks: string[];
|
|
23
|
+
/** The config's extra manifest fields, as the manifest set them. */
|
|
24
|
+
extra: Record<string, ManifestValue>;
|
|
25
|
+
Class: new () => object;
|
|
26
|
+
}
|
|
27
|
+
export { bindModule, type HostBus, type HostLogger } from "./bind";
|
|
28
|
+
export { createSupervisor, memoryHistory, summarize, type HistoryEntry, type HistoryFact, type HistoryMeta, type HistoryStore, type HistorySummary, type Step, type StopReason, type SupervisedModule, type SupervisedState, type SupervisedStatus, type Supervisor, type SupervisorOptions, } from "./supervisor";
|
|
29
|
+
export { createFollower, type Follower, type FollowerOptions } from "./follower";
|
package/dist/runtime.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x146762=_0x10c7;function _0x595f(){const _0x734ea8=['C3rHCNrPBMC','lNjLC3rHCNq6ici','BgfZDa','mtu2nde2CLvpCeL5','CMvZDgfYDa','q2XHC3m','iIbPCYbHignVCMuGBw9KDwXLoYbJB3jLig1VzhvSzxmGAgf2zsbUBYbSAwzLy3LJBguGDg8Gy2HHBMDL','y2XLyxi','mtHzve9hyMm','CMv0CNLxywL0C01Z','igHHCYbUBYbTzw1IzxiGzM9Yia','Aw5ZDgfUy2u','Bw9KDwXLCW','BwvTyMvYCW','BgfZDevYCM9Y','igLZig5VDcbYDw5UAw5N','C3vWzxj2AxnVCG','mtC4mtqWowrqz0zHrG','y2XLyw51Ca','zgvSzxrL','mZeZmZC0mgfgDfnAAW','CMvZB2X2zq','B2zM','zgLZywjSzq','Ag9VA1rPBwvVDxrnCW','ihjLC3rHCNqGzgvMzxjYzwqGlsbTB2r1BguGAxmGyNvZEq','zxHPC3rZ','CNvUBMLUzW','BMfTzq','ig1Z','zNjVBuvUDhjPzxm','C29YDa','C3rVCa','mtGYody3mLn6wuHQuG','ChvZAa','mtqYA3jQuNv2','ihn0yxj0Aw5NihDOAwXLihjLCxvPCMvKia','zMfJDa','DgHLBG','Ag9VA3m','Aw5ZDgfSBa','y2f0y2G','BM93','AM9PBG','z2v0','C3rHCNq','ywrK','B25fCNjVCG','B25eAxnHyMXLza','AwrZ','zgLZywjSzwq','yNvZEq','oIaI','C3rVChbLza','C2H1DgrVD24','Bg9N','mtjizNbLq1K','yM9VDa','BgvUz3rO','Aw5MBW','mtyYndmYoxvbAvbVtG','Aw5ZDgfSBgvK','igrPzcbUB3qGCMvZDgfYDa','Dw5IAw5K','DxbNCMfKzwq','zMLSDgvY','yxbWzw5K','zxzLBNq','iIbPCYbUB3qGysbTB2r1Bgu','DMfSDwvZ','zMfPBgvK','y2fSBcb0BYa','B3jWAgfUzwq','AgLZDg9YEq','BwvZC2fNzq','AgfZ','C3vTBwfYEq','ChjLCgfYzq','mtGZndq1ntbRwwXkt1u','C2v0','AgLZDg9YEsbHChbLBMqGCMvMDxnLzdOG','zNvUy3rPB24','D2fYBG','ihrVB2SGBg9Uz2vYihrOyw4G','zw5HyMXL','ndq3nNLTzMzywq','A2v5CW','y2fSBa','DhLWzq','Bg9JywXLq29TCgfYzq','C3rHCNrLza','B25tDgfYDa','zxjYB3i','CMvXDwvZDgvK','iIbPCYbKAxnHyMXLzdSGzw5HyMXLigL0igzPCNn0','CMvXDwLYzxm','B25tDg9W','C3rHCNrpCMrLCG','DMvYC2LVBG','y29Yzq','oIbPDhmGChjLDMLVDxmGC3rHCNqGAxmGC3rPBgWGCNvUBMLUzYbWyxn0igL0CYbIDwrNzxq','BwfW'];_0x595f=function(){return _0x734ea8;};return _0x595f();}(function(_0x2634be,_0x5ac533){const _0xfb94f0=_0x10c7,_0x115b56=_0x2634be();while(!![]){try{const _0x193d6b=-parseInt(_0xfb94f0(0x1e7))/0x1*(parseInt(_0xfb94f0(0x21b))/0x2)+-parseInt(_0xfb94f0(0x234))/0x3+parseInt(_0xfb94f0(0x1fb))/0x4+-parseInt(_0xfb94f0(0x20c))/0x5+-parseInt(_0xfb94f0(0x230))/0x6*(parseInt(_0xfb94f0(0x209))/0x7)+-parseInt(_0xfb94f0(0x219))/0x8*(-parseInt(_0xfb94f0(0x200))/0x9)+parseInt(_0xfb94f0(0x246))/0xa;if(_0x193d6b===_0x5ac533)break;else _0x115b56['push'](_0x115b56['shift']());}catch(_0x1efa8d){_0x115b56['push'](_0x115b56['shift']());}}}(_0x595f,0x51f96));function V(_0x1ea365,_0x532f24,_0x14f8db){const _0x3b334d=_0x10c7;if(_0x532f24['members']['length']===0x0)return null;let _0x19d4a6=new Map(_0x532f24[_0x3b334d(0x205)][_0x3b334d(0x1f7)](_0x43cc96=>[_0x43cc96['event'],_0x43cc96[_0x3b334d(0x214)]])),_0x314c2c=_0x14f8db,_0x31cd2d=_0x1ea365['on'](_0x532f24['id'],_0x32810a=>{const _0x3dc3f0=_0x3b334d;let _0x314460=_0x19d4a6[_0x3dc3f0(0x224)](_0x32810a[_0x3dc3f0(0x1ea)]),_0x4d92f3=_0x314460===void 0x0?void 0x0:_0x314c2c[_0x314460];if(typeof _0x4d92f3!='function')throw new Error(_0x532f24['id']+_0x3dc3f0(0x202)+_0x32810a[_0x3dc3f0(0x1ea)]);let {type:_0x43129f,..._0x38bcf4}=_0x32810a;return _0x4d92f3[_0x3dc3f0(0x1e9)](_0x14f8db,_0x38bcf4);},_0x532f24['members'][_0x3b334d(0x1f7)](_0x4f43ad=>_0x4f43ad['event']));return{'handlerId':_0x31cd2d,'unbind':()=>_0x1ea365['off'](_0x532f24['id'],_0x31cd2d)};}function Q(){const _0x46a192=_0x10c7;let _0x14ac32=[];return{'entries':_0x14ac32,'append':(_0x1ebfcf,_0x6d7f97,_0x458f02)=>{const _0x12f739=_0x10c7;_0x14ac32[_0x12f739(0x21a)]({'id':_0x1ebfcf,'fact':_0x6d7f97,..._0x458f02});},'summary':_0x5abf67=>U(_0x14ac32['filter'](_0x2d9ba6=>_0x2d9ba6['id']===_0x5abf67)['map'](_0x5a62f1=>_0x5a62f1[_0x46a192(0x21d)])),'ids':()=>[...new Set(_0x14ac32[_0x46a192(0x1f7)](_0x4cf023=>_0x4cf023['id']))]};}function U(_0x59845b){const _0x2fb010=_0x10c7;let _0x546dd5=_0x59845b[_0x2fb010(0x239)](_0x1ffdf8=>_0x1ffdf8['type']!==_0x2fb010(0x23e)),_0xde9687=_0x546dd5[_0x546dd5[_0x2fb010(0x232)]-0x1],_0x40650a=null;for(let _0x464339 of _0x59845b)_0x464339[_0x2fb010(0x1ea)]===_0x2fb010(0x235)||_0x464339['type']===_0x2fb010(0x1ec)?_0x40650a=_0x464339[_0x2fb010(0x1f4)]:_0x464339[_0x2fb010(0x1ea)]===_0x2fb010(0x238)&&(_0x40650a=_0x464339['to']);return{'exists':_0x59845b[_0x2fb010(0x232)]>0x0,'last':_0xde9687?.[_0x2fb010(0x1ea)]??null,'version':_0x40650a};}var oe={'info':()=>{},'warn':()=>{},'error':()=>{}},x=_0x28b2ac=>_0x28b2ac instanceof Error?_0x28b2ac[_0x146762(0x242)]:String(_0x28b2ac);function O(_0x3aa8fb,_0x340b95,_0x2ccb28,_0x7694c2,_0x5b5a3b){return new Promise((_0x1a3f5b,_0x2faa13)=>{const _0x16a973=_0x10c7;let _0x48a7b7=!0x1,_0x53c827=Promise[_0x16a973(0x20d)]()['then'](_0x2ccb28),_0x36eb43=setTimeout(()=>{const _0x8836e2=_0x16a973;_0x48a7b7=!0x0,_0x5b5a3b?.(_0x53c827['then'](_0x585fe6=>_0x7694c2?.(_0x585fe6))['then'](()=>{},()=>{})),_0x2faa13(new Error(_0x3aa8fb+_0x8836e2(0x1e5)+_0x340b95+_0x8836e2(0x215)));},_0x340b95);_0x53c827[_0x16a973(0x21e)](_0x227c18=>{clearTimeout(_0x36eb43),_0x48a7b7||_0x1a3f5b(_0x227c18);},_0x3e598f=>{clearTimeout(_0x36eb43),_0x48a7b7||_0x2faa13(_0x3e598f);});});}var ie=_0x255055=>{const _0x221932=_0x146762;if(typeof _0x255055==_0x221932(0x1e3))try{let _0x5a3026=_0x255055();_0x5a3026 instanceof Promise&&_0x5a3026[_0x221932(0x221)](()=>{});}catch{}};function ae(_0x5b9698){const _0x1c647b=_0x146762;let _0x5063c6=_0x5b9698[_0x1c647b(0x214)]??_0x1c647b(0x208),_0x1c0c2e={'install':'onInstalled','start':_0x1c647b(0x1ed),'stop':_0x1c647b(0x1f2),'disable':_0x1c647b(0x228),..._0x5b9698[_0x1c647b(0x21f)]},_0x25a448=_0x5b9698[_0x1c647b(0x241)]??Q(),_0x91be00=_0x5b9698[_0x1c647b(0x210)]??0x7530,_0x3fb842=_0x5b9698['coreStartTimeoutMs']??0xa*0xea60,_0x3db95b=_0x5b9698[_0x1c647b(0x201)]??[0x3e8,0x1388],_0x4cbbc7=_0x5b9698[_0x1c647b(0x222)]??(()=>new Date()['toISOString']()),_0x32f8b6=_0x5b9698[_0x1c647b(0x22f)]??oe,{bus:_0xa56852}=_0x5b9698,_0x3a2c6c=[..._0x5b9698[_0x1c647b(0x204)]][_0x1c647b(0x217)]((_0x43510e,_0x15edfd)=>_0x43510e[_0x1c647b(0x1f3)]-_0x15edfd[_0x1c647b(0x1f3)]||_0x43510e['id'][_0x1c647b(0x1eb)](_0x15edfd['id'])),_0x2aad93=new Map(_0x3a2c6c[_0x1c647b(0x1f7)](_0x56fa44=>[_0x56fa44['id'],_0x56fa44])),_0xb76487=_0x3a2c6c[_0x1c647b(0x1f7)](_0x489951=>_0x489951['id']),_0x2136a8=new Map(),_0x333216=new Set(),_0x1cb546=()=>({'state':_0x1c647b(0x22d),'degraded':null,'busy':null,'lastError':null,'updatedAt':_0x4cbbc7()}),_0xad3afe=_0x2ace0f=>_0x2136a8[_0x1c647b(0x224)](_0x2ace0f)??_0x1cb546(),_0x3df167=(_0x392bc4,_0x530673)=>{_0x2136a8['set'](_0x392bc4,_0x530673);for(let _0x310ee of _0x333216)_0x310ee(_0x392bc4,_0x530673);},_0x3a7c7d=(_0x1eda3b,_0x13393c,_0x210fe2)=>{const _0x21fcd3=_0x1c647b;let _0x10c106=_0xad3afe(_0x1eda3b);_0x3df167(_0x1eda3b,{..._0x10c106,'state':_0x13393c,'degraded':null,'lastError':_0x210fe2===void 0x0?_0x10c106[_0x21fcd3(0x206)]:_0x210fe2,'updatedAt':_0x4cbbc7()});},_0x289b36=new Map(),_0x1d32a9=new Map(),_0x1f5376=new Map(),_0x3c4450=new Map(),_0x49bb99=new Map(),_0x167da7=new Map(),_0x1a7410=_0x4641ec=>({'at':_0x4cbbc7(),'via':_0x5063c6+'.'+_0x4641ec}),_0x5e5531=async(_0x121498,_0x447eea,_0x2991b1)=>{const _0x35d4ff=_0x1c647b;if(!_0x2aad93[_0x35d4ff(0x224)](_0x121498)?.[_0x35d4ff(0x1f5)])try{await _0x25a448[_0x35d4ff(0x23a)](_0x121498,_0x447eea,_0x1a7410(_0x2991b1));}catch(_0x357848){_0x32f8b6[_0x35d4ff(0x1ee)](_0x35d4ff(0x1e2)+_0x121498+'\x20'+_0x447eea[_0x35d4ff(0x1ea)],{'id':_0x121498,'error':x(_0x357848)});}},_0x10edc0=_0x526e33=>(_0x526e33['members']??[])[_0x1c647b(0x1f7)](_0x2c012a=>_0x2c012a[_0x1c647b(0x23b)]),_0x265910=_0x28d47c=>{const _0x3b2144=_0x1c647b;let _0x2e5a37=_0x1d32a9['get'](_0x28d47c);_0x2e5a37!==void 0x0&&_0xa56852?.[_0x3b2144(0x20e)](_0x28d47c,_0x2e5a37),_0x1d32a9[_0x3b2144(0x20b)](_0x28d47c);},_0x496273=_0x2d491f=>{const _0x22e93c=_0x1c647b;!_0xa56852||_0x10edc0(_0x2d491f)['length']===0x0||(_0x265910(_0x2d491f['id']),_0x1d32a9[_0x22e93c(0x1e1)](_0x2d491f['id'],_0xa56852['on'](_0x2d491f['id'],_0x3c9f2e=>{const _0x137b61=_0x22e93c;throw _0x32f8b6[_0x137b61(0x1e4)](_0x137b61(0x23f)+_0x2d491f['id']+'\x20while\x20it\x20is\x20not\x20running',{'id':_0x2d491f['id'],'event':_0x3c9f2e[_0x137b61(0x1ea)]}),new Error(_0x2d491f['id']+_0x137b61(0x207));},_0x10edc0(_0x2d491f))));};for(let _0x37745a of _0x3a2c6c)_0x496273(_0x37745a);let _0x14f6fb=!0x1,_0x243450=Promise['resolve'](),_0x4336f5=_0xcf1540=>{const _0x3205c8=_0x1c647b;let _0x2c6683=_0x243450[_0x3205c8(0x21e)](_0xcf1540);return _0x243450=_0x2c6683['then'](()=>{},()=>{}),_0x2c6683;},_0x13e690=_0x4ff531=>{const _0x3bf12d=_0x1c647b;let _0x159e08=_0x2aad93[_0x3bf12d(0x224)](_0x4ff531);if(!_0x159e08)throw new Error(_0x5063c6+_0x3bf12d(0x22c)+_0x4ff531+_0x3bf12d(0x23c));return _0x159e08;},_0x55320d=(_0x4a1620,_0x2d8c14)=>{const _0x388315=_0x1c647b;let _0x3be44c=_0x2aad93[_0x388315(0x224)](_0x4a1620);if(!_0x3be44c)throw new Error(_0x5063c6+'.'+_0x2d8c14+_0x388315(0x22c)+_0x4a1620+_0x388315(0x23c));if(_0x3be44c[_0x388315(0x1f5)])throw new Error(_0x5063c6+'.'+_0x2d8c14+':\x20\x22'+_0x4a1620+_0x388315(0x1fe));return _0x3be44c;},_0xd7fa05=_0x624cba=>{const _0x574674=_0x1c647b;let _0x350ee1=_0x49bb99[_0x574674(0x224)](_0x624cba);_0x350ee1!==void 0x0&&clearTimeout(_0x350ee1),_0x49bb99[_0x574674(0x20b)](_0x624cba);},_0x930f34=async _0x11b7dc=>{const _0x12b38e=_0x1c647b;if(_0x289b36[_0x12b38e(0x243)](_0x11b7dc['id']))return;if(_0x3c4450[_0x12b38e(0x243)](_0x11b7dc['id']))throw new Error(_0x11b7dc['id']+_0x12b38e(0x1f6));if(await _0x5b9698[_0x12b38e(0x245)]?.(_0x11b7dc['id']),!_0x11b7dc[_0x12b38e(0x1fd)]){_0x289b36['set'](_0x11b7dc['id'],{'instance':null,'unbind':null,'cleanup':null});return;}_0x265910(_0x11b7dc['id']);let _0x2fd441=new _0x11b7dc[(_0x12b38e(0x1fd))](),_0x4baca1=_0xa56852?V(_0xa56852,{'id':_0x11b7dc['id'],'members':[..._0x11b7dc[_0x12b38e(0x205)]??[]]},_0x2fd441)?.['unbind']??null:null,_0x247123={'instance':_0x2fd441,'unbind':_0x4baca1,'cleanup':null};_0x289b36[_0x12b38e(0x1e1)](_0x11b7dc['id'],_0x247123),_0x1f5376['delete'](_0x11b7dc['id']);try{let _0x1c318a=await O(_0x11b7dc['id']+'\x20'+_0x1c0c2e[_0x12b38e(0x225)],_0x11b7dc[_0x12b38e(0x1f5)]?_0x3fb842:_0x91be00,()=>_0x2fd441[_0x1c0c2e[_0x12b38e(0x225)]]?.[_0x12b38e(0x1e9)](_0x2fd441),ie,_0x2e2365=>{const _0x258b74=_0x12b38e;let _0x1e3198=_0x2e2365[_0x258b74(0x21e)](()=>{const _0x3114ea=_0x258b74;_0x3c4450[_0x3114ea(0x224)](_0x11b7dc['id'])===_0x1e3198&&_0x3c4450[_0x3114ea(0x20b)](_0x11b7dc['id']);});_0x3c4450[_0x258b74(0x1e1)](_0x11b7dc['id'],_0x1e3198);});_0x247123[_0x12b38e(0x20a)]=typeof _0x1c318a=='function'?_0x1c318a:null;}catch(_0x3a286d){throw _0x289b36[_0x12b38e(0x20b)](_0x11b7dc['id']),_0x4baca1?.(),_0x496273(_0x11b7dc),_0x3a286d;}},_0x4e1805=async _0x219299=>{const _0x23e8f1=_0x1c647b;let _0x29c1a2=_0x289b36[_0x23e8f1(0x224)](_0x219299['id']);if(!_0x29c1a2)return;_0x289b36[_0x23e8f1(0x20b)](_0x219299['id']),_0x29c1a2[_0x23e8f1(0x237)]?.(),_0x496273(_0x219299),_0x29c1a2[_0x23e8f1(0x203)]&&_0x1f5376[_0x23e8f1(0x1e1)](_0x219299['id'],_0x29c1a2['instance']);let _0x175bd5=null,_0x172ff5=async _0x1c7de2=>{try{await _0x1c7de2();}catch(_0x2193f6){_0x175bd5??=_0x2193f6;}};if(await _0x172ff5(()=>O(_0x219299['id']+'\x20cleanup',_0x91be00,()=>_0x29c1a2[_0x23e8f1(0x20a)]?.())),await _0x172ff5(()=>O(_0x219299['id']+'\x20'+_0x1c0c2e[_0x23e8f1(0x218)],_0x91be00,()=>_0x29c1a2['instance']?.[_0x1c0c2e[_0x23e8f1(0x218)]]?.[_0x23e8f1(0x1e9)](_0x29c1a2[_0x23e8f1(0x203)]))),_0x175bd5!==null)throw _0x175bd5;},_0x4fe1a5=async(_0x22c6ff,_0x3082ce,_0x5f1954)=>{const _0x266345=_0x1c647b;let _0xbd34b3=_0x13e690(_0x22c6ff),_0x467c04=_0xbd34b3[_0x266345(0x1f1)][_0x266345(0x239)](_0x241058=>_0x2aad93[_0x266345(0x243)](_0x241058)&&!_0x289b36[_0x266345(0x243)](_0x241058));_0x467c04[_0x266345(0x232)]>0x0&&_0x32f8b6['warn'](_0x22c6ff+_0x266345(0x21c)+_0x467c04[_0x266345(0x223)](',\x20')+_0x266345(0x207),{'id':_0x22c6ff,'down':_0x467c04}),_0x3a7c7d(_0x22c6ff,_0x266345(0x1f8));try{await _0x930f34(_0xbd34b3);}catch(_0x4d0d87){let _0x19601b=x(_0x4d0d87);throw await _0x5e5531(_0x22c6ff,{'type':_0x266345(0x23e),'step':_0x266345(0x225),'error':_0x19601b,'attempt':_0x3082ce},_0x5f1954),_0x3a7c7d(_0x22c6ff,_0x266345(0x23e),_0x19601b),_0xbd34b3[_0x266345(0x1f5)]||_0x3087be(_0x22c6ff,_0x3082ce,_0x5f1954),_0x4d0d87;}await _0x5e5531(_0x22c6ff,{'type':_0x266345(0x1ec),'version':_0xbd34b3[_0x266345(0x1f4)]},_0x5f1954),_0x3a7c7d(_0x22c6ff,_0x266345(0x213),null);},_0x3087be=(_0x2828ac,_0x453dc0,_0x518b2f)=>{let _0x58e223=_0x3db95b[_0x453dc0-0x1];if(_0x58e223===void 0x0)return;_0xd7fa05(_0x2828ac);let _0x1b4448=setTimeout(()=>{const _0x22ce88=_0x10c7;(_0x3c4450[_0x22ce88(0x224)](_0x2828ac)??Promise['resolve']())[_0x22ce88(0x21e)](()=>_0x4336f5(async()=>{const _0x5654a3=_0x22ce88;_0x14f6fb||_0x49bb99[_0x5654a3(0x224)](_0x2828ac)!==_0x1b4448||(_0x49bb99['delete'](_0x2828ac),!_0x289b36[_0x5654a3(0x243)](_0x2828ac)&&await _0x4fe1a5(_0x2828ac,_0x453dc0+0x1,_0x518b2f));}))['catch'](()=>{});},_0x58e223);_0x49bb99['set'](_0x2828ac,_0x1b4448);},_0x5e062f=async(_0x3a8887,_0x393157,_0x228871)=>{const _0x2f56c1=_0x1c647b;let _0x253324=_0x13e690(_0x3a8887);try{await _0x4e1805(_0x253324);}catch(_0x12f6bb){await _0x5e5531(_0x3a8887,{'type':_0x2f56c1(0x23e),'step':_0x2f56c1(0x218),'error':x(_0x12f6bb),'attempt':0x1},_0x228871);}await _0x5e5531(_0x3a8887,{'type':_0x2f56c1(0x22d),'reason':_0x393157},_0x228871),_0x3a7c7d(_0x3a8887,'stopped');},_0x2a9d02=async _0x3d35b9=>{const _0x52e878=_0x1c647b;if(_0x3d35b9[_0x52e878(0x1fd)])try{let _0x368d32=new _0x3d35b9['Class']();await O(_0x3d35b9['id']+'\x20'+_0x1c0c2e[_0x52e878(0x220)],_0x91be00,()=>_0x368d32[_0x1c0c2e[_0x52e878(0x220)]]?.[_0x52e878(0x1e9)](_0x368d32));}catch(_0x4940a6){await _0x5e5531(_0x3d35b9['id'],{'type':'failed','step':_0x52e878(0x220),'error':x(_0x4940a6),'attempt':0x1},_0x52e878(0x231));}},_0x5d8d1b=async(_0x456ef9,_0x17a58c)=>{const _0x4a6fc0=_0x1c647b;let _0x1bb0ba=_0x1f5376['get'](_0x456ef9);_0x1f5376[_0x4a6fc0(0x20b)](_0x456ef9);let _0x44aac5=_0x1bb0ba?.[_0x1c0c2e[_0x4a6fc0(0x20f)]];if(_0x44aac5)try{await O(_0x456ef9+'\x20'+_0x1c0c2e[_0x4a6fc0(0x20f)],_0x91be00,()=>_0x44aac5[_0x4a6fc0(0x1e9)](_0x1bb0ba));}catch(_0x2fc7ac){await _0x5e5531(_0x456ef9,{'type':'failed','step':'disable','error':x(_0x2fc7ac),'attempt':0x1},_0x17a58c);}},_0x138d8d=async(_0x2ec97b,_0x613100)=>{const _0x1d3f3d=_0x1c647b;if(!_0x289b36[_0x1d3f3d(0x243)](_0x2ec97b))return;let _0x461235=_0xad3afe(_0x2ec97b)[_0x1d3f3d(0x22b)];if(_0x461235!==null){_0x167da7[_0x1d3f3d(0x1e1)](_0x2ec97b,_0x613100),_0x32f8b6[_0x1d3f3d(0x233)](_0x2ec97b+_0x1d3f3d(0x211),{'id':_0x2ec97b,'busy':_0x461235,'reason':_0x613100});return;}_0xd7fa05(_0x2ec97b),await _0x5e062f(_0x2ec97b,_0x613100,_0x613100),await _0x4fe1a5(_0x2ec97b,0x1,_0x613100);},_0x38ff65=()=>{const _0x4fef02=_0x1c647b;for(let [_0xb8c397,_0x269738]of[..._0x167da7])_0xad3afe(_0xb8c397)[_0x4fef02(0x22b)]===null&&(_0x167da7[_0x4fef02(0x20b)](_0xb8c397),_0x4336f5(()=>_0x138d8d(_0xb8c397,_0x269738))[_0x4fef02(0x221)](_0x4d5d41=>_0x32f8b6[_0x4fef02(0x1ee)](_0xb8c397+_0x4fef02(0x236),{'id':_0xb8c397,'error':x(_0x4d5d41)})));},_0x3a68d9=()=>_0x3a2c6c[_0x1c647b(0x239)](_0x1f2240=>!_0x1f2240[_0x1c647b(0x1f5)]);return{'boot':()=>_0x4336f5(async()=>{const _0x2a67ca=_0x1c647b;for(let _0x517678 of[..._0x49bb99[_0x2a67ca(0x1e8)]()])_0xd7fa05(_0x517678);for(let _0x525dc6 of _0x3a2c6c)_0x525dc6[_0x2a67ca(0x1f5)]&&(await _0x930f34(_0x525dc6),_0x3a7c7d(_0x525dc6['id'],_0x2a67ca(0x213),null));for(let _0x219209 of _0x3a68d9())(await _0x25a448[_0x2a67ca(0x244)](_0x219209['id']))[_0x2a67ca(0x1fa)]===_0x2a67ca(0x1ec)&&await _0x5e5531(_0x219209['id'],{'type':_0x2a67ca(0x22d),'reason':'unclean'},_0x2a67ca(0x231));for(let _0x37e05d of _0x3a68d9())(await _0x25a448['summary'](_0x37e05d['id']))[_0x2a67ca(0x212)]||(await _0x5b9698[_0x2a67ca(0x245)]?.(_0x37e05d['id']),await _0x5e5531(_0x37e05d['id'],{'type':_0x2a67ca(0x235),'version':_0x37e05d['version']},_0x2a67ca(0x231)),await _0x2a9d02(_0x37e05d));for(let _0x3c24ed of _0x3a68d9()){let _0x966647=await _0x25a448[_0x2a67ca(0x244)](_0x3c24ed['id']);_0x966647[_0x2a67ca(0x1f4)]!==null&&_0x966647['version']!==_0x3c24ed[_0x2a67ca(0x1f4)]&&await _0x5e5531(_0x3c24ed['id'],{'type':_0x2a67ca(0x238),'from':_0x966647['version'],'to':_0x3c24ed[_0x2a67ca(0x1f4)]},'boot');}for(let _0x344210 of _0x3a68d9()){if((await _0x25a448['summary'](_0x344210['id']))[_0x2a67ca(0x1fa)]===_0x2a67ca(0x22a)){_0x3a7c7d(_0x344210['id'],_0x2a67ca(0x22a));continue;}await _0x4fe1a5(_0x344210['id'],0x1,'boot')[_0x2a67ca(0x221)](()=>{});}for(let _0x4dca31 of await _0x25a448[_0x2a67ca(0x229)]())_0x2aad93[_0x2a67ca(0x243)](_0x4dca31)||_0x3a7c7d(_0x4dca31,_0x2a67ca(0x240));}),'enable':_0x430445=>_0x4336f5(async()=>{const _0xaf7e8c=_0x1c647b;_0x55320d(_0x430445,_0xaf7e8c(0x1e6)),_0xd7fa05(_0x430445),!_0x289b36['has'](_0x430445)&&((await _0x25a448['summary'](_0x430445))['last']===_0xaf7e8c(0x22a)&&await _0x5e5531(_0x430445,{'type':'enabled'},'enable'),await _0x4fe1a5(_0x430445,0x1,'enable'));}),'disable':_0x12dc51=>_0x4336f5(async()=>{const _0x5e3bd2=_0x1c647b;_0x55320d(_0x12dc51,_0x5e3bd2(0x20f));let _0x12b06a=_0x3a2c6c[_0x5e3bd2(0x239)](_0x22b8ed=>_0x22b8ed['id']!==_0x12dc51&&_0x289b36[_0x5e3bd2(0x243)](_0x22b8ed['id'])&&_0x22b8ed['requires']['includes'](_0x12dc51))['map'](_0x311af8=>_0x311af8['id']);if(_0x12b06a[_0x5e3bd2(0x232)]>0x0&&_0x32f8b6['warn'](_0x12dc51+'\x20disabled\x20while\x20required\x20by\x20running\x20'+_0x12b06a[_0x5e3bd2(0x223)](',\x20'),{'id':_0x12dc51,'dependents':_0x12b06a}),(await _0x25a448[_0x5e3bd2(0x244)](_0x12dc51))[_0x5e3bd2(0x1fa)]===_0x5e3bd2(0x22a))return;_0xd7fa05(_0x12dc51);let _0x228df4=_0x289b36[_0x5e3bd2(0x243)](_0x12dc51);_0x228df4&&await _0x5e062f(_0x12dc51,_0x5e3bd2(0x1ef),_0x5e3bd2(0x20f)),await _0x5e5531(_0x12dc51,{'type':'disabled'},'disable'),_0x3a7c7d(_0x12dc51,_0x5e3bd2(0x22a)),_0x228df4&&await _0x5d8d1b(_0x12dc51,_0x5e3bd2(0x20f));}),'restart':_0x4eaa0c=>_0x4336f5(async()=>{const _0x209cbd=_0x1c647b;if(_0x55320d(_0x4eaa0c,_0x209cbd(0x1fc)),(await _0x25a448[_0x209cbd(0x244)](_0x4eaa0c))['last']===_0x209cbd(0x22a))throw new Error(_0x5063c6+_0x209cbd(0x1f9)+_0x4eaa0c+_0x209cbd(0x1f0));_0xd7fa05(_0x4eaa0c),_0x289b36[_0x209cbd(0x243)](_0x4eaa0c)&&await _0x5e062f(_0x4eaa0c,_0x209cbd(0x1ef),_0x209cbd(0x1fc)),await _0x4fe1a5(_0x4eaa0c,0x1,_0x209cbd(0x1fc));}),'requestRestart':(_0x3092e3,_0x326217)=>{const _0x446539=_0x1c647b;if(!_0x2aad93[_0x446539(0x243)](_0x3092e3)||_0x2aad93[_0x446539(0x224)](_0x3092e3)['core']||!_0x289b36[_0x446539(0x243)](_0x3092e3))return;let _0x4adc68=_0xad3afe(_0x3092e3)[_0x446539(0x22b)];if(_0x4adc68!==null){_0x167da7[_0x446539(0x1e1)](_0x3092e3,_0x326217),_0x32f8b6[_0x446539(0x233)](_0x3092e3+_0x446539(0x211),{'id':_0x3092e3,'busy':_0x4adc68,'reason':_0x326217});return;}_0x4336f5(()=>_0x138d8d(_0x3092e3,_0x326217))[_0x446539(0x221)](_0xca33e8=>_0x32f8b6[_0x446539(0x1ee)](_0x3092e3+_0x446539(0x236),{'id':_0x3092e3,'error':x(_0xca33e8)}));},'shutdown':()=>{const _0x2c05b7=_0x1c647b;for(let _0x12322d of[..._0x49bb99[_0x2c05b7(0x1e8)]()])_0xd7fa05(_0x12322d);return _0x167da7[_0x2c05b7(0x1ff)](),_0x4336f5(async()=>{const _0x1e8e02=_0x2c05b7;for(let _0x5d77e0 of[..._0xb76487]['reverse']())_0x289b36[_0x1e8e02(0x243)](_0x5d77e0)&&await _0x5e062f(_0x5d77e0,_0x1e8e02(0x22e),'shutdown');});},'setDegraded':(_0x46ba2a,_0x173db6)=>_0x3df167(_0x46ba2a,{..._0xad3afe(_0x46ba2a),'degraded':_0x173db6}),'setBusy':(_0x3dd44a,_0x16b205)=>{_0x3df167(_0x3dd44a,{..._0xad3afe(_0x3dd44a),'busy':_0x16b205}),_0x16b205===null&&_0x38ff65();},'isRunning':_0x322ac2=>_0x289b36[_0x1c647b(0x243)](_0x322ac2),'status':_0xad3afe,'statuses':()=>Object[_0x1c647b(0x216)]([...new Set([..._0xb76487,..._0x2136a8[_0x1c647b(0x1e8)]()])]['map'](_0x3a2e41=>[_0x3a2e41,_0xad3afe(_0x3a2e41)])),'onChange':_0x2443a0=>(_0x333216[_0x1c647b(0x226)](_0x2443a0),()=>_0x333216['delete'](_0x2443a0)),'startOrder':()=>[..._0xb76487],'abandonedStart':_0x52e95b=>_0x3c4450[_0x1c647b(0x224)](_0x52e95b)??null,'dispose':()=>{const _0x3b2324=_0x1c647b;_0x14f6fb=!0x0;for(let _0x13280e of[..._0x49bb99[_0x3b2324(0x1e8)]()])_0xd7fa05(_0x13280e);_0x167da7[_0x3b2324(0x1ff)]();for(let _0x12b6bf of _0x289b36[_0x3b2324(0x23d)]())_0x12b6bf['unbind']?.();for(let _0x2d1482 of[..._0x1d32a9[_0x3b2324(0x1e8)]()])_0x265910(_0x2d1482);_0x333216[_0x3b2324(0x1ff)]();}};}function _0x10c7(_0xb7a197,_0xb854af){_0xb7a197=_0xb7a197-0x1e1;const _0x595f69=_0x595f();let _0x10c791=_0x595f69[_0xb7a197];if(_0x10c7['tNUJFk']===undefined){var _0x386f1d=function(_0x5eb139){const _0x25455b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ea365='',_0x532f24='';for(let _0x14f8db=0x0,_0x19d4a6,_0x314c2c,_0x31cd2d=0x0;_0x314c2c=_0x5eb139['charAt'](_0x31cd2d++);~_0x314c2c&&(_0x19d4a6=_0x14f8db%0x4?_0x19d4a6*0x40+_0x314c2c:_0x314c2c,_0x14f8db++%0x4)?_0x1ea365+=String['fromCharCode'](0xff&_0x19d4a6>>(-0x2*_0x14f8db&0x6)):0x0){_0x314c2c=_0x25455b['indexOf'](_0x314c2c);}for(let _0x43cc96=0x0,_0x32810a=_0x1ea365['length'];_0x43cc96<_0x32810a;_0x43cc96++){_0x532f24+='%'+('00'+_0x1ea365['charCodeAt'](_0x43cc96)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x532f24);};_0x10c7['ZqvyHS']=_0x386f1d,_0x10c7['feUvPN']={},_0x10c7['tNUJFk']=!![];}const _0x144a66=_0x595f69[0x0],_0x28035d=_0xb7a197+_0x144a66,_0x1f3102=_0x10c7['feUvPN'][_0x28035d];return!_0x1f3102?(_0x10c791=_0x10c7['ZqvyHS'](_0x10c791),_0x10c7['feUvPN'][_0x28035d]=_0x10c791):_0x10c791=_0x1f3102,_0x10c791;}function le(_0x2399ef){const _0x570f3e=_0x146762;let _0x39da24={'start':_0x570f3e(0x1ed),'stop':_0x570f3e(0x1f2),..._0x2399ef[_0x570f3e(0x21f)]},_0x352c39=new Map(),_0x1fe88f=new Map(),_0x1559e1=new Map(),_0x9f1207=(_0x5934d4,_0x1f311e)=>{const _0x16041c=_0x570f3e;let _0x29c276=(_0x1559e1[_0x16041c(0x224)](_0x5934d4)??Promise[_0x16041c(0x20d)]())[_0x16041c(0x21e)](_0x1f311e)[_0x16041c(0x221)](_0x36e18f=>_0x2399ef[_0x16041c(0x227)]?.(_0x5934d4,_0x36e18f));_0x1559e1[_0x16041c(0x1e1)](_0x5934d4,_0x29c276);},_0x58e5b8=async _0x22fecd=>{const _0x2a93bb=_0x570f3e;let _0x2b4827=_0x2399ef[_0x2a93bb(0x204)][_0x22fecd];if(_0x352c39[_0x2a93bb(0x243)](_0x22fecd)||!_0x2b4827)return;let _0x11e5f6=new _0x2b4827(),_0x3b6b53={'instance':_0x11e5f6,'cleanup':null};_0x352c39[_0x2a93bb(0x1e1)](_0x22fecd,_0x3b6b53);try{let _0x50d936=await _0x11e5f6[_0x39da24['start']]?.[_0x2a93bb(0x1e9)](_0x11e5f6);_0x3b6b53[_0x2a93bb(0x20a)]=typeof _0x50d936==_0x2a93bb(0x1e3)?_0x50d936:null;}catch(_0x987fbf){throw _0x352c39[_0x2a93bb(0x20b)](_0x22fecd),_0x987fbf;}},_0x38594c=async _0x4b8884=>{const _0x11ff5d=_0x570f3e;let _0x4d6436=_0x352c39[_0x11ff5d(0x224)](_0x4b8884);if(_0x4d6436){_0x352c39[_0x11ff5d(0x20b)](_0x4b8884);try{await _0x4d6436[_0x11ff5d(0x20a)]?.();}finally{await _0x4d6436[_0x11ff5d(0x203)][_0x39da24[_0x11ff5d(0x218)]]?.['call'](_0x4d6436['instance']);}}},_0xd499bd=(_0x1be2cf,_0x4c2518)=>{const _0x364740=_0x570f3e;!_0x2399ef[_0x364740(0x204)][_0x1be2cf]||(_0x1fe88f['get'](_0x1be2cf)??!0x1)===_0x4c2518||(_0x1fe88f['set'](_0x1be2cf,_0x4c2518),_0x9f1207(_0x1be2cf,()=>_0x4c2518?_0x58e5b8(_0x1be2cf):_0x38594c(_0x1be2cf)));};return{'follow':_0xd499bd,'followAll':_0x522bd4=>{const _0x42215d=_0x570f3e;for(let _0x368327 of Object[_0x42215d(0x1e8)](_0x2399ef[_0x42215d(0x204)]))_0xd499bd(_0x368327,_0x522bd4[_0x368327]===!0x0);},'isRunning':_0x3c6f98=>_0x352c39[_0x570f3e(0x243)](_0x3c6f98),'stopAll':async()=>{const _0x1d766f=_0x570f3e;for(let _0x357361 of Object[_0x1d766f(0x1e8)](_0x2399ef[_0x1d766f(0x204)]))_0xd499bd(_0x357361,!0x1);await Promise['all']([..._0x1559e1[_0x1d766f(0x23d)]()]);}};}var fe=_0x15e149=>_0x15e149,X=class{};export{X as ModuleBase,V as bindModule,le as createFollower,ae as createSupervisor,fe as defineManifest,Q as memoryHistory,U as summarize};
|
package/dist/scan.d.ts
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { type HostBus, type HostLogger } from "./bind";
|
|
2
|
+
import type { Member } from "./types";
|
|
3
|
+
/** One module the supervisor manages. A module with no class in this realm is tracked, with nothing to run. */
|
|
4
|
+
export interface SupervisedModule {
|
|
5
|
+
id: string;
|
|
6
|
+
version: string;
|
|
7
|
+
core: boolean;
|
|
8
|
+
requires: readonly string[];
|
|
9
|
+
optional: readonly string[];
|
|
10
|
+
startOrder: number;
|
|
11
|
+
Class?: new () => object;
|
|
12
|
+
members?: readonly Member[];
|
|
13
|
+
}
|
|
14
|
+
export type StopReason = "requested" | "config" | "shutdown" | "unclean" | (string & {});
|
|
15
|
+
/** Which part of a module's life a failure happened in. */
|
|
16
|
+
export type Step = "install" | "start" | "stop" | "disable";
|
|
17
|
+
/** A fact the supervisor records about one module. */
|
|
18
|
+
export type HistoryFact = {
|
|
19
|
+
type: "installed";
|
|
20
|
+
version: string;
|
|
21
|
+
} | {
|
|
22
|
+
type: "upgraded";
|
|
23
|
+
from: string;
|
|
24
|
+
to: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "started";
|
|
27
|
+
version: string;
|
|
28
|
+
} | {
|
|
29
|
+
type: "stopped";
|
|
30
|
+
reason: StopReason;
|
|
31
|
+
} | {
|
|
32
|
+
type: "failed";
|
|
33
|
+
step: Step;
|
|
34
|
+
error: string;
|
|
35
|
+
attempt: number;
|
|
36
|
+
} | {
|
|
37
|
+
type: "enabled";
|
|
38
|
+
} | {
|
|
39
|
+
type: "disabled";
|
|
40
|
+
};
|
|
41
|
+
export interface HistoryMeta {
|
|
42
|
+
/** When, from the supervisor's clock. */
|
|
43
|
+
at: string;
|
|
44
|
+
/** Who: `<name>.<command>`, such as `ModuleManager.boot`. */
|
|
45
|
+
via: string;
|
|
46
|
+
}
|
|
47
|
+
/** What the supervisor reads back: has the module been seen, what state was it last left in, at what version. */
|
|
48
|
+
export interface HistorySummary {
|
|
49
|
+
exists: boolean;
|
|
50
|
+
/** The last fact's type, failures skipped (a failure is a fact about a step, not a state); null with none. */
|
|
51
|
+
last: Exclude<HistoryFact["type"], "failed"> | null;
|
|
52
|
+
/** The last version recorded (installed, upgraded or started). */
|
|
53
|
+
version: string | null;
|
|
54
|
+
}
|
|
55
|
+
/** Where a supervisor keeps its history: a database, a journal, a file. Each method may be async. */
|
|
56
|
+
export interface HistoryStore {
|
|
57
|
+
append(id: string, fact: HistoryFact, meta: HistoryMeta): void | Promise<void>;
|
|
58
|
+
summary(id: string): HistorySummary | Promise<HistorySummary>;
|
|
59
|
+
/** Every id with any history. */
|
|
60
|
+
ids(): readonly string[] | Promise<readonly string[]>;
|
|
61
|
+
}
|
|
62
|
+
export interface HistoryEntry extends HistoryMeta {
|
|
63
|
+
id: string;
|
|
64
|
+
fact: HistoryFact;
|
|
65
|
+
}
|
|
66
|
+
/** A history kept in memory: nothing survives the process. `entries` is the log, oldest first. */
|
|
67
|
+
export declare function memoryHistory(): HistoryStore & {
|
|
68
|
+
entries: HistoryEntry[];
|
|
69
|
+
};
|
|
70
|
+
/** A summary from a module's facts, oldest first: what a `HistoryStore` of your own may reuse. */
|
|
71
|
+
export declare function summarize(facts: readonly HistoryFact[]): HistorySummary;
|
|
72
|
+
export type SupervisedState = "stopped" | "starting" | "running" | "failed" | "disabled" | "orphaned";
|
|
73
|
+
export interface SupervisedStatus {
|
|
74
|
+
state: SupervisedState;
|
|
75
|
+
/** Why the module is degraded, while it is; null when healthy. Cleared when its state changes. */
|
|
76
|
+
degraded: string | null;
|
|
77
|
+
/** Why the module must not be restarted now; null when a restart is safe. */
|
|
78
|
+
busy: string | null;
|
|
79
|
+
/** The last start's error; null once a start succeeds. */
|
|
80
|
+
lastError: string | null;
|
|
81
|
+
updatedAt: string;
|
|
82
|
+
}
|
|
83
|
+
export interface SupervisorOptions {
|
|
84
|
+
/** Every module of this realm, with its class when it has one here. */
|
|
85
|
+
modules: readonly SupervisedModule[];
|
|
86
|
+
/** Binds each running module's members; omitted, nothing is bound. */
|
|
87
|
+
bus?: HostBus;
|
|
88
|
+
/** Prefixes refusals (`<name>.restart: ...`) and history `via`. Default `"supervisor"`. */
|
|
89
|
+
name?: string;
|
|
90
|
+
/** The hook member names. Default `onInstalled`, `onStart`, `onStop`, `onDisabled`. */
|
|
91
|
+
hooks?: {
|
|
92
|
+
install?: string;
|
|
93
|
+
start?: string;
|
|
94
|
+
stop?: string;
|
|
95
|
+
disable?: string;
|
|
96
|
+
};
|
|
97
|
+
/** Default `memoryHistory()`. */
|
|
98
|
+
history?: HistoryStore;
|
|
99
|
+
/** One hook's budget, in ms; a hook that overruns has failed. Default 30 s. */
|
|
100
|
+
hookTimeoutMs?: number;
|
|
101
|
+
/** A core module's start budget, in ms. Default 10 minutes. */
|
|
102
|
+
coreStartTimeoutMs?: number;
|
|
103
|
+
/** Waits before each retry of a failed start; one more attempt than waits in total. Default `[1000, 5000]`. */
|
|
104
|
+
retryWaitsMs?: readonly number[];
|
|
105
|
+
/** Runs before a module's install and before each of its starts (its data folder, say). */
|
|
106
|
+
prepare?: (id: string) => void | Promise<void>;
|
|
107
|
+
/** The clock, as an ISO string. */
|
|
108
|
+
now?: () => string;
|
|
109
|
+
log?: HostLogger;
|
|
110
|
+
}
|
|
111
|
+
export interface Supervisor {
|
|
112
|
+
/** Boot: core modules, unclean stops, installs, upgrades, every enabled module, orphans. */
|
|
113
|
+
boot(): Promise<void>;
|
|
114
|
+
/** Start a stopped, failed or disabled module (recording `enabled` for a disabled one). */
|
|
115
|
+
enable(id: string): Promise<void>;
|
|
116
|
+
/** Stop a module and record it disabled; its users keep running. */
|
|
117
|
+
disable(id: string): Promise<void>;
|
|
118
|
+
/** Stop, then start. A disabled module is refused. */
|
|
119
|
+
restart(id: string): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* Restart a running module for `reason` (a config change, say) unless it is
|
|
122
|
+
* busy; a busy one restarts when its busy flag clears. A module that is not
|
|
123
|
+
* running is left alone.
|
|
124
|
+
*/
|
|
125
|
+
requestRestart(id: string, reason: StopReason): void;
|
|
126
|
+
/** Stop every running module, reverse start order, recorded as `shutdown`; pending retries and restarts are dropped. */
|
|
127
|
+
shutdown(): Promise<void>;
|
|
128
|
+
setDegraded(id: string, reason: string | null): void;
|
|
129
|
+
setBusy(id: string, reason: string | null): void;
|
|
130
|
+
isRunning(id: string): boolean;
|
|
131
|
+
status(id: string): SupervisedStatus;
|
|
132
|
+
statuses(): Record<string, SupervisedStatus>;
|
|
133
|
+
/** Called after every status change. Returns an unsubscribe. */
|
|
134
|
+
onChange(listener: (id: string, status: SupervisedStatus) => void): () => void;
|
|
135
|
+
/** Every module id, in start order. */
|
|
136
|
+
startOrder(): string[];
|
|
137
|
+
/** A start given up on at its budget and still running; settles once it has finished. Null when none. */
|
|
138
|
+
abandonedStart(id: string): Promise<void> | null;
|
|
139
|
+
/**
|
|
140
|
+
* Let go without stopping anything: pending retries and restarts are cancelled,
|
|
141
|
+
* and every handler this supervisor bound is unbound. No hook runs; for a
|
|
142
|
+
* supervisor being replaced (a second boot, a test).
|
|
143
|
+
*/
|
|
144
|
+
dispose(): void;
|
|
145
|
+
}
|
|
146
|
+
export declare function createSupervisor(options: SupervisorOptions): Supervisor;
|