werkmeister 0.95.3 → 0.95.5

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.
Files changed (152) hide show
  1. package/dist/budget-7QMJAY27.js +4 -0
  2. package/dist/{cache-WZJGDU2D.js → cache-6FJH5GTO.js} +2 -2
  3. package/dist/{chunk-H3E3CMOV.js → chunk-223CMO5U.js} +2 -2
  4. package/dist/{chunk-TASRMG6C.js → chunk-3KZRHSUL.js} +2 -2
  5. package/dist/{chunk-CQEAZRQW.js → chunk-3LUDGYTS.js} +2 -2
  6. package/dist/{chunk-UNX5R5BF.js → chunk-4W67Z5S7.js} +3 -3
  7. package/dist/{chunk-FKT4ITVN.js → chunk-52Y6C7EC.js} +2 -2
  8. package/dist/{chunk-QWHCUY7V.js → chunk-5MOLNCIE.js} +2 -2
  9. package/dist/{chunk-2ASXSH6K.js → chunk-6LPDAIV7.js} +2 -2
  10. package/dist/{chunk-WXZ5XLD3.js → chunk-6RKTIHJH.js} +2 -2
  11. package/dist/{chunk-RNMIQO2N.js → chunk-AJ6ECKRK.js} +2 -2
  12. package/dist/{chunk-YZLZDDLA.js → chunk-CCSXOMF5.js} +2 -2
  13. package/dist/{chunk-YNZOTNUW.js → chunk-CQPW6RED.js} +2 -2
  14. package/dist/{chunk-DC44PMBU.js → chunk-CV3MBQYV.js} +2 -2
  15. package/dist/{chunk-GUDZBF7F.js → chunk-DGG7JPGH.js} +2 -2
  16. package/dist/chunk-FNJZGJOU.js +141 -0
  17. package/dist/{chunk-4323MUOQ.js → chunk-G57NXNLB.js} +2 -2
  18. package/dist/{chunk-CYQWUDQW.js → chunk-G5WNKEKG.js} +2 -2
  19. package/dist/{chunk-FKNFZNQ3.js → chunk-GEUGFGJA.js} +2 -2
  20. package/dist/{chunk-CLITYELX.js → chunk-HIQNZTEC.js} +2 -2
  21. package/dist/{chunk-H2XW5F6T.js → chunk-HLOD3DMR.js} +2 -2
  22. package/dist/{chunk-TLPNES7B.js → chunk-HRQCKPHM.js} +2 -2
  23. package/dist/{chunk-RO5CASBN.js → chunk-HXS63TFM.js} +2 -2
  24. package/dist/{chunk-4YYAAVN6.js → chunk-IY7NXCD3.js} +2 -2
  25. package/dist/chunk-JEHUZ4DV.js +4 -0
  26. package/dist/{chunk-BTF2TA6L.js → chunk-JIHDEY4U.js} +2 -2
  27. package/dist/{chunk-DKEC2AK5.js → chunk-JSNFM5SA.js} +2 -2
  28. package/dist/{chunk-2WS3J2DM.js → chunk-L2XZIPYC.js} +2 -2
  29. package/dist/{chunk-CYOM6IM6.js → chunk-L5BOEZQG.js} +2 -2
  30. package/dist/{chunk-WSSIG6K5.js → chunk-LLWWJL42.js} +2 -2
  31. package/dist/{chunk-RDA5PIPZ.js → chunk-MP2CZT6N.js} +2 -2
  32. package/dist/{chunk-5TZZHFSC.js → chunk-MWMW72D4.js} +2 -2
  33. package/dist/{chunk-NBIPWFBT.js → chunk-MZ6A6O26.js} +2 -2
  34. package/dist/{chunk-TBM54BUF.js → chunk-NUBPMPJQ.js} +2 -2
  35. package/dist/{chunk-PPPNDN3P.js → chunk-OPY2MU5Q.js} +2 -2
  36. package/dist/{chunk-N3XKQG5Y.js → chunk-P6UYMTFV.js} +2 -2
  37. package/dist/{chunk-VIL6N7EO.js → chunk-PAA3VRIJ.js} +2 -2
  38. package/dist/{chunk-3UNSGL3R.js → chunk-PMEKXTPT.js} +3 -3
  39. package/dist/chunk-PSCJ3SWB.js +13 -0
  40. package/dist/{chunk-T252BIFK.js → chunk-Q2RHQZ2Z.js} +2 -2
  41. package/dist/{chunk-OJBFAKNA.js → chunk-Q7MGFSWB.js} +2 -2
  42. package/dist/{chunk-ZM7KFU5Z.js → chunk-QJFOYBSB.js} +2 -2
  43. package/dist/{chunk-LCW7PAHN.js → chunk-QLQFJNZY.js} +2 -2
  44. package/dist/{chunk-IZEVGCZS.js → chunk-QMOXBUEH.js} +2 -2
  45. package/dist/{chunk-R5TI22BV.js → chunk-QRLKSWRJ.js} +2 -2
  46. package/dist/{chunk-X5M65LCT.js → chunk-RENA5E4C.js} +2 -2
  47. package/dist/{chunk-I367ZADE.js → chunk-SMICQ3K4.js} +2 -2
  48. package/dist/{chunk-MG5KFPMK.js → chunk-SO6GBFEQ.js} +2 -2
  49. package/dist/{chunk-V2TVDWU3.js → chunk-TIKJDY23.js} +2 -2
  50. package/dist/{chunk-UMGIBILE.js → chunk-UCR6E6PI.js} +2 -2
  51. package/dist/{chunk-XISNUXOK.js → chunk-UL3IU4YD.js} +2 -2
  52. package/dist/{chunk-LLP3H5M4.js → chunk-VBBVS6Z5.js} +2 -2
  53. package/dist/{chunk-7CLFAXKU.js → chunk-VF7TWW76.js} +2 -2
  54. package/dist/{chunk-4XAM6TTE.js → chunk-VJPJJVR6.js} +18 -18
  55. package/dist/{chunk-YTSKXM5S.js → chunk-VPAJKNSR.js} +2 -2
  56. package/dist/{chunk-B5YHE772.js → chunk-WKJFWAES.js} +2 -2
  57. package/dist/{chunk-PXT5642Z.js → chunk-WPYBJWOM.js} +2 -2
  58. package/dist/{chunk-RNRQ26WZ.js → chunk-XWAMXZRV.js} +2 -2
  59. package/dist/{chunk-VOPA7UCJ.js → chunk-Y4NGEJA2.js} +2 -2
  60. package/dist/{chunk-YJQM7Q4Z.js → chunk-YCABJ5LH.js} +2 -2
  61. package/dist/{chunk-P2CGSC56.js → chunk-YDC6EP5F.js} +2 -2
  62. package/dist/{chunk-26DZHYDY.js → chunk-YGBFRPCB.js} +2 -2
  63. package/dist/{chunk-HUFID7JR.js → chunk-YJCNNW6X.js} +2 -2
  64. package/dist/{chunk-YSJE6NRG.js → chunk-YTPRD2G3.js} +3 -3
  65. package/dist/{chunk-HXZKKRKT.js → chunk-ZEK7CNH2.js} +2 -2
  66. package/dist/{chunk-JVUTN4FW.js → chunk-ZGMZ47OW.js} +2 -2
  67. package/dist/{chunk-2XRDXCQV.js → chunk-ZYHBPDSY.js} +2 -2
  68. package/dist/clean-YBPUXQA4.js +8 -0
  69. package/dist/close_out-KAHC5NV6.js +8 -0
  70. package/dist/code-TC7BHEZL.js +4 -0
  71. package/dist/{config-RPFXSX53.js → config-IDCZTEIJ.js} +2 -2
  72. package/dist/{connect-7SPLF6FJ.js → connect-CKUIB3RO.js} +2 -2
  73. package/dist/{daemon-YBPCCPQP.js → daemon-LZ36WF6W.js} +2 -2
  74. package/dist/dashboard.js +1 -1
  75. package/dist/{detect-GRJNHI6J.js → detect-TCXAIFRE.js} +2 -2
  76. package/dist/{down-VPPUTRIN.js → down-37JIXHAH.js} +3 -3
  77. package/dist/fixture-JYGHKZ7I.js +18 -0
  78. package/dist/form-cli.js +1 -1
  79. package/dist/hooks-4IQGV4IT.js +4 -0
  80. package/dist/{hooks_gen-G4P6ARFL.js → hooks_gen-FGJD435F.js} +2 -2
  81. package/dist/infra-D5LESD2I.js +4 -0
  82. package/dist/init_workspace-KZPADTJE.js +4 -0
  83. package/dist/{intercept-PTRQWP2D.js → intercept-VKGXPKZA.js} +2 -2
  84. package/dist/{issue-W5WHBEEE.js → issue-JDSDMIDT.js} +2 -2
  85. package/dist/lib/agent_state.js +1 -1
  86. package/dist/lib/gate.js +1 -1
  87. package/dist/lib/pr_guard.js +1 -1
  88. package/dist/list_workspaces-T7BIK7MW.js +7 -0
  89. package/dist/logs-NDGGTM3X.js +6 -0
  90. package/dist/main.js +3 -3
  91. package/dist/mcp-proxy.js +1 -1
  92. package/dist/mcp.js +1 -1
  93. package/dist/{migrate-QPGPXKCQ.js → migrate-OOZFLP7O.js} +2 -2
  94. package/dist/notes-JP7GTQDA.js +4 -0
  95. package/dist/{open-JKLFSNAD.js → open-TDDNA5LT.js} +2 -2
  96. package/dist/{optimize-FIQKD2SG.js → optimize-AVR6I4R2.js} +2 -2
  97. package/dist/pause-ZKW3ZJZM.js +4 -0
  98. package/dist/pr-46E2WKHC.js +5 -0
  99. package/dist/proxy_reload-7UND7FKV.js +6 -0
  100. package/dist/{registry-IPY7A5DO.js → registry-INEN3LNE.js} +2 -2
  101. package/dist/remove-4LJFYLJS.js +7 -0
  102. package/dist/remove_workspace-IZ7Z33YC.js +8 -0
  103. package/dist/restart-CRVRU2ZB.js +8 -0
  104. package/dist/resume-6PFI6TWA.js +8 -0
  105. package/dist/{safari-CSGTFLUG.js → safari-ZSXY2CH4.js} +2 -2
  106. package/dist/{sandbox-WDMS6H2S.js → sandbox-IDX23YKB.js} +2 -2
  107. package/dist/{services-YDBTHSCL.js → services-UUYWPVQ7.js} +2 -2
  108. package/dist/{setup-WUGUNCKJ.js → setup-XM77NBXR.js} +2 -2
  109. package/dist/skills-EBCEFYYB.js +4 -0
  110. package/dist/slots-KUWYDTDQ.js +4 -0
  111. package/dist/{standards-Q7WVOKMT.js → standards-SYF4D42X.js} +2 -2
  112. package/dist/start_args-6X7FPR7L.js +4 -0
  113. package/dist/starting_prompt-6BFTAJIT.js +4 -0
  114. package/dist/stats-2OUOYH33.js +4 -0
  115. package/dist/{status-FXDKUFWC.js → status-QFZKVFSZ.js} +2 -2
  116. package/dist/{stop-VSU4QRLB.js → stop-7LEQTCYS.js} +2 -2
  117. package/dist/{telepresence-4SHS3GH3.js → telepresence-YLBDTTFG.js} +2 -2
  118. package/dist/{test-RUQQ3BE5.js → test-4CSCD3RJ.js} +2 -2
  119. package/dist/{tokens-D2CHDY76.js → tokens-F5H26X2Q.js} +2 -2
  120. package/dist/{up-VIEX3BL3.js → up-KR7KAKDB.js} +3 -3
  121. package/dist/{v4-BCS3OZDZ.js → v4-ENQCN57P.js} +2 -2
  122. package/dist/wait_load-TMGIEADE.js +4 -0
  123. package/dist/werkmeister-workspaces.vsix +0 -0
  124. package/dist/{workspace-T7UNGJUV.js → workspace-INIEF4AK.js} +2 -2
  125. package/package.json +4 -4
  126. package/dist/budget-VUN3FMOI.js +0 -4
  127. package/dist/chunk-42DW42BP.js +0 -138
  128. package/dist/chunk-BROW4FOT.js +0 -13
  129. package/dist/chunk-U3TVNR7U.js +0 -4
  130. package/dist/clean-WVYL3XPE.js +0 -8
  131. package/dist/close_out-RHRMUJNX.js +0 -8
  132. package/dist/code-CUZT2EDN.js +0 -4
  133. package/dist/fixture-GBE6DXZE.js +0 -15
  134. package/dist/hooks-WH5NWZZK.js +0 -4
  135. package/dist/infra-ALH3FARX.js +0 -4
  136. package/dist/init_workspace-4GYWFT5L.js +0 -4
  137. package/dist/list_workspaces-6E2OLL5K.js +0 -7
  138. package/dist/logs-UOG6GKWE.js +0 -6
  139. package/dist/notes-RTL4YKY5.js +0 -4
  140. package/dist/pause-L52EKGXK.js +0 -4
  141. package/dist/pr-ZX5WBUZ2.js +0 -5
  142. package/dist/proxy_reload-TNEUTXU5.js +0 -6
  143. package/dist/remove-V43IT66C.js +0 -7
  144. package/dist/remove_workspace-JORXD46D.js +0 -8
  145. package/dist/restart-4O4TLHQG.js +0 -8
  146. package/dist/resume-DPGYDCRK.js +0 -8
  147. package/dist/skills-PF3HAGNU.js +0 -4
  148. package/dist/slots-NRYQSGFH.js +0 -4
  149. package/dist/start_args-J7WYDCO5.js +0 -4
  150. package/dist/starting_prompt-7VT5ASK5.js +0 -4
  151. package/dist/stats-RE33HVQZ.js +0 -4
  152. package/dist/wait_load-IC6O2IJZ.js +0 -4
