@guanghechen/kit-video 0.5.8 → 0.5.10

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 CHANGED
@@ -10,6 +10,12 @@ pnpm add @guanghechen/kit-video
10
10
 
11
11
  ## Usage
12
12
 
13
+ When running from this monorepo workspace, build `kit-video` and its dependency graph first:
14
+
15
+ ```bash
16
+ pnpm -r --filter @guanghechen/kit-video... run build
17
+ ```
18
+
13
19
  ### Full Pipeline (autogen)
14
20
 
15
21
  ```bash
@@ -136,10 +142,10 @@ workspace/
136
142
  | `--ocr` | boolean | false | Enable OCR text detection |
137
143
  | `--dry-run` | boolean | false | Show what stages would run |
138
144
  | `--debug` | boolean | false | Enable debug output |
139
- | `--image-source` | string | gpt-image-1-5 | Image source |
145
+ | `--image-provider` | string | azure | Image provider (choices: azure) |
146
+ | `--image-model` | string | gpt-image-1-5 | Image model (choices: gpt-image-1-5) |
140
147
  | `--image-quality` | string | high | Image quality (low/medium/high) |
141
- | `--tts-source` | string | speech | TTS source (speech/llmapi) |
142
- | `--speech-voice` | string | - | Azure Speech voice name |
148
+ | `--voice` | string | - | TTS voice name |
143
149
  | `--transition` | string | wipeleft | Transition effect |
144
150
  | `--transition-duration` | number | 0.8 | Transition duration in seconds |
145
151
  | `--stage-image-parallel` | number | 1 | Image stage parallelism |
@@ -178,12 +184,25 @@ Supported transition types:
178
184
 
179
185
  1. CLI entry preloads missing keys from `<config-root>/.env.local` into `process.env` via `src/env.ts`.
180
186
  2. CLI entry passes `process.env` into `command.run({ envs })`.
181
- 3. commander merges user env with preset env (`<preset-root>/.env.local`).
187
+ 3. commander loads preset from `<config-root>/preset.json` (or `--preset-file`) and merges selected profile env.
182
188
  4. CLI actions (including `checkhealth`) consume effective `ctx.envs`.
183
189
  5. For provider calls, `ctx.envs` is passed explicitly along `command -> handle -> core` (no global runtime env binding, no `process.env` fallback in runtime).
184
190
 
191
+ If `<config-root>/preset.json` does not exist, command runs without preset envs.
192
+
185
193
  For duplicated keys, preset env overrides user env.
186
194
 
195
+ ## Provider Environment (Minimum)
196
+
197
+ For a minimal runnable setup (`image` + `tts`), configure:
198
+
199
+ - `KIT_IMAGE_AZURE_API_KEY`
200
+ - `KIT_IMAGE_AZURE_API_ENDPOINT`
201
+ - `KIT_TTS_AZURE_API_KEY`
202
+ - `KIT_TTS_AZURE_API_ENDPOINT`
203
+
204
+ TTS in `kit-video` is executed through `@guanghechen/kit-tts` (provider fixed to `speech`).
205
+
187
206
  ## Requirements
188
207
 
189
208
  - Node.js >= 20.0.0
package/lib/esm/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- (function(_0xe16f59,_0x5d52f6){const _0x4d578b={_0x2114a9:0xf8,_0x44d4f6:0x10e,_0x5696d0:0xef,_0x109848:'(M#9',_0x1ace49:0x282,_0x18bb78:0x27d,_0x23a298:0x276,_0x26d5dd:'^HQx',_0x426052:0x28b,_0x27b3ca:0x276,_0x4c2ba2:0x283,_0x3913f6:0x263,_0xc76801:0x268,_0xb8c8ba:0x275,_0xe39bf:'eb48',_0x4b5f66:0xe6,_0x28b1e5:0xdb,_0x34c337:0xfc,_0x16e667:'%*G]',_0x2f8356:0x102,_0x13a8d4:0x247,_0x5a5958:0x257,_0x518448:'kYQd',_0x1ab50e:0x267,_0x322f6a:0x25c,_0x529c32:0x260,_0x1f6925:0x279,_0x11107d:'Kblw',_0x24ddb0:0x281,_0xd8043f:0x27e,_0x711aac:0x26d,_0x4d77e7:0x26c,_0x32376d:0x261,_0x40759d:'ULso',_0x2b7b9a:0x295,_0x38caaa:0x286,_0x1f92c4:'fpY$'},_0x3072e7={_0x3b45fc:0xad},_0x44672a={_0x75bfba:0xc9};function _0x1ed51f(_0x33a8b3,_0x296a15,_0x3bbcc7,_0x573533){return _0x2215(_0x3bbcc7-_0x44672a._0x75bfba,_0x573533);}function _0x4296a4(_0x5d1bdb,_0x1da829,_0x5442fd,_0x1eabe1){return _0x2215(_0x5d1bdb- -_0x3072e7._0x3b45fc,_0x1eabe1);}const _0x4f7ff5=_0xe16f59();while(!![]){try{const _0x4d4aa=-parseInt(_0x4296a4(_0x4d578b._0x2114a9,_0x4d578b._0x44d4f6,_0x4d578b._0x5696d0,_0x4d578b._0x109848))/(0x1b2f+0x1f28+-0x1d2b*0x2)*(-parseInt(_0x1ed51f(_0x4d578b._0x1ace49,_0x4d578b._0x18bb78,_0x4d578b._0x23a298,_0x4d578b._0x26d5dd))/(0x63b*-0x6+-0x9d9+0xfbf*0x3))+parseInt(_0x1ed51f(_0x4d578b._0x426052,_0x4d578b._0x27b3ca,_0x4d578b._0x4c2ba2,'f6YM'))/(0x1d6b+0x1756+-0x34be)+parseInt(_0x1ed51f(_0x4d578b._0x3913f6,_0x4d578b._0xc76801,_0x4d578b._0xb8c8ba,_0x4d578b._0xe39bf))/(-0x56d*0x1+-0x248*-0x10+-0x1f0f*0x1)*(-parseInt(_0x4296a4(_0x4d578b._0x4b5f66,_0x4d578b._0x28b1e5,_0x4d578b._0x34c337,_0x4d578b._0x16e667))/(0xa36*-0x1+0x1e93+-0x1458))+parseInt(_0x4296a4(0x10e,_0x4d578b._0x2f8356,_0x4d578b._0x2f8356,'0rs['))/(-0x1ac*-0xd+-0x1889+0x2d3)*(parseInt(_0x1ed51f(_0x4d578b._0x13a8d4,0x261,_0x4d578b._0x5a5958,_0x4d578b._0x518448))/(0x1e3f+0x2b*-0xac+-0x154))+-parseInt(_0x1ed51f(_0x4d578b._0x1ab50e,_0x4d578b._0x322f6a,_0x4d578b._0x529c32,'aVK7'))/(0x17*-0x1b1+0x100a+0x1*0x16e5)*(-parseInt(_0x1ed51f(0x28b,0x282,_0x4d578b._0x1f6925,_0x4d578b._0x11107d))/(-0xfb6*-0x1+0x6d*-0x1b+-0x42e))+parseInt(_0x1ed51f(_0x4d578b._0x24ddb0,_0x4d578b._0xd8043f,_0x4d578b._0x711aac,'f6YM'))/(-0x2042+0x14e*-0x1d+0x4622)+-parseInt(_0x1ed51f(_0x4d578b._0x4d77e7,0x278,_0x4d578b._0x32376d,_0x4d578b._0x40759d))/(0x2*-0xe42+-0x1eae+0x3b3d)*(parseInt(_0x1ed51f(0x28a,_0x4d578b._0x2b7b9a,_0x4d578b._0x38caaa,_0x4d578b._0x1f92c4))/(-0x19a4+-0x1*0x1d47+0x36f7));if(_0x4d4aa===_0x5d52f6)break;else _0x4f7ff5['push'](_0x4f7ff5['shift']());}catch(_0xfa866d){_0x4f7ff5['push'](_0x4f7ff5['shift']());}}}(_0x5c93,-0x1*-0x3666d+0x1*0x12881+-0x1475e));import{C as _0x422264,V as _0x156818}from'./command-rAABScWO.mjs';function _0x576803(_0x30a3b1,_0x44f591,_0x6fbf2,_0x16c7de){const _0x1d7af0={_0x50a7fe:0x1c1};return _0x2215(_0x44f591-_0x1d7af0._0x50a7fe,_0x30a3b1);}import{CompletionCommand}from'@guanghechen/commander/node';import{Reporter}from'@guanghechen/reporter';import'node:fs';function _0x2215(_0x4a3798,_0x11be8f){_0x4a3798=_0x4a3798-(-0x3*0x9a5+-0x3*-0x17b+0x1f*0xd7);const _0x3415ab=_0x5c93();let _0xf0f2a5=_0x3415ab[_0x4a3798];if(_0x2215['MIgfMG']===undefined){var _0xd269a4=function(_0x325774){const _0x449816='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x13c43b='',_0x3551b='';for(let _0x43444f=0x94c+0x1*-0xa5d+-0xd*-0x15,_0x3c2f29,_0x474248,_0xd278d5=0x2*0xf1c+-0x4*0x648+-0x2*0x28c;_0x474248=_0x325774['charAt'](_0xd278d5++);~_0x474248&&(_0x3c2f29=_0x43444f%(0x25*0x59+0x1a71+-0x274a)?_0x3c2f29*(-0xbf8+0x1043+-0x40b)+_0x474248:_0x474248,_0x43444f++%(0x6ad+0x1dcf*0x1+-0x2478))?_0x13c43b+=String['fromCharCode'](-0x16d+-0x2b3*-0xc+-0x1df8&_0x3c2f29>>(-(-0x2*-0x13e+-0xab6+0x83c*0x1)*_0x43444f&0x2*-0xae3+-0xb*-0x193+0x47b)):0x4d3*0x4+-0x5*-0x635+-0x3255){_0x474248=_0x449816['indexOf'](_0x474248);}for(let _0x3ed3b4=0xbfd+-0x155d*0x1+0xa*0xf0,_0x345fcc=_0x13c43b['length'];_0x3ed3b4<_0x345fcc;_0x3ed3b4++){_0x3551b+='%'+('00'+_0x13c43b['charCodeAt'](_0x3ed3b4)['toString'](0x1d0+0x1996+0x2*-0xdab))['slice'](-(-0x1041+0x1efc+-0xeb9));}return decodeURIComponent(_0x3551b);};const _0x2593f7=function(_0x42dd99,_0x21a80c){let _0x512d72=[],_0x942434=0x75*-0x35+0xae5*0x2+0x26f,_0x4c3c34,_0x478f66='';_0x42dd99=_0xd269a4(_0x42dd99);let _0x953d8b;for(_0x953d8b=0x1276+-0x2*0x935+-0xc;_0x953d8b<-0x1*0x59+-0xf2a+0x1083;_0x953d8b++){_0x512d72[_0x953d8b]=_0x953d8b;}for(_0x953d8b=-0x121d+0x1cd*0x13+-0x101a;_0x953d8b<0x12ad+0x1*0x959+-0x1b06;_0x953d8b++){_0x942434=(_0x942434+_0x512d72[_0x953d8b]+_0x21a80c['charCodeAt'](_0x953d8b%_0x21a80c['length']))%(-0x2567+0x2262+0x405),_0x4c3c34=_0x512d72[_0x953d8b],_0x512d72[_0x953d8b]=_0x512d72[_0x942434],_0x512d72[_0x942434]=_0x4c3c34;}_0x953d8b=-0x15c8+-0x18cc+0x174a*0x2,_0x942434=-0x7f*0x4a+-0x1*-0x47f+0x2037;for(let _0x850e6f=-0xef*0x23+0x6*0x1e2+0x1561;_0x850e6f<_0x42dd99['length'];_0x850e6f++){_0x953d8b=(_0x953d8b+(0x1b2f+0x1f28+-0x1d2b*0x2))%(0x63b*-0x6+-0x9d9+0x303b*0x1),_0x942434=(_0x942434+_0x512d72[_0x953d8b])%(0x1d6b+0x1756+-0x33c1),_0x4c3c34=_0x512d72[_0x953d8b],_0x512d72[_0x953d8b]=_0x512d72[_0x942434],_0x512d72[_0x942434]=_0x4c3c34,_0x478f66+=String['fromCharCode'](_0x42dd99['charCodeAt'](_0x850e6f)^_0x512d72[(_0x512d72[_0x953d8b]+_0x512d72[_0x942434])%(-0x56d*0x1+-0x248*-0x10+-0x1e13*0x1)]);}return _0x478f66;};_0x2215['bJNaYe']=_0x2593f7,_0x2215['OuQzQa']={},_0x2215['MIgfMG']=!![];}const _0x2e6ad3=_0x3415ab[0xa36*-0x1+0x1e93+-0x145d],_0x549a6c=_0x4a3798+_0x2e6ad3,_0xc6d8de=_0x2215['OuQzQa'][_0x549a6c];return!_0xc6d8de?(_0x2215['dvUCru']===undefined&&(_0x2215['dvUCru']=!![]),_0xf0f2a5=_0x2215['bJNaYe'](_0xf0f2a5,_0x11be8f),_0x2215['OuQzQa'][_0x549a6c]=_0xf0f2a5):_0xf0f2a5=_0xc6d8de,_0xf0f2a5;}import'node:path';import'@guanghechen/string';import'node:crypto';import'node:child_process';import'@guanghechen/env';import'node:os';const _0x4dc2bf={};_0x4dc2bf[_0x58c450(0x45c,0x448,'CXOe',0x442)+'x']=_0x422264;function _0x5c93(){const _0x22b272=['hY3cKmoL','WQVcO8kgW6FdPCkSnstdL1bGW7S','mGOXA2q','W79lWRi','W4RdOmkD','cHuXmeS','pSo9jG','WP7dPKPsBq','dt7cHSoRgW','u8kzWOmu','WPHgcmksW60','W7u5eSoIWQ/dI8kBWRK6WORcLtldUq','W7PxW4JcTKPNw8oJWPG5nXu','nLaJW5r7','b8ocW4G0WRtcJ8oMrfq','emo+dNNdTG','Fmo4WOxcHsu','W4VdOSkrW63dGq','iSkYWPRcG1K','hSkbrmkydIiXfG','W4hcRKRdHta','gG3cL0HPWRFcMLS','W7ddJ8k6Bq5LW4SXFW','WQOCWP/dTq','W7jqWP0tWQm2WPem','WOfcWQldO8oltZm','amk0dSkpWOS','W4yEb8kfW43dO0am','W44lt1npDSk6WQy','mabUW5ZcVmopDZDJWRpdMSoQ','s8oDD8kB','W4xdMLaAvG','WRr8v8k4','W6KmW6TTdgHDWQlcIdlcVmow','lCo7W6yuWRu','CSkLW4tcGtG','W7iBW7ClW4C','WR44ouj0W6a9Bq','hbu5pe4','W5rvyvHJ','bmogW4DlW4ddLSo3yK3dQmoXWRi','W7W/fCoKWQpdJSonWPKAWRhcJXS','W7hcMmoaqW9oW4O','y8k6W6xcHYC','W6akW6XRag0lWOlcQaNcPSo/W58','WQ8xW7q6wW','W5ldKe85tW','iCk/WOFcIe8','qtS4W5RcJa','eMTHWO7dKvfZwfOsWRtdNW','jSkrDf5SW6b2DCkuW5RcKmo6','wLnHzHpdQ2n3WRzqW77cLa'];_0x5c93=function(){return _0x22b272;};return _0x5c93();}const _0x32b872=new Reporter(_0x4dc2bf),_0x229e00=new _0x156818();_0x229e00['regis'+_0x576803('l!O8',0x35b,0x34b,0x365)+_0x58c450(0x439,0x43c,'eb48',0x438)+_0x576803('kYQd',0x35a,0x357,0x354)]();const _0x35c3a8={};_0x35c3a8[_0x58c450(0x41d,0x42f,'ioeV',0x436)+_0x58c450(0x44f,0x437,'ioeV',0x436)+'e']=_0x422264,_0x35c3a8[_0x58c450(0x451,0x43b,'tZLf',0x44a)]={},_0x35c3a8[_0x58c450(0x451,0x43b,'tZLf',0x44a)][_0x58c450(0x441,0x440,'CXOe',0x42c)]=_0x576803('ioeV',0x34c,0x359,0x351)+'nfig/'+'bash/'+_0x576803('o(Gg',0x35e,0x364,0x346)+'etion'+'s/'+_0x422264+_0x58c450(0x432,0x443,'(efk',0x43e),_0x35c3a8[_0x58c450(0x451,0x43b,'tZLf',0x44a)][_0x58c450(0x448,0x449,'fpY$',0x43a)]=_0x576803('(efk',0x369,0x355,0x383)+_0x576803('BJM*',0x350,0x368,0x34a)+_0x58c450(0x444,0x44f,'fTbO',0x44e)+_0x576803('VOm3',0x356,0x36c,0x33e)+_0x58c450(0x439,0x44d,'bppU',0x434)+'s/'+_0x422264+_0x58c450(0x44a,0x433,'aVK7',0x42d),_0x35c3a8[_0x58c450(0x451,0x43b,'tZLf',0x44a)][_0x576803('f6YM',0x35c,0x353,0x34d)]=_0x58c450(0x418,0x41c,'ioeV',0x407)+_0x576803('J5rd',0x34d,0x364,0x358)+'pwsh/'+_0x58c450(0x433,0x43a,'l!O8',0x42c)+'etion'+'s/'+_0x422264+'.ps1';function _0x58c450(_0x36ac04,_0xe19b49,_0xb8fcc,_0x4ef2f7){const _0x38427a={_0x593d5d:0x291};return _0x2215(_0xe19b49-_0x38427a._0x593d5d,_0xb8fcc);}_0x229e00[_0x576803('NWeG',0x372,0x383,0x37c)+_0x58c450(0x44a,0x44a,'$D)0',0x443)]('compl'+_0x576803(']TMX',0x375,0x38d,0x388),new CompletionCommand(_0x229e00,_0x35c3a8));try{await _0x229e00[_0x576803('l)(9',0x376,0x36f,0x360)]({'argv':process[_0x576803('0rs[',0x353,0x361,0x357)][_0x576803('tZLf',0x34e,0x33f,0x349)](0x1043+-0x1e4e+0x4af*0x3),'envs':process.env,'reporter':_0x32b872});}catch(_0x2b597b){_0x32b872['error'](_0x2b597b instanceof Error?_0x2b597b[_0x58c450(0x434,0x432,']TMX',0x42e)]??_0x2b597b[_0x58c450(0x425,0x430,'Ytr^',0x41a)+'ge']:String(_0x2b597b)),process['exitC'+_0x58c450(0x44f,0x444,'J5rd',0x435)]=-0x1*0x1b7d+0x20cc+-0x54e*0x1;}
2
+ (function(_0x2bd5c,_0x3eaa31){const _0x168883={_0x4816c9:'gBaj',_0x5d18b9:0x2e5,_0x1b03f9:0x2ce,_0x33ec9e:0x2df,_0x3511e1:'nQLR',_0x5bab7f:0x2d1,_0x59da8f:0xa,_0xbfc44b:'SUG8',_0x41baae:0x4,_0x27492c:0xd,_0x35c215:0x1a,_0x402f98:0x2f,_0x588e03:0x2e0,_0x512225:0x2e3,_0x29036d:0x2ed,_0x256e1c:0x2e1,_0x19b390:'yGU]',_0x36ce02:0x2d2,_0x50aa83:0xb,_0x560766:0x1f,_0x3ec9e4:0x0,_0x2cba0d:0x1,_0x1fd21a:'DVU#',_0x59b719:0x16,_0x15a2c6:0xd,_0x1ff2c2:0x5,_0x1993b7:'FXBg'},_0x5bd399={_0x4bcdbe:0x216},_0x25eb8c={_0x1a47c8:0xdf};function _0xc5551c(_0x3a659e,_0x5585e8,_0x583919,_0x308da8){return _0x2446(_0x3a659e- -_0x25eb8c._0x1a47c8,_0x5585e8);}const _0x1e2c21=_0x2bd5c();function _0x21f768(_0x2fc1f7,_0xebaeaf,_0x346ca2,_0x44eade){return _0x2446(_0x346ca2-_0x5bd399._0x4bcdbe,_0xebaeaf);}while(!![]){try{const _0x60a836=parseInt(_0x21f768(0x2e0,_0x168883._0x4816c9,_0x168883._0x5d18b9,_0x168883._0x1b03f9))/(-0xf39*0x1+0x35*-0x6a+0x9c*0x3d)+parseInt(_0x21f768(_0x168883._0x33ec9e,_0x168883._0x3511e1,0x2da,_0x168883._0x5bab7f))/(-0x4fc*0x2+0x1cb7*0x1+0xd*-0x171)+-parseInt(_0xc5551c(-_0x168883._0x59da8f,_0x168883._0xbfc44b,-_0x168883._0x41baae,-_0x168883._0x27492c))/(-0x142*-0x13+0x12ed+0xa*-0x448)+-parseInt(_0xc5551c(-_0x168883._0x35c215,_0x168883._0x4816c9,-_0x168883._0x402f98,-0x24))/(-0xaf4+-0x7a*-0x4+0x910)+-parseInt(_0x21f768(_0x168883._0x588e03,'SUG8',_0x168883._0x512225,_0x168883._0x29036d))/(0x4*-0x1e9+0x4fd*-0x3+-0x16a*-0x10)*(parseInt(_0x21f768(_0x168883._0x256e1c,_0x168883._0x19b390,_0x168883._0x36ce02,0x2e5))/(0x1db3*-0x1+0x18b7*0x1+0x2*0x281))+-parseInt(_0xc5551c(-_0x168883._0x50aa83,'pc8D',-_0x168883._0x560766,_0x168883._0x3ec9e4))/(0x1a31*-0x1+-0x2540+0x3f78)*(parseInt(_0xc5551c(_0x168883._0x2cba0d,_0x168883._0x1fd21a,_0x168883._0x59b719,-_0x168883._0x15a2c6))/(-0x2059+-0xee4+0x2f45))+parseInt(_0xc5551c(_0x168883._0x1ff2c2,_0x168883._0x1993b7,0xb,-0x12))/(0xb*-0x43+0x10b6+0x4*-0x373)*(parseInt(_0xc5551c(-0x22,_0x168883._0x1fd21a,-0x27,-0x10))/(-0xe2c*-0x2+0x2441+0x408f*-0x1));if(_0x60a836===_0x3eaa31)break;else _0x1e2c21['push'](_0x1e2c21['shift']());}catch(_0x3e3845){_0x1e2c21['push'](_0x1e2c21['shift']());}}}(_0x1a10,-0x36d7*-0x1f+-0x667c9*-0x1+0x3a6c6*-0x2));import{C as _0x227bb8,V as _0x591119}from'./command-DE3PjokJ.mjs';import{CompletionCommand}from'@guanghechen/commander/node';import{Reporter}from'@guanghechen/reporter';import'node:fs';function _0x1a10(){const _0x4f39f6=['WP0ZgJuC','nWGRiG','W7BdNfr5e0bjamo7W4pcISkT','WQ3cKKS+yZldI8o4mCkOxq','nmkpW4pdJfa','jNldHCk1W7C','j8ope1xdSW','W4TyaSk0yq','haJdVSo9hLqQDLRcN8k9kN8','cf4v','WODFgmkVjG','W6fwdCoOW7HxuSoJ','WRxcIWSLvq','WQ/cLeq4yxVdGSoyeCkUw2W','ymoAWPtcLWKBWOdcR35sxa','pCktWP3dOmkM','lKyVkXa','nCkdW4hdKve','zvb+ySoSbMNcLCkGW5BcVmkqWOS','W6jFtmkPWQejkCofWOyvqZJdTG','WP16W5BcLw0','ymopWP42WO0','WRBcO2yQ','W7hcSWJcRCk/','WPu8adO','WRGNCmkdWR7cPmoIrmoCW6rQW68','pHrpymkm','W7pdQCksdCk1WOddMKq','iKrHW6Sk','W7RcSMzZ','jqTZpdpdJfO','W7xcRdtcO8kG','WPFcLalcQmox','W4bmh8ooFG','WQaqWOrYsSkfqJC','f8o2eSkLpW','zSk0W6reW7y','WQhcNt/dLCoC','lSkoWP/dT8k4','pHvmymki','WOebiwZcH8oyWPGLWQRcNf56','lhSGzgFcTctcOmk1W5hcU8k8rW','WOvouCosja','E8kzc0lcSgv7mW','W4xcU2aclG','BICTpCk+FXq'];_0x1a10=function(){return _0x4f39f6;};return _0x1a10();}import'node:path';function _0x408a6a(_0x331185,_0x3eb1a9,_0x3d1841,_0xd1cd95){const _0x32917e={_0x574e55:0x133};return _0x2446(_0x331185- -_0x32917e._0x574e55,_0xd1cd95);}import'@guanghechen/string';import'@guanghechen/kit-image';import'@guanghechen/env';import'node:os';import'node:child_process';function _0x30afb8(_0x73cf63,_0x597090,_0x415a2e,_0x4bdacb){const _0x2035bc={_0x279435:0x91};return _0x2446(_0x597090- -_0x2035bc._0x279435,_0x73cf63);}import'@guanghechen/kit-tts';const _0x3a240d={};_0x3a240d[_0x408a6a(-0x7a,-0x7c,-0x75,'#sue')+'x']=_0x227bb8;const _0x52a437=new Reporter(_0x3a240d),_0x1b361b=new _0x591119();_0x1b361b[_0x30afb8('nQLR',0x3d,0x4e,0x26)+_0x30afb8('0R^p',0x41,0x47,0x51)+_0x30afb8('c36h',0x35,0x48,0x49)+_0x30afb8('pc8D',0x32,0x24,0x3c)]();const _0x19ceef={};function _0x2446(_0x239c64,_0x48f4cf){_0x239c64=_0x239c64-(0x19e3+0x2177+-0x3aa3);const _0x5e4d3d=_0x1a10();let _0x219d84=_0x5e4d3d[_0x239c64];if(_0x2446['eWTlmJ']===undefined){var _0xdabe14=function(_0x228349){const _0x2c2ca3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44156f='',_0x5559bb='';for(let _0x422d55=0x3*0x3b3+0x1355+0x1e6e*-0x1,_0x22f6fd,_0x39aa25,_0x3fbfde=0x16a9+-0xe95*-0x1+-0x253e;_0x39aa25=_0x228349['charAt'](_0x3fbfde++);~_0x39aa25&&(_0x22f6fd=_0x422d55%(0x123b+0x21f4+0xa6f*-0x5)?_0x22f6fd*(0x741*-0x1+0x59*-0x24+0x1405)+_0x39aa25:_0x39aa25,_0x422d55++%(0x1*-0x17ed+0x6*-0x542+0x3*0x127f))?_0x44156f+=String['fromCharCode'](0x5*-0x29+-0x496+0x2*0x331&_0x22f6fd>>(-(0x1ca3+-0x10c7+-0xbda)*_0x422d55&0x1520+0x356+-0x1870)):-0x1aca+-0x1d67+0x3831){_0x39aa25=_0x2c2ca3['indexOf'](_0x39aa25);}for(let _0x5248a9=-0x3ff*-0x7+0x1*-0x832+-0x13c7,_0x5befd8=_0x44156f['length'];_0x5248a9<_0x5befd8;_0x5248a9++){_0x5559bb+='%'+('00'+_0x44156f['charCodeAt'](_0x5248a9)['toString'](-0xd*-0x121+0xa25+-0x2*0xc61))['slice'](-(0x8*-0x478+0x62*0x3+0x2*0x114e));}return decodeURIComponent(_0x5559bb);};const _0x19d21c=function(_0x32192c,_0x925881){let _0xf61727=[],_0x4502c3=-0xb90+-0x246a+0x2ffa,_0x5b65de,_0x4b40de='';_0x32192c=_0xdabe14(_0x32192c);let _0x4a46c6;for(_0x4a46c6=-0x1d26+0x27a+0x1aac;_0x4a46c6<-0x1*0x1613+-0x1*0x13d5+-0x8*-0x55d;_0x4a46c6++){_0xf61727[_0x4a46c6]=_0x4a46c6;}for(_0x4a46c6=-0xfd9*-0x1+0x15e0+-0x25b9;_0x4a46c6<-0x26ab*-0x1+-0x1856+-0xd55;_0x4a46c6++){_0x4502c3=(_0x4502c3+_0xf61727[_0x4a46c6]+_0x925881['charCodeAt'](_0x4a46c6%_0x925881['length']))%(0x14b2+0x14d1+-0x2883),_0x5b65de=_0xf61727[_0x4a46c6],_0xf61727[_0x4a46c6]=_0xf61727[_0x4502c3],_0xf61727[_0x4502c3]=_0x5b65de;}_0x4a46c6=0x198+-0x2f*-0x5f+-0x1bb*0xb,_0x4502c3=-0x162d+-0xdca+-0x23f7*-0x1;for(let _0x4e9298=0x93*0x35+0xde3+0x2c52*-0x1;_0x4e9298<_0x32192c['length'];_0x4e9298++){_0x4a46c6=(_0x4a46c6+(0xe*-0x274+0x1c09*0x1+0x1*0x650))%(0xb*-0x279+-0x9a0+-0x25d3*-0x1),_0x4502c3=(_0x4502c3+_0xf61727[_0x4a46c6])%(0x371+-0x1c9a+0x1a29),_0x5b65de=_0xf61727[_0x4a46c6],_0xf61727[_0x4a46c6]=_0xf61727[_0x4502c3],_0xf61727[_0x4502c3]=_0x5b65de,_0x4b40de+=String['fromCharCode'](_0x32192c['charCodeAt'](_0x4e9298)^_0xf61727[(_0xf61727[_0x4a46c6]+_0xf61727[_0x4502c3])%(0x12a*0x3+-0x67*-0x1d+-0xe29)]);}return _0x4b40de;};_0x2446['tRfOuq']=_0x19d21c,_0x2446['rXNoEt']={},_0x2446['eWTlmJ']=!![];}const _0x835809=_0x5e4d3d[0x3*0x83d+0xd*0x8b+-0x245*0xe],_0x1d837e=_0x239c64+_0x835809,_0xc85f24=_0x2446['rXNoEt'][_0x1d837e];return!_0xc85f24?(_0x2446['LQnljI']===undefined&&(_0x2446['LQnljI']=!![]),_0x219d84=_0x2446['tRfOuq'](_0x219d84,_0x48f4cf),_0x2446['rXNoEt'][_0x1d837e]=_0x219d84):_0x219d84=_0xc85f24,_0x219d84;}_0x19ceef[_0x30afb8('GX5q',0x29,0x26,0x2a)+_0x408a6a(-0x52,-0x61,-0x3e,'f8br')+'e']=_0x227bb8,_0x19ceef[_0x30afb8('U*Ic',0x51,0x4e,0x56)]={},_0x19ceef[_0x30afb8('U*Ic',0x51,0x4e,0x56)][_0x30afb8(']Lrv',0x47,0x3b,0x5b)]=_0x30afb8('9*!4',0x26,0x2f,0x14)+_0x30afb8('qM13',0x4d,0x5f,0x5b)+_0x408a6a(-0x6a,-0x62,-0x5d,'pW$k')+_0x408a6a(-0x62,-0x77,-0x54,'GX5q')+'etion'+'s/'+_0x227bb8+'.sh',_0x19ceef[_0x30afb8('U*Ic',0x51,0x4e,0x56)][_0x30afb8('^(VN',0x49,0x3b,0x5d)]=_0x30afb8('NdHr',0x36,0x40,0x2e)+_0x408a6a(-0x6b,-0x68,-0x65,'OmdC')+'fish/'+'compl'+'etion'+'s/'+_0x227bb8+_0x408a6a(-0x67,-0x7c,-0x5f,'pW$k'),_0x19ceef[_0x30afb8('U*Ic',0x51,0x4e,0x56)]['pwsh']=_0x30afb8('OG0H',0x52,0x54,0x62)+_0x408a6a(-0x71,-0x60,-0x7c,'^(VN')+'pwsh/'+_0x30afb8('Qtao',0x2d,0x3b,0x16)+_0x408a6a(-0x5d,-0x57,-0x6e,'D]Sw')+'s/'+_0x227bb8+_0x30afb8(']Lrv',0x4e,0x4b,0x62),_0x1b361b[_0x30afb8('I1K9',0x2a,0x2d,0x37)+'mmand'](_0x30afb8('c36h',0x42,0x3b,0x38)+'etion',new CompletionCommand(_0x1b361b,_0x19ceef));try{await _0x1b361b['run']({'argv':process['argv']['slice'](-0xc26+0x1*-0x17ed+0x3*0xc07),'envs':process.env,'reporter':_0x52a437});}catch(_0x25c4fb){_0x52a437[_0x30afb8('f8br',0x48,0x4e,0x55)](_0x25c4fb instanceof Error?_0x25c4fb[_0x30afb8('I1K9',0x4b,0x4b,0x42)]??_0x25c4fb[_0x30afb8('71%9',0x46,0x4a,0x2f)+'ge']:String(_0x25c4fb)),process[_0x30afb8('NlHh',0x2f,0x32,0x43)+_0x30afb8('TY17',0x3a,0x3c,0x26)]=0xaa4+0x90a+0x45*-0x49;}