@@ -0,0 +1,4 @@
1
+ import { createRequire as __sandboxCreateRequire } from "node:module";
2
+ const require = __sandboxCreateRequire(import.meta.url);
3
+ import{e as x,n as L}from"./chunk-VJPJJVR6.js";import"./chunk-CV3MBQYV.js";import"./chunk-SMICQ3K4.js";import"./chunk-P6UYMTFV.js";import"./chunk-L5BOEZQG.js";import"./chunk-JIHDEY4U.js";import"./chunk-GEUGFGJA.js";import"./chunk-3LUDGYTS.js";import"./chunk-UL3IU4YD.js";import"./chunk-UCR6E6PI.js";import"./chunk-HIQNZTEC.js";import"./chunk-MWMW72D4.js";import"./chunk-NUBPMPJQ.js";import"./chunk-52Y6C7EC.js";import"./chunk-YTPRD2G3.js";import"./chunk-HXS63TFM.js";import"./chunk-6RKTIHJH.js";import"./chunk-YDC6EP5F.js";import{C as b,D as y,J as w,M as k,R as v,v as g,w as $,x as h}from"./chunk-PSCJ3SWB.js";import"./chunk-XWAMXZRV.js";import"./chunk-DGG7JPGH.js";import"./chunk-LLWWJL42.js";import"./chunk-G57NXNLB.js";import{p as f}from"./chunk-VPAJKNSR.js";import"./chunk-HRQCKPHM.js";import"./chunk-TIKJDY23.js";import"./chunk-Q7MGFSWB.js";import"./chunk-OPY2MU5Q.js";import"./chunk-VF7TWW76.js";import"./chunk-PAA3VRIJ.js";import"./chunk-Q2RHQZ2Z.js";import{a as i,f as p}from"./chunk-SO6GBFEQ.js";p();import O from"node:os";var S=2**30,M=i((n,t)=>Number.isFinite(n)?`${Number(n.toFixed(1))}${t}`:"no limit","limit");function P(n,t=process.platform){return n?`host load limit ${n}${t==="darwin"?" (not enforced on macOS)":""}`:"host load limit off"}i(P,"hostLoadText");async function T(n){let t=await b(),l=y(O.availableParallelism()),c=h(),m=await v(),r=L(),u=g(k(m,r??[])).map((e,o)=>{let s=c[e.feature]?.workspace,a=s&&f(s)?.services||null,N=s?w(s,a??void 0):null,B=o===0&&e.waitedMs>=3e5&&!e.parked&&$(t,r??[],e);return{...e,position:o+1,services:a,cost:N,holds:B}});if(n.json){let e=i(o=>Number.isFinite(o)?o:null,"n");console.log(JSON.stringify({budget:{memory:e(t.memory),cpus:e(t.cpus),preempt:t.preempt},host_load:l,leases:c,waiting:m,running:r?.map(o=>({feature:o.feature,cpus:o.cost.cpus,memory:o.cost.memory,rank:o.rank,busy:o.busy}))??null,waiters:u.map(o=>({feature:o.feature,position:o.position,services:o.services,cpus:o.cost?.cpus??null,memory:o.cost?.memory??null,waited_ms:o.waitedMs,gate:o.gate}))}));return}console.log(`Budget: ${M(t.memory/S," GiB")} memory, ${M(t.cpus," CPUs")}, ${P(l)}, preemption ${t.preempt?"on":"off"}`);let d=Object.entries(c).sort(([,e],[,o])=>e.slot-o.slot);console.log(d.length?"Slots:":"Slots: none held");for(let[e,o]of d)console.log(` ${o.slot} ${e}${o.workspace?` ${o.workspace}`:""}`);console.log(r?r.length?"Running:":"Running: none":"Running: docker unavailable");for(let e of[...r??[]].sort((o,s)=>s.cost.cpus-o.cost.cpus))console.log(` ${x(e)}`);console.log(u.length?"Waiting:":"Waiting: none");for(let e of u){let o=e.services?`${e.services.join(", ")}${e.gate?" for a running feature":""}`:"whole feature",s=e.cost?` (${Number(e.cost.cpus.toFixed(1))} CPUs, ${(e.cost.memory/S).toFixed(1)} GiB)`:"",a=e.waitedMs?` waited ${Math.round(e.waitedMs/6e4)} min${e.holds?", gets the next free room":""}`:"";console.log(` ${e.position}. ${e.feature} ${o}${s}${a}`)}}i(T,"run");export{P as hostLoadText,T as run};
4
+ //# sourceMappingURL=budget-7QMJAY27.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import"./chunk-U3TVNR7U.js";import{d as s}from"./chunk-UMGIBILE.js";import"./chunk-FKT4ITVN.js";import"./chunk-RNRQ26WZ.js";import"./chunk-WSSIG6K5.js";import"./chunk-7CLFAXKU.js";import{h as e,l as c}from"./chunk-VIL6N7EO.js";import"./chunk-T252BIFK.js";import{a as r,f as i}from"./chunk-MG5KFPMK.js";i();async function u(o){o.action!=="prune"&&(c(`Unknown action \`${String(o.action)}\` \u2014 the only action is \`prune\`.`),process.exit(2));let t=await s({name:typeof o.name=="string"?o.name:void 0,reset:!!o.reset,force:!!o.force,dryRun:!!o.dry_run});t.length||console.log("No caches in the registry.");for(let n of t){let a=n.ok?`${e.GREEN}\u2713${e.RESET}`:`${e.RED}\u2717${e.RESET}`;console.log(`${a} ${n.name} (${n.action}): ${n.detail}`)}t.some(n=>!n.ok)&&process.exit(1)}r(u,"run");export{u as run};
4
- //# sourceMappingURL=cache-WZJGDU2D.js.map
3
+ import"./chunk-JEHUZ4DV.js";import{d as s}from"./chunk-UCR6E6PI.js";import"./chunk-52Y6C7EC.js";import"./chunk-XWAMXZRV.js";import"./chunk-LLWWJL42.js";import"./chunk-VF7TWW76.js";import{h as e,l as c}from"./chunk-PAA3VRIJ.js";import"./chunk-Q2RHQZ2Z.js";import{a as r,f as i}from"./chunk-SO6GBFEQ.js";i();async function u(o){o.action!=="prune"&&(c(`Unknown action \`${String(o.action)}\` \u2014 the only action is \`prune\`.`),process.exit(2));let t=await s({name:typeof o.name=="string"?o.name:void 0,reset:!!o.reset,force:!!o.force,dryRun:!!o.dry_run});t.length||console.log("No caches in the registry.");for(let n of t){let a=n.ok?`${e.GREEN}\u2713${e.RESET}`:`${e.RED}\u2717${e.RESET}`;console.log(`${a} ${n.name} (${n.action}): ${n.detail}`)}t.some(n=>!n.ok)&&process.exit(1)}r(u,"run");export{u as run};
4
+ //# sourceMappingURL=cache-6FJH5GTO.js.map
@@ -1,8 +1,8 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import{b as f}from"./chunk-DKEC2AK5.js";import{t as c}from"./chunk-4XAM6TTE.js";import{b as u}from"./chunk-7CLFAXKU.js";import{h as o,j as a,m as n}from"./chunk-VIL6N7EO.js";import{a as s,f as i}from"./chunk-MG5KFPMK.js";i();function m(r,e){let t=r.feature||f(process.cwd()).FEATURE;return t||(n("Feature name required: pass it as an argument or set FEATURE in a .env file."),process.exit(1)),t==="infra"&&(n(`${e} the infra stack is not supported: every workspace shares it.`),process.exit(1)),t}s(m,"featureArg");function p(r,e){throw r instanceof u&&e[r.code]&&(n(r.message),a(e[r.code]),process.exit(1)),r}s(p,"reportHint");async function l(r){let e=m(r,"Pausing");console.log(`
3
+ import{b as f}from"./chunk-JSNFM5SA.js";import{t as c}from"./chunk-VJPJJVR6.js";import{b as u}from"./chunk-VF7TWW76.js";import{h as o,j as a,m as n}from"./chunk-PAA3VRIJ.js";import{a as s,f as i}from"./chunk-SO6GBFEQ.js";i();function m(r,e){let t=r.feature||f(process.cwd()).FEATURE;return t||(n("Feature name required: pass it as an argument or set FEATURE in a .env file."),process.exit(1)),t==="infra"&&(n(`${e} the infra stack is not supported: every workspace shares it.`),process.exit(1)),t}s(m,"featureArg");function p(r,e){throw r instanceof u&&e[r.code]&&(n(r.message),a(e[r.code]),process.exit(1)),r}s(p,"reportHint");async function l(r){let e=m(r,"Pausing");console.log(`
4
4
  ${o.BOLD}=== werkmeister pause: ${e} ===${o.RESET}
5
5
  `);try{let{containers:t}=await c(e);console.log(`
6
6
  ${o.GREEN}${o.BOLD}Paused '${e}': ${t.length} container(s) frozen, its Claude session is held.${o.RESET} Resume with: werkmeister feature resume ${e}
7
7
  `)}catch(t){p(t,{NOT_RUNNING:`Nothing to pause. Start it with: werkmeister feature up ${e}`,ALREADY_PAUSED:`Resume it with: werkmeister feature resume ${e}`,NO_WORKSPACE:"Run it from the workspace folder, or check: werkmeister workspace list",COMPOSE_PAUSE_FAILED:`Undo what did freeze with: werkmeister feature resume ${e}`})}}s(l,"run");export{m as a,p as b,l as c};
8
- //# sourceMappingURL=chunk-H3E3CMOV.js.map
8
+ //# sourceMappingURL=chunk-223CMO5U.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import{c as i,d as n,f as s}from"./chunk-R5TI22BV.js";import{a as o,f as t}from"./chunk-MG5KFPMK.js";t();import*as c from"node:fs";function a(){if(process.stdin.isTTY)return"";try{return c.readFileSync(0,"utf8")}catch{return""}}o(a,"readStdinTask");async function d(e){try{await s(e,void 0,{readStdinTask:a,build:e.build!==!1})}catch(r){throw r instanceof n&&(console.log(r.message),process.exit(1)),r instanceof i&&process.exit(1),r}}o(d,"run");export{a,d as b};
4
- //# sourceMappingURL=chunk-TASRMG6C.js.map
3
+ import{c as i,d as n,f as s}from"./chunk-QRLKSWRJ.js";import{a as o,f as t}from"./chunk-SO6GBFEQ.js";t();import*as c from"node:fs";function a(){if(process.stdin.isTTY)return"";try{return c.readFileSync(0,"utf8")}catch{return""}}o(a,"readStdinTask");async function d(e){try{await s(e,void 0,{readStdinTask:a,build:e.build!==!1})}catch(r){throw r instanceof n&&(console.log(r.message),process.exit(1)),r instanceof i&&process.exit(1),r}}o(d,"run");export{a,d as b};
4
+ //# sourceMappingURL=chunk-3KZRHSUL.js.map
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import{l as k,m as x}from"./chunk-WSSIG6K5.js";import{a as w}from"./chunk-VIL6N7EO.js";import{a as s,e as h,f as i}from"./chunk-MG5KFPMK.js";i();var j=h(w(),1);import*as c from"node:fs";import*as f from"node:path";function D(e){let t=e.split("/");return t.some((r,o)=>r==="node_modules"||o<t.length-1&&r.startsWith("."))}s(D,"pruned");function A(e,t=""){let r=[];for(let o of c.readdirSync(f.join(e,t),{withFileTypes:!0})){let a=t?`${t}/${o.name}`:o.name;if(o.isDirectory()){if(o.name==="node_modules"||o.name.startsWith("."))continue;r.push(...A(e,a))}else o.isFile()&&r.push(a)}return r}s(A,"walk");function z(e,t){let[r,o]=t(["git","-C",e,"ls-files","--cached","--others","--exclude-standard"]);return(r===0?o.split(`
3
+ import{l as k,m as x}from"./chunk-LLWWJL42.js";import{a as w}from"./chunk-PAA3VRIJ.js";import{a as s,e as h,f as i}from"./chunk-SO6GBFEQ.js";i();var j=h(w(),1);import*as c from"node:fs";import*as f from"node:path";function D(e){let t=e.split("/");return t.some((r,o)=>r==="node_modules"||o<t.length-1&&r.startsWith("."))}s(D,"pruned");function A(e,t=""){let r=[];for(let o of c.readdirSync(f.join(e,t),{withFileTypes:!0})){let a=t?`${t}/${o.name}`:o.name;if(o.isDirectory()){if(o.name==="node_modules"||o.name.startsWith("."))continue;r.push(...A(e,a))}else o.isFile()&&r.push(a)}return r}s(A,"walk");function z(e,t){let[r,o]=t(["git","-C",e,"ls-files","--cached","--others","--exclude-standard"]);return(r===0?o.split(`
4
4
  `).map(n=>n.trim()).filter(Boolean):A(e)).filter(n=>!D(n)&&c.existsSync(f.join(e,n))).sort()}s(z,"listRepoFiles");function y(e,t){return c.readFileSync(f.join(e.root,t),"utf8")}s(y,"readText");function S(e,t){if(!e.files.includes(t))return null;let r=JSON.parse(y(e,t));return r&&typeof r=="object"&&!Array.isArray(r)?r:null}s(S,"readJson");function J(e){return(0,j.parseAllDocuments)(e).map(t=>{if(t.errors.length)throw new Error(t.errors[0].message);return t.toJS()})}s(J,"yamlDocs");function O(e){try{let t=x(e,{capture:!0,timeout:120});return[t.status,t.status===0?t.stdout||"":(t.stderr||t.stdout||"").trim()]}catch(t){if(t instanceof k&&t.code==="ENOENT")return[127,`${e[0]}: command not found`];if(t instanceof k&&t.code==="ETIMEDOUT")return[124,`${e.join(" ")}: timed out`];throw t}}s(O,"stdoutRunner");i();var b=h(w(),1);import*as m from"node:path";i();function g(e,t){return{value:e,source:t,confidence:"stated"}}s(g,"stated");function I(e,t){return{value:e,source:t,confidence:"guessed"}}s(I,"guessed");var T={npm:"npm install",pnpm:"corepack enable && pnpm install",yarn:"corepack enable && yarn install"},W={npm:["package-lock.json","npm ci"],pnpm:["pnpm-lock.yaml","corepack enable && pnpm install --frozen-lockfile"]};function K(e){return[e("pnpm-lock.yaml")&&"pnpm install --frozen-lockfile",e("package-lock.json")&&"npm ci",e("yarn.lock")&&(e(".yarnrc.yml")?"yarn install --immutable":"yarn install --frozen-lockfile"),e("uv.lock")&&"uv sync --frozen"].filter(t=>!!t)}s(K,"frozenInstalls");function F(e,t){let r=s(n=>new RegExp("^"+n.replace(/^\.\//,"").replace(/\/+$/,"").replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*\*/g,"\0").replace(/\*/g,"[^/]+").replace(/\0/g,".+")+"$"),"toRe"),o=e.filter(n=>!n.startsWith("!")).map(r),a=e.filter(n=>n.startsWith("!")).map(n=>r(n.slice(1)));return t.filter(n=>n.endsWith("/package.json")).map(n=>m.posix.dirname(n)).filter(n=>o.some(l=>l.test(n))&&!a.some(l=>l.test(n))).sort()}s(F,"expandWorkspaceGlobs");function M(e,t=null,r=null){let o=s(p=>e.files.includes(p),"has"),a=o("pnpm-lock.yaml")||o("pnpm-workspace.yaml")?"pnpm":o("yarn.lock")?"yarn":"npm",n=S(e,"package.json");if(!n)return{pm:a,packageDirs:[],setupName:null,setupFields:{}};let l=[],u="package.json";if(o("pnpm-workspace.yaml")){let p=(0,b.parse)(y(e,"pnpm-workspace.yaml"))?.packages;l=Array.isArray(p)?p.map(String):[],u="pnpm-workspace.yaml"}else{let p=n.workspaces;l=Array.isArray(p)?p.map(String):Array.isArray(p?.packages)?p.packages.map(String):[],l.length&&(u="package.json \u2192 workspaces")}let d=W[a],E=d&&o(d[0])?d[1]:T[a];return{pm:a,packageDirs:F(l,e.files),setupName:t??`${m.basename(e.root)}-install`,setupFields:{command:g(E,`${u} (${a})`),node_modules_volume:g(r??`${m.basename(e.root)}-node-modules`,u)}}}s(M,"detectWorkspace");export{z as a,y as b,S as c,J as d,O as e,g as f,I as g,K as h,M as i};
5
- //# sourceMappingURL=chunk-CQEAZRQW.js.map
5
+ //# sourceMappingURL=chunk-3LUDGYTS.js.map
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import{a as wt}from"./chunk-YJQM7Q4Z.js";import{a as lx}from"./chunk-IZEVGCZS.js";import{R as fx}from"./chunk-YSJE6NRG.js";import{j as h0,l as p0}from"./chunk-VIL6N7EO.js";import{a as s,b as Q0,c as G,e as v0,f as c}from"./chunk-MG5KFPMK.js";var _x=G((en,Sx)=>{"use strict";c();Sx.exports=Ot;function Ut(x){let e={defaultWidth:0,output:process.stdout,tty:Q0("tty")};return x?(Object.keys(e).forEach(function(t){x[t]||(x[t]=e[t])}),x):e}s(Ut,"normalizeOpts");function Ot(x){let e=Ut(x);if(e.output.getWindowSize)return e.output.getWindowSize()[0]||e.defaultWidth;if(e.tty.getWindowSize)return e.tty.getWindowSize()[1]||e.defaultWidth;if(e.output.columns)return e.output.columns;if(process.env.CLI_WIDTH){let t=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(t)&&t!==0)return t}return e.defaultWidth}s(Ot,"cliWidth")});var $x=G((Tn,jx)=>{c();var Qt=Q0("stream"),ne=class extends Qt{static{s(this,"MuteStream")}#t=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#x(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#e(e,...t){typeof this._dest?.[e]=="function"&&this._dest[e](...t),typeof this._src?.[e]=="function"&&this._src[e](...t)}get isTTY(){return this.#t!==null?this.#t:this.#x("isTTY",!1)}set isTTY(e){this.#t=e}get rows(){return this.#x("rows")}get columns(){return this.#x("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.slice(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#e("destroy",...e)}destroySoon(...e){return this.#e("destroySoon",...e)}close(...e){return this.#e("close",...e)}};jx.exports=ne});var zx=G((ye,we)=>{"use strict";c();Object.defineProperty(ye,"__esModule",{value:!0});var N0;ye.default=()=>{if(typeof we=="object"&&typeof we.exports=="object")return N0=N0||Q0("fs"),N0;throw new Error("File system is not available")}});var d0=G(Se=>{"use strict";c();Object.defineProperty(Se,"__esModule",{value:!0});Se.default=(x,e,t)=>({confidence:t,name:e.name(x),lang:e.language?e.language():void 0})});var Jx=G(I0=>{"use strict";c();var f2=I0&&I0.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(I0,"__esModule",{value:!0});var Yx=f2(d0()),_e=class{static{s(this,"Ascii")}name(){return"ASCII"}match(e){let t=e.rawInput;for(let r=0;r<e.rawLen;r++){let n=t[r];if(n<32||n>126)return(0,Yx.default)(e,this,0)}return(0,Yx.default)(e,this,100)}};I0.default=_e});var Qx=G(L0=>{"use strict";c();var l2=L0&&L0.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(L0,"__esModule",{value:!0});var d2=l2(d0()),Ee=class{static{s(this,"Utf8")}name(){return"UTF-8"}match(e){let t=!1,r=0,n=0,i=0,a,o=e.rawInput;e.rawLen>=3&&(o[0]&255)==239&&(o[1]&255)==187&&(o[2]&255)==191&&(t=!0);for(let f=0;f<e.rawLen;f++){let l=o[f];if(l&128){if((l&224)==192)i=1;else if((l&240)==224)i=2;else if((l&248)==240)i=3;else{if(n++,n>5)break;i=0}for(;f++,!(f>=e.rawLen);){if((o[f]&192)!=128){n++;break}if(--i==0){r++;break}}}}if(a=0,t&&n==0)a=100;else if(t&&r>n*10)a=80;else if(r>3&&n==0)a=100;else if(r>0&&n==0)a=80;else if(r==0&&n==0)a=10;else if(r>n*10)a=25;else return null;return(0,d2.default)(e,this,a)}};L0.default=Ee});var Zx=G(H=>{"use strict";c();var u2=H&&H.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(H,"__esModule",{value:!0});H.UTF_32LE=H.UTF_32BE=H.UTF_16LE=H.UTF_16BE=void 0;var Re=u2(d0()),De=class{static{s(this,"UTF_16BE")}name(){return"UTF-16BE"}match(e){let t=e.rawInput;return t.length>=2&&(t[0]&255)==254&&(t[1]&255)==255?(0,Re.default)(e,this,100):null}};H.UTF_16BE=De;var Be=class{static{s(this,"UTF_16LE")}name(){return"UTF-16LE"}match(e){let t=e.rawInput;return t.length>=2&&(t[0]&255)==255&&(t[1]&255)==254?t.length>=4&&t[2]==0&&t[3]==0?null:(0,Re.default)(e,this,100):null}};H.UTF_16LE=Be;var K0=class{static{s(this,"UTF_32")}name(){return"UTF-32"}getChar(e,t){return-1}match(e){let t=0,r=0,n=!1,i=0,a=e.rawLen/4*4,o=e.rawInput;if(a==0)return null;this.getChar(o,0)==65279&&(n=!0);for(let f=0;f<a;f+=4){let l=this.getChar(o,f);l<0||l>=1114111||l>=55296&&l<=57343?r+=1:t+=1}return n&&r==0?i=100:n&&t>r*10?i=80:t>3&&r==0?i=100:t>0&&r==0?i=80:t>r*10&&(i=25),i==0?null:(0,Re.default)(e,this,i)}},Ie=class extends K0{static{s(this,"UTF_32BE")}name(){return"UTF-32BE"}getChar(e,t){return(e[t+0]&255)<<24|(e[t+1]&255)<<16|(e[t+2]&255)<<8|e[t+3]&255}};H.UTF_32BE=Ie;var Le=class extends K0{static{s(this,"UTF_32LE")}name(){return"UTF-32LE"}getChar(e,t){return(e[t+3]&255)<<24|(e[t+2]&255)<<16|(e[t+1]&255)<<8|e[t+0]&255}};H.UTF_32LE=Le});var et=G($=>{"use strict";c();var h2=$&&$.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty($,"__esModule",{value:!0});$.gb_18030=$.euc_kr=$.euc_jp=$.big5=$.sjis=void 0;var p2=h2(d0());function b2(x,e){let t=s((r,n,i,a)=>{if(a<i)return-1;let o=Math.floor(i+a>>>1);return n>r[o]?t(r,n,o+1,a):n<r[o]?t(r,n,i,o-1):o},"find");return t(x,e,0,x.length-1)}s(b2,"binarySearch");var Te=class{static{s(this,"IteratedChar")}constructor(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1}reset(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1}nextByte(e){return this.nextIndex>=e.rawLen?(this.done=!0,-1):e.rawInput[this.nextIndex++]&255}},u0=class{static{s(this,"mbcs")}constructor(){this.commonChars=[]}name(){return"mbcs"}match(e){let t=0,r=0,n=0,i=0,a=0,o=new Te;e:{for(o.reset();this.nextChar(o,e);){if(i++,o.error)n++;else{let f=o.charValue&4294967295;f>255&&(t++,this.commonChars!=null&&b2(this.commonChars,f)>=0&&r++)}if(n>=2&&n*5>=t)break e}if(t<=10&&n==0){t==0&&i<10?a=0:a=10;break e}if(t<20*n){a=0;break e}if(this.commonChars==null)a=30+t-20*n,a>100&&(a=100);else{let l=90/Math.log(t/4);a=Math.floor(Math.log(r+1)*l+10),a=Math.min(a,100)}}return a==0?null:(0,p2.default)(e,this,a)}nextChar(e,t){return!0}},Fe=class extends u0{static{s(this,"sjis")}constructor(){super(...arguments),this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return"Shift_JIS"}language(){return"ja"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let r=e.charValue=e.nextByte(t);if(r<0)return!1;if(r<=127||r>160&&r<=223)return!0;let n=e.nextByte(t);return n<0?!1:(e.charValue=r<<8|n,n>=64&&n<=127||n>=128&&n<=255||(e.error=!0),!0)}};$.sjis=Fe;var ve=class extends u0{static{s(this,"big5")}constructor(){super(...arguments),this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return"Big5"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let r=e.charValue=e.nextByte(t);if(r<0)return!1;if(r<=127||r==255)return!0;let n=e.nextByte(t);return n<0?!1:(e.charValue=e.charValue<<8|n,(n<64||n==127||n==255)&&(e.error=!0),!0)}};$.big5=ve;function Xx(x,e){x.index=x.nextIndex,x.error=!1;let t=0,r=0,n=0;e:{if(t=x.charValue=x.nextByte(e),t<0){x.done=!0;break e}if(t<=141)break e;if(r=x.nextByte(e),x.charValue=x.charValue<<8|r,t>=161&&t<=254){r<161&&(x.error=!0);break e}if(t==142){r<161&&(x.error=!0);break e}t==143&&(n=x.nextByte(e),x.charValue=x.charValue<<8|n,n<161&&(x.error=!0))}return x.done==!1}s(Xx,"eucNextChar");var Ce=class extends u0{static{s(this,"euc_jp")}constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=Xx}name(){return"EUC-JP"}language(){return"ja"}};$.euc_jp=Ce;var Pe=class extends u0{static{s(this,"euc_kr")}constructor(){super(...arguments),this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=Xx}name(){return"EUC-KR"}language(){return"ko"}};$.euc_kr=Pe;var ke=class extends u0{static{s(this,"gb_18030")}constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return"GB18030"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let r=0,n=0,i=0,a=0;e:{if(r=e.charValue=e.nextByte(t),r<0){e.done=!0;break e}if(r<=128)break e;if(n=e.nextByte(t),e.charValue=e.charValue<<8|n,r>=129&&r<=254){if(n>=64&&n<=126||n>=80&&n<=254)break e;if(n>=48&&n<=57&&(i=e.nextByte(t),i>=129&&i<=254&&(a=e.nextByte(t),a>=48&&a<=57))){e.charValue=e.charValue<<16|i<<8|a;break e}e.error=!0;break e}}return e.done==!1}};$.gb_18030=ke});var tt=G(L=>{"use strict";c();var m2=L&&L.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(L,"__esModule",{value:!0});L.KOI8_R=L.windows_874=L.windows_1258=L.windows_1257=L.windows_1256=L.windows_1251=L.ISO_8859_9=L.ISO_8859_8=L.ISO_8859_7=L.ISO_8859_6=L.ISO_8859_5=L.ISO_8859_2=L.ISO_8859_1=void 0;var xt=m2(d0()),g2=16777215,W0=class{static{s(this,"NGramParser")}constructor(e,t){this.byteIndex=0,this.ngram=0,this.ngramCount=0,this.hitCount=0,this.spaceChar=32,this.ngramList=e,this.byteMap=t}search(e,t){let r=0;return e[r+32]<=t&&(r+=32),e[r+16]<=t&&(r+=16),e[r+8]<=t&&(r+=8),e[r+4]<=t&&(r+=4),e[r+2]<=t&&(r+=2),e[r+1]<=t&&(r+=1),e[r]>t&&(r-=1),r<0||e[r]!=t?-1:r}lookup(e){this.ngramCount+=1,this.search(this.ngramList,e)>=0&&(this.hitCount+=1)}addByte(e){this.ngram=(this.ngram<<8)+(e&255)&g2,this.lookup(this.ngram)}nextByte(e){return this.byteIndex>=e.inputLen?-1:e.inputBytes[this.byteIndex++]&255}parse(e,t){let r,n=!1;for(this.spaceChar=t;(r=this.nextByte(e))>=0;){let a=this.byteMap[r];a!=0&&(a==this.spaceChar&&n||this.addByte(a),n=a==this.spaceChar)}this.addByte(this.spaceChar);let i=this.hitCount/this.ngramCount;return i>.33?98:Math.floor(i*300)}},C=class{static{s(this,"NGramsPlusLang")}constructor(e,t){this.fLang=e,this.fNGrams=t}},w2=s(x=>Array.isArray(x)&&isFinite(x[0]),"isFlatNgrams"),M=class{static{s(this,"sbcs")}constructor(){this.spaceChar=32,this.nGramLang=void 0}ngrams(){return[]}byteMap(){return[]}name(e){return"sbcs"}language(){return this.nGramLang}match(e){this.nGramLang=void 0;let t=this.ngrams();if(w2(t)){let i=new W0(t,this.byteMap()).parse(e,this.spaceChar);return i<=0?null:(0,xt.default)(e,this,i)}let r=-1;for(let n=t.length-1;n>=0;n--){let i=t[n],o=new W0(i.fNGrams,this.byteMap()).parse(e,this.spaceChar);o>r&&(r=o,this.nGramLang=i.fLang)}return r<=0?null:(0,xt.default)(e,this,r)}},Ue=class extends M{static{s(this,"ISO_8859_1")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new C("da",[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new C("de",[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new C("en",[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new C("es",[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,15953440]),new C("fr",[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new C("it",[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new C("nl",[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new C("no",[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new C("pt",[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,14905120,15197039]),new C("sv",[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,14971424,16151072])]}name(e){return e&&e.c1Bytes?"windows-1252":"ISO-8859-1"}};L.ISO_8859_1=Ue;var Oe=class extends M{static{s(this,"ISO_8859_2")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new C("cs",[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,12477728,14773997,15296623,15540336,15540339,15559968,16278884]),new C("hu",[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,14773792,15299360]),new C("pl",[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,15955744]),new C("ro",[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,12216608,15625760])]}name(e){return e&&e.c1Bytes?"windows-1250":"ISO-8859-2"}};L.ISO_8859_2=Oe;var Me=class extends M{static{s(this,"ISO_8859_5")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,13688280,13689580,13884960,14015468,14015960,14016994,14017056,14164191,14210336,14211104,14216992,14407133,14407712,14413021,14536736,14538016,14538965,14538991,14540320,14540498,14557394,14557407,14557409,14602784,14602960,14603230,14604576,14605292,14605344,14606818,14671579,14672085,14672088,14672094,14733522,14734804,14803664,14803666,14803672,14806816,14865883,14868e3,14868192,14871584,15196894,15459616]}name(){return"ISO-8859-5"}language(){return"ru"}};L.ISO_8859_5=Me;var Ae=class extends M{static{s(this,"ISO_8859_6")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,13050055,13091104,13093408,13095200,13100064,13100227,13100231,13100232,13100234,13100236,13100237,13100239,13100243,13100249,13100258,13100261,13100264,13100266,13100320,13100576,13100746,13115591,13181127,13181153,13181156,13181157,13181160,13246663,13574343,13617440,13705415,13748512,13836487,14229703,14279913,14805536,14950599,14993696,15001888,15002144,15016135,15058720,15059232,15066656,15081671,15147207,15189792,15255524,15263264,15278279,15343815,15343845,15343848,15386912,15388960,15394336]}name(){return"ISO-8859-6"}language(){return"ar"}};L.ISO_8859_6=Ae;var je=class extends M{static{s(this,"ISO_8859_7")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,14672160,14754017,14754036,14805280,14806304,14807292,14807584,14936545,15067424,15069728,15147252,15199520,15200800,15278324,15327520,15330014,15331872,15393257,15393268,15525152,15540449,15540453,15540464,15589664,15725088,15725856,15790069,15790575,15793184,15868129,15868133,15868138,15868144,15868148,15983904,15984416,15987951,16048416,16048617,16050157,16050162,16050666,16052e3,16052213,16054765,16379168,16706848]}name(e){return e&&e.c1Bytes?"windows-1253":"ISO-8859-7"}language(){return"el"}};L.ISO_8859_7=je;var $e=class extends M{static{s(this,"ISO_8859_8")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new C("he",[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,14744096,14950624,14950625,14950628,14950636,14950638,14950649,15001056,15065120,15068448,15068960,15071264,15071776,15278308,15328288,15328762,15329773,15330592,15331104,15333408,15333920,15474912,15474916,15523872,15524896,15540448,15540449,15540452,15540460,15540462,15540473,15655968,15671524,15787040,15788320,15788525,15920160,16261348,16312813,16378912,16392416,16392417,16392420,16392428,16392430,16392441]),new C("he",[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,14688484,14688492,14688493,14688506,14738464,14738916,14740512,14741024,14754020,14754029,14754042,14950628,14950633,14950636,14950637,14950639,14950648,14950650,15002656,15065120,15066144,15196192,15327264,15327520,15328288,15474916,15474925,15474938,15528480,15530272,15591913,15591920,15591928,15605988,15605997,15606010,15655200,15655968,15918112,16326884,16326893,16326906,16376864,16441376,16442400,16442857])]}name(e){return e&&e.c1Bytes?"windows-1255":"ISO-8859-8"}language(){return"he"}};L.ISO_8859_8=$e;var Ne=class extends M{static{s(this,"ISO_8859_9")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,16608800,16608868,16609021,16642301]}name(e){return e&&e.c1Bytes?"windows-1254":"ISO-8859-9"}language(){return"tr"}};L.ISO_8859_9=Ne;var Ke=class extends M{static{s(this,"windows_1251")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,14740968,14742268,14937632,15068156,15068648,15069682,15069728,15212783,15263008,15263776,15269664,15459821,15460384,15465709,15589408,15590688,15591653,15591679,15592992,15593186,15605986,15605999,15606001,15655456,15655648,15655918,15657248,15657980,15658016,15659506,15724267,15724773,15724776,15724782,15786210,15787492,15856352,15856354,15856360,15859488,15918571,15920672,15920880,15924256,16249582,16512288]}name(){return"windows-1251"}language(){return"ru"}};L.windows_1251=Ke;var We=class extends M{static{s(this,"windows_1256")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,13050055,13091104,13093408,13095200,13099296,13099459,13099463,13099464,13099466,13099468,13099469,13099471,13099475,13099482,13099486,13099491,13099494,13099501,13099808,13100064,13100234,13115591,13181127,13181149,13181153,13181155,13181158,13246663,13574343,13617440,13705415,13748512,13836487,14295239,14344684,14544160,14753991,14797088,14806048,14806304,14885063,14927648,14928160,14935072,14950599,15016135,15058720,15124449,15131680,15474887,15540423,15540451,15540454,15583520,15585568,15590432]}name(){return"windows-1256"}language(){return"ar"}};L.windows_1256=We;var qe=class extends M{static{s(this,"windows_1257")}match(e){return e.inputBytes.some(t=>t>=128)?super.match(e):null}byteMap(){let e=new Array(256).fill(32);e[39]=0;for(let t=65;t<=90;t++)e[t]=t+32;for(let t=97;t<=122;t++)e[t]=t;e[142]=142,e[168]=e[184]=184,e[170]=e[186]=186,e[175]=e[191]=191,e[181]=181;for(let t=192;t<=214;t++)e[t]=t+32;for(let t=216;t<=222;t++)e[t]=t+32;e[223]=223;for(let t=224;t<=246;t++)e[t]=t;for(let t=248;t<=254;t++)e[t]=t;return e}ngrams(){return[new C("et",[2122090,2122098,2123109,2124135,2124385,2124641,2124645,2124649,2124655,2124661,2124897,2125417,2125678,2126441,2126693,2126949,6365281,6365290,6365291,6365292,6382112,6382624,6384499,6386549,6386785,6387297,6561908,6578464,6583667,6627435,6627443,6645100,6645107,6646816,6646885,6646900,6648608,6648692,6889579,6906912,6910570,6910752,6971680,7037299,7038309,7039346,7040879,7041893,7041908,7104875,7107616,7544929,7544939,7562528,7562604,7566437,7566441,7566708,7627115,7627124,7629088,7697184,7697253,7697505]),new C("lv",[2122098,2122601,2122849,2124146,2124154,2124897,2125282,2125921,2125938,2126433,2126689,2126699,2126949,2127214,2127457,6365289,6365301,6365302,6382185,6383904,6384499,6384751,6385778,6386293,6386464,6386806,6449509,6452512,6515052,6515060,6578464,6578546,6583584,6584864,6644850,6646123,6646643,6647393,6648608,6680693,6889577,6907236,6907376,6908642,6909046,7041908,7102836,7106404,7233824,7300193,7496043,7501166,7544947,7544949,7544950,7566453,7566574,7632160,7632489,7676022,7695904,7697184,7758188,14840608]),new C("lt",[2122089,2122341,2124146,2124641,2124905,2125167,2126433,2126689,2126699,2126709,2126945,2126949,2126965,2127457,2127465,6365300,6365424,6383904,6383988,6384112,6384738,6384993,6385268,6386274,6386292,6386976,6387050,6418553,6447392,6448489,6448494,6647401,6648949,6889569,6889577,6889579,6889581,6906217,6907246,6907252,6909543,6910496,6910752,6942827,6971757,6972704,7037289,7037292,7103073,7104869,7170419,7171947,7269152,7301733,7302009,7303968,7496176,7544937,7544939,7544950,7564129,7629088,7632246,7957356])]}name(){return"windows-1257"}};L.windows_1257=qe;var Ve=class extends M{static{s(this,"windows_1258")}match(e){return e.inputBytes.some(t=>t>=128)?super.match(e):null}byteMap(){let e=new Array(256).fill(32);e[39]=0;for(let t=65;t<=90;t++)e[t]=t+32;for(let t=97;t<=122;t++)e[t]=t;e[131]=131,e[136]=136,e[140]=e[156]=156,e[159]=255,e[170]=170,e[181]=181,e[186]=186;for(let t=192;t<=203;t++)e[t]=t+32;e[204]=204;for(let t=205;t<=209;t++)e[t]=t+32;e[210]=210;for(let t=211;t<=214;t++)e[t]=t+32;for(let t=216;t<=221;t++)e[t]=t+32;e[222]=222,e[223]=223;for(let t=224;t<=246;t++)e[t]=t;for(let t=248;t<=253;t++)e[t]=t;return e[255]=255,e}ngrams(){return[2122600,2122721,2123625,2123887,2125415,2125928,2126952,2126953,2126962,2127465,2127584,6419060,6496355,6496374,6514720,6514925,6545763,6758504,6758510,6758516,6758518,6812782,6815198,6815221,6824052,6844402,6876526,6889582,6889588,6941394,6941420,6941426,7217251,7217262,7217268,7235360,7235572,7235581,7235616,7302759,7336547,7610483,7629053,7629290,7631471,7676020,7760362,7790624,13396256,13397607,14557288,14771048,15395950,15397492,15494759,15496224,15560296,15885088,15886624,15887904,15889440,16018976,16108649,16643532]}name(){return"windows-1258"}language(){return"vi"}};L.windows_1258=Ve;var Ge=class extends M{static{s(this,"windows_874")}byteMap(){let e=new Array(256).fill(32);e[39]=0;for(let t=65;t<=90;t++)e[t]=t+32;for(let t=97;t<=122;t++)e[t]=t;for(let t=161;t<=218;t++)e[t]=t;for(let t=223;t<=251;t++)e[t]=t;return e}ngrams(){return[2138578,2138856,2146514,2148291,2154949,10604985,10605251,10669479,10671554,10799058,11064263,11195847,11200960,11200995,11910083,12042976,12042979,12047848,12132544,12165586,12173522,12305360,12314553,12636873,12828960,12829619,12829633,12832936,12832994,12837026,13091779,13095353,13095617,13096117,13226679,13226724,13293544,13477063,13674707,13689538,13744416,13805473,13812171,13812452,13812512,13812704,13814226,13821111,13879249,13940155,14009017,14010324,14149837,14721749,14728167,14796240,14860964,14920425,14924193,14989250,15258279,15262634,15319250,15328185]}name(){return"windows-874"}language(){return"th"}};L.windows_874=Ge;var He=class extends M{static{s(this,"KOI8_R")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,12701385,12702936,12963032,12963529,12964820,12964896,13094688,13181136,13223200,13224224,13226272,13419982,13420832,13424846,13549856,13550880,13552069,13552081,13553440,13553623,13574352,13574355,13574359,13617103,13617696,13618392,13618464,13620180,13621024,13621185,13684684,13685445,13685449,13685455,13812183,13813188,13881632,13882561,13882569,13882583,13944268,13946656,13946834,13948960,14272544,14603471]}name(){return"KOI8-R"}language(){return"ru"}};L.KOI8_R=He});var rt=G(X=>{"use strict";c();var y2=X&&X.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(X,"__esModule",{value:!0});X.ISO_2022_CN=X.ISO_2022_KR=X.ISO_2022_JP=void 0;var S2=y2(d0()),R0=class{static{s(this,"ISO_2022")}constructor(){this.escapeSequences=[]}name(){return"ISO_2022"}match(e){let t,r,n,i=0,a=0,o=0,f,l=e.inputBytes,p=e.inputLen;e:for(t=0;t<p;t++){if(l[t]==27){x:for(n=0;n<this.escapeSequences.length;n++){let d=this.escapeSequences[n];if(p-t<d.length)continue x;for(r=1;r<d.length;r++)if(d[r]!=l[t+r])continue x;i++,t+=d.length-1;continue e}a++}(l[t]==14||l[t]==15)&&o++}return i==0?null:(f=(100*i-100*a)/(i+a),i+o<5&&(f-=(5-(i+o))*10),f<=0?null:(0,S2.default)(e,this,f))}},ze=class extends R0{static{s(this,"ISO_2022_JP")}constructor(){super(...arguments),this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return"ISO-2022-JP"}language(){return"ja"}};X.ISO_2022_JP=ze;var Ye=class extends R0{static{s(this,"ISO_2022_KR")}constructor(){super(...arguments),this.escapeSequences=[[27,36,41,67]]}name(){return"ISO-2022-KR"}language(){return"kr"}};X.ISO_2022_KR=Ye;var Je=class extends R0{static{s(this,"ISO_2022_CN")}constructor(){super(...arguments),this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return"ISO-2022-CN"}language(){return"zh"}};X.ISO_2022_CN=Je});var nt=G(q0=>{"use strict";c();Object.defineProperty(q0,"__esModule",{value:!0});q0.isByteArray=void 0;var _2=s(x=>x==null||typeof x!="object"?!1:isFinite(x.length)&&x.length>=0,"isByteArray");q0.isByteArray=_2});var it=G(R=>{"use strict";c();var E2=R&&R.__createBinding||(Object.create?function(x,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:s(function(){return e[t]},"get")}),Object.defineProperty(x,r,n)}:function(x,e,t,r){r===void 0&&(r=t),x[r]=e[t]}),D2=R&&R.__setModuleDefault||(Object.create?function(x,e){Object.defineProperty(x,"default",{enumerable:!0,value:e})}:function(x,e){x.default=e}),G0=R&&R.__importStar||function(){var x=s(function(e){return x=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},x(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=x(e),n=0;n<r.length;n++)r[n]!=="default"&&E2(t,e,r[n]);return D2(t,e),t}}(),Ze=R&&R.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(R,"__esModule",{value:!0});R.detectFileSync=R.detectFile=R.analyse=R.detect=void 0;var st=Ze(zx()),B2=Ze(Jx()),I2=Ze(Qx()),V0=G0(Zx()),T0=G0(et()),V=G0(tt()),Qe=G0(rt()),L2=nt(),R2=[new I2.default,new V0.UTF_16BE,new V0.UTF_16LE,new V0.UTF_32BE,new V0.UTF_32LE,new T0.sjis,new T0.big5,new T0.euc_jp,new T0.euc_kr,new T0.gb_18030,new Qe.ISO_2022_JP,new Qe.ISO_2022_KR,new Qe.ISO_2022_CN,new V.ISO_8859_1,new V.ISO_8859_2,new V.ISO_8859_5,new V.ISO_8859_6,new V.ISO_8859_7,new V.ISO_8859_8,new V.ISO_8859_9,new V.windows_1251,new V.windows_1256,new V.windows_1257,new V.windows_1258,new V.windows_874,new V.KOI8_R,new B2.default],T2=s(x=>{let e=(0,R.analyse)(x);return e.length>0?e[0].name:null},"detect");R.detect=T2;var F2=s(x=>{if(!(0,L2.isByteArray)(x))throw new Error("Input must be a byte array, e.g. Buffer or Uint8Array");let e=[];for(let i=0;i<256;i++)e[i]=0;for(let i=x.length-1;i>=0;i--)e[x[i]&255]++;let t=!1;for(let i=128;i<=159;i+=1)if(e[i]!==0){t=!0;break}let r={byteStats:e,c1Bytes:t,rawInput:x,rawLen:x.length,inputBytes:x,inputLen:x.length};return R2.map(i=>i.match(r)).filter(i=>!!i).sort((i,a)=>a.confidence-i.confidence)},"analyse");R.analyse=F2;var v2=s((x,e={})=>new Promise((t,r)=>{let n,i=(0,st.default)(),a=s((f,l)=>{n&&i.closeSync(n),f?r(f):l?t((0,R.detect)(l)):r(new Error("No error and no buffer received"))},"handler"),o=e?.sampleSize||0;if(o>0){n=i.openSync(x,"r");let f=Buffer.allocUnsafe(o);i.read(n,f,0,o,e.offset,(l,p)=>{l?a(l,null):(p<o&&(f=f.subarray(0,p)),a(null,f))});return}i.readFile(x,a)}),"detectFile");R.detectFile=v2;var C2=s((x,e={})=>{let t=(0,st.default)();if(e&&e.sampleSize){let r=t.openSync(x,"r"),n=Buffer.allocUnsafe(e.sampleSize),i=t.readSync(r,n,0,e.sampleSize,e.offset);return i<e.sampleSize&&(n=n.subarray(0,i)),t.closeSync(r),(0,R.detect)(n)}return(0,R.detect)(t.readFileSync(x))},"detectFileSync");R.detectFileSync=C2;R.default={analyse:R.analyse,detect:R.detect,detectFileSync:R.detectFileSync,detectFile:R.detectFile}});c();import*as ut from"node:readline/promises";c();c();c();c();var yt=["emacs","vim"],St=new Set(yt);function _t(x){return St.has(x)}s(_t,"isKeybinding");function dx(){let x=process.env.INQUIRER_KEYBINDINGS;return x?Array.from(new Set(x.toLowerCase().split(/[\s,]+/).filter(_t))):[]}s(dx,"getDefaultKeybindings");var x0=s((x,e=[])=>x.name==="up"||e.includes("vim")&&x.name==="k"||e.includes("emacs")&&x.ctrl&&x.name==="p","isUpKey"),s0=s((x,e=[])=>x.name==="down"||e.includes("vim")&&x.name==="j"||e.includes("emacs")&&x.ctrl&&x.name==="n","isDownKey"),Z0=s(x=>x.name==="space","isSpaceKey"),w0=s(x=>x.name==="backspace","isBackspaceKey"),y0=s(x=>x.name==="tab","isTabKey"),S0=s(x=>"1234567890".includes(x.name),"isNumberKey"),N=s(x=>x.name==="enter"||x.name==="return","isEnterKey");c();var C0=class extends Error{static{s(this,"AbortPromptError")}name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}},P0=class extends Error{static{s(this,"CancelPromptError")}name="CancelPromptError";message="Prompt was canceled"},_0=class extends Error{static{s(this,"ExitPromptError")}name="ExitPromptError"},k0=class extends Error{static{s(this,"HookError")}name="HookError"},r0=class extends Error{static{s(this,"ValidationError")}name="ValidationError"};c();c();import{AsyncResource as It}from"node:async_hooks";c();import{AsyncLocalStorage as Et,AsyncResource as Dt}from"node:async_hooks";var ux=new Et;function Bt(x){return{rl:x,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}s(Bt,"createStore");function hx(x,e){let t=Bt(x);return ux.run(t,()=>{function r(n){t.handleChange=()=>{t.index=0,n()},t.handleChange()}return s(r,"cycle"),e(r)})}s(hx,"withHooks");function i0(){let x=ux.getStore();if(!x)throw new k0("[Inquirer] Hook functions can only be called from within a prompt");return x}s(i0,"getStore");function X0(){return i0().rl}s(X0,"readline");function ee(x){let e=s((...t)=>{let r=i0(),n=!1,i=r.handleChange;r.handleChange=()=>{n=!0};let a=x(...t);return n&&i(),r.handleChange=i,a},"wrapped");return Dt.bind(e)}s(ee,"withUpdates");function b0(x){let e=i0(),{index:t}=e,r={get(){return e.hooks[t]},set(i){e.hooks[t]=i},initialized:t in e.hooks},n=x(r);return e.index++,n}s(b0,"withPointer");function px(){i0().handleChange()}s(px,"handleChange");var a0={queue(x){let e=i0(),{index:t}=e;e.hooksEffect.push(()=>{e.hooksCleanup[t]?.();let r=x(X0());if(r!=null&&typeof r!="function")throw new r0("useEffect return value must be a cleanup function or nothing.");e.hooksCleanup[t]=r})},run(){let x=i0();ee(()=>{x.hooksEffect.forEach(e=>{e()}),x.hooksEffect.length=0})()},clearAll(){let x=i0();x.hooksCleanup.forEach(e=>{e?.()}),x.hooksEffect.length=0,x.hooksCleanup.length=0}};function Lt(x){return typeof x=="function"}s(Lt,"isFactory");function I(x){return b0(e=>{let t=It.bind(s(function(i){e.get()!==i&&(e.set(i),px())},"setState"));if(e.initialized)return[e.get(),t];let r=Lt(x)?x():x;return e.set(r),[r,t]})}s(I,"useState");c();function Y(x,e){b0(t=>{let r=t.get();(!Array.isArray(r)||e.some((i,a)=>!Object.is(i,r[a])))&&a0.queue(x),t.set(e)})}s(Y,"useEffect");c();c();import{styleText as Z}from"node:util";c();import J from"node:process";function Rt(){return J.platform.startsWith("win")?!!J.env.CI||!!J.env.WT_SESSION||!!J.env.TERMINUS_SUBLIME||J.env.ConEmuTask==="{cmd::Cmder}"||J.env.TERM_PROGRAM==="Terminus-Sublime"||J.env.TERM_PROGRAM==="vscode"||J.env.TERM==="xterm-256color"||J.env.TERM==="alacritty"||J.env.TERMINAL_EMULATOR==="JetBrains-JediTerm":J.env.TERM!=="linux"}s(Rt,"isUnicodeSupported");var bx={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},mx={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Tt={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ft={...bx,...mx},vt={...bx,...Tt},Ct=Rt(),Pt=Ct?Ft:vt,Q=Pt,yr=Object.entries(mx);var kt={prefix:{idle:Z("blue","?"),done:Z("green",Q.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(x=>Z("yellow",x))},keybindings:[],style:{answer:s(x=>Z("cyan",x),"answer"),message:s(x=>Z("bold",x),"message"),error:s(x=>Z("red",`> ${x}`),"error"),defaultAnswer:s(x=>Z("dim",`(${x})`),"defaultAnswer"),help:s(x=>Z("dim",x),"help"),highlight:s(x=>Z("cyan",x),"highlight"),key:s(x=>Z("cyan",Z("bold",`<${x}>`)),"key")}};function gx(){return{...kt,keybindings:dx()}}s(gx,"getDefaultTheme");function wx(x){if(typeof x!="object"||x===null)return!1;let e=x;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(x)===e}s(wx,"isPlainObject");function yx(...x){let e={};for(let t of x)for(let[r,n]of Object.entries(t)){let i=e[r];e[r]=wx(i)&&wx(n)?yx(i,n):n}return e}s(yx,"deepMerge");function O(...x){let e=[gx(),...x.filter(t=>t!=null)];return yx(...e)}s(O,"makeTheme");function K({status:x="idle",theme:e}){let[t,r]=I(!1),[n,i]=I(0),{prefix:a,spinner:o}=O(e);return Y(()=>{if(x==="loading"){let l,p=-1,d=setTimeout(()=>{r(!0),l=setInterval(()=>{p=p+1,i(p%o.frames.length)},o.interval)},300);return()=>{clearTimeout(d),clearInterval(l)}}else r(!1)},[x]),t?o.frames[n]:typeof a=="string"?a:a[x==="loading"?"idle":x]??a.idle}s(K,"usePrefix");c();function o0(x,e){return b0(t=>{let r=t.get();if(!r||r.dependencies.length!==e.length||r.dependencies.some((n,i)=>n!==e[i])){let n=x();return t.set({value:n,dependencies:e}),n}return r.value})}s(o0,"useMemo");c();function c0(x){return I({current:x})[0]}s(c0,"useRef");c();function W(x){let e=c0(x);e.current=x,Y(t=>{let r=!1,n=ee((i,a)=>{r||e.current(a,t)});return t.input.on("keypress",n),()=>{r=!0,t.input.removeListener("keypress",n)}},[])}s(W,"useKeypress");c();c();var Ax=v0(_x(),1);c();c();c();c();var Ex=(()=>{let x=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return e=>{let t=0;for(x.lastIndex=0;x.test(e);)t+=1;return e.length-t}})(),Dx=s(x=>x===12288||x>=65281&&x<=65376||x>=65504&&x<=65510,"isFullWidth"),Bx=s(x=>x===8987||x===9001||x>=12272&&x<=12287||x>=12289&&x<=12350||x>=12441&&x<=12543||x>=12549&&x<=12591||x>=12593&&x<=12686||x>=12688&&x<=12771||x>=12783&&x<=12830||x>=12832&&x<=12871||x>=12880&&x<=19903||x>=65040&&x<=65049||x>=65072&&x<=65106||x>=65108&&x<=65126||x>=65128&&x<=65131||x>=127488&&x<=127490||x>=127504&&x<=127547||x>=127552&&x<=127560||x>=131072&&x<=196605||x>=196608&&x<=262141,"isWideNotCJKTNotEmoji");var Mt=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,At=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,Ix=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,jt=/\t{1,1000}/y,Lx=new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*","yu"),$t=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,Nt=new RegExp("\\p{M}+","gu"),Kt={limit:1/0,ellipsis:""},Rx=s((x,e={},t={})=>{let r=e.limit??1/0,n=e.ellipsis??"",i=e?.ellipsisWidth??(n?Rx(n,Kt,t).width:0),a=0,o=t.controlWidth??0,f=t.tabWidth??8,l=t.emojiWidth??2,p=2,d=t.regularWidth??1,u=t.wideWidth??p,S=[[$t,d],[Mt,a],[At,o],[jt,f],[Lx,l],[Ix,u]],w=0,m=0,g=x.length,_=0,b=!1,B=g,T=Math.max(0,r-i),k=0,P=0,U=0,A=0;e:for(;;){if(P>k||m>=g&&m>w){let h=x.slice(k,P)||x.slice(w,m);_=0;for(let E of h.replaceAll(Nt,"")){let D=E.codePointAt(0)||0;if(Dx(D)?A=p:Bx(D)?A=u:A=d,U+A>T&&(B=Math.min(B,Math.max(k,w)+_)),U+A>r){b=!0;break e}_+=E.length,U+=A}k=P=0}if(m>=g)break e;for(let h=0,E=S.length;h<E;h++){let[D,F]=S[h];if(D.lastIndex=m,D.test(x)){if(_=D===Ix?Ex(x.slice(m,D.lastIndex)):D===Lx?1:D.lastIndex-m,A=_*F,U+A>T&&(B=Math.min(B,m+Math.floor((T-U)/F))),U+A>r){b=!0;break e}U+=A,k=w,P=m,m=w=D.lastIndex;continue e}}m+=1}return{width:b?T:U,index:b?B:g,truncated:b,ellipsed:b&&r>=i}},"getStringTruncatedWidth"),Tx=Rx;var Wt={limit:1/0,ellipsis:"",ellipsisWidth:0},qt=s((x,e={})=>Tx(x,Wt,e).width,"fastStringWidth"),t0=qt;var U0="\x1B",kx="\x9B",Vt=39,te="\x07",Ux="[",Gt="]",Ox="m",re=`${Gt}8;;`,Fx=new RegExp(`(?:\\${Ux}(?<code>\\d+)m|\\${re}(?<uri>.*)${te})`,"y"),vx=s(x=>{if(x>=30&&x<=37||x>=90&&x<=97)return 39;if(x>=40&&x<=47||x>=100&&x<=107)return 49;if(x===1||x===2)return 22;if(x===3)return 23;if(x===4)return 24;if(x===7)return 27;if(x===8)return 28;if(x===9)return 29;if(x===0)return 0},"getClosingCode"),Cx=s(x=>`${U0}${Ux}${x}${Ox}`,"wrapAnsiCode"),Px=s(x=>`${U0}${re}${x}${te}`,"wrapAnsiHyperlink"),xe=s((x,e,t)=>{let r=e[Symbol.iterator](),n=!1,i=!1,a=x.at(-1),o=a===void 0?0:t0(a),f=r.next(),l=r.next(),p=0;for(;!f.done;){let d=f.value,u=t0(d);o+u<=t?x[x.length-1]+=d:(x.push(d),o=0),(d===U0||d===kx)&&(n=!0,i=e.startsWith(re,p+1)),n?i?d===te&&(n=!1,i=!1):d===Ox&&(n=!1):(o+=u,o===t&&!l.done&&(x.push(""),o=0)),f=l,l=r.next(),p+=d.length}a=x.at(-1),!o&&a!==void 0&&a.length&&x.length>1&&(x[x.length-2]+=x.pop())},"wrapWord"),Ht=s(x=>{let e=x.split(" "),t=e.length;for(;t&&!t0(e[t-1]);)t--;return t===e.length?x:e.slice(0,t).join(" ")+e.slice(t).join("")},"stringVisibleTrimSpacesRight"),zt=s((x,e,t={})=>{if(t.trim!==!1&&x.trim()==="")return"";let r="",n,i,a=x.split(" "),o=[""],f=0;for(let d=0;d<a.length;d++){let u=a[d];if(t.trim!==!1){let w=o.at(-1)??"",m=w.trimStart();w.length!==m.length&&(o[o.length-1]=m,f=t0(m))}d!==0&&(f>=e&&(t.wordWrap===!1||t.trim===!1)&&(o.push(""),f=0),(f||t.trim===!1)&&(o[o.length-1]+=" ",f++));let S=t0(u);if(t.hard&&S>e){let w=e-f,m=1+Math.floor((S-w-1)/e);Math.floor((S-1)/e)<m&&o.push(""),xe(o,u,e),f=t0(o.at(-1)??"");continue}if(f+S>e&&f&&S){if(t.wordWrap===!1&&f<e){xe(o,u,e),f=t0(o.at(-1)??"");continue}o.push(""),f=0}if(f+S>e&&t.wordWrap===!1){xe(o,u,e),f=t0(o.at(-1)??"");continue}o[o.length-1]+=u,f+=S}t.trim!==!1&&(o=o.map(d=>Ht(d)));let l=o.join(`
3
+ import{a as wt}from"./chunk-YCABJ5LH.js";import{a as lx}from"./chunk-QMOXBUEH.js";import{R as fx}from"./chunk-YTPRD2G3.js";import{j as h0,l as p0}from"./chunk-PAA3VRIJ.js";import{a as s,b as Q0,c as G,e as v0,f as c}from"./chunk-SO6GBFEQ.js";var _x=G((en,Sx)=>{"use strict";c();Sx.exports=Ot;function Ut(x){let e={defaultWidth:0,output:process.stdout,tty:Q0("tty")};return x?(Object.keys(e).forEach(function(t){x[t]||(x[t]=e[t])}),x):e}s(Ut,"normalizeOpts");function Ot(x){let e=Ut(x);if(e.output.getWindowSize)return e.output.getWindowSize()[0]||e.defaultWidth;if(e.tty.getWindowSize)return e.tty.getWindowSize()[1]||e.defaultWidth;if(e.output.columns)return e.output.columns;if(process.env.CLI_WIDTH){let t=parseInt(process.env.CLI_WIDTH,10);if(!isNaN(t)&&t!==0)return t}return e.defaultWidth}s(Ot,"cliWidth")});var $x=G((Tn,jx)=>{c();var Qt=Q0("stream"),ne=class extends Qt{static{s(this,"MuteStream")}#t=null;constructor(e={}){super(e),this.writable=this.readable=!0,this.muted=!1,this.on("pipe",this._onpipe),this.replace=e.replace,this._prompt=e.prompt||null,this._hadControl=!1}#x(e,t){return this._dest?this._dest[e]:this._src?this._src[e]:t}#e(e,...t){typeof this._dest?.[e]=="function"&&this._dest[e](...t),typeof this._src?.[e]=="function"&&this._src[e](...t)}get isTTY(){return this.#t!==null?this.#t:this.#x("isTTY",!1)}set isTTY(e){this.#t=e}get rows(){return this.#x("rows")}get columns(){return this.#x("columns")}mute(){this.muted=!0}unmute(){this.muted=!1}_onpipe(e){this._src=e}pipe(e,t){return this._dest=e,super.pipe(e,t)}pause(){if(this._src)return this._src.pause()}resume(){if(this._src)return this._src.resume()}write(e){if(this.muted){if(!this.replace)return!0;if(e.match(/^\u001b/))return e.indexOf(this._prompt)===0&&(e=e.slice(this._prompt.length),e=e.replace(/./g,this.replace),e=this._prompt+e),this._hadControl=!0,this.emit("data",e);this._prompt&&this._hadControl&&e.indexOf(this._prompt)===0&&(this._hadControl=!1,this.emit("data",this._prompt),e=e.slice(this._prompt.length)),e=e.toString().replace(/./g,this.replace)}this.emit("data",e)}end(e){this.muted&&(e&&this.replace?e=e.toString().replace(/./g,this.replace):e=null),e&&this.emit("data",e),this.emit("end")}destroy(...e){return this.#e("destroy",...e)}destroySoon(...e){return this.#e("destroySoon",...e)}close(...e){return this.#e("close",...e)}};jx.exports=ne});var zx=G((ye,we)=>{"use strict";c();Object.defineProperty(ye,"__esModule",{value:!0});var N0;ye.default=()=>{if(typeof we=="object"&&typeof we.exports=="object")return N0=N0||Q0("fs"),N0;throw new Error("File system is not available")}});var d0=G(Se=>{"use strict";c();Object.defineProperty(Se,"__esModule",{value:!0});Se.default=(x,e,t)=>({confidence:t,name:e.name(x),lang:e.language?e.language():void 0})});var Jx=G(I0=>{"use strict";c();var f2=I0&&I0.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(I0,"__esModule",{value:!0});var Yx=f2(d0()),_e=class{static{s(this,"Ascii")}name(){return"ASCII"}match(e){let t=e.rawInput;for(let r=0;r<e.rawLen;r++){let n=t[r];if(n<32||n>126)return(0,Yx.default)(e,this,0)}return(0,Yx.default)(e,this,100)}};I0.default=_e});var Qx=G(L0=>{"use strict";c();var l2=L0&&L0.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(L0,"__esModule",{value:!0});var d2=l2(d0()),Ee=class{static{s(this,"Utf8")}name(){return"UTF-8"}match(e){let t=!1,r=0,n=0,i=0,a,o=e.rawInput;e.rawLen>=3&&(o[0]&255)==239&&(o[1]&255)==187&&(o[2]&255)==191&&(t=!0);for(let f=0;f<e.rawLen;f++){let l=o[f];if(l&128){if((l&224)==192)i=1;else if((l&240)==224)i=2;else if((l&248)==240)i=3;else{if(n++,n>5)break;i=0}for(;f++,!(f>=e.rawLen);){if((o[f]&192)!=128){n++;break}if(--i==0){r++;break}}}}if(a=0,t&&n==0)a=100;else if(t&&r>n*10)a=80;else if(r>3&&n==0)a=100;else if(r>0&&n==0)a=80;else if(r==0&&n==0)a=10;else if(r>n*10)a=25;else return null;return(0,d2.default)(e,this,a)}};L0.default=Ee});var Zx=G(H=>{"use strict";c();var u2=H&&H.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(H,"__esModule",{value:!0});H.UTF_32LE=H.UTF_32BE=H.UTF_16LE=H.UTF_16BE=void 0;var Re=u2(d0()),De=class{static{s(this,"UTF_16BE")}name(){return"UTF-16BE"}match(e){let t=e.rawInput;return t.length>=2&&(t[0]&255)==254&&(t[1]&255)==255?(0,Re.default)(e,this,100):null}};H.UTF_16BE=De;var Be=class{static{s(this,"UTF_16LE")}name(){return"UTF-16LE"}match(e){let t=e.rawInput;return t.length>=2&&(t[0]&255)==255&&(t[1]&255)==254?t.length>=4&&t[2]==0&&t[3]==0?null:(0,Re.default)(e,this,100):null}};H.UTF_16LE=Be;var K0=class{static{s(this,"UTF_32")}name(){return"UTF-32"}getChar(e,t){return-1}match(e){let t=0,r=0,n=!1,i=0,a=e.rawLen/4*4,o=e.rawInput;if(a==0)return null;this.getChar(o,0)==65279&&(n=!0);for(let f=0;f<a;f+=4){let l=this.getChar(o,f);l<0||l>=1114111||l>=55296&&l<=57343?r+=1:t+=1}return n&&r==0?i=100:n&&t>r*10?i=80:t>3&&r==0?i=100:t>0&&r==0?i=80:t>r*10&&(i=25),i==0?null:(0,Re.default)(e,this,i)}},Ie=class extends K0{static{s(this,"UTF_32BE")}name(){return"UTF-32BE"}getChar(e,t){return(e[t+0]&255)<<24|(e[t+1]&255)<<16|(e[t+2]&255)<<8|e[t+3]&255}};H.UTF_32BE=Ie;var Le=class extends K0{static{s(this,"UTF_32LE")}name(){return"UTF-32LE"}getChar(e,t){return(e[t+3]&255)<<24|(e[t+2]&255)<<16|(e[t+1]&255)<<8|e[t+0]&255}};H.UTF_32LE=Le});var et=G($=>{"use strict";c();var h2=$&&$.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty($,"__esModule",{value:!0});$.gb_18030=$.euc_kr=$.euc_jp=$.big5=$.sjis=void 0;var p2=h2(d0());function b2(x,e){let t=s((r,n,i,a)=>{if(a<i)return-1;let o=Math.floor(i+a>>>1);return n>r[o]?t(r,n,o+1,a):n<r[o]?t(r,n,i,o-1):o},"find");return t(x,e,0,x.length-1)}s(b2,"binarySearch");var Te=class{static{s(this,"IteratedChar")}constructor(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1}reset(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1}nextByte(e){return this.nextIndex>=e.rawLen?(this.done=!0,-1):e.rawInput[this.nextIndex++]&255}},u0=class{static{s(this,"mbcs")}constructor(){this.commonChars=[]}name(){return"mbcs"}match(e){let t=0,r=0,n=0,i=0,a=0,o=new Te;e:{for(o.reset();this.nextChar(o,e);){if(i++,o.error)n++;else{let f=o.charValue&4294967295;f>255&&(t++,this.commonChars!=null&&b2(this.commonChars,f)>=0&&r++)}if(n>=2&&n*5>=t)break e}if(t<=10&&n==0){t==0&&i<10?a=0:a=10;break e}if(t<20*n){a=0;break e}if(this.commonChars==null)a=30+t-20*n,a>100&&(a=100);else{let l=90/Math.log(t/4);a=Math.floor(Math.log(r+1)*l+10),a=Math.min(a,100)}}return a==0?null:(0,p2.default)(e,this,a)}nextChar(e,t){return!0}},Fe=class extends u0{static{s(this,"sjis")}constructor(){super(...arguments),this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return"Shift_JIS"}language(){return"ja"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let r=e.charValue=e.nextByte(t);if(r<0)return!1;if(r<=127||r>160&&r<=223)return!0;let n=e.nextByte(t);return n<0?!1:(e.charValue=r<<8|n,n>=64&&n<=127||n>=128&&n<=255||(e.error=!0),!0)}};$.sjis=Fe;var ve=class extends u0{static{s(this,"big5")}constructor(){super(...arguments),this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return"Big5"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let r=e.charValue=e.nextByte(t);if(r<0)return!1;if(r<=127||r==255)return!0;let n=e.nextByte(t);return n<0?!1:(e.charValue=e.charValue<<8|n,(n<64||n==127||n==255)&&(e.error=!0),!0)}};$.big5=ve;function Xx(x,e){x.index=x.nextIndex,x.error=!1;let t=0,r=0,n=0;e:{if(t=x.charValue=x.nextByte(e),t<0){x.done=!0;break e}if(t<=141)break e;if(r=x.nextByte(e),x.charValue=x.charValue<<8|r,t>=161&&t<=254){r<161&&(x.error=!0);break e}if(t==142){r<161&&(x.error=!0);break e}t==143&&(n=x.nextByte(e),x.charValue=x.charValue<<8|n,n<161&&(x.error=!0))}return x.done==!1}s(Xx,"eucNextChar");var Ce=class extends u0{static{s(this,"euc_jp")}constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=Xx}name(){return"EUC-JP"}language(){return"ja"}};$.euc_jp=Ce;var Pe=class extends u0{static{s(this,"euc_kr")}constructor(){super(...arguments),this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=Xx}name(){return"EUC-KR"}language(){return"ko"}};$.euc_kr=Pe;var ke=class extends u0{static{s(this,"gb_18030")}constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return"GB18030"}language(){return"zh"}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let r=0,n=0,i=0,a=0;e:{if(r=e.charValue=e.nextByte(t),r<0){e.done=!0;break e}if(r<=128)break e;if(n=e.nextByte(t),e.charValue=e.charValue<<8|n,r>=129&&r<=254){if(n>=64&&n<=126||n>=80&&n<=254)break e;if(n>=48&&n<=57&&(i=e.nextByte(t),i>=129&&i<=254&&(a=e.nextByte(t),a>=48&&a<=57))){e.charValue=e.charValue<<16|i<<8|a;break e}e.error=!0;break e}}return e.done==!1}};$.gb_18030=ke});var tt=G(L=>{"use strict";c();var m2=L&&L.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(L,"__esModule",{value:!0});L.KOI8_R=L.windows_874=L.windows_1258=L.windows_1257=L.windows_1256=L.windows_1251=L.ISO_8859_9=L.ISO_8859_8=L.ISO_8859_7=L.ISO_8859_6=L.ISO_8859_5=L.ISO_8859_2=L.ISO_8859_1=void 0;var xt=m2(d0()),g2=16777215,W0=class{static{s(this,"NGramParser")}constructor(e,t){this.byteIndex=0,this.ngram=0,this.ngramCount=0,this.hitCount=0,this.spaceChar=32,this.ngramList=e,this.byteMap=t}search(e,t){let r=0;return e[r+32]<=t&&(r+=32),e[r+16]<=t&&(r+=16),e[r+8]<=t&&(r+=8),e[r+4]<=t&&(r+=4),e[r+2]<=t&&(r+=2),e[r+1]<=t&&(r+=1),e[r]>t&&(r-=1),r<0||e[r]!=t?-1:r}lookup(e){this.ngramCount+=1,this.search(this.ngramList,e)>=0&&(this.hitCount+=1)}addByte(e){this.ngram=(this.ngram<<8)+(e&255)&g2,this.lookup(this.ngram)}nextByte(e){return this.byteIndex>=e.inputLen?-1:e.inputBytes[this.byteIndex++]&255}parse(e,t){let r,n=!1;for(this.spaceChar=t;(r=this.nextByte(e))>=0;){let a=this.byteMap[r];a!=0&&(a==this.spaceChar&&n||this.addByte(a),n=a==this.spaceChar)}this.addByte(this.spaceChar);let i=this.hitCount/this.ngramCount;return i>.33?98:Math.floor(i*300)}},C=class{static{s(this,"NGramsPlusLang")}constructor(e,t){this.fLang=e,this.fNGrams=t}},w2=s(x=>Array.isArray(x)&&isFinite(x[0]),"isFlatNgrams"),M=class{static{s(this,"sbcs")}constructor(){this.spaceChar=32,this.nGramLang=void 0}ngrams(){return[]}byteMap(){return[]}name(e){return"sbcs"}language(){return this.nGramLang}match(e){this.nGramLang=void 0;let t=this.ngrams();if(w2(t)){let i=new W0(t,this.byteMap()).parse(e,this.spaceChar);return i<=0?null:(0,xt.default)(e,this,i)}let r=-1;for(let n=t.length-1;n>=0;n--){let i=t[n],o=new W0(i.fNGrams,this.byteMap()).parse(e,this.spaceChar);o>r&&(r=o,this.nGramLang=i.fLang)}return r<=0?null:(0,xt.default)(e,this,r)}},Ue=class extends M{static{s(this,"ISO_8859_1")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new C("da",[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new C("de",[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new C("en",[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new C("es",[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,15953440]),new C("fr",[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new C("it",[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new C("nl",[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new C("no",[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new C("pt",[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,14905120,15197039]),new C("sv",[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,14971424,16151072])]}name(e){return e&&e.c1Bytes?"windows-1252":"ISO-8859-1"}};L.ISO_8859_1=Ue;var Oe=class extends M{static{s(this,"ISO_8859_2")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new C("cs",[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,12477728,14773997,15296623,15540336,15540339,15559968,16278884]),new C("hu",[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,14773792,15299360]),new C("pl",[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,15955744]),new C("ro",[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,12216608,15625760])]}name(e){return e&&e.c1Bytes?"windows-1250":"ISO-8859-2"}};L.ISO_8859_2=Oe;var Me=class extends M{static{s(this,"ISO_8859_5")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,13688280,13689580,13884960,14015468,14015960,14016994,14017056,14164191,14210336,14211104,14216992,14407133,14407712,14413021,14536736,14538016,14538965,14538991,14540320,14540498,14557394,14557407,14557409,14602784,14602960,14603230,14604576,14605292,14605344,14606818,14671579,14672085,14672088,14672094,14733522,14734804,14803664,14803666,14803672,14806816,14865883,14868e3,14868192,14871584,15196894,15459616]}name(){return"ISO-8859-5"}language(){return"ru"}};L.ISO_8859_5=Me;var Ae=class extends M{static{s(this,"ISO_8859_6")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,13050055,13091104,13093408,13095200,13100064,13100227,13100231,13100232,13100234,13100236,13100237,13100239,13100243,13100249,13100258,13100261,13100264,13100266,13100320,13100576,13100746,13115591,13181127,13181153,13181156,13181157,13181160,13246663,13574343,13617440,13705415,13748512,13836487,14229703,14279913,14805536,14950599,14993696,15001888,15002144,15016135,15058720,15059232,15066656,15081671,15147207,15189792,15255524,15263264,15278279,15343815,15343845,15343848,15386912,15388960,15394336]}name(){return"ISO-8859-6"}language(){return"ar"}};L.ISO_8859_6=Ae;var je=class extends M{static{s(this,"ISO_8859_7")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,14672160,14754017,14754036,14805280,14806304,14807292,14807584,14936545,15067424,15069728,15147252,15199520,15200800,15278324,15327520,15330014,15331872,15393257,15393268,15525152,15540449,15540453,15540464,15589664,15725088,15725856,15790069,15790575,15793184,15868129,15868133,15868138,15868144,15868148,15983904,15984416,15987951,16048416,16048617,16050157,16050162,16050666,16052e3,16052213,16054765,16379168,16706848]}name(e){return e&&e.c1Bytes?"windows-1253":"ISO-8859-7"}language(){return"el"}};L.ISO_8859_7=je;var $e=class extends M{static{s(this,"ISO_8859_8")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new C("he",[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,14744096,14950624,14950625,14950628,14950636,14950638,14950649,15001056,15065120,15068448,15068960,15071264,15071776,15278308,15328288,15328762,15329773,15330592,15331104,15333408,15333920,15474912,15474916,15523872,15524896,15540448,15540449,15540452,15540460,15540462,15540473,15655968,15671524,15787040,15788320,15788525,15920160,16261348,16312813,16378912,16392416,16392417,16392420,16392428,16392430,16392441]),new C("he",[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,14688484,14688492,14688493,14688506,14738464,14738916,14740512,14741024,14754020,14754029,14754042,14950628,14950633,14950636,14950637,14950639,14950648,14950650,15002656,15065120,15066144,15196192,15327264,15327520,15328288,15474916,15474925,15474938,15528480,15530272,15591913,15591920,15591928,15605988,15605997,15606010,15655200,15655968,15918112,16326884,16326893,16326906,16376864,16441376,16442400,16442857])]}name(e){return e&&e.c1Bytes?"windows-1255":"ISO-8859-8"}language(){return"he"}};L.ISO_8859_8=$e;var Ne=class extends M{static{s(this,"ISO_8859_9")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,16608800,16608868,16609021,16642301]}name(e){return e&&e.c1Bytes?"windows-1254":"ISO-8859-9"}language(){return"tr"}};L.ISO_8859_9=Ne;var Ke=class extends M{static{s(this,"windows_1251")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,14740968,14742268,14937632,15068156,15068648,15069682,15069728,15212783,15263008,15263776,15269664,15459821,15460384,15465709,15589408,15590688,15591653,15591679,15592992,15593186,15605986,15605999,15606001,15655456,15655648,15655918,15657248,15657980,15658016,15659506,15724267,15724773,15724776,15724782,15786210,15787492,15856352,15856354,15856360,15859488,15918571,15920672,15920880,15924256,16249582,16512288]}name(){return"windows-1251"}language(){return"ru"}};L.windows_1251=Ke;var We=class extends M{static{s(this,"windows_1256")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,13050055,13091104,13093408,13095200,13099296,13099459,13099463,13099464,13099466,13099468,13099469,13099471,13099475,13099482,13099486,13099491,13099494,13099501,13099808,13100064,13100234,13115591,13181127,13181149,13181153,13181155,13181158,13246663,13574343,13617440,13705415,13748512,13836487,14295239,14344684,14544160,14753991,14797088,14806048,14806304,14885063,14927648,14928160,14935072,14950599,15016135,15058720,15124449,15131680,15474887,15540423,15540451,15540454,15583520,15585568,15590432]}name(){return"windows-1256"}language(){return"ar"}};L.windows_1256=We;var qe=class extends M{static{s(this,"windows_1257")}match(e){return e.inputBytes.some(t=>t>=128)?super.match(e):null}byteMap(){let e=new Array(256).fill(32);e[39]=0;for(let t=65;t<=90;t++)e[t]=t+32;for(let t=97;t<=122;t++)e[t]=t;e[142]=142,e[168]=e[184]=184,e[170]=e[186]=186,e[175]=e[191]=191,e[181]=181;for(let t=192;t<=214;t++)e[t]=t+32;for(let t=216;t<=222;t++)e[t]=t+32;e[223]=223;for(let t=224;t<=246;t++)e[t]=t;for(let t=248;t<=254;t++)e[t]=t;return e}ngrams(){return[new C("et",[2122090,2122098,2123109,2124135,2124385,2124641,2124645,2124649,2124655,2124661,2124897,2125417,2125678,2126441,2126693,2126949,6365281,6365290,6365291,6365292,6382112,6382624,6384499,6386549,6386785,6387297,6561908,6578464,6583667,6627435,6627443,6645100,6645107,6646816,6646885,6646900,6648608,6648692,6889579,6906912,6910570,6910752,6971680,7037299,7038309,7039346,7040879,7041893,7041908,7104875,7107616,7544929,7544939,7562528,7562604,7566437,7566441,7566708,7627115,7627124,7629088,7697184,7697253,7697505]),new C("lv",[2122098,2122601,2122849,2124146,2124154,2124897,2125282,2125921,2125938,2126433,2126689,2126699,2126949,2127214,2127457,6365289,6365301,6365302,6382185,6383904,6384499,6384751,6385778,6386293,6386464,6386806,6449509,6452512,6515052,6515060,6578464,6578546,6583584,6584864,6644850,6646123,6646643,6647393,6648608,6680693,6889577,6907236,6907376,6908642,6909046,7041908,7102836,7106404,7233824,7300193,7496043,7501166,7544947,7544949,7544950,7566453,7566574,7632160,7632489,7676022,7695904,7697184,7758188,14840608]),new C("lt",[2122089,2122341,2124146,2124641,2124905,2125167,2126433,2126689,2126699,2126709,2126945,2126949,2126965,2127457,2127465,6365300,6365424,6383904,6383988,6384112,6384738,6384993,6385268,6386274,6386292,6386976,6387050,6418553,6447392,6448489,6448494,6647401,6648949,6889569,6889577,6889579,6889581,6906217,6907246,6907252,6909543,6910496,6910752,6942827,6971757,6972704,7037289,7037292,7103073,7104869,7170419,7171947,7269152,7301733,7302009,7303968,7496176,7544937,7544939,7544950,7564129,7629088,7632246,7957356])]}name(){return"windows-1257"}};L.windows_1257=qe;var Ve=class extends M{static{s(this,"windows_1258")}match(e){return e.inputBytes.some(t=>t>=128)?super.match(e):null}byteMap(){let e=new Array(256).fill(32);e[39]=0;for(let t=65;t<=90;t++)e[t]=t+32;for(let t=97;t<=122;t++)e[t]=t;e[131]=131,e[136]=136,e[140]=e[156]=156,e[159]=255,e[170]=170,e[181]=181,e[186]=186;for(let t=192;t<=203;t++)e[t]=t+32;e[204]=204;for(let t=205;t<=209;t++)e[t]=t+32;e[210]=210;for(let t=211;t<=214;t++)e[t]=t+32;for(let t=216;t<=221;t++)e[t]=t+32;e[222]=222,e[223]=223;for(let t=224;t<=246;t++)e[t]=t;for(let t=248;t<=253;t++)e[t]=t;return e[255]=255,e}ngrams(){return[2122600,2122721,2123625,2123887,2125415,2125928,2126952,2126953,2126962,2127465,2127584,6419060,6496355,6496374,6514720,6514925,6545763,6758504,6758510,6758516,6758518,6812782,6815198,6815221,6824052,6844402,6876526,6889582,6889588,6941394,6941420,6941426,7217251,7217262,7217268,7235360,7235572,7235581,7235616,7302759,7336547,7610483,7629053,7629290,7631471,7676020,7760362,7790624,13396256,13397607,14557288,14771048,15395950,15397492,15494759,15496224,15560296,15885088,15886624,15887904,15889440,16018976,16108649,16643532]}name(){return"windows-1258"}language(){return"vi"}};L.windows_1258=Ve;var Ge=class extends M{static{s(this,"windows_874")}byteMap(){let e=new Array(256).fill(32);e[39]=0;for(let t=65;t<=90;t++)e[t]=t+32;for(let t=97;t<=122;t++)e[t]=t;for(let t=161;t<=218;t++)e[t]=t;for(let t=223;t<=251;t++)e[t]=t;return e}ngrams(){return[2138578,2138856,2146514,2148291,2154949,10604985,10605251,10669479,10671554,10799058,11064263,11195847,11200960,11200995,11910083,12042976,12042979,12047848,12132544,12165586,12173522,12305360,12314553,12636873,12828960,12829619,12829633,12832936,12832994,12837026,13091779,13095353,13095617,13096117,13226679,13226724,13293544,13477063,13674707,13689538,13744416,13805473,13812171,13812452,13812512,13812704,13814226,13821111,13879249,13940155,14009017,14010324,14149837,14721749,14728167,14796240,14860964,14920425,14924193,14989250,15258279,15262634,15319250,15328185]}name(){return"windows-874"}language(){return"th"}};L.windows_874=Ge;var He=class extends M{static{s(this,"KOI8_R")}byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,12701385,12702936,12963032,12963529,12964820,12964896,13094688,13181136,13223200,13224224,13226272,13419982,13420832,13424846,13549856,13550880,13552069,13552081,13553440,13553623,13574352,13574355,13574359,13617103,13617696,13618392,13618464,13620180,13621024,13621185,13684684,13685445,13685449,13685455,13812183,13813188,13881632,13882561,13882569,13882583,13944268,13946656,13946834,13948960,14272544,14603471]}name(){return"KOI8-R"}language(){return"ru"}};L.KOI8_R=He});var rt=G(X=>{"use strict";c();var y2=X&&X.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(X,"__esModule",{value:!0});X.ISO_2022_CN=X.ISO_2022_KR=X.ISO_2022_JP=void 0;var S2=y2(d0()),R0=class{static{s(this,"ISO_2022")}constructor(){this.escapeSequences=[]}name(){return"ISO_2022"}match(e){let t,r,n,i=0,a=0,o=0,f,l=e.inputBytes,p=e.inputLen;e:for(t=0;t<p;t++){if(l[t]==27){x:for(n=0;n<this.escapeSequences.length;n++){let d=this.escapeSequences[n];if(p-t<d.length)continue x;for(r=1;r<d.length;r++)if(d[r]!=l[t+r])continue x;i++,t+=d.length-1;continue e}a++}(l[t]==14||l[t]==15)&&o++}return i==0?null:(f=(100*i-100*a)/(i+a),i+o<5&&(f-=(5-(i+o))*10),f<=0?null:(0,S2.default)(e,this,f))}},ze=class extends R0{static{s(this,"ISO_2022_JP")}constructor(){super(...arguments),this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return"ISO-2022-JP"}language(){return"ja"}};X.ISO_2022_JP=ze;var Ye=class extends R0{static{s(this,"ISO_2022_KR")}constructor(){super(...arguments),this.escapeSequences=[[27,36,41,67]]}name(){return"ISO-2022-KR"}language(){return"kr"}};X.ISO_2022_KR=Ye;var Je=class extends R0{static{s(this,"ISO_2022_CN")}constructor(){super(...arguments),this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return"ISO-2022-CN"}language(){return"zh"}};X.ISO_2022_CN=Je});var nt=G(q0=>{"use strict";c();Object.defineProperty(q0,"__esModule",{value:!0});q0.isByteArray=void 0;var _2=s(x=>x==null||typeof x!="object"?!1:isFinite(x.length)&&x.length>=0,"isByteArray");q0.isByteArray=_2});var it=G(R=>{"use strict";c();var E2=R&&R.__createBinding||(Object.create?function(x,e,t,r){r===void 0&&(r=t);var n=Object.getOwnPropertyDescriptor(e,t);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:s(function(){return e[t]},"get")}),Object.defineProperty(x,r,n)}:function(x,e,t,r){r===void 0&&(r=t),x[r]=e[t]}),D2=R&&R.__setModuleDefault||(Object.create?function(x,e){Object.defineProperty(x,"default",{enumerable:!0,value:e})}:function(x,e){x.default=e}),G0=R&&R.__importStar||function(){var x=s(function(e){return x=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},x(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=x(e),n=0;n<r.length;n++)r[n]!=="default"&&E2(t,e,r[n]);return D2(t,e),t}}(),Ze=R&&R.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(R,"__esModule",{value:!0});R.detectFileSync=R.detectFile=R.analyse=R.detect=void 0;var st=Ze(zx()),B2=Ze(Jx()),I2=Ze(Qx()),V0=G0(Zx()),T0=G0(et()),V=G0(tt()),Qe=G0(rt()),L2=nt(),R2=[new I2.default,new V0.UTF_16BE,new V0.UTF_16LE,new V0.UTF_32BE,new V0.UTF_32LE,new T0.sjis,new T0.big5,new T0.euc_jp,new T0.euc_kr,new T0.gb_18030,new Qe.ISO_2022_JP,new Qe.ISO_2022_KR,new Qe.ISO_2022_CN,new V.ISO_8859_1,new V.ISO_8859_2,new V.ISO_8859_5,new V.ISO_8859_6,new V.ISO_8859_7,new V.ISO_8859_8,new V.ISO_8859_9,new V.windows_1251,new V.windows_1256,new V.windows_1257,new V.windows_1258,new V.windows_874,new V.KOI8_R,new B2.default],T2=s(x=>{let e=(0,R.analyse)(x);return e.length>0?e[0].name:null},"detect");R.detect=T2;var F2=s(x=>{if(!(0,L2.isByteArray)(x))throw new Error("Input must be a byte array, e.g. Buffer or Uint8Array");let e=[];for(let i=0;i<256;i++)e[i]=0;for(let i=x.length-1;i>=0;i--)e[x[i]&255]++;let t=!1;for(let i=128;i<=159;i+=1)if(e[i]!==0){t=!0;break}let r={byteStats:e,c1Bytes:t,rawInput:x,rawLen:x.length,inputBytes:x,inputLen:x.length};return R2.map(i=>i.match(r)).filter(i=>!!i).sort((i,a)=>a.confidence-i.confidence)},"analyse");R.analyse=F2;var v2=s((x,e={})=>new Promise((t,r)=>{let n,i=(0,st.default)(),a=s((f,l)=>{n&&i.closeSync(n),f?r(f):l?t((0,R.detect)(l)):r(new Error("No error and no buffer received"))},"handler"),o=e?.sampleSize||0;if(o>0){n=i.openSync(x,"r");let f=Buffer.allocUnsafe(o);i.read(n,f,0,o,e.offset,(l,p)=>{l?a(l,null):(p<o&&(f=f.subarray(0,p)),a(null,f))});return}i.readFile(x,a)}),"detectFile");R.detectFile=v2;var C2=s((x,e={})=>{let t=(0,st.default)();if(e&&e.sampleSize){let r=t.openSync(x,"r"),n=Buffer.allocUnsafe(e.sampleSize),i=t.readSync(r,n,0,e.sampleSize,e.offset);return i<e.sampleSize&&(n=n.subarray(0,i)),t.closeSync(r),(0,R.detect)(n)}return(0,R.detect)(t.readFileSync(x))},"detectFileSync");R.detectFileSync=C2;R.default={analyse:R.analyse,detect:R.detect,detectFileSync:R.detectFileSync,detectFile:R.detectFile}});c();import*as ut from"node:readline/promises";c();c();c();c();var yt=["emacs","vim"],St=new Set(yt);function _t(x){return St.has(x)}s(_t,"isKeybinding");function dx(){let x=process.env.INQUIRER_KEYBINDINGS;return x?Array.from(new Set(x.toLowerCase().split(/[\s,]+/).filter(_t))):[]}s(dx,"getDefaultKeybindings");var x0=s((x,e=[])=>x.name==="up"||e.includes("vim")&&x.name==="k"||e.includes("emacs")&&x.ctrl&&x.name==="p","isUpKey"),s0=s((x,e=[])=>x.name==="down"||e.includes("vim")&&x.name==="j"||e.includes("emacs")&&x.ctrl&&x.name==="n","isDownKey"),Z0=s(x=>x.name==="space","isSpaceKey"),w0=s(x=>x.name==="backspace","isBackspaceKey"),y0=s(x=>x.name==="tab","isTabKey"),S0=s(x=>"1234567890".includes(x.name),"isNumberKey"),N=s(x=>x.name==="enter"||x.name==="return","isEnterKey");c();var C0=class extends Error{static{s(this,"AbortPromptError")}name="AbortPromptError";message="Prompt was aborted";constructor(e){super(),this.cause=e?.cause}},P0=class extends Error{static{s(this,"CancelPromptError")}name="CancelPromptError";message="Prompt was canceled"},_0=class extends Error{static{s(this,"ExitPromptError")}name="ExitPromptError"},k0=class extends Error{static{s(this,"HookError")}name="HookError"},r0=class extends Error{static{s(this,"ValidationError")}name="ValidationError"};c();c();import{AsyncResource as It}from"node:async_hooks";c();import{AsyncLocalStorage as Et,AsyncResource as Dt}from"node:async_hooks";var ux=new Et;function Bt(x){return{rl:x,hooks:[],hooksCleanup:[],hooksEffect:[],index:0,handleChange(){}}}s(Bt,"createStore");function hx(x,e){let t=Bt(x);return ux.run(t,()=>{function r(n){t.handleChange=()=>{t.index=0,n()},t.handleChange()}return s(r,"cycle"),e(r)})}s(hx,"withHooks");function i0(){let x=ux.getStore();if(!x)throw new k0("[Inquirer] Hook functions can only be called from within a prompt");return x}s(i0,"getStore");function X0(){return i0().rl}s(X0,"readline");function ee(x){let e=s((...t)=>{let r=i0(),n=!1,i=r.handleChange;r.handleChange=()=>{n=!0};let a=x(...t);return n&&i(),r.handleChange=i,a},"wrapped");return Dt.bind(e)}s(ee,"withUpdates");function b0(x){let e=i0(),{index:t}=e,r={get(){return e.hooks[t]},set(i){e.hooks[t]=i},initialized:t in e.hooks},n=x(r);return e.index++,n}s(b0,"withPointer");function px(){i0().handleChange()}s(px,"handleChange");var a0={queue(x){let e=i0(),{index:t}=e;e.hooksEffect.push(()=>{e.hooksCleanup[t]?.();let r=x(X0());if(r!=null&&typeof r!="function")throw new r0("useEffect return value must be a cleanup function or nothing.");e.hooksCleanup[t]=r})},run(){let x=i0();ee(()=>{x.hooksEffect.forEach(e=>{e()}),x.hooksEffect.length=0})()},clearAll(){let x=i0();x.hooksCleanup.forEach(e=>{e?.()}),x.hooksEffect.length=0,x.hooksCleanup.length=0}};function Lt(x){return typeof x=="function"}s(Lt,"isFactory");function I(x){return b0(e=>{let t=It.bind(s(function(i){e.get()!==i&&(e.set(i),px())},"setState"));if(e.initialized)return[e.get(),t];let r=Lt(x)?x():x;return e.set(r),[r,t]})}s(I,"useState");c();function Y(x,e){b0(t=>{let r=t.get();(!Array.isArray(r)||e.some((i,a)=>!Object.is(i,r[a])))&&a0.queue(x),t.set(e)})}s(Y,"useEffect");c();c();import{styleText as Z}from"node:util";c();import J from"node:process";function Rt(){return J.platform.startsWith("win")?!!J.env.CI||!!J.env.WT_SESSION||!!J.env.TERMINUS_SUBLIME||J.env.ConEmuTask==="{cmd::Cmder}"||J.env.TERM_PROGRAM==="Terminus-Sublime"||J.env.TERM_PROGRAM==="vscode"||J.env.TERM==="xterm-256color"||J.env.TERM==="alacritty"||J.env.TERMINAL_EMULATOR==="JetBrains-JediTerm":J.env.TERM!=="linux"}s(Rt,"isUnicodeSupported");var bx={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"\u2588",squareDarkShade:"\u2593",squareMediumShade:"\u2592",squareLightShade:"\u2591",squareTop:"\u2580",squareBottom:"\u2584",squareLeft:"\u258C",squareRight:"\u2590",squareCenter:"\u25A0",bullet:"\u25CF",dot:"\u2024",ellipsis:"\u2026",pointerSmall:"\u203A",triangleUp:"\u25B2",triangleUpSmall:"\u25B4",triangleDown:"\u25BC",triangleDownSmall:"\u25BE",triangleLeftSmall:"\u25C2",triangleRightSmall:"\u25B8",home:"\u2302",heart:"\u2665",musicNote:"\u266A",musicNoteBeamed:"\u266B",arrowUp:"\u2191",arrowDown:"\u2193",arrowLeft:"\u2190",arrowRight:"\u2192",arrowLeftRight:"\u2194",arrowUpDown:"\u2195",almostEqual:"\u2248",notEqual:"\u2260",lessOrEqual:"\u2264",greaterOrEqual:"\u2265",identical:"\u2261",infinity:"\u221E",subscriptZero:"\u2080",subscriptOne:"\u2081",subscriptTwo:"\u2082",subscriptThree:"\u2083",subscriptFour:"\u2084",subscriptFive:"\u2085",subscriptSix:"\u2086",subscriptSeven:"\u2087",subscriptEight:"\u2088",subscriptNine:"\u2089",oneHalf:"\xBD",oneThird:"\u2153",oneQuarter:"\xBC",oneFifth:"\u2155",oneSixth:"\u2159",oneEighth:"\u215B",twoThirds:"\u2154",twoFifths:"\u2156",threeQuarters:"\xBE",threeFifths:"\u2157",threeEighths:"\u215C",fourFifths:"\u2158",fiveSixths:"\u215A",fiveEighths:"\u215D",sevenEighths:"\u215E",line:"\u2500",lineBold:"\u2501",lineDouble:"\u2550",lineDashed0:"\u2504",lineDashed1:"\u2505",lineDashed2:"\u2508",lineDashed3:"\u2509",lineDashed4:"\u254C",lineDashed5:"\u254D",lineDashed6:"\u2574",lineDashed7:"\u2576",lineDashed8:"\u2578",lineDashed9:"\u257A",lineDashed10:"\u257C",lineDashed11:"\u257E",lineDashed12:"\u2212",lineDashed13:"\u2013",lineDashed14:"\u2010",lineDashed15:"\u2043",lineVertical:"\u2502",lineVerticalBold:"\u2503",lineVerticalDouble:"\u2551",lineVerticalDashed0:"\u2506",lineVerticalDashed1:"\u2507",lineVerticalDashed2:"\u250A",lineVerticalDashed3:"\u250B",lineVerticalDashed4:"\u254E",lineVerticalDashed5:"\u254F",lineVerticalDashed6:"\u2575",lineVerticalDashed7:"\u2577",lineVerticalDashed8:"\u2579",lineVerticalDashed9:"\u257B",lineVerticalDashed10:"\u257D",lineVerticalDashed11:"\u257F",lineDownLeft:"\u2510",lineDownLeftArc:"\u256E",lineDownBoldLeftBold:"\u2513",lineDownBoldLeft:"\u2512",lineDownLeftBold:"\u2511",lineDownDoubleLeftDouble:"\u2557",lineDownDoubleLeft:"\u2556",lineDownLeftDouble:"\u2555",lineDownRight:"\u250C",lineDownRightArc:"\u256D",lineDownBoldRightBold:"\u250F",lineDownBoldRight:"\u250E",lineDownRightBold:"\u250D",lineDownDoubleRightDouble:"\u2554",lineDownDoubleRight:"\u2553",lineDownRightDouble:"\u2552",lineUpLeft:"\u2518",lineUpLeftArc:"\u256F",lineUpBoldLeftBold:"\u251B",lineUpBoldLeft:"\u251A",lineUpLeftBold:"\u2519",lineUpDoubleLeftDouble:"\u255D",lineUpDoubleLeft:"\u255C",lineUpLeftDouble:"\u255B",lineUpRight:"\u2514",lineUpRightArc:"\u2570",lineUpBoldRightBold:"\u2517",lineUpBoldRight:"\u2516",lineUpRightBold:"\u2515",lineUpDoubleRightDouble:"\u255A",lineUpDoubleRight:"\u2559",lineUpRightDouble:"\u2558",lineUpDownLeft:"\u2524",lineUpBoldDownBoldLeftBold:"\u252B",lineUpBoldDownBoldLeft:"\u2528",lineUpDownLeftBold:"\u2525",lineUpBoldDownLeftBold:"\u2529",lineUpDownBoldLeftBold:"\u252A",lineUpDownBoldLeft:"\u2527",lineUpBoldDownLeft:"\u2526",lineUpDoubleDownDoubleLeftDouble:"\u2563",lineUpDoubleDownDoubleLeft:"\u2562",lineUpDownLeftDouble:"\u2561",lineUpDownRight:"\u251C",lineUpBoldDownBoldRightBold:"\u2523",lineUpBoldDownBoldRight:"\u2520",lineUpDownRightBold:"\u251D",lineUpBoldDownRightBold:"\u2521",lineUpDownBoldRightBold:"\u2522",lineUpDownBoldRight:"\u251F",lineUpBoldDownRight:"\u251E",lineUpDoubleDownDoubleRightDouble:"\u2560",lineUpDoubleDownDoubleRight:"\u255F",lineUpDownRightDouble:"\u255E",lineDownLeftRight:"\u252C",lineDownBoldLeftBoldRightBold:"\u2533",lineDownLeftBoldRightBold:"\u252F",lineDownBoldLeftRight:"\u2530",lineDownBoldLeftBoldRight:"\u2531",lineDownBoldLeftRightBold:"\u2532",lineDownLeftRightBold:"\u252E",lineDownLeftBoldRight:"\u252D",lineDownDoubleLeftDoubleRightDouble:"\u2566",lineDownDoubleLeftRight:"\u2565",lineDownLeftDoubleRightDouble:"\u2564",lineUpLeftRight:"\u2534",lineUpBoldLeftBoldRightBold:"\u253B",lineUpLeftBoldRightBold:"\u2537",lineUpBoldLeftRight:"\u2538",lineUpBoldLeftBoldRight:"\u2539",lineUpBoldLeftRightBold:"\u253A",lineUpLeftRightBold:"\u2536",lineUpLeftBoldRight:"\u2535",lineUpDoubleLeftDoubleRightDouble:"\u2569",lineUpDoubleLeftRight:"\u2568",lineUpLeftDoubleRightDouble:"\u2567",lineUpDownLeftRight:"\u253C",lineUpBoldDownBoldLeftBoldRightBold:"\u254B",lineUpDownBoldLeftBoldRightBold:"\u2548",lineUpBoldDownLeftBoldRightBold:"\u2547",lineUpBoldDownBoldLeftRightBold:"\u254A",lineUpBoldDownBoldLeftBoldRight:"\u2549",lineUpBoldDownLeftRight:"\u2540",lineUpDownBoldLeftRight:"\u2541",lineUpDownLeftBoldRight:"\u253D",lineUpDownLeftRightBold:"\u253E",lineUpBoldDownBoldLeftRight:"\u2542",lineUpDownLeftBoldRightBold:"\u253F",lineUpBoldDownLeftBoldRight:"\u2543",lineUpBoldDownLeftRightBold:"\u2544",lineUpDownBoldLeftBoldRight:"\u2545",lineUpDownBoldLeftRightBold:"\u2546",lineUpDoubleDownDoubleLeftDoubleRightDouble:"\u256C",lineUpDoubleDownDoubleLeftRight:"\u256B",lineUpDownLeftDoubleRightDouble:"\u256A",lineCross:"\u2573",lineBackslash:"\u2572",lineSlash:"\u2571"},mx={tick:"\u2714",info:"\u2139",warning:"\u26A0",cross:"\u2718",squareSmall:"\u25FB",squareSmallFilled:"\u25FC",circle:"\u25EF",circleFilled:"\u25C9",circleDotted:"\u25CC",circleDouble:"\u25CE",circleCircle:"\u24DE",circleCross:"\u24E7",circlePipe:"\u24BE",radioOn:"\u25C9",radioOff:"\u25EF",checkboxOn:"\u2612",checkboxOff:"\u2610",checkboxCircleOn:"\u24E7",checkboxCircleOff:"\u24BE",pointer:"\u276F",triangleUpOutline:"\u25B3",triangleLeft:"\u25C0",triangleRight:"\u25B6",lozenge:"\u25C6",lozengeOutline:"\u25C7",hamburger:"\u2630",smiley:"\u32E1",mustache:"\u0DF4",star:"\u2605",play:"\u25B6",nodejs:"\u2B22",oneSeventh:"\u2150",oneNinth:"\u2151",oneTenth:"\u2152"},Tt={tick:"\u221A",info:"i",warning:"\u203C",cross:"\xD7",squareSmall:"\u25A1",squareSmallFilled:"\u25A0",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(\u25CB)",circleCross:"(\xD7)",circlePipe:"(\u2502)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[\xD7]",checkboxOff:"[ ]",checkboxCircleOn:"(\xD7)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"\u2206",triangleLeft:"\u25C4",triangleRight:"\u25BA",lozenge:"\u2666",lozengeOutline:"\u25CA",hamburger:"\u2261",smiley:"\u263A",mustache:"\u250C\u2500\u2510",star:"\u2736",play:"\u25BA",nodejs:"\u2666",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"},Ft={...bx,...mx},vt={...bx,...Tt},Ct=Rt(),Pt=Ct?Ft:vt,Q=Pt,yr=Object.entries(mx);var kt={prefix:{idle:Z("blue","?"),done:Z("green",Q.tick)},spinner:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"].map(x=>Z("yellow",x))},keybindings:[],style:{answer:s(x=>Z("cyan",x),"answer"),message:s(x=>Z("bold",x),"message"),error:s(x=>Z("red",`> ${x}`),"error"),defaultAnswer:s(x=>Z("dim",`(${x})`),"defaultAnswer"),help:s(x=>Z("dim",x),"help"),highlight:s(x=>Z("cyan",x),"highlight"),key:s(x=>Z("cyan",Z("bold",`<${x}>`)),"key")}};function gx(){return{...kt,keybindings:dx()}}s(gx,"getDefaultTheme");function wx(x){if(typeof x!="object"||x===null)return!1;let e=x;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(x)===e}s(wx,"isPlainObject");function yx(...x){let e={};for(let t of x)for(let[r,n]of Object.entries(t)){let i=e[r];e[r]=wx(i)&&wx(n)?yx(i,n):n}return e}s(yx,"deepMerge");function O(...x){let e=[gx(),...x.filter(t=>t!=null)];return yx(...e)}s(O,"makeTheme");function K({status:x="idle",theme:e}){let[t,r]=I(!1),[n,i]=I(0),{prefix:a,spinner:o}=O(e);return Y(()=>{if(x==="loading"){let l,p=-1,d=setTimeout(()=>{r(!0),l=setInterval(()=>{p=p+1,i(p%o.frames.length)},o.interval)},300);return()=>{clearTimeout(d),clearInterval(l)}}else r(!1)},[x]),t?o.frames[n]:typeof a=="string"?a:a[x==="loading"?"idle":x]??a.idle}s(K,"usePrefix");c();function o0(x,e){return b0(t=>{let r=t.get();if(!r||r.dependencies.length!==e.length||r.dependencies.some((n,i)=>n!==e[i])){let n=x();return t.set({value:n,dependencies:e}),n}return r.value})}s(o0,"useMemo");c();function c0(x){return I({current:x})[0]}s(c0,"useRef");c();function W(x){let e=c0(x);e.current=x,Y(t=>{let r=!1,n=ee((i,a)=>{r||e.current(a,t)});return t.input.on("keypress",n),()=>{r=!0,t.input.removeListener("keypress",n)}},[])}s(W,"useKeypress");c();c();var Ax=v0(_x(),1);c();c();c();c();var Ex=(()=>{let x=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;return e=>{let t=0;for(x.lastIndex=0;x.test(e);)t+=1;return e.length-t}})(),Dx=s(x=>x===12288||x>=65281&&x<=65376||x>=65504&&x<=65510,"isFullWidth"),Bx=s(x=>x===8987||x===9001||x>=12272&&x<=12287||x>=12289&&x<=12350||x>=12441&&x<=12543||x>=12549&&x<=12591||x>=12593&&x<=12686||x>=12688&&x<=12771||x>=12783&&x<=12830||x>=12832&&x<=12871||x>=12880&&x<=19903||x>=65040&&x<=65049||x>=65072&&x<=65106||x>=65108&&x<=65126||x>=65128&&x<=65131||x>=127488&&x<=127490||x>=127504&&x<=127547||x>=127552&&x<=127560||x>=131072&&x<=196605||x>=196608&&x<=262141,"isWideNotCJKTNotEmoji");var Mt=/[\u001b\u009b][[()#;?]*(?:[0-9]{1,4}(?:;[0-9]{0,4})*)?[0-9A-ORZcf-nqry=><]|\u001b\]8;[^;]*;.*?(?:\u0007|\u001b\u005c)/y,At=/[\x00-\x08\x0A-\x1F\x7F-\x9F]{1,1000}/y,Ix=/(?:(?![\uFF61-\uFF9F\uFF00-\uFFEF])[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\p{Script=Tangut}]){1,1000}/yu,jt=/\t{1,1000}/y,Lx=new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*","yu"),$t=/(?:[\x20-\x7E\xA0-\xFF](?!\uFE0F)){1,1000}/y,Nt=new RegExp("\\p{M}+","gu"),Kt={limit:1/0,ellipsis:""},Rx=s((x,e={},t={})=>{let r=e.limit??1/0,n=e.ellipsis??"",i=e?.ellipsisWidth??(n?Rx(n,Kt,t).width:0),a=0,o=t.controlWidth??0,f=t.tabWidth??8,l=t.emojiWidth??2,p=2,d=t.regularWidth??1,u=t.wideWidth??p,S=[[$t,d],[Mt,a],[At,o],[jt,f],[Lx,l],[Ix,u]],w=0,m=0,g=x.length,_=0,b=!1,B=g,T=Math.max(0,r-i),k=0,P=0,U=0,A=0;e:for(;;){if(P>k||m>=g&&m>w){let h=x.slice(k,P)||x.slice(w,m);_=0;for(let E of h.replaceAll(Nt,"")){let D=E.codePointAt(0)||0;if(Dx(D)?A=p:Bx(D)?A=u:A=d,U+A>T&&(B=Math.min(B,Math.max(k,w)+_)),U+A>r){b=!0;break e}_+=E.length,U+=A}k=P=0}if(m>=g)break e;for(let h=0,E=S.length;h<E;h++){let[D,F]=S[h];if(D.lastIndex=m,D.test(x)){if(_=D===Ix?Ex(x.slice(m,D.lastIndex)):D===Lx?1:D.lastIndex-m,A=_*F,U+A>T&&(B=Math.min(B,m+Math.floor((T-U)/F))),U+A>r){b=!0;break e}U+=A,k=w,P=m,m=w=D.lastIndex;continue e}}m+=1}return{width:b?T:U,index:b?B:g,truncated:b,ellipsed:b&&r>=i}},"getStringTruncatedWidth"),Tx=Rx;var Wt={limit:1/0,ellipsis:"",ellipsisWidth:0},qt=s((x,e={})=>Tx(x,Wt,e).width,"fastStringWidth"),t0=qt;var U0="\x1B",kx="\x9B",Vt=39,te="\x07",Ux="[",Gt="]",Ox="m",re=`${Gt}8;;`,Fx=new RegExp(`(?:\\${Ux}(?<code>\\d+)m|\\${re}(?<uri>.*)${te})`,"y"),vx=s(x=>{if(x>=30&&x<=37||x>=90&&x<=97)return 39;if(x>=40&&x<=47||x>=100&&x<=107)return 49;if(x===1||x===2)return 22;if(x===3)return 23;if(x===4)return 24;if(x===7)return 27;if(x===8)return 28;if(x===9)return 29;if(x===0)return 0},"getClosingCode"),Cx=s(x=>`${U0}${Ux}${x}${Ox}`,"wrapAnsiCode"),Px=s(x=>`${U0}${re}${x}${te}`,"wrapAnsiHyperlink"),xe=s((x,e,t)=>{let r=e[Symbol.iterator](),n=!1,i=!1,a=x.at(-1),o=a===void 0?0:t0(a),f=r.next(),l=r.next(),p=0;for(;!f.done;){let d=f.value,u=t0(d);o+u<=t?x[x.length-1]+=d:(x.push(d),o=0),(d===U0||d===kx)&&(n=!0,i=e.startsWith(re,p+1)),n?i?d===te&&(n=!1,i=!1):d===Ox&&(n=!1):(o+=u,o===t&&!l.done&&(x.push(""),o=0)),f=l,l=r.next(),p+=d.length}a=x.at(-1),!o&&a!==void 0&&a.length&&x.length>1&&(x[x.length-2]+=x.pop())},"wrapWord"),Ht=s(x=>{let e=x.split(" "),t=e.length;for(;t&&!t0(e[t-1]);)t--;return t===e.length?x:e.slice(0,t).join(" ")+e.slice(t).join("")},"stringVisibleTrimSpacesRight"),zt=s((x,e,t={})=>{if(t.trim!==!1&&x.trim()==="")return"";let r="",n,i,a=x.split(" "),o=[""],f=0;for(let d=0;d<a.length;d++){let u=a[d];if(t.trim!==!1){let w=o.at(-1)??"",m=w.trimStart();w.length!==m.length&&(o[o.length-1]=m,f=t0(m))}d!==0&&(f>=e&&(t.wordWrap===!1||t.trim===!1)&&(o.push(""),f=0),(f||t.trim===!1)&&(o[o.length-1]+=" ",f++));let S=t0(u);if(t.hard&&S>e){let w=e-f,m=1+Math.floor((S-w-1)/e);Math.floor((S-1)/e)<m&&o.push(""),xe(o,u,e),f=t0(o.at(-1)??"");continue}if(f+S>e&&f&&S){if(t.wordWrap===!1&&f<e){xe(o,u,e),f=t0(o.at(-1)??"");continue}o.push(""),f=0}if(f+S>e&&t.wordWrap===!1){xe(o,u,e),f=t0(o.at(-1)??"");continue}o[o.length-1]+=u,f+=S}t.trim!==!1&&(o=o.map(d=>Ht(d)));let l=o.join(`
4
4
  `),p=!1;for(let d=0;d<l.length;d++){let u=l[d];if(r+=u,p)p=!1;else if(p=u>="\uD800"&&u<="\uDBFF",p)continue;if(u===U0||u===kx){Fx.lastIndex=d+1;let w=Fx.exec(l)?.groups;if(w?.code!==void 0){let m=Number.parseFloat(w.code);n=m===Vt?void 0:m}else w?.uri!==void 0&&(i=w.uri.length===0?void 0:w.uri)}if(l[d+1]===`
5
5
  `){i&&(r+=Px(""));let S=n?vx(n):void 0;n&&S&&(r+=Cx(S))}else u===`
6
6
  `&&(n&&vx(n)&&(r+=Cx(n)),i&&(r+=Px(i)))}return r},"exec"),Yt=/\r?\n/;function Mx(x,e,t){return String(x).normalize().split(Yt).map(r=>zt(r,e,t)).join(`
@@ -17,7 +17,7 @@ import{a as wt}from"./chunk-YJQM7Q4Z.js";import{a as lx}from"./chunk-IZEVGCZS.js
17
17
  `,t+=le,t+=Wx,this.write(t),this.rl.close()}};c();var j0=class extends Promise{static{s(this,"PromisePolyfill")}static withResolver(){let e,t;return{promise:new Promise((n,i)=>{e=n,t=i}),resolve:e,reject:t}}};import r2 from"node:path";var n2=globalThis.setImmediate;function s2(){let x=Error.prepareStackTrace,e=[];try{Error.prepareStackTrace=(t,r)=>{let n=r.slice(1);return e=n,n},new Error().stack}catch{return e}return Error.prepareStackTrace=x,e}s(s2,"getCallSites");function q(x){let e=s2();return s((r,n={})=>{let{input:i=process.stdin,signal:a}=n,o=new Set,f=new Gx.default;f.pipe(n.output??process.stdout);let l=Vx.createInterface({terminal:!0,input:i,output:f});f.mute();let p=new B0(l),{promise:d,resolve:u,reject:S}=j0.withResolver(),w=s(()=>S(new P0),"cancel");if(a){let g=s(()=>S(new C0({cause:a.reason})),"abort");if(a.aborted)return g(),Object.assign(d,{cancel:w});a.addEventListener("abort",g),o.add(()=>a.removeEventListener("abort",g))}o.add(Nx((g,_)=>{S(new _0(`User force closed the prompt with ${g} ${_}`))}));let m=s(()=>S(new _0("User force closed the prompt with SIGINT")),"sigint");return l.on("SIGINT",m),o.add(()=>l.removeListener("SIGINT",m)),hx(l,g=>{let _=t2.bind(()=>a0.clearAll());l.on("close",_),o.add(()=>l.removeListener("close",_));let b=s(()=>{let B=s(()=>p.checkCursorPos(),"checkCursorPos");l.input.on("keypress",B),o.add(()=>l.input.removeListener("keypress",B));let T=null;g(()=>{let k=!1;try{let P=x(r,h=>{k?u(h):T={value:h}});if(P===void 0){let h=e[1]?.getFileName();throw h&&!h.startsWith("file://")&&(h=r2.resolve(h)),new Error(`Prompt functions must return a string.
18
18
  at ${h}`)}let[U,A]=typeof P=="string"?[P]:P;p.render(U,A),a0.run()}catch(P){S(P)}if(k=!0,T!==null){let{value:P}=T;T=null,u(P)}})},"startCycle");return"readableFlowing"in i?n2(b):b(),Object.assign(d.then(B=>(a0.clearAll(),B),B=>{throw a0.clearAll(),B}).finally(()=>{o.forEach(B=>B()),p.done({clearContent:!!n.clearPromptOnDone}),f.end()}).then(()=>d),{cancel:w})})},"prompt")}s(q,"createPrompt");c();import{styleText as i2}from"node:util";var v=class{static{s(this,"Separator")}separator=i2("dim",Array.from({length:15}).join(Q.line));type="separator";constructor(e){e&&(this.separator=e)}static isSeparator(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="separator")}};import{styleText as l0}from"node:util";var a2={icon:{checked:l0("green",Q.circleFilled),unchecked:Q.circle,cursor:Q.pointer,disabledChecked:l0("green",Q.circleDouble),disabledUnchecked:"-"},style:{disabled:s(x=>l0("dim",x),"disabled"),renderSelectedChoices:s(x=>x.map(e=>e.short).join(", "),"renderSelectedChoices"),description:s(x=>l0("cyan",x),"description"),keysHelpTip:s(x=>x.map(([e,t])=>`${l0("bold",e)} ${l0("dim",t)}`).join(l0("dim"," \u2022 ")),"keysHelpTip")},i18n:{disabledError:"This option is disabled and cannot be toggled."}};function $0(x){return!v.isSeparator(x)&&!x.disabled}s($0,"isSelectable");function be(x){return!v.isSeparator(x)}s(be,"isNavigable");function Hx(x){return!v.isSeparator(x)&&x.checked}s(Hx,"isChecked");function me(x){return $0(x)?{...x,checked:!x.checked}:x}s(me,"toggle");function o2(x){return function(e){return $0(e)?{...e,checked:x}:e}}s(o2,"check");function c2(x){return x.map(e=>{if(v.isSeparator(e))return e;if(typeof e!="object"||e===null||!("value"in e)){let n=String(e);return{value:e,name:n,short:n,checkedName:n,disabled:!1,checked:!1}}let t=e.name??String(e.value),r={value:e.value,name:t,short:e.short??t,checkedName:e.checkedName??t,disabled:e.disabled??!1,checked:e.checked??!1};return e.description&&(r.description=e.description),r})}s(c2,"normalizeChoices");var ge=q((x,e)=>{let{pageSize:t=7,loop:r=!0,required:n,validate:i=s(()=>!0,"validate")}=x,a={all:"a",invert:"i",...x.shortcuts},o=O(a2,x.theme),{keybindings:f}=o,[l,p]=I("idle"),d=K({status:l,theme:o}),[u,S]=I(c2(x.choices)),w=o0(()=>{let h=u.findIndex(be),E=u.findLastIndex(be);if(h===-1)throw new r0("[checkbox prompt] No selectable choices. All choices are disabled.");return{first:h,last:E}},[u]),[m,g]=I(w.first),[_,b]=I();W(async h=>{if(N(h)){let E=u.filter(Hx),D=await i([...E]);n&&!E.length?b("At least one choice must be selected"):D===!0?(p("done"),e(E.map(F=>F.value))):b(D||"You must select a valid value")}else if(x0(h,f)||s0(h,f)){if(_&&b(void 0),r||x0(h,f)&&m!==w.first||s0(h,f)&&m!==w.last){let E=x0(h,f)?-1:1,D=m;do D=(D+E+u.length)%u.length;while(!be(u[D]));g(D)}}else if(Z0(h)){let E=u[m];E&&!v.isSeparator(E)&&(E.disabled?b(o.i18n.disabledError):(b(void 0),S(u.map((D,F)=>F===m?me(D):D))))}else if(h.name===a.all){let E=u.some(D=>$0(D)&&!D.checked);S(u.map(o2(E)))}else if(h.name===a.invert)S(u.map(me));else if(S0(h)){let E=Number(h.name)-1,D=-1,F=u.findIndex(e0=>v.isSeparator(e0)?!1:(D++,D===E)),j=u[F];j&&$0(j)&&(g(F),S(u.map((e0,z)=>z===F?me(e0):e0)))}});let B=o.style.message(x.message,l),T,k=D0({items:u,active:m,renderItem({item:h,isActive:E}){if(v.isSeparator(h))return` ${h.separator}`;let D=E?o.icon.cursor:" ";if(h.disabled){let z=typeof h.disabled=="string"?h.disabled:"(disabled)",J0=h.checked?o.icon.disabledChecked:o.icon.disabledUnchecked;return o.style.disabled(`${D}${J0} ${h.name} ${z}`)}E&&(T=h.description);let F=h.checked?o.icon.checked:o.icon.unchecked,j=h.checked?h.checkedName:h.name;return(E?o.style.highlight:z=>z)(`${D}${F} ${j}`)},pageSize:t,loop:r});if(l==="done"){let h=u.filter(Hx),E=o.style.answer(o.style.renderSelectedChoices(h,u));return[d,B,E].filter(Boolean).join(" ")}let P=[["\u2191\u2193","navigate"],["space","select"]];a.all&&P.push([a.all,"all"]),a.invert&&P.push([a.invert,"invert"]),P.push(["\u23CE","submit"]);let U=o.style.keysHelpTip(P);return`${[[d,B].filter(Boolean).join(" "),k," ",T?o.style.description(T):"",_?o.style.error(_):"",U].filter(Boolean).join(`
19
19
  `).trimEnd()}${m0}`});c();c();var ct=v0(it(),1),ex=v0(wt(),1);import{spawn as P2,spawnSync as k2}from"node:child_process";import{mkdtempSync as U2,readFileSync as O2,rmSync as M2,writeFileSync as A2}from"node:fs";import Xe from"node:path";import j2 from"node:os";import{randomUUID as $2}from"node:crypto";c();var H0=class extends Error{static{s(this,"CreateFileError")}name="CreateFileError";originalError;constructor(e){super(`Failed to create temporary file.${e instanceof Error?` ${e.message}`:""}`,{cause:e}),this.originalError=e}},g0=class extends Error{static{s(this,"LaunchEditorError")}name="LaunchEditorError";originalError;constructor(e){super(`Failed to launch editor.${e instanceof Error?` ${e.message}`:""}`,{cause:e}),this.originalError=e}},z0=class extends Error{static{s(this,"ReadFileError")}name="ReadFileError";originalError;constructor(e){super(`Failed to read temporary file.${e instanceof Error?` ${e.message}`:""}`,{cause:e}),this.originalError=e}},Y0=class extends Error{static{s(this,"RemoveFileError")}name="RemoveFileError";originalError;constructor(e){super(`Failed to remove temporary file.${e instanceof Error?` ${e.message}`:""}`,{cause:e}),this.originalError=e}};c();function at(x){let e,t;if(x.startsWith('"')){let r=x.indexOf('"',1);r===-1?(e=x.slice(1),t=""):(e=x.substring(1,r),t=x.substring(r+1).trim())}else{let r=x.indexOf(" ");r===-1?(e=x,t=""):(e=x.substring(0,r),t=x.substring(r+1).trim())}return{bin:e,args:t?t.split(/\s+/):[]}}s(at,"parseEditorCommand");var ft=s((x,e,t)=>{let r=typeof e=="function"?e:void 0,n=typeof e=="function"?t:e;return new xx(x,n).runAsync(r)},"editAsync");function ot(x){return x?x.replace(/[^a-zA-Z0-9_.-]/g,"_"):""}s(ot,"sanitizeAffix");var xx=class{static{s(this,"ExternalEditor")}editor;lastExitStatus=0;text="";tempFile="";tempDir="";fileOptions={};constructor(e="",t={}){this.text=e,this.fileOptions=t,this.editor=at(process.env.VISUAL??process.env.EDITOR??(process.platform.startsWith("win")?"notepad":"vim"))}run(){this.createTempFile();try{try{let e=k2(this.editor.bin,this.editorArgs(),{shell:!1,stdio:"inherit"});if(e.error)throw e.error;this.lastExitStatus=e.status??0}catch(e){throw new g0(e)}return this.readTemporaryFile(),this.text}finally{this.cleanup()}}runAsync(e){this.createTempFile();let t=new Promise((r,n)=>{try{let i=P2(this.editor.bin,this.editorArgs(),{shell:!1,stdio:"inherit"});i.once("error",a=>{n(new g0(a))}),i.once("exit",a=>{this.lastExitStatus=a??0,r()})}catch(i){n(new g0(i))}}).then(()=>(this.readTemporaryFile(),this.text)).finally(()=>{this.cleanup()});return e&&t.then(r=>e(void 0,r),r=>e(r instanceof Error?r:new Error(String(r)),void 0)),t}cleanup(){if(this.tempDir)try{M2(this.tempDir,{force:!0,recursive:!0}),this.tempFile="",this.tempDir=""}catch(e){throw new Y0(e)}}createTempFile(){try{let e=Xe.resolve(this.fileOptions.dir??j2.tmpdir());this.tempDir=U2(Xe.join(e,"inquirer-editor-"));let t=$2(),r=ot(this.fileOptions.prefix),n=ot(this.fileOptions.postfix),i=`${r}${t}${n}`;this.tempFile=Xe.join(this.tempDir,i);let a={encoding:"utf8",flag:"wx"};Object.prototype.hasOwnProperty.call(this.fileOptions,"mode")&&(a.mode=this.fileOptions.mode),A2(this.tempFile,this.text,a)}catch(e){throw new H0(e)}}editorArgs(){return[...this.editor.args,this.tempFile]}readTemporaryFile(){try{let e=O2(this.tempFile);if(e.length===0)this.text="";else{let t=(0,ct.detect)(e)??"utf8";ex.default.encodingExists(t)||(t="utf8"),this.text=ex.default.decode(e,t)}}catch(e){throw new z0(e)}}};var N2={validationFailureMode:"keep",style:{loadingMessage:s(()=>"Validating...","loadingMessage"),waitingMessage:s(x=>`Press ${x} to launch your preferred editor.`,"waitingMessage")}},tx=q((x,e)=>{let{waitForUserInput:t=!0,file:{postfix:r=x.postfix??".txt",...n}={},validate:i=s(()=>!0,"validate")}=x,a=O(N2,x.theme),[o,f]=I("idle"),[l="",p]=I(x.default),[d,u]=I(),S=K({status:o,theme:a});async function w(b){b.pause();try{let B=await ft(l,{postfix:r,...n});b.resume(),f("loading");let T=await i(B);T===!0?(u(void 0),f("done"),e(B)):(a.validationFailureMode==="clear"?p(x.default):p(B),u(T||"You must provide a valid value"),f("idle"))}catch(B){b.resume(),u(String(B))}}s(w,"startEditor"),Y(b=>{t||w(b)},[]),W((b,B)=>{o==="idle"&&N(b)&&w(B)});let m=a.style.message(x.message,o),g="";if(o==="loading")g=a.style.help(a.style.loadingMessage());else if(o==="idle"){let b=a.style.key("enter");g=a.style.help(a.style.waitingMessage(b))}let _="";return d&&(_=a.style.error(d)),[[S,m,g].filter(Boolean).join(" "),_]});c();function lt(x,e){let t=e!==!1;return/^(y|yes)/i.test(x)?t=!0:/^(n|no)/i.test(x)&&(t=!1),t}s(lt,"getBooleanValue");function dt(x){return x?"Yes":"No"}s(dt,"boolToString");var rx=q((x,e)=>{let{transformer:t=dt}=x,[r,n]=I("idle"),[i,a]=I(""),o=O(x.theme),f=K({status:r,theme:o});W((u,S)=>{if(r==="idle")if(N(u)){let w=lt(i,x.default);a(t(w)),n("done"),e(w)}else if(y0(u)){let w=dt(!lt(i,x.default));S.clearLine(0),S.write(w),a(w)}else a(S.line)});let l=i,p="";r==="done"?l=o.style.answer(i):p=` ${o.style.defaultAnswer(x.default===!1?"y/N":"Y/n")}`;let d=o.style.message(x.message,r);return`${f} ${d}${p} ${l}`});c();var K2={validationFailureMode:"keep"},nx=q((x,e)=>{let{prefill:t="tab"}=x,r=O(K2,x.theme),[n,i]=I("idle"),[a,o]=I(String(x.default??"")),[f,l]=I(),[p,d]=I(""),u=K({status:n,theme:r});async function S(b){let{required:B,pattern:T,patternError:k="Invalid input"}=x;return B&&!b?"You must provide a value":T&&!T.test(b)?k:typeof x.validate=="function"?await x.validate(b)||"You must provide a valid value":!0}s(S,"validate"),W(async(b,B)=>{if(n==="idle")if(N(b)){let T=p||a;i("loading");let k=await S(T);k===!0?(d(T),i("done"),e(T)):(r.validationFailureMode==="clear"?d(""):B.write(p),l(k),i("idle"))}else w0(b)&&!p?o(""):y0(b)&&!p?(o(""),B.clearLine(0),B.write(a),d(a)):(d(B.line),l(void 0))}),Y(b=>{t==="editable"&&a&&(b.write(a),d(a))},[]);let w=r.style.message(x.message,n),m=p;typeof x.transformer=="function"?m=x.transformer(p,{isFinal:n==="done"}):n==="done"&&(m=r.style.answer(p));let g;a&&n!=="done"&&!p&&(g=r.style.defaultAnswer(a));let _="";return f&&(_=r.style.error(f)),[[u,w,g,m].filter(b=>b!==void 0).join(" "),_]});c();var W2={style:{maskedText:"[input is masked]"}},sx=q((x,e)=>{let{validate:t=s(()=>!0,"validate")}=x,r=O(W2,x.theme),[n,i]=I("idle"),[a,o]=I(),[f,l]=I(""),p=K({status:n,theme:r});W(async(m,g)=>{if(n==="idle")if(N(m)){let _=f;i("loading");let b=await t(_);b===!0?(l(_),i("done"),e(_)):(g.write(f),o(b||"You must provide a valid value"),i("idle"))}else l(g.line),o(void 0)});let d=r.style.message(x.message,n),u="",S;x.mask?u=(typeof x.mask=="string"?x.mask:"*").repeat(f.length):n!=="done"&&(S=`${r.style.help(r.style.maskedText)}${m0}`),n==="done"&&(u=r.style.answer(u));let w="";return a&&(w=r.style.error(a)),[[p,d,x.mask?u:S].join(" "),w]});c();import{styleText as F0}from"node:util";var q2={icon:{cursor:Q.pointer},style:{disabled:s(x=>F0("dim",x),"disabled"),description:s(x=>F0("cyan",x),"description"),keysHelpTip:s(x=>x.map(([e,t])=>`${F0("bold",e)} ${F0("dim",t)}`).join(F0("dim"," \u2022 ")),"keysHelpTip")},i18n:{disabledError:"This option is disabled and cannot be selected."},indexMode:"hidden"};function ix(x){return!v.isSeparator(x)&&!x.disabled}s(ix,"isSelectable");function ax(x){return!v.isSeparator(x)}s(ax,"isNavigable");function V2(x){return x.map(e=>{if(v.isSeparator(e))return e;if(typeof e!="object"||e===null||!("value"in e)){let n=String(e);return{value:e,name:n,short:n,disabled:!1}}let t=e.name??String(e.value),r={value:e.value,name:t,short:e.short??t,disabled:e.disabled??!1};return e.description&&(r.description=e.description),r})}s(V2,"normalizeChoices");var ox=q((x,e)=>{let{loop:t=!0,pageSize:r=7}=x,n=O(q2,x.theme),{keybindings:i}=n,[a,o]=I("idle"),f=K({status:a,theme:n}),l=c0(),p=!i.includes("vim"),d=o0(()=>V2(x.choices),[x.choices]),u=o0(()=>{let h=d.findIndex(ax),E=d.findLastIndex(ax);if(h===-1)throw new r0("[select prompt] No selectable choices. All choices are disabled.");return{first:h,last:E}},[d]),S=o0(()=>"default"in x?d.findIndex(h=>ix(h)&&h.value===x.default):-1,[x.default,d]),[w,m]=I(S===-1?u.first:S),g=d[w];if(g==null||v.isSeparator(g))throw new Error("Active index does not point to a choice");let[_,b]=I();W((h,E)=>{if(clearTimeout(l.current),_&&b(void 0),N(h))g.disabled?b(n.i18n.disabledError):(o("done"),e(g.value));else if(x0(h,i)||s0(h,i)){if(E.clearLine(0),t||x0(h,i)&&w!==u.first||s0(h,i)&&w!==u.last){let D=x0(h,i)?-1:1,F=w;do F=(F+D+d.length)%d.length;while(!ax(d[F]));m(F)}}else if(S0(h)&&!Number.isNaN(Number(E.line))){let D=Number(E.line)-1,F=-1,j=d.findIndex(z=>v.isSeparator(z)?!1:(F++,F===D)),e0=d[j];e0!=null&&ix(e0)&&m(j),l.current=setTimeout(()=>{E.clearLine(0)},700)}else if(w0(h))E.clearLine(0);else if(p){let D=E.line.toLowerCase(),F=d.findIndex(j=>v.isSeparator(j)||!ix(j)?!1:j.name.toLowerCase().startsWith(D));F!==-1&&m(F),l.current=setTimeout(()=>{E.clearLine(0)},700)}}),Y(()=>()=>{clearTimeout(l.current)},[]);let B=n.style.message(x.message,a),T=n.style.keysHelpTip([["\u2191\u2193","navigate"],["\u23CE","select"]]),k=0,P=D0({items:d,active:w,renderItem({item:h,isActive:E,index:D}){if(v.isSeparator(h))return k++,` ${h.separator}`;let F=E?n.icon.cursor:" ",j=n.indexMode==="number"?`${D+1-k}. `:"";if(h.disabled){let z=typeof h.disabled=="string"?h.disabled:"(disabled)",J0=E?n.icon.cursor:"-";return n.style.disabled(`${J0} ${j}${h.name} ${z}`)}return(E?n.style.highlight:z=>z)(`${F} ${j}${h.name}`)},pageSize:r,loop:t});if(a==="done")return[f,B,n.style.answer(g.short)].filter(Boolean).join(" ");let{description:U}=g;return`${[[f,B].filter(Boolean).join(" "),P," ",U?n.style.description(U):"",_?n.style.error(_):"",T].filter(Boolean).join(`
20
- `).trimEnd()}${m0}`});function ht(x){console.log(),x&&p0(x),process.exit(130)}s(ht,"abort");function cx(x){if(x?.name!=="ExitPromptError")throw x;ht()}s(cx,"abortIfCancelled");async function pt(x,e){let t=e?` [${e}]`:"",r=ut.createInterface({input:process.stdin,output:process.stdout});try{return await new Promise((n,i)=>{r.on("SIGINT",()=>i(new Error("interrupted"))),r.on("close",()=>i(new Error("eof"))),r.question(` ${x}${t}: `).then(n,i)})}catch(n){ht(n.message==="eof"?"No answer: stdin is not a terminal and had no input left -- nothing changed.":void 0)}finally{r.close()}}s(pt,"readLine");async function G2(x,e="",{secret:t=!1,multiline:r=!1}={}){if(!process.stdin.isTTY)return(await pt(x,e)).trim()||e;try{return t?(await sx({message:x,mask:!0})).trim()||e:r&&(process.env.VISUAL||process.env.EDITOR)?(await tx({message:x,default:e,postfix:".md"})).trim()||e:(await nx({message:x,default:e||void 0})).trim()||e}catch(n){cx(n)}}s(G2,"prompt");async function bt(x,e,t=!0){if(!t)return e;if(!process.stdin.isTTY)return/^y/i.test((await pt(`${x} [y/n]`,e?"y":"n")).trim());try{return await rx({message:x,default:e})}catch(r){cx(r)}}s(bt,"confirm");function H2(x,e){let t=new Set,r=[];for(let n of x.split(","))n=n.trim(),n&&!t.has(n)&&(t.add(n),r.push(n));if(e?.length){let n=r.filter(i=>!e.includes(i));n.length&&p0(`Unknown values will be skipped downstream: ${n.join(", ")}`)}return r.join(",")}s(H2,"normalizeMulti");var z2=Symbol("other");function mt(x){let{schema:e,uiSchema:t={},formData:r={}}=x,n=new Set(e.required??[]);return(t["ui:order"]??Object.keys(e.properties??{})).map(a=>{let o=e.properties[a],f=t[a]??{},l=f["ui:options"]??{},p=r[a];return{key:a,label:o.title??a,multi:o.type==="array",multiline:f["ui:widget"]==="textarea",boolean:o.type==="boolean",pattern:o.pattern??null,choices:o.items?.enum??o.enum??null,groups:l.groups??null,required:n.has(a),refinable:!!l.refinable,refineInstruction:l.refineInstruction??null,default:Array.isArray(p)?p.join(","):String(p??"")}})}s(mt,"fieldsOf");function Y2(x,e){if(!e)return x;let t=new Map(x.map(i=>[i.value,i])),r=[],n=s((i,a)=>{a.length&&r.push(new v(`\u2500\u2500 ${i} \u2500\u2500`),...a)},"section");for(let[i,a]of Object.entries(e)){let o=a.flatMap(f=>t.get(f)??[]);for(let f of o)t.delete(f.value);n(i,o)}return n("other",[...t.values()]),r}s(Y2,"withGroupHeadings");async function J2(x,e,t){if(!process.stdin.isTTY)return null;let r=new Set(e.split(",").map(n=>n.trim()).filter(Boolean));try{if(x.multi)return(await ge({message:x.label,choices:Y2(t.map(a=>({value:a,checked:r.has(a)})),x.groups)})).join(",");let n=await ox({message:x.label,choices:[...t.map(i=>({name:i,value:i})),{name:"Other (type it)",value:z2}],default:t.includes(e)?e:void 0});return typeof n=="string"?n:null}catch(n){cx(n)}}s(J2,"pickFromChoices");async function Q2(x,e,t=x.choices??null){for(;;){let r=t?.length?await J2(x,e,t):null;if(r??=await G2(x.label,e,{multiline:x.multiline}),x.multi&&r&&(r=H2(r,t)),r&&x.pattern&&!new RegExp(`^(?:${x.pattern})`).test(r)){p0(`'${r}' doesn't match the expected format ${x.pattern} \u2014 try again.`);continue}return r}}s(Q2,"promptOne");async function Z2(x,e,t,r=bt){if(!await r("Refine with Claude?",!1))return e;h0(" Refining via the claude CLI \u2014 this takes a few seconds\u2026");let n;try{let{refinePrompt:i}=await import("./sandbox-WDMS6H2S.js");n=(await i(e,x.refineInstruction??"",t)).trim()}catch(i){return p0(`Refine failed (${i.message}) \u2014 keeping what you typed.`),e}return n?(h0(`
20
+ `).trimEnd()}${m0}`});function ht(x){console.log(),x&&p0(x),process.exit(130)}s(ht,"abort");function cx(x){if(x?.name!=="ExitPromptError")throw x;ht()}s(cx,"abortIfCancelled");async function pt(x,e){let t=e?` [${e}]`:"",r=ut.createInterface({input:process.stdin,output:process.stdout});try{return await new Promise((n,i)=>{r.on("SIGINT",()=>i(new Error("interrupted"))),r.on("close",()=>i(new Error("eof"))),r.question(` ${x}${t}: `).then(n,i)})}catch(n){ht(n.message==="eof"?"No answer: stdin is not a terminal and had no input left -- nothing changed.":void 0)}finally{r.close()}}s(pt,"readLine");async function G2(x,e="",{secret:t=!1,multiline:r=!1}={}){if(!process.stdin.isTTY)return(await pt(x,e)).trim()||e;try{return t?(await sx({message:x,mask:!0})).trim()||e:r&&(process.env.VISUAL||process.env.EDITOR)?(await tx({message:x,default:e,postfix:".md"})).trim()||e:(await nx({message:x,default:e||void 0})).trim()||e}catch(n){cx(n)}}s(G2,"prompt");async function bt(x,e,t=!0){if(!t)return e;if(!process.stdin.isTTY)return/^y/i.test((await pt(`${x} [y/n]`,e?"y":"n")).trim());try{return await rx({message:x,default:e})}catch(r){cx(r)}}s(bt,"confirm");function H2(x,e){let t=new Set,r=[];for(let n of x.split(","))n=n.trim(),n&&!t.has(n)&&(t.add(n),r.push(n));if(e?.length){let n=r.filter(i=>!e.includes(i));n.length&&p0(`Unknown values will be skipped downstream: ${n.join(", ")}`)}return r.join(",")}s(H2,"normalizeMulti");var z2=Symbol("other");function mt(x){let{schema:e,uiSchema:t={},formData:r={}}=x,n=new Set(e.required??[]);return(t["ui:order"]??Object.keys(e.properties??{})).map(a=>{let o=e.properties[a],f=t[a]??{},l=f["ui:options"]??{},p=r[a];return{key:a,label:o.title??a,multi:o.type==="array",multiline:f["ui:widget"]==="textarea",boolean:o.type==="boolean",pattern:o.pattern??null,choices:o.items?.enum??o.enum??null,groups:l.groups??null,required:n.has(a),refinable:!!l.refinable,refineInstruction:l.refineInstruction??null,default:Array.isArray(p)?p.join(","):String(p??"")}})}s(mt,"fieldsOf");function Y2(x,e){if(!e)return x;let t=new Map(x.map(i=>[i.value,i])),r=[],n=s((i,a)=>{a.length&&r.push(new v(`\u2500\u2500 ${i} \u2500\u2500`),...a)},"section");for(let[i,a]of Object.entries(e)){let o=a.flatMap(f=>t.get(f)??[]);for(let f of o)t.delete(f.value);n(i,o)}return n("other",[...t.values()]),r}s(Y2,"withGroupHeadings");async function J2(x,e,t){if(!process.stdin.isTTY)return null;let r=new Set(e.split(",").map(n=>n.trim()).filter(Boolean));try{if(x.multi)return(await ge({message:x.label,choices:Y2(t.map(a=>({value:a,checked:r.has(a)})),x.groups)})).join(",");let n=await ox({message:x.label,choices:[...t.map(i=>({name:i,value:i})),{name:"Other (type it)",value:z2}],default:t.includes(e)?e:void 0});return typeof n=="string"?n:null}catch(n){cx(n)}}s(J2,"pickFromChoices");async function Q2(x,e,t=x.choices??null){for(;;){let r=t?.length?await J2(x,e,t):null;if(r??=await G2(x.label,e,{multiline:x.multiline}),x.multi&&r&&(r=H2(r,t)),r&&x.pattern&&!new RegExp(`^(?:${x.pattern})`).test(r)){p0(`'${r}' doesn't match the expected format ${x.pattern} \u2014 try again.`);continue}return r}}s(Q2,"promptOne");async function Z2(x,e,t,r=bt){if(!await r("Refine with Claude?",!1))return e;h0(" Refining via the claude CLI \u2014 this takes a few seconds\u2026");let n;try{let{refinePrompt:i}=await import("./sandbox-IDX23YKB.js");n=(await i(e,x.refineInstruction??"",t)).trim()}catch(i){return p0(`Refine failed (${i.message}) \u2014 keeping what you typed.`),e}return n?(h0(`
21
21
  ${n}
22
22
  `),await r("Keep this version?",!0)?n:e):(p0("Claude returned no text \u2014 keeping what you typed."),e)}s(Z2,"offerRefine");async function gt(x,e){if(x.boolean){e[x.key]=String(await bt(x.label,x.default==="true"));return}x.choices?.length&&!process.stdin.isTTY&&h0(" Choices: "+x.choices.join(", "));let t=await Q2(x,x.default??"");x.refinable&&t&&(t=await Z2(x,t,e)),(t||x.required)&&(e[x.key]=t)}s(gt,"askField");async function oi(x,e,{intro:t=null,afterField:r}={}){t&&h0(t);let n={};for(let i of mt(x))i.key in e||await gt(n[i.key]?{...i,default:n[i.key]}:i,e),r&&i.key in e&&Object.assign(n,await r(i.key,e));return e}s(oi,"runFormWizard");async function ci(x,e,t,{intro:r=null}={}){r&&h0(r);for(let n of x){if(n.key in e)continue;let i={...fx(n,"",e,{defaults:!1}),default:t(n)};for(let a of mt(lx({prompts:[i]})))await gt(a,e)}return e}s(ci,"runWizard");export{G2 as a,bt as b,mt as c,gt as d,oi as e,ci as f};
23
- //# sourceMappingURL=chunk-UNX5R5BF.js.map
23
+ //# sourceMappingURL=chunk-4W67Z5S7.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import{C as j,G as k,S as m,X as R,a as b,r as g,w}from"./chunk-VIL6N7EO.js";import{b as y}from"./chunk-T252BIFK.js";import{a as c,e as O,f as S}from"./chunk-MG5KFPMK.js";S();var A=O(b(),1);import*as v from"node:fs";import*as a from"node:path";var d=c(t=>{try{return v.realpathSync(t)}catch{return a.resolve(t)}},"realPath"),E=c(t=>(t?.extra_volumes??[]).map(n=>n.split(":")[0]).filter(n=>n.includes("/")).map(n=>d(g(n))),"hostBinds"),h=c((t,n)=>t===n||t.startsWith(`${n}${a.sep}`)||n==="/","within");function N(t,n){let e=[j(),k()].map(d),o=["/var/run/docker.sock",w(),...e].map(d),r=n&&d(n);return E(t).some(s=>a.basename(s)==="docker.sock"||o.some(i=>h(i,s))||!!(r&&e.some(i=>h(s,i))&&!h(s,r)))}c(N,"hostAccess");function B(t,n){let e=d(n);return E(t).some(o=>h(e,o))}c(B,"seesHostPath");function u(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}c(u,"isDict");function x(t,n){if(!u(t))return null;let e=t.archetype;if(e!=null){n==null&&(n=m());let r=n[e];return u(r)?r:null}let o=t.standards;return o?.length?{standards:Array.from(o)}:null}c(x,"resolveServiceArchetype");function L(t,n){let e=x(t,n);return Array.from(e?.standards??[])}c(L,"serviceStandards");function C(t,n,e){if(!u(n)||T(n)!==null)return null;let o=n.test;if(o)return String(o);let s=x(n,e)?.test;return s?String(s).split("{service}").join(t):null}c(C,"serviceTestCommand");function T(t){let n=u(t)?/^none(?::\s*(.*))?$/i.exec(String(t.test??"").trim()):null;return n?n[1]?.trim()||"test: none":null}c(T,"serviceNoTests");function U(t,n,e,o){let r=`sh -c '${e.split("'").join("'\\''")}'`;return o?`docker exec -w /app ${t}-${n} ${o} --no-wait ${r}`:`docker exec ${t}-${n} ${r}`}c(U,"containerTestCommand");function _(t){return!/[|;&{}()`\n]|\$\(/.test(t.split("&&").join(""))}c(_,"isPlainChain");function V(t,n,e,o){let r=e?`${e} && ${n}`:n;if(!t)return r;let s=o?`${t} --cwd ${a.resolve(t,"../../..",o)}`:t;return _(r)&&!r.includes("&&")?`${s} ${r}`:`${s} sh -c '${r.split("'").join("'\\''")}'`}c(V,"wrappedTestCommand");function P(t,n){if(!u(t))return null;let e=t.validate;if(e)return String(e);let o=x(t,n)?.validate;return o?String(o):null}c(P,"serviceValidation");function M(t,n,e){return e?.length?[...e]:t.flatMap(o=>n[o]?.services??[])}c(M,"candidateServiceNames");function q(t,n,e,o=new Set){e==null&&(e=m());let r=[];for(let s of[...new Set(t)].sort()){let i=n[s];if(!u(i))continue;let p=P(i,e);r.push({service:s,repo:String(i.repo??""),path:String(i.path??"."),test:C(s,i,e),validate:p??(o.has(s)?"URL health check (see Quick Health Checks)":"No validation guidance registered in services.yaml; say so instead of inventing one")})}return r}c(q,"validationRows");function W(t,n,e,o,r){r==null&&(r=m());let s=M(t,e,o),i={};for(let l of s){let f=n[l];if(!u(f))continue;let $=f.archetype;$&&$ in r&&(i[$]??=[]).push(l)}let p={};for(let l of Object.keys(i).sort())p[l]=[...new Set(i[l])].sort();return p}c(W,"resolvePresentArchetypes");function F(t,n,e,o,r){let s=(n.SERVICES??"").split(",").map(i=>i.trim()).filter(i=>i);return W(t.map(([i])=>i),e,o,s,r)}c(F,"presentArchetypes");function Q(t,n){let e=[];for(let[o,r]of Object.entries(t)){if(!u(r))continue;let s=r.archetype;s!=null&&(s in n||e.push(`services.yaml: service '${o}' references unknown archetype '${s}' \u2014 no \`archetypes.${s}\` entry`),r.standards?.length&&e.push(`services.yaml: service '${o}' declares both \`archetype:\` and legacy \`standards:\` \u2014 drop \`standards:\` (the archetype wins)`))}return e}c(Q,"validateServiceArchetypes");function Y(t,n,e){let o={};try{o=(0,A.parse)(v.readFileSync(a.join(y(n),"workspace.yml"),"utf8"))?.dev_links??{}}catch{}return Object.fromEntries(Object.entries(t).map(([r,s])=>{let i=a.join(n,String(e[r]?.repo??s.repo??"")),p=[...s.extra_volumes??[],...e[r]?.extra_volumes??[],...o[r]??[]].map(l=>{let f=l.split("${WORKSPACE}").join(n).split("${REPO}").join(i);return f.includes("${WERKMEISTER_ROOT}")?f.split("${WERKMEISTER_ROOT}").join(R()):f});return[r,{...s,extra_volumes:p}]}))}c(Y,"withComposeMounts");export{N as a,B as b,x as c,L as d,C as e,T as f,U as g,_ as h,V as i,P as j,M as k,q as l,F as m,Q as n,Y as o};
4
- //# sourceMappingURL=chunk-FKT4ITVN.js.map
3
+ import{C as j,G as k,S as m,X as R,a as b,r as g,w}from"./chunk-PAA3VRIJ.js";import{b as y}from"./chunk-Q2RHQZ2Z.js";import{a as c,e as O,f as S}from"./chunk-SO6GBFEQ.js";S();var A=O(b(),1);import*as v from"node:fs";import*as a from"node:path";var d=c(t=>{try{return v.realpathSync(t)}catch{return a.resolve(t)}},"realPath"),E=c(t=>(t?.extra_volumes??[]).map(n=>n.split(":")[0]).filter(n=>n.includes("/")).map(n=>d(g(n))),"hostBinds"),h=c((t,n)=>t===n||t.startsWith(`${n}${a.sep}`)||n==="/","within");function N(t,n){let e=[j(),k()].map(d),o=["/var/run/docker.sock",w(),...e].map(d),r=n&&d(n);return E(t).some(s=>a.basename(s)==="docker.sock"||o.some(i=>h(i,s))||!!(r&&e.some(i=>h(s,i))&&!h(s,r)))}c(N,"hostAccess");function B(t,n){let e=d(n);return E(t).some(o=>h(e,o))}c(B,"seesHostPath");function u(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}c(u,"isDict");function x(t,n){if(!u(t))return null;let e=t.archetype;if(e!=null){n==null&&(n=m());let r=n[e];return u(r)?r:null}let o=t.standards;return o?.length?{standards:Array.from(o)}:null}c(x,"resolveServiceArchetype");function L(t,n){let e=x(t,n);return Array.from(e?.standards??[])}c(L,"serviceStandards");function C(t,n,e){if(!u(n)||T(n)!==null)return null;let o=n.test;if(o)return String(o);let s=x(n,e)?.test;return s?String(s).split("{service}").join(t):null}c(C,"serviceTestCommand");function T(t){let n=u(t)?/^none(?::\s*(.*))?$/i.exec(String(t.test??"").trim()):null;return n?n[1]?.trim()||"test: none":null}c(T,"serviceNoTests");function U(t,n,e,o){let r=`sh -c '${e.split("'").join("'\\''")}'`;return o?`docker exec -w /app ${t}-${n} ${o} --no-wait ${r}`:`docker exec ${t}-${n} ${r}`}c(U,"containerTestCommand");function _(t){return!/[|;&{}()`\n]|\$\(/.test(t.split("&&").join(""))}c(_,"isPlainChain");function V(t,n,e,o){let r=e?`${e} && ${n}`:n;if(!t)return r;let s=o?`${t} --cwd ${a.resolve(t,"../../..",o)}`:t;return _(r)&&!r.includes("&&")?`${s} ${r}`:`${s} sh -c '${r.split("'").join("'\\''")}'`}c(V,"wrappedTestCommand");function P(t,n){if(!u(t))return null;let e=t.validate;if(e)return String(e);let o=x(t,n)?.validate;return o?String(o):null}c(P,"serviceValidation");function M(t,n,e){return e?.length?[...e]:t.flatMap(o=>n[o]?.services??[])}c(M,"candidateServiceNames");function q(t,n,e,o=new Set){e==null&&(e=m());let r=[];for(let s of[...new Set(t)].sort()){let i=n[s];if(!u(i))continue;let p=P(i,e);r.push({service:s,repo:String(i.repo??""),path:String(i.path??"."),test:C(s,i,e),validate:p??(o.has(s)?"URL health check (see Quick Health Checks)":"No validation guidance registered in services.yaml; say so instead of inventing one")})}return r}c(q,"validationRows");function W(t,n,e,o,r){r==null&&(r=m());let s=M(t,e,o),i={};for(let l of s){let f=n[l];if(!u(f))continue;let $=f.archetype;$&&$ in r&&(i[$]??=[]).push(l)}let p={};for(let l of Object.keys(i).sort())p[l]=[...new Set(i[l])].sort();return p}c(W,"resolvePresentArchetypes");function F(t,n,e,o,r){let s=(n.SERVICES??"").split(",").map(i=>i.trim()).filter(i=>i);return W(t.map(([i])=>i),e,o,s,r)}c(F,"presentArchetypes");function Q(t,n){let e=[];for(let[o,r]of Object.entries(t)){if(!u(r))continue;let s=r.archetype;s!=null&&(s in n||e.push(`services.yaml: service '${o}' references unknown archetype '${s}' \u2014 no \`archetypes.${s}\` entry`),r.standards?.length&&e.push(`services.yaml: service '${o}' declares both \`archetype:\` and legacy \`standards:\` \u2014 drop \`standards:\` (the archetype wins)`))}return e}c(Q,"validateServiceArchetypes");function Y(t,n,e){let o={};try{o=(0,A.parse)(v.readFileSync(a.join(y(n),"workspace.yml"),"utf8"))?.dev_links??{}}catch{}return Object.fromEntries(Object.entries(t).map(([r,s])=>{let i=a.join(n,String(e[r]?.repo??s.repo??"")),p=[...s.extra_volumes??[],...e[r]?.extra_volumes??[],...o[r]??[]].map(l=>{let f=l.split("${WORKSPACE}").join(n).split("${REPO}").join(i);return f.includes("${WERKMEISTER_ROOT}")?f.split("${WERKMEISTER_ROOT}").join(R()):f});return[r,{...s,extra_volumes:p}]}))}c(Y,"withComposeMounts");export{N as a,B as b,x as c,L as d,C as e,T as f,U as g,_ as h,V as i,P as j,M as k,q as l,F as m,Q as n,Y as o};
4
+ //# sourceMappingURL=chunk-52Y6C7EC.js.map
@@ -1,6 +1,6 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import{a as o,c as w,f as u}from"./chunk-MG5KFPMK.js";var $=w(s=>{"use strict";u();var y=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,c=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,E=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,v=/\\([\u000b\u0020-\u00ff])/g,h=/([\\"])/g,d=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;s.format=g;s.parse=T;function g(r){if(!r||typeof r!="object")throw new TypeError("argument obj is required");var e=r.parameters,t=r.type;if(!t||!d.test(t))throw new TypeError("invalid type");var f=t;if(e&&typeof e=="object")for(var a,p=Object.keys(e).sort(),n=0;n<p.length;n++){if(a=p[n],!E.test(a))throw new TypeError("invalid parameter name");f+="; "+a+"="+m(e[a])}return f}o(g,"format");function T(r){if(!r)throw new TypeError("argument string is required");var e=typeof r=="object"?l(r):r;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var t=e.indexOf(";"),f=t!==-1?e.slice(0,t).trim():e.trim();if(!d.test(f))throw new TypeError("invalid media type");var a=new _(f.toLowerCase());if(t!==-1){var p,n,i;for(y.lastIndex=t;n=y.exec(e);){if(n.index!==t)throw new TypeError("invalid parameter format");t+=n[0].length,p=n[1].toLowerCase(),i=n[2],i.charCodeAt(0)===34&&(i=i.slice(1,-1),i.indexOf("\\")!==-1&&(i=i.replace(v,"$1"))),a.parameters[p]=i}if(t!==e.length)throw new TypeError("invalid parameter format")}return a}o(T,"parse");function l(r){var e;if(typeof r.getHeader=="function"?e=r.getHeader("content-type"):typeof r.headers=="object"&&(e=r.headers&&r.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}o(l,"getcontenttype");function m(r){var e=String(r);if(E.test(e))return e;if(e.length>0&&!c.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(h,"\\$1")+'"'}o(m,"qstring");function _(r){this.parameters=Object.create(null),this.type=r}o(_,"ContentType")});export{$ as a};
3
+ import{a as o,c as w,f as u}from"./chunk-SO6GBFEQ.js";var $=w(s=>{"use strict";u();var y=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,c=/^[\u000b\u0020-\u007e\u0080-\u00ff]+$/,E=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,v=/\\([\u000b\u0020-\u00ff])/g,h=/([\\"])/g,d=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;s.format=g;s.parse=T;function g(r){if(!r||typeof r!="object")throw new TypeError("argument obj is required");var e=r.parameters,t=r.type;if(!t||!d.test(t))throw new TypeError("invalid type");var f=t;if(e&&typeof e=="object")for(var a,p=Object.keys(e).sort(),n=0;n<p.length;n++){if(a=p[n],!E.test(a))throw new TypeError("invalid parameter name");f+="; "+a+"="+m(e[a])}return f}o(g,"format");function T(r){if(!r)throw new TypeError("argument string is required");var e=typeof r=="object"?l(r):r;if(typeof e!="string")throw new TypeError("argument string is required to be a string");var t=e.indexOf(";"),f=t!==-1?e.slice(0,t).trim():e.trim();if(!d.test(f))throw new TypeError("invalid media type");var a=new _(f.toLowerCase());if(t!==-1){var p,n,i;for(y.lastIndex=t;n=y.exec(e);){if(n.index!==t)throw new TypeError("invalid parameter format");t+=n[0].length,p=n[1].toLowerCase(),i=n[2],i.charCodeAt(0)===34&&(i=i.slice(1,-1),i.indexOf("\\")!==-1&&(i=i.replace(v,"$1"))),a.parameters[p]=i}if(t!==e.length)throw new TypeError("invalid parameter format")}return a}o(T,"parse");function l(r){var e;if(typeof r.getHeader=="function"?e=r.getHeader("content-type"):typeof r.headers=="object"&&(e=r.headers&&r.headers["content-type"]),typeof e!="string")throw new TypeError("content-type header is missing from object");return e}o(l,"getcontenttype");function m(r){var e=String(r);if(E.test(e))return e;if(e.length>0&&!c.test(e))throw new TypeError("invalid parameter value");return'"'+e.replace(h,"\\$1")+'"'}o(m,"qstring");function _(r){this.parameters=Object.create(null),this.type=r}o(_,"ContentType")});export{$ as a};
4
4
  /*! Bundled license information:
5
5
 
6
6
  content-type/index.js:
@@ -10,4 +10,4 @@ content-type/index.js:
10
10
  * MIT Licensed
11
11
  *)
12
12
  */
13
- //# sourceMappingURL=chunk-QWHCUY7V.js.map
13
+ //# sourceMappingURL=chunk-5MOLNCIE.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import{a as s}from"./chunk-QWHCUY7V.js";import{a as e,e as o,f as i}from"./chunk-MG5KFPMK.js";i();var r=o(s(),1);function p(n){if(n)try{return r.default.parse(n).type}catch{let t=(n.split(";",1)[0]??"").trim().toLowerCase();return t===""||n.slice(t.length).includes(",")?void 0:t}}e(p,"mediaTypeEssence");function u(n){return n==="application/json"?!0:p(n)==="application/json"}e(u,"isJsonContentType");export{p as a,u as b};
4
- //# sourceMappingURL=chunk-2ASXSH6K.js.map
3
+ import{a as s}from"./chunk-5MOLNCIE.js";import{a as e,e as o,f as i}from"./chunk-SO6GBFEQ.js";i();var r=o(s(),1);function p(n){if(n)try{return r.default.parse(n).type}catch{let t=(n.split(";",1)[0]??"").trim().toLowerCase();return t===""||n.slice(t.length).includes(",")?void 0:t}}e(p,"mediaTypeEssence");function u(n){return n==="application/json"?!0:p(n)==="application/json"}e(u,"isJsonContentType");export{p as a,u as b};
4
+ //# sourceMappingURL=chunk-6LPDAIV7.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import{x as $}from"./chunk-VIL6N7EO.js";import{a,f as y}from"./chunk-MG5KFPMK.js";y();var j=new Set(["PASTE_TOKEN_HERE","<your-atlassian-login-email>","https://your-org.atlassian.net"]),d=a(e=>j.has(e.trim().replace(/\/+$/,"")),"isJiraPlaceholder");function h(e,t,s){let n=e.trim();for(;n.endsWith("/");)n=n.slice(0,-1);return!n||!t||!s||d(n)||d(t)||d(s)?null:{baseUrl:n,email:t,token:s}}a(h,"normalizeCreds");async function u(){let e=h(process.env.JIRA_BASE_URL??"",process.env.JIRA_EMAIL??"",process.env.JIRA_API_TOKEN??"");if(e)return e;try{let t=$().jira??{};return h(String(t.base_url??""),String(t.email??""),String(t.api_token??""))}catch{return null}}a(u,"jiraCreds");async function f(e,t,s){let n=await fetch(`${e.baseUrl}${t}`,{method:s===void 0?"GET":"POST",headers:{Authorization:"Basic "+Buffer.from(`${e.email}:${e.token}`).toString("base64"),Accept:"application/json",...s===void 0?{}:{"Content-Type":"application/json"}},body:s===void 0?void 0:JSON.stringify(s),signal:AbortSignal.timeout(1e4)});if(!n.ok){let o=(await n.text().catch(()=>"")).trim().slice(0,500);throw new Error(`Jira REST ${t} \u2192 HTTP ${n.status}${o?`: ${o}`:""}`)}return n}a(f,"jiraFetch");async function S(){let e=await u();if(!e)return null;let s=await(await f(e,"/rest/api/3/myself")).json();return{who:s.emailAddress??s.displayName??e.email}}a(S,"jiraMyself");async function l(e,t){return await(await f(e,t)).json()}a(l,"jiraGet");var C="summary,description,status,issuetype,assignee,comment";async function T(e,t){let s=await u();if(!s)return t?.push("no Jira REST credentials"),null;try{return await l(s,`/rest/api/2/issue/${encodeURIComponent(e)}?fields=${C}`)}catch(n){return t?.push(E(n)),null}}a(T,"fetchIssueRest");function E(e){let t=e;if(t.message?.startsWith("Jira REST "))return t.message;let s=t.cause?.code??t.cause?.message;return`Jira REST: ${t.message}${s?` (${s})`:""}`}a(E,"restFailure");async function A(e){if(!e.length)return{};let t=await u();if(!t)return null;let s=encodeURIComponent(`key in (${e.join(",")})`);try{let n=await l(t,`/rest/api/2/search/jql?jql=${s}&fields=status&maxResults=100`),o={};for(let r of n.issues??[]){let c=r.fields?.status?.name;r.key&&c&&(o[r.key.toUpperCase()]=c)}return o}catch{return null}}a(A,"fetchStatusesRest");var R="fields=summary,status&maxResults=100";async function b(e){let t=await u();return t?(await l(t,`/rest/api/2/search/jql?jql=${encodeURIComponent(e)}&${R}`)).issues??[]:null}a(b,"searchIssuesRest");async function L(e,t){let s=await u();if(!s)return null;let n=encodeURIComponent(e),{columnConfig:o}=await l(s,`/rest/agile/1.0/board/${n}/configuration`),r=o?.columns??[],c=r.find(p=>p.name?.toLowerCase()===t.toLowerCase());if(!c)throw new Error(`board ${e} has no "${t}" column (it has: ${r.map(p=>p.name).join(", ")})`);let i=(c.statuses??[]).flatMap(p=>p.id?[p.id]:[]);if(!i.length)return[];let m=encodeURIComponent(`status in (${i.join(",")})`);return(await l(s,`/rest/agile/1.0/board/${n}/issue?jql=${m}&${R}`)).issues??[]}a(L,"boardColumnRest");async function x(e){let t=await u();if(!t)return null;let s=encodeURIComponent(e.project),{issueTypes:n=[]}=await l(t,`/rest/api/2/issue/createmeta/${s}/issuetypes`),o=a(m=>n.some(w=>w.name?.toLowerCase()===m.toLowerCase()),"has"),r=o(e.issueType)||!o("Task")?e.issueType:"Task",c=await f(t,"/rest/api/2/issue",{fields:{project:{key:e.project},issuetype:{name:r},summary:e.summary,description:e.description,...r===e.issueType?{}:{labels:[e.fallbackLabel]}}}),{key:i}=await c.json();return{key:i,url:`${t.baseUrl}/browse/${i}`,issueType:r}}a(x,"createIssueRest");async function U(e,t){let s=await u();return s?(await f(s,"/rest/api/2/issueLink",{type:{name:"Relates"},inwardIssue:{key:e},outwardIssue:{key:t}}),!0):null}a(U,"linkIssueRest");async function _(e,t){let s=await u();if(!s)return null;let n=`/rest/api/2/issue/${encodeURIComponent(e)}`;if(t.status){let o=t.status.trim().toLowerCase(),{transitions:r=[]}=await l(s,`${n}/transitions`),c=r.find(i=>i.to?.name?.toLowerCase()===o)??r.find(i=>i.name?.toLowerCase()===o);if(!c){let i=r.map(m=>m.to?.name??m.name).filter(Boolean).join(", ");throw new Error(`${e} has no transition to "${t.status}" (available: ${i||"none"})`)}await f(s,`${n}/transitions`,{transition:{id:c.id}})}return t.comment&&await f(s,`${n}/comment`,{body:t.comment}),!0}a(_,"updateIssueRest");export{j as a,d as b,S as c,T as d,A as e,b as f,L as g,x as h,U as i,_ as j};
4
- //# sourceMappingURL=chunk-WXZ5XLD3.js.map
3
+ import{x as $}from"./chunk-PAA3VRIJ.js";import{a,f as y}from"./chunk-SO6GBFEQ.js";y();var j=new Set(["PASTE_TOKEN_HERE","<your-atlassian-login-email>","https://your-org.atlassian.net"]),d=a(e=>j.has(e.trim().replace(/\/+$/,"")),"isJiraPlaceholder");function h(e,t,s){let n=e.trim();for(;n.endsWith("/");)n=n.slice(0,-1);return!n||!t||!s||d(n)||d(t)||d(s)?null:{baseUrl:n,email:t,token:s}}a(h,"normalizeCreds");async function u(){let e=h(process.env.JIRA_BASE_URL??"",process.env.JIRA_EMAIL??"",process.env.JIRA_API_TOKEN??"");if(e)return e;try{let t=$().jira??{};return h(String(t.base_url??""),String(t.email??""),String(t.api_token??""))}catch{return null}}a(u,"jiraCreds");async function f(e,t,s){let n=await fetch(`${e.baseUrl}${t}`,{method:s===void 0?"GET":"POST",headers:{Authorization:"Basic "+Buffer.from(`${e.email}:${e.token}`).toString("base64"),Accept:"application/json",...s===void 0?{}:{"Content-Type":"application/json"}},body:s===void 0?void 0:JSON.stringify(s),signal:AbortSignal.timeout(1e4)});if(!n.ok){let o=(await n.text().catch(()=>"")).trim().slice(0,500);throw new Error(`Jira REST ${t} \u2192 HTTP ${n.status}${o?`: ${o}`:""}`)}return n}a(f,"jiraFetch");async function S(){let e=await u();if(!e)return null;let s=await(await f(e,"/rest/api/3/myself")).json();return{who:s.emailAddress??s.displayName??e.email}}a(S,"jiraMyself");async function l(e,t){return await(await f(e,t)).json()}a(l,"jiraGet");var C="summary,description,status,issuetype,assignee,comment";async function T(e,t){let s=await u();if(!s)return t?.push("no Jira REST credentials"),null;try{return await l(s,`/rest/api/2/issue/${encodeURIComponent(e)}?fields=${C}`)}catch(n){return t?.push(E(n)),null}}a(T,"fetchIssueRest");function E(e){let t=e;if(t.message?.startsWith("Jira REST "))return t.message;let s=t.cause?.code??t.cause?.message;return`Jira REST: ${t.message}${s?` (${s})`:""}`}a(E,"restFailure");async function A(e){if(!e.length)return{};let t=await u();if(!t)return null;let s=encodeURIComponent(`key in (${e.join(",")})`);try{let n=await l(t,`/rest/api/2/search/jql?jql=${s}&fields=status&maxResults=100`),o={};for(let r of n.issues??[]){let c=r.fields?.status?.name;r.key&&c&&(o[r.key.toUpperCase()]=c)}return o}catch{return null}}a(A,"fetchStatusesRest");var R="fields=summary,status&maxResults=100";async function b(e){let t=await u();return t?(await l(t,`/rest/api/2/search/jql?jql=${encodeURIComponent(e)}&${R}`)).issues??[]:null}a(b,"searchIssuesRest");async function L(e,t){let s=await u();if(!s)return null;let n=encodeURIComponent(e),{columnConfig:o}=await l(s,`/rest/agile/1.0/board/${n}/configuration`),r=o?.columns??[],c=r.find(p=>p.name?.toLowerCase()===t.toLowerCase());if(!c)throw new Error(`board ${e} has no "${t}" column (it has: ${r.map(p=>p.name).join(", ")})`);let i=(c.statuses??[]).flatMap(p=>p.id?[p.id]:[]);if(!i.length)return[];let m=encodeURIComponent(`status in (${i.join(",")})`);return(await l(s,`/rest/agile/1.0/board/${n}/issue?jql=${m}&${R}`)).issues??[]}a(L,"boardColumnRest");async function x(e){let t=await u();if(!t)return null;let s=encodeURIComponent(e.project),{issueTypes:n=[]}=await l(t,`/rest/api/2/issue/createmeta/${s}/issuetypes`),o=a(m=>n.some(w=>w.name?.toLowerCase()===m.toLowerCase()),"has"),r=o(e.issueType)||!o("Task")?e.issueType:"Task",c=await f(t,"/rest/api/2/issue",{fields:{project:{key:e.project},issuetype:{name:r},summary:e.summary,description:e.description,...r===e.issueType?{}:{labels:[e.fallbackLabel]}}}),{key:i}=await c.json();return{key:i,url:`${t.baseUrl}/browse/${i}`,issueType:r}}a(x,"createIssueRest");async function U(e,t){let s=await u();return s?(await f(s,"/rest/api/2/issueLink",{type:{name:"Relates"},inwardIssue:{key:e},outwardIssue:{key:t}}),!0):null}a(U,"linkIssueRest");async function _(e,t){let s=await u();if(!s)return null;let n=`/rest/api/2/issue/${encodeURIComponent(e)}`;if(t.status){let o=t.status.trim().toLowerCase(),{transitions:r=[]}=await l(s,`${n}/transitions`),c=r.find(i=>i.to?.name?.toLowerCase()===o)??r.find(i=>i.name?.toLowerCase()===o);if(!c){let i=r.map(m=>m.to?.name??m.name).filter(Boolean).join(", ");throw new Error(`${e} has no transition to "${t.status}" (available: ${i||"none"})`)}await f(s,`${n}/transitions`,{transition:{id:c.id}})}return t.comment&&await f(s,`${n}/comment`,{body:t.comment}),!0}a(_,"updateIssueRest");export{j as a,d as b,S as c,T as d,A as e,b as f,L as g,x as h,U as i,_ as j};
4
+ //# sourceMappingURL=chunk-6RKTIHJH.js.map
@@ -1,4 +1,4 @@
1
1
  import { createRequire as __sandboxCreateRequire } from "node:module";
2
2
  const require = __sandboxCreateRequire(import.meta.url);
3
- import{a as s,f as c}from"./chunk-MG5KFPMK.js";c();function t(e=process.env){let r=e.WERKMEISTER_LAUNCHER;return r==="vscode"||r==="terminal"?r:e.CLAUDE_CODE_ENTRYPOINT==="claude-vscode"||e.TERM_PROGRAM==="vscode"?"vscode":"terminal"}s(t,"claudeLauncher");var n="vscode://jbbz.werkmeister-vscode";function i(e){let r=new URLSearchParams({workspace:e.workspace,mode:e.sessionId?"resume":"new"});return e.sessionId&&r.set("session",e.sessionId),e.prompt&&r.set("prompt",e.prompt),`${n}/claude?${r}`}s(i,"claudeLaunchUri");function a(e){return`${n}/reconcile?${new URLSearchParams({slug:e})}`}s(a,"reconcileLaunchUri");export{t as a,i as b,a as c};
4
- //# sourceMappingURL=chunk-RNMIQO2N.js.map
3
+ import{a as s,f as c}from"./chunk-SO6GBFEQ.js";c();function t(e=process.env){let r=e.WERKMEISTER_LAUNCHER;return r==="vscode"||r==="terminal"?r:e.CLAUDE_CODE_ENTRYPOINT==="claude-vscode"||e.TERM_PROGRAM==="vscode"?"vscode":"terminal"}s(t,"claudeLauncher");var n="vscode://jbbz.werkmeister-vscode";function i(e){let r=new URLSearchParams({workspace:e.workspace,mode:e.sessionId?"resume":"new"});return e.sessionId&&r.set("session",e.sessionId),e.prompt&&r.set("prompt",e.prompt),`${n}/claude?${r}`}s(i,"claudeLaunchUri");function a(e){return`${n}/reconcile?${new URLSearchParams({slug:e})}`}s(a,"reconcileLaunchUri");export{t as a,i as b,a as c};
4
+ //# sourceMappingURL=chunk-AJ6ECKRK.js.map